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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/assets/cards.scss +17 -0
  2. package/assets/empty-state.scss +11 -0
  3. package/assets/form.scss +5 -2
  4. package/assets/forms/mixins.scss +6 -0
  5. package/assets/interaction/editor/inline-string-editor.scss +88 -0
  6. package/assets/interaction/input-activity.scss +12 -0
  7. package/assets/interaction.scss +11 -7
  8. package/assets/styles.scss +5 -12
  9. package/bundles/coolon-angular-ui-powerups-cypress.umd.js +738 -307
  10. package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
  11. package/bundles/coolon-angular-ui-powerups.umd.js +745 -127
  12. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  13. package/coolon-angular-ui-powerups.metadata.json +1 -1
  14. package/cypress/component-builder.d.ts +71 -0
  15. package/cypress/components/aup-abstract-activity.d.ts +31 -0
  16. package/cypress/components/aup-abstract-table.d.ts +18 -0
  17. package/cypress/components/aup-activity.d.ts +9 -0
  18. package/cypress/components/aup-alert-dialog.d.ts +27 -0
  19. package/cypress/components/aup-alert.d.ts +9 -0
  20. package/cypress/components/aup-command-face.d.ts +2 -8
  21. package/cypress/components/aup-command.d.ts +2 -1
  22. package/cypress/components/aup-confirm-dialog.d.ts +27 -0
  23. package/cypress/components/aup-confirm.d.ts +11 -0
  24. package/cypress/components/aup-empty-state.d.ts +4 -0
  25. package/cypress/components/aup-input.d.ts +11 -5
  26. package/cypress/components/aup-modal-activity.d.ts +24 -0
  27. package/cypress/components/aup-modal-mixin.d.ts +23 -0
  28. package/cypress/components/aup-table.d.ts +5 -18
  29. package/cypress/components/aup-tree-table.d.ts +16 -0
  30. package/cypress/components/button.d.ts +11 -7
  31. package/cypress/components/form-element-mixin.d.ts +22 -0
  32. package/cypress/components/mat-checkbox.d.ts +31 -0
  33. package/cypress/components/popup/aup-abstract-popup-menu.d.ts +15 -0
  34. package/cypress/components/popup/aup-more-menu.d.ts +5 -0
  35. package/cypress/components/popup/aup-popup-menu-panel.d.ts +3 -0
  36. package/cypress/components/popup/aup-popup-menu.d.ts +7 -0
  37. package/cypress/components/table/aup-table-cell.d.ts +9 -0
  38. package/cypress/components/table/aup-table-column.d.ts +10 -0
  39. package/cypress/components/table/aup-table-row.d.ts +17 -0
  40. package/cypress/components/table/aup-table-selection-cell.d.ts +5 -0
  41. package/cypress/components/table/aup-table-selection-column.d.ts +5 -0
  42. package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
  43. package/cypress/element-locator.d.ts +8 -0
  44. package/cypress/exports.d.ts +25 -4
  45. package/cypress/package.json +1 -1
  46. package/cypress/page-builder.d.ts +9 -0
  47. package/cypress/page-element.d.ts +12 -12
  48. package/cypress/page.d.ts +8 -33
  49. package/esm2015/cypress/component-builder.js +92 -0
  50. package/esm2015/cypress/component-builder.js.map +1 -0
  51. package/esm2015/cypress/component-builder.metadata.json +1 -0
  52. package/esm2015/cypress/components/aup-abstract-activity.js +12 -0
  53. package/esm2015/cypress/components/aup-abstract-activity.js.map +1 -0
  54. package/esm2015/cypress/components/aup-abstract-activity.metadata.json +1 -0
  55. package/esm2015/cypress/components/aup-abstract-table.js +50 -0
  56. package/esm2015/cypress/components/aup-abstract-table.js.map +1 -0
  57. package/esm2015/cypress/components/aup-abstract-table.metadata.json +1 -0
  58. package/esm2015/cypress/components/aup-activity.js +13 -0
  59. package/esm2015/cypress/components/aup-activity.js.map +1 -0
  60. package/esm2015/cypress/components/aup-activity.metadata.json +1 -0
  61. package/esm2015/cypress/components/aup-alert-dialog.js +8 -0
  62. package/esm2015/cypress/components/aup-alert-dialog.js.map +1 -0
  63. package/esm2015/cypress/components/aup-alert-dialog.metadata.json +1 -0
  64. package/esm2015/cypress/components/aup-alert.js +13 -0
  65. package/esm2015/cypress/components/aup-alert.js.map +1 -0
  66. package/esm2015/cypress/components/aup-alert.metadata.json +1 -0
  67. package/esm2015/cypress/components/aup-command-face.js +11 -22
  68. package/esm2015/cypress/components/aup-command-face.js.map +1 -1
  69. package/esm2015/cypress/components/aup-command-face.metadata.json +1 -1
  70. package/esm2015/cypress/components/aup-command.js +12 -6
  71. package/esm2015/cypress/components/aup-command.js.map +1 -1
  72. package/esm2015/cypress/components/aup-command.metadata.json +1 -1
  73. package/esm2015/cypress/components/aup-confirm-dialog.js +8 -0
  74. package/esm2015/cypress/components/aup-confirm-dialog.js.map +1 -0
  75. package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +1 -0
  76. package/esm2015/cypress/components/aup-confirm.js +19 -0
  77. package/esm2015/cypress/components/aup-confirm.js.map +1 -0
  78. package/esm2015/cypress/components/aup-confirm.metadata.json +1 -0
  79. package/esm2015/cypress/components/aup-empty-state.js +7 -0
  80. package/esm2015/cypress/components/aup-empty-state.js.map +1 -0
  81. package/esm2015/cypress/components/aup-empty-state.metadata.json +1 -0
  82. package/esm2015/cypress/components/aup-input.js +17 -5
  83. package/esm2015/cypress/components/aup-input.js.map +1 -1
  84. package/esm2015/cypress/components/aup-input.metadata.json +1 -1
  85. package/esm2015/cypress/components/aup-modal-activity.js +5 -0
  86. package/esm2015/cypress/components/aup-modal-activity.js.map +1 -0
  87. package/esm2015/cypress/components/aup-modal-activity.metadata.json +1 -0
  88. package/esm2015/cypress/components/aup-modal-mixin.js +18 -0
  89. package/esm2015/cypress/components/aup-modal-mixin.js.map +1 -0
  90. package/esm2015/cypress/components/aup-modal-mixin.metadata.json +1 -0
  91. package/esm2015/cypress/components/aup-navigation.js +1 -1
  92. package/esm2015/cypress/components/aup-navigation.js.map +1 -1
  93. package/esm2015/cypress/components/aup-table.js +5 -33
  94. package/esm2015/cypress/components/aup-table.js.map +1 -1
  95. package/esm2015/cypress/components/aup-table.metadata.json +1 -1
  96. package/esm2015/cypress/components/aup-tree-table.js +34 -0
  97. package/esm2015/cypress/components/aup-tree-table.js.map +1 -0
  98. package/esm2015/cypress/components/aup-tree-table.metadata.json +1 -0
  99. package/esm2015/cypress/components/button.js +4 -10
  100. package/esm2015/cypress/components/button.js.map +1 -1
  101. package/esm2015/cypress/components/button.metadata.json +1 -1
  102. package/esm2015/cypress/components/form-element-mixin.js +11 -0
  103. package/esm2015/cypress/components/form-element-mixin.js.map +1 -0
  104. package/esm2015/cypress/components/form-element-mixin.metadata.json +1 -0
  105. package/esm2015/cypress/components/mat-checkbox.js +34 -0
  106. package/esm2015/cypress/components/mat-checkbox.js.map +1 -0
  107. package/esm2015/cypress/components/mat-checkbox.metadata.json +1 -0
  108. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +33 -0
  109. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +1 -0
  110. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +1 -0
  111. package/esm2015/cypress/components/popup/aup-more-menu.js +8 -0
  112. package/esm2015/cypress/components/popup/aup-more-menu.js.map +1 -0
  113. package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +1 -0
  114. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +4 -0
  115. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +1 -0
  116. package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +1 -0
  117. package/esm2015/cypress/components/popup/aup-popup-menu.js +12 -0
  118. package/esm2015/cypress/components/popup/aup-popup-menu.js.map +1 -0
  119. package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +1 -0
  120. package/esm2015/cypress/components/table/aup-table-cell.js +14 -0
  121. package/esm2015/cypress/components/table/aup-table-cell.js.map +1 -0
  122. package/esm2015/cypress/components/table/aup-table-cell.metadata.json +1 -0
  123. package/esm2015/cypress/components/table/aup-table-column.js +19 -0
  124. package/esm2015/cypress/components/table/aup-table-column.js.map +1 -0
  125. package/esm2015/cypress/components/table/aup-table-column.metadata.json +1 -0
  126. package/esm2015/cypress/components/table/aup-table-row.js +28 -0
  127. package/esm2015/cypress/components/table/aup-table-row.js.map +1 -0
  128. package/esm2015/cypress/components/table/aup-table-row.metadata.json +1 -0
  129. package/esm2015/cypress/components/table/aup-table-selection-cell.js +6 -0
  130. package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +1 -0
  131. package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +1 -0
  132. package/esm2015/cypress/components/table/aup-table-selection-column.js +6 -0
  133. package/esm2015/cypress/components/table/aup-table-selection-column.js.map +1 -0
  134. package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +1 -0
  135. package/esm2015/cypress/element-locator.js +16 -0
  136. package/esm2015/cypress/element-locator.js.map +1 -0
  137. package/esm2015/cypress/element-locator.metadata.json +1 -0
  138. package/esm2015/cypress/exports.js +25 -4
  139. package/esm2015/cypress/exports.js.map +1 -1
  140. package/esm2015/cypress/exports.metadata.json +1 -1
  141. package/esm2015/cypress/page-builder.js +16 -0
  142. package/esm2015/cypress/page-builder.js.map +1 -0
  143. package/esm2015/cypress/page-builder.metadata.json +1 -0
  144. package/esm2015/cypress/page-element.js +26 -19
  145. package/esm2015/cypress/page-element.js.map +1 -1
  146. package/esm2015/cypress/page-element.metadata.json +1 -1
  147. package/esm2015/cypress/page.js +31 -19
  148. package/esm2015/cypress/page.js.map +1 -1
  149. package/esm2015/cypress/page.metadata.json +1 -1
  150. package/esm2015/cypress/path.js +3 -1
  151. package/esm2015/cypress/path.js.map +1 -1
  152. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  153. package/esm2015/lib/components/cards/abstract-card-container.component.js +29 -0
  154. package/esm2015/lib/components/cards/abstract-card-container.component.js.map +1 -0
  155. package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +1 -0
  156. package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +1 -0
  157. package/esm2015/lib/components/cards/card-container/card-container.component.js +123 -0
  158. package/esm2015/lib/components/cards/card-container/card-container.component.js.map +1 -0
  159. package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +1 -0
  160. package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +1 -0
  161. package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +1 -0
  162. package/esm2015/lib/components/cards/card-stack/card-stack.component.js +78 -0
  163. package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +1 -0
  164. package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +1 -0
  165. package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +1 -0
  166. package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +1 -0
  167. package/esm2015/lib/components/components.module.js +32 -24
  168. package/esm2015/lib/components/components.module.js.map +1 -1
  169. package/esm2015/lib/components/components.module.metadata.json +1 -1
  170. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  171. package/esm2015/lib/components/empty-state/empty-state.component.js +1 -1
  172. package/esm2015/lib/components/empty-state/empty-state.component.metadata.json +1 -1
  173. package/esm2015/lib/components/exports.js +4 -1
  174. package/esm2015/lib/components/exports.js.map +1 -1
  175. package/esm2015/lib/components/exports.metadata.json +1 -1
  176. package/esm2015/lib/components/forms/abstract-input.component.js +1 -0
  177. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  178. package/esm2015/lib/components/labelled-value/labelled-value.component.js +22 -0
  179. package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +1 -0
  180. package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +1 -0
  181. package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +1 -0
  182. package/esm2015/lib/components/{card-container/card-container.component.scss.shim.ngstyle.js.map → labelled-value/labelled-value.component.scss.shim.ngstyle.js.map} +1 -1
  183. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js +4 -4
  184. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js.map +1 -1
  185. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.metadata.json +1 -1
  186. package/esm2015/lib/components/tables/tree-table/tree-table-model.js +1 -0
  187. package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -1
  188. package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -1
  189. package/esm2015/lib/components/track-by.js +12 -0
  190. package/esm2015/lib/components/track-by.js.map +1 -1
  191. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +17 -11
  192. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
  193. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
  194. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +4 -0
  195. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
  196. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
  197. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +4 -1
  198. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
  199. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
  200. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +4 -1
  201. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
  202. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
  203. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +4 -1
  204. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
  205. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
  206. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +77 -0
  207. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +1 -0
  208. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +1 -0
  209. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +1 -0
  210. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +1 -0
  211. package/esm2015/lib/interaction/components/editors/edit-context.js +2 -0
  212. package/esm2015/lib/interaction/components/editors/edit-context.js.map +1 -0
  213. package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +1 -0
  214. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +50 -0
  215. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +1 -0
  216. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +1 -0
  217. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +160 -0
  218. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +1 -0
  219. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +1 -0
  220. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +1 -0
  221. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +6 -2
  222. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  223. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
  224. package/esm2015/lib/interaction/components/input-activities/input-activity.js +71 -0
  225. package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +1 -0
  226. package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +1 -0
  227. package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +1 -0
  228. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +3 -3
  229. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
  230. package/esm2015/lib/interaction/components/input-activities/select-input-activity.metadata.json +1 -1
  231. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +3 -4
  232. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
  233. package/esm2015/lib/interaction/components/input-activities/string-input-activity.metadata.json +1 -1
  234. package/esm2015/lib/interaction/exports.js +5 -3
  235. package/esm2015/lib/interaction/exports.js.map +1 -1
  236. package/esm2015/lib/interaction/exports.metadata.json +1 -1
  237. package/esm2015/lib/interaction/interaction.module.js +17 -5
  238. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  239. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  240. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  241. package/esm2015/lib/place/guards/consolidated-param-map.js +2 -1
  242. package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
  243. package/esm2015/lib/place/guards/consolidated-param-map.metadata.json +1 -1
  244. package/esm2015/lib/place/guards/place.guard.js +2 -1
  245. package/esm2015/lib/place/guards/place.guard.js.map +1 -1
  246. package/esm2015/lib/place/place-component.js +31 -4
  247. package/esm2015/lib/place/place-component.js.map +1 -1
  248. package/esm2015/lib/place/place-component.metadata.json +1 -1
  249. package/esm2015/lib/place/place-router.js +3 -8
  250. package/esm2015/lib/place/place-router.js.map +1 -1
  251. package/esm2015/lib/place/place-router.metadata.json +1 -1
  252. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  253. package/esm2015/lib/place/url-snapshot.js +1 -7
  254. package/esm2015/lib/place/url-snapshot.js.map +1 -1
  255. package/esm2015/lib/place/url-snapshot.metadata.json +1 -1
  256. package/esm2015/lib/place/visit.js +5 -1
  257. package/esm2015/lib/place/visit.js.map +1 -1
  258. package/esm2015/lib/place/visit.metadata.json +1 -1
  259. package/fesm2015/coolon-angular-ui-powerups-cypress.js +555 -228
  260. package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
  261. package/fesm2015/coolon-angular-ui-powerups.js +618 -96
  262. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  263. package/lib/components/cards/abstract-card-container.component.d.ts +11 -0
  264. package/lib/components/{card-container → cards/card-container}/card-container.component.d.ts +30 -9
  265. package/lib/components/cards/card-stack/card-stack.component.d.ts +65 -0
  266. package/lib/components/exports.d.ts +4 -1
  267. package/lib/components/labelled-value/labelled-value.component.d.ts +7 -0
  268. package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +0 -1
  269. package/lib/components/tables/tree-table/tree-table-model.d.ts +4 -5
  270. package/lib/components/track-by.d.ts +9 -0
  271. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +14 -3
  272. package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
  273. package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +2 -1
  274. package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +2 -1
  275. package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +2 -1
  276. package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +39 -0
  277. package/lib/interaction/components/editors/edit-context.d.ts +3 -0
  278. package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +24 -0
  279. package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +57 -0
  280. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +1 -0
  281. package/lib/interaction/components/input-activities/input-activity.d.ts +33 -0
  282. package/lib/interaction/components/input-activities/select-input-activity.d.ts +11 -3
  283. package/lib/interaction/components/input-activities/string-input-activity.d.ts +2 -2
  284. package/lib/interaction/exports.d.ts +5 -3
  285. package/lib/place/place-component.d.ts +6 -1
  286. package/package.json +1 -1
  287. package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
  288. package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +5 -3
  289. package/cypress/components/aup-more-menu.d.ts +0 -4
  290. package/cypress/components/aup-popup-menu.d.ts +0 -7
  291. package/cypress/components/button-mixin.d.ts +0 -19
  292. package/cypress/section.d.ts +0 -51
  293. package/esm2015/cypress/components/aup-more-menu.js +0 -7
  294. package/esm2015/cypress/components/aup-more-menu.js.map +0 -1
  295. package/esm2015/cypress/components/aup-more-menu.metadata.json +0 -1
  296. package/esm2015/cypress/components/aup-popup-menu.js +0 -19
  297. package/esm2015/cypress/components/aup-popup-menu.js.map +0 -1
  298. package/esm2015/cypress/components/aup-popup-menu.metadata.json +0 -1
  299. package/esm2015/cypress/components/button-mixin.js +0 -15
  300. package/esm2015/cypress/components/button-mixin.js.map +0 -1
  301. package/esm2015/cypress/components/button-mixin.metadata.json +0 -1
  302. package/esm2015/cypress/section.js +0 -58
  303. package/esm2015/cypress/section.js.map +0 -1
  304. package/esm2015/cypress/section.metadata.json +0 -1
  305. package/esm2015/lib/components/card-container/card-container.component.js +0 -84
  306. package/esm2015/lib/components/card-container/card-container.component.js.map +0 -1
  307. package/esm2015/lib/components/card-container/card-container.component.metadata.json +0 -1
  308. package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +0 -1
  309. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +0 -43
  310. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +0 -1
  311. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +0 -1
  312. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +0 -1
  313. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +0 -2
  314. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +0 -1
  315. package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +0 -1
  316. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +0 -2
  317. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +0 -1
  318. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +0 -1
  319. package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +0 -12
  320. package/lib/interaction/components/input-activities/input-activity-data.d.ts +0 -11
  321. package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +0 -8
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@coolon/typescript-utilities'), require('lodash'), require('@angular/router')) :
3
- typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups/cypress', ['exports', '@coolon/typescript-utilities', 'lodash', '@angular/router'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = global.coolon['angular-ui-powerups'] || {}, global.coolon['angular-ui-powerups'].cypress = {}), global.typescriptUtilities, global._, global.ng.router));
5
- }(this, (function (exports, typescriptUtilities, _, router) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@coolon/typescript-utilities'), require('lodash'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('@angular/router')) :
3
+ typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups/cypress', ['exports', '@coolon/typescript-utilities', 'lodash', '@typescript-plus/fast-memoize-decorator/dist/src', '@angular/router'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = global.coolon['angular-ui-powerups'] || {}, global.coolon['angular-ui-powerups'].cypress = {}), global.typescriptUtilities, global._, global.src, global.ng.router));
5
+ }(this, (function (exports, typescriptUtilities, _, src, router) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -26,53 +26,6 @@
26
26
 
27
27
  var ___namespace = /*#__PURE__*/_interopNamespace(_);
28
28
 
29
- var PageElement = /** @class */ (function () {
30
- function PageElement(parent, selector) {
31
- this.parentElementAccessor = parent instanceof PageElement ? function () { return parent.element(); } : parent;
32
- this.elementAccessStrategy = ___namespace.isString(selector) ? {
33
- findIn: function (p) { return p.find(selector); },
34
- shouldNotExist: function (p) { return p.find(selector).should('not.exist'); }
35
- } : selector;
36
- }
37
- PageElement.prototype.element = function () {
38
- var parent = this.getParentElement();
39
- return parent ? this.elementAccessStrategy.findIn(parent) : undefined;
40
- };
41
- PageElement.prototype.getParentElement = function () {
42
- return this.parentElementAccessor ? this.parentElementAccessor() : undefined;
43
- };
44
- PageElement.prototype.find = function (selector) {
45
- var _this = this;
46
- return new PageElement(function () { return _this.element(); }, selector);
47
- };
48
- PageElement.prototype.click = function (text) {
49
- text ? this.element().contains(text).click() : this.element().click();
50
- };
51
- Object.defineProperty(PageElement.prototype, "should", {
52
- get: function () {
53
- return this.getShoulder(this.getShouldElement());
54
- },
55
- enumerable: false,
56
- configurable: true
57
- });
58
- PageElement.prototype.getShoulder = function (element) {
59
- return element.should.bind(element);
60
- };
61
- PageElement.prototype.getShouldElement = function () {
62
- return this.element();
63
- };
64
- PageElement.prototype.shouldBeVisible = function () {
65
- this.should('be.visible');
66
- };
67
- PageElement.prototype.shouldNotBeVisible = function () {
68
- if (!this.elementAccessStrategy.shouldNotExist) {
69
- typescriptUtilities.lang.abstractMethod(this.constructor);
70
- }
71
- this.elementAccessStrategy.shouldNotExist(this.getParentElement());
72
- };
73
- return PageElement;
74
- }());
75
-
76
29
  /*! *****************************************************************************
77
30
  Copyright (c) Microsoft Corporation.
78
31
 
@@ -385,112 +338,104 @@
385
338
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
386
339
  }
387
340
 
388
- var urlSerialiser = new router.DefaultUrlSerializer();
389
- exports.Path = /** @class */ (function () {
390
- function Path(segments) {
391
- this.segments = segments;
341
+ exports.ElementLocator = void 0;
342
+ (function (ElementLocator) {
343
+ function findByCssSelector(selector) {
344
+ return function (parent) { return parent.dom().find(selector); };
392
345
  }
393
- Path.extractVisitParameters = function (url) {
394
- var result = {};
395
- var urlTree = urlSerialiser.parse(url);
396
- urlTree.root.children.primary.segments.forEach(function (s) {
397
- result = Object.assign(Object.assign({}, result), s.parameters);
398
- });
399
- return result;
346
+ ElementLocator.findByCssSelector = findByCssSelector;
347
+ function findByTextContent(text) {
348
+ return function (parent) { return parent.dom().contains(text); };
349
+ }
350
+ ElementLocator.findByTextContent = findByTextContent;
351
+ function findBySelectorAndTextContent(selector, text) {
352
+ return function (parent) { return parent.dom().contains(selector, text); };
353
+ }
354
+ ElementLocator.findBySelectorAndTextContent = findBySelectorAndTextContent;
355
+ })(exports.ElementLocator || (exports.ElementLocator = {}));
356
+
357
+ var PageElement = /** @class */ (function () {
358
+ function PageElement(parent, selectorOrLocator) {
359
+ this.parent = parent;
360
+ this.domElementLocator = ___namespace.isNil(selectorOrLocator) ?
361
+ this.getDefaultElementLocator() :
362
+ ___namespace.isString(selectorOrLocator) ?
363
+ exports.ElementLocator.findByCssSelector(selectorOrLocator) :
364
+ selectorOrLocator;
365
+ }
366
+ PageElement.prototype.getDefaultElementLocator = function () {
367
+ return exports.ElementLocator.findByCssSelector(this.getDefaultElementSelector());
400
368
  };
401
- Path.prototype.toUrl = function (matrixParams) {
402
- return this.segments.map(function (s) { return s.toUrlPart(matrixParams); }).join('/');
369
+ PageElement.prototype.getDefaultElementSelector = function () {
370
+ return typescriptUtilities.Stringy.from(this.constructor.name).dasherize().toString();
403
371
  };
404
- return Path;
372
+ PageElement.prototype.dom = function () {
373
+ return this.domElementLocator(this.parent);
374
+ };
375
+ PageElement.prototype.find = function (selector) {
376
+ return new PageElement(this, selector);
377
+ };
378
+ PageElement.prototype.click = function (text) {
379
+ text ? this.dom().contains(text).click() : this.dom().click();
380
+ };
381
+ Object.defineProperty(PageElement.prototype, "should", {
382
+ get: function () {
383
+ return this.getShoulder(this.getShouldElement());
384
+ },
385
+ enumerable: false,
386
+ configurable: true
387
+ });
388
+ PageElement.prototype.getShoulder = function (element) {
389
+ return element.should.bind(element);
390
+ };
391
+ PageElement.prototype.getShouldElement = function () {
392
+ return this.dom();
393
+ };
394
+ PageElement.prototype.shouldBeVisible = function () {
395
+ this.should('be.visible');
396
+ };
397
+ PageElement.prototype.shouldNotBeVisible = function () {
398
+ this.should('not.be.visible');
399
+ };
400
+ PageElement.prototype.shouldExist = function () {
401
+ this.dom().should('exist');
402
+ };
403
+ PageElement.prototype.shouldNotExist = function () {
404
+ this.dom().should('not.exist');
405
+ };
406
+ return PageElement;
405
407
  }());
406
- (function (Path) {
407
- function setUrlSerialiser(serialiser) {
408
- urlSerialiser = serialiser;
409
- }
410
- Path.setUrlSerialiser = setUrlSerialiser;
411
- var Segment = /** @class */ (function () {
412
- function Segment(path, params) {
413
- if (params === void 0) { params = {}; }
414
- var _a;
415
- this.path = path;
416
- this.routeId = params === null || params === void 0 ? void 0 : params.routeId;
417
- this.visitParams = (_a = params === null || params === void 0 ? void 0 : params.visitParams) !== null && _a !== void 0 ? _a : [];
418
- }
419
- Segment.prototype.toUrlPart = function (params) {
420
- var path = this.path;
421
- this.visitParams.forEach(function (p) {
422
- var value = params[p];
423
- if (value) {
424
- path = path + ";" + p + "=" + value;
425
- }
426
- });
427
- if (this.routeId && params[this.routeId]) {
428
- path = path + '/' + params[this.routeId];
429
- }
430
- return path;
431
- };
432
- return Segment;
433
- }());
434
- Path.Segment = Segment;
435
- var Builder = /** @class */ (function () {
436
- function Builder() {
437
- this.segments = [];
438
- }
439
- Builder.prototype.segment = function (name, params) {
440
- var builder = new Segment(name, params);
441
- this.segments.push(builder);
442
- return this;
443
- };
444
- Builder.prototype.getPath = function () {
445
- return new Path(this.segments);
446
- };
447
- return Builder;
448
- }());
449
- Path.Builder = Builder;
450
- })(exports.Path || (exports.Path = {}));
451
408
 
452
- var FaceAccessor = /** @class */ (function () {
453
- function FaceAccessor(face) {
454
- this.face = face;
455
- }
456
- FaceAccessor.prototype.findIn = function (parent) {
457
- return this.face.text ?
458
- parent.contains("aup-command-face", this.face.text()) :
459
- this.face.icon ?
460
- parent.find("aup-icon[ng-reflect-icon=" + this.face.icon() + "]").closest('aup-command-face') :
461
- undefined;
462
- };
463
- FaceAccessor.prototype.shouldNotExist = function (parent) {
464
- return this.face.text ?
465
- parent.should('not.contain', "aup-command-face", this.face.text()) :
466
- this.face.icon ?
467
- parent.should('not.contain', "aup-icon[ng-reflect-icon=" + this.face.icon() + "]") :
468
- undefined;
469
- };
470
- return FaceAccessor;
471
- }());
472
409
  var AupCommandFace = /** @class */ (function (_super) {
473
410
  __extends(AupCommandFace, _super);
474
411
  function AupCommandFace(parentElement, face) {
475
- return _super.call(this, function () { return parentElement.element(); }, AupCommandFace.createAccessor(face)) || this;
412
+ return _super.call(this, parentElement, AupCommandFace.createElementLocator(face)) || this;
476
413
  }
477
- AupCommandFace.createAccessor = function (face) {
478
- return new FaceAccessor(face);
414
+ AupCommandFace.createElementLocator = function (face) {
415
+ var locator = function (parent) {
416
+ return face.text ?
417
+ parent.dom().contains("aup-command-face", face.text()) :
418
+ face.icon ?
419
+ parent.dom().find("aup-icon[ng-reflect-icon=" + face.icon() + "]").closest('aup-command-face') :
420
+ undefined;
421
+ };
422
+ // aot compiler doesn't like lambas
423
+ return locator;
479
424
  };
480
425
  return AupCommandFace;
481
426
  }(PageElement));
482
427
 
483
428
  var AupCommand = /** @class */ (function (_super) {
484
429
  __extends(AupCommand, _super);
485
- function AupCommand(parent, face) {
486
- var _this = this;
487
- var faceAccessor = AupCommandFace.createAccessor(face);
488
- _this = _super.call(this, parent, {
489
- findIn: function (parentElement) {
490
- return faceAccessor.findIn(parentElement).closest('aup-command');
430
+ function AupCommand(parent, faceOrSelector) {
431
+ return _super.call(this, parent, function (parentElement) {
432
+ if (___namespace.isString(faceOrSelector)) {
433
+ return parentElement.dom().find(faceOrSelector);
434
+ }
435
+ else {
436
+ return AupCommandFace.createElementLocator(faceOrSelector)(parentElement).closest('aup-command');
491
437
  }
492
438
  }) || this;
493
- return _this;
494
439
  }
495
440
  AupCommand.prototype.click = function () {
496
441
  this.getButton().click();
@@ -501,25 +446,39 @@
501
446
  AupCommand.prototype.shouldBeDisabled = function () {
502
447
  this.getButton().should('be.disabled');
503
448
  };
449
+ AupCommand.prototype.shouldBeEnabled = function () {
450
+ this.getButton().should('not.be.disabled');
451
+ };
504
452
  AupCommand.prototype.getButton = function () {
505
- return this.element().find('button');
453
+ return this.dom().find('button');
506
454
  };
507
455
  return AupCommand;
508
456
  }(PageElement));
509
457
 
458
+ var AupEmptyState = /** @class */ (function (_super) {
459
+ __extends(AupEmptyState, _super);
460
+ function AupEmptyState() {
461
+ return _super !== null && _super.apply(this, arguments) || this;
462
+ }
463
+ AupEmptyState.prototype.shouldContainText = function (text) {
464
+ this.dom().should("contain.text", text);
465
+ };
466
+ return AupEmptyState;
467
+ }(PageElement));
468
+
510
469
  exports.AupInput = /** @class */ (function (_super) {
511
470
  __extends(AupInput, _super);
512
471
  function AupInput() {
513
472
  return _super !== null && _super.apply(this, arguments) || this;
514
473
  }
515
474
  AupInput.prototype.label = function () {
516
- return this.element().find('label');
475
+ return this.dom().find('label');
517
476
  };
518
477
  AupInput.prototype.hint = function () {
519
- return this.element().find('mat-hint');
478
+ return this.dom().find('mat-hint');
520
479
  };
521
480
  AupInput.prototype.error = function () {
522
- return this.element().find('mat-error');
481
+ return this.dom().find('mat-error');
523
482
  };
524
483
  Object.defineProperty(AupInput.prototype, "labelShould", {
525
484
  get: function () {
@@ -551,6 +510,18 @@
551
510
  AupInput.prototype.errorShouldBe = function (text) {
552
511
  return this.errorShould("have.text", text);
553
512
  };
513
+ AupInput.prototype.shouldBeFocused = function () {
514
+ this.input().should("have.focus");
515
+ };
516
+ AupInput.prototype.shouldNotBeFocused = function () {
517
+ this.input().should("not.have.focus");
518
+ };
519
+ AupInput.prototype.type = function (characters) {
520
+ this.input().type(characters);
521
+ };
522
+ AupInput.prototype.hitEnter = function () {
523
+ this.type("{enter}");
524
+ };
554
525
  return AupInput;
555
526
  }(PageElement));
556
527
  (function (AupInput) {
@@ -560,7 +531,7 @@
560
531
  return _super !== null && _super.apply(this, arguments) || this;
561
532
  }
562
533
  HtmlInput.prototype.input = function () {
563
- return this.element().find('input');
534
+ return this.dom().find('input');
564
535
  };
565
536
  HtmlInput.prototype.clear = function () {
566
537
  this.input().clear();
@@ -586,7 +557,7 @@
586
557
  return this.input();
587
558
  };
588
559
  TextAreaInput.prototype.input = function () {
589
- return this.element().find('textarea');
560
+ return this.dom().find('textarea');
590
561
  };
591
562
  TextAreaInput.prototype.clear = function () {
592
563
  this.input().clear();
@@ -602,6 +573,59 @@
602
573
  AupInput.TextAreaInput = TextAreaInput;
603
574
  })(exports.AupInput || (exports.AupInput = {}));
604
575
 
576
+ var AupPopupMenuPanel = /** @class */ (function (_super) {
577
+ __extends(AupPopupMenuPanel, _super);
578
+ function AupPopupMenuPanel() {
579
+ return _super !== null && _super.apply(this, arguments) || this;
580
+ }
581
+ return AupPopupMenuPanel;
582
+ }(PageElement));
583
+
584
+ var AupAbstractPopupMenu = /** @class */ (function (_super) {
585
+ __extends(AupAbstractPopupMenu, _super);
586
+ function AupAbstractPopupMenu(parent, locator) {
587
+ var _this = _super.call(this, parent, locator) || this;
588
+ _this.popup = new AupPopupMenuPanel(_this, function (p) { return _this.findPopupIn(p); });
589
+ return _this;
590
+ }
591
+ AupAbstractPopupMenu.prototype.findPopupIn = function (p) {
592
+ return this.getOverlay().find('.mat-menu-panel');
593
+ };
594
+ AupAbstractPopupMenu.prototype.getOverlay = function () {
595
+ return this.dom().closest('body').find('.cdk-overlay-container');
596
+ };
597
+ AupAbstractPopupMenu.prototype.getBackdrop = function () {
598
+ return this.getOverlay().find('.cdk-overlay-backdrop');
599
+ };
600
+ AupAbstractPopupMenu.prototype.openPopup = function () {
601
+ this.shouldNotBeOpen();
602
+ this.click();
603
+ return this.popup;
604
+ };
605
+ AupAbstractPopupMenu.prototype.closePopup = function () {
606
+ this.shouldBeOpen();
607
+ this.getBackdrop().click();
608
+ };
609
+ AupAbstractPopupMenu.prototype.shouldBeOpen = function () {
610
+ this.popup.shouldBeVisible();
611
+ };
612
+ AupAbstractPopupMenu.prototype.shouldNotBeOpen = function () {
613
+ this.dom().closest('body').find('.mat-menu-panel').should("not.exist");
614
+ };
615
+ return AupAbstractPopupMenu;
616
+ }(PageElement));
617
+
618
+ var AupMoreMenu = /** @class */ (function (_super) {
619
+ __extends(AupMoreMenu, _super);
620
+ function AupMoreMenu() {
621
+ return _super !== null && _super.apply(this, arguments) || this;
622
+ }
623
+ AupMoreMenu.create = function (parent, selector) {
624
+ return new AupMoreMenu(parent, exports.ElementLocator.findByCssSelector(selector !== null && selector !== void 0 ? selector : 'aup-more-menu'));
625
+ };
626
+ return AupMoreMenu;
627
+ }(AupAbstractPopupMenu));
628
+
605
629
  var AupNavigation = /** @class */ (function (_super) {
606
630
  __extends(AupNavigation, _super);
607
631
  function AupNavigation() {
@@ -617,61 +641,197 @@
617
641
  this.face(label).shouldBeVisible();
618
642
  };
619
643
  AupNavigation.prototype.shouldNotHaveLink = function (label) {
620
- this.face(label).shouldNotBeVisible();
644
+ this.face(label).shouldNotExist();
621
645
  };
622
646
  return AupNavigation;
623
647
  }(PageElement));
624
648
 
625
- exports.AupTable = /** @class */ (function (_super) {
626
- __extends(AupTable, _super);
627
- function AupTable(parentElementAccessor, selector) {
628
- return _super.call(this, parentElementAccessor, selector) || this;
649
+ var AupTableCell = /** @class */ (function (_super) {
650
+ __extends(AupTableCell, _super);
651
+ function AupTableCell() {
652
+ return _super !== null && _super.apply(this, arguments) || this;
629
653
  }
630
- AupTable.prototype.row = function (rowId) {
631
- var _this = this;
632
- return new AupTable.Row(function () { return _this.element(); }, "tr[aup-table-id=" + rowId + "]");
654
+ AupTableCell.prototype.rowId = function () {
655
+ return this.dom().closest('tr').invoke('attr', 'aup-row-id');
633
656
  };
634
- AupTable.prototype.column = function (columnId) {
635
- return new AupTable.Column(this, columnId);
657
+ AupTableCell.prototype.row = function () {
658
+ var self = this;
659
+ return this.parent.createRow(function (parent) {
660
+ return self.rowId().then(function (rowId) { return parent.dom().find(exports.AupAbstractTable.cssSelectorForTableRowById(rowId)); });
661
+ });
636
662
  };
637
- return AupTable;
663
+ return AupTableCell;
638
664
  }(PageElement));
639
- (function (AupTable) {
665
+
666
+ var AupTableColumn = /** @class */ (function (_super) {
667
+ __extends(AupTableColumn, _super);
668
+ function AupTableColumn(table, columnId) {
669
+ var _this = _super.call(this, table, exports.AupAbstractTable.cssSelectorForColumnCellRendererById(columnId)) || this;
670
+ _this.columnId = columnId;
671
+ return _this;
672
+ }
673
+ AupTableColumn.prototype.cellContaining = function (content) {
674
+ var self = this;
675
+ return new AupTableCell(this.parent, function (parent) {
676
+ return parent.dom().contains(exports.AupAbstractTable.cssSelectorForColumnCellRendererById(self.columnId), content);
677
+ });
678
+ };
679
+ AupTableColumn.prototype.rowContaining = function (content) {
680
+ return this.cellContaining(content).row();
681
+ };
682
+ return AupTableColumn;
683
+ }(PageElement));
684
+
685
+ var AupTableSelectionColumn = /** @class */ (function (_super) {
686
+ __extends(AupTableSelectionColumn, _super);
687
+ function AupTableSelectionColumn() {
688
+ return _super !== null && _super.apply(this, arguments) || this;
689
+ }
690
+ AupTableSelectionColumn.prototype.selectAll = function () {
691
+ };
692
+ return AupTableSelectionColumn;
693
+ }(AupTableColumn));
694
+
695
+ exports.AupAbstractTable = /** @class */ (function (_super) {
696
+ __extends(AupAbstractTable, _super);
697
+ function AupAbstractTable() {
698
+ return _super !== null && _super.apply(this, arguments) || this;
699
+ }
700
+ AupAbstractTable.prototype.row = function (rowId) {
701
+ return this.createRow(function (parent) {
702
+ return parent.dom().find(AupAbstractTable.cssSelectorForTableRowById(rowId));
703
+ });
704
+ };
705
+ AupAbstractTable.prototype.rowNumber = function (rowNumber) {
706
+ return this.createRow(function (parent) {
707
+ return parent.dom().find(AupAbstractTable.cssSelectorForNthTableRow(rowNumber));
708
+ });
709
+ };
710
+ AupAbstractTable.prototype.column = function (columnId) {
711
+ return new AupTableColumn(this, columnId);
712
+ };
713
+ Object.defineProperty(AupAbstractTable.prototype, "selectionColumn", {
714
+ get: function () {
715
+ return new AupTableSelectionColumn(this, 'selection-column');
716
+ },
717
+ enumerable: false,
718
+ configurable: true
719
+ });
720
+ return AupAbstractTable;
721
+ }(PageElement));
722
+ __decorate([
723
+ src.Memoize(),
724
+ __metadata("design:type", AupTableSelectionColumn),
725
+ __metadata("design:paramtypes", [])
726
+ ], exports.AupAbstractTable.prototype, "selectionColumn", null);
727
+ (function (AupAbstractTable) {
728
+ function cssSelectorForTableRowById(rowId) {
729
+ return "tbody tr[aup-row-id=" + rowId + "]";
730
+ }
731
+ AupAbstractTable.cssSelectorForTableRowById = cssSelectorForTableRowById;
732
+ function cssSelectorForNthTableRow(rowNumber) {
733
+ return "tbody tr:nth-child(" + rowNumber + ")";
734
+ }
735
+ AupAbstractTable.cssSelectorForNthTableRow = cssSelectorForNthTableRow;
736
+ function cssSelectorForColumnCellRendererById(columnOrId) {
737
+ var columnId = ___namespace.isString(columnOrId) ? columnOrId : columnOrId.columnId;
738
+ return "aup-table-cell-renderer[column-id=" + columnId + "]";
739
+ }
740
+ AupAbstractTable.cssSelectorForColumnCellRendererById = cssSelectorForColumnCellRendererById;
741
+ function cssSelectorForCell(rowId, columnOrId) {
742
+ return cssSelectorForTableRowById(rowId) + " " + cssSelectorForColumnCellRendererById(columnOrId);
743
+ }
744
+ AupAbstractTable.cssSelectorForCell = cssSelectorForCell;
745
+ })(exports.AupAbstractTable || (exports.AupAbstractTable = {}));
746
+
747
+ var AupTableRow = /** @class */ (function (_super) {
748
+ __extends(AupTableRow, _super);
749
+ function AupTableRow() {
750
+ return _super !== null && _super.apply(this, arguments) || this;
751
+ }
752
+ AupTableRow.prototype.rowId = function () {
753
+ return this.dom()
754
+ .invoke('attr', 'aup-row-id');
755
+ };
756
+ AupTableRow.prototype.shouldHaveRowId = function (rowId) {
757
+ this.rowId().should('eq', rowId);
758
+ };
759
+ AupTableRow.prototype.cell = function (columnOrId) {
760
+ var self = this;
761
+ return new AupTableCell(this.parent, function (parent) {
762
+ return self.rowId()
763
+ .then(function (rowId) { return exports.AupAbstractTable.cssSelectorForCell(rowId, columnOrId); })
764
+ .then(function (selector) { return parent.dom().find(selector); });
765
+ });
766
+ };
767
+ AupTableRow.prototype.shouldBeSelected = function () {
768
+ this.dom().should('have.class', 'aup-row-selected');
769
+ };
770
+ AupTableRow.prototype.shouldNotBeSelected = function () {
771
+ this.dom().should('not.have.class', 'aup-row-selected');
772
+ };
773
+ return AupTableRow;
774
+ }(PageElement));
775
+
776
+ var AupTable = /** @class */ (function (_super) {
777
+ __extends(AupTable, _super);
778
+ function AupTable() {
779
+ return _super !== null && _super.apply(this, arguments) || this;
780
+ }
781
+ AupTable.prototype.createRow = function (locator) {
782
+ return new AupTableRow(this, locator);
783
+ };
784
+ return AupTable;
785
+ }(exports.AupAbstractTable));
786
+
787
+ exports.AupTreeTable = /** @class */ (function (_super) {
788
+ __extends(AupTreeTable, _super);
789
+ function AupTreeTable() {
790
+ return _super !== null && _super.apply(this, arguments) || this;
791
+ }
792
+ Object.defineProperty(AupTreeTable.prototype, "treeControlColumn", {
793
+ get: function () {
794
+ return new AupTreeTable.TreeControlColumn(this, 'tree-label');
795
+ },
796
+ enumerable: false,
797
+ configurable: true
798
+ });
799
+ AupTreeTable.prototype.createRow = function (locator) {
800
+ return new AupTreeTable.Row(this, locator);
801
+ };
802
+ return AupTreeTable;
803
+ }(exports.AupAbstractTable));
804
+ __decorate([
805
+ src.Memoize(),
806
+ __metadata("design:type", exports.AupTreeTable.TreeControlColumn),
807
+ __metadata("design:paramtypes", [])
808
+ ], exports.AupTreeTable.prototype, "treeControlColumn", null);
809
+ (function (AupTreeTable) {
640
810
  var Row = /** @class */ (function (_super) {
641
811
  __extends(Row, _super);
642
812
  function Row() {
643
813
  return _super !== null && _super.apply(this, arguments) || this;
644
814
  }
645
- return Row;
646
- }(PageElement));
647
- AupTable.Row = Row;
648
- var Column = /** @class */ (function () {
649
- function Column(table, columnId) {
650
- this.table = table;
651
- this.columnId = columnId;
652
- }
653
- Column.prototype.cell = function (content) {
654
- var self = this;
655
- return new Cell(this.table, {
656
- findIn: function (parent) {
657
- return parent.contains("aup-table-cell-renderer[column-id=" + self.columnId + "]", content);
658
- }
659
- });
815
+ Row.prototype.shouldBeExpanded = function () {
816
+ this.dom().should("not.have.class", "aup-node-collapsed");
660
817
  };
661
- return Column;
662
- }());
663
- AupTable.Column = Column;
664
- var Cell = /** @class */ (function (_super) {
665
- __extends(Cell, _super);
666
- function Cell() {
818
+ Row.prototype.shouldBeCollapsed = function () {
819
+ this.dom().should("have.class", "aup-node-collapsed");
820
+ };
821
+ return Row;
822
+ }(AupTableRow));
823
+ AupTreeTable.Row = Row;
824
+ var TreeControlColumn = /** @class */ (function (_super) {
825
+ __extends(TreeControlColumn, _super);
826
+ function TreeControlColumn() {
667
827
  return _super !== null && _super.apply(this, arguments) || this;
668
828
  }
669
- return Cell;
670
- }(PageElement));
671
- AupTable.Cell = Cell;
672
- })(exports.AupTable || (exports.AupTable = {}));
829
+ return TreeControlColumn;
830
+ }(AupTableColumn));
831
+ AupTreeTable.TreeControlColumn = TreeControlColumn;
832
+ })(exports.AupTreeTable || (exports.AupTreeTable = {}));
673
833
 
674
- function ButtonMixin(Base) {
834
+ function FormElementMixin(Base) {
675
835
  return /** @class */ (function (_super) {
676
836
  __extends(class_1, _super);
677
837
  function class_1() {
@@ -681,12 +841,8 @@
681
841
  }
682
842
  return _super.apply(this, __spreadArray([], __read(args))) || this;
683
843
  }
684
- class_1.prototype.click = function () {
685
- return this.element().click();
686
- };
687
844
  class_1.prototype.shouldBeDisabled = function () {
688
845
  this.should("be.disabled");
689
- // this.should("have.css", "color", "rgba(0,0,0,0.26)")
690
846
  };
691
847
  return class_1;
692
848
  }(Base));
@@ -695,88 +851,346 @@
695
851
  var Button = /** @class */ (function (_super) {
696
852
  __extends(Button, _super);
697
853
  function Button(parentElementAccessor, buttonText) {
698
- return _super.call(this, parentElementAccessor, {
699
- findIn: function (parent) {
700
- return parent.contains('button', buttonText);
701
- },
702
- shouldNotExist: function (parent) {
703
- return parent.should('not.contain', buttonText);
704
- }
705
- }) || this;
854
+ return _super.call(this, parentElementAccessor, exports.ElementLocator.findBySelectorAndTextContent('button', buttonText)) || this;
706
855
  }
707
856
  return Button;
708
- }(ButtonMixin(PageElement)));
857
+ }(FormElementMixin(PageElement)));
858
+
859
+ var MatCheckbox = /** @class */ (function (_super) {
860
+ __extends(MatCheckbox, _super);
861
+ function MatCheckbox(parentElementAccessor, text) {
862
+ return _super.call(this, parentElementAccessor, exports.ElementLocator.findBySelectorAndTextContent('mat-checkbox', text)) || this;
863
+ }
864
+ MatCheckbox.prototype.shouldBeChecked = function () {
865
+ this.hiddenCheckBoxElement().should('be.checked');
866
+ };
867
+ MatCheckbox.prototype.shouldNotBeChecked = function () {
868
+ this.hiddenCheckBoxElement().should('not.be.checked');
869
+ };
870
+ MatCheckbox.prototype.hiddenCheckBoxElement = function () {
871
+ return this.dom().find('input[type=checkbox]');
872
+ };
873
+ MatCheckbox.prototype.check = function () {
874
+ var _this = this;
875
+ this.hiddenCheckBoxElement().then(function (el) {
876
+ if (!el.prop('checked')) {
877
+ _this.click();
878
+ _this.shouldBeChecked();
879
+ }
880
+ });
881
+ };
882
+ MatCheckbox.prototype.uncheck = function () {
883
+ var _this = this;
884
+ this.hiddenCheckBoxElement().then(function (el) {
885
+ if (el.prop('checked')) {
886
+ _this.click();
887
+ _this.shouldNotBeChecked();
888
+ }
889
+ });
890
+ };
891
+ return MatCheckbox;
892
+ }(FormElementMixin(PageElement)));
709
893
 
710
- exports.Section = void 0;
711
- (function (Section) {
894
+ exports.ComponentBuilder = /** @class */ (function () {
895
+ function ComponentBuilder(parentPageElement) {
896
+ this.parentPageElement = parentPageElement;
897
+ }
898
+ ComponentBuilder.prototype.find = function (selector) {
899
+ return new PageElement(this.parentPageElement, selector);
900
+ };
901
+ ComponentBuilder.prototype.section = function (selector, builder) {
902
+ return this.component(PageElement, selector, builder);
903
+ };
904
+ ComponentBuilder.prototype.contains = function (text) {
905
+ return new PageElement(this.parentPageElement, exports.ElementLocator.findByTextContent(text));
906
+ };
907
+ ComponentBuilder.prototype.button = function (text) {
908
+ return new Button(this.parentPageElement, text);
909
+ };
910
+ ComponentBuilder.prototype.matCheckbox = function (text) {
911
+ return new MatCheckbox(this.parentPageElement, text);
912
+ };
913
+ ComponentBuilder.prototype.aupStringInput = function (selector) {
914
+ return new exports.AupInput.HtmlInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-string-input');
915
+ };
916
+ ComponentBuilder.prototype.aupTextInput = function (selector) {
917
+ return new exports.AupInput.TextAreaInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-text-input');
918
+ };
919
+ ComponentBuilder.prototype.aupPasswordInput = function (selector) {
920
+ return new exports.AupInput.HtmlInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-password-input');
921
+ };
922
+ ComponentBuilder.prototype.aupNumberInput = function (selector) {
923
+ return new exports.AupInput.HtmlInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-number-input');
924
+ };
925
+ ComponentBuilder.prototype.aupCommand = function (faceOrSelector) {
926
+ return new AupCommand(this.parentPageElement, faceOrSelector);
927
+ };
928
+ ComponentBuilder.prototype.aupTabbedNavigation = function () {
929
+ return new AupNavigation(this.parentPageElement, 'aup-tabbed-place-navigation');
930
+ };
931
+ ComponentBuilder.prototype.aupSideNavigation = function () {
932
+ return new AupNavigation(this.parentPageElement, 'aup-list-place-nav');
933
+ };
934
+ ComponentBuilder.prototype.aupMoreMenu = function (selector) {
935
+ return AupMoreMenu.create(this.parentPageElement, selector);
936
+ };
937
+ ComponentBuilder.prototype.aupTable = function (selectorOrBuilder, optionalBuilder) {
938
+ return this.component(AupTable, selectorOrBuilder, optionalBuilder);
939
+ };
940
+ ComponentBuilder.prototype.aupTreeTable = function (selectorOrBuilder, optionalBuilder) {
941
+ return this.component(exports.AupTreeTable, selectorOrBuilder, optionalBuilder);
942
+ };
943
+ ComponentBuilder.prototype.aupEmptyState = function (selectorOrBuilder, optionalBuilder) {
944
+ return this.component(AupEmptyState, selectorOrBuilder, optionalBuilder);
945
+ };
946
+ ComponentBuilder.prototype.component = function (klass, selectorOrBuilder, optionalBuilder) {
947
+ var selector = ___namespace.isString(selectorOrBuilder) ? selectorOrBuilder : undefined;
948
+ var builder = ___namespace.isFunction(selectorOrBuilder) ? selectorOrBuilder : optionalBuilder;
949
+ var element = new klass(this.parentPageElement, selector);
950
+ if (builder) {
951
+ // create the B&E type that the builder has access to
952
+ var decoratedElement = typescriptUtilities.Mixin.createProxy(element, new ComponentBuilder(element));
953
+ // create final type that has the E & T type
954
+ return typescriptUtilities.Mixin.createProxy(decoratedElement, builder(decoratedElement));
955
+ }
956
+ else {
957
+ return element;
958
+ }
959
+ };
960
+ return ComponentBuilder;
961
+ }());
962
+ (function (ComponentBuilder) {
712
963
  function Mixin(Base) {
713
964
  return /** @class */ (function (_super) {
714
965
  __extends(class_1, _super);
715
966
  function class_1() {
716
- return _super !== null && _super.apply(this, arguments) || this;
967
+ var args = [];
968
+ for (var _i = 0; _i < arguments.length; _i++) {
969
+ args[_i] = arguments[_i];
970
+ }
971
+ var _this = _super.apply(this, __spreadArray([], __read(args))) || this;
972
+ _this.builder = new ComponentBuilder(_this);
973
+ return _this;
717
974
  }
718
- class_1.prototype.section = function (selector, section) {
719
- var _this = this;
720
- var impl = new Impl(function () { return _this.element(); }, selector);
721
- return typescriptUtilities.Mixin.createProxy(section(impl), impl);
722
- };
723
- class_1.prototype.find = function (selector) {
724
- var _this = this;
725
- return new PageElement(function () { return _this.element(); }, selector);
726
- };
727
- class_1.prototype.contains = function (text) {
728
- var _this = this;
729
- return new PageElement(function () { return _this.element(); }, {
730
- findIn: function (parent) { return parent.contains(text); },
731
- shouldNotExist: function (parent) { return parent.should('not.contain', text); }
732
- });
733
- };
734
- class_1.prototype.button = function (text) {
735
- var _this = this;
736
- return new Button(function () { return _this.element(); }, text);
737
- };
738
- class_1.prototype.aupStringInput = function (selector) {
739
- var _this = this;
740
- return new exports.AupInput.HtmlInput(function () { return _this.element(); }, selector !== null && selector !== void 0 ? selector : 'aup-string-input');
741
- };
742
- class_1.prototype.aupTextInput = function (selector) {
743
- var _this = this;
744
- return new exports.AupInput.TextAreaInput(function () { return _this.element(); }, selector !== null && selector !== void 0 ? selector : 'aup-text-input');
745
- };
746
- class_1.prototype.aupPasswordInput = function (selector) {
747
- var _this = this;
748
- return new exports.AupInput.HtmlInput(function () { return _this.element(); }, selector !== null && selector !== void 0 ? selector : 'aup-password-input');
749
- };
750
- class_1.prototype.aupNumberInput = function (selector) {
751
- var _this = this;
752
- return new exports.AupInput.HtmlInput(function () { return _this.element(); }, selector !== null && selector !== void 0 ? selector : 'aup-number-input');
753
- };
754
- class_1.prototype.aupCommand = function (face) {
755
- return new AupCommand(this, face);
756
- };
757
- class_1.prototype.aupTabbedNavigation = function () {
758
- return new AupNavigation(this, 'aup-tabbed-place-navigation');
759
- };
760
- class_1.prototype.aupSideNavigation = function () {
761
- var _this = this;
762
- return new AupNavigation(function () { return _this.element(); }, 'aup-list-place-nav');
763
- };
764
- class_1.prototype.aupTable = function (selector) {
765
- var _this = this;
766
- return new exports.AupTable(function () { return _this.element(); }, selector !== null && selector !== void 0 ? selector : 'aup-table');
767
- };
768
975
  return class_1;
769
976
  }(Base));
770
977
  }
771
- Section.Mixin = Mixin;
772
- var Impl = /** @class */ (function (_super) {
773
- __extends(Impl, _super);
774
- function Impl() {
775
- return _super !== null && _super.apply(this, arguments) || this;
978
+ ComponentBuilder.Mixin = Mixin;
979
+ })(exports.ComponentBuilder || (exports.ComponentBuilder = {}));
980
+
981
+ var AupAbstractActivity = /** @class */ (function (_super) {
982
+ __extends(AupAbstractActivity, _super);
983
+ function AupAbstractActivity(parent, selector) {
984
+ var _this =
985
+ // @ts-ignore
986
+ _super.call(this, parent, selector) || this;
987
+ _this.title = _this.find('aup-activity-title');
988
+ _this._confirmCommand = _this.builder.aupCommand('[data-cy=confirm-command]');
989
+ _this._cancelCommand = _this.builder.aupCommand('[data-cy=cancel-command]');
990
+ return _this;
991
+ }
992
+ return AupAbstractActivity;
993
+ }(exports.ComponentBuilder.Mixin(PageElement)));
994
+
995
+ var AupAlert = /** @class */ (function (_super) {
996
+ __extends(AupAlert, _super);
997
+ function AupAlert(parent, selector) {
998
+ return _super.call(this, parent, selector) || this;
999
+ }
1000
+ Object.defineProperty(AupAlert.prototype, "closeCommand", {
1001
+ get: function () {
1002
+ return this._confirmCommand;
1003
+ },
1004
+ enumerable: false,
1005
+ configurable: true
1006
+ });
1007
+ AupAlert.prototype.clickClose = function () {
1008
+ this.closeCommand.click();
1009
+ };
1010
+ return AupAlert;
1011
+ }(AupAbstractActivity));
1012
+
1013
+ function AupModalMixin(Base) {
1014
+ return /** @class */ (function (_super) {
1015
+ __extends(class_1, _super);
1016
+ function class_1() {
1017
+ var args = [];
1018
+ for (var _i = 0; _i < arguments.length; _i++) {
1019
+ args[_i] = arguments[_i];
1020
+ }
1021
+ return _super.apply(this, __spreadArray([], __read(args))) || this;
776
1022
  }
777
- return Impl;
778
- }(Mixin(PageElement)));
779
- })(exports.Section || (exports.Section = {}));
1023
+ class_1.prototype.getDefaultElementLocator = function () {
1024
+ var _this = this;
1025
+ return function (parent) {
1026
+ return parent.dom().closest('body').find(_this.getDefaultElementSelector());
1027
+ };
1028
+ };
1029
+ class_1.prototype.clickBackdrop = function () {
1030
+ this.dom()
1031
+ .closest(".cdk-overlay-container")
1032
+ .find(".cdk-overlay-backdrop").click(-50, -50, { force: true });
1033
+ };
1034
+ return class_1;
1035
+ }(Base));
1036
+ }
1037
+
1038
+ var AupAlertDialog = /** @class */ (function (_super) {
1039
+ __extends(AupAlertDialog, _super);
1040
+ function AupAlertDialog(parent, selector) {
1041
+ return _super.call(this, parent, selector) || this;
1042
+ }
1043
+ return AupAlertDialog;
1044
+ }(AupModalMixin(AupAlert)));
1045
+
1046
+ var AupConfirm = /** @class */ (function (_super) {
1047
+ __extends(AupConfirm, _super);
1048
+ function AupConfirm(parent, selector) {
1049
+ return _super.call(this, parent, selector) || this;
1050
+ }
1051
+ Object.defineProperty(AupConfirm.prototype, "confirmCommand", {
1052
+ get: function () {
1053
+ return this._confirmCommand;
1054
+ },
1055
+ enumerable: false,
1056
+ configurable: true
1057
+ });
1058
+ AupConfirm.prototype.clickConfirm = function () {
1059
+ this.confirmCommand.click();
1060
+ };
1061
+ Object.defineProperty(AupConfirm.prototype, "cancelCommand", {
1062
+ get: function () {
1063
+ return this._cancelCommand;
1064
+ },
1065
+ enumerable: false,
1066
+ configurable: true
1067
+ });
1068
+ AupConfirm.prototype.clickCancel = function () {
1069
+ this.cancelCommand.click();
1070
+ };
1071
+ return AupConfirm;
1072
+ }(AupAbstractActivity));
1073
+
1074
+ var AupConfirmDialog = /** @class */ (function (_super) {
1075
+ __extends(AupConfirmDialog, _super);
1076
+ function AupConfirmDialog(parent, selector) {
1077
+ return _super.call(this, parent, selector) || this;
1078
+ }
1079
+ return AupConfirmDialog;
1080
+ }(AupModalMixin(AupConfirm)));
1081
+
1082
+ var AupActivity = /** @class */ (function (_super) {
1083
+ __extends(AupActivity, _super);
1084
+ function AupActivity(parent, selector) {
1085
+ return _super.call(this, parent, selector) || this;
1086
+ }
1087
+ Object.defineProperty(AupActivity.prototype, "confirmCommand", {
1088
+ get: function () {
1089
+ return this._confirmCommand;
1090
+ },
1091
+ enumerable: false,
1092
+ configurable: true
1093
+ });
1094
+ Object.defineProperty(AupActivity.prototype, "cancelCommand", {
1095
+ get: function () {
1096
+ return this._cancelCommand;
1097
+ },
1098
+ enumerable: false,
1099
+ configurable: true
1100
+ });
1101
+ return AupActivity;
1102
+ }(AupAbstractActivity));
1103
+
1104
+ var AupModalActivity = /** @class */ (function (_super) {
1105
+ __extends(AupModalActivity, _super);
1106
+ function AupModalActivity() {
1107
+ return _super !== null && _super.apply(this, arguments) || this;
1108
+ }
1109
+ return AupModalActivity;
1110
+ }(AupModalMixin(AupActivity)));
1111
+
1112
+ var PageBuilder = /** @class */ (function (_super) {
1113
+ __extends(PageBuilder, _super);
1114
+ function PageBuilder() {
1115
+ return _super !== null && _super.apply(this, arguments) || this;
1116
+ }
1117
+ PageBuilder.prototype.aupModalActivity = function (selector, builder) {
1118
+ return this.component(AupModalActivity, selector, builder);
1119
+ };
1120
+ PageBuilder.prototype.aupModalAlert = function (builder) {
1121
+ return this.component(AupAlertDialog, builder);
1122
+ };
1123
+ PageBuilder.prototype.aupModelConfirm = function (builder) {
1124
+ return this.component(AupConfirmDialog, builder);
1125
+ };
1126
+ return PageBuilder;
1127
+ }(exports.ComponentBuilder));
1128
+
1129
+ var urlSerialiser = new router.DefaultUrlSerializer();
1130
+ exports.Path = /** @class */ (function () {
1131
+ function Path(segments) {
1132
+ this.segments = segments;
1133
+ }
1134
+ Path.extractVisitParameters = function (url) {
1135
+ var _a, _b;
1136
+ var result = {};
1137
+ var urlTree = urlSerialiser.parse(url);
1138
+ var urlSegments = (_b = (_a = urlTree.root.children.primary) === null || _a === void 0 ? void 0 : _a.segments) !== null && _b !== void 0 ? _b : [];
1139
+ urlSegments === null || urlSegments === void 0 ? void 0 : urlSegments.forEach(function (s) {
1140
+ result = Object.assign(Object.assign({}, result), s.parameters);
1141
+ });
1142
+ return result;
1143
+ };
1144
+ Path.prototype.toUrl = function (matrixParams) {
1145
+ return this.segments.map(function (s) { return s.toUrlPart(matrixParams); }).join('/');
1146
+ };
1147
+ return Path;
1148
+ }());
1149
+ (function (Path) {
1150
+ function setUrlSerialiser(serialiser) {
1151
+ urlSerialiser = serialiser;
1152
+ }
1153
+ Path.setUrlSerialiser = setUrlSerialiser;
1154
+ var Segment = /** @class */ (function () {
1155
+ function Segment(path, params) {
1156
+ if (params === void 0) { params = {}; }
1157
+ var _a;
1158
+ this.path = path;
1159
+ this.routeId = params === null || params === void 0 ? void 0 : params.routeId;
1160
+ this.visitParams = (_a = params === null || params === void 0 ? void 0 : params.visitParams) !== null && _a !== void 0 ? _a : [];
1161
+ }
1162
+ Segment.prototype.toUrlPart = function (params) {
1163
+ var path = this.path;
1164
+ this.visitParams.forEach(function (p) {
1165
+ var value = params[p];
1166
+ if (value) {
1167
+ path = path + ";" + p + "=" + value;
1168
+ }
1169
+ });
1170
+ if (this.routeId && params[this.routeId]) {
1171
+ path = path + '/' + params[this.routeId];
1172
+ }
1173
+ return path;
1174
+ };
1175
+ return Segment;
1176
+ }());
1177
+ Path.Segment = Segment;
1178
+ var Builder = /** @class */ (function () {
1179
+ function Builder() {
1180
+ this.segments = [];
1181
+ }
1182
+ Builder.prototype.segment = function (name, params) {
1183
+ var builder = new Segment(name, params);
1184
+ this.segments.push(builder);
1185
+ return this;
1186
+ };
1187
+ Builder.prototype.getPath = function () {
1188
+ return new Path(this.segments);
1189
+ };
1190
+ return Builder;
1191
+ }());
1192
+ Path.Builder = Builder;
1193
+ })(exports.Path || (exports.Path = {}));
780
1194
 
781
1195
  exports.Page = /** @class */ (function (_super) {
782
1196
  __extends(Page, _super);
@@ -786,7 +1200,7 @@
786
1200
  _this.rootElementSelector = 'body';
787
1201
  return _this;
788
1202
  }
789
- Page.prototype.element = function () {
1203
+ Page.prototype.dom = function () {
790
1204
  return cy.get(this.rootElementSelector);
791
1205
  };
792
1206
  Page.prototype.visit = function (visitParams, queryParams) {
@@ -796,7 +1210,9 @@
796
1210
  Page.prototype.tryAndVisit = function (params, queryParams) {
797
1211
  var path = this.path.toUrl(params !== null && params !== void 0 ? params : {});
798
1212
  var queryString = queryParams ? "?" + new URLSearchParams(queryParams).toString() : '';
799
- cy.visit("/" + path + queryString);
1213
+ var fullPath = "/" + path + queryString;
1214
+ cy.log("Visiting -> " + fullPath);
1215
+ cy.visit(fullPath);
800
1216
  };
801
1217
  Page.prototype.shouldHaveActivityIds = function () {
802
1218
  var ids = [];
@@ -813,45 +1229,50 @@
813
1229
  };
814
1230
  Page.prototype.shouldBeActive = function (withParameters) {
815
1231
  // Note: cy.window() doesn't return a promise... it's a chainable.
816
- cy["waitUntil"](function () {
1232
+ cy['waitUntil'](function () {
817
1233
  return cy.window().then(function (window) {
818
1234
  return window['aup.PlaceRouter'] && !window['aup.PlaceRouter'].isNavigating();
819
1235
  });
820
1236
  });
821
1237
  if (withParameters) {
822
- cy.location('pathname').then(function (path) {
823
- var urlParams = exports.Path.extractVisitParameters(path);
824
- Object.keys(withParameters).forEach(function (param) {
825
- var expected = withParameters[param];
826
- // @ts-ignore
827
- expect(urlParams[param]).to.equal(expected);
828
- });
829
- });
1238
+ this.shouldIncludeParameters(withParameters);
830
1239
  }
831
1240
  };
1241
+ Page.prototype.shouldIncludeParameters = function (parameters) {
1242
+ cy.location('pathname').then(function (path) {
1243
+ var urlParams = exports.Path.extractVisitParameters(path);
1244
+ Object.keys(parameters).forEach(function (param) {
1245
+ var expected = parameters[param];
1246
+ var actual = urlParams[param];
1247
+ // cy.log(`${actual} - ${expected}`);
1248
+ expect(urlParams[param]).to.equal(expected);
1249
+ });
1250
+ });
1251
+ };
1252
+ Page.prototype.shouldNotHaveParameter = function (name) {
1253
+ this.getUrlParameters().then(function (params) {
1254
+ expect(params[name]).to.be.undefined;
1255
+ });
1256
+ };
1257
+ Page.prototype.getUrlParameters = function () {
1258
+ return cy.location('pathname').then(function (path) { return exports.Path.extractVisitParameters(path); });
1259
+ };
832
1260
  return Page;
833
1261
  }(PageElement));
834
1262
  (function (Page) {
835
- function create(pathOrPathBuilder, page) {
1263
+ function create(pathOrPathBuilder, builder) {
836
1264
  var pathBuilder = new exports.Path.Builder();
837
1265
  if (___namespace.isString(pathOrPathBuilder)) {
838
- pathOrPathBuilder.split("/").filter(function (p) { return !___namespace.isEmpty(p); }).forEach(function (p) { return pathBuilder.segment(p); });
1266
+ pathOrPathBuilder.split('/').filter(function (p) { return !___namespace.isEmpty(p); }).forEach(function (p) { return pathBuilder.segment(p); });
839
1267
  }
840
1268
  else {
841
1269
  pathOrPathBuilder(pathBuilder);
842
1270
  }
843
- var builder = new PageBuilder(pathBuilder.getPath());
844
- return typescriptUtilities.Mixin.createProxy(page(builder), builder);
1271
+ var instance = new Page(pathBuilder.getPath());
1272
+ var content = builder.call(instance, new PageBuilder(instance));
1273
+ return typescriptUtilities.Mixin.createProxy(content, instance);
845
1274
  }
846
1275
  Page.create = create;
847
- var PageBuilder = /** @class */ (function (_super) {
848
- __extends(PageBuilder, _super);
849
- function PageBuilder() {
850
- return _super !== null && _super.apply(this, arguments) || this;
851
- }
852
- return PageBuilder;
853
- }(exports.Section.Mixin(Page)));
854
- Page.PageBuilder = PageBuilder;
855
1276
  })(exports.Page || (exports.Page = {}));
856
1277
 
857
1278
  var AupCommandGroup = /** @class */ (function (_super) {
@@ -862,49 +1283,41 @@
862
1283
  return AupCommandGroup;
863
1284
  }(PageElement));
864
1285
 
865
- var AupMoreMenu = /** @class */ (function (_super) {
866
- __extends(AupMoreMenu, _super);
867
- function AupMoreMenu() {
1286
+ var AupToolBar = /** @class */ (function (_super) {
1287
+ __extends(AupToolBar, _super);
1288
+ function AupToolBar() {
868
1289
  return _super !== null && _super.apply(this, arguments) || this;
869
1290
  }
870
- AupMoreMenu.create = function (parent) {
871
- return new AupMoreMenu(parent, 'aup-more-menu');
1291
+ AupToolBar.create = function (parent, face) {
1292
+ // const findFace = AupCommandFace.createFinder(() => parent.element(), face)
1293
+ // return new AupCommandGroup(() => findFace().closest('button'));
872
1294
  };
873
- return AupMoreMenu;
1295
+ return AupToolBar;
874
1296
  }(PageElement));
875
1297
 
876
1298
  var AupPopupMenu = /** @class */ (function (_super) {
877
1299
  __extends(AupPopupMenu, _super);
878
1300
  function AupPopupMenu(parentElementAccessor, face) {
879
1301
  var _this = this;
880
- var accessor = AupCommandFace.createAccessor(face);
881
- _this = _super.call(this, parentElementAccessor, {
882
- findIn: function (parent) {
883
- return accessor.findIn(parent).closest('button');
884
- },
885
- shouldNotExist: function (parent) {
886
- accessor.shouldNotExist(parent);
887
- }
888
- }) || this;
1302
+ var locator = AupCommandFace.createElementLocator(face);
1303
+ _this = _super.call(this, parentElementAccessor, function (parent) { return locator(parent).closest('button'); }) || this;
889
1304
  return _this;
890
1305
  }
891
1306
  AupPopupMenu.create = function (parent, face) {
892
1307
  return new AupPopupMenu(parent, face);
893
1308
  };
894
1309
  return AupPopupMenu;
895
- }(PageElement));
1310
+ }(AupAbstractPopupMenu));
896
1311
 
897
- var AupToolBar = /** @class */ (function (_super) {
898
- __extends(AupToolBar, _super);
899
- function AupToolBar() {
1312
+ var AupTableSelectionCell = /** @class */ (function (_super) {
1313
+ __extends(AupTableSelectionCell, _super);
1314
+ function AupTableSelectionCell() {
900
1315
  return _super !== null && _super.apply(this, arguments) || this;
901
1316
  }
902
- AupToolBar.create = function (parent, face) {
903
- // const findFace = AupCommandFace.createFinder(() => parent.element(), face)
904
- // return new AupCommandGroup(() => findFace().closest('button'));
1317
+ AupTableSelectionCell.prototype.selectAll = function () {
905
1318
  };
906
- return AupToolBar;
907
- }(PageElement));
1319
+ return AupTableSelectionCell;
1320
+ }(AupTableCell));
908
1321
 
909
1322
  /**
910
1323
  * @file Automatically generated by barrelsby.
@@ -914,16 +1327,34 @@
914
1327
  * Generated bundle index. Do not edit.
915
1328
  */
916
1329
 
1330
+ exports.AupAbstractActivity = AupAbstractActivity;
1331
+ exports.AupAbstractPopupMenu = AupAbstractPopupMenu;
1332
+ exports.AupActivity = AupActivity;
1333
+ exports.AupAlert = AupAlert;
1334
+ exports.AupAlertDialog = AupAlertDialog;
917
1335
  exports.AupCommand = AupCommand;
918
1336
  exports.AupCommandFace = AupCommandFace;
919
1337
  exports.AupCommandGroup = AupCommandGroup;
1338
+ exports.AupConfirm = AupConfirm;
1339
+ exports.AupConfirmDialog = AupConfirmDialog;
1340
+ exports.AupEmptyState = AupEmptyState;
1341
+ exports.AupModalActivity = AupModalActivity;
1342
+ exports.AupModalMixin = AupModalMixin;
920
1343
  exports.AupMoreMenu = AupMoreMenu;
921
1344
  exports.AupNavigation = AupNavigation;
922
1345
  exports.AupPopupMenu = AupPopupMenu;
1346
+ exports.AupPopupMenuPanel = AupPopupMenuPanel;
1347
+ exports.AupTable = AupTable;
1348
+ exports.AupTableCell = AupTableCell;
1349
+ exports.AupTableColumn = AupTableColumn;
1350
+ exports.AupTableRow = AupTableRow;
1351
+ exports.AupTableSelectionCell = AupTableSelectionCell;
1352
+ exports.AupTableSelectionColumn = AupTableSelectionColumn;
923
1353
  exports.AupToolBar = AupToolBar;
924
1354
  exports.Button = Button;
925
- exports.ButtonMixin = ButtonMixin;
926
- exports.FaceAccessor = FaceAccessor;
1355
+ exports.FormElementMixin = FormElementMixin;
1356
+ exports.MatCheckbox = MatCheckbox;
1357
+ exports.PageBuilder = PageBuilder;
927
1358
  exports.PageElement = PageElement;
928
1359
 
929
1360
  Object.defineProperty(exports, '__esModule', { value: true });