@coolon/angular-ui-powerups 12.4.0-alpha.6 → 12.4.0-alpha.60

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