@skyux/lists 5.7.2 → 6.0.0-beta.2
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/esm2020/index.mjs +22 -0
- package/esm2020/lib/modules/filter/filter-button.component.mjs +62 -0
- package/esm2020/lib/modules/filter/filter-inline-item.component.mjs +14 -0
- package/esm2020/lib/modules/filter/filter-inline.component.mjs +14 -0
- package/esm2020/lib/modules/filter/filter-summary-item.component.mjs +45 -0
- package/esm2020/lib/modules/filter/filter-summary.component.mjs +15 -0
- package/esm2020/lib/modules/filter/filter.module.mjs +61 -0
- package/esm2020/lib/modules/infinite-scroll/infinite-scroll-dom-adapter.service.mjs +93 -0
- package/esm2020/lib/modules/infinite-scroll/infinite-scroll.component.mjs +109 -0
- package/esm2020/lib/modules/infinite-scroll/infinite-scroll.module.mjs +20 -0
- package/esm2020/lib/modules/paging/paging.component.mjs +122 -0
- package/esm2020/lib/modules/paging/paging.module.mjs +34 -0
- package/esm2020/lib/modules/repeater/repeater-adapter.service.mjs +69 -0
- package/esm2020/lib/modules/repeater/repeater-item-content.component.mjs +14 -0
- package/esm2020/lib/modules/repeater/repeater-item-context-menu.component.mjs +17 -0
- package/esm2020/lib/modules/repeater/repeater-item-title.component.mjs +14 -0
- package/esm2020/lib/modules/repeater/repeater-item.component.mjs +383 -0
- package/esm2020/lib/modules/repeater/repeater.component.mjs +256 -0
- package/esm2020/lib/modules/repeater/repeater.module.mjs +69 -0
- package/esm2020/lib/modules/repeater/repeater.service.mjs +72 -0
- package/esm2020/lib/modules/shared/sky-lists-resources.module.mjs +80 -0
- package/esm2020/lib/modules/sort/sort-item.component.mjs +60 -0
- package/esm2020/lib/modules/sort/sort-menu-heading.component.mjs +13 -0
- package/esm2020/lib/modules/sort/sort.component.mjs +35 -0
- package/esm2020/lib/modules/sort/sort.module.mjs +50 -0
- package/esm2020/lib/modules/sort/sort.service.mjs +20 -0
- package/esm2020/skyux-lists.mjs +5 -0
- package/esm2020/testing/filter/filter-fixture-button.mjs +46 -0
- package/esm2020/testing/filter/filter-fixture-summary.mjs +28 -0
- package/esm2020/testing/filter/filter-testing.module.mjs +15 -0
- package/esm2020/testing/filter/lists-filter-fixture-button.mjs +2 -0
- package/esm2020/testing/infinite-scroll/infinite-scroll-fixture.mjs +27 -0
- package/esm2020/testing/infinite-scroll/infinite-scroll-testing.module.mjs +15 -0
- package/esm2020/testing/paging/paging-fixture-button.mjs +2 -0
- package/esm2020/testing/paging/paging-fixture.mjs +93 -0
- package/esm2020/testing/paging/paging-testing.module.mjs +15 -0
- package/esm2020/testing/public-api.mjs +13 -0
- package/esm2020/testing/skyux-lists-testing.mjs +5 -0
- package/esm2020/testing/sort/sort-fixture-menu-item.mjs +2 -0
- package/esm2020/testing/sort/sort-fixture-menu.mjs +2 -0
- package/esm2020/testing/sort/sort-fixture.mjs +140 -0
- package/esm2020/testing/sort/sort-testing.module.mjs +17 -0
- package/fesm2015/{skyux-lists-testing.js → skyux-lists-testing.mjs} +17 -17
- package/fesm2015/skyux-lists-testing.mjs.map +1 -0
- package/fesm2015/skyux-lists.mjs +1615 -0
- package/fesm2015/skyux-lists.mjs.map +1 -0
- package/fesm2020/skyux-lists-testing.mjs +389 -0
- package/fesm2020/skyux-lists-testing.mjs.map +1 -0
- package/fesm2020/skyux-lists.mjs +1615 -0
- package/fesm2020/skyux-lists.mjs.map +1 -0
- package/package.json +43 -19
- package/testing/package.json +5 -5
- package/bundles/skyux-lists-testing.umd.js +0 -887
- package/bundles/skyux-lists.umd.js +0 -2149
- package/esm2015/index.js +0 -22
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/modules/filter/filter-button.component.js +0 -67
- package/esm2015/lib/modules/filter/filter-button.component.js.map +0 -1
- package/esm2015/lib/modules/filter/filter-inline-item.component.js +0 -18
- package/esm2015/lib/modules/filter/filter-inline-item.component.js.map +0 -1
- package/esm2015/lib/modules/filter/filter-inline.component.js +0 -18
- package/esm2015/lib/modules/filter/filter-inline.component.js.map +0 -1
- package/esm2015/lib/modules/filter/filter-summary-item.component.js +0 -50
- package/esm2015/lib/modules/filter/filter-summary-item.component.js.map +0 -1
- package/esm2015/lib/modules/filter/filter-summary.component.js +0 -20
- package/esm2015/lib/modules/filter/filter-summary.component.js.map +0 -1
- package/esm2015/lib/modules/filter/filter.module.js +0 -61
- package/esm2015/lib/modules/filter/filter.module.js.map +0 -1
- package/esm2015/lib/modules/infinite-scroll/infinite-scroll-dom-adapter.service.js +0 -93
- package/esm2015/lib/modules/infinite-scroll/infinite-scroll-dom-adapter.service.js.map +0 -1
- package/esm2015/lib/modules/infinite-scroll/infinite-scroll.component.js +0 -115
- package/esm2015/lib/modules/infinite-scroll/infinite-scroll.component.js.map +0 -1
- package/esm2015/lib/modules/infinite-scroll/infinite-scroll.module.js +0 -20
- package/esm2015/lib/modules/infinite-scroll/infinite-scroll.module.js.map +0 -1
- package/esm2015/lib/modules/paging/paging.component.js +0 -127
- package/esm2015/lib/modules/paging/paging.component.js.map +0 -1
- package/esm2015/lib/modules/paging/paging.module.js +0 -34
- package/esm2015/lib/modules/paging/paging.module.js.map +0 -1
- package/esm2015/lib/modules/repeater/repeater-adapter.service.js +0 -69
- package/esm2015/lib/modules/repeater/repeater-adapter.service.js.map +0 -1
- package/esm2015/lib/modules/repeater/repeater-item-content.component.js +0 -17
- package/esm2015/lib/modules/repeater/repeater-item-content.component.js.map +0 -1
- package/esm2015/lib/modules/repeater/repeater-item-context-menu.component.js +0 -20
- package/esm2015/lib/modules/repeater/repeater-item-context-menu.component.js.map +0 -1
- package/esm2015/lib/modules/repeater/repeater-item-title.component.js +0 -17
- package/esm2015/lib/modules/repeater/repeater-item-title.component.js.map +0 -1
- package/esm2015/lib/modules/repeater/repeater-item.component.js +0 -389
- package/esm2015/lib/modules/repeater/repeater-item.component.js.map +0 -1
- package/esm2015/lib/modules/repeater/repeater.component.js +0 -262
- package/esm2015/lib/modules/repeater/repeater.component.js.map +0 -1
- package/esm2015/lib/modules/repeater/repeater.module.js +0 -69
- package/esm2015/lib/modules/repeater/repeater.module.js.map +0 -1
- package/esm2015/lib/modules/repeater/repeater.service.js +0 -72
- package/esm2015/lib/modules/repeater/repeater.service.js.map +0 -1
- package/esm2015/lib/modules/shared/sky-lists-resources.module.js +0 -80
- package/esm2015/lib/modules/shared/sky-lists-resources.module.js.map +0 -1
- package/esm2015/lib/modules/sort/sort-item.component.js +0 -65
- package/esm2015/lib/modules/sort/sort-item.component.js.map +0 -1
- package/esm2015/lib/modules/sort/sort-menu-heading.component.js +0 -17
- package/esm2015/lib/modules/sort/sort-menu-heading.component.js.map +0 -1
- package/esm2015/lib/modules/sort/sort.component.js +0 -41
- package/esm2015/lib/modules/sort/sort.component.js.map +0 -1
- package/esm2015/lib/modules/sort/sort.module.js +0 -50
- package/esm2015/lib/modules/sort/sort.module.js.map +0 -1
- package/esm2015/lib/modules/sort/sort.service.js +0 -20
- package/esm2015/lib/modules/sort/sort.service.js.map +0 -1
- package/esm2015/skyux-lists.js +0 -5
- package/esm2015/skyux-lists.js.map +0 -1
- package/esm2015/testing/filter/filter-fixture-button.js +0 -50
- package/esm2015/testing/filter/filter-fixture-button.js.map +0 -1
- package/esm2015/testing/filter/filter-fixture-summary.js +0 -31
- package/esm2015/testing/filter/filter-fixture-summary.js.map +0 -1
- package/esm2015/testing/filter/filter-testing.module.js +0 -15
- package/esm2015/testing/filter/filter-testing.module.js.map +0 -1
- package/esm2015/testing/filter/lists-filter-fixture-button.js +0 -2
- package/esm2015/testing/filter/lists-filter-fixture-button.js.map +0 -1
- package/esm2015/testing/infinite-scroll/infinite-scroll-fixture.js +0 -30
- package/esm2015/testing/infinite-scroll/infinite-scroll-fixture.js.map +0 -1
- package/esm2015/testing/infinite-scroll/infinite-scroll-testing.module.js +0 -15
- package/esm2015/testing/infinite-scroll/infinite-scroll-testing.module.js.map +0 -1
- package/esm2015/testing/paging/paging-fixture-button.js +0 -2
- package/esm2015/testing/paging/paging-fixture-button.js.map +0 -1
- package/esm2015/testing/paging/paging-fixture.js +0 -104
- package/esm2015/testing/paging/paging-fixture.js.map +0 -1
- package/esm2015/testing/paging/paging-testing.module.js +0 -15
- package/esm2015/testing/paging/paging-testing.module.js.map +0 -1
- package/esm2015/testing/public-api.js +0 -13
- package/esm2015/testing/public-api.js.map +0 -1
- package/esm2015/testing/skyux-lists-testing.js +0 -5
- package/esm2015/testing/skyux-lists-testing.js.map +0 -1
- package/esm2015/testing/sort/sort-fixture-menu-item.js +0 -2
- package/esm2015/testing/sort/sort-fixture-menu-item.js.map +0 -1
- package/esm2015/testing/sort/sort-fixture-menu.js +0 -2
- package/esm2015/testing/sort/sort-fixture-menu.js.map +0 -1
- package/esm2015/testing/sort/sort-fixture.js +0 -152
- package/esm2015/testing/sort/sort-fixture.js.map +0 -1
- package/esm2015/testing/sort/sort-testing.module.js +0 -17
- package/esm2015/testing/sort/sort-testing.module.js.map +0 -1
- package/fesm2015/skyux-lists-testing.js.map +0 -1
- package/fesm2015/skyux-lists.js +0 -1685
- package/fesm2015/skyux-lists.js.map +0 -1
|
@@ -1,887 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@skyux/lists'), require('@skyux-sdk/testing'), require('@angular/platform-browser'), require('@angular/platform-browser/animations')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@skyux/lists/testing', ['exports', '@angular/core', '@skyux/lists', '@skyux-sdk/testing', '@angular/platform-browser', '@angular/platform-browser/animations'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux.lists = global.skyux.lists || {}, global.skyux.lists.testing = {}), global.ng.core, global.skyux.lists, global.testing, global.ng.platformBrowser, global.ng.platformBrowser.animations));
|
|
5
|
-
})(this, (function (exports, i0, lists, testing, platformBrowser, animations) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
|
|
27
|
-
var SkyFilterTestingModule = /** @class */ (function () {
|
|
28
|
-
function SkyFilterTestingModule() {
|
|
29
|
-
}
|
|
30
|
-
return SkyFilterTestingModule;
|
|
31
|
-
}());
|
|
32
|
-
SkyFilterTestingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFilterTestingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
33
|
-
SkyFilterTestingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFilterTestingModule, exports: [lists.SkyFilterModule] });
|
|
34
|
-
SkyFilterTestingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFilterTestingModule, imports: [lists.SkyFilterModule] });
|
|
35
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFilterTestingModule, decorators: [{
|
|
36
|
-
type: i0.NgModule,
|
|
37
|
-
args: [{
|
|
38
|
-
exports: [lists.SkyFilterModule],
|
|
39
|
-
}]
|
|
40
|
-
}] });
|
|
41
|
-
|
|
42
|
-
/*! *****************************************************************************
|
|
43
|
-
Copyright (c) Microsoft Corporation.
|
|
44
|
-
|
|
45
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
46
|
-
purpose with or without fee is hereby granted.
|
|
47
|
-
|
|
48
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
49
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
50
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
51
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
52
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
53
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
54
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
55
|
-
***************************************************************************** */
|
|
56
|
-
/* global Reflect, Promise */
|
|
57
|
-
var extendStatics = function (d, b) {
|
|
58
|
-
extendStatics = Object.setPrototypeOf ||
|
|
59
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
60
|
-
function (d, b) { for (var p in b)
|
|
61
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
62
|
-
d[p] = b[p]; };
|
|
63
|
-
return extendStatics(d, b);
|
|
64
|
-
};
|
|
65
|
-
function __extends(d, b) {
|
|
66
|
-
if (typeof b !== "function" && b !== null)
|
|
67
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
68
|
-
extendStatics(d, b);
|
|
69
|
-
function __() { this.constructor = d; }
|
|
70
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
71
|
-
}
|
|
72
|
-
var __assign = function () {
|
|
73
|
-
__assign = Object.assign || function __assign(t) {
|
|
74
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
75
|
-
s = arguments[i];
|
|
76
|
-
for (var p in s)
|
|
77
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
78
|
-
t[p] = s[p];
|
|
79
|
-
}
|
|
80
|
-
return t;
|
|
81
|
-
};
|
|
82
|
-
return __assign.apply(this, arguments);
|
|
83
|
-
};
|
|
84
|
-
function __rest(s, e) {
|
|
85
|
-
var t = {};
|
|
86
|
-
for (var p in s)
|
|
87
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
88
|
-
t[p] = s[p];
|
|
89
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
90
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
91
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
92
|
-
t[p[i]] = s[p[i]];
|
|
93
|
-
}
|
|
94
|
-
return t;
|
|
95
|
-
}
|
|
96
|
-
function __decorate(decorators, target, key, desc) {
|
|
97
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
98
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
99
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
100
|
-
else
|
|
101
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
102
|
-
if (d = decorators[i])
|
|
103
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
104
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
105
|
-
}
|
|
106
|
-
function __param(paramIndex, decorator) {
|
|
107
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
108
|
-
}
|
|
109
|
-
function __metadata(metadataKey, metadataValue) {
|
|
110
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
111
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
112
|
-
}
|
|
113
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
114
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
115
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
116
|
-
function fulfilled(value) { try {
|
|
117
|
-
step(generator.next(value));
|
|
118
|
-
}
|
|
119
|
-
catch (e) {
|
|
120
|
-
reject(e);
|
|
121
|
-
} }
|
|
122
|
-
function rejected(value) { try {
|
|
123
|
-
step(generator["throw"](value));
|
|
124
|
-
}
|
|
125
|
-
catch (e) {
|
|
126
|
-
reject(e);
|
|
127
|
-
} }
|
|
128
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
129
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
function __generator(thisArg, body) {
|
|
133
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
134
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
135
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
136
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
137
|
-
function step(op) {
|
|
138
|
-
if (f)
|
|
139
|
-
throw new TypeError("Generator is already executing.");
|
|
140
|
-
while (_)
|
|
141
|
-
try {
|
|
142
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
143
|
-
return t;
|
|
144
|
-
if (y = 0, t)
|
|
145
|
-
op = [op[0] & 2, t.value];
|
|
146
|
-
switch (op[0]) {
|
|
147
|
-
case 0:
|
|
148
|
-
case 1:
|
|
149
|
-
t = op;
|
|
150
|
-
break;
|
|
151
|
-
case 4:
|
|
152
|
-
_.label++;
|
|
153
|
-
return { value: op[1], done: false };
|
|
154
|
-
case 5:
|
|
155
|
-
_.label++;
|
|
156
|
-
y = op[1];
|
|
157
|
-
op = [0];
|
|
158
|
-
continue;
|
|
159
|
-
case 7:
|
|
160
|
-
op = _.ops.pop();
|
|
161
|
-
_.trys.pop();
|
|
162
|
-
continue;
|
|
163
|
-
default:
|
|
164
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
165
|
-
_ = 0;
|
|
166
|
-
continue;
|
|
167
|
-
}
|
|
168
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
169
|
-
_.label = op[1];
|
|
170
|
-
break;
|
|
171
|
-
}
|
|
172
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
173
|
-
_.label = t[1];
|
|
174
|
-
t = op;
|
|
175
|
-
break;
|
|
176
|
-
}
|
|
177
|
-
if (t && _.label < t[2]) {
|
|
178
|
-
_.label = t[2];
|
|
179
|
-
_.ops.push(op);
|
|
180
|
-
break;
|
|
181
|
-
}
|
|
182
|
-
if (t[2])
|
|
183
|
-
_.ops.pop();
|
|
184
|
-
_.trys.pop();
|
|
185
|
-
continue;
|
|
186
|
-
}
|
|
187
|
-
op = body.call(thisArg, _);
|
|
188
|
-
}
|
|
189
|
-
catch (e) {
|
|
190
|
-
op = [6, e];
|
|
191
|
-
y = 0;
|
|
192
|
-
}
|
|
193
|
-
finally {
|
|
194
|
-
f = t = 0;
|
|
195
|
-
}
|
|
196
|
-
if (op[0] & 5)
|
|
197
|
-
throw op[1];
|
|
198
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
202
|
-
if (k2 === undefined)
|
|
203
|
-
k2 = k;
|
|
204
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
205
|
-
}) : (function (o, m, k, k2) {
|
|
206
|
-
if (k2 === undefined)
|
|
207
|
-
k2 = k;
|
|
208
|
-
o[k2] = m[k];
|
|
209
|
-
});
|
|
210
|
-
function __exportStar(m, o) {
|
|
211
|
-
for (var p in m)
|
|
212
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
213
|
-
__createBinding(o, m, p);
|
|
214
|
-
}
|
|
215
|
-
function __values(o) {
|
|
216
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
217
|
-
if (m)
|
|
218
|
-
return m.call(o);
|
|
219
|
-
if (o && typeof o.length === "number")
|
|
220
|
-
return {
|
|
221
|
-
next: function () {
|
|
222
|
-
if (o && i >= o.length)
|
|
223
|
-
o = void 0;
|
|
224
|
-
return { value: o && o[i++], done: !o };
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
228
|
-
}
|
|
229
|
-
function __read(o, n) {
|
|
230
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
231
|
-
if (!m)
|
|
232
|
-
return o;
|
|
233
|
-
var i = m.call(o), r, ar = [], e;
|
|
234
|
-
try {
|
|
235
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
236
|
-
ar.push(r.value);
|
|
237
|
-
}
|
|
238
|
-
catch (error) {
|
|
239
|
-
e = { error: error };
|
|
240
|
-
}
|
|
241
|
-
finally {
|
|
242
|
-
try {
|
|
243
|
-
if (r && !r.done && (m = i["return"]))
|
|
244
|
-
m.call(i);
|
|
245
|
-
}
|
|
246
|
-
finally {
|
|
247
|
-
if (e)
|
|
248
|
-
throw e.error;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
return ar;
|
|
252
|
-
}
|
|
253
|
-
/** @deprecated */
|
|
254
|
-
function __spread() {
|
|
255
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
256
|
-
ar = ar.concat(__read(arguments[i]));
|
|
257
|
-
return ar;
|
|
258
|
-
}
|
|
259
|
-
/** @deprecated */
|
|
260
|
-
function __spreadArrays() {
|
|
261
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
262
|
-
s += arguments[i].length;
|
|
263
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
264
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
265
|
-
r[k] = a[j];
|
|
266
|
-
return r;
|
|
267
|
-
}
|
|
268
|
-
function __spreadArray(to, from, pack) {
|
|
269
|
-
if (pack || arguments.length === 2)
|
|
270
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
271
|
-
if (ar || !(i in from)) {
|
|
272
|
-
if (!ar)
|
|
273
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
274
|
-
ar[i] = from[i];
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
278
|
-
}
|
|
279
|
-
function __await(v) {
|
|
280
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
281
|
-
}
|
|
282
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
283
|
-
if (!Symbol.asyncIterator)
|
|
284
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
285
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
286
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
287
|
-
function verb(n) { if (g[n])
|
|
288
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
289
|
-
function resume(n, v) { try {
|
|
290
|
-
step(g[n](v));
|
|
291
|
-
}
|
|
292
|
-
catch (e) {
|
|
293
|
-
settle(q[0][3], e);
|
|
294
|
-
} }
|
|
295
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
296
|
-
function fulfill(value) { resume("next", value); }
|
|
297
|
-
function reject(value) { resume("throw", value); }
|
|
298
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
299
|
-
resume(q[0][0], q[0][1]); }
|
|
300
|
-
}
|
|
301
|
-
function __asyncDelegator(o) {
|
|
302
|
-
var i, p;
|
|
303
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
304
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
305
|
-
}
|
|
306
|
-
function __asyncValues(o) {
|
|
307
|
-
if (!Symbol.asyncIterator)
|
|
308
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
309
|
-
var m = o[Symbol.asyncIterator], i;
|
|
310
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
311
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
312
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
313
|
-
}
|
|
314
|
-
function __makeTemplateObject(cooked, raw) {
|
|
315
|
-
if (Object.defineProperty) {
|
|
316
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
317
|
-
}
|
|
318
|
-
else {
|
|
319
|
-
cooked.raw = raw;
|
|
320
|
-
}
|
|
321
|
-
return cooked;
|
|
322
|
-
}
|
|
323
|
-
;
|
|
324
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
325
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
326
|
-
}) : function (o, v) {
|
|
327
|
-
o["default"] = v;
|
|
328
|
-
};
|
|
329
|
-
function __importStar(mod) {
|
|
330
|
-
if (mod && mod.__esModule)
|
|
331
|
-
return mod;
|
|
332
|
-
var result = {};
|
|
333
|
-
if (mod != null)
|
|
334
|
-
for (var k in mod)
|
|
335
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
336
|
-
__createBinding(result, mod, k);
|
|
337
|
-
__setModuleDefault(result, mod);
|
|
338
|
-
return result;
|
|
339
|
-
}
|
|
340
|
-
function __importDefault(mod) {
|
|
341
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
342
|
-
}
|
|
343
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
344
|
-
if (kind === "a" && !f)
|
|
345
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
346
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
347
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
348
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
349
|
-
}
|
|
350
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
351
|
-
if (kind === "m")
|
|
352
|
-
throw new TypeError("Private method is not writable");
|
|
353
|
-
if (kind === "a" && !f)
|
|
354
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
355
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
356
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
357
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* Provides information for and interaction with a SKY UX filter summary component.
|
|
362
|
-
* By using the fixture API, a test insulates itself against updates to the internals
|
|
363
|
-
* of a component, such as changing its DOM structure.
|
|
364
|
-
*/
|
|
365
|
-
var SkyFilterFixtureSummary = /** @class */ (function () {
|
|
366
|
-
function SkyFilterFixtureSummary(fixture, skyTestId) {
|
|
367
|
-
this.fixture = fixture;
|
|
368
|
-
this.debugElement = testing.SkyAppTestUtility.getDebugElementByTestId(this.fixture, skyTestId, 'sky-filter-summary');
|
|
369
|
-
}
|
|
370
|
-
SkyFilterFixtureSummary.prototype.filterCloseClick = function (index) {
|
|
371
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
372
|
-
var summaryItems, summaryItem, closeButton;
|
|
373
|
-
return __generator(this, function (_a) {
|
|
374
|
-
summaryItems = this.debugElement.nativeElement.querySelectorAll('sky-filter-summary-item');
|
|
375
|
-
if (summaryItems.length > index) {
|
|
376
|
-
summaryItem = summaryItems[index];
|
|
377
|
-
if (summaryItem instanceof HTMLElement) {
|
|
378
|
-
closeButton = summaryItem.querySelector('.sky-token-btn-close');
|
|
379
|
-
if (closeButton instanceof HTMLElement) {
|
|
380
|
-
closeButton.click();
|
|
381
|
-
this.fixture.detectChanges();
|
|
382
|
-
return [2 /*return*/, this.fixture.whenStable()];
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
throw new Error("Unable to click close for a filter index " + index);
|
|
387
|
-
});
|
|
388
|
-
});
|
|
389
|
-
};
|
|
390
|
-
return SkyFilterFixtureSummary;
|
|
391
|
-
}());
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* Provides information for and interaction with a SKY UX filter button component.
|
|
395
|
-
* By using the fixture API, a test insulates itself against updates to the internals
|
|
396
|
-
* of a component, such as changing its DOM structure.
|
|
397
|
-
*/
|
|
398
|
-
var SkyFilterFixtureButton = /** @class */ (function () {
|
|
399
|
-
function SkyFilterFixtureButton(fixture, skyTestId) {
|
|
400
|
-
this.fixture = fixture;
|
|
401
|
-
this.debugElement = testing.SkyAppTestUtility.getDebugElementByTestId(this.fixture, skyTestId, 'sky-filter-button');
|
|
402
|
-
}
|
|
403
|
-
/**
|
|
404
|
-
* Click the button to apply the filter.
|
|
405
|
-
*/
|
|
406
|
-
SkyFilterFixtureButton.prototype.clickFilterButton = function () {
|
|
407
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
408
|
-
var button;
|
|
409
|
-
return __generator(this, function (_b) {
|
|
410
|
-
button = this.getButtonElement();
|
|
411
|
-
if (button instanceof HTMLButtonElement && !button.disabled) {
|
|
412
|
-
button.click();
|
|
413
|
-
}
|
|
414
|
-
this.fixture.detectChanges();
|
|
415
|
-
return [2 /*return*/, this.fixture.whenStable()];
|
|
416
|
-
});
|
|
417
|
-
});
|
|
418
|
-
};
|
|
419
|
-
Object.defineProperty(SkyFilterFixtureButton.prototype, "button", {
|
|
420
|
-
get: function () {
|
|
421
|
-
var buttonElement = this.getButtonElement();
|
|
422
|
-
return {
|
|
423
|
-
ariaControls: buttonElement.getAttribute('aria-controls'),
|
|
424
|
-
ariaExpanded: buttonElement.getAttribute('aria-expanded') === 'true',
|
|
425
|
-
disabled: buttonElement.disabled,
|
|
426
|
-
id: buttonElement.id,
|
|
427
|
-
};
|
|
428
|
-
},
|
|
429
|
-
enumerable: false,
|
|
430
|
-
configurable: true
|
|
431
|
-
});
|
|
432
|
-
Object.defineProperty(SkyFilterFixtureButton.prototype, "buttonText", {
|
|
433
|
-
/**
|
|
434
|
-
* Get the button text.
|
|
435
|
-
*/
|
|
436
|
-
get: function () {
|
|
437
|
-
var _a;
|
|
438
|
-
var text = (_a = this.getButtonElement()) === null || _a === void 0 ? void 0 : _a.innerText;
|
|
439
|
-
return this.normalizeText(text);
|
|
440
|
-
},
|
|
441
|
-
enumerable: false,
|
|
442
|
-
configurable: true
|
|
443
|
-
});
|
|
444
|
-
SkyFilterFixtureButton.prototype.getButtonElement = function () {
|
|
445
|
-
return this.debugElement.nativeElement.querySelector('.sky-filter-btn');
|
|
446
|
-
};
|
|
447
|
-
SkyFilterFixtureButton.prototype.normalizeText = function (text) {
|
|
448
|
-
return text.trim().replace(/\s+/g, ' ');
|
|
449
|
-
};
|
|
450
|
-
return SkyFilterFixtureButton;
|
|
451
|
-
}());
|
|
452
|
-
|
|
453
|
-
var SkyPagingTestingModule = /** @class */ (function () {
|
|
454
|
-
function SkyPagingTestingModule() {
|
|
455
|
-
}
|
|
456
|
-
return SkyPagingTestingModule;
|
|
457
|
-
}());
|
|
458
|
-
SkyPagingTestingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPagingTestingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
459
|
-
SkyPagingTestingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPagingTestingModule, exports: [lists.SkyPagingModule] });
|
|
460
|
-
SkyPagingTestingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPagingTestingModule, imports: [lists.SkyPagingModule] });
|
|
461
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPagingTestingModule, decorators: [{
|
|
462
|
-
type: i0.NgModule,
|
|
463
|
-
args: [{
|
|
464
|
-
exports: [lists.SkyPagingModule],
|
|
465
|
-
}]
|
|
466
|
-
}] });
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* Provides information for and interaction with a SKY UX paging component.
|
|
470
|
-
* By using the fixture API, a test insulates itself against updates to the internals
|
|
471
|
-
* of a component, such as changing its DOM structure.
|
|
472
|
-
*/
|
|
473
|
-
var SkyPagingFixture = /** @class */ (function () {
|
|
474
|
-
function SkyPagingFixture(fixture, skyTestId) {
|
|
475
|
-
this.fixture = fixture;
|
|
476
|
-
this._debugEl = testing.SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-paging');
|
|
477
|
-
this.waitForComponentInitialization();
|
|
478
|
-
}
|
|
479
|
-
Object.defineProperty(SkyPagingFixture.prototype, "activePageId", {
|
|
480
|
-
/**
|
|
481
|
-
* The id of the active page, if available.
|
|
482
|
-
*/
|
|
483
|
-
get: function () {
|
|
484
|
-
return this.getPageId(this.activePageButton);
|
|
485
|
-
},
|
|
486
|
-
enumerable: false,
|
|
487
|
-
configurable: true
|
|
488
|
-
});
|
|
489
|
-
Object.defineProperty(SkyPagingFixture.prototype, "pageLinks", {
|
|
490
|
-
/**
|
|
491
|
-
* Properties of the page links displayed in the paging component.
|
|
492
|
-
*/
|
|
493
|
-
get: function () {
|
|
494
|
-
var _this = this;
|
|
495
|
-
return this.pagingLinks.map(function (page) {
|
|
496
|
-
return {
|
|
497
|
-
id: _this.getPageId(page.nativeElement),
|
|
498
|
-
isActive: page.nativeElement.classList.contains('sky-paging-current'),
|
|
499
|
-
isEnabled: !page.nativeElement.disabled,
|
|
500
|
-
};
|
|
501
|
-
});
|
|
502
|
-
},
|
|
503
|
-
enumerable: false,
|
|
504
|
-
configurable: true
|
|
505
|
-
});
|
|
506
|
-
/**
|
|
507
|
-
* Selects the specified page by id, if it is enabled.
|
|
508
|
-
*/
|
|
509
|
-
SkyPagingFixture.prototype.selectPage = function (id) {
|
|
510
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
511
|
-
var pageButton;
|
|
512
|
-
return __generator(this, function (_b) {
|
|
513
|
-
pageButton = this.getPageLink(id.toString());
|
|
514
|
-
if (pageButton !== undefined && !pageButton.disabled) {
|
|
515
|
-
pageButton.click();
|
|
516
|
-
this.fixture.detectChanges();
|
|
517
|
-
return [2 /*return*/, this.fixture.whenStable()];
|
|
518
|
-
}
|
|
519
|
-
return [2 /*return*/];
|
|
520
|
-
});
|
|
521
|
-
});
|
|
522
|
-
};
|
|
523
|
-
/**
|
|
524
|
-
* Clicks the next page button, if it is enabled.
|
|
525
|
-
*/
|
|
526
|
-
SkyPagingFixture.prototype.selectNextPage = function () {
|
|
527
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
528
|
-
var nextButton;
|
|
529
|
-
return __generator(this, function (_b) {
|
|
530
|
-
nextButton = this.nextPageButton;
|
|
531
|
-
if (nextButton !== undefined && !nextButton.disabled) {
|
|
532
|
-
nextButton.click();
|
|
533
|
-
this.fixture.detectChanges();
|
|
534
|
-
return [2 /*return*/, this.fixture.whenStable()];
|
|
535
|
-
}
|
|
536
|
-
return [2 /*return*/];
|
|
537
|
-
});
|
|
538
|
-
});
|
|
539
|
-
};
|
|
540
|
-
/**
|
|
541
|
-
* Clicks the previous page button, if it is enabled.
|
|
542
|
-
*/
|
|
543
|
-
SkyPagingFixture.prototype.selectPreviousPage = function () {
|
|
544
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
545
|
-
var previousButton;
|
|
546
|
-
return __generator(this, function (_b) {
|
|
547
|
-
previousButton = this.previousPageButton;
|
|
548
|
-
if (previousButton !== undefined && !previousButton.disabled) {
|
|
549
|
-
previousButton.click();
|
|
550
|
-
this.fixture.detectChanges();
|
|
551
|
-
return [2 /*return*/, this.fixture.whenStable()];
|
|
552
|
-
}
|
|
553
|
-
return [2 /*return*/];
|
|
554
|
-
});
|
|
555
|
-
});
|
|
556
|
-
};
|
|
557
|
-
Object.defineProperty(SkyPagingFixture.prototype, "activePageButton", {
|
|
558
|
-
//#region helpers
|
|
559
|
-
get: function () {
|
|
560
|
-
var _a;
|
|
561
|
-
return (_a = this._debugEl.query(platformBrowser.By.css('.sky-list-paging-link .sky-paging-current'))) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
562
|
-
},
|
|
563
|
-
enumerable: false,
|
|
564
|
-
configurable: true
|
|
565
|
-
});
|
|
566
|
-
Object.defineProperty(SkyPagingFixture.prototype, "nextPageButton", {
|
|
567
|
-
get: function () {
|
|
568
|
-
var _a;
|
|
569
|
-
return (_a = this._debugEl.query(platformBrowser.By.css('.sky-paging-btn[sky-cmp-id="next"]'))) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
570
|
-
},
|
|
571
|
-
enumerable: false,
|
|
572
|
-
configurable: true
|
|
573
|
-
});
|
|
574
|
-
Object.defineProperty(SkyPagingFixture.prototype, "previousPageButton", {
|
|
575
|
-
get: function () {
|
|
576
|
-
var _a;
|
|
577
|
-
return (_a = this._debugEl.query(platformBrowser.By.css('.sky-paging-btn[sky-cmp-id="previous"]'))) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
578
|
-
},
|
|
579
|
-
enumerable: false,
|
|
580
|
-
configurable: true
|
|
581
|
-
});
|
|
582
|
-
Object.defineProperty(SkyPagingFixture.prototype, "pagingLinks", {
|
|
583
|
-
get: function () {
|
|
584
|
-
return this._debugEl.queryAll(platformBrowser.By.css('.sky-list-paging-link button'));
|
|
585
|
-
},
|
|
586
|
-
enumerable: false,
|
|
587
|
-
configurable: true
|
|
588
|
-
});
|
|
589
|
-
SkyPagingFixture.prototype.getPageLink = function (id) {
|
|
590
|
-
var _a;
|
|
591
|
-
return (_a = this._debugEl.query(platformBrowser.By.css(".sky-list-paging-link button[sky-cmp-id=\"" + id + "\"]"))) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
592
|
-
};
|
|
593
|
-
SkyPagingFixture.prototype.getPageId = function (page) {
|
|
594
|
-
return page === null || page === void 0 ? void 0 : page.getAttribute('sky-cmp-id');
|
|
595
|
-
};
|
|
596
|
-
SkyPagingFixture.prototype.waitForComponentInitialization = function () {
|
|
597
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
598
|
-
return __generator(this, function (_b) {
|
|
599
|
-
switch (_b.label) {
|
|
600
|
-
case 0:
|
|
601
|
-
this.fixture.detectChanges();
|
|
602
|
-
return [4 /*yield*/, this.fixture.whenStable()];
|
|
603
|
-
case 1:
|
|
604
|
-
_b.sent();
|
|
605
|
-
this.fixture.detectChanges();
|
|
606
|
-
return [2 /*return*/, this.fixture.whenStable()];
|
|
607
|
-
}
|
|
608
|
-
});
|
|
609
|
-
});
|
|
610
|
-
};
|
|
611
|
-
return SkyPagingFixture;
|
|
612
|
-
}());
|
|
613
|
-
|
|
614
|
-
var SkySortTestingModule = /** @class */ (function () {
|
|
615
|
-
function SkySortTestingModule() {
|
|
616
|
-
}
|
|
617
|
-
return SkySortTestingModule;
|
|
618
|
-
}());
|
|
619
|
-
SkySortTestingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySortTestingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
620
|
-
SkySortTestingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySortTestingModule, imports: [animations.NoopAnimationsModule], exports: [lists.SkySortModule] });
|
|
621
|
-
SkySortTestingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySortTestingModule, imports: [[animations.NoopAnimationsModule], lists.SkySortModule] });
|
|
622
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySortTestingModule, decorators: [{
|
|
623
|
-
type: i0.NgModule,
|
|
624
|
-
args: [{
|
|
625
|
-
imports: [animations.NoopAnimationsModule],
|
|
626
|
-
exports: [lists.SkySortModule],
|
|
627
|
-
}]
|
|
628
|
-
}] });
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* Provides information for and interaction with a SKY UX sort component.
|
|
632
|
-
* By using the fixture API, a test insulates itself against updates to the internals
|
|
633
|
-
* of a component, such as changing its DOM structure.
|
|
634
|
-
*/
|
|
635
|
-
var SkySortFixture = /** @class */ (function () {
|
|
636
|
-
function SkySortFixture(fixture, skyTestId) {
|
|
637
|
-
this.fixture = fixture;
|
|
638
|
-
this._debugEl = testing.SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-sort');
|
|
639
|
-
}
|
|
640
|
-
Object.defineProperty(SkySortFixture.prototype, "activeMenuItem", {
|
|
641
|
-
/**
|
|
642
|
-
* The active sort menu item, if one exists. Menu items are only available when the menu dropdown
|
|
643
|
-
* is open. If the menu dropdown is closed, this property will be undefined.
|
|
644
|
-
*/
|
|
645
|
-
get: function () {
|
|
646
|
-
var _a;
|
|
647
|
-
return (_a = this.menuItems) === null || _a === void 0 ? void 0 : _a.find(function (x) { return x.isActive; });
|
|
648
|
-
},
|
|
649
|
-
enumerable: false,
|
|
650
|
-
configurable: true
|
|
651
|
-
});
|
|
652
|
-
Object.defineProperty(SkySortFixture.prototype, "menu", {
|
|
653
|
-
/**
|
|
654
|
-
* The sort menu's properties.
|
|
655
|
-
*/
|
|
656
|
-
get: function () {
|
|
657
|
-
return {
|
|
658
|
-
buttonText: testing.SkyAppTestUtility.getText(this.getSortButtonTextEl()),
|
|
659
|
-
isOpen: this.getDropdownMenuEl() !== null,
|
|
660
|
-
};
|
|
661
|
-
},
|
|
662
|
-
enumerable: false,
|
|
663
|
-
configurable: true
|
|
664
|
-
});
|
|
665
|
-
Object.defineProperty(SkySortFixture.prototype, "menuItems", {
|
|
666
|
-
/**
|
|
667
|
-
* The properties of each sort menu item. Menu items are only available when the menu dropdown
|
|
668
|
-
* is open. If the menu dropdown is closed, this property will be undefined.
|
|
669
|
-
*/
|
|
670
|
-
get: function () {
|
|
671
|
-
// Return undefined when we can't determine what the options are.
|
|
672
|
-
// We do this to avoid any confusion with an empty set of options.
|
|
673
|
-
if (!this.menu.isOpen) {
|
|
674
|
-
return;
|
|
675
|
-
}
|
|
676
|
-
return this.getSortItems().map(function (item, i) {
|
|
677
|
-
var itemButton = item.querySelector('button');
|
|
678
|
-
return {
|
|
679
|
-
index: i,
|
|
680
|
-
isActive: item.classList.contains('sky-sort-item-selected'),
|
|
681
|
-
text: testing.SkyAppTestUtility.getText(itemButton),
|
|
682
|
-
};
|
|
683
|
-
});
|
|
684
|
-
},
|
|
685
|
-
enumerable: false,
|
|
686
|
-
configurable: true
|
|
687
|
-
});
|
|
688
|
-
/**
|
|
689
|
-
* Closes the sort dropdown menu if it isn't closed already.
|
|
690
|
-
*/
|
|
691
|
-
SkySortFixture.prototype.closeMenu = function () {
|
|
692
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
693
|
-
var menu;
|
|
694
|
-
return __generator(this, function (_b) {
|
|
695
|
-
switch (_b.label) {
|
|
696
|
-
case 0:
|
|
697
|
-
// if the menu is already closed, do nothing
|
|
698
|
-
if (!this.menu.isOpen) {
|
|
699
|
-
return [2 /*return*/];
|
|
700
|
-
}
|
|
701
|
-
menu = this.getDropdownButtonEl();
|
|
702
|
-
if (!(menu !== undefined && !menu.disabled)) return [3 /*break*/, 2];
|
|
703
|
-
menu.click();
|
|
704
|
-
this.fixture.detectChanges();
|
|
705
|
-
return [4 /*yield*/, this.fixture.whenStable()];
|
|
706
|
-
case 1:
|
|
707
|
-
_b.sent();
|
|
708
|
-
this.fixture.detectChanges();
|
|
709
|
-
return [2 /*return*/, this.fixture.whenStable()];
|
|
710
|
-
case 2: return [2 /*return*/];
|
|
711
|
-
}
|
|
712
|
-
});
|
|
713
|
-
});
|
|
714
|
-
};
|
|
715
|
-
/**
|
|
716
|
-
* Opens the sort dropdown menu if it isn't open already.
|
|
717
|
-
*/
|
|
718
|
-
SkySortFixture.prototype.openMenu = function () {
|
|
719
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
720
|
-
var menu;
|
|
721
|
-
return __generator(this, function (_b) {
|
|
722
|
-
switch (_b.label) {
|
|
723
|
-
case 0:
|
|
724
|
-
// if the menu is already open, do nothing
|
|
725
|
-
if (this.menu.isOpen) {
|
|
726
|
-
return [2 /*return*/];
|
|
727
|
-
}
|
|
728
|
-
menu = this.getDropdownButtonEl();
|
|
729
|
-
if (!(menu !== undefined && !menu.disabled)) return [3 /*break*/, 2];
|
|
730
|
-
menu.click();
|
|
731
|
-
this.fixture.detectChanges();
|
|
732
|
-
return [4 /*yield*/, this.fixture.whenStable()];
|
|
733
|
-
case 1:
|
|
734
|
-
_b.sent();
|
|
735
|
-
this.fixture.detectChanges();
|
|
736
|
-
return [2 /*return*/, this.fixture.whenStable()];
|
|
737
|
-
case 2: return [2 /*return*/];
|
|
738
|
-
}
|
|
739
|
-
});
|
|
740
|
-
});
|
|
741
|
-
};
|
|
742
|
-
/**
|
|
743
|
-
* Ensures the sort menu is open and selects the menu item with the specified index, if it exists.
|
|
744
|
-
* @param menuItemIndex The index of the menu item to select.
|
|
745
|
-
*/
|
|
746
|
-
SkySortFixture.prototype.selectMenuItemByIndex = function (menuItemIndex) {
|
|
747
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
748
|
-
return __generator(this, function (_b) {
|
|
749
|
-
return [2 /*return*/, this.selectMenuItem(function (_item, index) {
|
|
750
|
-
return index === menuItemIndex;
|
|
751
|
-
})];
|
|
752
|
-
});
|
|
753
|
-
});
|
|
754
|
-
};
|
|
755
|
-
/**
|
|
756
|
-
* Ensures the sort menu is open and selects the menu item with the specified text,
|
|
757
|
-
* if a matching item is available.
|
|
758
|
-
* @param menuItemText The text of the menu item to select.
|
|
759
|
-
*/
|
|
760
|
-
SkySortFixture.prototype.selectMenuItemByText = function (menuItemText) {
|
|
761
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
762
|
-
return __generator(this, function (_b) {
|
|
763
|
-
return [2 /*return*/, this.selectMenuItem(function (item) {
|
|
764
|
-
return testing.SkyAppTestUtility.getText(item) === menuItemText;
|
|
765
|
-
})];
|
|
766
|
-
});
|
|
767
|
-
});
|
|
768
|
-
};
|
|
769
|
-
//#region helpers
|
|
770
|
-
SkySortFixture.prototype.getDropdownButtonEl = function () {
|
|
771
|
-
var _a;
|
|
772
|
-
return (_a = this._debugEl.query(platformBrowser.By.css('.sky-dropdown-button'))) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
773
|
-
};
|
|
774
|
-
SkySortFixture.prototype.getDropdownMenuEl = function () {
|
|
775
|
-
return document.querySelector('sky-overlay .sky-dropdown-menu');
|
|
776
|
-
};
|
|
777
|
-
SkySortFixture.prototype.getSortButtonTextEl = function () {
|
|
778
|
-
var _a;
|
|
779
|
-
return (_a = this._debugEl.query(platformBrowser.By.css('.sky-sort-btn-text'))) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
780
|
-
};
|
|
781
|
-
SkySortFixture.prototype.getSortItems = function () {
|
|
782
|
-
var resultNodes = document.querySelectorAll('sky-overlay .sky-sort-item');
|
|
783
|
-
return Array.prototype.slice.call(resultNodes);
|
|
784
|
-
};
|
|
785
|
-
/**
|
|
786
|
-
* Ensures the sort menu is open and selects the menu item via a selection predicate,
|
|
787
|
-
* if a matching item is available.
|
|
788
|
-
* @param selectionPredicate The menu item selector method to use.
|
|
789
|
-
*/
|
|
790
|
-
SkySortFixture.prototype.selectMenuItem = function (selectionPredicate) {
|
|
791
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
792
|
-
var items, targetItem, targetButton;
|
|
793
|
-
return __generator(this, function (_b) {
|
|
794
|
-
switch (_b.label) {
|
|
795
|
-
case 0:
|
|
796
|
-
if (!!this.menu.isOpen) return [3 /*break*/, 2];
|
|
797
|
-
return [4 /*yield*/, this.openMenu()];
|
|
798
|
-
case 1:
|
|
799
|
-
_b.sent();
|
|
800
|
-
_b.label = 2;
|
|
801
|
-
case 2:
|
|
802
|
-
items = this.getSortItems();
|
|
803
|
-
targetItem = items.find(function (item, index) { return selectionPredicate(item, index); });
|
|
804
|
-
// if we found the item, select it
|
|
805
|
-
if (targetItem) {
|
|
806
|
-
targetButton = targetItem.querySelector('button');
|
|
807
|
-
targetButton.click();
|
|
808
|
-
this.fixture.detectChanges();
|
|
809
|
-
return [2 /*return*/, this.fixture.whenStable()];
|
|
810
|
-
}
|
|
811
|
-
return [2 /*return*/];
|
|
812
|
-
}
|
|
813
|
-
});
|
|
814
|
-
});
|
|
815
|
-
};
|
|
816
|
-
return SkySortFixture;
|
|
817
|
-
}());
|
|
818
|
-
|
|
819
|
-
var SkyInfiniteScrollTestingModule = /** @class */ (function () {
|
|
820
|
-
function SkyInfiniteScrollTestingModule() {
|
|
821
|
-
}
|
|
822
|
-
return SkyInfiniteScrollTestingModule;
|
|
823
|
-
}());
|
|
824
|
-
SkyInfiniteScrollTestingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyInfiniteScrollTestingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
825
|
-
SkyInfiniteScrollTestingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyInfiniteScrollTestingModule, exports: [lists.SkyInfiniteScrollModule] });
|
|
826
|
-
SkyInfiniteScrollTestingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyInfiniteScrollTestingModule, imports: [lists.SkyInfiniteScrollModule] });
|
|
827
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyInfiniteScrollTestingModule, decorators: [{
|
|
828
|
-
type: i0.NgModule,
|
|
829
|
-
args: [{
|
|
830
|
-
exports: [lists.SkyInfiniteScrollModule],
|
|
831
|
-
}]
|
|
832
|
-
}] });
|
|
833
|
-
|
|
834
|
-
/**
|
|
835
|
-
* Provides information for and interaction with a SKY UX infinite scroll component.
|
|
836
|
-
* By using the fixture API, a test insulates itself against updates to the internals
|
|
837
|
-
* of a component, such as changing its DOM structure.
|
|
838
|
-
*/
|
|
839
|
-
var SkyInfiniteScrollFixture = /** @class */ (function () {
|
|
840
|
-
function SkyInfiniteScrollFixture(fixture, skyTestId) {
|
|
841
|
-
this.fixture = fixture;
|
|
842
|
-
this.debugElement = testing.SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-infinite-scroll');
|
|
843
|
-
}
|
|
844
|
-
Object.defineProperty(SkyInfiniteScrollFixture.prototype, "loadMoreButtonIsVisible", {
|
|
845
|
-
get: function () {
|
|
846
|
-
return this.getButton() instanceof HTMLButtonElement;
|
|
847
|
-
},
|
|
848
|
-
enumerable: false,
|
|
849
|
-
configurable: true
|
|
850
|
-
});
|
|
851
|
-
SkyInfiniteScrollFixture.prototype.clickLoadMoreButton = function () {
|
|
852
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
853
|
-
var button;
|
|
854
|
-
return __generator(this, function (_a) {
|
|
855
|
-
button = this.getButton();
|
|
856
|
-
if (button instanceof HTMLButtonElement) {
|
|
857
|
-
button.click();
|
|
858
|
-
}
|
|
859
|
-
this.fixture.detectChanges();
|
|
860
|
-
return [2 /*return*/, this.fixture.whenStable()];
|
|
861
|
-
});
|
|
862
|
-
});
|
|
863
|
-
};
|
|
864
|
-
SkyInfiniteScrollFixture.prototype.getButton = function () {
|
|
865
|
-
return this.debugElement.nativeElement.querySelector('.sky-infinite-scroll .sky-btn');
|
|
866
|
-
};
|
|
867
|
-
return SkyInfiniteScrollFixture;
|
|
868
|
-
}());
|
|
869
|
-
|
|
870
|
-
/**
|
|
871
|
-
* Generated bundle index. Do not edit.
|
|
872
|
-
*/
|
|
873
|
-
|
|
874
|
-
exports.SkyFilterFixtureButton = SkyFilterFixtureButton;
|
|
875
|
-
exports.SkyFilterFixtureSummary = SkyFilterFixtureSummary;
|
|
876
|
-
exports.SkyFilterTestingModule = SkyFilterTestingModule;
|
|
877
|
-
exports.SkyInfiniteScrollFixture = SkyInfiniteScrollFixture;
|
|
878
|
-
exports.SkyInfiniteScrollTestingModule = SkyInfiniteScrollTestingModule;
|
|
879
|
-
exports.SkyPagingFixture = SkyPagingFixture;
|
|
880
|
-
exports.SkyPagingTestingModule = SkyPagingTestingModule;
|
|
881
|
-
exports.SkySortFixture = SkySortFixture;
|
|
882
|
-
exports.SkySortTestingModule = SkySortTestingModule;
|
|
883
|
-
|
|
884
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
885
|
-
|
|
886
|
-
}));
|
|
887
|
-
//# sourceMappingURL=skyux-lists-testing.umd.js.map
|