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