@coolon/angular-ui-powerups 3.4.6 → 3.5.0
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/CHANGELOG.md +14 -0
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +669 -0
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -0
- package/bundles/coolon-angular-ui-powerups-cypress.umd.min.js +16 -0
- package/bundles/coolon-angular-ui-powerups-cypress.umd.min.js.map +1 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +40 -123
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.d.ts +0 -81
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/cypress/components/aup-command-face.d.ts +9 -0
- package/cypress/components/aup-command-group.d.ts +3 -0
- package/cypress/components/aup-command.d.ts +8 -0
- package/cypress/components/aup-input.d.ts +29 -0
- package/cypress/components/aup-more-menu.d.ts +4 -0
- package/cypress/components/aup-popup-menu.d.ts +5 -0
- package/cypress/components/aup-tool-bar.d.ts +5 -0
- package/cypress/components/button.d.ts +6 -0
- package/cypress/components/types.d.ts +6 -0
- package/cypress/coolon-angular-ui-powerups-cypress.d.ts +4 -0
- package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -0
- package/cypress/exports.d.ts +15 -0
- package/cypress/package.json +15 -0
- package/cypress/page-element.d.ts +11 -0
- package/cypress/page.d.ts +41 -0
- package/cypress/section.d.ts +37 -0
- package/esm2015/coolon-angular-ui-powerups.js +0 -79
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/cypress/components/aup-command-face.js +18 -0
- package/esm2015/cypress/components/aup-command-face.js.map +1 -0
- package/esm2015/cypress/components/aup-command-face.metadata.json +1 -0
- package/esm2015/cypress/components/aup-command-group.js +4 -0
- package/esm2015/cypress/components/aup-command-group.js.map +1 -0
- package/esm2015/cypress/components/aup-command-group.metadata.json +1 -0
- package/esm2015/cypress/components/aup-command.js +14 -0
- package/esm2015/cypress/components/aup-command.js.map +1 -0
- package/esm2015/cypress/components/aup-command.metadata.json +1 -0
- package/esm2015/cypress/components/aup-input.js +69 -0
- package/esm2015/cypress/components/aup-input.js.map +1 -0
- package/esm2015/cypress/components/aup-input.metadata.json +1 -0
- package/esm2015/cypress/components/aup-more-menu.js +8 -0
- package/esm2015/cypress/components/aup-more-menu.js.map +1 -0
- package/esm2015/cypress/components/aup-more-menu.metadata.json +1 -0
- package/esm2015/cypress/components/aup-popup-menu.js +10 -0
- package/esm2015/cypress/components/aup-popup-menu.js.map +1 -0
- package/esm2015/cypress/components/aup-popup-menu.metadata.json +1 -0
- package/esm2015/cypress/components/aup-tool-bar.js +8 -0
- package/esm2015/cypress/components/aup-tool-bar.js.map +1 -0
- package/esm2015/cypress/components/aup-tool-bar.metadata.json +1 -0
- package/esm2015/cypress/components/button.js +11 -0
- package/esm2015/cypress/components/button.js.map +1 -0
- package/esm2015/cypress/components/button.metadata.json +1 -0
- package/esm2015/cypress/components/types.js +2 -0
- package/esm2015/cypress/components/types.js.map +1 -0
- package/esm2015/cypress/coolon-angular-ui-powerups-cypress.js +5 -0
- package/esm2015/cypress/coolon-angular-ui-powerups-cypress.js.map +1 -0
- package/esm2015/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -0
- package/esm2015/cypress/exports.js +16 -0
- package/esm2015/cypress/exports.js.map +1 -0
- package/esm2015/cypress/exports.metadata.json +1 -0
- package/esm2015/cypress/page-element.js +21 -0
- package/esm2015/cypress/page-element.js.map +1 -0
- package/esm2015/cypress/page-element.metadata.json +1 -0
- package/esm2015/cypress/page.js +48 -0
- package/esm2015/cypress/page.js.map +1 -0
- package/esm2015/cypress/page.metadata.json +1 -0
- package/esm2015/cypress/section.js +41 -0
- package/esm2015/cypress/section.js.map +1 -0
- package/esm2015/cypress/section.metadata.json +1 -0
- package/esm2015/lib/animations/{index.js → exports.js} +1 -1
- package/esm2015/lib/animations/exports.js.map +1 -0
- package/esm2015/lib/components/commands/command/command.component.js +2 -1
- package/esm2015/lib/components/commands/command/command.component.js.map +1 -1
- package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/command/command.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/{index.js → exports.js} +1 -1
- package/esm2015/lib/components/exports.js.map +1 -0
- package/esm2015/lib/directives/{index.js → exports.js} +1 -1
- package/esm2015/lib/directives/exports.js.map +1 -0
- package/esm2015/lib/interaction/{index.js → exports.js} +1 -1
- package/esm2015/lib/interaction/exports.js.map +1 -0
- package/esm2015/lib/interaction/interaction.module.js +1 -1
- package/esm2015/lib/interaction/interaction.module.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
- package/esm2015/lib/place/{index.js → exports.js} +1 -1
- package/esm2015/lib/place/exports.js.map +1 -0
- package/esm2015/lib/place/place.module.js +1 -1
- package/esm2015/lib/place/place.module.js.map +1 -1
- package/esm2015/lib/place/place.module.metadata.json +1 -1
- package/esm2015/public_api.js +5 -5
- package/esm2015/public_api.js.map +1 -1
- package/esm2015/public_api.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups-cypress.js +246 -0
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -0
- package/fesm2015/coolon-angular-ui-powerups.js +3 -2
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/navigation/place-component-deactivation-handler.d.ts +2 -2
- package/package.json +3 -2
- package/public_api.d.ts +5 -5
- package/schematics/bootstrap-app/index.js +6 -6
- package/schematics/bootstrap-app/index.js.map +1 -1
- package/schematics/place-add/index.js +2 -2
- package/schematics/place-add/index.js.map +1 -1
- package/schematics/utils/build-context.d.ts +2 -2
- package/schematics/utils/build-context.js +7 -4
- package/schematics/utils/build-context.js.map +1 -1
- package/schematics/utils/workspace.js +2 -5
- package/schematics/utils/workspace.js.map +1 -1
- package/esm2015/lib/animations/index.js.map +0 -1
- package/esm2015/lib/components/index.js.map +0 -1
- package/esm2015/lib/directives/index.js.map +0 -1
- package/esm2015/lib/interaction/index.js.map +0 -1
- package/esm2015/lib/place/index.js.map +0 -1
- /package/esm2015/lib/animations/{index.metadata.json → exports.metadata.json} +0 -0
- /package/esm2015/lib/components/{index.metadata.json → exports.metadata.json} +0 -0
- /package/esm2015/lib/directives/{index.metadata.json → exports.metadata.json} +0 -0
- /package/esm2015/lib/interaction/{index.metadata.json → exports.metadata.json} +0 -0
- /package/esm2015/lib/place/{index.metadata.json → exports.metadata.json} +0 -0
- /package/lib/animations/{index.d.ts → exports.d.ts} +0 -0
- /package/lib/components/{index.d.ts → exports.d.ts} +0 -0
- /package/lib/directives/{index.d.ts → exports.d.ts} +0 -0
- /package/lib/interaction/{index.d.ts → exports.d.ts} +0 -0
- /package/lib/place/{index.d.ts → exports.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./lib/angular-ui-powerups.module"},{"from":"./lib/animations"},{"from":"./lib/components"},{"from":"./lib/directives"},{"from":"./lib/interaction"},{"from":"./lib/place"}]}]
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./lib/angular-ui-powerups.module"},{"from":"./lib/animations/exports"},{"from":"./lib/components/exports"},{"from":"./lib/directives/exports"},{"from":"./lib/interaction/exports"},{"from":"./lib/place/exports"}]}]
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { Mixin } from '@coolon/typescript-utilities';
|
|
2
|
+
|
|
3
|
+
class PageElement {
|
|
4
|
+
constructor(rootElementAccessor) {
|
|
5
|
+
this.rootElementAccessor = rootElementAccessor;
|
|
6
|
+
}
|
|
7
|
+
element() {
|
|
8
|
+
return this.rootElementAccessor ? this.rootElementAccessor() : undefined;
|
|
9
|
+
}
|
|
10
|
+
click(text) {
|
|
11
|
+
text ? this.element().contains(text).click() : this.element().click();
|
|
12
|
+
}
|
|
13
|
+
get should() {
|
|
14
|
+
return this.element().should;
|
|
15
|
+
}
|
|
16
|
+
shouldBeVisible() {
|
|
17
|
+
this.should("be.visible");
|
|
18
|
+
}
|
|
19
|
+
shouldNotBeVisible() {
|
|
20
|
+
this.should("not.be.visible");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
class AupCommandFace extends PageElement {
|
|
25
|
+
static create(parent, face) {
|
|
26
|
+
const parentFinder = () => parent.element();
|
|
27
|
+
const rootElementAccessor = this.createFinder(parentFinder, face);
|
|
28
|
+
return new AupCommandFace(rootElementAccessor);
|
|
29
|
+
}
|
|
30
|
+
static createFinder(parent, face) {
|
|
31
|
+
// AOT barfs if we return a lambda
|
|
32
|
+
const finder = () => face.text ?
|
|
33
|
+
parent().contains(`aup-command-face`, face.text()) :
|
|
34
|
+
face.icon ?
|
|
35
|
+
parent().find(`aup-icon[ng-reflect-icon=${face.icon()}]`).closest('aup-command-face') :
|
|
36
|
+
undefined;
|
|
37
|
+
return finder;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
class Button extends PageElement {
|
|
42
|
+
click() {
|
|
43
|
+
return this.element().click();
|
|
44
|
+
}
|
|
45
|
+
shouldBeDisabled() {
|
|
46
|
+
this.should("be.disabled");
|
|
47
|
+
// this.should("have.css", "color", "rgba(0,0,0,0.26)")
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
class AupCommand extends Button {
|
|
52
|
+
static create(parent, face) {
|
|
53
|
+
const parentFinder = () => parent.element().find('aup-command');
|
|
54
|
+
const findFace = AupCommandFace.createFinder(parentFinder, face);
|
|
55
|
+
const commandFinder = () => findFace().closest("aup-command");
|
|
56
|
+
return new AupCommand(commandFinder);
|
|
57
|
+
}
|
|
58
|
+
get should() {
|
|
59
|
+
return this.element().find('button').should;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
class AupInput extends PageElement {
|
|
64
|
+
label() {
|
|
65
|
+
return this.element().find('label');
|
|
66
|
+
}
|
|
67
|
+
hint() {
|
|
68
|
+
return this.element().find('mat-hint');
|
|
69
|
+
}
|
|
70
|
+
error() {
|
|
71
|
+
return this.element().find('mat-error');
|
|
72
|
+
}
|
|
73
|
+
get labelShould() {
|
|
74
|
+
return this.label().should;
|
|
75
|
+
}
|
|
76
|
+
get hintShould() {
|
|
77
|
+
return this.hint().should;
|
|
78
|
+
}
|
|
79
|
+
get errorShould() {
|
|
80
|
+
return this.error().should;
|
|
81
|
+
}
|
|
82
|
+
labelShouldBe(text) {
|
|
83
|
+
return this.labelShould("have.text", text);
|
|
84
|
+
}
|
|
85
|
+
hintShouldBe(text) {
|
|
86
|
+
return this.hintShould("have.text", text);
|
|
87
|
+
}
|
|
88
|
+
errorShouldBe(text) {
|
|
89
|
+
return this.errorShould("have.text", text);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
(function (AupInput) {
|
|
93
|
+
class HtmlInput extends AupInput {
|
|
94
|
+
input() {
|
|
95
|
+
return this.element().find('input');
|
|
96
|
+
}
|
|
97
|
+
clear() {
|
|
98
|
+
this.input().clear();
|
|
99
|
+
}
|
|
100
|
+
setValue(value) {
|
|
101
|
+
const input = this.input();
|
|
102
|
+
input.clear();
|
|
103
|
+
input.type(`${value}`);
|
|
104
|
+
this.input().should('have.value', `${value}`);
|
|
105
|
+
}
|
|
106
|
+
get should() {
|
|
107
|
+
return this.input().should;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
AupInput.HtmlInput = HtmlInput;
|
|
111
|
+
class TextAreaInput extends AupInput {
|
|
112
|
+
get should() {
|
|
113
|
+
return this.input().should;
|
|
114
|
+
}
|
|
115
|
+
input() {
|
|
116
|
+
return this.element().find('textarea');
|
|
117
|
+
}
|
|
118
|
+
clear() {
|
|
119
|
+
this.input().clear();
|
|
120
|
+
}
|
|
121
|
+
setValue(value) {
|
|
122
|
+
const input = this.input();
|
|
123
|
+
input.clear();
|
|
124
|
+
input.type(`${value}`);
|
|
125
|
+
this.input().should('have.value', value);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
AupInput.TextAreaInput = TextAreaInput;
|
|
129
|
+
})(AupInput || (AupInput = {}));
|
|
130
|
+
|
|
131
|
+
var Section;
|
|
132
|
+
(function (Section) {
|
|
133
|
+
function Mixin$1(Base) {
|
|
134
|
+
return class extends Base {
|
|
135
|
+
section(selector, section) {
|
|
136
|
+
const impl = new Impl(() => this.element().find(selector));
|
|
137
|
+
return Mixin.createProxy(section(impl), impl);
|
|
138
|
+
}
|
|
139
|
+
contains(text) {
|
|
140
|
+
return new PageElement(() => this.element().contains(text));
|
|
141
|
+
}
|
|
142
|
+
button(text) {
|
|
143
|
+
return new Button(() => this.element().contains(`button`, text));
|
|
144
|
+
}
|
|
145
|
+
aupStringInput(selector) {
|
|
146
|
+
return new AupInput.HtmlInput(() => this.element().find(selector !== null && selector !== void 0 ? selector : 'aup-string-input'));
|
|
147
|
+
}
|
|
148
|
+
aupTextInput(selector) {
|
|
149
|
+
return new AupInput.TextAreaInput(() => this.element().find(selector !== null && selector !== void 0 ? selector : 'aup-text-input'));
|
|
150
|
+
}
|
|
151
|
+
aupPasswordInput(selector) {
|
|
152
|
+
return new AupInput.HtmlInput(() => this.element().find(selector !== null && selector !== void 0 ? selector : 'aup-password-input'));
|
|
153
|
+
}
|
|
154
|
+
aupNumberInput(selector) {
|
|
155
|
+
return new AupInput.HtmlInput(() => this.element().find(selector !== null && selector !== void 0 ? selector : 'aup-number-input'));
|
|
156
|
+
}
|
|
157
|
+
aupCommand(face) {
|
|
158
|
+
return AupCommand.create(this, face);
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
Section.Mixin = Mixin$1;
|
|
163
|
+
class Impl extends Mixin$1(PageElement) {
|
|
164
|
+
}
|
|
165
|
+
})(Section || (Section = {}));
|
|
166
|
+
|
|
167
|
+
class Page extends PageElement {
|
|
168
|
+
constructor(path) {
|
|
169
|
+
super();
|
|
170
|
+
this.path = path;
|
|
171
|
+
this.rootElementSelector = 'body';
|
|
172
|
+
}
|
|
173
|
+
element() {
|
|
174
|
+
return cy.get(this.rootElementSelector);
|
|
175
|
+
}
|
|
176
|
+
visit() {
|
|
177
|
+
cy.visit(this.path);
|
|
178
|
+
this.shouldBeActive();
|
|
179
|
+
}
|
|
180
|
+
shouldHaveActivityIds(...ids) {
|
|
181
|
+
cy.location('search').should('contain', `?aup-interactions=${ids.join('--')}`);
|
|
182
|
+
}
|
|
183
|
+
shouldNotHaveActivityIds() {
|
|
184
|
+
cy.location('search').should('not.contain', `?aup-interactions`);
|
|
185
|
+
}
|
|
186
|
+
shouldBeActive(options) {
|
|
187
|
+
const bits = [this.path];
|
|
188
|
+
// TODO: add support for parameter names...
|
|
189
|
+
if (options && options.withParameters) {
|
|
190
|
+
bits.push(`;([^\?]+)`);
|
|
191
|
+
}
|
|
192
|
+
if (options && options.withActivities) {
|
|
193
|
+
bits.push(`\?aup-interactions=${options.withActivities.join('--')})`);
|
|
194
|
+
}
|
|
195
|
+
cy.location('pathname').should('match', new RegExp(`^${bits.join('')}$`));
|
|
196
|
+
if (options && options.withTitle) {
|
|
197
|
+
cy.title().should('eq', options.withTitle);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
(function (Page) {
|
|
202
|
+
function create(path, page) {
|
|
203
|
+
const builder = new Builder(path);
|
|
204
|
+
return Mixin.createProxy(page(builder), builder);
|
|
205
|
+
}
|
|
206
|
+
Page.create = create;
|
|
207
|
+
class Builder extends Section.Mixin(Page) {
|
|
208
|
+
}
|
|
209
|
+
Page.Builder = Builder;
|
|
210
|
+
})(Page || (Page = {}));
|
|
211
|
+
|
|
212
|
+
class AupCommandGroup extends PageElement {
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
class AupMoreMenu extends PageElement {
|
|
216
|
+
static create(parent) {
|
|
217
|
+
const finder = () => parent.element().contains('aup-more-menu');
|
|
218
|
+
return new AupMoreMenu(finder);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
class AupPopupMenu extends PageElement {
|
|
223
|
+
static create(parent, face) {
|
|
224
|
+
const faceFinder = AupCommandFace.createFinder(() => parent.element(), face);
|
|
225
|
+
const buttonFinder = () => faceFinder().closest('button');
|
|
226
|
+
return new AupPopupMenu(buttonFinder);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
class AupToolBar extends PageElement {
|
|
231
|
+
static create(parent, face) {
|
|
232
|
+
// const findFace = AupCommandFace.createFinder(() => parent.element(), face)
|
|
233
|
+
// return new AupCommandGroup(() => findFace().closest('button'));
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @file Automatically generated by barrelsby.
|
|
239
|
+
*/
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Generated bundle index. Do not edit.
|
|
243
|
+
*/
|
|
244
|
+
|
|
245
|
+
export { AupCommand, AupCommandFace, AupCommandGroup, AupInput, AupMoreMenu, AupPopupMenu, AupToolBar, Button, Page, PageElement, Section };
|
|
246
|
+
//# sourceMappingURL=coolon-angular-ui-powerups-cypress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coolon-angular-ui-powerups-cypress.js","sources":["../../../../libs/angular-ui-powerups/cypress/src/page-element.ts","../../../../libs/angular-ui-powerups/cypress/src/components/aup-command-face.ts","../../../../libs/angular-ui-powerups/cypress/src/components/button.ts","../../../../libs/angular-ui-powerups/cypress/src/components/aup-command.ts","../../../../libs/angular-ui-powerups/cypress/src/components/aup-input.ts","../../../../libs/angular-ui-powerups/cypress/src/section.ts","../../../../libs/angular-ui-powerups/cypress/src/page.ts","../../../../libs/angular-ui-powerups/cypress/src/components/aup-command-group.ts","../../../../libs/angular-ui-powerups/cypress/src/components/aup-more-menu.ts","../../../../libs/angular-ui-powerups/cypress/src/components/aup-popup-menu.ts","../../../../libs/angular-ui-powerups/cypress/src/components/aup-tool-bar.ts","../../../../libs/angular-ui-powerups/cypress/src/exports.ts","../../../../libs/angular-ui-powerups/cypress/src/coolon-angular-ui-powerups-cypress.ts"],"sourcesContent":["import Chainable = Cypress.Chainable;\n\nexport class PageElement {\n constructor(readonly rootElementAccessor?: () => Cypress.Chainable<JQuery>) {\n }\n\n element(): Chainable<JQuery> {\n return this.rootElementAccessor ? this.rootElementAccessor() : undefined;\n }\n\n click(text?: string) {\n text ? this.element().contains(text).click() : this.element().click();\n }\n\n get should() {\n return this.element().should;\n }\n\n shouldBeVisible() {\n this.should(\"be.visible\");\n }\n\n shouldNotBeVisible() {\n this.should(\"not.be.visible\");\n }\n}\n","import { PageElement } from '../page-element';\nimport { Types } from './types';\n\ntype ElementFinder = () => Cypress.Chainable<JQuery<HTMLElement>>\n\nexport class AupCommandFace extends PageElement {\n\n static create(parent: PageElement, face: Types.CommandFace) {\n const parentFinder: ElementFinder = () => parent.element();\n const rootElementAccessor = this.createFinder(parentFinder, face);\n return new AupCommandFace(rootElementAccessor);\n }\n\n static createFinder(parent: ElementFinder, face: Types.CommandFace) {\n // AOT barfs if we return a lambda\n const finder = () => face.text ?\n parent().contains(`aup-command-face`, face.text()) :\n face.icon ?\n parent().find(`aup-icon[ng-reflect-icon=${face.icon()}]`).closest('aup-command-face') :\n undefined;\n return finder;\n }\n}\n\n","import { PageElement } from '../page-element';\n\nexport class Button extends PageElement {\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","import { Types } from './types';\nimport { PageElement } from '../page-element';\nimport { AupCommandFace } from './aup-command-face';\nimport { Button } from './button';\n\nexport class AupCommand extends Button {\n\n static create(parent: PageElement, face: Types.CommandFace) {\n const parentFinder = () => parent.element().find('aup-command');\n const findFace = AupCommandFace.createFinder(parentFinder, face);\n const commandFinder = () => findFace().closest(\"aup-command\");\n return new AupCommand(commandFinder);\n }\n\n get should() {\n return this.element().find('button').should\n }\n\n}\n\n","import { PageElement } from '../page-element';\n\nexport abstract class AupInput<T> extends PageElement {\n\n label() {\n return this.element().find('label');\n }\n\n hint() {\n return this.element().find('mat-hint');\n }\n\n error() {\n return this.element().find('mat-error');\n }\n\n get labelShould() {\n return this.label().should\n }\n\n get hintShould() {\n return this.hint().should\n }\n\n get errorShould() {\n return this.error().should\n }\n\n labelShouldBe(text: string) {\n return this.labelShould(\"have.text\", text);\n }\n\n hintShouldBe(text: string) {\n return this.hintShould(\"have.text\", text);\n }\n\n errorShouldBe(text: string) {\n return this.errorShould(\"have.text\", text);\n }\n\n abstract clear();\n\n abstract setValue(value: T);\n\n}\n\nexport namespace AupInput {\n export class HtmlInput<T> extends AupInput<T> {\n input() {\n return this.element().find('input');\n }\n\n clear() {\n this.input().clear();\n }\n\n setValue(value: T) {\n const input = this.input();\n input.clear();\n input.type(`${value}`);\n this.input().should('have.value', `${value}`);\n }\n\n get should() {\n return this.input().should;\n }\n\n }\n\n export class TextAreaInput<T> extends AupInput<T> {\n\n get should() {\n return this.input().should;\n }\n\n input() {\n return this.element().find('textarea');\n }\n\n clear() {\n this.input().clear();\n }\n\n setValue(value: T) {\n const input = this.input();\n input.clear();\n input.type(`${value}`);\n this.input().should('have.value', value);\n }\n }\n\n}\n","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 { 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 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}\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().find(selector));\n return CreateMixin.createProxy(section(impl), impl);\n }\n\n contains(text: string): PageElement {\n return new PageElement(() => this.element().contains(text));\n }\n\n button(text: string): Button {\n return new Button(() => this.element().contains(`button`, text));\n }\n\n aupStringInput(selector?: string): AupInput<string> {\n return new AupInput.HtmlInput(() => this.element().find(selector ?? 'aup-string-input'));\n }\n\n aupTextInput(selector?: string): AupInput<string> {\n return new AupInput.TextAreaInput(() => this.element().find(selector ?? 'aup-text-input'));\n }\n\n aupPasswordInput(selector?: string): AupInput<string> {\n return new AupInput.HtmlInput(() => this.element().find(selector ?? 'aup-password-input'));\n }\n\n aupNumberInput(selector?: string): AupInput<number> {\n return new AupInput.HtmlInput(() => this.element().find(selector ?? 'aup-number-input'));\n }\n\n aupCommand(face: Types.CommandFace): AupCommand {\n return AupCommand.create(this, face);\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","import { Mixin } from '@coolon/typescript-utilities';\nimport { PageElement } from './page-element';\nimport { Section } from './section';\n\nexport class Page extends PageElement {\n\n protected rootElementSelector = 'body';\n\n constructor(readonly path: string) {\n super();\n }\n\n element(): Cypress.Chainable<JQuery<HTMLElement>> {\n return cy.get(this.rootElementSelector);\n }\n\n visit() {\n cy.visit(this.path);\n this.shouldBeActive();\n }\n\n shouldHaveActivityIds(...ids: string[]) {\n cy.location('search').should('contain', `?aup-interactions=${ids.join('--')}`);\n }\n\n shouldNotHaveActivityIds() {\n cy.location('search').should('not.contain', `?aup-interactions`);\n }\n\n shouldBeActive(options?: { withTitle?: string, withActivities?: string[], withParameters?: boolean }) {\n const bits = [this.path];\n // TODO: add support for parameter names...\n if (options && options.withParameters) {\n bits.push(`;([^\\?]+)`);\n }\n if (options && options.withActivities) {\n bits.push(`\\?aup-interactions=${options.withActivities.join('--')})`);\n }\n\n cy.location('pathname').should('match', new RegExp(`^${bits.join('')}$`));\n\n if (options && options.withTitle) {\n cy.title().should('eq', options.withTitle);\n }\n }\n\n}\n\n\nexport namespace Page {\n\n export function create<T extends object>(path: string, page: (page: Builder) => T): T & Page {\n const builder = new Builder(path);\n return Mixin.createProxy(page(builder), builder) as T & Page;\n }\n\n export class Builder extends Section.Mixin(Page) {\n }\n\n}\n","import { PageElement } from '../page-element';\n\nexport class AupCommandGroup extends PageElement {\n\n}\n","import { PageElement } from '../page-element';\n\nexport class AupMoreMenu extends PageElement {\n\n static create(parent: PageElement) {\n const finder = () => parent.element().contains('aup-more-menu');\n return new AupMoreMenu(finder);\n }\n}\n","import { PageElement } from '../page-element';\nimport { AupCommandFace } from './aup-command-face';\nimport { Types } from './types';\n\nexport class AupPopupMenu extends PageElement {\n\n static create(parent: PageElement, face: Types.CommandFace) {\n const faceFinder = AupCommandFace.createFinder(() => parent.element(), face);\n const buttonFinder = () => faceFinder().closest('button');\n return new AupPopupMenu(buttonFinder);\n }\n}\n","import { CommandFace } from '@coolon/angular-ui-powerups';\nimport { PageElement } from '../page-element';\n\nexport class AupToolBar extends PageElement {\n\n static create(parent: PageElement, face: CommandFace) {\n // const findFace = AupCommandFace.createFinder(() => parent.element(), face)\n // return new AupCommandGroup(() => findFace().closest('button'));\n }\n}\n","/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./page-element\";\nexport * from \"./page\";\nexport * from \"./section\";\nexport * from \"./components/aup-command-face\";\nexport * from \"./components/aup-command-group\";\nexport * from \"./components/aup-command\";\nexport * from \"./components/aup-input\";\nexport * from \"./components/aup-more-menu\";\nexport * from \"./components/aup-popup-menu\";\nexport * from \"./components/aup-tool-bar\";\nexport * from \"./components/button\";\nexport * from \"./components/types\";\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './exports';\n"],"names":["Mixin","CreateMixin"],"mappings":";;MAEa,WAAW;IACtB,YAAqB,mBAAqD;QAArD,wBAAmB,GAAnB,mBAAmB,CAAkC;KACzE;IAED,OAAO;QACL,OAAO,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,EAAE,GAAG,SAAS,CAAC;KAC1E;IAED,KAAK,CAAC,IAAa;QACjB,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC;KACvE;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;KAC9B;IAED,eAAe;QACb,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;KAC3B;IAED,kBAAkB;QAChB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;KAC/B;;;MCnBU,cAAe,SAAQ,WAAW;IAE7C,OAAO,MAAM,CAAC,MAAmB,EAAE,IAA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;KACF;CAEF;AAGD,WAAiB,IAAI;IAEnB,SAAgB,MAAM,CAAmB,IAAY,EAAE,IAA0B;QAC/E,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,CAAa,CAAC;KAC9D;IAHe,WAAM,SAGrB,CAAA;IAED,MAAa,OAAQ,SAAQ,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;KAC/C;IADY,YAAO,UACnB,CAAA;AAEH,CAAC,EAVgB,IAAI,KAAJ,IAAI;;MC/CR,eAAgB,SAAQ,WAAW;;;MCAnC,WAAY,SAAQ,WAAW;IAE1C,OAAO,MAAM,CAAC,MAAmB;QAC/B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;QAChE,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;KAChC;;;MCHU,YAAa,SAAQ,WAAW;IAE3C,OAAO,MAAM,CAAC,MAAmB,EAAE,IAAuB;QACxD,MAAM,UAAU,GAAG,cAAc,CAAC,YAAY,CAAC,MAAM,MAAM,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;QAC7E,MAAM,YAAY,GAAG,MAAM,UAAU,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC1D,OAAO,IAAI,YAAY,CAAC,YAAY,CAAC,CAAC;KACvC;;;MCPU,UAAW,SAAQ,WAAW;IAEzC,OAAO,MAAM,CAAC,MAAmB,EAAE,IAAiB;;;KAGnD;;;ACRH;;;;ACAA;;;;;;"}
|
|
@@ -968,7 +968,8 @@ class CommandComponent extends DisposableComponent {
|
|
|
968
968
|
CommandComponent.decorators = [
|
|
969
969
|
{ type: Component, args: [{
|
|
970
970
|
selector: 'aup-command',
|
|
971
|
-
template: "<ng-container *ngIf=\"!parent\">\n <ng-container [ngSwitch]=\"buttonStyle.value\">\n <button *ngSwitchCase=\"CommandFace.Style.STROKED\" mat-stroked-button [pectinCommand]=\"command\" [color]=\"colorModel.value\">\n <aup-command-face [face]=\"activeFaceModel.value\"></aup-command-face>\n </button>\n <button *ngSwitchCase=\"CommandFace.Style.RAISED\" mat-raised-button [pectinCommand]=\"command\" [color]=\"colorModel.value\">\n <aup-command-face [face]=\"activeFaceModel.value\"></aup-command-face>\n </button>\n <button *ngSwitchDefault mat-button [pectinCommand]=\"command\" [color]=\"colorModel.value\">\n <aup-command-face [face]=\"activeFaceModel.value\"></aup-command-face>\n </button>\n </ng-container>\n</ng-container>\n"
|
|
971
|
+
template: "<ng-container *ngIf=\"!parent\">\n <ng-container [ngSwitch]=\"buttonStyle.value\">\n <button *ngSwitchCase=\"CommandFace.Style.STROKED\" mat-stroked-button [pectinCommand]=\"command\" [color]=\"colorModel.value\">\n <aup-command-face [face]=\"activeFaceModel.value\"></aup-command-face>\n </button>\n <button *ngSwitchCase=\"CommandFace.Style.RAISED\" mat-raised-button [pectinCommand]=\"command\" [color]=\"colorModel.value\">\n <aup-command-face [face]=\"activeFaceModel.value\"></aup-command-face>\n </button>\n <button *ngSwitchDefault mat-button [pectinCommand]=\"command\" [color]=\"colorModel.value\">\n <aup-command-face [face]=\"activeFaceModel.value\"></aup-command-face>\n </button>\n </ng-container>\n</ng-container>\n",
|
|
972
|
+
styles: [":host{display:inline-flex;flex-direction:row;justify-content:stretch}button{flex:1}"]
|
|
972
973
|
},] }
|
|
973
974
|
];
|
|
974
975
|
CommandComponent.ctorParameters = () => [
|
|
@@ -7043,5 +7044,5 @@ function VisitParameterList(options) {
|
|
|
7043
7044
|
* Generated bundle index. Do not edit.
|
|
7044
7045
|
*/
|
|
7045
7046
|
|
|
7046
|
-
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputActivity, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AddItemInteractionContextComponent, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnModel, ColumnTemplateDirective, CommandComponent, CommandDirective, CommandFace, CommandFaceComponent, CommandGroup, CommandGroupComponent, CommandGroupMenuRendererComponent, CommandGroupRendererComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EventCleanUpSession, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, HEADER_CELL_RENDERER_PORTAL, IconComponent, InPlaceInteractionContextComponent, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ListPropertyColumnModel, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupInteractionContextComponent, PopupMenuComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, Registration, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectCellRendererComponent, SelectHeaderCellRendererComponent, SelectInputActivity, SelectInputComponent, SelectionColumnModel, SeparatorComponent, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableCellRendererComponent, TableComponent, TableHeaderCellRendererComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, TrackBy, UrlService, UrlSnapshot, VerticalFocusContainerComponent, ViewData, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, ɵ0
|
|
7047
|
+
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputActivity, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AddItemInteractionContextComponent, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnModel, ColumnTemplateDirective, CommandComponent, CommandDirective, CommandFace, CommandFaceComponent, CommandGroup, CommandGroupComponent, CommandGroupMenuRendererComponent, CommandGroupRendererComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EventCleanUpSession, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, HEADER_CELL_RENDERER_PORTAL, IconComponent, InPlaceInteractionContextComponent, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ListPropertyColumnModel, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupInteractionContextComponent, PopupMenuComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, Registration, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectCellRendererComponent, SelectHeaderCellRendererComponent, SelectInputActivity, SelectInputComponent, SelectionColumnModel, SeparatorComponent, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableCellRendererComponent, TableComponent, TableHeaderCellRendererComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, TrackBy, UrlService, UrlSnapshot, VerticalFocusContainerComponent, ViewData, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, ɵ0 };
|
|
7047
7048
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|