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