@taiga-ui/testing 3.70.0-canary.e02fd1e → 3.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taiga-ui-testing-core.umd.js +1373 -1519
- package/bundles/taiga-ui-testing-core.umd.js.map +1 -1
- package/bundles/taiga-ui-testing-cypress.umd.js +6 -152
- package/bundles/taiga-ui-testing-cypress.umd.js.map +1 -1
- package/bundles/taiga-ui-testing-exceptions.umd.js +338 -484
- package/bundles/taiga-ui-testing-exceptions.umd.js.map +1 -1
- package/bundles/taiga-ui-testing-mocks.umd.js +357 -503
- package/bundles/taiga-ui-testing-mocks.umd.js.map +1 -1
- package/bundles/taiga-ui-testing-utils.umd.js +6 -152
- package/bundles/taiga-ui-testing-utils.umd.js.map +1 -1
- package/package.json +17 -17
@@ -1,1553 +1,1407 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/testing/utils'), require('@angular/cdk/testing')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/testing/core', ['exports', '@taiga-ui/testing/utils', '@angular/cdk/testing'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].testing = global["taiga-ui"].testing || {}, global["taiga-ui"].testing.core = {}), global["taiga-ui"].testing.utils, global.ng.cdk.testing));
|
5
5
|
})(this, (function (exports, utils, testing) { 'use strict';
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
/*! *****************************************************************************
|
8
|
+
Copyright (c) Microsoft Corporation.
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
11
|
+
purpose with or without fee is hereby granted.
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
function reject(value) { resume("throw", value); }
|
325
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
326
|
-
resume(q[0][0], q[0][1]); }
|
327
|
-
}
|
328
|
-
function __asyncDelegator(o) {
|
329
|
-
var i, p;
|
330
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
331
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
332
|
-
}
|
333
|
-
function __asyncValues(o) {
|
334
|
-
if (!Symbol.asyncIterator)
|
335
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
336
|
-
var m = o[Symbol.asyncIterator], i;
|
337
|
-
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);
|
338
|
-
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); }); }; }
|
339
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
340
|
-
}
|
341
|
-
function __makeTemplateObject(cooked, raw) {
|
342
|
-
if (Object.defineProperty) {
|
343
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
344
|
-
}
|
345
|
-
else {
|
346
|
-
cooked.raw = raw;
|
347
|
-
}
|
348
|
-
return cooked;
|
349
|
-
}
|
350
|
-
;
|
351
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
352
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
353
|
-
}) : function (o, v) {
|
354
|
-
o["default"] = v;
|
355
|
-
};
|
356
|
-
function __importStar(mod) {
|
357
|
-
if (mod && mod.__esModule)
|
358
|
-
return mod;
|
359
|
-
var result = {};
|
360
|
-
if (mod != null)
|
361
|
-
for (var k in mod)
|
362
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
363
|
-
__createBinding(result, mod, k);
|
364
|
-
__setModuleDefault(result, mod);
|
365
|
-
return result;
|
366
|
-
}
|
367
|
-
function __importDefault(mod) {
|
368
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
369
|
-
}
|
370
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
371
|
-
if (kind === "a" && !f)
|
372
|
-
throw new TypeError("Private accessor was defined without a getter");
|
373
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
374
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
375
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
376
|
-
}
|
377
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
378
|
-
if (kind === "m")
|
379
|
-
throw new TypeError("Private method is not writable");
|
380
|
-
if (kind === "a" && !f)
|
381
|
-
throw new TypeError("Private accessor was defined without a setter");
|
382
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
383
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
384
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
385
|
-
}
|
386
|
-
function __classPrivateFieldIn(state, receiver) {
|
387
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
388
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
389
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
390
|
-
}
|
391
|
-
function __addDisposableResource(env, value, async) {
|
392
|
-
if (value !== null && value !== void 0) {
|
393
|
-
if (typeof value !== "object" && typeof value !== "function")
|
394
|
-
throw new TypeError("Object expected.");
|
395
|
-
var dispose;
|
396
|
-
if (async) {
|
397
|
-
if (!Symbol.asyncDispose)
|
398
|
-
throw new TypeError("Symbol.asyncDispose is not defined.");
|
399
|
-
dispose = value[Symbol.asyncDispose];
|
400
|
-
}
|
401
|
-
if (dispose === void 0) {
|
402
|
-
if (!Symbol.dispose)
|
403
|
-
throw new TypeError("Symbol.dispose is not defined.");
|
404
|
-
dispose = value[Symbol.dispose];
|
405
|
-
}
|
406
|
-
if (typeof dispose !== "function")
|
407
|
-
throw new TypeError("Object not disposable.");
|
408
|
-
env.stack.push({ value: value, dispose: dispose, async: async });
|
409
|
-
}
|
410
|
-
else if (async) {
|
411
|
-
env.stack.push({ async: true });
|
412
|
-
}
|
413
|
-
return value;
|
414
|
-
}
|
415
|
-
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
416
|
-
var e = new Error(message);
|
417
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
418
|
-
};
|
419
|
-
function __disposeResources(env) {
|
420
|
-
function fail(e) {
|
421
|
-
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
422
|
-
env.hasError = true;
|
423
|
-
}
|
424
|
-
function next() {
|
425
|
-
while (env.stack.length) {
|
426
|
-
var rec = env.stack.pop();
|
427
|
-
try {
|
428
|
-
var result = rec.dispose && rec.dispose.call(rec.value);
|
429
|
-
if (rec.async)
|
430
|
-
return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
|
431
|
-
}
|
432
|
-
catch (e) {
|
433
|
-
fail(e);
|
434
|
-
}
|
435
|
-
}
|
436
|
-
if (env.hasError)
|
437
|
-
throw env.error;
|
438
|
-
}
|
439
|
-
return next();
|
440
|
-
}
|
441
|
-
var tslib_es6 = {
|
442
|
-
__extends: __extends,
|
443
|
-
__assign: __assign,
|
444
|
-
__rest: __rest,
|
445
|
-
__decorate: __decorate,
|
446
|
-
__param: __param,
|
447
|
-
__metadata: __metadata,
|
448
|
-
__awaiter: __awaiter,
|
449
|
-
__generator: __generator,
|
450
|
-
__createBinding: __createBinding,
|
451
|
-
__exportStar: __exportStar,
|
452
|
-
__values: __values,
|
453
|
-
__read: __read,
|
454
|
-
__spread: __spread,
|
455
|
-
__spreadArrays: __spreadArrays,
|
456
|
-
__spreadArray: __spreadArray,
|
457
|
-
__await: __await,
|
458
|
-
__asyncGenerator: __asyncGenerator,
|
459
|
-
__asyncDelegator: __asyncDelegator,
|
460
|
-
__asyncValues: __asyncValues,
|
461
|
-
__makeTemplateObject: __makeTemplateObject,
|
462
|
-
__importStar: __importStar,
|
463
|
-
__importDefault: __importDefault,
|
464
|
-
__classPrivateFieldGet: __classPrivateFieldGet,
|
465
|
-
__classPrivateFieldSet: __classPrivateFieldSet,
|
466
|
-
__classPrivateFieldIn: __classPrivateFieldIn,
|
467
|
-
__addDisposableResource: __addDisposableResource,
|
468
|
-
__disposeResources: __disposeResources,
|
469
|
-
};
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
14
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
15
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
16
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
17
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
18
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
19
|
+
PERFORMANCE OF THIS SOFTWARE.
|
20
|
+
***************************************************************************** */
|
21
|
+
/* global Reflect, Promise */
|
22
|
+
var extendStatics = function (d, b) {
|
23
|
+
extendStatics = Object.setPrototypeOf ||
|
24
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
25
|
+
function (d, b) { for (var p in b)
|
26
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
27
|
+
d[p] = b[p]; };
|
28
|
+
return extendStatics(d, b);
|
29
|
+
};
|
30
|
+
function __extends(d, b) {
|
31
|
+
if (typeof b !== "function" && b !== null)
|
32
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
33
|
+
extendStatics(d, b);
|
34
|
+
function __() { this.constructor = d; }
|
35
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
36
|
+
}
|
37
|
+
var __assign = function () {
|
38
|
+
__assign = Object.assign || function __assign(t) {
|
39
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
40
|
+
s = arguments[i];
|
41
|
+
for (var p in s)
|
42
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
43
|
+
t[p] = s[p];
|
44
|
+
}
|
45
|
+
return t;
|
46
|
+
};
|
47
|
+
return __assign.apply(this, arguments);
|
48
|
+
};
|
49
|
+
function __rest(s, e) {
|
50
|
+
var t = {};
|
51
|
+
for (var p in s)
|
52
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
53
|
+
t[p] = s[p];
|
54
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
55
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
56
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
57
|
+
t[p[i]] = s[p[i]];
|
58
|
+
}
|
59
|
+
return t;
|
60
|
+
}
|
61
|
+
function __decorate(decorators, target, key, desc) {
|
62
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
63
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
64
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
65
|
+
else
|
66
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
67
|
+
if (d = decorators[i])
|
68
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
69
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
70
|
+
}
|
71
|
+
function __param(paramIndex, decorator) {
|
72
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
73
|
+
}
|
74
|
+
function __metadata(metadataKey, metadataValue) {
|
75
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
76
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
77
|
+
}
|
78
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
79
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
80
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
81
|
+
function fulfilled(value) { try {
|
82
|
+
step(generator.next(value));
|
83
|
+
}
|
84
|
+
catch (e) {
|
85
|
+
reject(e);
|
86
|
+
} }
|
87
|
+
function rejected(value) { try {
|
88
|
+
step(generator["throw"](value));
|
89
|
+
}
|
90
|
+
catch (e) {
|
91
|
+
reject(e);
|
92
|
+
} }
|
93
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
94
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
95
|
+
});
|
96
|
+
}
|
97
|
+
function __generator(thisArg, body) {
|
98
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
99
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
100
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
101
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
102
|
+
function step(op) {
|
103
|
+
if (f)
|
104
|
+
throw new TypeError("Generator is already executing.");
|
105
|
+
while (_)
|
106
|
+
try {
|
107
|
+
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)
|
108
|
+
return t;
|
109
|
+
if (y = 0, t)
|
110
|
+
op = [op[0] & 2, t.value];
|
111
|
+
switch (op[0]) {
|
112
|
+
case 0:
|
113
|
+
case 1:
|
114
|
+
t = op;
|
115
|
+
break;
|
116
|
+
case 4:
|
117
|
+
_.label++;
|
118
|
+
return { value: op[1], done: false };
|
119
|
+
case 5:
|
120
|
+
_.label++;
|
121
|
+
y = op[1];
|
122
|
+
op = [0];
|
123
|
+
continue;
|
124
|
+
case 7:
|
125
|
+
op = _.ops.pop();
|
126
|
+
_.trys.pop();
|
127
|
+
continue;
|
128
|
+
default:
|
129
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
130
|
+
_ = 0;
|
131
|
+
continue;
|
132
|
+
}
|
133
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
134
|
+
_.label = op[1];
|
135
|
+
break;
|
136
|
+
}
|
137
|
+
if (op[0] === 6 && _.label < t[1]) {
|
138
|
+
_.label = t[1];
|
139
|
+
t = op;
|
140
|
+
break;
|
141
|
+
}
|
142
|
+
if (t && _.label < t[2]) {
|
143
|
+
_.label = t[2];
|
144
|
+
_.ops.push(op);
|
145
|
+
break;
|
146
|
+
}
|
147
|
+
if (t[2])
|
148
|
+
_.ops.pop();
|
149
|
+
_.trys.pop();
|
150
|
+
continue;
|
151
|
+
}
|
152
|
+
op = body.call(thisArg, _);
|
153
|
+
}
|
154
|
+
catch (e) {
|
155
|
+
op = [6, e];
|
156
|
+
y = 0;
|
157
|
+
}
|
158
|
+
finally {
|
159
|
+
f = t = 0;
|
160
|
+
}
|
161
|
+
if (op[0] & 5)
|
162
|
+
throw op[1];
|
163
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
164
|
+
}
|
165
|
+
}
|
166
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
167
|
+
if (k2 === undefined)
|
168
|
+
k2 = k;
|
169
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
170
|
+
}) : (function (o, m, k, k2) {
|
171
|
+
if (k2 === undefined)
|
172
|
+
k2 = k;
|
173
|
+
o[k2] = m[k];
|
174
|
+
});
|
175
|
+
function __exportStar(m, o) {
|
176
|
+
for (var p in m)
|
177
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
178
|
+
__createBinding(o, m, p);
|
179
|
+
}
|
180
|
+
function __values(o) {
|
181
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
182
|
+
if (m)
|
183
|
+
return m.call(o);
|
184
|
+
if (o && typeof o.length === "number")
|
185
|
+
return {
|
186
|
+
next: function () {
|
187
|
+
if (o && i >= o.length)
|
188
|
+
o = void 0;
|
189
|
+
return { value: o && o[i++], done: !o };
|
190
|
+
}
|
191
|
+
};
|
192
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
193
|
+
}
|
194
|
+
function __read(o, n) {
|
195
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
196
|
+
if (!m)
|
197
|
+
return o;
|
198
|
+
var i = m.call(o), r, ar = [], e;
|
199
|
+
try {
|
200
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
201
|
+
ar.push(r.value);
|
202
|
+
}
|
203
|
+
catch (error) {
|
204
|
+
e = { error: error };
|
205
|
+
}
|
206
|
+
finally {
|
207
|
+
try {
|
208
|
+
if (r && !r.done && (m = i["return"]))
|
209
|
+
m.call(i);
|
210
|
+
}
|
211
|
+
finally {
|
212
|
+
if (e)
|
213
|
+
throw e.error;
|
214
|
+
}
|
215
|
+
}
|
216
|
+
return ar;
|
217
|
+
}
|
218
|
+
/** @deprecated */
|
219
|
+
function __spread() {
|
220
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
221
|
+
ar = ar.concat(__read(arguments[i]));
|
222
|
+
return ar;
|
223
|
+
}
|
224
|
+
/** @deprecated */
|
225
|
+
function __spreadArrays() {
|
226
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
227
|
+
s += arguments[i].length;
|
228
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
229
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
230
|
+
r[k] = a[j];
|
231
|
+
return r;
|
232
|
+
}
|
233
|
+
function __spreadArray(to, from, pack) {
|
234
|
+
if (pack || arguments.length === 2)
|
235
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
236
|
+
if (ar || !(i in from)) {
|
237
|
+
if (!ar)
|
238
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
239
|
+
ar[i] = from[i];
|
240
|
+
}
|
241
|
+
}
|
242
|
+
return to.concat(ar || from);
|
243
|
+
}
|
244
|
+
function __await(v) {
|
245
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
246
|
+
}
|
247
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
248
|
+
if (!Symbol.asyncIterator)
|
249
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
250
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
251
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
252
|
+
function verb(n) { if (g[n])
|
253
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
254
|
+
function resume(n, v) { try {
|
255
|
+
step(g[n](v));
|
256
|
+
}
|
257
|
+
catch (e) {
|
258
|
+
settle(q[0][3], e);
|
259
|
+
} }
|
260
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
261
|
+
function fulfill(value) { resume("next", value); }
|
262
|
+
function reject(value) { resume("throw", value); }
|
263
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
264
|
+
resume(q[0][0], q[0][1]); }
|
265
|
+
}
|
266
|
+
function __asyncDelegator(o) {
|
267
|
+
var i, p;
|
268
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
269
|
+
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; }
|
270
|
+
}
|
271
|
+
function __asyncValues(o) {
|
272
|
+
if (!Symbol.asyncIterator)
|
273
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
274
|
+
var m = o[Symbol.asyncIterator], i;
|
275
|
+
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);
|
276
|
+
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); }); }; }
|
277
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
278
|
+
}
|
279
|
+
function __makeTemplateObject(cooked, raw) {
|
280
|
+
if (Object.defineProperty) {
|
281
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
282
|
+
}
|
283
|
+
else {
|
284
|
+
cooked.raw = raw;
|
285
|
+
}
|
286
|
+
return cooked;
|
287
|
+
}
|
288
|
+
;
|
289
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
290
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
291
|
+
}) : function (o, v) {
|
292
|
+
o["default"] = v;
|
293
|
+
};
|
294
|
+
function __importStar(mod) {
|
295
|
+
if (mod && mod.__esModule)
|
296
|
+
return mod;
|
297
|
+
var result = {};
|
298
|
+
if (mod != null)
|
299
|
+
for (var k in mod)
|
300
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
301
|
+
__createBinding(result, mod, k);
|
302
|
+
__setModuleDefault(result, mod);
|
303
|
+
return result;
|
304
|
+
}
|
305
|
+
function __importDefault(mod) {
|
306
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
307
|
+
}
|
308
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
309
|
+
if (kind === "a" && !f)
|
310
|
+
throw new TypeError("Private accessor was defined without a getter");
|
311
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
312
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
313
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
314
|
+
}
|
315
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
316
|
+
if (kind === "m")
|
317
|
+
throw new TypeError("Private method is not writable");
|
318
|
+
if (kind === "a" && !f)
|
319
|
+
throw new TypeError("Private accessor was defined without a setter");
|
320
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
321
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
322
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
323
|
+
}
|
470
324
|
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
325
|
+
var TuiAccordionHarness = /** @class */ (function (_super) {
|
326
|
+
__extends(TuiAccordionHarness, _super);
|
327
|
+
function TuiAccordionHarness() {
|
328
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
329
|
+
}
|
330
|
+
TuiAccordionHarness.prototype.hasRoundedCorners = function () {
|
331
|
+
return __awaiter(this, void 0, void 0, function () {
|
332
|
+
return __generator(this, function (_a) {
|
333
|
+
switch (_a.label) {
|
334
|
+
case 0: return [4 /*yield*/, this.locatorFor('.t-group')()];
|
335
|
+
case 1: return [2 /*return*/, (_a.sent()).hasClass('tui-group_rounded')];
|
336
|
+
}
|
337
|
+
});
|
338
|
+
});
|
339
|
+
};
|
340
|
+
return TuiAccordionHarness;
|
341
|
+
}(utils.TuiContentContainerComponentHarness));
|
342
|
+
TuiAccordionHarness.hostSelector = 'tui-accordion';
|
489
343
|
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
344
|
+
var TuiSvgHarness = /** @class */ (function (_super) {
|
345
|
+
__extends(TuiSvgHarness, _super);
|
346
|
+
function TuiSvgHarness() {
|
347
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
348
|
+
}
|
349
|
+
TuiSvgHarness.prototype.click = function () {
|
350
|
+
return __awaiter(this, void 0, void 0, function () {
|
351
|
+
return __generator(this, function (_c) {
|
352
|
+
switch (_c.label) {
|
353
|
+
case 0: return [4 /*yield*/, this.host()];
|
354
|
+
case 1: return [2 /*return*/, (_c.sent()).click()];
|
355
|
+
}
|
356
|
+
});
|
357
|
+
});
|
358
|
+
};
|
359
|
+
TuiSvgHarness.prototype.text = function () {
|
360
|
+
return __awaiter(this, void 0, void 0, function () {
|
361
|
+
return __generator(this, function (_c) {
|
362
|
+
switch (_c.label) {
|
363
|
+
case 0: return [4 /*yield*/, this.host()];
|
364
|
+
case 1: return [2 /*return*/, (_c.sent()).text()];
|
365
|
+
}
|
366
|
+
});
|
367
|
+
});
|
368
|
+
};
|
369
|
+
TuiSvgHarness.prototype.isInnerHTML = function () {
|
370
|
+
return __awaiter(this, void 0, void 0, function () {
|
371
|
+
return __generator(this, function (_c) {
|
372
|
+
switch (_c.label) {
|
373
|
+
case 0: return [4 /*yield*/, this.locatorForOptional('div')()];
|
374
|
+
case 1: return [2 /*return*/, !!(_c.sent())];
|
375
|
+
}
|
376
|
+
});
|
377
|
+
});
|
378
|
+
};
|
379
|
+
TuiSvgHarness.prototype.getUse = function () {
|
380
|
+
var _a, _b;
|
381
|
+
return __awaiter(this, void 0, void 0, function () {
|
382
|
+
return __generator(this, function (_c) {
|
383
|
+
switch (_c.label) {
|
384
|
+
case 0: return [4 /*yield*/, this.locatorForOptional('use')()];
|
385
|
+
case 1: return [2 /*return*/, ((_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.getAttribute('xlink:href')) !== null && _b !== void 0 ? _b : null)];
|
386
|
+
}
|
387
|
+
});
|
388
|
+
});
|
389
|
+
};
|
390
|
+
return TuiSvgHarness;
|
391
|
+
}(utils.TuiComponentHarness));
|
392
|
+
TuiSvgHarness.hostSelector = 'tui-svg';
|
539
393
|
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
394
|
+
var TuiAccordionItemHarness = /** @class */ (function (_super) {
|
395
|
+
__extends(TuiAccordionItemHarness, _super);
|
396
|
+
function TuiAccordionItemHarness() {
|
397
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
398
|
+
_this.header = _this.locatorFor('.t-header');
|
399
|
+
return _this;
|
400
|
+
}
|
401
|
+
TuiAccordionItemHarness.prototype.getTitle = function () {
|
402
|
+
return __awaiter(this, void 0, void 0, function () {
|
403
|
+
return __generator(this, function (_c) {
|
404
|
+
switch (_c.label) {
|
405
|
+
case 0: return [4 /*yield*/, this.locatorFor('.t-title')()];
|
406
|
+
case 1: return [2 /*return*/, (_c.sent()).text()];
|
407
|
+
}
|
408
|
+
});
|
409
|
+
});
|
410
|
+
};
|
411
|
+
TuiAccordionItemHarness.prototype.getContent = function () {
|
412
|
+
var _a, _b;
|
413
|
+
return __awaiter(this, void 0, void 0, function () {
|
414
|
+
return __generator(this, function (_c) {
|
415
|
+
switch (_c.label) {
|
416
|
+
case 0: return [4 /*yield*/, this.locatorForOptional('.t-content')()];
|
417
|
+
case 1: return [2 /*return*/, (_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.text()) !== null && _b !== void 0 ? _b : null];
|
418
|
+
}
|
419
|
+
});
|
420
|
+
});
|
421
|
+
};
|
422
|
+
TuiAccordionItemHarness.prototype.clickHeader = function () {
|
423
|
+
return __awaiter(this, void 0, void 0, function () {
|
424
|
+
return __generator(this, function (_c) {
|
425
|
+
switch (_c.label) {
|
426
|
+
case 0: return [4 /*yield*/, this.locatorFor('.t-header')()];
|
427
|
+
case 1: return [2 /*return*/, (_c.sent()).click()];
|
428
|
+
}
|
429
|
+
});
|
430
|
+
});
|
431
|
+
};
|
432
|
+
TuiAccordionItemHarness.prototype.getBorders = function () {
|
433
|
+
return __awaiter(this, void 0, void 0, function () {
|
434
|
+
return __generator(this, function (_c) {
|
435
|
+
switch (_c.label) {
|
436
|
+
case 0: return [4 /*yield*/, this.host()];
|
437
|
+
case 1: return [2 /*return*/, (_c.sent()).getAttribute('data-borders')];
|
438
|
+
}
|
439
|
+
});
|
440
|
+
});
|
441
|
+
};
|
442
|
+
TuiAccordionItemHarness.prototype.hasArrow = function () {
|
443
|
+
var _a;
|
444
|
+
return __awaiter(this, void 0, void 0, function () {
|
445
|
+
return __generator(this, function (_c) {
|
446
|
+
switch (_c.label) {
|
447
|
+
case 0: return [4 /*yield*/, this.locatorForOptional(TuiSvgHarness.with({ selector: '.t-icon' }))()];
|
448
|
+
case 1: return [2 /*return*/, ((_a = !!(_c.sent())) !== null && _a !== void 0 ? _a : false)];
|
449
|
+
}
|
450
|
+
});
|
451
|
+
});
|
452
|
+
};
|
453
|
+
TuiAccordionItemHarness.prototype.focus = function () {
|
454
|
+
return __awaiter(this, void 0, void 0, function () {
|
455
|
+
return __generator(this, function (_c) {
|
456
|
+
switch (_c.label) {
|
457
|
+
case 0: return [4 /*yield*/, this.header()];
|
458
|
+
case 1: return [2 /*return*/, (_c.sent()).focus()];
|
459
|
+
}
|
460
|
+
});
|
461
|
+
});
|
462
|
+
};
|
463
|
+
TuiAccordionItemHarness.prototype.sendEscKey = function () {
|
464
|
+
return __awaiter(this, void 0, void 0, function () {
|
465
|
+
return __generator(this, function (_c) {
|
466
|
+
switch (_c.label) {
|
467
|
+
case 0: return [4 /*yield*/, this.header()];
|
468
|
+
case 1: return [2 /*return*/, (_c.sent()).sendKeys(testing.TestKey.ESCAPE)];
|
469
|
+
}
|
470
|
+
});
|
471
|
+
});
|
472
|
+
};
|
473
|
+
return TuiAccordionItemHarness;
|
474
|
+
}(utils.TuiContentContainerComponentHarness));
|
475
|
+
TuiAccordionItemHarness.hostSelector = 'tui-accordion-item';
|
622
476
|
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
477
|
+
var TuiMarkerIconHarness = /** @class */ (function (_super) {
|
478
|
+
__extends(TuiMarkerIconHarness, _super);
|
479
|
+
function TuiMarkerIconHarness() {
|
480
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
481
|
+
}
|
482
|
+
return TuiMarkerIconHarness;
|
483
|
+
}(utils.TuiComponentHarness));
|
484
|
+
TuiMarkerIconHarness.hostSelector = 'tui-marker-icon';
|
631
485
|
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
486
|
+
var TuiActionHarness = /** @class */ (function (_super) {
|
487
|
+
__extends(TuiActionHarness, _super);
|
488
|
+
function TuiActionHarness() {
|
489
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
490
|
+
_this.getIconHarness = _this.locatorForOptional(TuiMarkerIconHarness);
|
491
|
+
return _this;
|
492
|
+
}
|
493
|
+
TuiActionHarness.prototype.icon = function () {
|
494
|
+
return __awaiter(this, void 0, void 0, function () {
|
495
|
+
return __generator(this, function (_a) {
|
496
|
+
return [2 /*return*/, this.getIconHarness()];
|
497
|
+
});
|
498
|
+
});
|
499
|
+
};
|
500
|
+
return TuiActionHarness;
|
501
|
+
}(utils.TuiComponentHarness));
|
502
|
+
TuiActionHarness.hostSelector = 'button[tuiAction], a[tuiAction]';
|
649
503
|
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
504
|
+
var TuiAvatarHarness = /** @class */ (function (_super) {
|
505
|
+
__extends(TuiAvatarHarness, _super);
|
506
|
+
function TuiAvatarHarness() {
|
507
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
508
|
+
}
|
509
|
+
TuiAvatarHarness.prototype.text = function () {
|
510
|
+
return __awaiter(this, void 0, void 0, function () {
|
511
|
+
return __generator(this, function (_a) {
|
512
|
+
switch (_a.label) {
|
513
|
+
case 0: return [4 /*yield*/, this.host()];
|
514
|
+
case 1: return [2 /*return*/, (_a.sent()).text()];
|
515
|
+
}
|
516
|
+
});
|
517
|
+
});
|
518
|
+
};
|
519
|
+
return TuiAvatarHarness;
|
520
|
+
}(utils.TuiComponentHarness));
|
521
|
+
TuiAvatarHarness.hostSelector = 'tui-avatar';
|
668
522
|
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
523
|
+
var TuiBadgeHarness = /** @class */ (function (_super) {
|
524
|
+
__extends(TuiBadgeHarness, _super);
|
525
|
+
function TuiBadgeHarness() {
|
526
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
527
|
+
}
|
528
|
+
TuiBadgeHarness.prototype.text = function () {
|
529
|
+
return __awaiter(this, void 0, void 0, function () {
|
530
|
+
return __generator(this, function (_a) {
|
531
|
+
switch (_a.label) {
|
532
|
+
case 0: return [4 /*yield*/, this.host()];
|
533
|
+
case 1: return [2 /*return*/, (_a.sent()).text()];
|
534
|
+
}
|
535
|
+
});
|
536
|
+
});
|
537
|
+
};
|
538
|
+
TuiBadgeHarness.prototype.padding = function () {
|
539
|
+
return __awaiter(this, void 0, void 0, function () {
|
540
|
+
return __generator(this, function (_a) {
|
541
|
+
switch (_a.label) {
|
542
|
+
case 0: return [4 /*yield*/, this.host()];
|
543
|
+
case 1: return [2 /*return*/, (_a.sent()).getAttribute('data-padding')];
|
544
|
+
}
|
545
|
+
});
|
546
|
+
});
|
547
|
+
};
|
548
|
+
TuiBadgeHarness.prototype.hasClass = function (cls) {
|
549
|
+
return __awaiter(this, void 0, void 0, function () {
|
550
|
+
return __generator(this, function (_a) {
|
551
|
+
switch (_a.label) {
|
552
|
+
case 0: return [4 /*yield*/, this.host()];
|
553
|
+
case 1: return [2 /*return*/, (_a.sent()).hasClass(cls)];
|
554
|
+
}
|
555
|
+
});
|
556
|
+
});
|
557
|
+
};
|
558
|
+
return TuiBadgeHarness;
|
559
|
+
}(utils.TuiComponentHarness));
|
560
|
+
TuiBadgeHarness.hostSelector = 'tui-badge';
|
707
561
|
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
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
|
-
|
562
|
+
exports.TuiLoaderHarness = /** @class */ (function (_super) {
|
563
|
+
__extends(TuiLoaderHarness, _super);
|
564
|
+
function TuiLoaderHarness() {
|
565
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
566
|
+
_this.loader = _this.locatorForOptional('fieldset.t-content + .t-loader');
|
567
|
+
return _this;
|
568
|
+
}
|
569
|
+
TuiLoaderHarness.prototype.isLoading = function () {
|
570
|
+
return __awaiter(this, void 0, void 0, function () {
|
571
|
+
return __generator(this, function (_b) {
|
572
|
+
switch (_b.label) {
|
573
|
+
case 0: return [4 /*yield*/, this.loader()];
|
574
|
+
case 1: return [2 /*return*/, !!(_b.sent())];
|
575
|
+
}
|
576
|
+
});
|
577
|
+
});
|
578
|
+
};
|
579
|
+
TuiLoaderHarness.prototype.getText = function () {
|
580
|
+
var _a;
|
581
|
+
return __awaiter(this, void 0, void 0, function () {
|
582
|
+
var loader;
|
583
|
+
return __generator(this, function (_b) {
|
584
|
+
switch (_b.label) {
|
585
|
+
case 0: return [4 /*yield*/, this.loader()];
|
586
|
+
case 1:
|
587
|
+
loader = _b.sent();
|
588
|
+
return [2 /*return*/, (_a = loader === null || loader === void 0 ? void 0 : loader.text()) !== null && _a !== void 0 ? _a : ''];
|
589
|
+
}
|
590
|
+
});
|
591
|
+
});
|
592
|
+
};
|
593
|
+
return TuiLoaderHarness;
|
594
|
+
}(utils.tuiHarnessWith('tui-loader')));
|
595
|
+
exports.TuiLoaderHarness = __decorate([
|
596
|
+
utils.tuiWithPredicate
|
597
|
+
], exports.TuiLoaderHarness);
|
744
598
|
|
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
|
-
|
599
|
+
var TuiButtonHarness = /** @class */ (function (_super) {
|
600
|
+
__extends(TuiButtonHarness, _super);
|
601
|
+
function TuiButtonHarness() {
|
602
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
603
|
+
_this.loader = _this.locatorForOptional(exports.TuiLoaderHarness);
|
604
|
+
return _this;
|
605
|
+
}
|
606
|
+
TuiButtonHarness.prototype.isLoading = function () {
|
607
|
+
return __awaiter(this, void 0, void 0, function () {
|
608
|
+
return __generator(this, function (_a) {
|
609
|
+
switch (_a.label) {
|
610
|
+
case 0: return [4 /*yield*/, this.loader()];
|
611
|
+
case 1: return [2 /*return*/, !!(_a.sent())];
|
612
|
+
}
|
613
|
+
});
|
614
|
+
});
|
615
|
+
};
|
616
|
+
TuiButtonHarness.prototype.hasClass = function (input) {
|
617
|
+
return __awaiter(this, void 0, void 0, function () {
|
618
|
+
return __generator(this, function (_a) {
|
619
|
+
switch (_a.label) {
|
620
|
+
case 0: return [4 /*yield*/, this.host()];
|
621
|
+
case 1: return [2 /*return*/, (_a.sent()).hasClass(input)];
|
622
|
+
}
|
623
|
+
});
|
624
|
+
});
|
625
|
+
};
|
626
|
+
return TuiButtonHarness;
|
627
|
+
}(utils.TuiComponentHarness));
|
628
|
+
TuiButtonHarness.hostSelector = 'button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]';
|
775
629
|
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
630
|
+
var TuiDayCellHarness = /** @class */ (function (_super) {
|
631
|
+
__extends(TuiDayCellHarness, _super);
|
632
|
+
function TuiDayCellHarness() {
|
633
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
634
|
+
}
|
635
|
+
TuiDayCellHarness.with = function (options) {
|
636
|
+
var _this = this;
|
637
|
+
return new testing.HarnessPredicate(TuiDayCellHarness, options).addOption('day', options.day, function (harness, text) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
638
|
+
return [2 /*return*/, testing.HarnessPredicate.stringMatches(harness.getText(), "" + text)];
|
639
|
+
}); }); });
|
640
|
+
};
|
641
|
+
TuiDayCellHarness.prototype.getText = function () {
|
642
|
+
return __awaiter(this, void 0, void 0, function () {
|
643
|
+
return __generator(this, function (_a) {
|
644
|
+
switch (_a.label) {
|
645
|
+
case 0: return [4 /*yield*/, this.locatorFor('.t-item')()];
|
646
|
+
case 1: return [2 /*return*/, (_a.sent()).text()];
|
647
|
+
}
|
648
|
+
});
|
649
|
+
});
|
650
|
+
};
|
651
|
+
TuiDayCellHarness.prototype.click = function () {
|
652
|
+
return __awaiter(this, void 0, void 0, function () {
|
653
|
+
return __generator(this, function (_a) {
|
654
|
+
switch (_a.label) {
|
655
|
+
case 0: return [4 /*yield*/, this.host()];
|
656
|
+
case 1: return [2 /*return*/, (_a.sent()).click()];
|
657
|
+
}
|
658
|
+
});
|
659
|
+
});
|
660
|
+
};
|
661
|
+
TuiDayCellHarness.prototype.hover = function () {
|
662
|
+
return __awaiter(this, void 0, void 0, function () {
|
663
|
+
return __generator(this, function (_a) {
|
664
|
+
switch (_a.label) {
|
665
|
+
case 0: return [4 /*yield*/, this.host()];
|
666
|
+
case 1: return [2 /*return*/, (_a.sent()).hover()];
|
667
|
+
}
|
668
|
+
});
|
669
|
+
});
|
670
|
+
};
|
671
|
+
return TuiDayCellHarness;
|
672
|
+
}(testing.ComponentHarness));
|
673
|
+
TuiDayCellHarness.hostSelector = '.t-cell:not(.t-cell_unavailable)';
|
674
|
+
var TuiPrimitiveCalendarHarness = /** @class */ (function (_super) {
|
675
|
+
__extends(TuiPrimitiveCalendarHarness, _super);
|
676
|
+
function TuiPrimitiveCalendarHarness() {
|
677
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
678
|
+
}
|
679
|
+
TuiPrimitiveCalendarHarness.prototype.clickDay = function (day) {
|
680
|
+
return __awaiter(this, void 0, void 0, function () {
|
681
|
+
var dayCell;
|
682
|
+
return __generator(this, function (_a) {
|
683
|
+
switch (_a.label) {
|
684
|
+
case 0: return [4 /*yield*/, this.locatorFor(TuiDayCellHarness.with({ day: day, ancestor: '#date-rows' }))()];
|
685
|
+
case 1:
|
686
|
+
dayCell = _a.sent();
|
687
|
+
return [2 /*return*/, dayCell.click()];
|
688
|
+
}
|
689
|
+
});
|
690
|
+
});
|
691
|
+
};
|
692
|
+
TuiPrimitiveCalendarHarness.prototype.hoverDay = function (day) {
|
693
|
+
return __awaiter(this, void 0, void 0, function () {
|
694
|
+
var dayCell;
|
695
|
+
return __generator(this, function (_a) {
|
696
|
+
switch (_a.label) {
|
697
|
+
case 0: return [4 /*yield*/, this.locatorFor(TuiDayCellHarness.with({ day: day, ancestor: '#date-rows' }))()];
|
698
|
+
case 1:
|
699
|
+
dayCell = _a.sent();
|
700
|
+
return [2 /*return*/, dayCell.hover()];
|
701
|
+
}
|
702
|
+
});
|
703
|
+
});
|
704
|
+
};
|
705
|
+
return TuiPrimitiveCalendarHarness;
|
706
|
+
}(utils.TuiComponentHarness));
|
707
|
+
TuiPrimitiveCalendarHarness.hostSelector = 'tui-primitive-calendar';
|
854
708
|
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
709
|
+
var TuiPrimitiveSpinButtonHarness = /** @class */ (function (_super) {
|
710
|
+
__extends(TuiPrimitiveSpinButtonHarness, _super);
|
711
|
+
function TuiPrimitiveSpinButtonHarness() {
|
712
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
713
|
+
}
|
714
|
+
TuiPrimitiveSpinButtonHarness.prototype.isLeftDisabled = function () {
|
715
|
+
return __awaiter(this, void 0, void 0, function () {
|
716
|
+
return __generator(this, function (_a) {
|
717
|
+
switch (_a.label) {
|
718
|
+
case 0: return [4 /*yield*/, this.locatorForAll(TuiButtonHarness)()];
|
719
|
+
case 1: return [2 /*return*/, (_a.sent())[0].hasClass('t-hidden')];
|
720
|
+
}
|
721
|
+
});
|
722
|
+
});
|
723
|
+
};
|
724
|
+
TuiPrimitiveSpinButtonHarness.prototype.isRightDisabled = function () {
|
725
|
+
return __awaiter(this, void 0, void 0, function () {
|
726
|
+
return __generator(this, function (_a) {
|
727
|
+
switch (_a.label) {
|
728
|
+
case 0: return [4 /*yield*/, this.locatorForAll(TuiButtonHarness)()];
|
729
|
+
case 1: return [2 /*return*/, (_a.sent())[1].hasClass('t-hidden')];
|
730
|
+
}
|
731
|
+
});
|
732
|
+
});
|
733
|
+
};
|
734
|
+
return TuiPrimitiveSpinButtonHarness;
|
735
|
+
}(utils.TuiComponentHarness));
|
736
|
+
TuiPrimitiveSpinButtonHarness.hostSelector = 'tui-primitive-spin-button';
|
883
737
|
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
738
|
+
var TuiPrimitiveYearMonthPaginationHarness = /** @class */ (function (_super) {
|
739
|
+
__extends(TuiPrimitiveYearMonthPaginationHarness, _super);
|
740
|
+
function TuiPrimitiveYearMonthPaginationHarness() {
|
741
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
742
|
+
_this.buttonLeft = _this.locatorForOptional('button[tuiIconButton]:first-child');
|
743
|
+
_this.content = _this.locatorForOptional('.t-calendar-title');
|
744
|
+
_this.buttonRight = _this.locatorForOptional('button[tuiIconButton]:last-child');
|
745
|
+
_this.button = _this.locatorForOptional('#year-btn');
|
746
|
+
_this.primitiveSpinButton = _this.locatorFor(TuiPrimitiveSpinButtonHarness);
|
747
|
+
return _this;
|
748
|
+
}
|
749
|
+
TuiPrimitiveYearMonthPaginationHarness.prototype.clickLeft = function () {
|
750
|
+
var _a;
|
751
|
+
return __awaiter(this, void 0, void 0, function () {
|
752
|
+
return __generator(this, function (_c) {
|
753
|
+
switch (_c.label) {
|
754
|
+
case 0: return [4 /*yield*/, this.buttonLeft()];
|
755
|
+
case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.click()];
|
756
|
+
}
|
757
|
+
});
|
758
|
+
});
|
759
|
+
};
|
760
|
+
TuiPrimitiveYearMonthPaginationHarness.prototype.getContentText = function () {
|
761
|
+
var _a, _b;
|
762
|
+
return __awaiter(this, void 0, void 0, function () {
|
763
|
+
return __generator(this, function (_c) {
|
764
|
+
switch (_c.label) {
|
765
|
+
case 0: return [4 /*yield*/, this.content()];
|
766
|
+
case 1: return [2 /*return*/, (_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.text()) !== null && _b !== void 0 ? _b : ''];
|
767
|
+
}
|
768
|
+
});
|
769
|
+
});
|
770
|
+
};
|
771
|
+
TuiPrimitiveYearMonthPaginationHarness.prototype.clickRight = function () {
|
772
|
+
var _a;
|
773
|
+
return __awaiter(this, void 0, void 0, function () {
|
774
|
+
return __generator(this, function (_c) {
|
775
|
+
switch (_c.label) {
|
776
|
+
case 0: return [4 /*yield*/, this.buttonRight()];
|
777
|
+
case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.click()];
|
778
|
+
}
|
779
|
+
});
|
780
|
+
});
|
781
|
+
};
|
782
|
+
TuiPrimitiveYearMonthPaginationHarness.prototype.clickYear = function () {
|
783
|
+
var _a;
|
784
|
+
return __awaiter(this, void 0, void 0, function () {
|
785
|
+
return __generator(this, function (_c) {
|
786
|
+
switch (_c.label) {
|
787
|
+
case 0: return [4 /*yield*/, this.button()];
|
788
|
+
case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.click()];
|
789
|
+
}
|
790
|
+
});
|
791
|
+
});
|
792
|
+
};
|
793
|
+
TuiPrimitiveYearMonthPaginationHarness.prototype.isLeftDisabled = function () {
|
794
|
+
return __awaiter(this, void 0, void 0, function () {
|
795
|
+
return __generator(this, function (_c) {
|
796
|
+
switch (_c.label) {
|
797
|
+
case 0: return [4 /*yield*/, this.primitiveSpinButton()];
|
798
|
+
case 1: return [2 /*return*/, (_c.sent()).isLeftDisabled()];
|
799
|
+
}
|
800
|
+
});
|
801
|
+
});
|
802
|
+
};
|
803
|
+
TuiPrimitiveYearMonthPaginationHarness.prototype.isRightDisabled = function () {
|
804
|
+
return __awaiter(this, void 0, void 0, function () {
|
805
|
+
return __generator(this, function (_c) {
|
806
|
+
switch (_c.label) {
|
807
|
+
case 0: return [4 /*yield*/, this.primitiveSpinButton()];
|
808
|
+
case 1: return [2 /*return*/, (_c.sent()).isRightDisabled()];
|
809
|
+
}
|
810
|
+
});
|
811
|
+
});
|
812
|
+
};
|
813
|
+
return TuiPrimitiveYearMonthPaginationHarness;
|
814
|
+
}(utils.TuiComponentHarness));
|
815
|
+
TuiPrimitiveYearMonthPaginationHarness.hostSelector = 'tui-primitive-year-month-pagination';
|
962
816
|
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
817
|
+
var TuiYearCellHarness = /** @class */ (function (_super) {
|
818
|
+
__extends(TuiYearCellHarness, _super);
|
819
|
+
function TuiYearCellHarness() {
|
820
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
821
|
+
}
|
822
|
+
TuiYearCellHarness.with = function (options) {
|
823
|
+
var _this = this;
|
824
|
+
return new testing.HarnessPredicate(TuiYearCellHarness, options).addOption('year', options.year, function (harness, text) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
825
|
+
return [2 /*return*/, testing.HarnessPredicate.stringMatches(harness.getText(), text)];
|
826
|
+
}); }); });
|
827
|
+
};
|
828
|
+
TuiYearCellHarness.prototype.getText = function () {
|
829
|
+
return __awaiter(this, void 0, void 0, function () {
|
830
|
+
return __generator(this, function (_a) {
|
831
|
+
switch (_a.label) {
|
832
|
+
case 0: return [4 /*yield*/, this.locatorFor('.t-item')()];
|
833
|
+
case 1: return [2 /*return*/, (_a.sent()).text()];
|
834
|
+
}
|
835
|
+
});
|
836
|
+
});
|
837
|
+
};
|
838
|
+
TuiYearCellHarness.prototype.click = function () {
|
839
|
+
return __awaiter(this, void 0, void 0, function () {
|
840
|
+
return __generator(this, function (_a) {
|
841
|
+
switch (_a.label) {
|
842
|
+
case 0: return [4 /*yield*/, this.host()];
|
843
|
+
case 1: return [2 /*return*/, (_a.sent()).click()];
|
844
|
+
}
|
845
|
+
});
|
846
|
+
});
|
847
|
+
};
|
848
|
+
return TuiYearCellHarness;
|
849
|
+
}(testing.ComponentHarness));
|
850
|
+
TuiYearCellHarness.hostSelector = '.t-cell';
|
851
|
+
var TuiPrimitiveYearPickerHarness = /** @class */ (function (_super) {
|
852
|
+
__extends(TuiPrimitiveYearPickerHarness, _super);
|
853
|
+
function TuiPrimitiveYearPickerHarness() {
|
854
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
855
|
+
}
|
856
|
+
TuiPrimitiveYearPickerHarness.prototype.clickYear = function (year) {
|
857
|
+
return __awaiter(this, void 0, void 0, function () {
|
858
|
+
var yearCell;
|
859
|
+
return __generator(this, function (_a) {
|
860
|
+
switch (_a.label) {
|
861
|
+
case 0: return [4 /*yield*/, this.locatorFor(TuiYearCellHarness.with({ year: year }))()];
|
862
|
+
case 1:
|
863
|
+
yearCell = _a.sent();
|
864
|
+
return [2 /*return*/, yearCell.click()];
|
865
|
+
}
|
866
|
+
});
|
867
|
+
});
|
868
|
+
};
|
869
|
+
return TuiPrimitiveYearPickerHarness;
|
870
|
+
}(utils.TuiComponentHarness));
|
871
|
+
TuiPrimitiveYearPickerHarness.hostSelector = 'tui-primitive-year-picker';
|
1018
872
|
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
873
|
+
var TuiCalendarHarness = /** @class */ (function (_super) {
|
874
|
+
__extends(TuiCalendarHarness, _super);
|
875
|
+
function TuiCalendarHarness() {
|
876
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
877
|
+
_this.getPrimitiveYearPickerHarness = _this.locatorForOptional(TuiPrimitiveYearPickerHarness);
|
878
|
+
_this.getPrimitiveYearMonthPaginationHarness = _this.locatorForOptional(TuiPrimitiveYearMonthPaginationHarness);
|
879
|
+
_this.getPrimitiveCalendarHarness = _this.locatorForOptional(TuiPrimitiveCalendarHarness);
|
880
|
+
return _this;
|
881
|
+
}
|
882
|
+
TuiCalendarHarness.prototype.yearPickerShown = function () {
|
883
|
+
return __awaiter(this, void 0, void 0, function () {
|
884
|
+
return __generator(this, function (_c) {
|
885
|
+
switch (_c.label) {
|
886
|
+
case 0: return [4 /*yield*/, this.getPrimitiveYearPickerHarness()];
|
887
|
+
case 1: return [2 /*return*/, !!(_c.sent())];
|
888
|
+
}
|
889
|
+
});
|
890
|
+
});
|
891
|
+
};
|
892
|
+
TuiCalendarHarness.prototype.yearMonthPaginationShown = function () {
|
893
|
+
return __awaiter(this, void 0, void 0, function () {
|
894
|
+
return __generator(this, function (_c) {
|
895
|
+
switch (_c.label) {
|
896
|
+
case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
|
897
|
+
case 1: return [2 /*return*/, !!(_c.sent())];
|
898
|
+
}
|
899
|
+
});
|
900
|
+
});
|
901
|
+
};
|
902
|
+
TuiCalendarHarness.prototype.primitiveCalendarShown = function () {
|
903
|
+
return __awaiter(this, void 0, void 0, function () {
|
904
|
+
return __generator(this, function (_c) {
|
905
|
+
switch (_c.label) {
|
906
|
+
case 0: return [4 /*yield*/, this.getPrimitiveCalendarHarness()];
|
907
|
+
case 1: return [2 /*return*/, !!(_c.sent())];
|
908
|
+
}
|
909
|
+
});
|
910
|
+
});
|
911
|
+
};
|
912
|
+
TuiCalendarHarness.prototype.isPaginationLeftDisabled = function () {
|
913
|
+
var _a, _b;
|
914
|
+
return __awaiter(this, void 0, void 0, function () {
|
915
|
+
return __generator(this, function (_c) {
|
916
|
+
switch (_c.label) {
|
917
|
+
case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
|
918
|
+
case 1: return [2 /*return*/, ((_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.isLeftDisabled()) !== null && _b !== void 0 ? _b : false)];
|
919
|
+
}
|
920
|
+
});
|
921
|
+
});
|
922
|
+
};
|
923
|
+
TuiCalendarHarness.prototype.isPaginationRightDisabled = function () {
|
924
|
+
var _a, _b;
|
925
|
+
return __awaiter(this, void 0, void 0, function () {
|
926
|
+
return __generator(this, function (_c) {
|
927
|
+
switch (_c.label) {
|
928
|
+
case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
|
929
|
+
case 1: return [2 /*return*/, ((_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.isRightDisabled()) !== null && _b !== void 0 ? _b : false)];
|
930
|
+
}
|
931
|
+
});
|
932
|
+
});
|
933
|
+
};
|
934
|
+
TuiCalendarHarness.prototype.clickMonthLeft = function () {
|
935
|
+
var _a;
|
936
|
+
return __awaiter(this, void 0, void 0, function () {
|
937
|
+
return __generator(this, function (_c) {
|
938
|
+
switch (_c.label) {
|
939
|
+
case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
|
940
|
+
case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.clickLeft()];
|
941
|
+
}
|
942
|
+
});
|
943
|
+
});
|
944
|
+
};
|
945
|
+
TuiCalendarHarness.prototype.getContentText = function () {
|
946
|
+
var _a, _b;
|
947
|
+
return __awaiter(this, void 0, void 0, function () {
|
948
|
+
return __generator(this, function (_c) {
|
949
|
+
switch (_c.label) {
|
950
|
+
case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
|
951
|
+
case 1: return [2 /*return*/, ((_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.getContentText()) !== null && _b !== void 0 ? _b : '')];
|
952
|
+
}
|
953
|
+
});
|
954
|
+
});
|
955
|
+
};
|
956
|
+
TuiCalendarHarness.prototype.clickMonthRight = function () {
|
957
|
+
var _a;
|
958
|
+
return __awaiter(this, void 0, void 0, function () {
|
959
|
+
return __generator(this, function (_c) {
|
960
|
+
switch (_c.label) {
|
961
|
+
case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
|
962
|
+
case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.clickRight()];
|
963
|
+
}
|
964
|
+
});
|
965
|
+
});
|
966
|
+
};
|
967
|
+
TuiCalendarHarness.prototype.clickPaginationYear = function () {
|
968
|
+
var _a;
|
969
|
+
return __awaiter(this, void 0, void 0, function () {
|
970
|
+
return __generator(this, function (_c) {
|
971
|
+
switch (_c.label) {
|
972
|
+
case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
|
973
|
+
case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.clickYear()];
|
974
|
+
}
|
975
|
+
});
|
976
|
+
});
|
977
|
+
};
|
978
|
+
TuiCalendarHarness.prototype.clickPickerYear = function (year) {
|
979
|
+
var _a;
|
980
|
+
return __awaiter(this, void 0, void 0, function () {
|
981
|
+
return __generator(this, function (_c) {
|
982
|
+
switch (_c.label) {
|
983
|
+
case 0: return [4 /*yield*/, this.getPrimitiveYearPickerHarness()];
|
984
|
+
case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.clickYear(year)];
|
985
|
+
}
|
986
|
+
});
|
987
|
+
});
|
988
|
+
};
|
989
|
+
TuiCalendarHarness.prototype.clickDay = function (day) {
|
990
|
+
var _a;
|
991
|
+
return __awaiter(this, void 0, void 0, function () {
|
992
|
+
return __generator(this, function (_c) {
|
993
|
+
switch (_c.label) {
|
994
|
+
case 0: return [4 /*yield*/, this.getPrimitiveCalendarHarness()];
|
995
|
+
case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.clickDay(day)];
|
996
|
+
}
|
997
|
+
});
|
998
|
+
});
|
999
|
+
};
|
1000
|
+
TuiCalendarHarness.prototype.hoverDay = function (day) {
|
1001
|
+
var _a;
|
1002
|
+
return __awaiter(this, void 0, void 0, function () {
|
1003
|
+
return __generator(this, function (_c) {
|
1004
|
+
switch (_c.label) {
|
1005
|
+
case 0: return [4 /*yield*/, this.getPrimitiveCalendarHarness()];
|
1006
|
+
case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.hoverDay(day)];
|
1007
|
+
}
|
1008
|
+
});
|
1009
|
+
});
|
1010
|
+
};
|
1011
|
+
return TuiCalendarHarness;
|
1012
|
+
}(utils.TuiComponentHarness));
|
1013
|
+
TuiCalendarHarness.hostSelector = 'tui-calendar';
|
1160
1014
|
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1015
|
+
var TuiThumbnailCardHarness = /** @class */ (function (_super) {
|
1016
|
+
__extends(TuiThumbnailCardHarness, _super);
|
1017
|
+
function TuiThumbnailCardHarness() {
|
1018
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
1019
|
+
}
|
1020
|
+
TuiThumbnailCardHarness.prototype.hasPaymentSystemLogo = function () {
|
1021
|
+
return __awaiter(this, void 0, void 0, function () {
|
1022
|
+
var tuiSvg;
|
1023
|
+
return __generator(this, function (_a) {
|
1024
|
+
switch (_a.label) {
|
1025
|
+
case 0: return [4 /*yield*/, this.locatorForOptional(TuiSvgHarness.with({ selector: '.t-payment-system-logo' }))()];
|
1026
|
+
case 1:
|
1027
|
+
tuiSvg = _a.sent();
|
1028
|
+
return [2 /*return*/, !!tuiSvg];
|
1029
|
+
}
|
1030
|
+
});
|
1031
|
+
});
|
1032
|
+
};
|
1033
|
+
TuiThumbnailCardHarness.prototype.hasBrandLogo = function () {
|
1034
|
+
return __awaiter(this, void 0, void 0, function () {
|
1035
|
+
var tuiSvg;
|
1036
|
+
return __generator(this, function (_a) {
|
1037
|
+
switch (_a.label) {
|
1038
|
+
case 0: return [4 /*yield*/, this.locatorForOptional(TuiSvgHarness.with({ selector: '.t-brand-logo' }))()];
|
1039
|
+
case 1:
|
1040
|
+
tuiSvg = _a.sent();
|
1041
|
+
return [2 /*return*/, !!tuiSvg];
|
1042
|
+
}
|
1043
|
+
});
|
1044
|
+
});
|
1045
|
+
};
|
1046
|
+
return TuiThumbnailCardHarness;
|
1047
|
+
}(utils.TuiComponentHarness));
|
1048
|
+
TuiThumbnailCardHarness.hostSelector = 'tui-thumbnail-card';
|
1049
|
+
/**
|
1050
|
+
* @deprecated use {@link TuiThumbnailCardHarness}
|
1051
|
+
*/
|
1052
|
+
var TuiCardHarness = /** @class */ (function (_super) {
|
1053
|
+
__extends(TuiCardHarness, _super);
|
1054
|
+
function TuiCardHarness() {
|
1055
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
1056
|
+
}
|
1057
|
+
return TuiCardHarness;
|
1058
|
+
}(TuiThumbnailCardHarness));
|
1059
|
+
TuiCardHarness.hostSelector = 'tui-card';
|
1206
1060
|
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1061
|
+
var TuiDialogHarness = /** @class */ (function (_super) {
|
1062
|
+
__extends(TuiDialogHarness, _super);
|
1063
|
+
function TuiDialogHarness() {
|
1064
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
1065
|
+
}
|
1066
|
+
TuiDialogHarness.prototype.getCloseButton = function () {
|
1067
|
+
return __awaiter(this, void 0, void 0, function () {
|
1068
|
+
return __generator(this, function (_a) {
|
1069
|
+
return [2 /*return*/, this.locatorForOptional(TuiButtonHarness.with({
|
1070
|
+
selector: '[automation-id=tui-dialog__close]',
|
1071
|
+
}))()];
|
1072
|
+
});
|
1073
|
+
});
|
1074
|
+
};
|
1075
|
+
return TuiDialogHarness;
|
1076
|
+
}(utils.TuiContentContainerComponentHarness));
|
1077
|
+
TuiDialogHarness.hostSelector = 'tui-dialog';
|
1224
1078
|
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1079
|
+
var TuiHostedDropdownHarness = /** @class */ (function (_super) {
|
1080
|
+
__extends(TuiHostedDropdownHarness, _super);
|
1081
|
+
function TuiHostedDropdownHarness() {
|
1082
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
1083
|
+
}
|
1084
|
+
TuiHostedDropdownHarness.prototype.sendSpaceKey = function () {
|
1085
|
+
return __awaiter(this, void 0, void 0, function () {
|
1086
|
+
return __generator(this, function (_a) {
|
1087
|
+
switch (_a.label) {
|
1088
|
+
case 0: return [4 /*yield*/, this.host()];
|
1089
|
+
case 1: return [2 /*return*/, (_a.sent()).sendKeys(' ')];
|
1090
|
+
}
|
1091
|
+
});
|
1092
|
+
});
|
1093
|
+
};
|
1094
|
+
TuiHostedDropdownHarness.prototype.sendEscKey = function () {
|
1095
|
+
return __awaiter(this, void 0, void 0, function () {
|
1096
|
+
return __generator(this, function (_a) {
|
1097
|
+
switch (_a.label) {
|
1098
|
+
case 0: return [4 /*yield*/, this.host()];
|
1099
|
+
case 1: return [2 /*return*/, (_a.sent()).sendKeys(testing.TestKey.ESCAPE)];
|
1100
|
+
}
|
1101
|
+
});
|
1102
|
+
});
|
1103
|
+
};
|
1104
|
+
return TuiHostedDropdownHarness;
|
1105
|
+
}(utils.TuiContentContainerComponentHarness));
|
1106
|
+
TuiHostedDropdownHarness.hostSelector = 'tui-hosted-dropdown';
|
1253
1107
|
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1108
|
+
var TuiIslandHarness = /** @class */ (function (_super) {
|
1109
|
+
__extends(TuiIslandHarness, _super);
|
1110
|
+
function TuiIslandHarness() {
|
1111
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
1112
|
+
}
|
1113
|
+
TuiIslandHarness.prototype.getSize = function () {
|
1114
|
+
return __awaiter(this, void 0, void 0, function () {
|
1115
|
+
return __generator(this, function (_a) {
|
1116
|
+
switch (_a.label) {
|
1117
|
+
case 0: return [4 /*yield*/, this.isSizeL()];
|
1118
|
+
case 1:
|
1119
|
+
if (_a.sent()) {
|
1120
|
+
return [2 /*return*/, 'l'];
|
1121
|
+
}
|
1122
|
+
return [4 /*yield*/, this.isSizeM()];
|
1123
|
+
case 2:
|
1124
|
+
if (_a.sent()) {
|
1125
|
+
return [2 /*return*/, 'm'];
|
1126
|
+
}
|
1127
|
+
return [2 /*return*/, 's'];
|
1128
|
+
}
|
1129
|
+
});
|
1130
|
+
});
|
1131
|
+
};
|
1132
|
+
TuiIslandHarness.prototype.getTextAlign = function () {
|
1133
|
+
return __awaiter(this, void 0, void 0, function () {
|
1134
|
+
return __generator(this, function (_a) {
|
1135
|
+
switch (_a.label) {
|
1136
|
+
case 0: return [4 /*yield*/, this.isTextAlignLeft()];
|
1137
|
+
case 1:
|
1138
|
+
if (_a.sent()) {
|
1139
|
+
return [2 /*return*/, 'left'];
|
1140
|
+
}
|
1141
|
+
return [4 /*yield*/, this.isTextAlignCenter()];
|
1142
|
+
case 2:
|
1143
|
+
if (_a.sent()) {
|
1144
|
+
return [2 /*return*/, 'center'];
|
1145
|
+
}
|
1146
|
+
return [2 /*return*/, 'right'];
|
1147
|
+
}
|
1148
|
+
});
|
1149
|
+
});
|
1150
|
+
};
|
1151
|
+
TuiIslandHarness.prototype.isHoverable = function () {
|
1152
|
+
return __awaiter(this, void 0, void 0, function () {
|
1153
|
+
return __generator(this, function (_a) {
|
1154
|
+
switch (_a.label) {
|
1155
|
+
case 0: return [4 /*yield*/, this.host()];
|
1156
|
+
case 1: return [2 /*return*/, (_a.sent()).hasClass('tui-island_hoverable')];
|
1157
|
+
}
|
1158
|
+
});
|
1159
|
+
});
|
1160
|
+
};
|
1161
|
+
TuiIslandHarness.prototype.isTextAlignLeft = function () {
|
1162
|
+
return __awaiter(this, void 0, void 0, function () {
|
1163
|
+
return __generator(this, function (_a) {
|
1164
|
+
switch (_a.label) {
|
1165
|
+
case 0: return [4 /*yield*/, this.host()];
|
1166
|
+
case 1: return [2 /*return*/, (_a.sent()).hasClass('tui-island_text-align_left')];
|
1167
|
+
}
|
1168
|
+
});
|
1169
|
+
});
|
1170
|
+
};
|
1171
|
+
TuiIslandHarness.prototype.isTextAlignCenter = function () {
|
1172
|
+
return __awaiter(this, void 0, void 0, function () {
|
1173
|
+
return __generator(this, function (_a) {
|
1174
|
+
switch (_a.label) {
|
1175
|
+
case 0: return [4 /*yield*/, this.host()];
|
1176
|
+
case 1: return [2 /*return*/, (_a.sent()).hasClass('tui-island_text-align_center')];
|
1177
|
+
}
|
1178
|
+
});
|
1179
|
+
});
|
1180
|
+
};
|
1181
|
+
TuiIslandHarness.prototype.isSizeM = function () {
|
1182
|
+
return __awaiter(this, void 0, void 0, function () {
|
1183
|
+
return __generator(this, function (_a) {
|
1184
|
+
switch (_a.label) {
|
1185
|
+
case 0: return [4 /*yield*/, this.host()];
|
1186
|
+
case 1: return [2 /*return*/, (_a.sent()).hasClass('tui-island_size_m')];
|
1187
|
+
}
|
1188
|
+
});
|
1189
|
+
});
|
1190
|
+
};
|
1191
|
+
TuiIslandHarness.prototype.isSizeL = function () {
|
1192
|
+
return __awaiter(this, void 0, void 0, function () {
|
1193
|
+
return __generator(this, function (_a) {
|
1194
|
+
switch (_a.label) {
|
1195
|
+
case 0: return [4 /*yield*/, this.host()];
|
1196
|
+
case 1: return [2 /*return*/, (_a.sent()).hasClass('tui-island_size_l')];
|
1197
|
+
}
|
1198
|
+
});
|
1199
|
+
});
|
1200
|
+
};
|
1201
|
+
return TuiIslandHarness;
|
1202
|
+
}(utils.TuiComponentHarness));
|
1203
|
+
TuiIslandHarness.hostSelector = 'tui-island';
|
1350
1204
|
|
1351
|
-
|
1352
|
-
|
1353
|
-
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
1205
|
+
var TuiPrimitiveTextfieldHarness = /** @class */ (function (_super) {
|
1206
|
+
__extends(TuiPrimitiveTextfieldHarness, _super);
|
1207
|
+
function TuiPrimitiveTextfieldHarness() {
|
1208
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
1209
|
+
}
|
1210
|
+
TuiPrimitiveTextfieldHarness.prototype.valueDecorationText = function () {
|
1211
|
+
return __awaiter(this, void 0, void 0, function () {
|
1212
|
+
return __generator(this, function (_a) {
|
1213
|
+
switch (_a.label) {
|
1214
|
+
case 0: return [4 /*yield*/, this.locatorFor('tui-value-decoration')()];
|
1215
|
+
case 1: return [2 /*return*/, (_a.sent()).text()];
|
1216
|
+
}
|
1217
|
+
});
|
1218
|
+
});
|
1219
|
+
};
|
1220
|
+
TuiPrimitiveTextfieldHarness.prototype.inputPlaceholder = function () {
|
1221
|
+
return __awaiter(this, void 0, void 0, function () {
|
1222
|
+
return __generator(this, function (_a) {
|
1223
|
+
switch (_a.label) {
|
1224
|
+
case 0: return [4 /*yield*/, this.locatorFor('input')()];
|
1225
|
+
case 1: return [2 /*return*/, (_a.sent()).getProperty('placeholder')];
|
1226
|
+
}
|
1227
|
+
});
|
1228
|
+
});
|
1229
|
+
};
|
1230
|
+
return TuiPrimitiveTextfieldHarness;
|
1231
|
+
}(utils.TuiComponentHarness));
|
1232
|
+
TuiPrimitiveTextfieldHarness.hostSelector = 'tui-primitive-textfield';
|
1379
1233
|
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1234
|
+
var TuiSelectHarness = /** @class */ (function (_super) {
|
1235
|
+
__extends(TuiSelectHarness, _super);
|
1236
|
+
function TuiSelectHarness() {
|
1237
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
1238
|
+
_this.hostedDropdown = _this.locatorFor(TuiHostedDropdownHarness);
|
1239
|
+
return _this;
|
1240
|
+
}
|
1241
|
+
TuiSelectHarness.prototype.sendSpaceKey = function () {
|
1242
|
+
return __awaiter(this, void 0, void 0, function () {
|
1243
|
+
return __generator(this, function (_a) {
|
1244
|
+
switch (_a.label) {
|
1245
|
+
case 0: return [4 /*yield*/, this.hostedDropdown()];
|
1246
|
+
case 1: return [2 /*return*/, (_a.sent()).sendSpaceKey()];
|
1247
|
+
}
|
1248
|
+
});
|
1249
|
+
});
|
1250
|
+
};
|
1251
|
+
TuiSelectHarness.prototype.sendEscKey = function () {
|
1252
|
+
return __awaiter(this, void 0, void 0, function () {
|
1253
|
+
return __generator(this, function (_a) {
|
1254
|
+
switch (_a.label) {
|
1255
|
+
case 0: return [4 /*yield*/, this.hostedDropdown()];
|
1256
|
+
case 1: return [2 /*return*/, (_a.sent()).sendEscKey()];
|
1257
|
+
}
|
1258
|
+
});
|
1259
|
+
});
|
1260
|
+
};
|
1261
|
+
return TuiSelectHarness;
|
1262
|
+
}(utils.TuiComponentHarness));
|
1263
|
+
TuiSelectHarness.hostSelector = 'tui-select';
|
1410
1264
|
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1414
|
-
|
1415
|
-
|
1416
|
-
|
1417
|
-
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1265
|
+
var TuiTagHarness = /** @class */ (function (_super) {
|
1266
|
+
__extends(TuiTagHarness, _super);
|
1267
|
+
function TuiTagHarness() {
|
1268
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
1269
|
+
}
|
1270
|
+
TuiTagHarness.prototype.getCrossIcon = function () {
|
1271
|
+
return __awaiter(this, void 0, void 0, function () {
|
1272
|
+
return __generator(this, function (_a) {
|
1273
|
+
return [2 /*return*/, this.locatorForOptional(TuiSvgHarness.with({ selector: '.t-icon' }))()];
|
1274
|
+
});
|
1275
|
+
});
|
1276
|
+
};
|
1277
|
+
TuiTagHarness.prototype.getBackgroundColor = function () {
|
1278
|
+
return __awaiter(this, void 0, void 0, function () {
|
1279
|
+
var div;
|
1280
|
+
return __generator(this, function (_a) {
|
1281
|
+
switch (_a.label) {
|
1282
|
+
case 0: return [4 /*yield*/, this.locatorFor(':first-child')()];
|
1283
|
+
case 1:
|
1284
|
+
div = _a.sent();
|
1285
|
+
return [2 /*return*/, div.getCssValue('background-color')];
|
1286
|
+
}
|
1287
|
+
});
|
1288
|
+
});
|
1289
|
+
};
|
1290
|
+
TuiTagHarness.prototype.getInput = function () {
|
1291
|
+
return __awaiter(this, void 0, void 0, function () {
|
1292
|
+
return __generator(this, function (_a) {
|
1293
|
+
return [2 /*return*/, this.locatorForOptional('input.t-edit')()];
|
1294
|
+
});
|
1295
|
+
});
|
1296
|
+
};
|
1297
|
+
TuiTagHarness.prototype.sendEnter = function () {
|
1298
|
+
return __awaiter(this, void 0, void 0, function () {
|
1299
|
+
return __generator(this, function (_a) {
|
1300
|
+
switch (_a.label) {
|
1301
|
+
case 0: return [4 /*yield*/, this.host()];
|
1302
|
+
case 1: return [2 /*return*/, (_a.sent()).sendKeys(testing.TestKey.ENTER)];
|
1303
|
+
}
|
1304
|
+
});
|
1305
|
+
});
|
1306
|
+
};
|
1307
|
+
TuiTagHarness.prototype.sendBackspace = function () {
|
1308
|
+
return __awaiter(this, void 0, void 0, function () {
|
1309
|
+
return __generator(this, function (_a) {
|
1310
|
+
switch (_a.label) {
|
1311
|
+
case 0: return [4 /*yield*/, this.host()];
|
1312
|
+
case 1: return [2 /*return*/, (_a.sent()).sendKeys(testing.TestKey.BACKSPACE)];
|
1313
|
+
}
|
1314
|
+
});
|
1315
|
+
});
|
1316
|
+
};
|
1317
|
+
TuiTagHarness.prototype.sendDelete = function () {
|
1318
|
+
return __awaiter(this, void 0, void 0, function () {
|
1319
|
+
return __generator(this, function (_a) {
|
1320
|
+
switch (_a.label) {
|
1321
|
+
case 0: return [4 /*yield*/, this.host()];
|
1322
|
+
case 1: return [2 /*return*/, (_a.sent()).sendKeys(testing.TestKey.DELETE)];
|
1323
|
+
}
|
1324
|
+
});
|
1325
|
+
});
|
1326
|
+
};
|
1327
|
+
return TuiTagHarness;
|
1328
|
+
}(utils.TuiComponentHarness));
|
1329
|
+
TuiTagHarness.hostSelector = 'tui-tag';
|
1476
1330
|
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1331
|
+
var TuiTextfieldHarness = /** @class */ (function (_super) {
|
1332
|
+
__extends(TuiTextfieldHarness, _super);
|
1333
|
+
function TuiTextfieldHarness() {
|
1334
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
1335
|
+
}
|
1336
|
+
TuiTextfieldHarness.prototype.sendSpaceKey = function () {
|
1337
|
+
return __awaiter(this, void 0, void 0, function () {
|
1338
|
+
return __generator(this, function (_a) {
|
1339
|
+
switch (_a.label) {
|
1340
|
+
case 0: return [4 /*yield*/, this.host()];
|
1341
|
+
case 1: return [2 /*return*/, (_a.sent()).sendKeys(' ')];
|
1342
|
+
}
|
1343
|
+
});
|
1344
|
+
});
|
1345
|
+
};
|
1346
|
+
return TuiTextfieldHarness;
|
1347
|
+
}(utils.TuiComponentHarness));
|
1348
|
+
TuiTextfieldHarness.hostSelector = 'input[tuiTextfield], textarea[tuiTextfield]';
|
1495
1349
|
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1350
|
+
var TuiToggleHarness = /** @class */ (function (_super) {
|
1351
|
+
__extends(TuiToggleHarness, _super);
|
1352
|
+
function TuiToggleHarness() {
|
1353
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
1354
|
+
_this.input = _this.locatorFor('input');
|
1355
|
+
return _this;
|
1356
|
+
}
|
1357
|
+
TuiToggleHarness.prototype.toggle = function () {
|
1358
|
+
return __awaiter(this, void 0, void 0, function () {
|
1359
|
+
return __generator(this, function (_a) {
|
1360
|
+
switch (_a.label) {
|
1361
|
+
case 0: return [4 /*yield*/, this.input()];
|
1362
|
+
case 1: return [2 /*return*/, (_a.sent()).click()];
|
1363
|
+
}
|
1364
|
+
});
|
1365
|
+
});
|
1366
|
+
};
|
1367
|
+
TuiToggleHarness.prototype.getIcons = function () {
|
1368
|
+
return __awaiter(this, void 0, void 0, function () {
|
1369
|
+
return __generator(this, function (_a) {
|
1370
|
+
return [2 /*return*/, this.locatorForAll(TuiSvgHarness)()];
|
1371
|
+
});
|
1372
|
+
});
|
1373
|
+
};
|
1374
|
+
return TuiToggleHarness;
|
1375
|
+
}(utils.TuiComponentHarness));
|
1376
|
+
TuiToggleHarness.hostSelector = 'tui-toggle';
|
1523
1377
|
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1378
|
+
/**
|
1379
|
+
* Generated bundle index. Do not edit.
|
1380
|
+
*/
|
1527
1381
|
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1382
|
+
exports.TuiAccordionHarness = TuiAccordionHarness;
|
1383
|
+
exports.TuiAccordionItemHarness = TuiAccordionItemHarness;
|
1384
|
+
exports.TuiActionHarness = TuiActionHarness;
|
1385
|
+
exports.TuiAvatarHarness = TuiAvatarHarness;
|
1386
|
+
exports.TuiBadgeHarness = TuiBadgeHarness;
|
1387
|
+
exports.TuiButtonHarness = TuiButtonHarness;
|
1388
|
+
exports.TuiCalendarHarness = TuiCalendarHarness;
|
1389
|
+
exports.TuiCardHarness = TuiCardHarness;
|
1390
|
+
exports.TuiDialogHarness = TuiDialogHarness;
|
1391
|
+
exports.TuiHostedDropdownHarness = TuiHostedDropdownHarness;
|
1392
|
+
exports.TuiIslandHarness = TuiIslandHarness;
|
1393
|
+
exports.TuiMarkerIconHarness = TuiMarkerIconHarness;
|
1394
|
+
exports.TuiPrimitiveCalendarHarness = TuiPrimitiveCalendarHarness;
|
1395
|
+
exports.TuiPrimitiveSpinButtonHarness = TuiPrimitiveSpinButtonHarness;
|
1396
|
+
exports.TuiPrimitiveTextfieldHarness = TuiPrimitiveTextfieldHarness;
|
1397
|
+
exports.TuiSelectHarness = TuiSelectHarness;
|
1398
|
+
exports.TuiSvgHarness = TuiSvgHarness;
|
1399
|
+
exports.TuiTagHarness = TuiTagHarness;
|
1400
|
+
exports.TuiTextfieldHarness = TuiTextfieldHarness;
|
1401
|
+
exports.TuiThumbnailCardHarness = TuiThumbnailCardHarness;
|
1402
|
+
exports.TuiToggleHarness = TuiToggleHarness;
|
1549
1403
|
|
1550
|
-
|
1404
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
1551
1405
|
|
1552
1406
|
}));
|
1553
1407
|
//# sourceMappingURL=taiga-ui-testing-core.umd.js.map
|