@coolon/angular-ui-powerups 12.4.0-alpha.8 → 12.4.0-alpha.80
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/activities.scss +77 -0
- package/assets/activities/input-activities.scss +36 -0
- package/assets/cards.scss +17 -0
- package/assets/empty-state.scss +11 -0
- package/assets/form.scss +10 -2
- package/assets/forms/mixins.scss +6 -0
- package/assets/interaction/editor/inline-string-editor.scss +54 -0
- package/assets/interaction.scss +10 -7
- package/assets/markdown.scss +10 -0
- package/assets/mixins.scss +5 -7
- package/assets/pills.scss +45 -0
- package/assets/styles.scss +11 -15
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +741 -336
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +1435 -448
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/cypress/component-builder.d.ts +71 -0
- package/cypress/components/aup-abstract-activity.d.ts +31 -0
- package/cypress/components/aup-abstract-table.d.ts +18 -0
- package/cypress/components/aup-activity.d.ts +9 -0
- package/cypress/components/aup-alert-dialog.d.ts +27 -0
- package/cypress/components/aup-alert.d.ts +9 -0
- package/cypress/components/aup-command-face.d.ts +2 -8
- package/cypress/components/aup-command.d.ts +2 -1
- package/cypress/components/aup-confirm-dialog.d.ts +27 -0
- package/cypress/components/aup-confirm.d.ts +11 -0
- package/cypress/components/aup-empty-state.d.ts +1 -2
- package/cypress/components/aup-input.d.ts +11 -5
- package/cypress/components/aup-modal-activity.d.ts +24 -0
- package/cypress/components/aup-modal-mixin.d.ts +23 -0
- package/cypress/components/aup-table.d.ts +5 -18
- package/cypress/components/aup-tree-table.d.ts +16 -0
- package/cypress/components/button.d.ts +11 -7
- package/cypress/components/form-element-mixin.d.ts +22 -0
- package/cypress/components/mat-checkbox.d.ts +31 -0
- package/cypress/components/popup/aup-abstract-popup-menu.d.ts +15 -0
- package/cypress/components/popup/aup-more-menu.d.ts +5 -0
- package/cypress/components/popup/aup-popup-menu-panel.d.ts +3 -0
- package/cypress/components/popup/aup-popup-menu.d.ts +7 -0
- package/cypress/components/table/aup-table-cell.d.ts +9 -0
- package/cypress/components/table/aup-table-column.d.ts +10 -0
- package/cypress/components/table/aup-table-row.d.ts +17 -0
- package/cypress/components/table/aup-table-selection-cell.d.ts +5 -0
- package/cypress/components/table/aup-table-selection-column.d.ts +5 -0
- package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
- package/cypress/element-locator.d.ts +8 -0
- package/cypress/exports.d.ts +24 -4
- package/cypress/package.json +1 -1
- package/cypress/page-builder.d.ts +9 -0
- package/cypress/page-element.d.ts +12 -12
- package/cypress/page.d.ts +8 -34
- package/esm2015/cypress/component-builder.js +92 -0
- package/esm2015/cypress/component-builder.js.map +1 -0
- package/esm2015/cypress/component-builder.metadata.json +1 -0
- package/esm2015/cypress/components/aup-abstract-activity.js +12 -0
- package/esm2015/cypress/components/aup-abstract-activity.js.map +1 -0
- package/esm2015/cypress/components/aup-abstract-activity.metadata.json +1 -0
- package/esm2015/cypress/components/aup-abstract-table.js +50 -0
- package/esm2015/cypress/components/aup-abstract-table.js.map +1 -0
- package/esm2015/cypress/components/aup-abstract-table.metadata.json +1 -0
- package/esm2015/cypress/components/aup-activity.js +13 -0
- package/esm2015/cypress/components/aup-activity.js.map +1 -0
- package/esm2015/cypress/components/aup-activity.metadata.json +1 -0
- package/esm2015/cypress/components/aup-alert-dialog.js +8 -0
- package/esm2015/cypress/components/aup-alert-dialog.js.map +1 -0
- package/esm2015/cypress/components/aup-alert-dialog.metadata.json +1 -0
- package/esm2015/cypress/components/aup-alert.js +13 -0
- package/esm2015/cypress/components/aup-alert.js.map +1 -0
- package/esm2015/cypress/components/aup-alert.metadata.json +1 -0
- package/esm2015/cypress/components/aup-command-face.js +11 -22
- 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 +12 -6
- 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-confirm-dialog.js +8 -0
- package/esm2015/cypress/components/aup-confirm-dialog.js.map +1 -0
- package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +1 -0
- package/esm2015/cypress/components/aup-confirm.js +19 -0
- package/esm2015/cypress/components/aup-confirm.js.map +1 -0
- package/esm2015/cypress/components/aup-confirm.metadata.json +1 -0
- package/esm2015/cypress/components/aup-empty-state.js +2 -2
- package/esm2015/cypress/components/aup-empty-state.js.map +1 -1
- package/esm2015/cypress/components/aup-empty-state.metadata.json +1 -1
- package/esm2015/cypress/components/aup-input.js +17 -5
- 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-modal-activity.js +5 -0
- package/esm2015/cypress/components/aup-modal-activity.js.map +1 -0
- package/esm2015/cypress/components/aup-modal-activity.metadata.json +1 -0
- package/esm2015/cypress/components/aup-modal-mixin.js +18 -0
- package/esm2015/cypress/components/aup-modal-mixin.js.map +1 -0
- package/esm2015/cypress/components/aup-modal-mixin.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-table.js +5 -33
- package/esm2015/cypress/components/aup-table.js.map +1 -1
- package/esm2015/cypress/components/aup-table.metadata.json +1 -1
- package/esm2015/cypress/components/aup-tree-table.js +34 -0
- package/esm2015/cypress/components/aup-tree-table.js.map +1 -0
- package/esm2015/cypress/components/aup-tree-table.metadata.json +1 -0
- package/esm2015/cypress/components/button.js +4 -10
- package/esm2015/cypress/components/button.js.map +1 -1
- package/esm2015/cypress/components/button.metadata.json +1 -1
- package/esm2015/cypress/components/form-element-mixin.js +11 -0
- package/esm2015/cypress/components/form-element-mixin.js.map +1 -0
- package/esm2015/cypress/components/form-element-mixin.metadata.json +1 -0
- package/esm2015/cypress/components/mat-checkbox.js +34 -0
- package/esm2015/cypress/components/mat-checkbox.js.map +1 -0
- package/esm2015/cypress/components/mat-checkbox.metadata.json +1 -0
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +33 -0
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +1 -0
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +1 -0
- package/esm2015/cypress/components/popup/aup-more-menu.js +8 -0
- package/esm2015/cypress/components/popup/aup-more-menu.js.map +1 -0
- package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +1 -0
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +4 -0
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +1 -0
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +1 -0
- package/esm2015/cypress/components/popup/aup-popup-menu.js +12 -0
- package/esm2015/cypress/components/popup/aup-popup-menu.js.map +1 -0
- package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +1 -0
- package/esm2015/cypress/components/table/aup-table-cell.js +14 -0
- package/esm2015/cypress/components/table/aup-table-cell.js.map +1 -0
- package/esm2015/cypress/components/table/aup-table-cell.metadata.json +1 -0
- package/esm2015/cypress/components/table/aup-table-column.js +19 -0
- package/esm2015/cypress/components/table/aup-table-column.js.map +1 -0
- package/esm2015/cypress/components/table/aup-table-column.metadata.json +1 -0
- package/esm2015/cypress/components/table/aup-table-row.js +28 -0
- package/esm2015/cypress/components/table/aup-table-row.js.map +1 -0
- package/esm2015/cypress/components/table/aup-table-row.metadata.json +1 -0
- package/esm2015/cypress/components/table/aup-table-selection-cell.js +6 -0
- package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +1 -0
- package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +1 -0
- package/esm2015/cypress/components/table/aup-table-selection-column.js +6 -0
- package/esm2015/cypress/components/table/aup-table-selection-column.js.map +1 -0
- package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +1 -0
- package/esm2015/cypress/element-locator.js +16 -0
- package/esm2015/cypress/element-locator.js.map +1 -0
- package/esm2015/cypress/element-locator.metadata.json +1 -0
- package/esm2015/cypress/exports.js +24 -4
- package/esm2015/cypress/exports.js.map +1 -1
- package/esm2015/cypress/exports.metadata.json +1 -1
- package/esm2015/cypress/page-builder.js +16 -0
- package/esm2015/cypress/page-builder.js.map +1 -0
- package/esm2015/cypress/page-builder.metadata.json +1 -0
- package/esm2015/cypress/page-element.js +26 -19
- package/esm2015/cypress/page-element.js.map +1 -1
- package/esm2015/cypress/page-element.metadata.json +1 -1
- package/esm2015/cypress/page.js +31 -19
- package/esm2015/cypress/page.js.map +1 -1
- package/esm2015/cypress/page.metadata.json +1 -1
- 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/cards/abstract-card-container.component.js +29 -0
- package/esm2015/lib/components/cards/abstract-card-container.component.js.map +1 -0
- package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +1 -0
- package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/cards/card-container/card-container.component.js +123 -0
- package/esm2015/lib/components/cards/card-container/card-container.component.js.map +1 -0
- package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +1 -0
- package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/cards/card-stack/card-stack.component.js +78 -0
- package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +1 -0
- package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +1 -0
- package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +1 -0
- 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 +5 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js.map +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 +43 -25
- 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 +8 -4
- 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 +1 -0
- 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 +2 -2
- package/esm2015/lib/components/forms/select-input/select-input.component.js.map +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/labelled-value/labelled-value.component.js +22 -0
- package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +1 -0
- package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +1 -0
- package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/{card-container/card-container.component.scss.shim.ngstyle.js.map → labelled-value/labelled-value.component.scss.shim.ngstyle.js.map} +1 -1
- package/esm2015/lib/components/loading-container/loading-container.component.js +45 -0
- package/esm2015/lib/components/loading-container/loading-container.component.js.map +1 -0
- package/esm2015/lib/components/loading-container/loading-container.component.metadata.json +1 -0
- package/esm2015/lib/components/loading-container/loading-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/loading-container/loading-container.component.scss.shim.ngstyle.js.map +1 -0
- 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 +12 -5
- 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 +34 -20
- package/esm2015/lib/components/tables/abstract-table-model.js.map +1 -1
- package/esm2015/lib/components/tables/abstract-table-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/edit-session.js.map +1 -0
- package/esm2015/lib/components/tables/{table/edit-session.metadata.json → edit-session.metadata.json} +1 -1
- package/esm2015/lib/components/tables/table/cell-portal-ref.js.map +1 -1
- package/esm2015/lib/components/tables/table/cell-renderer.js.map +1 -1
- package/esm2015/lib/components/tables/table/column-model.js +35 -10
- 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/default-cell-renderer/default-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js +19 -12
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js.map +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-cell-renderer/table-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js.map +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-row-menu/table-row-menu.component.js +0 -2
- package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/table.component.js +14 -13
- package/esm2015/lib/components/tables/table/table.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/table.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/text-search-predicate.js +2 -0
- package/esm2015/lib/components/tables/table/text-search-predicate.js.map +1 -0
- package/esm2015/lib/components/tables/table/text-search-predicate.metadata.json +1 -0
- 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 +21 -13
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js.map +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-label-column-model.js +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-column-model.metadata.json +1 -1
- 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 +3 -2
- 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/text/markdown/markdown.component.js +76 -0
- package/esm2015/lib/components/text/markdown/markdown.component.js.map +1 -0
- package/esm2015/lib/components/text/markdown/markdown.component.metadata.json +1 -0
- package/esm2015/lib/components/text/markdown/markdown.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/text/markdown/markdown.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/track-by.js +12 -0
- 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/command.directive.js +1 -1
- package/esm2015/lib/directives/command.directive.js.map +1 -1
- package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/abstract-interaction-context.js +7 -0
- package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/abstract-interaction-context.metadata.json +1 -1
- package/esm2015/lib/interaction/activity.js +2 -1
- package/esm2015/lib/interaction/activity.js.map +1 -1
- package/esm2015/lib/interaction/alert.js +17 -1
- package/esm2015/lib/interaction/alert.js.map +1 -1
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js +23 -0
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js.map +1 -0
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.js +52 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.js.map +1 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +17 -11
- 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 +3 -3
- 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 +4 -0
- 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 +5 -2
- 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 +5 -2
- 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 +5 -2
- 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-card-activity/add-card-activity.component.js +77 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +1 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +1 -0
- 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 +8 -14
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +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 +8 -31
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js +30 -0
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js.map +1 -0
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +7 -26
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/editors/edit-context.js +2 -0
- package/esm2015/lib/interaction/components/editors/edit-context.js.map +1 -0
- package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +1 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +50 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +1 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +1 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +161 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +1 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +10 -3
- 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/input-activity.js +95 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +1 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +5 -3
- 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 +6 -4
- 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 +2 -1
- 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 +8 -4
- package/esm2015/lib/interaction/exports.js.map +1 -1
- package/esm2015/lib/interaction/exports.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.js +29 -9
- 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/interaction/services/interaction.service.js +1 -1
- package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.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 +2 -1
- 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 +2 -1
- package/esm2015/lib/place/guards/place.guard.js.map +1 -1
- package/esm2015/lib/place/place-component.js +31 -4
- 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 +11 -14
- 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/visit.js +5 -1
- package/esm2015/lib/place/visit.js.map +1 -1
- package/esm2015/lib/place/visit.metadata.json +1 -1
- package/esm2015/lib/services/exports.js +2 -0
- package/esm2015/lib/services/exports.js.map +1 -1
- package/esm2015/lib/services/exports.metadata.json +1 -1
- package/esm2015/lib/services/markdown/markdown.service.js +25 -0
- package/esm2015/lib/services/markdown/markdown.service.js.map +1 -0
- package/esm2015/lib/services/markdown/markdown.service.metadata.json +1 -0
- package/esm2015/lib/services/markdown/markdown.service.ngfactory.js.map +1 -0
- package/esm2015/lib/services/markdown/pill-plugin.js +38 -0
- package/esm2015/lib/services/markdown/pill-plugin.js.map +1 -0
- package/esm2015/lib/services/markdown/pill-plugin.metadata.json +1 -0
- package/fesm2015/coolon-angular-ui-powerups-cypress.js +546 -244
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +1198 -353
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/cards/abstract-card-container.component.d.ts +11 -0
- package/lib/components/{card-container → cards/card-container}/card-container.component.d.ts +30 -9
- package/lib/components/cards/card-stack/card-stack.component.d.ts +65 -0
- package/lib/components/commands/command-face/command-face.component.d.ts +1 -0
- package/lib/components/exports.d.ts +8 -4
- package/lib/components/labelled-value/labelled-value.component.d.ts +7 -0
- package/lib/components/loading-container/loading-container.component.d.ts +11 -0
- package/lib/components/section-header/section-header.component.d.ts +5 -2
- package/lib/components/tables/abstract-table-model.d.ts +10 -7
- package/lib/components/tables/{table/edit-session.d.ts → edit-session.d.ts} +3 -3
- package/lib/components/tables/table/cell-portal-ref.d.ts +1 -1
- package/lib/components/tables/table/cell-renderer.d.ts +2 -0
- package/lib/components/tables/table/column-model.d.ts +14 -5
- package/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.d.ts +2 -1
- package/lib/components/tables/table/edit-row-controls/edit-row-controls.component.d.ts +4 -2
- package/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.d.ts +1 -1
- package/lib/components/tables/table/table-row-menu/table-row-menu.component.d.ts +2 -3
- package/lib/components/tables/table/table.component.d.ts +13 -12
- package/lib/components/tables/table/text-search-predicate.d.ts +1 -0
- package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +0 -1
- package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +2 -3
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +2 -3
- package/lib/components/tables/tree-table/tree-table-component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-table-model.d.ts +4 -5
- package/lib/components/text/markdown/markdown.component.d.ts +28 -0
- package/lib/components/track-by.d.ts +9 -0
- package/lib/interaction/abstract-interaction-context.d.ts +1 -0
- package/lib/interaction/alert.d.ts +7 -1
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +7 -0
- package/lib/interaction/components/abstract-dialog.component.d.ts +17 -0
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +14 -3
- 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 +2 -1
- package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +2 -1
- package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +2 -1
- package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +39 -0
- package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +2 -7
- package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +2 -10
- package/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.d.ts +12 -0
- package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +2 -9
- package/lib/interaction/components/editors/edit-context.d.ts +3 -0
- package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +24 -0
- package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +57 -0
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +2 -0
- package/lib/interaction/components/input-activities/input-activity.d.ts +41 -0
- package/lib/interaction/components/input-activities/select-input-activity.d.ts +11 -3
- package/lib/interaction/components/input-activities/string-input-activity.d.ts +6 -2
- package/lib/interaction/exports.d.ts +8 -4
- package/lib/interaction/interaction-context.d.ts +1 -0
- package/lib/place/place-component.d.ts +6 -1
- package/lib/place/place-router.d.ts +2 -2
- package/lib/services/exports.d.ts +2 -0
- package/lib/services/markdown/markdown.service.d.ts +6 -0
- package/lib/services/markdown/pill-plugin.d.ts +15 -0
- package/package.json +17 -16
- package/schematics/activity/index.js +1 -1
- package/schematics/activity/index.js.map +1 -1
- package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
- package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +5 -3
- package/schematics/aup-i18n/index.js +1 -1
- package/schematics/aup-i18n/index.js.map +1 -1
- 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 +3 -1
- package/schematics/place-routes/place-class-scanner.js.map +1 -1
- package/schematics/utils/build-context.d.ts +6 -3
- package/schematics/utils/build-context.js +3 -3
- package/schematics/utils/build-context.js.map +1 -1
- package/schematics/utils/workspace.d.ts +1 -0
- package/schematics/utils/workspace.js +11 -3
- package/schematics/utils/workspace.js.map +1 -1
- package/assets/activities.scss +0 -70
- package/cypress/components/aup-more-menu.d.ts +0 -4
- package/cypress/components/aup-popup-menu.d.ts +0 -7
- package/cypress/components/button-mixin.d.ts +0 -19
- package/cypress/section.d.ts +0 -55
- package/esm2015/cypress/components/aup-more-menu.js +0 -7
- package/esm2015/cypress/components/aup-more-menu.js.map +0 -1
- package/esm2015/cypress/components/aup-more-menu.metadata.json +0 -1
- package/esm2015/cypress/components/aup-popup-menu.js +0 -19
- package/esm2015/cypress/components/aup-popup-menu.js.map +0 -1
- package/esm2015/cypress/components/aup-popup-menu.metadata.json +0 -1
- package/esm2015/cypress/components/button-mixin.js +0 -15
- package/esm2015/cypress/components/button-mixin.js.map +0 -1
- package/esm2015/cypress/components/button-mixin.metadata.json +0 -1
- package/esm2015/cypress/section.js +0 -76
- package/esm2015/cypress/section.js.map +0 -1
- package/esm2015/cypress/section.metadata.json +0 -1
- package/esm2015/lib/components/card-container/card-container.component.js +0 -84
- package/esm2015/lib/components/card-container/card-container.component.js.map +0 -1
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +0 -1
- package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/tables/table/edit-session.js.map +0 -1
- package/esm2015/lib/components/tables/tree-table/tree-node.js +0 -2
- package/esm2015/lib/components/tables/tree-table/tree-node.js.map +0 -1
- package/esm2015/lib/components/tables/tree-table/tree-node.metadata.json +0 -1
- package/esm2015/lib/components/tables/tree-table/visitable.class.js +0 -26
- package/esm2015/lib/components/tables/tree-table/visitable.class.js.map +0 -1
- package/esm2015/lib/components/tables/tree-table/visitable.class.metadata.json +0 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +0 -43
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +0 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +0 -2
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +0 -1
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +0 -2
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +0 -1
- package/esm2015/lib/interaction/result.js +0 -4
- package/esm2015/lib/interaction/result.js.map +0 -1
- package/esm2015/lib/interaction/result.metadata.json +0 -1
- package/lib/components/tables/tree-table/tree-node.d.ts +0 -3
- package/lib/components/tables/tree-table/visitable.class.d.ts +0 -22
- package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +0 -12
- package/lib/interaction/components/input-activities/input-activity-data.d.ts +0 -11
- package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +0 -8
- package/lib/interaction/result.d.ts +0 -8
- /package/esm2015/lib/components/tables/{table/edit-session.js → edit-session.js} +0 -0
|
@@ -1,27 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Stringy, 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';
|
|
3
5
|
import { DefaultUrlSerializer } from '@angular/router';
|
|
4
6
|
|
|
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
|
+
|
|
5
23
|
class PageElement {
|
|
6
|
-
constructor(parent,
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
24
|
+
constructor(parent, selectorOrLocator) {
|
|
25
|
+
this.parent = parent;
|
|
26
|
+
this.domElementLocator = _.isNil(selectorOrLocator) ?
|
|
27
|
+
this.getDefaultElementLocator() :
|
|
28
|
+
_.isString(selectorOrLocator) ?
|
|
29
|
+
ElementLocator.findByCssSelector(selectorOrLocator) :
|
|
30
|
+
selectorOrLocator;
|
|
12
31
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return parent ? this.elementAccessStrategy.findIn(parent) : undefined;
|
|
32
|
+
getDefaultElementLocator() {
|
|
33
|
+
return ElementLocator.findByCssSelector(this.getDefaultElementSelector());
|
|
16
34
|
}
|
|
17
|
-
|
|
18
|
-
return
|
|
35
|
+
getDefaultElementSelector() {
|
|
36
|
+
return Stringy.from(this.constructor.name).dasherize().toString();
|
|
37
|
+
}
|
|
38
|
+
dom() {
|
|
39
|
+
return this.domElementLocator(this.parent);
|
|
19
40
|
}
|
|
20
41
|
find(selector) {
|
|
21
|
-
return new PageElement(
|
|
42
|
+
return new PageElement(this, selector);
|
|
22
43
|
}
|
|
23
44
|
click(text) {
|
|
24
|
-
text ? this.
|
|
45
|
+
text ? this.dom().contains(text).click() : this.dom().click();
|
|
25
46
|
}
|
|
26
47
|
get should() {
|
|
27
48
|
return this.getShoulder(this.getShouldElement());
|
|
@@ -30,115 +51,47 @@ class PageElement {
|
|
|
30
51
|
return element.should.bind(element);
|
|
31
52
|
}
|
|
32
53
|
getShouldElement() {
|
|
33
|
-
return this.
|
|
54
|
+
return this.dom();
|
|
34
55
|
}
|
|
35
56
|
shouldBeVisible() {
|
|
36
57
|
this.should('be.visible');
|
|
37
58
|
}
|
|
38
59
|
shouldNotBeVisible() {
|
|
39
|
-
|
|
40
|
-
lang.abstractMethod(this.constructor);
|
|
41
|
-
}
|
|
42
|
-
this.elementAccessStrategy.shouldNotExist(this.getParentElement());
|
|
60
|
+
this.should('not.be.visible');
|
|
43
61
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
let urlSerialiser = new DefaultUrlSerializer();
|
|
47
|
-
class Path {
|
|
48
|
-
constructor(segments) {
|
|
49
|
-
this.segments = segments;
|
|
62
|
+
shouldExist() {
|
|
63
|
+
this.dom().should('exist');
|
|
50
64
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
let result = {};
|
|
54
|
-
const urlTree = urlSerialiser.parse(url);
|
|
55
|
-
const urlSegments = (_b = (_a = urlTree.root.children.primary) === null || _a === void 0 ? void 0 : _a.segments) !== null && _b !== void 0 ? _b : [];
|
|
56
|
-
urlSegments === null || urlSegments === void 0 ? void 0 : urlSegments.forEach(s => {
|
|
57
|
-
result = Object.assign(Object.assign({}, result), s.parameters);
|
|
58
|
-
});
|
|
59
|
-
return result;
|
|
60
|
-
}
|
|
61
|
-
toUrl(matrixParams) {
|
|
62
|
-
return this.segments.map(s => s.toUrlPart(matrixParams)).join('/');
|
|
65
|
+
shouldNotExist() {
|
|
66
|
+
this.dom().should('not.exist');
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
|
-
(function (Path) {
|
|
66
|
-
function setUrlSerialiser(serialiser) {
|
|
67
|
-
urlSerialiser = serialiser;
|
|
68
|
-
}
|
|
69
|
-
Path.setUrlSerialiser = setUrlSerialiser;
|
|
70
|
-
class Segment {
|
|
71
|
-
constructor(path, params = {}) {
|
|
72
|
-
var _a;
|
|
73
|
-
this.path = path;
|
|
74
|
-
this.routeId = params === null || params === void 0 ? void 0 : params.routeId;
|
|
75
|
-
this.visitParams = (_a = params === null || params === void 0 ? void 0 : params.visitParams) !== null && _a !== void 0 ? _a : [];
|
|
76
|
-
}
|
|
77
|
-
toUrlPart(params) {
|
|
78
|
-
let path = this.path;
|
|
79
|
-
this.visitParams.forEach(p => {
|
|
80
|
-
const value = params[p];
|
|
81
|
-
if (value) {
|
|
82
|
-
path = `${path};${p}=${value}`;
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
if (this.routeId && params[this.routeId]) {
|
|
86
|
-
path = path + '/' + params[this.routeId];
|
|
87
|
-
}
|
|
88
|
-
return path;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
Path.Segment = Segment;
|
|
92
|
-
class Builder {
|
|
93
|
-
constructor() {
|
|
94
|
-
this.segments = [];
|
|
95
|
-
}
|
|
96
|
-
segment(name, params) {
|
|
97
|
-
const builder = new Segment(name, params);
|
|
98
|
-
this.segments.push(builder);
|
|
99
|
-
return this;
|
|
100
|
-
}
|
|
101
|
-
getPath() {
|
|
102
|
-
return new Path(this.segments);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
Path.Builder = Builder;
|
|
106
|
-
})(Path || (Path = {}));
|
|
107
69
|
|
|
108
|
-
class FaceAccessor {
|
|
109
|
-
constructor(face) {
|
|
110
|
-
this.face = face;
|
|
111
|
-
}
|
|
112
|
-
findIn(parent) {
|
|
113
|
-
return this.face.text ?
|
|
114
|
-
parent.contains(`aup-command-face`, this.face.text()) :
|
|
115
|
-
this.face.icon ?
|
|
116
|
-
parent.find(`aup-icon[ng-reflect-icon=${this.face.icon()}]`).closest('aup-command-face') :
|
|
117
|
-
undefined;
|
|
118
|
-
}
|
|
119
|
-
shouldNotExist(parent) {
|
|
120
|
-
return this.face.text ?
|
|
121
|
-
parent.should('not.contain', `aup-command-face`, this.face.text()) :
|
|
122
|
-
this.face.icon ?
|
|
123
|
-
parent.should('not.contain', `aup-icon[ng-reflect-icon=${this.face.icon()}]`) :
|
|
124
|
-
undefined;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
70
|
class AupCommandFace extends PageElement {
|
|
128
71
|
constructor(parentElement, face) {
|
|
129
|
-
super(
|
|
130
|
-
}
|
|
131
|
-
static
|
|
132
|
-
|
|
72
|
+
super(parentElement, AupCommandFace.createElementLocator(face));
|
|
73
|
+
}
|
|
74
|
+
static createElementLocator(face) {
|
|
75
|
+
const locator = parent => {
|
|
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;
|
|
133
84
|
}
|
|
134
85
|
}
|
|
135
86
|
|
|
136
87
|
class AupCommand extends PageElement {
|
|
137
|
-
constructor(parent,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
88
|
+
constructor(parent, faceOrSelector) {
|
|
89
|
+
super(parent, parentElement => {
|
|
90
|
+
if (_.isString(faceOrSelector)) {
|
|
91
|
+
return parentElement.dom().find(faceOrSelector);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
return AupCommandFace.createElementLocator(faceOrSelector)(parentElement).closest('aup-command');
|
|
142
95
|
}
|
|
143
96
|
});
|
|
144
97
|
}
|
|
@@ -151,26 +104,29 @@ class AupCommand extends PageElement {
|
|
|
151
104
|
shouldBeDisabled() {
|
|
152
105
|
this.getButton().should('be.disabled');
|
|
153
106
|
}
|
|
107
|
+
shouldBeEnabled() {
|
|
108
|
+
this.getButton().should('not.be.disabled');
|
|
109
|
+
}
|
|
154
110
|
getButton() {
|
|
155
|
-
return this.
|
|
111
|
+
return this.dom().find('button');
|
|
156
112
|
}
|
|
157
113
|
}
|
|
158
114
|
|
|
159
115
|
class AupEmptyState extends PageElement {
|
|
160
|
-
|
|
161
|
-
|
|
116
|
+
shouldContainText(text) {
|
|
117
|
+
this.dom().should("contain.text", text);
|
|
162
118
|
}
|
|
163
119
|
}
|
|
164
120
|
|
|
165
121
|
class AupInput extends PageElement {
|
|
166
122
|
label() {
|
|
167
|
-
return this.
|
|
123
|
+
return this.dom().find('label');
|
|
168
124
|
}
|
|
169
125
|
hint() {
|
|
170
|
-
return this.
|
|
126
|
+
return this.dom().find('mat-hint');
|
|
171
127
|
}
|
|
172
128
|
error() {
|
|
173
|
-
return this.
|
|
129
|
+
return this.dom().find('mat-error');
|
|
174
130
|
}
|
|
175
131
|
get labelShould() {
|
|
176
132
|
return this.getShoulder(this.label());
|
|
@@ -190,11 +146,23 @@ class AupInput extends PageElement {
|
|
|
190
146
|
errorShouldBe(text) {
|
|
191
147
|
return this.errorShould("have.text", text);
|
|
192
148
|
}
|
|
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
|
+
}
|
|
193
161
|
}
|
|
194
162
|
(function (AupInput) {
|
|
195
163
|
class HtmlInput extends AupInput {
|
|
196
164
|
input() {
|
|
197
|
-
return this.
|
|
165
|
+
return this.dom().find('input');
|
|
198
166
|
}
|
|
199
167
|
clear() {
|
|
200
168
|
this.input().clear();
|
|
@@ -215,7 +183,7 @@ class AupInput extends PageElement {
|
|
|
215
183
|
return this.input();
|
|
216
184
|
}
|
|
217
185
|
input() {
|
|
218
|
-
return this.
|
|
186
|
+
return this.dom().find('textarea');
|
|
219
187
|
}
|
|
220
188
|
clear() {
|
|
221
189
|
this.input().clear();
|
|
@@ -230,6 +198,46 @@ class AupInput extends PageElement {
|
|
|
230
198
|
AupInput.TextAreaInput = TextAreaInput;
|
|
231
199
|
})(AupInput || (AupInput = {}));
|
|
232
200
|
|
|
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
|
+
|
|
233
241
|
class AupNavigation extends PageElement {
|
|
234
242
|
click(label) {
|
|
235
243
|
return super.click(label);
|
|
@@ -241,140 +249,430 @@ class AupNavigation extends PageElement {
|
|
|
241
249
|
this.face(label).shouldBeVisible();
|
|
242
250
|
}
|
|
243
251
|
shouldNotHaveLink(label) {
|
|
244
|
-
this.face(label).
|
|
252
|
+
this.face(label).shouldNotExist();
|
|
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();
|
|
245
281
|
}
|
|
246
282
|
}
|
|
247
283
|
|
|
248
|
-
class
|
|
249
|
-
|
|
250
|
-
super(parentElementAccessor, selector);
|
|
284
|
+
class AupTableSelectionColumn extends AupTableColumn {
|
|
285
|
+
selectAll() {
|
|
251
286
|
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
class AupAbstractTable extends PageElement {
|
|
252
290
|
row(rowId) {
|
|
253
|
-
return
|
|
291
|
+
return this.createRow(parent => {
|
|
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
|
+
});
|
|
254
299
|
}
|
|
255
300
|
column(columnId) {
|
|
256
|
-
return new
|
|
301
|
+
return new AupTableColumn(this, columnId);
|
|
302
|
+
}
|
|
303
|
+
get selectionColumn() {
|
|
304
|
+
return new AupTableSelectionColumn(this, 'selection-column');
|
|
257
305
|
}
|
|
258
306
|
}
|
|
259
|
-
(
|
|
260
|
-
|
|
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);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
class AupTreeTable extends AupAbstractTable {
|
|
364
|
+
get treeControlColumn() {
|
|
365
|
+
return new AupTreeTable.TreeControlColumn(this, 'tree-label');
|
|
366
|
+
}
|
|
367
|
+
createRow(locator) {
|
|
368
|
+
return new AupTreeTable.Row(this, locator);
|
|
261
369
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
370
|
+
}
|
|
371
|
+
__decorate([
|
|
372
|
+
Memoize(),
|
|
373
|
+
__metadata("design:type", AupTreeTable.TreeControlColumn),
|
|
374
|
+
__metadata("design:paramtypes", [])
|
|
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");
|
|
267
380
|
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
return new Cell(this.table, {
|
|
271
|
-
findIn(parent) {
|
|
272
|
-
return parent.contains(`aup-table-cell-renderer[column-id=${self.columnId}]`, content);
|
|
273
|
-
}
|
|
274
|
-
});
|
|
381
|
+
shouldBeCollapsed() {
|
|
382
|
+
this.dom().should("have.class", "aup-node-collapsed");
|
|
275
383
|
}
|
|
276
384
|
}
|
|
277
|
-
|
|
278
|
-
class
|
|
385
|
+
AupTreeTable.Row = Row;
|
|
386
|
+
class TreeControlColumn extends AupTableColumn {
|
|
279
387
|
}
|
|
280
|
-
|
|
281
|
-
})(
|
|
388
|
+
AupTreeTable.TreeControlColumn = TreeControlColumn;
|
|
389
|
+
})(AupTreeTable || (AupTreeTable = {}));
|
|
282
390
|
|
|
283
|
-
function
|
|
391
|
+
function FormElementMixin(Base) {
|
|
284
392
|
return class extends Base {
|
|
285
393
|
constructor(...args) {
|
|
286
394
|
super(...args);
|
|
287
395
|
}
|
|
288
|
-
click() {
|
|
289
|
-
return this.element().click();
|
|
290
|
-
}
|
|
291
396
|
shouldBeDisabled() {
|
|
292
397
|
this.should("be.disabled");
|
|
293
|
-
// this.should("have.css", "color", "rgba(0,0,0,0.26)")
|
|
294
398
|
}
|
|
295
399
|
};
|
|
296
400
|
}
|
|
297
401
|
|
|
298
|
-
class Button extends
|
|
402
|
+
class Button extends FormElementMixin(PageElement) {
|
|
299
403
|
constructor(parentElementAccessor, buttonText) {
|
|
300
|
-
super(parentElementAccessor,
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
404
|
+
super(parentElementAccessor, ElementLocator.findBySelectorAndTextContent('button', buttonText));
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
class MatCheckbox extends FormElementMixin(PageElement) {
|
|
409
|
+
constructor(parentElementAccessor, text) {
|
|
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();
|
|
306
434
|
}
|
|
307
435
|
});
|
|
308
436
|
}
|
|
309
437
|
}
|
|
310
438
|
|
|
311
|
-
|
|
312
|
-
(
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
439
|
+
class ComponentBuilder {
|
|
440
|
+
constructor(parentPageElement) {
|
|
441
|
+
this.parentPageElement = parentPageElement;
|
|
442
|
+
}
|
|
443
|
+
find(selector) {
|
|
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');
|
|
469
|
+
}
|
|
470
|
+
aupCommand(faceOrSelector) {
|
|
471
|
+
return new AupCommand(this.parentPageElement, faceOrSelector);
|
|
316
472
|
}
|
|
317
|
-
|
|
318
|
-
|
|
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) {
|
|
319
508
|
return class extends Base {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
324
|
-
find(selector) {
|
|
325
|
-
return new PageElement(() => this.element(), selector);
|
|
326
|
-
}
|
|
327
|
-
contains(text) {
|
|
328
|
-
return new PageElement(() => this.element(), {
|
|
329
|
-
findIn: parent => parent.contains(text),
|
|
330
|
-
shouldNotExist: (parent) => parent.should('not.contain', text)
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
button(text) {
|
|
334
|
-
return new Button(() => this.element(), text);
|
|
335
|
-
}
|
|
336
|
-
aupStringInput(selector) {
|
|
337
|
-
return new AupInput.HtmlInput(() => this.element(), selector !== null && selector !== void 0 ? selector : 'aup-string-input');
|
|
338
|
-
}
|
|
339
|
-
aupTextInput(selector) {
|
|
340
|
-
return new AupInput.TextAreaInput(() => this.element(), selector !== null && selector !== void 0 ? selector : 'aup-text-input');
|
|
341
|
-
}
|
|
342
|
-
aupPasswordInput(selector) {
|
|
343
|
-
return new AupInput.HtmlInput(() => this.element(), selector !== null && selector !== void 0 ? selector : 'aup-password-input');
|
|
344
|
-
}
|
|
345
|
-
aupNumberInput(selector) {
|
|
346
|
-
return new AupInput.HtmlInput(() => this.element(), selector !== null && selector !== void 0 ? selector : 'aup-number-input');
|
|
347
|
-
}
|
|
348
|
-
aupCommand(face) {
|
|
349
|
-
return new AupCommand(this, face);
|
|
350
|
-
}
|
|
351
|
-
aupTabbedNavigation() {
|
|
352
|
-
return new AupNavigation(this, 'aup-tabbed-place-navigation');
|
|
353
|
-
}
|
|
354
|
-
aupSideNavigation() {
|
|
355
|
-
return new AupNavigation(() => this.element(), 'aup-list-place-nav');
|
|
356
|
-
}
|
|
357
|
-
aupTable(selector) {
|
|
358
|
-
return new AupTable(() => this.element(), selector !== null && selector !== void 0 ? selector : 'aup-table');
|
|
359
|
-
}
|
|
360
|
-
aupEmptyState(selector) {
|
|
361
|
-
return new AupEmptyState(this, selector);
|
|
509
|
+
constructor(...args) {
|
|
510
|
+
super(...args);
|
|
511
|
+
this.builder = new ComponentBuilder(this);
|
|
362
512
|
}
|
|
363
513
|
};
|
|
364
514
|
}
|
|
365
|
-
|
|
366
|
-
|
|
515
|
+
ComponentBuilder.Mixin = Mixin;
|
|
516
|
+
})(ComponentBuilder || (ComponentBuilder = {}));
|
|
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);
|
|
609
|
+
}
|
|
610
|
+
aupModelConfirm(builder) {
|
|
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;
|
|
367
629
|
}
|
|
368
|
-
|
|
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 {
|
|
369
662
|
constructor() {
|
|
370
|
-
|
|
371
|
-
this.rootElementSelector = 'body';
|
|
663
|
+
this.segments = [];
|
|
372
664
|
}
|
|
373
|
-
|
|
374
|
-
|
|
665
|
+
segment(name, params) {
|
|
666
|
+
const builder = new Segment(name, params);
|
|
667
|
+
this.segments.push(builder);
|
|
668
|
+
return this;
|
|
669
|
+
}
|
|
670
|
+
getPath() {
|
|
671
|
+
return new Path(this.segments);
|
|
375
672
|
}
|
|
376
673
|
}
|
|
377
|
-
|
|
674
|
+
Path.Builder = Builder;
|
|
675
|
+
})(Path || (Path = {}));
|
|
378
676
|
|
|
379
677
|
class Page extends PageElement {
|
|
380
678
|
constructor(path) {
|
|
@@ -382,7 +680,7 @@ class Page extends PageElement {
|
|
|
382
680
|
this.path = path;
|
|
383
681
|
this.rootElementSelector = 'body';
|
|
384
682
|
}
|
|
385
|
-
|
|
683
|
+
dom() {
|
|
386
684
|
return cy.get(this.rootElementSelector);
|
|
387
685
|
}
|
|
388
686
|
visit(visitParams, queryParams) {
|
|
@@ -392,7 +690,9 @@ class Page extends PageElement {
|
|
|
392
690
|
tryAndVisit(params, queryParams) {
|
|
393
691
|
const path = this.path.toUrl(params !== null && params !== void 0 ? params : {});
|
|
394
692
|
const queryString = queryParams ? `?${new URLSearchParams(queryParams).toString()}` : '';
|
|
395
|
-
|
|
693
|
+
const fullPath = `/${path}${queryString}`;
|
|
694
|
+
cy.log(`Visiting -> ${fullPath}`);
|
|
695
|
+
cy.visit(fullPath);
|
|
396
696
|
}
|
|
397
697
|
shouldHaveActivityIds(...ids) {
|
|
398
698
|
cy.location('search').should('contain', `?aup-interactions=${ids.join('--')}`);
|
|
@@ -405,71 +705,73 @@ class Page extends PageElement {
|
|
|
405
705
|
}
|
|
406
706
|
shouldBeActive(withParameters) {
|
|
407
707
|
// Note: cy.window() doesn't return a promise... it's a chainable.
|
|
408
|
-
cy[
|
|
708
|
+
cy['waitUntil'](() => {
|
|
409
709
|
return cy.window().then(window => {
|
|
410
710
|
return window['aup.PlaceRouter'] && !window['aup.PlaceRouter'].isNavigating();
|
|
411
711
|
});
|
|
412
712
|
});
|
|
413
713
|
if (withParameters) {
|
|
414
|
-
|
|
415
|
-
const urlParams = Path.extractVisitParameters(path);
|
|
416
|
-
Object.keys(withParameters).forEach(param => {
|
|
417
|
-
const expected = withParameters[param];
|
|
418
|
-
// @ts-ignore
|
|
419
|
-
expect(urlParams[param]).to.equal(expected);
|
|
420
|
-
});
|
|
421
|
-
});
|
|
714
|
+
this.shouldIncludeParameters(withParameters);
|
|
422
715
|
}
|
|
423
716
|
}
|
|
717
|
+
shouldIncludeParameters(parameters) {
|
|
718
|
+
cy.location('pathname').then(path => {
|
|
719
|
+
const urlParams = Path.extractVisitParameters(path);
|
|
720
|
+
Object.keys(parameters).forEach(param => {
|
|
721
|
+
const expected = parameters[param];
|
|
722
|
+
const actual = urlParams[param];
|
|
723
|
+
// cy.log(`${actual} - ${expected}`);
|
|
724
|
+
expect(urlParams[param]).to.equal(expected);
|
|
725
|
+
});
|
|
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));
|
|
735
|
+
}
|
|
424
736
|
}
|
|
425
737
|
(function (Page) {
|
|
426
|
-
function create(pathOrPathBuilder,
|
|
738
|
+
function create(pathOrPathBuilder, builder) {
|
|
427
739
|
const pathBuilder = new Path.Builder();
|
|
428
740
|
if (_.isString(pathOrPathBuilder)) {
|
|
429
|
-
pathOrPathBuilder.split(
|
|
741
|
+
pathOrPathBuilder.split('/').filter(p => !_.isEmpty(p)).forEach(p => pathBuilder.segment(p));
|
|
430
742
|
}
|
|
431
743
|
else {
|
|
432
744
|
pathOrPathBuilder(pathBuilder);
|
|
433
745
|
}
|
|
434
|
-
const
|
|
435
|
-
|
|
746
|
+
const instance = new Page(pathBuilder.getPath());
|
|
747
|
+
const content = builder.call(instance, new PageBuilder(instance));
|
|
748
|
+
return Mixin.createProxy(content, instance);
|
|
436
749
|
}
|
|
437
750
|
Page.create = create;
|
|
438
|
-
class PageBuilder extends Section.Mixin(Page) {
|
|
439
|
-
}
|
|
440
|
-
Page.PageBuilder = PageBuilder;
|
|
441
751
|
})(Page || (Page = {}));
|
|
442
752
|
|
|
443
753
|
class AupCommandGroup extends PageElement {
|
|
444
754
|
}
|
|
445
755
|
|
|
446
|
-
class
|
|
447
|
-
static create(parent) {
|
|
448
|
-
|
|
756
|
+
class AupToolBar extends PageElement {
|
|
757
|
+
static create(parent, face) {
|
|
758
|
+
// const findFace = AupCommandFace.createFinder(() => parent.element(), face)
|
|
759
|
+
// return new AupCommandGroup(() => findFace().closest('button'));
|
|
449
760
|
}
|
|
450
761
|
}
|
|
451
762
|
|
|
452
|
-
class AupPopupMenu extends
|
|
763
|
+
class AupPopupMenu extends AupAbstractPopupMenu {
|
|
453
764
|
constructor(parentElementAccessor, face) {
|
|
454
|
-
const
|
|
455
|
-
super(parentElementAccessor,
|
|
456
|
-
findIn(parent) {
|
|
457
|
-
return accessor.findIn(parent).closest('button');
|
|
458
|
-
},
|
|
459
|
-
shouldNotExist(parent) {
|
|
460
|
-
accessor.shouldNotExist(parent);
|
|
461
|
-
}
|
|
462
|
-
});
|
|
765
|
+
const locator = AupCommandFace.createElementLocator(face);
|
|
766
|
+
super(parentElementAccessor, parent => locator(parent).closest('button'));
|
|
463
767
|
}
|
|
464
768
|
static create(parent, face) {
|
|
465
769
|
return new AupPopupMenu(parent, face);
|
|
466
770
|
}
|
|
467
771
|
}
|
|
468
772
|
|
|
469
|
-
class
|
|
470
|
-
|
|
471
|
-
// const findFace = AupCommandFace.createFinder(() => parent.element(), face)
|
|
472
|
-
// return new AupCommandGroup(() => findFace().closest('button'));
|
|
773
|
+
class AupTableSelectionCell extends AupTableCell {
|
|
774
|
+
selectAll() {
|
|
473
775
|
}
|
|
474
776
|
}
|
|
475
777
|
|
|
@@ -481,5 +783,5 @@ class AupToolBar extends PageElement {
|
|
|
481
783
|
* Generated bundle index. Do not edit.
|
|
482
784
|
*/
|
|
483
785
|
|
|
484
|
-
export { AupCommand, AupCommandFace, AupCommandGroup, AupEmptyState, AupInput, AupMoreMenu, AupNavigation, AupPopupMenu, AupTable, AupToolBar, Button,
|
|
786
|
+
export { AupAbstractActivity, AupAbstractPopupMenu, AupAbstractTable, AupActivity, AupAlert, AupAlertDialog, AupCommand, AupCommandFace, AupCommandGroup, AupConfirm, AupConfirmDialog, AupEmptyState, AupInput, AupModalActivity, AupModalMixin, AupMoreMenu, AupNavigation, AupPopupMenu, AupPopupMenuPanel, AupTable, AupTableCell, AupTableColumn, AupTableRow, AupTableSelectionCell, AupTableSelectionColumn, AupToolBar, AupTreeTable, Button, ComponentBuilder, ElementLocator, FormElementMixin, MatCheckbox, Page, PageBuilder, PageElement, Path };
|
|
485
787
|
//# sourceMappingURL=coolon-angular-ui-powerups-cypress.js.map
|