@coolon/angular-ui-powerups 12.4.0-alpha.2 → 12.4.0-alpha.20
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 +657 -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 +45 -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.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-modal-alert.d.ts +7 -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 +9 -7
- package/cypress/components/form-element-mixin.d.ts +20 -0
- package/cypress/components/mat-checkbox.d.ts +29 -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 +9 -12
- package/cypress/page.d.ts +5 -33
- package/esm2015/cypress/builder.js +99 -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.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-modal-alert.js +12 -0
- package/esm2015/cypress/components/aup-modal-alert.js.map +1 -0
- package/esm2015/cypress/components/aup-modal-alert.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 +18 -20
- 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 +496 -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
|
@@ -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['angular-ui-powerups'] = global.coolon['angular-ui-powerups'] || {}, global.coolon['angular-ui-powerups'].cypress = {}), global.typescriptUtilities, global._, global.ng.router));
|
|
5
|
-
}(this, (function (exports, typescriptUtilities, _, router) { 'use strict';
|
|
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;
|
|
@@ -26,53 +26,6 @@
|
|
|
26
26
|
|
|
27
27
|
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
|
28
28
|
|
|
29
|
-
var PageElement = /** @class */ (function () {
|
|
30
|
-
function PageElement(parent, selector) {
|
|
31
|
-
this.parentElementAccessor = parent instanceof PageElement ? function () { return parent.element(); } : parent;
|
|
32
|
-
this.elementAccessStrategy = ___namespace.isString(selector) ? {
|
|
33
|
-
findIn: function (p) { return p.find(selector); },
|
|
34
|
-
shouldNotExist: function (p) { return p.should('not.have', selector); }
|
|
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
29
|
/*! *****************************************************************************
|
|
77
30
|
Copyright (c) Microsoft Corporation.
|
|
78
31
|
|
|
@@ -385,112 +338,96 @@
|
|
|
385
338
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
386
339
|
}
|
|
387
340
|
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
function
|
|
391
|
-
|
|
341
|
+
exports.ElementLocator = void 0;
|
|
342
|
+
(function (ElementLocator) {
|
|
343
|
+
function findByCssSelector(selector) {
|
|
344
|
+
return function (parent) { return parent.dom().find(selector); };
|
|
392
345
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
return
|
|
346
|
+
ElementLocator.findByCssSelector = findByCssSelector;
|
|
347
|
+
function findByTextContent(text) {
|
|
348
|
+
return function (parent) { return parent.dom().contains(text); };
|
|
349
|
+
}
|
|
350
|
+
ElementLocator.findByTextContent = findByTextContent;
|
|
351
|
+
function findBySelectorAndTextContent(selector, text) {
|
|
352
|
+
return function (parent) { return parent.dom().contains(selector, text); };
|
|
353
|
+
}
|
|
354
|
+
ElementLocator.findBySelectorAndTextContent = findBySelectorAndTextContent;
|
|
355
|
+
})(exports.ElementLocator || (exports.ElementLocator = {}));
|
|
356
|
+
|
|
357
|
+
var PageElement = /** @class */ (function () {
|
|
358
|
+
function PageElement(parent, selectorOrLocator) {
|
|
359
|
+
this.parent = parent;
|
|
360
|
+
this.domElementLocator = ___namespace.isString(selectorOrLocator) ?
|
|
361
|
+
exports.ElementLocator.findByCssSelector(selectorOrLocator) :
|
|
362
|
+
selectorOrLocator;
|
|
363
|
+
}
|
|
364
|
+
PageElement.prototype.dom = function () {
|
|
365
|
+
return this.domElementLocator(this.parent);
|
|
400
366
|
};
|
|
401
|
-
|
|
402
|
-
return
|
|
367
|
+
PageElement.prototype.find = function (selector) {
|
|
368
|
+
return new PageElement(this, selector);
|
|
403
369
|
};
|
|
404
|
-
|
|
370
|
+
PageElement.prototype.click = function (text) {
|
|
371
|
+
text ? this.dom().contains(text).click() : this.dom().click();
|
|
372
|
+
};
|
|
373
|
+
Object.defineProperty(PageElement.prototype, "should", {
|
|
374
|
+
get: function () {
|
|
375
|
+
return this.getShoulder(this.getShouldElement());
|
|
376
|
+
},
|
|
377
|
+
enumerable: false,
|
|
378
|
+
configurable: true
|
|
379
|
+
});
|
|
380
|
+
PageElement.prototype.getShoulder = function (element) {
|
|
381
|
+
return element.should.bind(element);
|
|
382
|
+
};
|
|
383
|
+
PageElement.prototype.getShouldElement = function () {
|
|
384
|
+
return this.dom();
|
|
385
|
+
};
|
|
386
|
+
PageElement.prototype.shouldBeVisible = function () {
|
|
387
|
+
this.should('be.visible');
|
|
388
|
+
};
|
|
389
|
+
PageElement.prototype.shouldNotBeVisible = function () {
|
|
390
|
+
this.should('not.be.visible');
|
|
391
|
+
};
|
|
392
|
+
PageElement.prototype.shouldExist = function () {
|
|
393
|
+
this.dom().should('exist');
|
|
394
|
+
};
|
|
395
|
+
PageElement.prototype.shouldNotExist = function () {
|
|
396
|
+
this.dom().should('not.exist');
|
|
397
|
+
};
|
|
398
|
+
return PageElement;
|
|
405
399
|
}());
|
|
406
|
-
(function (Path) {
|
|
407
|
-
function setUrlSerialiser(serialiser) {
|
|
408
|
-
urlSerialiser = serialiser;
|
|
409
|
-
}
|
|
410
|
-
Path.setUrlSerialiser = setUrlSerialiser;
|
|
411
|
-
var Segment = /** @class */ (function () {
|
|
412
|
-
function Segment(path, params) {
|
|
413
|
-
if (params === void 0) { params = {}; }
|
|
414
|
-
var _a;
|
|
415
|
-
this.path = path;
|
|
416
|
-
this.routeId = params === null || params === void 0 ? void 0 : params.routeId;
|
|
417
|
-
this.visitParams = (_a = params === null || params === void 0 ? void 0 : params.visitParams) !== null && _a !== void 0 ? _a : [];
|
|
418
|
-
}
|
|
419
|
-
Segment.prototype.toUrlPart = function (params) {
|
|
420
|
-
var path = this.path;
|
|
421
|
-
this.visitParams.forEach(function (p) {
|
|
422
|
-
var value = params[p];
|
|
423
|
-
if (value) {
|
|
424
|
-
path = path + ";" + p + "=" + value;
|
|
425
|
-
}
|
|
426
|
-
});
|
|
427
|
-
if (this.routeId && params[this.routeId]) {
|
|
428
|
-
path = path + '/' + params[this.routeId];
|
|
429
|
-
}
|
|
430
|
-
return path;
|
|
431
|
-
};
|
|
432
|
-
return Segment;
|
|
433
|
-
}());
|
|
434
|
-
Path.Segment = Segment;
|
|
435
|
-
var Builder = /** @class */ (function () {
|
|
436
|
-
function Builder() {
|
|
437
|
-
this.segments = [];
|
|
438
|
-
}
|
|
439
|
-
Builder.prototype.segment = function (name, params) {
|
|
440
|
-
var builder = new Segment(name, params);
|
|
441
|
-
this.segments.push(builder);
|
|
442
|
-
return this;
|
|
443
|
-
};
|
|
444
|
-
Builder.prototype.getPath = function () {
|
|
445
|
-
return new Path(this.segments);
|
|
446
|
-
};
|
|
447
|
-
return Builder;
|
|
448
|
-
}());
|
|
449
|
-
Path.Builder = Builder;
|
|
450
|
-
})(exports.Path || (exports.Path = {}));
|
|
451
400
|
|
|
452
|
-
var FaceAccessor = /** @class */ (function () {
|
|
453
|
-
function FaceAccessor(face) {
|
|
454
|
-
this.face = face;
|
|
455
|
-
}
|
|
456
|
-
FaceAccessor.prototype.findIn = function (parent) {
|
|
457
|
-
return this.face.text ?
|
|
458
|
-
parent.contains("aup-command-face", this.face.text()) :
|
|
459
|
-
this.face.icon ?
|
|
460
|
-
parent.find("aup-icon[ng-reflect-icon=" + this.face.icon() + "]").closest('aup-command-face') :
|
|
461
|
-
undefined;
|
|
462
|
-
};
|
|
463
|
-
FaceAccessor.prototype.shouldNotExist = function (parent) {
|
|
464
|
-
return this.face.text ?
|
|
465
|
-
parent.should('not.contain', "aup-command-face", this.face.text()) :
|
|
466
|
-
this.face.icon ?
|
|
467
|
-
parent.should('not.contain', "aup-icon[ng-reflect-icon=" + this.face.icon() + "]") :
|
|
468
|
-
undefined;
|
|
469
|
-
};
|
|
470
|
-
return FaceAccessor;
|
|
471
|
-
}());
|
|
472
401
|
var AupCommandFace = /** @class */ (function (_super) {
|
|
473
402
|
__extends(AupCommandFace, _super);
|
|
474
403
|
function AupCommandFace(parentElement, face) {
|
|
475
|
-
return _super.call(this,
|
|
404
|
+
return _super.call(this, parentElement, AupCommandFace.createElementLocator(face)) || this;
|
|
476
405
|
}
|
|
477
|
-
AupCommandFace.
|
|
478
|
-
|
|
406
|
+
AupCommandFace.createElementLocator = function (face) {
|
|
407
|
+
var locator = function (parent) {
|
|
408
|
+
return face.text ?
|
|
409
|
+
parent.dom().contains("aup-command-face", face.text()) :
|
|
410
|
+
face.icon ?
|
|
411
|
+
parent.dom().find("aup-icon[ng-reflect-icon=" + face.icon() + "]").closest('aup-command-face') :
|
|
412
|
+
undefined;
|
|
413
|
+
};
|
|
414
|
+
// aot compiler doesn't like lambas
|
|
415
|
+
return locator;
|
|
479
416
|
};
|
|
480
417
|
return AupCommandFace;
|
|
481
418
|
}(PageElement));
|
|
482
419
|
|
|
483
420
|
var AupCommand = /** @class */ (function (_super) {
|
|
484
421
|
__extends(AupCommand, _super);
|
|
485
|
-
function AupCommand(parent,
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
422
|
+
function AupCommand(parent, faceOrSelector) {
|
|
423
|
+
return _super.call(this, parent, function (parentElement) {
|
|
424
|
+
if (___namespace.isString(faceOrSelector)) {
|
|
425
|
+
return parentElement.dom().find(faceOrSelector);
|
|
426
|
+
}
|
|
427
|
+
else {
|
|
428
|
+
return AupCommandFace.createElementLocator(faceOrSelector)(parentElement).closest('aup-command');
|
|
491
429
|
}
|
|
492
430
|
}) || this;
|
|
493
|
-
return _this;
|
|
494
431
|
}
|
|
495
432
|
AupCommand.prototype.click = function () {
|
|
496
433
|
this.getButton().click();
|
|
@@ -502,24 +439,35 @@
|
|
|
502
439
|
this.getButton().should('be.disabled');
|
|
503
440
|
};
|
|
504
441
|
AupCommand.prototype.getButton = function () {
|
|
505
|
-
return this.
|
|
442
|
+
return this.dom().find('button');
|
|
506
443
|
};
|
|
507
444
|
return AupCommand;
|
|
508
445
|
}(PageElement));
|
|
509
446
|
|
|
447
|
+
var AupEmptyState = /** @class */ (function (_super) {
|
|
448
|
+
__extends(AupEmptyState, _super);
|
|
449
|
+
function AupEmptyState() {
|
|
450
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
451
|
+
}
|
|
452
|
+
AupEmptyState.prototype.shouldContainText = function (text) {
|
|
453
|
+
this.dom().should("contain.text", text);
|
|
454
|
+
};
|
|
455
|
+
return AupEmptyState;
|
|
456
|
+
}(PageElement));
|
|
457
|
+
|
|
510
458
|
exports.AupInput = /** @class */ (function (_super) {
|
|
511
459
|
__extends(AupInput, _super);
|
|
512
460
|
function AupInput() {
|
|
513
461
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
514
462
|
}
|
|
515
463
|
AupInput.prototype.label = function () {
|
|
516
|
-
return this.
|
|
464
|
+
return this.dom().find('label');
|
|
517
465
|
};
|
|
518
466
|
AupInput.prototype.hint = function () {
|
|
519
|
-
return this.
|
|
467
|
+
return this.dom().find('mat-hint');
|
|
520
468
|
};
|
|
521
469
|
AupInput.prototype.error = function () {
|
|
522
|
-
return this.
|
|
470
|
+
return this.dom().find('mat-error');
|
|
523
471
|
};
|
|
524
472
|
Object.defineProperty(AupInput.prototype, "labelShould", {
|
|
525
473
|
get: function () {
|
|
@@ -551,6 +499,18 @@
|
|
|
551
499
|
AupInput.prototype.errorShouldBe = function (text) {
|
|
552
500
|
return this.errorShould("have.text", text);
|
|
553
501
|
};
|
|
502
|
+
AupInput.prototype.shouldBeFocused = function () {
|
|
503
|
+
this.input().should("have.focus");
|
|
504
|
+
};
|
|
505
|
+
AupInput.prototype.shouldNotBeFocused = function () {
|
|
506
|
+
this.input().should("not.have.focus");
|
|
507
|
+
};
|
|
508
|
+
AupInput.prototype.type = function (characters) {
|
|
509
|
+
this.input().type(characters);
|
|
510
|
+
};
|
|
511
|
+
AupInput.prototype.hitEnter = function () {
|
|
512
|
+
this.type("{enter}");
|
|
513
|
+
};
|
|
554
514
|
return AupInput;
|
|
555
515
|
}(PageElement));
|
|
556
516
|
(function (AupInput) {
|
|
@@ -560,7 +520,7 @@
|
|
|
560
520
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
561
521
|
}
|
|
562
522
|
HtmlInput.prototype.input = function () {
|
|
563
|
-
return this.
|
|
523
|
+
return this.dom().find('input');
|
|
564
524
|
};
|
|
565
525
|
HtmlInput.prototype.clear = function () {
|
|
566
526
|
this.input().clear();
|
|
@@ -586,7 +546,7 @@
|
|
|
586
546
|
return this.input();
|
|
587
547
|
};
|
|
588
548
|
TextAreaInput.prototype.input = function () {
|
|
589
|
-
return this.
|
|
549
|
+
return this.dom().find('textarea');
|
|
590
550
|
};
|
|
591
551
|
TextAreaInput.prototype.clear = function () {
|
|
592
552
|
this.input().clear();
|
|
@@ -602,6 +562,59 @@
|
|
|
602
562
|
AupInput.TextAreaInput = TextAreaInput;
|
|
603
563
|
})(exports.AupInput || (exports.AupInput = {}));
|
|
604
564
|
|
|
565
|
+
var AupPopupMenuPanel = /** @class */ (function (_super) {
|
|
566
|
+
__extends(AupPopupMenuPanel, _super);
|
|
567
|
+
function AupPopupMenuPanel() {
|
|
568
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
569
|
+
}
|
|
570
|
+
return AupPopupMenuPanel;
|
|
571
|
+
}(PageElement));
|
|
572
|
+
|
|
573
|
+
var AupAbstractPopupMenu = /** @class */ (function (_super) {
|
|
574
|
+
__extends(AupAbstractPopupMenu, _super);
|
|
575
|
+
function AupAbstractPopupMenu(parent, locator) {
|
|
576
|
+
var _this = _super.call(this, parent, locator) || this;
|
|
577
|
+
_this.popup = new AupPopupMenuPanel(_this, function (p) { return _this.findPopupIn(p); });
|
|
578
|
+
return _this;
|
|
579
|
+
}
|
|
580
|
+
AupAbstractPopupMenu.prototype.findPopupIn = function (p) {
|
|
581
|
+
return this.getOverlay().find('.mat-menu-panel');
|
|
582
|
+
};
|
|
583
|
+
AupAbstractPopupMenu.prototype.getOverlay = function () {
|
|
584
|
+
return this.dom().closest('body').find('.cdk-overlay-container');
|
|
585
|
+
};
|
|
586
|
+
AupAbstractPopupMenu.prototype.getBackdrop = function () {
|
|
587
|
+
return this.getOverlay().find('.cdk-overlay-backdrop');
|
|
588
|
+
};
|
|
589
|
+
AupAbstractPopupMenu.prototype.openPopup = function () {
|
|
590
|
+
this.shouldNotBeOpen();
|
|
591
|
+
this.click();
|
|
592
|
+
return this.popup;
|
|
593
|
+
};
|
|
594
|
+
AupAbstractPopupMenu.prototype.closePopup = function () {
|
|
595
|
+
this.shouldBeOpen();
|
|
596
|
+
this.getBackdrop().click();
|
|
597
|
+
};
|
|
598
|
+
AupAbstractPopupMenu.prototype.shouldBeOpen = function () {
|
|
599
|
+
this.popup.shouldBeVisible();
|
|
600
|
+
};
|
|
601
|
+
AupAbstractPopupMenu.prototype.shouldNotBeOpen = function () {
|
|
602
|
+
this.dom().closest('body').find('.mat-menu-panel').should("not.exist");
|
|
603
|
+
};
|
|
604
|
+
return AupAbstractPopupMenu;
|
|
605
|
+
}(PageElement));
|
|
606
|
+
|
|
607
|
+
var AupMoreMenu = /** @class */ (function (_super) {
|
|
608
|
+
__extends(AupMoreMenu, _super);
|
|
609
|
+
function AupMoreMenu() {
|
|
610
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
611
|
+
}
|
|
612
|
+
AupMoreMenu.create = function (parent, selector) {
|
|
613
|
+
return new AupMoreMenu(parent, exports.ElementLocator.findByCssSelector(selector !== null && selector !== void 0 ? selector : 'aup-more-menu'));
|
|
614
|
+
};
|
|
615
|
+
return AupMoreMenu;
|
|
616
|
+
}(AupAbstractPopupMenu));
|
|
617
|
+
|
|
605
618
|
var AupNavigation = /** @class */ (function (_super) {
|
|
606
619
|
__extends(AupNavigation, _super);
|
|
607
620
|
function AupNavigation() {
|
|
@@ -617,61 +630,197 @@
|
|
|
617
630
|
this.face(label).shouldBeVisible();
|
|
618
631
|
};
|
|
619
632
|
AupNavigation.prototype.shouldNotHaveLink = function (label) {
|
|
620
|
-
this.face(label).
|
|
633
|
+
this.face(label).shouldNotExist();
|
|
621
634
|
};
|
|
622
635
|
return AupNavigation;
|
|
623
636
|
}(PageElement));
|
|
624
637
|
|
|
625
|
-
|
|
626
|
-
__extends(
|
|
627
|
-
function
|
|
628
|
-
return _super.
|
|
638
|
+
var AupTableCell = /** @class */ (function (_super) {
|
|
639
|
+
__extends(AupTableCell, _super);
|
|
640
|
+
function AupTableCell() {
|
|
641
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
629
642
|
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
return new AupTable.Row(function () { return _this.element(); }, "tr[aup-table-id=" + rowId + "]");
|
|
643
|
+
AupTableCell.prototype.rowId = function () {
|
|
644
|
+
return this.dom().closest('tr').invoke('attr', 'aup-row-id');
|
|
633
645
|
};
|
|
634
|
-
|
|
635
|
-
|
|
646
|
+
AupTableCell.prototype.row = function () {
|
|
647
|
+
var self = this;
|
|
648
|
+
return this.parent.createRow(function (parent) {
|
|
649
|
+
return self.rowId().then(function (rowId) { return parent.dom().find(exports.AupAbstractTable.cssSelectorForTableRowById(rowId)); });
|
|
650
|
+
});
|
|
636
651
|
};
|
|
637
|
-
return
|
|
652
|
+
return AupTableCell;
|
|
653
|
+
}(PageElement));
|
|
654
|
+
|
|
655
|
+
var AupTableColumn = /** @class */ (function (_super) {
|
|
656
|
+
__extends(AupTableColumn, _super);
|
|
657
|
+
function AupTableColumn(table, columnId) {
|
|
658
|
+
var _this = _super.call(this, table, exports.AupAbstractTable.cssSelectorForColumnCellRendererById(columnId)) || this;
|
|
659
|
+
_this.columnId = columnId;
|
|
660
|
+
return _this;
|
|
661
|
+
}
|
|
662
|
+
AupTableColumn.prototype.cellContaining = function (content) {
|
|
663
|
+
var self = this;
|
|
664
|
+
return new AupTableCell(this.parent, function (parent) {
|
|
665
|
+
return parent.dom().contains(exports.AupAbstractTable.cssSelectorForColumnCellRendererById(self.columnId), content);
|
|
666
|
+
});
|
|
667
|
+
};
|
|
668
|
+
AupTableColumn.prototype.rowContaining = function (content) {
|
|
669
|
+
return this.cellContaining(content).row();
|
|
670
|
+
};
|
|
671
|
+
return AupTableColumn;
|
|
672
|
+
}(PageElement));
|
|
673
|
+
|
|
674
|
+
var AupTableSelectionColumn = /** @class */ (function (_super) {
|
|
675
|
+
__extends(AupTableSelectionColumn, _super);
|
|
676
|
+
function AupTableSelectionColumn() {
|
|
677
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
678
|
+
}
|
|
679
|
+
AupTableSelectionColumn.prototype.selectAll = function () {
|
|
680
|
+
};
|
|
681
|
+
return AupTableSelectionColumn;
|
|
682
|
+
}(AupTableColumn));
|
|
683
|
+
|
|
684
|
+
exports.AupAbstractTable = /** @class */ (function (_super) {
|
|
685
|
+
__extends(AupAbstractTable, _super);
|
|
686
|
+
function AupAbstractTable() {
|
|
687
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
688
|
+
}
|
|
689
|
+
AupAbstractTable.prototype.row = function (rowId) {
|
|
690
|
+
return this.createRow(function (parent) {
|
|
691
|
+
return parent.dom().find(AupAbstractTable.cssSelectorForTableRowById(rowId));
|
|
692
|
+
});
|
|
693
|
+
};
|
|
694
|
+
AupAbstractTable.prototype.rowNumber = function (rowNumber) {
|
|
695
|
+
return this.createRow(function (parent) {
|
|
696
|
+
return parent.dom().find(AupAbstractTable.cssSelectorForNthTableRow(rowNumber));
|
|
697
|
+
});
|
|
698
|
+
};
|
|
699
|
+
AupAbstractTable.prototype.column = function (columnId) {
|
|
700
|
+
return new AupTableColumn(this, columnId);
|
|
701
|
+
};
|
|
702
|
+
Object.defineProperty(AupAbstractTable.prototype, "selectionColumn", {
|
|
703
|
+
get: function () {
|
|
704
|
+
return new AupTableSelectionColumn(this, 'selection-column');
|
|
705
|
+
},
|
|
706
|
+
enumerable: false,
|
|
707
|
+
configurable: true
|
|
708
|
+
});
|
|
709
|
+
return AupAbstractTable;
|
|
710
|
+
}(PageElement));
|
|
711
|
+
__decorate([
|
|
712
|
+
src.Memoize(),
|
|
713
|
+
__metadata("design:type", AupTableSelectionColumn),
|
|
714
|
+
__metadata("design:paramtypes", [])
|
|
715
|
+
], exports.AupAbstractTable.prototype, "selectionColumn", null);
|
|
716
|
+
(function (AupAbstractTable) {
|
|
717
|
+
function cssSelectorForTableRowById(rowId) {
|
|
718
|
+
return "tbody tr[aup-row-id=" + rowId + "]";
|
|
719
|
+
}
|
|
720
|
+
AupAbstractTable.cssSelectorForTableRowById = cssSelectorForTableRowById;
|
|
721
|
+
function cssSelectorForNthTableRow(rowNumber) {
|
|
722
|
+
return "tbody tr:nth-child(" + rowNumber + ")";
|
|
723
|
+
}
|
|
724
|
+
AupAbstractTable.cssSelectorForNthTableRow = cssSelectorForNthTableRow;
|
|
725
|
+
function cssSelectorForColumnCellRendererById(columnOrId) {
|
|
726
|
+
var columnId = ___namespace.isString(columnOrId) ? columnOrId : columnOrId.columnId;
|
|
727
|
+
return "aup-table-cell-renderer[column-id=" + columnId + "]";
|
|
728
|
+
}
|
|
729
|
+
AupAbstractTable.cssSelectorForColumnCellRendererById = cssSelectorForColumnCellRendererById;
|
|
730
|
+
function cssSelectorForCell(rowId, columnOrId) {
|
|
731
|
+
return cssSelectorForTableRowById(rowId) + " " + cssSelectorForColumnCellRendererById(columnOrId);
|
|
732
|
+
}
|
|
733
|
+
AupAbstractTable.cssSelectorForCell = cssSelectorForCell;
|
|
734
|
+
})(exports.AupAbstractTable || (exports.AupAbstractTable = {}));
|
|
735
|
+
|
|
736
|
+
var AupTableRow = /** @class */ (function (_super) {
|
|
737
|
+
__extends(AupTableRow, _super);
|
|
738
|
+
function AupTableRow() {
|
|
739
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
740
|
+
}
|
|
741
|
+
AupTableRow.prototype.rowId = function () {
|
|
742
|
+
return this.dom()
|
|
743
|
+
.invoke('attr', 'aup-row-id');
|
|
744
|
+
};
|
|
745
|
+
AupTableRow.prototype.shouldHaveRowId = function (rowId) {
|
|
746
|
+
this.rowId().should('eq', rowId);
|
|
747
|
+
};
|
|
748
|
+
AupTableRow.prototype.cell = function (columnOrId) {
|
|
749
|
+
var self = this;
|
|
750
|
+
return new AupTableCell(this.parent, function (parent) {
|
|
751
|
+
return self.rowId()
|
|
752
|
+
.then(function (rowId) { return exports.AupAbstractTable.cssSelectorForCell(rowId, columnOrId); })
|
|
753
|
+
.then(function (selector) { return parent.dom().find(selector); });
|
|
754
|
+
});
|
|
755
|
+
};
|
|
756
|
+
AupTableRow.prototype.shouldBeSelected = function () {
|
|
757
|
+
this.dom().should('have.class', 'aup-row-selected');
|
|
758
|
+
};
|
|
759
|
+
AupTableRow.prototype.shouldNotBeSelected = function () {
|
|
760
|
+
this.dom().should('not.have.class', 'aup-row-selected');
|
|
761
|
+
};
|
|
762
|
+
return AupTableRow;
|
|
638
763
|
}(PageElement));
|
|
639
|
-
|
|
764
|
+
|
|
765
|
+
var AupTable = /** @class */ (function (_super) {
|
|
766
|
+
__extends(AupTable, _super);
|
|
767
|
+
function AupTable() {
|
|
768
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
769
|
+
}
|
|
770
|
+
AupTable.prototype.createRow = function (locator) {
|
|
771
|
+
return new AupTableRow(this, locator);
|
|
772
|
+
};
|
|
773
|
+
return AupTable;
|
|
774
|
+
}(exports.AupAbstractTable));
|
|
775
|
+
|
|
776
|
+
exports.AupTreeTable = /** @class */ (function (_super) {
|
|
777
|
+
__extends(AupTreeTable, _super);
|
|
778
|
+
function AupTreeTable() {
|
|
779
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
780
|
+
}
|
|
781
|
+
Object.defineProperty(AupTreeTable.prototype, "treeControlColumn", {
|
|
782
|
+
get: function () {
|
|
783
|
+
return new AupTreeTable.TreeControlColumn(this, 'tree-label');
|
|
784
|
+
},
|
|
785
|
+
enumerable: false,
|
|
786
|
+
configurable: true
|
|
787
|
+
});
|
|
788
|
+
AupTreeTable.prototype.createRow = function (locator) {
|
|
789
|
+
return new AupTreeTable.Row(this, locator);
|
|
790
|
+
};
|
|
791
|
+
return AupTreeTable;
|
|
792
|
+
}(exports.AupAbstractTable));
|
|
793
|
+
__decorate([
|
|
794
|
+
src.Memoize(),
|
|
795
|
+
__metadata("design:type", exports.AupTreeTable.TreeControlColumn),
|
|
796
|
+
__metadata("design:paramtypes", [])
|
|
797
|
+
], exports.AupTreeTable.prototype, "treeControlColumn", null);
|
|
798
|
+
(function (AupTreeTable) {
|
|
640
799
|
var Row = /** @class */ (function (_super) {
|
|
641
800
|
__extends(Row, _super);
|
|
642
801
|
function Row() {
|
|
643
802
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
644
803
|
}
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
AupTable.Row = Row;
|
|
648
|
-
var Column = /** @class */ (function () {
|
|
649
|
-
function Column(table, columnId) {
|
|
650
|
-
this.table = table;
|
|
651
|
-
this.columnId = columnId;
|
|
652
|
-
}
|
|
653
|
-
Column.prototype.cell = function (content) {
|
|
654
|
-
var self = this;
|
|
655
|
-
return new Cell(this.table, {
|
|
656
|
-
findIn: function (parent) {
|
|
657
|
-
return parent.contains("aup-table-cell-renderer[column-id=" + self.columnId + "]", content);
|
|
658
|
-
}
|
|
659
|
-
});
|
|
804
|
+
Row.prototype.shouldBeExpanded = function () {
|
|
805
|
+
this.dom().should("not.have.class", "aup-node-collapsed");
|
|
660
806
|
};
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
807
|
+
Row.prototype.shouldBeCollapsed = function () {
|
|
808
|
+
this.dom().should("have.class", "aup-node-collapsed");
|
|
809
|
+
};
|
|
810
|
+
return Row;
|
|
811
|
+
}(AupTableRow));
|
|
812
|
+
AupTreeTable.Row = Row;
|
|
813
|
+
var TreeControlColumn = /** @class */ (function (_super) {
|
|
814
|
+
__extends(TreeControlColumn, _super);
|
|
815
|
+
function TreeControlColumn() {
|
|
667
816
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
668
817
|
}
|
|
669
|
-
return
|
|
670
|
-
}(
|
|
671
|
-
|
|
672
|
-
})(exports.
|
|
818
|
+
return TreeControlColumn;
|
|
819
|
+
}(AupTableColumn));
|
|
820
|
+
AupTreeTable.TreeControlColumn = TreeControlColumn;
|
|
821
|
+
})(exports.AupTreeTable || (exports.AupTreeTable = {}));
|
|
673
822
|
|
|
674
|
-
function
|
|
823
|
+
function FormElementMixin(Base) {
|
|
675
824
|
return /** @class */ (function (_super) {
|
|
676
825
|
__extends(class_1, _super);
|
|
677
826
|
function class_1() {
|
|
@@ -681,12 +830,8 @@
|
|
|
681
830
|
}
|
|
682
831
|
return _super.apply(this, __spreadArray([], __read(args))) || this;
|
|
683
832
|
}
|
|
684
|
-
class_1.prototype.click = function () {
|
|
685
|
-
return this.element().click();
|
|
686
|
-
};
|
|
687
833
|
class_1.prototype.shouldBeDisabled = function () {
|
|
688
834
|
this.should("be.disabled");
|
|
689
|
-
// this.should("have.css", "color", "rgba(0,0,0,0.26)")
|
|
690
835
|
};
|
|
691
836
|
return class_1;
|
|
692
837
|
}(Base));
|
|
@@ -695,88 +840,293 @@
|
|
|
695
840
|
var Button = /** @class */ (function (_super) {
|
|
696
841
|
__extends(Button, _super);
|
|
697
842
|
function Button(parentElementAccessor, buttonText) {
|
|
698
|
-
return _super.call(this, parentElementAccessor,
|
|
699
|
-
findIn: function (parent) {
|
|
700
|
-
return parent.contains('button', buttonText);
|
|
701
|
-
},
|
|
702
|
-
shouldNotExist: function (parent) {
|
|
703
|
-
return parent.should('not.contain', buttonText);
|
|
704
|
-
}
|
|
705
|
-
}) || this;
|
|
843
|
+
return _super.call(this, parentElementAccessor, exports.ElementLocator.findBySelectorAndTextContent('button', buttonText)) || this;
|
|
706
844
|
}
|
|
707
845
|
return Button;
|
|
708
|
-
}(
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
function
|
|
713
|
-
return
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
846
|
+
}(FormElementMixin(PageElement)));
|
|
847
|
+
|
|
848
|
+
var MatCheckbox = /** @class */ (function (_super) {
|
|
849
|
+
__extends(MatCheckbox, _super);
|
|
850
|
+
function MatCheckbox(parentElementAccessor, text) {
|
|
851
|
+
return _super.call(this, parentElementAccessor, exports.ElementLocator.findBySelectorAndTextContent('mat-checkbox', text)) || this;
|
|
852
|
+
}
|
|
853
|
+
MatCheckbox.prototype.shouldBeChecked = function () {
|
|
854
|
+
this.hiddenCheckBoxElement().should('be.checked');
|
|
855
|
+
};
|
|
856
|
+
MatCheckbox.prototype.shouldNotBeChecked = function () {
|
|
857
|
+
this.hiddenCheckBoxElement().should('not.be.checked');
|
|
858
|
+
};
|
|
859
|
+
MatCheckbox.prototype.hiddenCheckBoxElement = function () {
|
|
860
|
+
return this.dom().find('input[type=checkbox]');
|
|
861
|
+
};
|
|
862
|
+
MatCheckbox.prototype.check = function () {
|
|
863
|
+
var _this = this;
|
|
864
|
+
this.hiddenCheckBoxElement().then(function (el) {
|
|
865
|
+
if (!el.prop('checked')) {
|
|
866
|
+
_this.click();
|
|
867
|
+
_this.shouldBeChecked();
|
|
717
868
|
}
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
869
|
+
});
|
|
870
|
+
};
|
|
871
|
+
MatCheckbox.prototype.uncheck = function () {
|
|
872
|
+
var _this = this;
|
|
873
|
+
this.hiddenCheckBoxElement().then(function (el) {
|
|
874
|
+
if (el.prop('checked')) {
|
|
875
|
+
_this.click();
|
|
876
|
+
_this.shouldNotBeChecked();
|
|
877
|
+
}
|
|
878
|
+
});
|
|
879
|
+
};
|
|
880
|
+
return MatCheckbox;
|
|
881
|
+
}(FormElementMixin(PageElement)));
|
|
882
|
+
|
|
883
|
+
var Builder = /** @class */ (function () {
|
|
884
|
+
function Builder(parentPageElement) {
|
|
885
|
+
this.parentPageElement = parentPageElement;
|
|
886
|
+
}
|
|
887
|
+
Builder.prototype.find = function (selector) {
|
|
888
|
+
return new PageElement(this.parentPageElement, selector);
|
|
889
|
+
};
|
|
890
|
+
Builder.prototype.section = function (selector, builder) {
|
|
891
|
+
return this.createContainerElement(PageElement, selector, builder);
|
|
892
|
+
};
|
|
893
|
+
Builder.prototype.contains = function (text) {
|
|
894
|
+
return new PageElement(this.parentPageElement, exports.ElementLocator.findByTextContent(text));
|
|
895
|
+
};
|
|
896
|
+
Builder.prototype.button = function (text) {
|
|
897
|
+
return new Button(this.parentPageElement, text);
|
|
898
|
+
};
|
|
899
|
+
Builder.prototype.matCheckbox = function (text) {
|
|
900
|
+
return new MatCheckbox(this.parentPageElement, text);
|
|
901
|
+
};
|
|
902
|
+
Builder.prototype.aupStringInput = function (selector) {
|
|
903
|
+
return new exports.AupInput.HtmlInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-string-input');
|
|
904
|
+
};
|
|
905
|
+
Builder.prototype.aupTextInput = function (selector) {
|
|
906
|
+
return new exports.AupInput.TextAreaInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-text-input');
|
|
907
|
+
};
|
|
908
|
+
Builder.prototype.aupPasswordInput = function (selector) {
|
|
909
|
+
return new exports.AupInput.HtmlInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-password-input');
|
|
910
|
+
};
|
|
911
|
+
Builder.prototype.aupNumberInput = function (selector) {
|
|
912
|
+
return new exports.AupInput.HtmlInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-number-input');
|
|
913
|
+
};
|
|
914
|
+
Builder.prototype.aupCommand = function (faceOrSelector) {
|
|
915
|
+
return new AupCommand(this.parentPageElement, faceOrSelector);
|
|
916
|
+
};
|
|
917
|
+
Builder.prototype.aupTabbedNavigation = function () {
|
|
918
|
+
return new AupNavigation(this.parentPageElement, 'aup-tabbed-place-navigation');
|
|
919
|
+
};
|
|
920
|
+
Builder.prototype.aupSideNavigation = function () {
|
|
921
|
+
return new AupNavigation(this.parentPageElement, 'aup-list-place-nav');
|
|
922
|
+
};
|
|
923
|
+
Builder.prototype.aupMoreMenu = function (selector) {
|
|
924
|
+
return AupMoreMenu.create(this.parentPageElement, selector);
|
|
925
|
+
};
|
|
926
|
+
Builder.prototype.aupTable = function (selectorOrBuilder, optionalBuilder) {
|
|
927
|
+
return this.createContainerElement(AupTable, selectorOrBuilder, optionalBuilder, 'aup-table');
|
|
928
|
+
};
|
|
929
|
+
Builder.prototype.aupTreeTable = function (selectorOrBuilder, optionalBuilder) {
|
|
930
|
+
return this.createContainerElement(exports.AupTreeTable, selectorOrBuilder, optionalBuilder, 'aup-tree-table');
|
|
931
|
+
};
|
|
932
|
+
Builder.prototype.aupEmptyState = function (selectorOrBuilder, optionalBuilder) {
|
|
933
|
+
return this.createContainerElement(AupEmptyState, selectorOrBuilder, optionalBuilder, 'aup-empty-state');
|
|
934
|
+
};
|
|
935
|
+
// TODO: use this in all the element factory methods to allow customisation
|
|
936
|
+
Builder.prototype.createElement = function (klass, selectorOrBuilder, optionalBuilder, defaultSelector) {
|
|
937
|
+
var selector = ___namespace.isString(selectorOrBuilder) ? selectorOrBuilder : defaultSelector;
|
|
938
|
+
var builder = ___namespace.isFunction(selectorOrBuilder) ? selectorOrBuilder : optionalBuilder;
|
|
939
|
+
if (!selector) {
|
|
940
|
+
typescriptUtilities.lang.illegalState('This element requires a selector but none was provided');
|
|
941
|
+
}
|
|
942
|
+
var element = new klass(this.parentPageElement, selector);
|
|
943
|
+
if (builder) {
|
|
944
|
+
return typescriptUtilities.Mixin.createProxy(element, builder(element));
|
|
945
|
+
}
|
|
946
|
+
else {
|
|
947
|
+
return element;
|
|
948
|
+
}
|
|
949
|
+
};
|
|
950
|
+
Builder.prototype.createContainerElement = function (klass, selectorOrBuilder, optionalBuilder, defaultSelector) {
|
|
951
|
+
var selector = ___namespace.isString(selectorOrBuilder) ? selectorOrBuilder : defaultSelector;
|
|
952
|
+
var builder = ___namespace.isFunction(selectorOrBuilder) ? selectorOrBuilder : optionalBuilder;
|
|
953
|
+
if (!selector) {
|
|
954
|
+
typescriptUtilities.lang.illegalState('This element requires a selector but none was provided');
|
|
955
|
+
}
|
|
956
|
+
var element = new klass(this.parentPageElement, selector);
|
|
957
|
+
if (builder) {
|
|
958
|
+
// create the B&E type that the builder has access to
|
|
959
|
+
var decoratedElement = typescriptUtilities.Mixin.createProxy(element, new Builder(element));
|
|
960
|
+
// create final type that has the E & T type
|
|
961
|
+
return typescriptUtilities.Mixin.createProxy(decoratedElement, builder(decoratedElement));
|
|
962
|
+
}
|
|
963
|
+
else {
|
|
964
|
+
return element;
|
|
965
|
+
}
|
|
966
|
+
};
|
|
967
|
+
return Builder;
|
|
968
|
+
}());
|
|
969
|
+
|
|
970
|
+
var AupAbstractActivity = /** @class */ (function (_super) {
|
|
971
|
+
__extends(AupAbstractActivity, _super);
|
|
972
|
+
function AupAbstractActivity(parent, selector) {
|
|
973
|
+
var _this =
|
|
974
|
+
// @ts-ignore
|
|
975
|
+
_super.call(this, parent, selector) || this;
|
|
976
|
+
_this.title = _this.find('aup-activity-title');
|
|
977
|
+
_this._confirmCommand = new Builder(_this).aupCommand('[data-cy=confirm-command]');
|
|
978
|
+
_this._cancelCommand = new Builder(_this).aupCommand('[data-cy=cancel-command]');
|
|
979
|
+
return _this;
|
|
980
|
+
}
|
|
981
|
+
return AupAbstractActivity;
|
|
982
|
+
}(PageElement));
|
|
983
|
+
|
|
984
|
+
var AupActivity = /** @class */ (function (_super) {
|
|
985
|
+
__extends(AupActivity, _super);
|
|
986
|
+
function AupActivity(parent, selector) {
|
|
987
|
+
return _super.call(this, parent, selector) || this;
|
|
988
|
+
}
|
|
989
|
+
Object.defineProperty(AupActivity.prototype, "confirmCommand", {
|
|
990
|
+
get: function () {
|
|
991
|
+
return this._confirmCommand;
|
|
992
|
+
},
|
|
993
|
+
enumerable: false,
|
|
994
|
+
configurable: true
|
|
995
|
+
});
|
|
996
|
+
Object.defineProperty(AupActivity.prototype, "cancelCommand", {
|
|
997
|
+
get: function () {
|
|
998
|
+
return this._cancelCommand;
|
|
999
|
+
},
|
|
1000
|
+
enumerable: false,
|
|
1001
|
+
configurable: true
|
|
1002
|
+
});
|
|
1003
|
+
return AupActivity;
|
|
1004
|
+
}(AupAbstractActivity));
|
|
1005
|
+
|
|
1006
|
+
var AupModalActivity = /** @class */ (function (_super) {
|
|
1007
|
+
__extends(AupModalActivity, _super);
|
|
1008
|
+
function AupModalActivity() {
|
|
1009
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1010
|
+
}
|
|
1011
|
+
AupModalActivity.prototype.clickBackdrop = function () {
|
|
1012
|
+
this.dom().closest(".cdk-overlay-backdrop").click(-50, -50, { force: true });
|
|
1013
|
+
};
|
|
1014
|
+
return AupModalActivity;
|
|
1015
|
+
}(AupActivity));
|
|
1016
|
+
|
|
1017
|
+
var AupAlert = /** @class */ (function (_super) {
|
|
1018
|
+
__extends(AupAlert, _super);
|
|
1019
|
+
function AupAlert(parent, selector) {
|
|
1020
|
+
return _super.call(this, parent, selector) || this;
|
|
1021
|
+
}
|
|
1022
|
+
Object.defineProperty(AupAlert.prototype, "closeCommand", {
|
|
1023
|
+
get: function () {
|
|
1024
|
+
return this._confirmCommand;
|
|
1025
|
+
},
|
|
1026
|
+
enumerable: false,
|
|
1027
|
+
configurable: true
|
|
1028
|
+
});
|
|
1029
|
+
AupAlert.prototype.clickClose = function () {
|
|
1030
|
+
this.closeCommand.click();
|
|
1031
|
+
};
|
|
1032
|
+
return AupAlert;
|
|
1033
|
+
}(AupAbstractActivity));
|
|
1034
|
+
|
|
1035
|
+
var AupModalAlert = /** @class */ (function (_super) {
|
|
1036
|
+
__extends(AupModalAlert, _super);
|
|
1037
|
+
function AupModalAlert(parent, selector) {
|
|
1038
|
+
return _super.call(this, parent, selector) || this;
|
|
1039
|
+
}
|
|
1040
|
+
AupModalAlert.prototype.clickBackdrop = function () {
|
|
1041
|
+
this.dom()
|
|
1042
|
+
.closest(".cdk-overlay-container")
|
|
1043
|
+
.find(".cdk-overlay-backdrop").click(-50, -50, { force: true });
|
|
1044
|
+
};
|
|
1045
|
+
return AupModalAlert;
|
|
1046
|
+
}(AupAlert));
|
|
1047
|
+
|
|
1048
|
+
var PageBuilder = /** @class */ (function (_super) {
|
|
1049
|
+
__extends(PageBuilder, _super);
|
|
1050
|
+
function PageBuilder() {
|
|
1051
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1052
|
+
}
|
|
1053
|
+
PageBuilder.prototype.aupModalActivity = function (selector, builder) {
|
|
1054
|
+
return this.createContainerElement(AupModalActivity, ".dialog-interaction-context " + selector, builder);
|
|
1055
|
+
};
|
|
1056
|
+
PageBuilder.prototype.aupModalAlert = function (builder) {
|
|
1057
|
+
return this.createContainerElement(AupModalAlert, ".dialog-interaction-context aup-alert-dialog", builder);
|
|
1058
|
+
};
|
|
1059
|
+
PageBuilder.prototype.aupModelConfirm = function (builder) {
|
|
1060
|
+
return this.aupModalActivity("aup-confirm-dialog", builder);
|
|
1061
|
+
};
|
|
1062
|
+
return PageBuilder;
|
|
1063
|
+
}(Builder));
|
|
1064
|
+
|
|
1065
|
+
var urlSerialiser = new router.DefaultUrlSerializer();
|
|
1066
|
+
exports.Path = /** @class */ (function () {
|
|
1067
|
+
function Path(segments) {
|
|
1068
|
+
this.segments = segments;
|
|
1069
|
+
}
|
|
1070
|
+
Path.extractVisitParameters = function (url) {
|
|
1071
|
+
var _a, _b;
|
|
1072
|
+
var result = {};
|
|
1073
|
+
var urlTree = urlSerialiser.parse(url);
|
|
1074
|
+
var urlSegments = (_b = (_a = urlTree.root.children.primary) === null || _a === void 0 ? void 0 : _a.segments) !== null && _b !== void 0 ? _b : [];
|
|
1075
|
+
urlSegments === null || urlSegments === void 0 ? void 0 : urlSegments.forEach(function (s) {
|
|
1076
|
+
result = Object.assign(Object.assign({}, result), s.parameters);
|
|
1077
|
+
});
|
|
1078
|
+
return result;
|
|
1079
|
+
};
|
|
1080
|
+
Path.prototype.toUrl = function (matrixParams) {
|
|
1081
|
+
return this.segments.map(function (s) { return s.toUrlPart(matrixParams); }).join('/');
|
|
1082
|
+
};
|
|
1083
|
+
return Path;
|
|
1084
|
+
}());
|
|
1085
|
+
(function (Path) {
|
|
1086
|
+
function setUrlSerialiser(serialiser) {
|
|
1087
|
+
urlSerialiser = serialiser;
|
|
1088
|
+
}
|
|
1089
|
+
Path.setUrlSerialiser = setUrlSerialiser;
|
|
1090
|
+
var Segment = /** @class */ (function () {
|
|
1091
|
+
function Segment(path, params) {
|
|
1092
|
+
if (params === void 0) { params = {}; }
|
|
1093
|
+
var _a;
|
|
1094
|
+
this.path = path;
|
|
1095
|
+
this.routeId = params === null || params === void 0 ? void 0 : params.routeId;
|
|
1096
|
+
this.visitParams = (_a = params === null || params === void 0 ? void 0 : params.visitParams) !== null && _a !== void 0 ? _a : [];
|
|
776
1097
|
}
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
1098
|
+
Segment.prototype.toUrlPart = function (params) {
|
|
1099
|
+
var path = this.path;
|
|
1100
|
+
this.visitParams.forEach(function (p) {
|
|
1101
|
+
var value = params[p];
|
|
1102
|
+
if (value) {
|
|
1103
|
+
path = path + ";" + p + "=" + value;
|
|
1104
|
+
}
|
|
1105
|
+
});
|
|
1106
|
+
if (this.routeId && params[this.routeId]) {
|
|
1107
|
+
path = path + '/' + params[this.routeId];
|
|
1108
|
+
}
|
|
1109
|
+
return path;
|
|
1110
|
+
};
|
|
1111
|
+
return Segment;
|
|
1112
|
+
}());
|
|
1113
|
+
Path.Segment = Segment;
|
|
1114
|
+
var Builder = /** @class */ (function () {
|
|
1115
|
+
function Builder() {
|
|
1116
|
+
this.segments = [];
|
|
1117
|
+
}
|
|
1118
|
+
Builder.prototype.segment = function (name, params) {
|
|
1119
|
+
var builder = new Segment(name, params);
|
|
1120
|
+
this.segments.push(builder);
|
|
1121
|
+
return this;
|
|
1122
|
+
};
|
|
1123
|
+
Builder.prototype.getPath = function () {
|
|
1124
|
+
return new Path(this.segments);
|
|
1125
|
+
};
|
|
1126
|
+
return Builder;
|
|
1127
|
+
}());
|
|
1128
|
+
Path.Builder = Builder;
|
|
1129
|
+
})(exports.Path || (exports.Path = {}));
|
|
780
1130
|
|
|
781
1131
|
exports.Page = /** @class */ (function (_super) {
|
|
782
1132
|
__extends(Page, _super);
|
|
@@ -786,7 +1136,7 @@
|
|
|
786
1136
|
_this.rootElementSelector = 'body';
|
|
787
1137
|
return _this;
|
|
788
1138
|
}
|
|
789
|
-
Page.prototype.
|
|
1139
|
+
Page.prototype.dom = function () {
|
|
790
1140
|
return cy.get(this.rootElementSelector);
|
|
791
1141
|
};
|
|
792
1142
|
Page.prototype.visit = function (visitParams, queryParams) {
|
|
@@ -813,7 +1163,7 @@
|
|
|
813
1163
|
};
|
|
814
1164
|
Page.prototype.shouldBeActive = function (withParameters) {
|
|
815
1165
|
// Note: cy.window() doesn't return a promise... it's a chainable.
|
|
816
|
-
cy[
|
|
1166
|
+
cy['waitUntil'](function () {
|
|
817
1167
|
return cy.window().then(function (window) {
|
|
818
1168
|
return window['aup.PlaceRouter'] && !window['aup.PlaceRouter'].isNavigating();
|
|
819
1169
|
});
|
|
@@ -832,26 +1182,19 @@
|
|
|
832
1182
|
return Page;
|
|
833
1183
|
}(PageElement));
|
|
834
1184
|
(function (Page) {
|
|
835
|
-
function create(pathOrPathBuilder,
|
|
1185
|
+
function create(pathOrPathBuilder, builder) {
|
|
836
1186
|
var pathBuilder = new exports.Path.Builder();
|
|
837
1187
|
if (___namespace.isString(pathOrPathBuilder)) {
|
|
838
|
-
pathOrPathBuilder.split(
|
|
1188
|
+
pathOrPathBuilder.split('/').filter(function (p) { return !___namespace.isEmpty(p); }).forEach(function (p) { return pathBuilder.segment(p); });
|
|
839
1189
|
}
|
|
840
1190
|
else {
|
|
841
1191
|
pathOrPathBuilder(pathBuilder);
|
|
842
1192
|
}
|
|
843
|
-
var
|
|
844
|
-
|
|
1193
|
+
var instance = new Page(pathBuilder.getPath());
|
|
1194
|
+
var content = builder.call(instance, new PageBuilder(instance));
|
|
1195
|
+
return typescriptUtilities.Mixin.createProxy(content, instance);
|
|
845
1196
|
}
|
|
846
1197
|
Page.create = create;
|
|
847
|
-
var PageBuilder = /** @class */ (function (_super) {
|
|
848
|
-
__extends(PageBuilder, _super);
|
|
849
|
-
function PageBuilder() {
|
|
850
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
851
|
-
}
|
|
852
|
-
return PageBuilder;
|
|
853
|
-
}(exports.Section.Mixin(Page)));
|
|
854
|
-
Page.PageBuilder = PageBuilder;
|
|
855
1198
|
})(exports.Page || (exports.Page = {}));
|
|
856
1199
|
|
|
857
1200
|
var AupCommandGroup = /** @class */ (function (_super) {
|
|
@@ -862,49 +1205,41 @@
|
|
|
862
1205
|
return AupCommandGroup;
|
|
863
1206
|
}(PageElement));
|
|
864
1207
|
|
|
865
|
-
var
|
|
866
|
-
__extends(
|
|
867
|
-
function
|
|
1208
|
+
var AupToolBar = /** @class */ (function (_super) {
|
|
1209
|
+
__extends(AupToolBar, _super);
|
|
1210
|
+
function AupToolBar() {
|
|
868
1211
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
869
1212
|
}
|
|
870
|
-
|
|
871
|
-
|
|
1213
|
+
AupToolBar.create = function (parent, face) {
|
|
1214
|
+
// const findFace = AupCommandFace.createFinder(() => parent.element(), face)
|
|
1215
|
+
// return new AupCommandGroup(() => findFace().closest('button'));
|
|
872
1216
|
};
|
|
873
|
-
return
|
|
1217
|
+
return AupToolBar;
|
|
874
1218
|
}(PageElement));
|
|
875
1219
|
|
|
876
1220
|
var AupPopupMenu = /** @class */ (function (_super) {
|
|
877
1221
|
__extends(AupPopupMenu, _super);
|
|
878
1222
|
function AupPopupMenu(parentElementAccessor, face) {
|
|
879
1223
|
var _this = this;
|
|
880
|
-
var
|
|
881
|
-
_this = _super.call(this, parentElementAccessor, {
|
|
882
|
-
findIn: function (parent) {
|
|
883
|
-
return accessor.findIn(parent).closest('button');
|
|
884
|
-
},
|
|
885
|
-
shouldNotExist: function (parent) {
|
|
886
|
-
accessor.shouldNotExist(parent);
|
|
887
|
-
}
|
|
888
|
-
}) || this;
|
|
1224
|
+
var locator = AupCommandFace.createElementLocator(face);
|
|
1225
|
+
_this = _super.call(this, parentElementAccessor, function (parent) { return locator(parent).closest('button'); }) || this;
|
|
889
1226
|
return _this;
|
|
890
1227
|
}
|
|
891
1228
|
AupPopupMenu.create = function (parent, face) {
|
|
892
1229
|
return new AupPopupMenu(parent, face);
|
|
893
1230
|
};
|
|
894
1231
|
return AupPopupMenu;
|
|
895
|
-
}(
|
|
1232
|
+
}(AupAbstractPopupMenu));
|
|
896
1233
|
|
|
897
|
-
var
|
|
898
|
-
__extends(
|
|
899
|
-
function
|
|
1234
|
+
var AupTableSelectionCell = /** @class */ (function (_super) {
|
|
1235
|
+
__extends(AupTableSelectionCell, _super);
|
|
1236
|
+
function AupTableSelectionCell() {
|
|
900
1237
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
901
1238
|
}
|
|
902
|
-
|
|
903
|
-
// const findFace = AupCommandFace.createFinder(() => parent.element(), face)
|
|
904
|
-
// return new AupCommandGroup(() => findFace().closest('button'));
|
|
1239
|
+
AupTableSelectionCell.prototype.selectAll = function () {
|
|
905
1240
|
};
|
|
906
|
-
return
|
|
907
|
-
}(
|
|
1241
|
+
return AupTableSelectionCell;
|
|
1242
|
+
}(AupTableCell));
|
|
908
1243
|
|
|
909
1244
|
/**
|
|
910
1245
|
* @file Automatically generated by barrelsby.
|
|
@@ -914,16 +1249,32 @@
|
|
|
914
1249
|
* Generated bundle index. Do not edit.
|
|
915
1250
|
*/
|
|
916
1251
|
|
|
1252
|
+
exports.AupAbstractActivity = AupAbstractActivity;
|
|
1253
|
+
exports.AupAbstractPopupMenu = AupAbstractPopupMenu;
|
|
1254
|
+
exports.AupActivity = AupActivity;
|
|
1255
|
+
exports.AupAlert = AupAlert;
|
|
917
1256
|
exports.AupCommand = AupCommand;
|
|
918
1257
|
exports.AupCommandFace = AupCommandFace;
|
|
919
1258
|
exports.AupCommandGroup = AupCommandGroup;
|
|
1259
|
+
exports.AupEmptyState = AupEmptyState;
|
|
1260
|
+
exports.AupModalActivity = AupModalActivity;
|
|
1261
|
+
exports.AupModalAlert = AupModalAlert;
|
|
920
1262
|
exports.AupMoreMenu = AupMoreMenu;
|
|
921
1263
|
exports.AupNavigation = AupNavigation;
|
|
922
1264
|
exports.AupPopupMenu = AupPopupMenu;
|
|
1265
|
+
exports.AupPopupMenuPanel = AupPopupMenuPanel;
|
|
1266
|
+
exports.AupTable = AupTable;
|
|
1267
|
+
exports.AupTableCell = AupTableCell;
|
|
1268
|
+
exports.AupTableColumn = AupTableColumn;
|
|
1269
|
+
exports.AupTableRow = AupTableRow;
|
|
1270
|
+
exports.AupTableSelectionCell = AupTableSelectionCell;
|
|
1271
|
+
exports.AupTableSelectionColumn = AupTableSelectionColumn;
|
|
923
1272
|
exports.AupToolBar = AupToolBar;
|
|
1273
|
+
exports.Builder = Builder;
|
|
924
1274
|
exports.Button = Button;
|
|
925
|
-
exports.
|
|
926
|
-
exports.
|
|
1275
|
+
exports.FormElementMixin = FormElementMixin;
|
|
1276
|
+
exports.MatCheckbox = MatCheckbox;
|
|
1277
|
+
exports.PageBuilder = PageBuilder;
|
|
927
1278
|
exports.PageElement = PageElement;
|
|
928
1279
|
|
|
929
1280
|
Object.defineProperty(exports, '__esModule', { value: true });
|