@coolon/angular-ui-powerups 12.4.0-alpha.2 → 12.4.0-alpha.21
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/empty-state.scss +11 -0
- package/assets/styles.scss +1 -0
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +643 -306
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +7 -11
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/cypress/builder.d.ts +44 -0
- package/cypress/components/aup-abstract-activity.d.ts +9 -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 +7 -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 +1 -1
- package/cypress/components/aup-empty-state.d.ts +4 -0
- package/cypress/components/aup-input.d.ts +11 -5
- package/cypress/components/aup-modal-activity.d.ts +4 -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 +10 -7
- package/cypress/components/form-element-mixin.d.ts +21 -0
- package/cypress/components/mat-checkbox.d.ts +30 -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 +22 -4
- package/cypress/page-builder.d.ts +8 -0
- package/cypress/page-element.d.ts +10 -12
- package/cypress/page.d.ts +5 -33
- package/esm2015/cypress/builder.js +81 -0
- package/esm2015/cypress/builder.js.map +1 -0
- package/esm2015/cypress/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 +12 -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 +9 -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-empty-state.js +7 -0
- package/esm2015/cypress/components/aup-empty-state.js.map +1 -0
- package/esm2015/cypress/components/aup-empty-state.metadata.json +1 -0
- 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 +7 -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-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 +22 -4
- package/esm2015/cypress/exports.js.map +1 -1
- package/esm2015/cypress/exports.metadata.json +1 -1
- package/esm2015/cypress/page-builder.js +15 -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 +22 -19
- package/esm2015/cypress/page-element.js.map +1 -1
- package/esm2015/cypress/page-element.metadata.json +1 -1
- package/esm2015/cypress/page.js +8 -10
- package/esm2015/cypress/page.js.map +1 -1
- package/esm2015/cypress/page.metadata.json +1 -1
- package/esm2015/cypress/path.js +3 -1
- package/esm2015/cypress/path.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/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-table-model.js +1 -0
- 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/place/url-snapshot.js +1 -7
- package/esm2015/lib/place/url-snapshot.js.map +1 -1
- package/esm2015/lib/place/url-snapshot.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups-cypress.js +482 -221
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +7 -11
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +0 -1
- package/lib/components/tables/tree-table/tree-table-model.d.ts +4 -5
- package/package.json +1 -1
- 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 -51
- 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 -58
- package/esm2015/cypress/section.js.map +0 -1
- package/esm2015/cypress/section.metadata.json +0 -1
|
@@ -6,7 +6,6 @@ export declare class FlattenedTreeListModel<T> extends ComputedListModel<Decorat
|
|
|
6
6
|
private readonly childRef;
|
|
7
7
|
readonly expansionModel: TreeExpansionModel<DecoratedTreeNode<T>>;
|
|
8
8
|
constructor(source: ListModel<T>, childRef: (node: T) => T[], expansionModel: TreeExpansionModel<DecoratedTreeNode<T>>);
|
|
9
|
-
getIdentityOf(item: DecoratedTreeNode<T>): any;
|
|
10
9
|
compute(values: T[]): DecoratedTreeNode<T>[];
|
|
11
10
|
private addNodeAndVisibleChildren;
|
|
12
11
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ListModel, MutableValueModel, SelectionModel, ValueModel } from '@coolon/pectin';
|
|
2
2
|
import { AbstractTableModel } from '../abstract-table-model';
|
|
3
3
|
import { SelectionColumnModel } from '../table/column-model';
|
|
4
|
-
import { DecoratedTreeNode } from './decorated-tree-node';
|
|
5
4
|
import { TreeExpansionModel } from './tree-expansion-model';
|
|
6
5
|
import { TreeLabelColumnModel } from './tree-label-column-model';
|
|
7
6
|
export declare type ChildArrayPropertiesOf<T> = {
|
|
@@ -12,10 +11,10 @@ export declare class TreeTableModel<Row> extends AbstractTableModel<Row> {
|
|
|
12
11
|
private readonly flattenedDataSource;
|
|
13
12
|
constructor(source: ListModel<Row>, childAccessor: ChildArrayPropertiesOf<Row> | ((node: Row) => Row[]), builder?: (model: TreeTableModel<Row>) => void);
|
|
14
13
|
treeControlColumn(builder: (column: TreeLabelColumnModel<Row>) => void): void;
|
|
15
|
-
expand(node:
|
|
16
|
-
collapse(node:
|
|
17
|
-
isCollapsed(node:
|
|
18
|
-
ensureAncestorsAndSelfVisible(node:
|
|
14
|
+
expand(node: Row): void;
|
|
15
|
+
collapse(node: Row): void;
|
|
16
|
+
isCollapsed(node: Row): boolean;
|
|
17
|
+
ensureAncestorsAndSelfVisible(node: Row): void;
|
|
19
18
|
addSelectionColumn(selectionModel?: SelectionModel<Row>, showSelectionColumn?: ValueModel<boolean> | boolean): SelectionColumnModel<Row>;
|
|
20
19
|
}
|
|
21
20
|
export declare namespace TreeTableModel {
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="cypress" />
|
|
2
|
-
import { PageElement } from '../page-element';
|
|
3
|
-
import { Types } from './types';
|
|
4
|
-
export declare class AupPopupMenu extends PageElement {
|
|
5
|
-
constructor(parentElementAccessor: PageElement | (() => Cypress.Chainable<JQuery>), face: Types.CommandFace);
|
|
6
|
-
static create(parent: PageElement, face: Types.CommandFace): AupPopupMenu;
|
|
7
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="cypress" />
|
|
2
|
-
import { Constructable } from '@coolon/typescript-utilities';
|
|
3
|
-
import { PageElement } from '../page-element';
|
|
4
|
-
export declare function ButtonMixin<T, BC extends Constructable<PageElement>>(Base: BC): {
|
|
5
|
-
new (...args: any[]): {
|
|
6
|
-
click(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
7
|
-
shouldBeDisabled(): void;
|
|
8
|
-
readonly elementAccessStrategy: PageElement.Accessor;
|
|
9
|
-
readonly parentElementAccessor: () => Cypress.Chainable<JQuery<HTMLElement>>;
|
|
10
|
-
element(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
11
|
-
getParentElement(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
12
|
-
find(selector: string): PageElement;
|
|
13
|
-
readonly should: any;
|
|
14
|
-
getShoulder(element: Cypress.Chainable<JQuery<HTMLElement>>): any;
|
|
15
|
-
getShouldElement(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
16
|
-
shouldBeVisible(): void;
|
|
17
|
-
shouldNotBeVisible(): void;
|
|
18
|
-
};
|
|
19
|
-
} & BC;
|
package/cypress/section.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/// <reference types="cypress" />
|
|
2
|
-
import { Constructable } from '@coolon/pectin';
|
|
3
|
-
import { AupCommand } from './components/aup-command';
|
|
4
|
-
import { AupInput } from './components/aup-input';
|
|
5
|
-
import { AupNavigation } from './components/aup-navigation';
|
|
6
|
-
import { AupTable } from './components/aup-table';
|
|
7
|
-
import { Button } from './components/button';
|
|
8
|
-
import { Types } from './components/types';
|
|
9
|
-
import { PageElement } from './page-element';
|
|
10
|
-
export interface Section {
|
|
11
|
-
section<T extends object>(selector: string, section: (section: Section) => T): T & PageElement;
|
|
12
|
-
find(selector: string): PageElement;
|
|
13
|
-
contains(text: string): PageElement;
|
|
14
|
-
button(text: string): Button;
|
|
15
|
-
aupStringInput(selector?: string): AupInput<string>;
|
|
16
|
-
aupTextInput(selector?: string): AupInput<string>;
|
|
17
|
-
aupPasswordInput(selector?: string): AupInput<string>;
|
|
18
|
-
aupNumberInput(selector?: string): AupInput<number>;
|
|
19
|
-
aupCommand(face: Types.CommandFace): AupCommand;
|
|
20
|
-
aupTabbedNavigation<T extends object>(): AupNavigation;
|
|
21
|
-
aupSideNavigation<T extends object>(): AupNavigation;
|
|
22
|
-
aupTable(selector?: string): AupTable;
|
|
23
|
-
}
|
|
24
|
-
export declare namespace Section {
|
|
25
|
-
function Mixin<BC extends Constructable<PageElement>>(Base: BC): {
|
|
26
|
-
new (...args: any[]): {
|
|
27
|
-
section<T extends object>(selector: string, section: (section: Section) => T): T & PageElement;
|
|
28
|
-
find(selector: string): PageElement;
|
|
29
|
-
contains(text: string): PageElement;
|
|
30
|
-
button(text: string): Button;
|
|
31
|
-
aupStringInput(selector?: string): AupInput<string>;
|
|
32
|
-
aupTextInput(selector?: string): AupInput<string>;
|
|
33
|
-
aupPasswordInput(selector?: string): AupInput<string>;
|
|
34
|
-
aupNumberInput(selector?: string): AupInput<number>;
|
|
35
|
-
aupCommand(face: Types.CommandFace): AupCommand;
|
|
36
|
-
aupTabbedNavigation<T_2 extends object>(): AupNavigation;
|
|
37
|
-
aupSideNavigation<T_3 extends object>(): AupNavigation;
|
|
38
|
-
aupTable(selector?: string): AupTable;
|
|
39
|
-
readonly elementAccessStrategy: PageElement.Accessor;
|
|
40
|
-
readonly parentElementAccessor: () => Cypress.Chainable<JQuery<HTMLElement>>;
|
|
41
|
-
element(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
42
|
-
getParentElement(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
43
|
-
click(text?: string): void;
|
|
44
|
-
readonly should: any;
|
|
45
|
-
getShoulder(element: Cypress.Chainable<JQuery<HTMLElement>>): any;
|
|
46
|
-
getShouldElement(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
47
|
-
shouldBeVisible(): void;
|
|
48
|
-
shouldNotBeVisible(): void;
|
|
49
|
-
};
|
|
50
|
-
} & BC;
|
|
51
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aup-more-menu.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/cypress/src/components/aup-more-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,OAAO,WAAY,SAAQ,WAAW;IAE1C,MAAM,CAAC,MAAM,CAAC,MAAmB;QAC/B,OAAO,IAAI,WAAW,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAClD,CAAC;CACF","sourcesContent":["import { PageElement } from '../page-element';\n\nexport class AupMoreMenu extends PageElement {\n\n static create(parent: PageElement) {\n return new AupMoreMenu(parent, 'aup-more-menu');\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"AupMoreMenu":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../page-element","name":"PageElement","line":2,"character":33},"statics":{"create":{"__symbolic":"function","parameters":["parent"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"AupMoreMenu"},"arguments":[{"__symbolic":"reference","name":"parent"},"aup-more-menu"]}}}}}}]
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PageElement } from '../page-element';
|
|
2
|
-
import { AupCommandFace } from './aup-command-face';
|
|
3
|
-
export class AupPopupMenu extends PageElement {
|
|
4
|
-
constructor(parentElementAccessor, face) {
|
|
5
|
-
const accessor = AupCommandFace.createAccessor(face);
|
|
6
|
-
super(parentElementAccessor, {
|
|
7
|
-
findIn(parent) {
|
|
8
|
-
return accessor.findIn(parent).closest('button');
|
|
9
|
-
},
|
|
10
|
-
shouldNotExist(parent) {
|
|
11
|
-
accessor.shouldNotExist(parent);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
static create(parent, face) {
|
|
16
|
-
return new AupPopupMenu(parent, face);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=aup-popup-menu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aup-popup-menu.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/cypress/src/components/aup-popup-menu.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,MAAM,OAAO,YAAa,SAAQ,WAAW;IAE3C,YAAY,qBAAsE,EAAE,IAAuB;QACzG,MAAM,QAAQ,GAAG,cAAc,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;QACpD,KAAK,CAAC,qBAAqB,EAAE;YAC3B,MAAM,CAAC,MAAiC;gBACtC,OAAO,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YACnD,CAAC;YACD,cAAc,CAAC,MAAiC;gBAC9C,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;YAClC,CAAC;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,MAAmB,EAAE,IAAuB;QACxD,OAAO,IAAI,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACxC,CAAC;CACF","sourcesContent":["import { lang } from '@coolon/typescript-utilities';\nimport { PageElement } from '../page-element';\nimport { AupCommandFace } from './aup-command-face';\nimport { Types } from './types';\n\nexport class AupPopupMenu extends PageElement {\n\n constructor(parentElementAccessor: PageElement | (() => Cypress.Chainable<JQuery>), face: Types.CommandFace) {\n const accessor = AupCommandFace.createAccessor(face)\n super(parentElementAccessor, {\n findIn(parent: Cypress.Chainable<JQuery>): Cypress.Chainable<JQuery> {\n return accessor.findIn(parent).closest('button');\n },\n shouldNotExist(parent: Cypress.Chainable<JQuery>) {\n accessor.shouldNotExist(parent);\n }\n });\n }\n\n static create(parent: PageElement, face: Types.CommandFace) {\n return new AupPopupMenu(parent, face);\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"AupPopupMenu":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../page-element","name":"PageElement","line":5,"character":34},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Expression form not supported","line":7,"character":51},{"__symbolic":"select","expression":{"__symbolic":"reference","module":"./types","name":"Types","line":7,"character":92},"member":"CommandFace"}]}]},"statics":{"create":{"__symbolic":"function","parameters":["parent","face"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"AupPopupMenu"},"arguments":[{"__symbolic":"reference","name":"parent"},{"__symbolic":"reference","name":"face"}]}}}}}}]
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export function ButtonMixin(Base) {
|
|
2
|
-
return class extends Base {
|
|
3
|
-
constructor(...args) {
|
|
4
|
-
super(...args);
|
|
5
|
-
}
|
|
6
|
-
click() {
|
|
7
|
-
return this.element().click();
|
|
8
|
-
}
|
|
9
|
-
shouldBeDisabled() {
|
|
10
|
-
this.should("be.disabled");
|
|
11
|
-
// this.should("have.css", "color", "rgba(0,0,0,0.26)")
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=button-mixin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-mixin.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/cypress/src/components/button-mixin.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,WAAW,CAA2C,IAAQ;IAC5E,OAAO,KAAM,SAAQ,IAAI;QACvB,YAAY,GAAG,IAAW;YACxB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACjB,CAAC;QAED,KAAK;YACH,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC;QAChC,CAAC;QAED,gBAAgB;YACd,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;YAC3B,uDAAuD;QACzD,CAAC;KAEF,CAAC;AACJ,CAAC","sourcesContent":["import { Constructable } from '@coolon/typescript-utilities';\nimport { PageElement } from '../page-element';\n\nexport function ButtonMixin<T, BC extends Constructable<PageElement>>(Base: BC) {\n return class extends Base {\n constructor(...args: any[]) {\n super(...args);\n }\n\n click() {\n return this.element().click();\n }\n\n shouldBeDisabled() {\n this.should(\"be.disabled\");\n // this.should(\"have.css\", \"color\", \"rgba(0,0,0,0.26)\")\n }\n\n };\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"ButtonMixin":{"__symbolic":"function","parameters":["Base"],"value":{"__symbolic":"class"}}}}]
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Mixin as CreateMixin } from '@coolon/typescript-utilities';
|
|
2
|
-
import { AupCommand } from './components/aup-command';
|
|
3
|
-
import { AupInput } from './components/aup-input';
|
|
4
|
-
import { AupNavigation } from './components/aup-navigation';
|
|
5
|
-
import { AupTable } from './components/aup-table';
|
|
6
|
-
import { Button } from './components/button';
|
|
7
|
-
import { PageElement } from './page-element';
|
|
8
|
-
export var Section;
|
|
9
|
-
(function (Section) {
|
|
10
|
-
function Mixin(Base) {
|
|
11
|
-
return class extends Base {
|
|
12
|
-
section(selector, section) {
|
|
13
|
-
const impl = new Impl(() => this.element(), selector);
|
|
14
|
-
return CreateMixin.createProxy(section(impl), impl);
|
|
15
|
-
}
|
|
16
|
-
find(selector) {
|
|
17
|
-
return new PageElement(() => this.element(), selector);
|
|
18
|
-
}
|
|
19
|
-
contains(text) {
|
|
20
|
-
return new PageElement(() => this.element(), {
|
|
21
|
-
findIn: parent => parent.contains(text),
|
|
22
|
-
shouldNotExist: (parent) => parent.should('not.contain', text)
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
button(text) {
|
|
26
|
-
return new Button(() => this.element(), text);
|
|
27
|
-
}
|
|
28
|
-
aupStringInput(selector) {
|
|
29
|
-
return new AupInput.HtmlInput(() => this.element(), selector !== null && selector !== void 0 ? selector : 'aup-string-input');
|
|
30
|
-
}
|
|
31
|
-
aupTextInput(selector) {
|
|
32
|
-
return new AupInput.TextAreaInput(() => this.element(), selector !== null && selector !== void 0 ? selector : 'aup-text-input');
|
|
33
|
-
}
|
|
34
|
-
aupPasswordInput(selector) {
|
|
35
|
-
return new AupInput.HtmlInput(() => this.element(), selector !== null && selector !== void 0 ? selector : 'aup-password-input');
|
|
36
|
-
}
|
|
37
|
-
aupNumberInput(selector) {
|
|
38
|
-
return new AupInput.HtmlInput(() => this.element(), selector !== null && selector !== void 0 ? selector : 'aup-number-input');
|
|
39
|
-
}
|
|
40
|
-
aupCommand(face) {
|
|
41
|
-
return new AupCommand(this, face);
|
|
42
|
-
}
|
|
43
|
-
aupTabbedNavigation() {
|
|
44
|
-
return new AupNavigation(this, 'aup-tabbed-place-navigation');
|
|
45
|
-
}
|
|
46
|
-
aupSideNavigation() {
|
|
47
|
-
return new AupNavigation(() => this.element(), 'aup-list-place-nav');
|
|
48
|
-
}
|
|
49
|
-
aupTable(selector) {
|
|
50
|
-
return new AupTable(() => this.element(), selector !== null && selector !== void 0 ? selector : 'aup-table');
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
Section.Mixin = Mixin;
|
|
55
|
-
class Impl extends Mixin(PageElement) {
|
|
56
|
-
}
|
|
57
|
-
})(Section || (Section = {}));
|
|
58
|
-
//# sourceMappingURL=section.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"section.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/cypress/src/section.ts"],"names":[],"mappings":"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","sourcesContent":["import { Constructable } from '@coolon/pectin';\nimport { Mixin as CreateMixin } from '@coolon/typescript-utilities';\nimport { AupCommand } from './components/aup-command';\nimport { AupInput } from './components/aup-input';\nimport { AupNavigation } from './components/aup-navigation';\nimport { AupTable } from './components/aup-table';\nimport { Button } from './components/button';\nimport { Types } from './components/types';\nimport { PageElement } from './page-element';\n\nexport interface Section {\n section<T extends object>(selector: string, section: (section: Section) => T): T & PageElement;\n\n find(selector: string): PageElement;\n\n contains(text: string): PageElement;\n\n button(text: string): Button;\n\n aupStringInput(selector?: string): AupInput<string>;\n\n aupTextInput(selector?: string): AupInput<string>;\n\n aupPasswordInput(selector?: string): AupInput<string>;\n\n aupNumberInput(selector?: string): AupInput<number>;\n\n aupCommand(face: Types.CommandFace): AupCommand\n\n // aupToolbar<T extends object>(builder: () => T): AupToolBar & T\n //\n // aupToolbar<T extends object>(selector: string, builder: () => T): AupToolBar & T\n //\n // aupToolbar<T extends object>(selectorOrBuilder: string | (() => T), builder?: () => T): AupToolBar & T\n //\n // aupPopupMenu<T extends object>(face: CommandFace, builder: () => T): AupPopupMenu & T\n\n aupTabbedNavigation<T extends object>(): AupNavigation;\n\n aupSideNavigation<T extends object>(): AupNavigation;\n\n aupTable(selector?: string): AupTable;\n\n}\n\n\nexport namespace Section {\n\n export function Mixin<BC extends Constructable<PageElement>>(Base: BC) {\n\n return class extends Base implements Section {\n\n section<T extends object>(selector: string, section: (section: Section) => T): T & PageElement {\n const impl = new Impl(() => this.element(), selector);\n return CreateMixin.createProxy(section(impl), impl);\n }\n\n find(selector: string): PageElement {\n return new PageElement(() => this.element(), selector);\n }\n\n contains(text: string): PageElement {\n return new PageElement(() => this.element(), {\n findIn: parent => parent.contains(text),\n shouldNotExist: (parent: Cypress.Chainable<JQuery>) => parent.should('not.contain', text)\n });\n }\n\n button(text: string): Button {\n return new Button(() => this.element(), text);\n }\n\n aupStringInput(selector?: string): AupInput<string> {\n return new AupInput.HtmlInput(() => this.element(), selector ?? 'aup-string-input');\n }\n\n aupTextInput(selector?: string): AupInput<string> {\n return new AupInput.TextAreaInput(() => this.element(), selector ?? 'aup-text-input');\n }\n\n aupPasswordInput(selector?: string): AupInput<string> {\n return new AupInput.HtmlInput(() => this.element(), selector ?? 'aup-password-input');\n }\n\n aupNumberInput(selector?: string): AupInput<number> {\n return new AupInput.HtmlInput(() => this.element(), selector ?? 'aup-number-input');\n }\n\n aupCommand(face: Types.CommandFace): AupCommand {\n return new AupCommand(this, face);\n }\n\n aupTabbedNavigation<T extends object>(): AupNavigation {\n return new AupNavigation(this, 'aup-tabbed-place-navigation');\n }\n\n aupSideNavigation<T extends object>(): AupNavigation {\n return new AupNavigation(() => this.element(), 'aup-list-place-nav');\n }\n\n aupTable(selector?: string): AupTable {\n return new AupTable(() => this.element(), selector ?? 'aup-table');\n }\n\n // aupToolbar<T extends object>(builder: () => T): AupToolBar\n // aupToolbar<T extends object>(selector: string, builder: () => T): AupToolBar\n // aupToolbar<T extends object>(selectorOrBuilder: string | (() => T), builder?: () => T): AupToolBar {\n // return lang.notImplemented();\n // }\n //\n // aupPopupMenu<T extends object>(face: CommandFace, builder: () => T): AupPopupMenu & T {\n // return lang.notImplemented();\n // }\n //\n // aupMoreMenu<T extends object>(builder: () => T): AupPopupMenu & T {\n // return lang.notImplemented();\n // }\n\n };\n }\n\n class Impl extends Mixin(PageElement) {\n }\n\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"Section":{"__symbolic":"interface"}}}]
|