@coolon/angular-ui-powerups 12.4.0-alpha.58 → 12.4.0-alpha.6
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.
- package/assets/activities.scss +70 -0
- package/assets/form.scss +2 -5
- package/assets/interaction.scss +7 -10
- package/assets/mixins.scss +7 -5
- package/assets/styles.scss +15 -8
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +324 -745
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +220 -905
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/cypress/components/aup-command-face.d.ts +8 -2
- package/cypress/components/aup-command.d.ts +1 -2
- package/cypress/components/aup-input.d.ts +5 -11
- package/cypress/components/aup-more-menu.d.ts +4 -0
- package/cypress/components/aup-popup-menu.d.ts +7 -0
- package/cypress/components/aup-table.d.ts +18 -5
- package/cypress/components/button-mixin.d.ts +19 -0
- package/cypress/components/button.d.ts +7 -11
- package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
- package/cypress/exports.d.ts +4 -25
- package/cypress/package.json +1 -1
- package/cypress/page-element.d.ts +12 -12
- package/cypress/page.d.ts +33 -8
- package/cypress/section.d.ts +52 -0
- package/esm2015/cypress/components/aup-command-face.js +22 -11
- package/esm2015/cypress/components/aup-command-face.js.map +1 -1
- package/esm2015/cypress/components/aup-command-face.metadata.json +1 -1
- package/esm2015/cypress/components/aup-command.js +6 -12
- package/esm2015/cypress/components/aup-command.js.map +1 -1
- package/esm2015/cypress/components/aup-command.metadata.json +1 -1
- package/esm2015/cypress/components/aup-input.js +5 -17
- package/esm2015/cypress/components/aup-input.js.map +1 -1
- package/esm2015/cypress/components/aup-input.metadata.json +1 -1
- package/esm2015/cypress/components/aup-more-menu.js +7 -0
- package/esm2015/cypress/components/aup-more-menu.js.map +1 -0
- package/esm2015/cypress/components/aup-more-menu.metadata.json +1 -0
- package/esm2015/cypress/components/aup-navigation.js +1 -1
- package/esm2015/cypress/components/aup-navigation.js.map +1 -1
- package/esm2015/cypress/components/aup-popup-menu.js +19 -0
- package/esm2015/cypress/components/aup-popup-menu.js.map +1 -0
- package/esm2015/cypress/components/aup-popup-menu.metadata.json +1 -0
- package/esm2015/cypress/components/aup-table.js +33 -5
- package/esm2015/cypress/components/aup-table.js.map +1 -1
- package/esm2015/cypress/components/aup-table.metadata.json +1 -1
- package/esm2015/cypress/components/button-mixin.js +15 -0
- package/esm2015/cypress/components/button-mixin.js.map +1 -0
- package/esm2015/cypress/components/button-mixin.metadata.json +1 -0
- package/esm2015/cypress/components/button.js +10 -4
- package/esm2015/cypress/components/button.js.map +1 -1
- package/esm2015/cypress/components/button.metadata.json +1 -1
- package/esm2015/cypress/exports.js +4 -25
- package/esm2015/cypress/exports.js.map +1 -1
- package/esm2015/cypress/exports.metadata.json +1 -1
- package/esm2015/cypress/page-element.js +19 -26
- package/esm2015/cypress/page-element.js.map +1 -1
- package/esm2015/cypress/page-element.metadata.json +1 -1
- package/esm2015/cypress/page.js +19 -31
- package/esm2015/cypress/page.js.map +1 -1
- package/esm2015/cypress/page.metadata.json +1 -1
- package/esm2015/cypress/path.js +1 -3
- package/esm2015/cypress/path.js.map +1 -1
- package/esm2015/cypress/section.js +72 -0
- package/esm2015/cypress/section.js.map +1 -0
- package/esm2015/cypress/section.metadata.json +1 -0
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/busy-overlay/busy-overlay.component.js +1 -1
- package/esm2015/lib/components/busy-overlay/busy-overlay.component.metadata.json +1 -1
- package/esm2015/lib/components/card-container/card-container.component.js +84 -0
- package/esm2015/lib/components/card-container/card-container.component.js.map +1 -0
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -0
- package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/{labelled-value/labelled-value.component.scss.shim.ngstyle.js.map → card-container/card-container.component.scss.shim.ngstyle.js.map} +1 -1
- package/esm2015/lib/components/commands/command/command.component.js +1 -1
- package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.js +1 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -1
- package/esm2015/lib/components/components.module.js +24 -37
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/empty-state/empty-state.component.js +1 -1
- package/esm2015/lib/components/empty-state/empty-state.component.metadata.json +1 -1
- package/esm2015/lib/components/exports.js +3 -5
- package/esm2015/lib/components/exports.js.map +1 -1
- package/esm2015/lib/components/exports.metadata.json +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.js +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.js +0 -1
- package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +1 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.js +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.js +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
- package/esm2015/lib/components/icon/icon.component.js +1 -1
- package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
- package/esm2015/lib/components/noop/noop.component.js +1 -1
- package/esm2015/lib/components/noop/noop.component.metadata.json +1 -1
- package/esm2015/lib/components/scroll-container/scroll-container.component.js +1 -1
- package/esm2015/lib/components/scroll-container/scroll-container.component.metadata.json +1 -1
- package/esm2015/lib/components/section-header/section-header.component.js +5 -12
- package/esm2015/lib/components/section-header/section-header.component.js.map +1 -1
- package/esm2015/lib/components/section-header/section-header.component.metadata.json +1 -1
- package/esm2015/lib/components/switch-case/switch-case.component.js +1 -1
- package/esm2015/lib/components/switch-case/switch-case.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/abstract-table-model.js.map +1 -1
- package/esm2015/lib/components/tables/table/column-model.js.map +1 -1
- package/esm2015/lib/components/tables/table/column-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js +1 -1
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/paginator/paginator.component.js +1 -1
- package/esm2015/lib/components/tables/table/paginator/paginator.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/table.component.js +1 -1
- package/esm2015/lib/components/tables/table/table.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js +4 -4
- package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.js +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-node.js +2 -0
- package/esm2015/lib/components/tables/tree-table/tree-node.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-node.metadata.json +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-table-component.js +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-component.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-component.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-model.js +0 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/visitable.class.js +26 -0
- package/esm2015/lib/components/tables/tree-table/visitable.class.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/visitable.class.metadata.json +1 -0
- package/esm2015/lib/components/track-by.js +0 -12
- package/esm2015/lib/components/track-by.js.map +1 -1
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js +1 -1
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.metadata.json +1 -1
- package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +11 -17
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +2 -2
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-title/activity-title.component.js +1 -1
- package/esm2015/lib/interaction/components/activity-title/activity-title.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +0 -4
- package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +2 -5
- package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +2 -5
- package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +2 -5
- package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +1 -1
- package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +1 -1
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +3 -7
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +43 -0
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +1 -0
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +2 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +1 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +2 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +1 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +3 -5
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.metadata.json +1 -1
- package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +4 -6
- package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/string-input-activity.metadata.json +1 -1
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +1 -2
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/exports.js +3 -5
- package/esm2015/lib/interaction/exports.js.map +1 -1
- package/esm2015/lib/interaction/exports.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.js +5 -19
- package/esm2015/lib/interaction/interaction.module.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
- package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.js +1 -1
- package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.metadata.json +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/guards/consolidated-param-map.js +1 -2
- package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
- package/esm2015/lib/place/guards/consolidated-param-map.metadata.json +1 -1
- package/esm2015/lib/place/guards/place.guard.js +1 -2
- package/esm2015/lib/place/guards/place.guard.js.map +1 -1
- package/esm2015/lib/place/place-component.js +4 -31
- package/esm2015/lib/place/place-component.js.map +1 -1
- package/esm2015/lib/place/place-component.metadata.json +1 -1
- package/esm2015/lib/place/place-router.js +13 -10
- package/esm2015/lib/place/place-router.js.map +1 -1
- package/esm2015/lib/place/place-router.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/url-snapshot.js +7 -1
- package/esm2015/lib/place/url-snapshot.js.map +1 -1
- package/esm2015/lib/place/url-snapshot.metadata.json +1 -1
- package/esm2015/lib/place/visit.js +1 -5
- package/esm2015/lib/place/visit.js.map +1 -1
- package/esm2015/lib/place/visit.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups-cypress.js +237 -550
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +173 -755
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/{cards/card-container → card-container}/card-container.component.d.ts +9 -30
- package/lib/components/exports.d.ts +3 -5
- package/lib/components/section-header/section-header.component.d.ts +2 -5
- package/lib/components/tables/abstract-table-model.d.ts +2 -2
- package/lib/components/tables/table/column-model.d.ts +1 -1
- package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +1 -0
- package/lib/components/tables/tree-table/tree-node.d.ts +3 -0
- package/lib/components/tables/tree-table/tree-table-component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
- package/lib/components/tables/tree-table/visitable.class.d.ts +22 -0
- package/lib/components/track-by.d.ts +0 -9
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +3 -14
- package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
- package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +1 -2
- package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +1 -2
- package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +1 -2
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +0 -1
- package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +12 -0
- package/lib/interaction/components/input-activities/input-activity-data.d.ts +11 -0
- package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +8 -0
- package/lib/interaction/components/input-activities/select-input-activity.d.ts +3 -11
- package/lib/interaction/components/input-activities/string-input-activity.d.ts +2 -6
- package/lib/interaction/exports.d.ts +3 -5
- package/lib/place/place-component.d.ts +1 -6
- package/lib/place/place-router.d.ts +2 -2
- package/package.json +16 -16
- package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
- package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +3 -5
- package/schematics/component/index.js +1 -1
- package/schematics/component/index.js.map +1 -1
- package/schematics/component/templates/component/__name@dasherize__.component.ts.template +1 -1
- package/schematics/place-routes/place-class-scanner.js +1 -3
- package/schematics/place-routes/place-class-scanner.js.map +1 -1
- package/schematics/utils/build-context.d.ts +3 -6
- package/schematics/utils/build-context.js +3 -3
- package/schematics/utils/build-context.js.map +1 -1
- package/schematics/utils/workspace.d.ts +0 -1
- package/schematics/utils/workspace.js +0 -6
- package/schematics/utils/workspace.js.map +1 -1
- package/assets/activities/activities.scss +0 -77
- package/assets/activities/input-activities.scss +0 -36
- package/assets/cards.scss +0 -17
- package/assets/empty-state.scss +0 -11
- package/assets/forms/mixins.scss +0 -6
- package/assets/interaction/editor/inline-string-editor.scss +0 -100
- package/cypress/component-builder.d.ts +0 -71
- package/cypress/components/aup-abstract-activity.d.ts +0 -31
- package/cypress/components/aup-abstract-table.d.ts +0 -18
- package/cypress/components/aup-activity.d.ts +0 -9
- package/cypress/components/aup-alert-dialog.d.ts +0 -27
- package/cypress/components/aup-alert.d.ts +0 -9
- package/cypress/components/aup-confirm-dialog.d.ts +0 -27
- package/cypress/components/aup-confirm.d.ts +0 -11
- package/cypress/components/aup-empty-state.d.ts +0 -4
- package/cypress/components/aup-modal-activity.d.ts +0 -24
- package/cypress/components/aup-modal-mixin.d.ts +0 -23
- package/cypress/components/aup-tree-table.d.ts +0 -16
- package/cypress/components/form-element-mixin.d.ts +0 -22
- package/cypress/components/mat-checkbox.d.ts +0 -31
- package/cypress/components/popup/aup-abstract-popup-menu.d.ts +0 -15
- package/cypress/components/popup/aup-more-menu.d.ts +0 -5
- package/cypress/components/popup/aup-popup-menu-panel.d.ts +0 -3
- package/cypress/components/popup/aup-popup-menu.d.ts +0 -7
- package/cypress/components/table/aup-table-cell.d.ts +0 -9
- package/cypress/components/table/aup-table-column.d.ts +0 -10
- package/cypress/components/table/aup-table-row.d.ts +0 -17
- package/cypress/components/table/aup-table-selection-cell.d.ts +0 -5
- package/cypress/components/table/aup-table-selection-column.d.ts +0 -5
- package/cypress/element-locator.d.ts +0 -8
- package/cypress/page-builder.d.ts +0 -9
- package/esm2015/cypress/component-builder.js +0 -92
- package/esm2015/cypress/component-builder.js.map +0 -1
- package/esm2015/cypress/component-builder.metadata.json +0 -1
- package/esm2015/cypress/components/aup-abstract-activity.js +0 -12
- package/esm2015/cypress/components/aup-abstract-activity.js.map +0 -1
- package/esm2015/cypress/components/aup-abstract-activity.metadata.json +0 -1
- package/esm2015/cypress/components/aup-abstract-table.js +0 -50
- package/esm2015/cypress/components/aup-abstract-table.js.map +0 -1
- package/esm2015/cypress/components/aup-abstract-table.metadata.json +0 -1
- package/esm2015/cypress/components/aup-activity.js +0 -13
- package/esm2015/cypress/components/aup-activity.js.map +0 -1
- package/esm2015/cypress/components/aup-activity.metadata.json +0 -1
- package/esm2015/cypress/components/aup-alert-dialog.js +0 -8
- package/esm2015/cypress/components/aup-alert-dialog.js.map +0 -1
- package/esm2015/cypress/components/aup-alert-dialog.metadata.json +0 -1
- package/esm2015/cypress/components/aup-alert.js +0 -13
- package/esm2015/cypress/components/aup-alert.js.map +0 -1
- package/esm2015/cypress/components/aup-alert.metadata.json +0 -1
- package/esm2015/cypress/components/aup-confirm-dialog.js +0 -8
- package/esm2015/cypress/components/aup-confirm-dialog.js.map +0 -1
- package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +0 -1
- package/esm2015/cypress/components/aup-confirm.js +0 -19
- package/esm2015/cypress/components/aup-confirm.js.map +0 -1
- package/esm2015/cypress/components/aup-confirm.metadata.json +0 -1
- package/esm2015/cypress/components/aup-empty-state.js +0 -7
- package/esm2015/cypress/components/aup-empty-state.js.map +0 -1
- package/esm2015/cypress/components/aup-empty-state.metadata.json +0 -1
- package/esm2015/cypress/components/aup-modal-activity.js +0 -5
- package/esm2015/cypress/components/aup-modal-activity.js.map +0 -1
- package/esm2015/cypress/components/aup-modal-activity.metadata.json +0 -1
- package/esm2015/cypress/components/aup-modal-mixin.js +0 -18
- package/esm2015/cypress/components/aup-modal-mixin.js.map +0 -1
- package/esm2015/cypress/components/aup-modal-mixin.metadata.json +0 -1
- package/esm2015/cypress/components/aup-tree-table.js +0 -34
- package/esm2015/cypress/components/aup-tree-table.js.map +0 -1
- package/esm2015/cypress/components/aup-tree-table.metadata.json +0 -1
- package/esm2015/cypress/components/form-element-mixin.js +0 -11
- package/esm2015/cypress/components/form-element-mixin.js.map +0 -1
- package/esm2015/cypress/components/form-element-mixin.metadata.json +0 -1
- package/esm2015/cypress/components/mat-checkbox.js +0 -34
- package/esm2015/cypress/components/mat-checkbox.js.map +0 -1
- package/esm2015/cypress/components/mat-checkbox.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +0 -33
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-more-menu.js +0 -8
- package/esm2015/cypress/components/popup/aup-more-menu.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +0 -4
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu.js +0 -12
- package/esm2015/cypress/components/popup/aup-popup-menu.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-cell.js +0 -14
- package/esm2015/cypress/components/table/aup-table-cell.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-cell.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-column.js +0 -19
- package/esm2015/cypress/components/table/aup-table-column.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-column.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-row.js +0 -28
- package/esm2015/cypress/components/table/aup-table-row.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-row.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-cell.js +0 -6
- package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-column.js +0 -6
- package/esm2015/cypress/components/table/aup-table-selection-column.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +0 -1
- package/esm2015/cypress/element-locator.js +0 -16
- package/esm2015/cypress/element-locator.js.map +0 -1
- package/esm2015/cypress/element-locator.metadata.json +0 -1
- package/esm2015/cypress/page-builder.js +0 -16
- package/esm2015/cypress/page-builder.js.map +0 -1
- package/esm2015/cypress/page-builder.metadata.json +0 -1
- package/esm2015/lib/components/cards/abstract-card-container.component.js +0 -29
- package/esm2015/lib/components/cards/abstract-card-container.component.js.map +0 -1
- package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +0 -1
- package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.js +0 -123
- package/esm2015/lib/components/cards/card-container/card-container.component.js.map +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.js +0 -78
- package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/labelled-value/labelled-value.component.js +0 -22
- package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +0 -1
- package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +0 -1
- package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.js +0 -45
- package/esm2015/lib/components/loading-container/loading-container.component.js.map +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.metadata.json +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +0 -77
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/edit-context.js +0 -2
- package/esm2015/lib/interaction/components/editors/edit-context.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +0 -50
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +0 -161
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.js +0 -95
- package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +0 -1
- package/lib/components/cards/abstract-card-container.component.d.ts +0 -11
- package/lib/components/cards/card-stack/card-stack.component.d.ts +0 -65
- package/lib/components/labelled-value/labelled-value.component.d.ts +0 -7
- package/lib/components/loading-container/loading-container.component.d.ts +0 -11
- package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +0 -39
- package/lib/interaction/components/editors/edit-context.d.ts +0 -3
- package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +0 -24
- package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +0 -57
- package/lib/interaction/components/input-activities/input-activity.d.ts +0 -41
|
@@ -1,48 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { lang, Mixin } from '@coolon/typescript-utilities';
|
|
2
2
|
import * as _ from 'lodash';
|
|
3
|
-
import { __decorate, __metadata } from 'tslib';
|
|
4
|
-
import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
|
|
5
3
|
import { DefaultUrlSerializer } from '@angular/router';
|
|
6
4
|
|
|
7
|
-
var ElementLocator;
|
|
8
|
-
(function (ElementLocator) {
|
|
9
|
-
function findByCssSelector(selector) {
|
|
10
|
-
return parent => parent.dom().find(selector);
|
|
11
|
-
}
|
|
12
|
-
ElementLocator.findByCssSelector = findByCssSelector;
|
|
13
|
-
function findByTextContent(text) {
|
|
14
|
-
return parent => parent.dom().contains(text);
|
|
15
|
-
}
|
|
16
|
-
ElementLocator.findByTextContent = findByTextContent;
|
|
17
|
-
function findBySelectorAndTextContent(selector, text) {
|
|
18
|
-
return parent => parent.dom().contains(selector, text);
|
|
19
|
-
}
|
|
20
|
-
ElementLocator.findBySelectorAndTextContent = findBySelectorAndTextContent;
|
|
21
|
-
})(ElementLocator || (ElementLocator = {}));
|
|
22
|
-
|
|
23
5
|
class PageElement {
|
|
24
|
-
constructor(parent,
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
selectorOrLocator;
|
|
31
|
-
}
|
|
32
|
-
getDefaultElementLocator() {
|
|
33
|
-
return ElementLocator.findByCssSelector(this.getDefaultElementSelector());
|
|
6
|
+
constructor(parent, selector) {
|
|
7
|
+
this.parentElementAccessor = parent instanceof PageElement ? () => parent.element() : parent;
|
|
8
|
+
this.elementAccessStrategy = _.isString(selector) ? {
|
|
9
|
+
findIn: p => p.find(selector),
|
|
10
|
+
shouldNotExist: (p) => p.find(selector).should('not.exist')
|
|
11
|
+
} : selector;
|
|
34
12
|
}
|
|
35
|
-
|
|
36
|
-
|
|
13
|
+
element() {
|
|
14
|
+
const parent = this.getParentElement();
|
|
15
|
+
return parent ? this.elementAccessStrategy.findIn(parent) : undefined;
|
|
37
16
|
}
|
|
38
|
-
|
|
39
|
-
return this.
|
|
17
|
+
getParentElement() {
|
|
18
|
+
return this.parentElementAccessor ? this.parentElementAccessor() : undefined;
|
|
40
19
|
}
|
|
41
20
|
find(selector) {
|
|
42
|
-
return new PageElement(this, selector);
|
|
21
|
+
return new PageElement(() => this.element(), selector);
|
|
43
22
|
}
|
|
44
23
|
click(text) {
|
|
45
|
-
text ? this.
|
|
24
|
+
text ? this.element().contains(text).click() : this.element().click();
|
|
46
25
|
}
|
|
47
26
|
get should() {
|
|
48
27
|
return this.getShoulder(this.getShouldElement());
|
|
@@ -51,47 +30,113 @@ class PageElement {
|
|
|
51
30
|
return element.should.bind(element);
|
|
52
31
|
}
|
|
53
32
|
getShouldElement() {
|
|
54
|
-
return this.
|
|
33
|
+
return this.element();
|
|
55
34
|
}
|
|
56
35
|
shouldBeVisible() {
|
|
57
36
|
this.should('be.visible');
|
|
58
37
|
}
|
|
59
38
|
shouldNotBeVisible() {
|
|
60
|
-
this.
|
|
39
|
+
if (!this.elementAccessStrategy.shouldNotExist) {
|
|
40
|
+
lang.abstractMethod(this.constructor);
|
|
41
|
+
}
|
|
42
|
+
this.elementAccessStrategy.shouldNotExist(this.getParentElement());
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
let urlSerialiser = new DefaultUrlSerializer();
|
|
47
|
+
class Path {
|
|
48
|
+
constructor(segments) {
|
|
49
|
+
this.segments = segments;
|
|
61
50
|
}
|
|
62
|
-
|
|
63
|
-
|
|
51
|
+
static extractVisitParameters(url) {
|
|
52
|
+
let result = {};
|
|
53
|
+
const urlTree = urlSerialiser.parse(url);
|
|
54
|
+
urlTree.root.children.primary.segments.forEach(s => {
|
|
55
|
+
result = Object.assign(Object.assign({}, result), s.parameters);
|
|
56
|
+
});
|
|
57
|
+
return result;
|
|
64
58
|
}
|
|
65
|
-
|
|
66
|
-
this.
|
|
59
|
+
toUrl(matrixParams) {
|
|
60
|
+
return this.segments.map(s => s.toUrlPart(matrixParams)).join('/');
|
|
67
61
|
}
|
|
68
62
|
}
|
|
63
|
+
(function (Path) {
|
|
64
|
+
function setUrlSerialiser(serialiser) {
|
|
65
|
+
urlSerialiser = serialiser;
|
|
66
|
+
}
|
|
67
|
+
Path.setUrlSerialiser = setUrlSerialiser;
|
|
68
|
+
class Segment {
|
|
69
|
+
constructor(path, params = {}) {
|
|
70
|
+
var _a;
|
|
71
|
+
this.path = path;
|
|
72
|
+
this.routeId = params === null || params === void 0 ? void 0 : params.routeId;
|
|
73
|
+
this.visitParams = (_a = params === null || params === void 0 ? void 0 : params.visitParams) !== null && _a !== void 0 ? _a : [];
|
|
74
|
+
}
|
|
75
|
+
toUrlPart(params) {
|
|
76
|
+
let path = this.path;
|
|
77
|
+
this.visitParams.forEach(p => {
|
|
78
|
+
const value = params[p];
|
|
79
|
+
if (value) {
|
|
80
|
+
path = `${path};${p}=${value}`;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
if (this.routeId && params[this.routeId]) {
|
|
84
|
+
path = path + '/' + params[this.routeId];
|
|
85
|
+
}
|
|
86
|
+
return path;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
Path.Segment = Segment;
|
|
90
|
+
class Builder {
|
|
91
|
+
constructor() {
|
|
92
|
+
this.segments = [];
|
|
93
|
+
}
|
|
94
|
+
segment(name, params) {
|
|
95
|
+
const builder = new Segment(name, params);
|
|
96
|
+
this.segments.push(builder);
|
|
97
|
+
return this;
|
|
98
|
+
}
|
|
99
|
+
getPath() {
|
|
100
|
+
return new Path(this.segments);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
Path.Builder = Builder;
|
|
104
|
+
})(Path || (Path = {}));
|
|
69
105
|
|
|
106
|
+
class FaceAccessor {
|
|
107
|
+
constructor(face) {
|
|
108
|
+
this.face = face;
|
|
109
|
+
}
|
|
110
|
+
findIn(parent) {
|
|
111
|
+
return this.face.text ?
|
|
112
|
+
parent.contains(`aup-command-face`, this.face.text()) :
|
|
113
|
+
this.face.icon ?
|
|
114
|
+
parent.find(`aup-icon[ng-reflect-icon=${this.face.icon()}]`).closest('aup-command-face') :
|
|
115
|
+
undefined;
|
|
116
|
+
}
|
|
117
|
+
shouldNotExist(parent) {
|
|
118
|
+
return this.face.text ?
|
|
119
|
+
parent.should('not.contain', `aup-command-face`, this.face.text()) :
|
|
120
|
+
this.face.icon ?
|
|
121
|
+
parent.should('not.contain', `aup-icon[ng-reflect-icon=${this.face.icon()}]`) :
|
|
122
|
+
undefined;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
70
125
|
class AupCommandFace extends PageElement {
|
|
71
126
|
constructor(parentElement, face) {
|
|
72
|
-
super(parentElement, AupCommandFace.
|
|
73
|
-
}
|
|
74
|
-
static
|
|
75
|
-
|
|
76
|
-
return face.text ?
|
|
77
|
-
parent.dom().contains(`aup-command-face`, face.text()) :
|
|
78
|
-
face.icon ?
|
|
79
|
-
parent.dom().find(`aup-icon[ng-reflect-icon=${face.icon()}]`).closest('aup-command-face') :
|
|
80
|
-
undefined;
|
|
81
|
-
};
|
|
82
|
-
// aot compiler doesn't like lambas
|
|
83
|
-
return locator;
|
|
127
|
+
super(() => parentElement.element(), AupCommandFace.createAccessor(face));
|
|
128
|
+
}
|
|
129
|
+
static createAccessor(face) {
|
|
130
|
+
return new FaceAccessor(face);
|
|
84
131
|
}
|
|
85
132
|
}
|
|
86
133
|
|
|
87
134
|
class AupCommand extends PageElement {
|
|
88
|
-
constructor(parent,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
else {
|
|
94
|
-
return AupCommandFace.createElementLocator(faceOrSelector)(parentElement).closest('aup-command');
|
|
135
|
+
constructor(parent, face) {
|
|
136
|
+
const faceAccessor = AupCommandFace.createAccessor(face);
|
|
137
|
+
super(parent, {
|
|
138
|
+
findIn(parentElement) {
|
|
139
|
+
return faceAccessor.findIn(parentElement).closest('aup-command');
|
|
95
140
|
}
|
|
96
141
|
});
|
|
97
142
|
}
|
|
@@ -104,29 +149,20 @@ class AupCommand extends PageElement {
|
|
|
104
149
|
shouldBeDisabled() {
|
|
105
150
|
this.getButton().should('be.disabled');
|
|
106
151
|
}
|
|
107
|
-
shouldBeEnabled() {
|
|
108
|
-
this.getButton().should('not.be.disabled');
|
|
109
|
-
}
|
|
110
152
|
getButton() {
|
|
111
|
-
return this.
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
class AupEmptyState extends PageElement {
|
|
116
|
-
shouldContainText(text) {
|
|
117
|
-
this.dom().should("contain.text", text);
|
|
153
|
+
return this.element().find('button');
|
|
118
154
|
}
|
|
119
155
|
}
|
|
120
156
|
|
|
121
157
|
class AupInput extends PageElement {
|
|
122
158
|
label() {
|
|
123
|
-
return this.
|
|
159
|
+
return this.element().find('label');
|
|
124
160
|
}
|
|
125
161
|
hint() {
|
|
126
|
-
return this.
|
|
162
|
+
return this.element().find('mat-hint');
|
|
127
163
|
}
|
|
128
164
|
error() {
|
|
129
|
-
return this.
|
|
165
|
+
return this.element().find('mat-error');
|
|
130
166
|
}
|
|
131
167
|
get labelShould() {
|
|
132
168
|
return this.getShoulder(this.label());
|
|
@@ -146,23 +182,11 @@ class AupInput extends PageElement {
|
|
|
146
182
|
errorShouldBe(text) {
|
|
147
183
|
return this.errorShould("have.text", text);
|
|
148
184
|
}
|
|
149
|
-
shouldBeFocused() {
|
|
150
|
-
this.input().should("have.focus");
|
|
151
|
-
}
|
|
152
|
-
shouldNotBeFocused() {
|
|
153
|
-
this.input().should("not.have.focus");
|
|
154
|
-
}
|
|
155
|
-
type(characters) {
|
|
156
|
-
this.input().type(characters);
|
|
157
|
-
}
|
|
158
|
-
hitEnter() {
|
|
159
|
-
this.type("{enter}");
|
|
160
|
-
}
|
|
161
185
|
}
|
|
162
186
|
(function (AupInput) {
|
|
163
187
|
class HtmlInput extends AupInput {
|
|
164
188
|
input() {
|
|
165
|
-
return this.
|
|
189
|
+
return this.element().find('input');
|
|
166
190
|
}
|
|
167
191
|
clear() {
|
|
168
192
|
this.input().clear();
|
|
@@ -183,7 +207,7 @@ class AupInput extends PageElement {
|
|
|
183
207
|
return this.input();
|
|
184
208
|
}
|
|
185
209
|
input() {
|
|
186
|
-
return this.
|
|
210
|
+
return this.element().find('textarea');
|
|
187
211
|
}
|
|
188
212
|
clear() {
|
|
189
213
|
this.input().clear();
|
|
@@ -198,46 +222,6 @@ class AupInput extends PageElement {
|
|
|
198
222
|
AupInput.TextAreaInput = TextAreaInput;
|
|
199
223
|
})(AupInput || (AupInput = {}));
|
|
200
224
|
|
|
201
|
-
class AupPopupMenuPanel extends PageElement {
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
class AupAbstractPopupMenu extends PageElement {
|
|
205
|
-
constructor(parent, locator) {
|
|
206
|
-
super(parent, locator);
|
|
207
|
-
this.popup = new AupPopupMenuPanel(this, p => this.findPopupIn(p));
|
|
208
|
-
}
|
|
209
|
-
findPopupIn(p) {
|
|
210
|
-
return this.getOverlay().find('.mat-menu-panel');
|
|
211
|
-
}
|
|
212
|
-
getOverlay() {
|
|
213
|
-
return this.dom().closest('body').find('.cdk-overlay-container');
|
|
214
|
-
}
|
|
215
|
-
getBackdrop() {
|
|
216
|
-
return this.getOverlay().find('.cdk-overlay-backdrop');
|
|
217
|
-
}
|
|
218
|
-
openPopup() {
|
|
219
|
-
this.shouldNotBeOpen();
|
|
220
|
-
this.click();
|
|
221
|
-
return this.popup;
|
|
222
|
-
}
|
|
223
|
-
closePopup() {
|
|
224
|
-
this.shouldBeOpen();
|
|
225
|
-
this.getBackdrop().click();
|
|
226
|
-
}
|
|
227
|
-
shouldBeOpen() {
|
|
228
|
-
this.popup.shouldBeVisible();
|
|
229
|
-
}
|
|
230
|
-
shouldNotBeOpen() {
|
|
231
|
-
this.dom().closest('body').find('.mat-menu-panel').should("not.exist");
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
class AupMoreMenu extends AupAbstractPopupMenu {
|
|
236
|
-
static create(parent, selector) {
|
|
237
|
-
return new AupMoreMenu(parent, ElementLocator.findByCssSelector(selector !== null && selector !== void 0 ? selector : 'aup-more-menu'));
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
225
|
class AupNavigation extends PageElement {
|
|
242
226
|
click(label) {
|
|
243
227
|
return super.click(label);
|
|
@@ -249,430 +233,137 @@ class AupNavigation extends PageElement {
|
|
|
249
233
|
this.face(label).shouldBeVisible();
|
|
250
234
|
}
|
|
251
235
|
shouldNotHaveLink(label) {
|
|
252
|
-
this.face(label).
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
class AupTableCell extends PageElement {
|
|
257
|
-
rowId() {
|
|
258
|
-
return this.dom().closest('tr').invoke('attr', 'aup-row-id');
|
|
259
|
-
}
|
|
260
|
-
row() {
|
|
261
|
-
const self = this;
|
|
262
|
-
return this.parent.createRow(parent => {
|
|
263
|
-
return self.rowId().then(rowId => parent.dom().find(AupAbstractTable.cssSelectorForTableRowById(rowId)));
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
class AupTableColumn extends PageElement {
|
|
269
|
-
constructor(table, columnId) {
|
|
270
|
-
super(table, AupAbstractTable.cssSelectorForColumnCellRendererById(columnId));
|
|
271
|
-
this.columnId = columnId;
|
|
272
|
-
}
|
|
273
|
-
cellContaining(content) {
|
|
274
|
-
const self = this;
|
|
275
|
-
return new AupTableCell(this.parent, parent => {
|
|
276
|
-
return parent.dom().contains(AupAbstractTable.cssSelectorForColumnCellRendererById(self.columnId), content);
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
rowContaining(content) {
|
|
280
|
-
return this.cellContaining(content).row();
|
|
236
|
+
this.face(label).shouldNotBeVisible();
|
|
281
237
|
}
|
|
282
238
|
}
|
|
283
239
|
|
|
284
|
-
class
|
|
285
|
-
|
|
240
|
+
class AupTable extends PageElement {
|
|
241
|
+
constructor(parentElementAccessor, selector) {
|
|
242
|
+
super(parentElementAccessor, selector);
|
|
286
243
|
}
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
class AupAbstractTable extends PageElement {
|
|
290
244
|
row(rowId) {
|
|
291
|
-
return
|
|
292
|
-
return parent.dom().find(AupAbstractTable.cssSelectorForTableRowById(rowId));
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
rowNumber(rowNumber) {
|
|
296
|
-
return this.createRow(parent => {
|
|
297
|
-
return parent.dom().find(AupAbstractTable.cssSelectorForNthTableRow(rowNumber));
|
|
298
|
-
});
|
|
245
|
+
return new AupTable.Row(() => this.element(), `tr[aup-table-id=${rowId}]`);
|
|
299
246
|
}
|
|
300
247
|
column(columnId) {
|
|
301
|
-
return new
|
|
302
|
-
}
|
|
303
|
-
get selectionColumn() {
|
|
304
|
-
return new AupTableSelectionColumn(this, 'selection-column');
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
__decorate([
|
|
308
|
-
Memoize(),
|
|
309
|
-
__metadata("design:type", AupTableSelectionColumn),
|
|
310
|
-
__metadata("design:paramtypes", [])
|
|
311
|
-
], AupAbstractTable.prototype, "selectionColumn", null);
|
|
312
|
-
(function (AupAbstractTable) {
|
|
313
|
-
function cssSelectorForTableRowById(rowId) {
|
|
314
|
-
return `tbody tr[aup-row-id=${rowId}]`;
|
|
315
|
-
}
|
|
316
|
-
AupAbstractTable.cssSelectorForTableRowById = cssSelectorForTableRowById;
|
|
317
|
-
function cssSelectorForNthTableRow(rowNumber) {
|
|
318
|
-
return `tbody tr:nth-child(${rowNumber})`;
|
|
319
|
-
}
|
|
320
|
-
AupAbstractTable.cssSelectorForNthTableRow = cssSelectorForNthTableRow;
|
|
321
|
-
function cssSelectorForColumnCellRendererById(columnOrId) {
|
|
322
|
-
const columnId = _.isString(columnOrId) ? columnOrId : columnOrId.columnId;
|
|
323
|
-
return `aup-table-cell-renderer[column-id=${columnId}]`;
|
|
324
|
-
}
|
|
325
|
-
AupAbstractTable.cssSelectorForColumnCellRendererById = cssSelectorForColumnCellRendererById;
|
|
326
|
-
function cssSelectorForCell(rowId, columnOrId) {
|
|
327
|
-
return `${cssSelectorForTableRowById(rowId)} ${cssSelectorForColumnCellRendererById(columnOrId)}`;
|
|
328
|
-
}
|
|
329
|
-
AupAbstractTable.cssSelectorForCell = cssSelectorForCell;
|
|
330
|
-
})(AupAbstractTable || (AupAbstractTable = {}));
|
|
331
|
-
|
|
332
|
-
/* tslint:disable:unified-signatures */
|
|
333
|
-
class AupTableRow extends PageElement {
|
|
334
|
-
rowId() {
|
|
335
|
-
return this.dom()
|
|
336
|
-
.invoke('attr', 'aup-row-id');
|
|
337
|
-
}
|
|
338
|
-
shouldHaveRowId(rowId) {
|
|
339
|
-
this.rowId().should('eq', rowId);
|
|
340
|
-
}
|
|
341
|
-
cell(columnOrId) {
|
|
342
|
-
const self = this;
|
|
343
|
-
return new AupTableCell(this.parent, parent => {
|
|
344
|
-
return self.rowId()
|
|
345
|
-
.then(rowId => AupAbstractTable.cssSelectorForCell(rowId, columnOrId))
|
|
346
|
-
.then(selector => parent.dom().find(selector));
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
shouldBeSelected() {
|
|
350
|
-
this.dom().should('have.class', 'aup-row-selected');
|
|
351
|
-
}
|
|
352
|
-
shouldNotBeSelected() {
|
|
353
|
-
this.dom().should('not.have.class', 'aup-row-selected');
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
class AupTable extends AupAbstractTable {
|
|
358
|
-
createRow(locator) {
|
|
359
|
-
return new AupTableRow(this, locator);
|
|
248
|
+
return new AupTable.Column(this, columnId);
|
|
360
249
|
}
|
|
361
250
|
}
|
|
362
|
-
|
|
363
|
-
class
|
|
364
|
-
get treeControlColumn() {
|
|
365
|
-
return new AupTreeTable.TreeControlColumn(this, 'tree-label');
|
|
366
|
-
}
|
|
367
|
-
createRow(locator) {
|
|
368
|
-
return new AupTreeTable.Row(this, locator);
|
|
251
|
+
(function (AupTable) {
|
|
252
|
+
class Row extends PageElement {
|
|
369
253
|
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
], AupTreeTable.prototype, "treeControlColumn", null);
|
|
376
|
-
(function (AupTreeTable) {
|
|
377
|
-
class Row extends AupTableRow {
|
|
378
|
-
shouldBeExpanded() {
|
|
379
|
-
this.dom().should("not.have.class", "aup-node-collapsed");
|
|
254
|
+
AupTable.Row = Row;
|
|
255
|
+
class Column {
|
|
256
|
+
constructor(table, columnId) {
|
|
257
|
+
this.table = table;
|
|
258
|
+
this.columnId = columnId;
|
|
380
259
|
}
|
|
381
|
-
|
|
382
|
-
this
|
|
260
|
+
cell(content) {
|
|
261
|
+
const self = this;
|
|
262
|
+
return new Cell(this.table, {
|
|
263
|
+
findIn(parent) {
|
|
264
|
+
return parent.contains(`aup-table-cell-renderer[column-id=${self.columnId}]`, content);
|
|
265
|
+
}
|
|
266
|
+
});
|
|
383
267
|
}
|
|
384
268
|
}
|
|
385
|
-
|
|
386
|
-
class
|
|
269
|
+
AupTable.Column = Column;
|
|
270
|
+
class Cell extends PageElement {
|
|
387
271
|
}
|
|
388
|
-
|
|
389
|
-
})(
|
|
272
|
+
AupTable.Cell = Cell;
|
|
273
|
+
})(AupTable || (AupTable = {}));
|
|
390
274
|
|
|
391
|
-
function
|
|
275
|
+
function ButtonMixin(Base) {
|
|
392
276
|
return class extends Base {
|
|
393
277
|
constructor(...args) {
|
|
394
278
|
super(...args);
|
|
395
279
|
}
|
|
280
|
+
click() {
|
|
281
|
+
return this.element().click();
|
|
282
|
+
}
|
|
396
283
|
shouldBeDisabled() {
|
|
397
284
|
this.should("be.disabled");
|
|
285
|
+
// this.should("have.css", "color", "rgba(0,0,0,0.26)")
|
|
398
286
|
}
|
|
399
287
|
};
|
|
400
288
|
}
|
|
401
289
|
|
|
402
|
-
class Button extends
|
|
290
|
+
class Button extends ButtonMixin(PageElement) {
|
|
403
291
|
constructor(parentElementAccessor, buttonText) {
|
|
404
|
-
super(parentElementAccessor,
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
super(parentElementAccessor, ElementLocator.findBySelectorAndTextContent('mat-checkbox', text));
|
|
411
|
-
}
|
|
412
|
-
shouldBeChecked() {
|
|
413
|
-
this.hiddenCheckBoxElement().should('be.checked');
|
|
414
|
-
}
|
|
415
|
-
shouldNotBeChecked() {
|
|
416
|
-
this.hiddenCheckBoxElement().should('not.be.checked');
|
|
417
|
-
}
|
|
418
|
-
hiddenCheckBoxElement() {
|
|
419
|
-
return this.dom().find('input[type=checkbox]');
|
|
420
|
-
}
|
|
421
|
-
check() {
|
|
422
|
-
this.hiddenCheckBoxElement().then(el => {
|
|
423
|
-
if (!el.prop('checked')) {
|
|
424
|
-
this.click();
|
|
425
|
-
this.shouldBeChecked();
|
|
426
|
-
}
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
uncheck() {
|
|
430
|
-
this.hiddenCheckBoxElement().then(el => {
|
|
431
|
-
if (el.prop('checked')) {
|
|
432
|
-
this.click();
|
|
433
|
-
this.shouldNotBeChecked();
|
|
292
|
+
super(parentElementAccessor, {
|
|
293
|
+
findIn(parent) {
|
|
294
|
+
return parent.contains('button', buttonText);
|
|
295
|
+
},
|
|
296
|
+
shouldNotExist(parent) {
|
|
297
|
+
return parent.should('not.contain', buttonText);
|
|
434
298
|
}
|
|
435
299
|
});
|
|
436
300
|
}
|
|
437
301
|
}
|
|
438
302
|
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
return new PageElement(this.parentPageElement, selector);
|
|
445
|
-
}
|
|
446
|
-
section(selector, builder) {
|
|
447
|
-
return this.component(PageElement, selector, builder);
|
|
448
|
-
}
|
|
449
|
-
contains(text) {
|
|
450
|
-
return new PageElement(this.parentPageElement, ElementLocator.findByTextContent(text));
|
|
451
|
-
}
|
|
452
|
-
button(text) {
|
|
453
|
-
return new Button(this.parentPageElement, text);
|
|
454
|
-
}
|
|
455
|
-
matCheckbox(text) {
|
|
456
|
-
return new MatCheckbox(this.parentPageElement, text);
|
|
457
|
-
}
|
|
458
|
-
aupStringInput(selector) {
|
|
459
|
-
return new AupInput.HtmlInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-string-input');
|
|
460
|
-
}
|
|
461
|
-
aupTextInput(selector) {
|
|
462
|
-
return new AupInput.TextAreaInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-text-input');
|
|
463
|
-
}
|
|
464
|
-
aupPasswordInput(selector) {
|
|
465
|
-
return new AupInput.HtmlInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-password-input');
|
|
466
|
-
}
|
|
467
|
-
aupNumberInput(selector) {
|
|
468
|
-
return new AupInput.HtmlInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-number-input');
|
|
303
|
+
var Section;
|
|
304
|
+
(function (Section) {
|
|
305
|
+
function create(builder) {
|
|
306
|
+
const impl = new StandAloneSection();
|
|
307
|
+
return Mixin.createProxy(builder(impl), impl);
|
|
469
308
|
}
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
}
|
|
473
|
-
aupTabbedNavigation() {
|
|
474
|
-
return new AupNavigation(this.parentPageElement, 'aup-tabbed-place-navigation');
|
|
475
|
-
}
|
|
476
|
-
aupSideNavigation() {
|
|
477
|
-
return new AupNavigation(this.parentPageElement, 'aup-list-place-nav');
|
|
478
|
-
}
|
|
479
|
-
aupMoreMenu(selector) {
|
|
480
|
-
return AupMoreMenu.create(this.parentPageElement, selector);
|
|
481
|
-
}
|
|
482
|
-
aupTable(selectorOrBuilder, optionalBuilder) {
|
|
483
|
-
return this.component(AupTable, selectorOrBuilder, optionalBuilder);
|
|
484
|
-
}
|
|
485
|
-
aupTreeTable(selectorOrBuilder, optionalBuilder) {
|
|
486
|
-
return this.component(AupTreeTable, selectorOrBuilder, optionalBuilder);
|
|
487
|
-
}
|
|
488
|
-
aupEmptyState(selectorOrBuilder, optionalBuilder) {
|
|
489
|
-
return this.component(AupEmptyState, selectorOrBuilder, optionalBuilder);
|
|
490
|
-
}
|
|
491
|
-
component(klass, selectorOrBuilder, optionalBuilder) {
|
|
492
|
-
const selector = _.isString(selectorOrBuilder) ? selectorOrBuilder : undefined;
|
|
493
|
-
const builder = _.isFunction(selectorOrBuilder) ? selectorOrBuilder : optionalBuilder;
|
|
494
|
-
const element = new klass(this.parentPageElement, selector);
|
|
495
|
-
if (builder) {
|
|
496
|
-
// create the B&E type that the builder has access to
|
|
497
|
-
const decoratedElement = Mixin.createProxy(element, new ComponentBuilder(element));
|
|
498
|
-
// create final type that has the E & T type
|
|
499
|
-
return Mixin.createProxy(decoratedElement, builder(decoratedElement));
|
|
500
|
-
}
|
|
501
|
-
else {
|
|
502
|
-
return element;
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
(function (ComponentBuilder) {
|
|
507
|
-
function Mixin(Base) {
|
|
309
|
+
Section.create = create;
|
|
310
|
+
function Mixin$1(Base) {
|
|
508
311
|
return class extends Base {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
312
|
+
section(selector, section) {
|
|
313
|
+
const impl = new NestedSection(this, selector);
|
|
314
|
+
return Mixin.createProxy(section(impl), impl);
|
|
315
|
+
}
|
|
316
|
+
find(selector) {
|
|
317
|
+
return new PageElement(() => this.element(), selector);
|
|
318
|
+
}
|
|
319
|
+
contains(text) {
|
|
320
|
+
return new PageElement(() => this.element(), {
|
|
321
|
+
findIn: parent => parent.contains(text),
|
|
322
|
+
shouldNotExist: (parent) => parent.should('not.contain', text)
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
button(text) {
|
|
326
|
+
return new Button(() => this.element(), text);
|
|
327
|
+
}
|
|
328
|
+
aupStringInput(selector) {
|
|
329
|
+
return new AupInput.HtmlInput(() => this.element(), selector !== null && selector !== void 0 ? selector : 'aup-string-input');
|
|
330
|
+
}
|
|
331
|
+
aupTextInput(selector) {
|
|
332
|
+
return new AupInput.TextAreaInput(() => this.element(), selector !== null && selector !== void 0 ? selector : 'aup-text-input');
|
|
333
|
+
}
|
|
334
|
+
aupPasswordInput(selector) {
|
|
335
|
+
return new AupInput.HtmlInput(() => this.element(), selector !== null && selector !== void 0 ? selector : 'aup-password-input');
|
|
336
|
+
}
|
|
337
|
+
aupNumberInput(selector) {
|
|
338
|
+
return new AupInput.HtmlInput(() => this.element(), selector !== null && selector !== void 0 ? selector : 'aup-number-input');
|
|
339
|
+
}
|
|
340
|
+
aupCommand(face) {
|
|
341
|
+
return new AupCommand(this, face);
|
|
342
|
+
}
|
|
343
|
+
aupTabbedNavigation() {
|
|
344
|
+
return new AupNavigation(this, 'aup-tabbed-place-navigation');
|
|
345
|
+
}
|
|
346
|
+
aupSideNavigation() {
|
|
347
|
+
return new AupNavigation(() => this.element(), 'aup-list-place-nav');
|
|
348
|
+
}
|
|
349
|
+
aupTable(selector) {
|
|
350
|
+
return new AupTable(() => this.element(), selector !== null && selector !== void 0 ? selector : 'aup-table');
|
|
512
351
|
}
|
|
513
352
|
};
|
|
514
353
|
}
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
class AupAbstractActivity extends ComponentBuilder.Mixin(PageElement) {
|
|
519
|
-
constructor(parent, selector) {
|
|
520
|
-
// @ts-ignore
|
|
521
|
-
super(parent, selector);
|
|
522
|
-
this.title = this.find('aup-activity-title');
|
|
523
|
-
this._confirmCommand = this.builder.aupCommand('[data-cy=confirm-command]');
|
|
524
|
-
this._cancelCommand = this.builder.aupCommand('[data-cy=cancel-command]');
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
class AupAlert extends AupAbstractActivity {
|
|
529
|
-
constructor(parent, selector) {
|
|
530
|
-
super(parent, selector);
|
|
531
|
-
}
|
|
532
|
-
get closeCommand() {
|
|
533
|
-
return this._confirmCommand;
|
|
534
|
-
}
|
|
535
|
-
clickClose() {
|
|
536
|
-
this.closeCommand.click();
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
function AupModalMixin(Base) {
|
|
541
|
-
return class extends Base {
|
|
542
|
-
constructor(...args) {
|
|
543
|
-
super(...args);
|
|
544
|
-
}
|
|
545
|
-
getDefaultElementLocator() {
|
|
546
|
-
return (parent) => {
|
|
547
|
-
return parent.dom().closest('body').find(this.getDefaultElementSelector());
|
|
548
|
-
};
|
|
549
|
-
}
|
|
550
|
-
clickBackdrop() {
|
|
551
|
-
this.dom()
|
|
552
|
-
.closest(`.cdk-overlay-container`)
|
|
553
|
-
.find(`.cdk-overlay-backdrop`).click(-50, -50, { force: true });
|
|
554
|
-
}
|
|
555
|
-
};
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
class AupAlertDialog extends AupModalMixin(AupAlert) {
|
|
559
|
-
constructor(parent, selector) {
|
|
560
|
-
super(parent, selector);
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
class AupConfirm extends AupAbstractActivity {
|
|
565
|
-
constructor(parent, selector) {
|
|
566
|
-
super(parent, selector);
|
|
567
|
-
}
|
|
568
|
-
get confirmCommand() {
|
|
569
|
-
return this._confirmCommand;
|
|
570
|
-
}
|
|
571
|
-
clickConfirm() {
|
|
572
|
-
this.confirmCommand.click();
|
|
573
|
-
}
|
|
574
|
-
get cancelCommand() {
|
|
575
|
-
return this._cancelCommand;
|
|
576
|
-
}
|
|
577
|
-
clickCancel() {
|
|
578
|
-
this.cancelCommand.click();
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
class AupConfirmDialog extends AupModalMixin(AupConfirm) {
|
|
583
|
-
constructor(parent, selector) {
|
|
584
|
-
super(parent, selector);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
class AupActivity extends AupAbstractActivity {
|
|
589
|
-
constructor(parent, selector) {
|
|
590
|
-
super(parent, selector);
|
|
591
|
-
}
|
|
592
|
-
get confirmCommand() {
|
|
593
|
-
return this._confirmCommand;
|
|
594
|
-
}
|
|
595
|
-
get cancelCommand() {
|
|
596
|
-
return this._cancelCommand;
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
class AupModalActivity extends AupModalMixin(AupActivity) {
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
class PageBuilder extends ComponentBuilder {
|
|
604
|
-
aupModalActivity(selector, builder) {
|
|
605
|
-
return this.component(AupModalActivity, selector, builder);
|
|
606
|
-
}
|
|
607
|
-
aupModalAlert(builder) {
|
|
608
|
-
return this.component(AupAlertDialog, builder);
|
|
354
|
+
Section.Mixin = Mixin$1;
|
|
355
|
+
class NestedSection extends Mixin$1(PageElement) {
|
|
609
356
|
}
|
|
610
|
-
|
|
611
|
-
return this.component(AupConfirmDialog, builder);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
let urlSerialiser = new DefaultUrlSerializer();
|
|
616
|
-
class Path {
|
|
617
|
-
constructor(segments) {
|
|
618
|
-
this.segments = segments;
|
|
619
|
-
}
|
|
620
|
-
static extractVisitParameters(url) {
|
|
621
|
-
var _a, _b;
|
|
622
|
-
let result = {};
|
|
623
|
-
const urlTree = urlSerialiser.parse(url);
|
|
624
|
-
const urlSegments = (_b = (_a = urlTree.root.children.primary) === null || _a === void 0 ? void 0 : _a.segments) !== null && _b !== void 0 ? _b : [];
|
|
625
|
-
urlSegments === null || urlSegments === void 0 ? void 0 : urlSegments.forEach(s => {
|
|
626
|
-
result = Object.assign(Object.assign({}, result), s.parameters);
|
|
627
|
-
});
|
|
628
|
-
return result;
|
|
629
|
-
}
|
|
630
|
-
toUrl(matrixParams) {
|
|
631
|
-
return this.segments.map(s => s.toUrlPart(matrixParams)).join('/');
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
(function (Path) {
|
|
635
|
-
function setUrlSerialiser(serialiser) {
|
|
636
|
-
urlSerialiser = serialiser;
|
|
637
|
-
}
|
|
638
|
-
Path.setUrlSerialiser = setUrlSerialiser;
|
|
639
|
-
class Segment {
|
|
640
|
-
constructor(path, params = {}) {
|
|
641
|
-
var _a;
|
|
642
|
-
this.path = path;
|
|
643
|
-
this.routeId = params === null || params === void 0 ? void 0 : params.routeId;
|
|
644
|
-
this.visitParams = (_a = params === null || params === void 0 ? void 0 : params.visitParams) !== null && _a !== void 0 ? _a : [];
|
|
645
|
-
}
|
|
646
|
-
toUrlPart(params) {
|
|
647
|
-
let path = this.path;
|
|
648
|
-
this.visitParams.forEach(p => {
|
|
649
|
-
const value = params[p];
|
|
650
|
-
if (value) {
|
|
651
|
-
path = `${path};${p}=${value}`;
|
|
652
|
-
}
|
|
653
|
-
});
|
|
654
|
-
if (this.routeId && params[this.routeId]) {
|
|
655
|
-
path = path + '/' + params[this.routeId];
|
|
656
|
-
}
|
|
657
|
-
return path;
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
Path.Segment = Segment;
|
|
661
|
-
class Builder {
|
|
357
|
+
class StandAloneSection extends Mixin$1(PageElement) {
|
|
662
358
|
constructor() {
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
segment(name, params) {
|
|
666
|
-
const builder = new Segment(name, params);
|
|
667
|
-
this.segments.push(builder);
|
|
668
|
-
return this;
|
|
359
|
+
super(undefined, undefined);
|
|
360
|
+
this.rootElementSelector = 'body';
|
|
669
361
|
}
|
|
670
|
-
|
|
671
|
-
return
|
|
362
|
+
element() {
|
|
363
|
+
return cy.get(this.rootElementSelector);
|
|
672
364
|
}
|
|
673
365
|
}
|
|
674
|
-
|
|
675
|
-
})(Path || (Path = {}));
|
|
366
|
+
})(Section || (Section = {}));
|
|
676
367
|
|
|
677
368
|
class Page extends PageElement {
|
|
678
369
|
constructor(path) {
|
|
@@ -680,7 +371,7 @@ class Page extends PageElement {
|
|
|
680
371
|
this.path = path;
|
|
681
372
|
this.rootElementSelector = 'body';
|
|
682
373
|
}
|
|
683
|
-
|
|
374
|
+
element() {
|
|
684
375
|
return cy.get(this.rootElementSelector);
|
|
685
376
|
}
|
|
686
377
|
visit(visitParams, queryParams) {
|
|
@@ -690,9 +381,7 @@ class Page extends PageElement {
|
|
|
690
381
|
tryAndVisit(params, queryParams) {
|
|
691
382
|
const path = this.path.toUrl(params !== null && params !== void 0 ? params : {});
|
|
692
383
|
const queryString = queryParams ? `?${new URLSearchParams(queryParams).toString()}` : '';
|
|
693
|
-
|
|
694
|
-
cy.log(`Visiting -> ${fullPath}`);
|
|
695
|
-
cy.visit(fullPath);
|
|
384
|
+
cy.visit(`/${path}${queryString}`);
|
|
696
385
|
}
|
|
697
386
|
shouldHaveActivityIds(...ids) {
|
|
698
387
|
cy.location('search').should('contain', `?aup-interactions=${ids.join('--')}`);
|
|
@@ -705,73 +394,71 @@ class Page extends PageElement {
|
|
|
705
394
|
}
|
|
706
395
|
shouldBeActive(withParameters) {
|
|
707
396
|
// Note: cy.window() doesn't return a promise... it's a chainable.
|
|
708
|
-
cy[
|
|
397
|
+
cy["waitUntil"](() => {
|
|
709
398
|
return cy.window().then(window => {
|
|
710
399
|
return window['aup.PlaceRouter'] && !window['aup.PlaceRouter'].isNavigating();
|
|
711
400
|
});
|
|
712
401
|
});
|
|
713
402
|
if (withParameters) {
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
const expected = parameters[param];
|
|
722
|
-
const actual = urlParams[param];
|
|
723
|
-
// cy.log(`${actual} - ${expected}`);
|
|
724
|
-
expect(urlParams[param]).to.equal(expected);
|
|
403
|
+
cy.location('pathname').then(path => {
|
|
404
|
+
const urlParams = Path.extractVisitParameters(path);
|
|
405
|
+
Object.keys(withParameters).forEach(param => {
|
|
406
|
+
const expected = withParameters[param];
|
|
407
|
+
// @ts-ignore
|
|
408
|
+
expect(urlParams[param]).to.equal(expected);
|
|
409
|
+
});
|
|
725
410
|
});
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
shouldNotHaveParameter(name) {
|
|
729
|
-
this.getUrlParameters().then(params => {
|
|
730
|
-
expect(params[name]).to.be.undefined;
|
|
731
|
-
});
|
|
732
|
-
}
|
|
733
|
-
getUrlParameters() {
|
|
734
|
-
return cy.location('pathname').then(path => Path.extractVisitParameters(path));
|
|
411
|
+
}
|
|
735
412
|
}
|
|
736
413
|
}
|
|
737
414
|
(function (Page) {
|
|
738
|
-
function create(pathOrPathBuilder,
|
|
415
|
+
function create(pathOrPathBuilder, page) {
|
|
739
416
|
const pathBuilder = new Path.Builder();
|
|
740
417
|
if (_.isString(pathOrPathBuilder)) {
|
|
741
|
-
pathOrPathBuilder.split(
|
|
418
|
+
pathOrPathBuilder.split("/").filter(p => !_.isEmpty(p)).forEach(p => pathBuilder.segment(p));
|
|
742
419
|
}
|
|
743
420
|
else {
|
|
744
421
|
pathOrPathBuilder(pathBuilder);
|
|
745
422
|
}
|
|
746
|
-
const
|
|
747
|
-
|
|
748
|
-
return Mixin.createProxy(content, instance);
|
|
423
|
+
const builder = new PageBuilder(pathBuilder.getPath());
|
|
424
|
+
return Mixin.createProxy(page(builder), builder);
|
|
749
425
|
}
|
|
750
426
|
Page.create = create;
|
|
427
|
+
class PageBuilder extends Section.Mixin(Page) {
|
|
428
|
+
}
|
|
429
|
+
Page.PageBuilder = PageBuilder;
|
|
751
430
|
})(Page || (Page = {}));
|
|
752
431
|
|
|
753
432
|
class AupCommandGroup extends PageElement {
|
|
754
433
|
}
|
|
755
434
|
|
|
756
|
-
class
|
|
757
|
-
static create(parent
|
|
758
|
-
|
|
759
|
-
// return new AupCommandGroup(() => findFace().closest('button'));
|
|
435
|
+
class AupMoreMenu extends PageElement {
|
|
436
|
+
static create(parent) {
|
|
437
|
+
return new AupMoreMenu(parent, 'aup-more-menu');
|
|
760
438
|
}
|
|
761
439
|
}
|
|
762
440
|
|
|
763
|
-
class AupPopupMenu extends
|
|
441
|
+
class AupPopupMenu extends PageElement {
|
|
764
442
|
constructor(parentElementAccessor, face) {
|
|
765
|
-
const
|
|
766
|
-
super(parentElementAccessor,
|
|
443
|
+
const accessor = AupCommandFace.createAccessor(face);
|
|
444
|
+
super(parentElementAccessor, {
|
|
445
|
+
findIn(parent) {
|
|
446
|
+
return accessor.findIn(parent).closest('button');
|
|
447
|
+
},
|
|
448
|
+
shouldNotExist(parent) {
|
|
449
|
+
accessor.shouldNotExist(parent);
|
|
450
|
+
}
|
|
451
|
+
});
|
|
767
452
|
}
|
|
768
453
|
static create(parent, face) {
|
|
769
454
|
return new AupPopupMenu(parent, face);
|
|
770
455
|
}
|
|
771
456
|
}
|
|
772
457
|
|
|
773
|
-
class
|
|
774
|
-
|
|
458
|
+
class AupToolBar extends PageElement {
|
|
459
|
+
static create(parent, face) {
|
|
460
|
+
// const findFace = AupCommandFace.createFinder(() => parent.element(), face)
|
|
461
|
+
// return new AupCommandGroup(() => findFace().closest('button'));
|
|
775
462
|
}
|
|
776
463
|
}
|
|
777
464
|
|
|
@@ -783,5 +470,5 @@ class AupTableSelectionCell extends AupTableCell {
|
|
|
783
470
|
* Generated bundle index. Do not edit.
|
|
784
471
|
*/
|
|
785
472
|
|
|
786
|
-
export {
|
|
473
|
+
export { AupCommand, AupCommandFace, AupCommandGroup, AupInput, AupMoreMenu, AupNavigation, AupPopupMenu, AupTable, AupToolBar, Button, ButtonMixin, FaceAccessor, Page, PageElement, Path, Section };
|
|
787
474
|
//# sourceMappingURL=coolon-angular-ui-powerups-cypress.js.map
|