@taiga-ui/testing 3.70.0-canary.e02fd1e → 3.71.0-canary.8057812

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.
@@ -1,1553 +1,1407 @@
1
1
  (function (global, factory) {
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));
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
- Copyright (c) Microsoft Corporation.
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
9
 
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
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
- 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, SuppressedError, Symbol */
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 __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
75
- function accept(f) { if (f !== void 0 && typeof f !== "function")
76
- throw new TypeError("Function expected"); return f; }
77
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
78
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
79
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
80
- var _, done = false;
81
- for (var i = decorators.length - 1; i >= 0; i--) {
82
- var context = {};
83
- for (var p in contextIn)
84
- context[p] = p === "access" ? {} : contextIn[p];
85
- for (var p in contextIn.access)
86
- context.access[p] = contextIn.access[p];
87
- context.addInitializer = function (f) { if (done)
88
- throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
89
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
90
- if (kind === "accessor") {
91
- if (result === void 0)
92
- continue;
93
- if (result === null || typeof result !== "object")
94
- throw new TypeError("Object expected");
95
- if (_ = accept(result.get))
96
- descriptor.get = _;
97
- if (_ = accept(result.set))
98
- descriptor.set = _;
99
- if (_ = accept(result.init))
100
- initializers.unshift(_);
101
- }
102
- else if (_ = accept(result)) {
103
- if (kind === "field")
104
- initializers.unshift(_);
105
- else
106
- descriptor[key] = _;
107
- }
108
- }
109
- if (target)
110
- Object.defineProperty(target, contextIn.name, descriptor);
111
- done = true;
112
- }
113
- ;
114
- function __runInitializers(thisArg, initializers, value) {
115
- var useValue = arguments.length > 2;
116
- for (var i = 0; i < initializers.length; i++) {
117
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
118
- }
119
- return useValue ? value : void 0;
120
- }
121
- ;
122
- function __propKey(x) {
123
- return typeof x === "symbol" ? x : "".concat(x);
124
- }
125
- ;
126
- function __setFunctionName(f, name, prefix) {
127
- if (typeof name === "symbol")
128
- name = name.description ? "[".concat(name.description, "]") : "";
129
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
130
- }
131
- ;
132
- function __metadata(metadataKey, metadataValue) {
133
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
134
- return Reflect.metadata(metadataKey, metadataValue);
135
- }
136
- function __awaiter(thisArg, _arguments, P, generator) {
137
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
138
- return new (P || (P = Promise))(function (resolve, reject) {
139
- function fulfilled(value) { try {
140
- step(generator.next(value));
141
- }
142
- catch (e) {
143
- reject(e);
144
- } }
145
- function rejected(value) { try {
146
- step(generator["throw"](value));
147
- }
148
- catch (e) {
149
- reject(e);
150
- } }
151
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
152
- step((generator = generator.apply(thisArg, _arguments || [])).next());
153
- });
154
- }
155
- function __generator(thisArg, body) {
156
- var _ = { label: 0, sent: function () { if (t[0] & 1)
157
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
158
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
159
- function verb(n) { return function (v) { return step([n, v]); }; }
160
- function step(op) {
161
- if (f)
162
- throw new TypeError("Generator is already executing.");
163
- while (g && (g = 0, op[0] && (_ = 0)), _)
164
- try {
165
- 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)
166
- return t;
167
- if (y = 0, t)
168
- op = [op[0] & 2, t.value];
169
- switch (op[0]) {
170
- case 0:
171
- case 1:
172
- t = op;
173
- break;
174
- case 4:
175
- _.label++;
176
- return { value: op[1], done: false };
177
- case 5:
178
- _.label++;
179
- y = op[1];
180
- op = [0];
181
- continue;
182
- case 7:
183
- op = _.ops.pop();
184
- _.trys.pop();
185
- continue;
186
- default:
187
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
188
- _ = 0;
189
- continue;
190
- }
191
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
192
- _.label = op[1];
193
- break;
194
- }
195
- if (op[0] === 6 && _.label < t[1]) {
196
- _.label = t[1];
197
- t = op;
198
- break;
199
- }
200
- if (t && _.label < t[2]) {
201
- _.label = t[2];
202
- _.ops.push(op);
203
- break;
204
- }
205
- if (t[2])
206
- _.ops.pop();
207
- _.trys.pop();
208
- continue;
209
- }
210
- op = body.call(thisArg, _);
211
- }
212
- catch (e) {
213
- op = [6, e];
214
- y = 0;
215
- }
216
- finally {
217
- f = t = 0;
218
- }
219
- if (op[0] & 5)
220
- throw op[1];
221
- return { value: op[0] ? op[1] : void 0, done: true };
222
- }
223
- }
224
- var __createBinding = Object.create ? (function (o, m, k, k2) {
225
- if (k2 === undefined)
226
- k2 = k;
227
- var desc = Object.getOwnPropertyDescriptor(m, k);
228
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
229
- desc = { enumerable: true, get: function () { return m[k]; } };
230
- }
231
- Object.defineProperty(o, k2, desc);
232
- }) : (function (o, m, k, k2) {
233
- if (k2 === undefined)
234
- k2 = k;
235
- o[k2] = m[k];
236
- });
237
- function __exportStar(m, o) {
238
- for (var p in m)
239
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
240
- __createBinding(o, m, p);
241
- }
242
- function __values(o) {
243
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
244
- if (m)
245
- return m.call(o);
246
- if (o && typeof o.length === "number")
247
- return {
248
- next: function () {
249
- if (o && i >= o.length)
250
- o = void 0;
251
- return { value: o && o[i++], done: !o };
252
- }
253
- };
254
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
255
- }
256
- function __read(o, n) {
257
- var m = typeof Symbol === "function" && o[Symbol.iterator];
258
- if (!m)
259
- return o;
260
- var i = m.call(o), r, ar = [], e;
261
- try {
262
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
263
- ar.push(r.value);
264
- }
265
- catch (error) {
266
- e = { error: error };
267
- }
268
- finally {
269
- try {
270
- if (r && !r.done && (m = i["return"]))
271
- m.call(i);
272
- }
273
- finally {
274
- if (e)
275
- throw e.error;
276
- }
277
- }
278
- return ar;
279
- }
280
- /** @deprecated */
281
- function __spread() {
282
- for (var ar = [], i = 0; i < arguments.length; i++)
283
- ar = ar.concat(__read(arguments[i]));
284
- return ar;
285
- }
286
- /** @deprecated */
287
- function __spreadArrays() {
288
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
289
- s += arguments[i].length;
290
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
291
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
292
- r[k] = a[j];
293
- return r;
294
- }
295
- function __spreadArray(to, from, pack) {
296
- if (pack || arguments.length === 2)
297
- for (var i = 0, l = from.length, ar; i < l; i++) {
298
- if (ar || !(i in from)) {
299
- if (!ar)
300
- ar = Array.prototype.slice.call(from, 0, i);
301
- ar[i] = from[i];
302
- }
303
- }
304
- return to.concat(ar || Array.prototype.slice.call(from));
305
- }
306
- function __await(v) {
307
- return this instanceof __await ? (this.v = v, this) : new __await(v);
308
- }
309
- function __asyncGenerator(thisArg, _arguments, generator) {
310
- if (!Symbol.asyncIterator)
311
- throw new TypeError("Symbol.asyncIterator is not defined.");
312
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
313
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
314
- function verb(n) { if (g[n])
315
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
316
- function resume(n, v) { try {
317
- step(g[n](v));
318
- }
319
- catch (e) {
320
- settle(q[0][3], e);
321
- } }
322
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
323
- function fulfill(value) { resume("next", value); }
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
- var TuiAccordionHarness = /** @class */ (function (_super) {
472
- __extends(TuiAccordionHarness, _super);
473
- function TuiAccordionHarness() {
474
- return _super !== null && _super.apply(this, arguments) || this;
475
- }
476
- TuiAccordionHarness.prototype.hasRoundedCorners = function () {
477
- return __awaiter(this, void 0, void 0, function () {
478
- return __generator(this, function (_a) {
479
- switch (_a.label) {
480
- case 0: return [4 /*yield*/, this.locatorFor('.t-group')()];
481
- case 1: return [2 /*return*/, (_a.sent()).hasClass('tui-group_rounded')];
482
- }
483
- });
484
- });
485
- };
486
- return TuiAccordionHarness;
487
- }(utils.TuiContentContainerComponentHarness));
488
- TuiAccordionHarness.hostSelector = 'tui-accordion';
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
- var TuiSvgHarness = /** @class */ (function (_super) {
491
- __extends(TuiSvgHarness, _super);
492
- function TuiSvgHarness() {
493
- return _super !== null && _super.apply(this, arguments) || this;
494
- }
495
- TuiSvgHarness.prototype.click = function () {
496
- return __awaiter(this, void 0, void 0, function () {
497
- return __generator(this, function (_c) {
498
- switch (_c.label) {
499
- case 0: return [4 /*yield*/, this.host()];
500
- case 1: return [2 /*return*/, (_c.sent()).click()];
501
- }
502
- });
503
- });
504
- };
505
- TuiSvgHarness.prototype.text = function () {
506
- return __awaiter(this, void 0, void 0, function () {
507
- return __generator(this, function (_c) {
508
- switch (_c.label) {
509
- case 0: return [4 /*yield*/, this.host()];
510
- case 1: return [2 /*return*/, (_c.sent()).text()];
511
- }
512
- });
513
- });
514
- };
515
- TuiSvgHarness.prototype.isInnerHTML = function () {
516
- return __awaiter(this, void 0, void 0, function () {
517
- return __generator(this, function (_c) {
518
- switch (_c.label) {
519
- case 0: return [4 /*yield*/, this.locatorForOptional('div')()];
520
- case 1: return [2 /*return*/, !!(_c.sent())];
521
- }
522
- });
523
- });
524
- };
525
- TuiSvgHarness.prototype.getUse = function () {
526
- var _a, _b;
527
- return __awaiter(this, void 0, void 0, function () {
528
- return __generator(this, function (_c) {
529
- switch (_c.label) {
530
- case 0: return [4 /*yield*/, this.locatorForOptional('use')()];
531
- 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)];
532
- }
533
- });
534
- });
535
- };
536
- return TuiSvgHarness;
537
- }(utils.TuiComponentHarness));
538
- TuiSvgHarness.hostSelector = 'tui-svg';
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
- var TuiAccordionItemHarness = /** @class */ (function (_super) {
541
- __extends(TuiAccordionItemHarness, _super);
542
- function TuiAccordionItemHarness() {
543
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
544
- _this.header = _this.locatorFor('.t-header');
545
- return _this;
546
- }
547
- TuiAccordionItemHarness.prototype.getTitle = function () {
548
- return __awaiter(this, void 0, void 0, function () {
549
- return __generator(this, function (_c) {
550
- switch (_c.label) {
551
- case 0: return [4 /*yield*/, this.locatorFor('.t-title')()];
552
- case 1: return [2 /*return*/, (_c.sent()).text()];
553
- }
554
- });
555
- });
556
- };
557
- TuiAccordionItemHarness.prototype.getContent = function () {
558
- var _a, _b;
559
- return __awaiter(this, void 0, void 0, function () {
560
- return __generator(this, function (_c) {
561
- switch (_c.label) {
562
- case 0: return [4 /*yield*/, this.locatorForOptional('.t-content')()];
563
- case 1: return [2 /*return*/, (_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.text()) !== null && _b !== void 0 ? _b : null];
564
- }
565
- });
566
- });
567
- };
568
- TuiAccordionItemHarness.prototype.clickHeader = function () {
569
- return __awaiter(this, void 0, void 0, function () {
570
- return __generator(this, function (_c) {
571
- switch (_c.label) {
572
- case 0: return [4 /*yield*/, this.locatorFor('.t-header')()];
573
- case 1: return [2 /*return*/, (_c.sent()).click()];
574
- }
575
- });
576
- });
577
- };
578
- TuiAccordionItemHarness.prototype.getBorders = function () {
579
- return __awaiter(this, void 0, void 0, function () {
580
- return __generator(this, function (_c) {
581
- switch (_c.label) {
582
- case 0: return [4 /*yield*/, this.host()];
583
- case 1: return [2 /*return*/, (_c.sent()).getAttribute('data-borders')];
584
- }
585
- });
586
- });
587
- };
588
- TuiAccordionItemHarness.prototype.hasArrow = function () {
589
- var _a;
590
- return __awaiter(this, void 0, void 0, function () {
591
- return __generator(this, function (_c) {
592
- switch (_c.label) {
593
- case 0: return [4 /*yield*/, this.locatorForOptional(TuiSvgHarness.with({ selector: '.t-icon' }))()];
594
- case 1: return [2 /*return*/, ((_a = !!(_c.sent())) !== null && _a !== void 0 ? _a : false)];
595
- }
596
- });
597
- });
598
- };
599
- TuiAccordionItemHarness.prototype.focus = function () {
600
- return __awaiter(this, void 0, void 0, function () {
601
- return __generator(this, function (_c) {
602
- switch (_c.label) {
603
- case 0: return [4 /*yield*/, this.header()];
604
- case 1: return [2 /*return*/, (_c.sent()).focus()];
605
- }
606
- });
607
- });
608
- };
609
- TuiAccordionItemHarness.prototype.sendEscKey = function () {
610
- return __awaiter(this, void 0, void 0, function () {
611
- return __generator(this, function (_c) {
612
- switch (_c.label) {
613
- case 0: return [4 /*yield*/, this.header()];
614
- case 1: return [2 /*return*/, (_c.sent()).sendKeys(testing.TestKey.ESCAPE)];
615
- }
616
- });
617
- });
618
- };
619
- return TuiAccordionItemHarness;
620
- }(utils.TuiContentContainerComponentHarness));
621
- TuiAccordionItemHarness.hostSelector = 'tui-accordion-item';
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
- var TuiMarkerIconHarness = /** @class */ (function (_super) {
624
- __extends(TuiMarkerIconHarness, _super);
625
- function TuiMarkerIconHarness() {
626
- return _super !== null && _super.apply(this, arguments) || this;
627
- }
628
- return TuiMarkerIconHarness;
629
- }(utils.TuiComponentHarness));
630
- TuiMarkerIconHarness.hostSelector = 'tui-marker-icon';
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
- var TuiActionHarness = /** @class */ (function (_super) {
633
- __extends(TuiActionHarness, _super);
634
- function TuiActionHarness() {
635
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
636
- _this.getIconHarness = _this.locatorForOptional(TuiMarkerIconHarness);
637
- return _this;
638
- }
639
- TuiActionHarness.prototype.icon = function () {
640
- return __awaiter(this, void 0, void 0, function () {
641
- return __generator(this, function (_a) {
642
- return [2 /*return*/, this.getIconHarness()];
643
- });
644
- });
645
- };
646
- return TuiActionHarness;
647
- }(utils.TuiComponentHarness));
648
- TuiActionHarness.hostSelector = 'button[tuiAction], a[tuiAction]';
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
- var TuiAvatarHarness = /** @class */ (function (_super) {
651
- __extends(TuiAvatarHarness, _super);
652
- function TuiAvatarHarness() {
653
- return _super !== null && _super.apply(this, arguments) || this;
654
- }
655
- TuiAvatarHarness.prototype.text = function () {
656
- return __awaiter(this, void 0, void 0, function () {
657
- return __generator(this, function (_a) {
658
- switch (_a.label) {
659
- case 0: return [4 /*yield*/, this.host()];
660
- case 1: return [2 /*return*/, (_a.sent()).text()];
661
- }
662
- });
663
- });
664
- };
665
- return TuiAvatarHarness;
666
- }(utils.TuiComponentHarness));
667
- TuiAvatarHarness.hostSelector = 'tui-avatar';
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
- var TuiBadgeHarness = /** @class */ (function (_super) {
670
- __extends(TuiBadgeHarness, _super);
671
- function TuiBadgeHarness() {
672
- return _super !== null && _super.apply(this, arguments) || this;
673
- }
674
- TuiBadgeHarness.prototype.text = function () {
675
- return __awaiter(this, void 0, void 0, function () {
676
- return __generator(this, function (_a) {
677
- switch (_a.label) {
678
- case 0: return [4 /*yield*/, this.host()];
679
- case 1: return [2 /*return*/, (_a.sent()).text()];
680
- }
681
- });
682
- });
683
- };
684
- TuiBadgeHarness.prototype.padding = function () {
685
- return __awaiter(this, void 0, void 0, function () {
686
- return __generator(this, function (_a) {
687
- switch (_a.label) {
688
- case 0: return [4 /*yield*/, this.host()];
689
- case 1: return [2 /*return*/, (_a.sent()).getAttribute('data-padding')];
690
- }
691
- });
692
- });
693
- };
694
- TuiBadgeHarness.prototype.hasClass = function (cls) {
695
- return __awaiter(this, void 0, void 0, function () {
696
- return __generator(this, function (_a) {
697
- switch (_a.label) {
698
- case 0: return [4 /*yield*/, this.host()];
699
- case 1: return [2 /*return*/, (_a.sent()).hasClass(cls)];
700
- }
701
- });
702
- });
703
- };
704
- return TuiBadgeHarness;
705
- }(utils.TuiComponentHarness));
706
- TuiBadgeHarness.hostSelector = 'tui-badge';
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
- exports.TuiLoaderHarness = /** @class */ (function (_super) {
709
- __extends(TuiLoaderHarness, _super);
710
- function TuiLoaderHarness() {
711
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
712
- _this.loader = _this.locatorForOptional('fieldset.t-content + .t-loader');
713
- return _this;
714
- }
715
- TuiLoaderHarness.prototype.isLoading = function () {
716
- return __awaiter(this, void 0, void 0, function () {
717
- return __generator(this, function (_b) {
718
- switch (_b.label) {
719
- case 0: return [4 /*yield*/, this.loader()];
720
- case 1: return [2 /*return*/, !!(_b.sent())];
721
- }
722
- });
723
- });
724
- };
725
- TuiLoaderHarness.prototype.getText = function () {
726
- var _a;
727
- return __awaiter(this, void 0, void 0, function () {
728
- var loader;
729
- return __generator(this, function (_b) {
730
- switch (_b.label) {
731
- case 0: return [4 /*yield*/, this.loader()];
732
- case 1:
733
- loader = _b.sent();
734
- return [2 /*return*/, (_a = loader === null || loader === void 0 ? void 0 : loader.text()) !== null && _a !== void 0 ? _a : ''];
735
- }
736
- });
737
- });
738
- };
739
- return TuiLoaderHarness;
740
- }(utils.tuiHarnessWith('tui-loader')));
741
- exports.TuiLoaderHarness = __decorate([
742
- utils.tuiWithPredicate
743
- ], exports.TuiLoaderHarness);
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
- var TuiButtonHarness = /** @class */ (function (_super) {
746
- __extends(TuiButtonHarness, _super);
747
- function TuiButtonHarness() {
748
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
749
- _this.loader = _this.locatorForOptional(exports.TuiLoaderHarness);
750
- return _this;
751
- }
752
- TuiButtonHarness.prototype.isLoading = function () {
753
- return __awaiter(this, void 0, void 0, function () {
754
- return __generator(this, function (_a) {
755
- switch (_a.label) {
756
- case 0: return [4 /*yield*/, this.loader()];
757
- case 1: return [2 /*return*/, !!(_a.sent())];
758
- }
759
- });
760
- });
761
- };
762
- TuiButtonHarness.prototype.hasClass = function (input) {
763
- return __awaiter(this, void 0, void 0, function () {
764
- return __generator(this, function (_a) {
765
- switch (_a.label) {
766
- case 0: return [4 /*yield*/, this.host()];
767
- case 1: return [2 /*return*/, (_a.sent()).hasClass(input)];
768
- }
769
- });
770
- });
771
- };
772
- return TuiButtonHarness;
773
- }(utils.TuiComponentHarness));
774
- TuiButtonHarness.hostSelector = 'button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]';
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
- var TuiDayCellHarness = /** @class */ (function (_super) {
777
- __extends(TuiDayCellHarness, _super);
778
- function TuiDayCellHarness() {
779
- return _super !== null && _super.apply(this, arguments) || this;
780
- }
781
- TuiDayCellHarness.with = function (options) {
782
- var _this = this;
783
- 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) {
784
- return [2 /*return*/, testing.HarnessPredicate.stringMatches(harness.getText(), "" + text)];
785
- }); }); });
786
- };
787
- TuiDayCellHarness.prototype.getText = function () {
788
- return __awaiter(this, void 0, void 0, function () {
789
- return __generator(this, function (_a) {
790
- switch (_a.label) {
791
- case 0: return [4 /*yield*/, this.locatorFor('.t-item')()];
792
- case 1: return [2 /*return*/, (_a.sent()).text()];
793
- }
794
- });
795
- });
796
- };
797
- TuiDayCellHarness.prototype.click = function () {
798
- return __awaiter(this, void 0, void 0, function () {
799
- return __generator(this, function (_a) {
800
- switch (_a.label) {
801
- case 0: return [4 /*yield*/, this.host()];
802
- case 1: return [2 /*return*/, (_a.sent()).click()];
803
- }
804
- });
805
- });
806
- };
807
- TuiDayCellHarness.prototype.hover = function () {
808
- return __awaiter(this, void 0, void 0, function () {
809
- return __generator(this, function (_a) {
810
- switch (_a.label) {
811
- case 0: return [4 /*yield*/, this.host()];
812
- case 1: return [2 /*return*/, (_a.sent()).hover()];
813
- }
814
- });
815
- });
816
- };
817
- return TuiDayCellHarness;
818
- }(testing.ComponentHarness));
819
- TuiDayCellHarness.hostSelector = '.t-cell:not(.t-cell_unavailable)';
820
- var TuiPrimitiveCalendarHarness = /** @class */ (function (_super) {
821
- __extends(TuiPrimitiveCalendarHarness, _super);
822
- function TuiPrimitiveCalendarHarness() {
823
- return _super !== null && _super.apply(this, arguments) || this;
824
- }
825
- TuiPrimitiveCalendarHarness.prototype.clickDay = function (day) {
826
- return __awaiter(this, void 0, void 0, function () {
827
- var dayCell;
828
- return __generator(this, function (_a) {
829
- switch (_a.label) {
830
- case 0: return [4 /*yield*/, this.locatorFor(TuiDayCellHarness.with({ day: day, ancestor: '#date-rows' }))()];
831
- case 1:
832
- dayCell = _a.sent();
833
- return [2 /*return*/, dayCell.click()];
834
- }
835
- });
836
- });
837
- };
838
- TuiPrimitiveCalendarHarness.prototype.hoverDay = function (day) {
839
- return __awaiter(this, void 0, void 0, function () {
840
- var dayCell;
841
- return __generator(this, function (_a) {
842
- switch (_a.label) {
843
- case 0: return [4 /*yield*/, this.locatorFor(TuiDayCellHarness.with({ day: day, ancestor: '#date-rows' }))()];
844
- case 1:
845
- dayCell = _a.sent();
846
- return [2 /*return*/, dayCell.hover()];
847
- }
848
- });
849
- });
850
- };
851
- return TuiPrimitiveCalendarHarness;
852
- }(utils.TuiComponentHarness));
853
- TuiPrimitiveCalendarHarness.hostSelector = 'tui-primitive-calendar';
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
- var TuiPrimitiveSpinButtonHarness = /** @class */ (function (_super) {
856
- __extends(TuiPrimitiveSpinButtonHarness, _super);
857
- function TuiPrimitiveSpinButtonHarness() {
858
- return _super !== null && _super.apply(this, arguments) || this;
859
- }
860
- TuiPrimitiveSpinButtonHarness.prototype.isLeftDisabled = function () {
861
- return __awaiter(this, void 0, void 0, function () {
862
- return __generator(this, function (_a) {
863
- switch (_a.label) {
864
- case 0: return [4 /*yield*/, this.locatorForAll(TuiButtonHarness)()];
865
- case 1: return [2 /*return*/, (_a.sent())[0].hasClass('t-hidden')];
866
- }
867
- });
868
- });
869
- };
870
- TuiPrimitiveSpinButtonHarness.prototype.isRightDisabled = function () {
871
- return __awaiter(this, void 0, void 0, function () {
872
- return __generator(this, function (_a) {
873
- switch (_a.label) {
874
- case 0: return [4 /*yield*/, this.locatorForAll(TuiButtonHarness)()];
875
- case 1: return [2 /*return*/, (_a.sent())[1].hasClass('t-hidden')];
876
- }
877
- });
878
- });
879
- };
880
- return TuiPrimitiveSpinButtonHarness;
881
- }(utils.TuiComponentHarness));
882
- TuiPrimitiveSpinButtonHarness.hostSelector = 'tui-primitive-spin-button';
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
- var TuiPrimitiveYearMonthPaginationHarness = /** @class */ (function (_super) {
885
- __extends(TuiPrimitiveYearMonthPaginationHarness, _super);
886
- function TuiPrimitiveYearMonthPaginationHarness() {
887
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
888
- _this.buttonLeft = _this.locatorForOptional('button[tuiIconButton]:first-child');
889
- _this.content = _this.locatorForOptional('.t-calendar-title');
890
- _this.buttonRight = _this.locatorForOptional('button[tuiIconButton]:last-child');
891
- _this.button = _this.locatorForOptional('#year-btn');
892
- _this.primitiveSpinButton = _this.locatorFor(TuiPrimitiveSpinButtonHarness);
893
- return _this;
894
- }
895
- TuiPrimitiveYearMonthPaginationHarness.prototype.clickLeft = function () {
896
- var _a;
897
- return __awaiter(this, void 0, void 0, function () {
898
- return __generator(this, function (_c) {
899
- switch (_c.label) {
900
- case 0: return [4 /*yield*/, this.buttonLeft()];
901
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.click()];
902
- }
903
- });
904
- });
905
- };
906
- TuiPrimitiveYearMonthPaginationHarness.prototype.getContentText = function () {
907
- var _a, _b;
908
- return __awaiter(this, void 0, void 0, function () {
909
- return __generator(this, function (_c) {
910
- switch (_c.label) {
911
- case 0: return [4 /*yield*/, this.content()];
912
- case 1: return [2 /*return*/, (_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.text()) !== null && _b !== void 0 ? _b : ''];
913
- }
914
- });
915
- });
916
- };
917
- TuiPrimitiveYearMonthPaginationHarness.prototype.clickRight = function () {
918
- var _a;
919
- return __awaiter(this, void 0, void 0, function () {
920
- return __generator(this, function (_c) {
921
- switch (_c.label) {
922
- case 0: return [4 /*yield*/, this.buttonRight()];
923
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.click()];
924
- }
925
- });
926
- });
927
- };
928
- TuiPrimitiveYearMonthPaginationHarness.prototype.clickYear = function () {
929
- var _a;
930
- return __awaiter(this, void 0, void 0, function () {
931
- return __generator(this, function (_c) {
932
- switch (_c.label) {
933
- case 0: return [4 /*yield*/, this.button()];
934
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.click()];
935
- }
936
- });
937
- });
938
- };
939
- TuiPrimitiveYearMonthPaginationHarness.prototype.isLeftDisabled = function () {
940
- return __awaiter(this, void 0, void 0, function () {
941
- return __generator(this, function (_c) {
942
- switch (_c.label) {
943
- case 0: return [4 /*yield*/, this.primitiveSpinButton()];
944
- case 1: return [2 /*return*/, (_c.sent()).isLeftDisabled()];
945
- }
946
- });
947
- });
948
- };
949
- TuiPrimitiveYearMonthPaginationHarness.prototype.isRightDisabled = function () {
950
- return __awaiter(this, void 0, void 0, function () {
951
- return __generator(this, function (_c) {
952
- switch (_c.label) {
953
- case 0: return [4 /*yield*/, this.primitiveSpinButton()];
954
- case 1: return [2 /*return*/, (_c.sent()).isRightDisabled()];
955
- }
956
- });
957
- });
958
- };
959
- return TuiPrimitiveYearMonthPaginationHarness;
960
- }(utils.TuiComponentHarness));
961
- TuiPrimitiveYearMonthPaginationHarness.hostSelector = 'tui-primitive-year-month-pagination';
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
- var TuiYearCellHarness = /** @class */ (function (_super) {
964
- __extends(TuiYearCellHarness, _super);
965
- function TuiYearCellHarness() {
966
- return _super !== null && _super.apply(this, arguments) || this;
967
- }
968
- TuiYearCellHarness.with = function (options) {
969
- var _this = this;
970
- 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) {
971
- return [2 /*return*/, testing.HarnessPredicate.stringMatches(harness.getText(), text)];
972
- }); }); });
973
- };
974
- TuiYearCellHarness.prototype.getText = function () {
975
- return __awaiter(this, void 0, void 0, function () {
976
- return __generator(this, function (_a) {
977
- switch (_a.label) {
978
- case 0: return [4 /*yield*/, this.locatorFor('.t-item')()];
979
- case 1: return [2 /*return*/, (_a.sent()).text()];
980
- }
981
- });
982
- });
983
- };
984
- TuiYearCellHarness.prototype.click = function () {
985
- return __awaiter(this, void 0, void 0, function () {
986
- return __generator(this, function (_a) {
987
- switch (_a.label) {
988
- case 0: return [4 /*yield*/, this.host()];
989
- case 1: return [2 /*return*/, (_a.sent()).click()];
990
- }
991
- });
992
- });
993
- };
994
- return TuiYearCellHarness;
995
- }(testing.ComponentHarness));
996
- TuiYearCellHarness.hostSelector = '.t-cell';
997
- var TuiPrimitiveYearPickerHarness = /** @class */ (function (_super) {
998
- __extends(TuiPrimitiveYearPickerHarness, _super);
999
- function TuiPrimitiveYearPickerHarness() {
1000
- return _super !== null && _super.apply(this, arguments) || this;
1001
- }
1002
- TuiPrimitiveYearPickerHarness.prototype.clickYear = function (year) {
1003
- return __awaiter(this, void 0, void 0, function () {
1004
- var yearCell;
1005
- return __generator(this, function (_a) {
1006
- switch (_a.label) {
1007
- case 0: return [4 /*yield*/, this.locatorFor(TuiYearCellHarness.with({ year: year }))()];
1008
- case 1:
1009
- yearCell = _a.sent();
1010
- return [2 /*return*/, yearCell.click()];
1011
- }
1012
- });
1013
- });
1014
- };
1015
- return TuiPrimitiveYearPickerHarness;
1016
- }(utils.TuiComponentHarness));
1017
- TuiPrimitiveYearPickerHarness.hostSelector = 'tui-primitive-year-picker';
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
- var TuiCalendarHarness = /** @class */ (function (_super) {
1020
- __extends(TuiCalendarHarness, _super);
1021
- function TuiCalendarHarness() {
1022
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
1023
- _this.getPrimitiveYearPickerHarness = _this.locatorForOptional(TuiPrimitiveYearPickerHarness);
1024
- _this.getPrimitiveYearMonthPaginationHarness = _this.locatorForOptional(TuiPrimitiveYearMonthPaginationHarness);
1025
- _this.getPrimitiveCalendarHarness = _this.locatorForOptional(TuiPrimitiveCalendarHarness);
1026
- return _this;
1027
- }
1028
- TuiCalendarHarness.prototype.yearPickerShown = function () {
1029
- return __awaiter(this, void 0, void 0, function () {
1030
- return __generator(this, function (_c) {
1031
- switch (_c.label) {
1032
- case 0: return [4 /*yield*/, this.getPrimitiveYearPickerHarness()];
1033
- case 1: return [2 /*return*/, !!(_c.sent())];
1034
- }
1035
- });
1036
- });
1037
- };
1038
- TuiCalendarHarness.prototype.yearMonthPaginationShown = function () {
1039
- return __awaiter(this, void 0, void 0, function () {
1040
- return __generator(this, function (_c) {
1041
- switch (_c.label) {
1042
- case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
1043
- case 1: return [2 /*return*/, !!(_c.sent())];
1044
- }
1045
- });
1046
- });
1047
- };
1048
- TuiCalendarHarness.prototype.primitiveCalendarShown = function () {
1049
- return __awaiter(this, void 0, void 0, function () {
1050
- return __generator(this, function (_c) {
1051
- switch (_c.label) {
1052
- case 0: return [4 /*yield*/, this.getPrimitiveCalendarHarness()];
1053
- case 1: return [2 /*return*/, !!(_c.sent())];
1054
- }
1055
- });
1056
- });
1057
- };
1058
- TuiCalendarHarness.prototype.isPaginationLeftDisabled = function () {
1059
- var _a, _b;
1060
- return __awaiter(this, void 0, void 0, function () {
1061
- return __generator(this, function (_c) {
1062
- switch (_c.label) {
1063
- case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
1064
- case 1: return [2 /*return*/, ((_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.isLeftDisabled()) !== null && _b !== void 0 ? _b : false)];
1065
- }
1066
- });
1067
- });
1068
- };
1069
- TuiCalendarHarness.prototype.isPaginationRightDisabled = function () {
1070
- var _a, _b;
1071
- return __awaiter(this, void 0, void 0, function () {
1072
- return __generator(this, function (_c) {
1073
- switch (_c.label) {
1074
- case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
1075
- case 1: return [2 /*return*/, ((_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.isRightDisabled()) !== null && _b !== void 0 ? _b : false)];
1076
- }
1077
- });
1078
- });
1079
- };
1080
- TuiCalendarHarness.prototype.clickMonthLeft = function () {
1081
- var _a;
1082
- return __awaiter(this, void 0, void 0, function () {
1083
- return __generator(this, function (_c) {
1084
- switch (_c.label) {
1085
- case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
1086
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.clickLeft()];
1087
- }
1088
- });
1089
- });
1090
- };
1091
- TuiCalendarHarness.prototype.getContentText = function () {
1092
- var _a, _b;
1093
- return __awaiter(this, void 0, void 0, function () {
1094
- return __generator(this, function (_c) {
1095
- switch (_c.label) {
1096
- case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
1097
- case 1: return [2 /*return*/, ((_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.getContentText()) !== null && _b !== void 0 ? _b : '')];
1098
- }
1099
- });
1100
- });
1101
- };
1102
- TuiCalendarHarness.prototype.clickMonthRight = function () {
1103
- var _a;
1104
- return __awaiter(this, void 0, void 0, function () {
1105
- return __generator(this, function (_c) {
1106
- switch (_c.label) {
1107
- case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
1108
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.clickRight()];
1109
- }
1110
- });
1111
- });
1112
- };
1113
- TuiCalendarHarness.prototype.clickPaginationYear = function () {
1114
- var _a;
1115
- return __awaiter(this, void 0, void 0, function () {
1116
- return __generator(this, function (_c) {
1117
- switch (_c.label) {
1118
- case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
1119
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.clickYear()];
1120
- }
1121
- });
1122
- });
1123
- };
1124
- TuiCalendarHarness.prototype.clickPickerYear = function (year) {
1125
- var _a;
1126
- return __awaiter(this, void 0, void 0, function () {
1127
- return __generator(this, function (_c) {
1128
- switch (_c.label) {
1129
- case 0: return [4 /*yield*/, this.getPrimitiveYearPickerHarness()];
1130
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.clickYear(year)];
1131
- }
1132
- });
1133
- });
1134
- };
1135
- TuiCalendarHarness.prototype.clickDay = function (day) {
1136
- var _a;
1137
- return __awaiter(this, void 0, void 0, function () {
1138
- return __generator(this, function (_c) {
1139
- switch (_c.label) {
1140
- case 0: return [4 /*yield*/, this.getPrimitiveCalendarHarness()];
1141
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.clickDay(day)];
1142
- }
1143
- });
1144
- });
1145
- };
1146
- TuiCalendarHarness.prototype.hoverDay = function (day) {
1147
- var _a;
1148
- return __awaiter(this, void 0, void 0, function () {
1149
- return __generator(this, function (_c) {
1150
- switch (_c.label) {
1151
- case 0: return [4 /*yield*/, this.getPrimitiveCalendarHarness()];
1152
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.hoverDay(day)];
1153
- }
1154
- });
1155
- });
1156
- };
1157
- return TuiCalendarHarness;
1158
- }(utils.TuiComponentHarness));
1159
- TuiCalendarHarness.hostSelector = 'tui-calendar';
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
- var TuiThumbnailCardHarness = /** @class */ (function (_super) {
1162
- __extends(TuiThumbnailCardHarness, _super);
1163
- function TuiThumbnailCardHarness() {
1164
- return _super !== null && _super.apply(this, arguments) || this;
1165
- }
1166
- TuiThumbnailCardHarness.prototype.hasPaymentSystemLogo = function () {
1167
- return __awaiter(this, void 0, void 0, function () {
1168
- var tuiSvg;
1169
- return __generator(this, function (_a) {
1170
- switch (_a.label) {
1171
- case 0: return [4 /*yield*/, this.locatorForOptional(TuiSvgHarness.with({ selector: '.t-payment-system-logo' }))()];
1172
- case 1:
1173
- tuiSvg = _a.sent();
1174
- return [2 /*return*/, !!tuiSvg];
1175
- }
1176
- });
1177
- });
1178
- };
1179
- TuiThumbnailCardHarness.prototype.hasBrandLogo = function () {
1180
- return __awaiter(this, void 0, void 0, function () {
1181
- var tuiSvg;
1182
- return __generator(this, function (_a) {
1183
- switch (_a.label) {
1184
- case 0: return [4 /*yield*/, this.locatorForOptional(TuiSvgHarness.with({ selector: '.t-brand-logo' }))()];
1185
- case 1:
1186
- tuiSvg = _a.sent();
1187
- return [2 /*return*/, !!tuiSvg];
1188
- }
1189
- });
1190
- });
1191
- };
1192
- return TuiThumbnailCardHarness;
1193
- }(utils.TuiComponentHarness));
1194
- TuiThumbnailCardHarness.hostSelector = 'tui-thumbnail-card';
1195
- /**
1196
- * @deprecated use {@link TuiThumbnailCardHarness}
1197
- */
1198
- var TuiCardHarness = /** @class */ (function (_super) {
1199
- __extends(TuiCardHarness, _super);
1200
- function TuiCardHarness() {
1201
- return _super !== null && _super.apply(this, arguments) || this;
1202
- }
1203
- return TuiCardHarness;
1204
- }(TuiThumbnailCardHarness));
1205
- TuiCardHarness.hostSelector = 'tui-card';
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
- var TuiDialogHarness = /** @class */ (function (_super) {
1208
- __extends(TuiDialogHarness, _super);
1209
- function TuiDialogHarness() {
1210
- return _super !== null && _super.apply(this, arguments) || this;
1211
- }
1212
- TuiDialogHarness.prototype.getCloseButton = function () {
1213
- return __awaiter(this, void 0, void 0, function () {
1214
- return __generator(this, function (_a) {
1215
- return [2 /*return*/, this.locatorForOptional(TuiButtonHarness.with({
1216
- selector: '[automation-id=tui-dialog__close]',
1217
- }))()];
1218
- });
1219
- });
1220
- };
1221
- return TuiDialogHarness;
1222
- }(utils.TuiContentContainerComponentHarness));
1223
- TuiDialogHarness.hostSelector = 'tui-dialog';
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
- var TuiHostedDropdownHarness = /** @class */ (function (_super) {
1226
- __extends(TuiHostedDropdownHarness, _super);
1227
- function TuiHostedDropdownHarness() {
1228
- return _super !== null && _super.apply(this, arguments) || this;
1229
- }
1230
- TuiHostedDropdownHarness.prototype.sendSpaceKey = function () {
1231
- return __awaiter(this, void 0, void 0, function () {
1232
- return __generator(this, function (_a) {
1233
- switch (_a.label) {
1234
- case 0: return [4 /*yield*/, this.host()];
1235
- case 1: return [2 /*return*/, (_a.sent()).sendKeys(' ')];
1236
- }
1237
- });
1238
- });
1239
- };
1240
- TuiHostedDropdownHarness.prototype.sendEscKey = function () {
1241
- return __awaiter(this, void 0, void 0, function () {
1242
- return __generator(this, function (_a) {
1243
- switch (_a.label) {
1244
- case 0: return [4 /*yield*/, this.host()];
1245
- case 1: return [2 /*return*/, (_a.sent()).sendKeys(testing.TestKey.ESCAPE)];
1246
- }
1247
- });
1248
- });
1249
- };
1250
- return TuiHostedDropdownHarness;
1251
- }(utils.TuiContentContainerComponentHarness));
1252
- TuiHostedDropdownHarness.hostSelector = 'tui-hosted-dropdown';
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
- var TuiIslandHarness = /** @class */ (function (_super) {
1255
- __extends(TuiIslandHarness, _super);
1256
- function TuiIslandHarness() {
1257
- return _super !== null && _super.apply(this, arguments) || this;
1258
- }
1259
- TuiIslandHarness.prototype.getSize = function () {
1260
- return __awaiter(this, void 0, void 0, function () {
1261
- return __generator(this, function (_a) {
1262
- switch (_a.label) {
1263
- case 0: return [4 /*yield*/, this.isSizeL()];
1264
- case 1:
1265
- if (_a.sent()) {
1266
- return [2 /*return*/, 'l'];
1267
- }
1268
- return [4 /*yield*/, this.isSizeM()];
1269
- case 2:
1270
- if (_a.sent()) {
1271
- return [2 /*return*/, 'm'];
1272
- }
1273
- return [2 /*return*/, 's'];
1274
- }
1275
- });
1276
- });
1277
- };
1278
- TuiIslandHarness.prototype.getTextAlign = function () {
1279
- return __awaiter(this, void 0, void 0, function () {
1280
- return __generator(this, function (_a) {
1281
- switch (_a.label) {
1282
- case 0: return [4 /*yield*/, this.isTextAlignLeft()];
1283
- case 1:
1284
- if (_a.sent()) {
1285
- return [2 /*return*/, 'left'];
1286
- }
1287
- return [4 /*yield*/, this.isTextAlignCenter()];
1288
- case 2:
1289
- if (_a.sent()) {
1290
- return [2 /*return*/, 'center'];
1291
- }
1292
- return [2 /*return*/, 'right'];
1293
- }
1294
- });
1295
- });
1296
- };
1297
- TuiIslandHarness.prototype.isHoverable = 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()).hasClass('tui-island_hoverable')];
1303
- }
1304
- });
1305
- });
1306
- };
1307
- TuiIslandHarness.prototype.isTextAlignLeft = 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()).hasClass('tui-island_text-align_left')];
1313
- }
1314
- });
1315
- });
1316
- };
1317
- TuiIslandHarness.prototype.isTextAlignCenter = 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()).hasClass('tui-island_text-align_center')];
1323
- }
1324
- });
1325
- });
1326
- };
1327
- TuiIslandHarness.prototype.isSizeM = function () {
1328
- return __awaiter(this, void 0, void 0, function () {
1329
- return __generator(this, function (_a) {
1330
- switch (_a.label) {
1331
- case 0: return [4 /*yield*/, this.host()];
1332
- case 1: return [2 /*return*/, (_a.sent()).hasClass('tui-island_size_m')];
1333
- }
1334
- });
1335
- });
1336
- };
1337
- TuiIslandHarness.prototype.isSizeL = function () {
1338
- return __awaiter(this, void 0, void 0, function () {
1339
- return __generator(this, function (_a) {
1340
- switch (_a.label) {
1341
- case 0: return [4 /*yield*/, this.host()];
1342
- case 1: return [2 /*return*/, (_a.sent()).hasClass('tui-island_size_l')];
1343
- }
1344
- });
1345
- });
1346
- };
1347
- return TuiIslandHarness;
1348
- }(utils.TuiComponentHarness));
1349
- TuiIslandHarness.hostSelector = 'tui-island';
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
- var TuiPrimitiveTextfieldHarness = /** @class */ (function (_super) {
1352
- __extends(TuiPrimitiveTextfieldHarness, _super);
1353
- function TuiPrimitiveTextfieldHarness() {
1354
- return _super !== null && _super.apply(this, arguments) || this;
1355
- }
1356
- TuiPrimitiveTextfieldHarness.prototype.valueDecorationText = function () {
1357
- return __awaiter(this, void 0, void 0, function () {
1358
- return __generator(this, function (_a) {
1359
- switch (_a.label) {
1360
- case 0: return [4 /*yield*/, this.locatorFor('tui-value-decoration')()];
1361
- case 1: return [2 /*return*/, (_a.sent()).text()];
1362
- }
1363
- });
1364
- });
1365
- };
1366
- TuiPrimitiveTextfieldHarness.prototype.inputPlaceholder = function () {
1367
- return __awaiter(this, void 0, void 0, function () {
1368
- return __generator(this, function (_a) {
1369
- switch (_a.label) {
1370
- case 0: return [4 /*yield*/, this.locatorFor('input')()];
1371
- case 1: return [2 /*return*/, (_a.sent()).getProperty('placeholder')];
1372
- }
1373
- });
1374
- });
1375
- };
1376
- return TuiPrimitiveTextfieldHarness;
1377
- }(utils.TuiComponentHarness));
1378
- TuiPrimitiveTextfieldHarness.hostSelector = 'tui-primitive-textfield';
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
- var TuiSelectHarness = /** @class */ (function (_super) {
1381
- __extends(TuiSelectHarness, _super);
1382
- function TuiSelectHarness() {
1383
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
1384
- _this.hostedDropdown = _this.locatorFor(TuiHostedDropdownHarness);
1385
- return _this;
1386
- }
1387
- TuiSelectHarness.prototype.sendSpaceKey = function () {
1388
- return __awaiter(this, void 0, void 0, function () {
1389
- return __generator(this, function (_a) {
1390
- switch (_a.label) {
1391
- case 0: return [4 /*yield*/, this.hostedDropdown()];
1392
- case 1: return [2 /*return*/, (_a.sent()).sendSpaceKey()];
1393
- }
1394
- });
1395
- });
1396
- };
1397
- TuiSelectHarness.prototype.sendEscKey = function () {
1398
- return __awaiter(this, void 0, void 0, function () {
1399
- return __generator(this, function (_a) {
1400
- switch (_a.label) {
1401
- case 0: return [4 /*yield*/, this.hostedDropdown()];
1402
- case 1: return [2 /*return*/, (_a.sent()).sendEscKey()];
1403
- }
1404
- });
1405
- });
1406
- };
1407
- return TuiSelectHarness;
1408
- }(utils.TuiComponentHarness));
1409
- TuiSelectHarness.hostSelector = 'tui-select';
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
- var TuiTagHarness = /** @class */ (function (_super) {
1412
- __extends(TuiTagHarness, _super);
1413
- function TuiTagHarness() {
1414
- return _super !== null && _super.apply(this, arguments) || this;
1415
- }
1416
- TuiTagHarness.prototype.getCrossIcon = function () {
1417
- return __awaiter(this, void 0, void 0, function () {
1418
- return __generator(this, function (_a) {
1419
- return [2 /*return*/, this.locatorForOptional(TuiSvgHarness.with({ selector: '.t-icon' }))()];
1420
- });
1421
- });
1422
- };
1423
- TuiTagHarness.prototype.getBackgroundColor = function () {
1424
- return __awaiter(this, void 0, void 0, function () {
1425
- var div;
1426
- return __generator(this, function (_a) {
1427
- switch (_a.label) {
1428
- case 0: return [4 /*yield*/, this.locatorFor(':first-child')()];
1429
- case 1:
1430
- div = _a.sent();
1431
- return [2 /*return*/, div.getCssValue('background-color')];
1432
- }
1433
- });
1434
- });
1435
- };
1436
- TuiTagHarness.prototype.getInput = function () {
1437
- return __awaiter(this, void 0, void 0, function () {
1438
- return __generator(this, function (_a) {
1439
- return [2 /*return*/, this.locatorForOptional('input.t-edit')()];
1440
- });
1441
- });
1442
- };
1443
- TuiTagHarness.prototype.sendEnter = function () {
1444
- return __awaiter(this, void 0, void 0, function () {
1445
- return __generator(this, function (_a) {
1446
- switch (_a.label) {
1447
- case 0: return [4 /*yield*/, this.host()];
1448
- case 1: return [2 /*return*/, (_a.sent()).sendKeys(testing.TestKey.ENTER)];
1449
- }
1450
- });
1451
- });
1452
- };
1453
- TuiTagHarness.prototype.sendBackspace = function () {
1454
- return __awaiter(this, void 0, void 0, function () {
1455
- return __generator(this, function (_a) {
1456
- switch (_a.label) {
1457
- case 0: return [4 /*yield*/, this.host()];
1458
- case 1: return [2 /*return*/, (_a.sent()).sendKeys(testing.TestKey.BACKSPACE)];
1459
- }
1460
- });
1461
- });
1462
- };
1463
- TuiTagHarness.prototype.sendDelete = function () {
1464
- return __awaiter(this, void 0, void 0, function () {
1465
- return __generator(this, function (_a) {
1466
- switch (_a.label) {
1467
- case 0: return [4 /*yield*/, this.host()];
1468
- case 1: return [2 /*return*/, (_a.sent()).sendKeys(testing.TestKey.DELETE)];
1469
- }
1470
- });
1471
- });
1472
- };
1473
- return TuiTagHarness;
1474
- }(utils.TuiComponentHarness));
1475
- TuiTagHarness.hostSelector = 'tui-tag';
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
- var TuiTextfieldHarness = /** @class */ (function (_super) {
1478
- __extends(TuiTextfieldHarness, _super);
1479
- function TuiTextfieldHarness() {
1480
- return _super !== null && _super.apply(this, arguments) || this;
1481
- }
1482
- TuiTextfieldHarness.prototype.sendSpaceKey = function () {
1483
- return __awaiter(this, void 0, void 0, function () {
1484
- return __generator(this, function (_a) {
1485
- switch (_a.label) {
1486
- case 0: return [4 /*yield*/, this.host()];
1487
- case 1: return [2 /*return*/, (_a.sent()).sendKeys(' ')];
1488
- }
1489
- });
1490
- });
1491
- };
1492
- return TuiTextfieldHarness;
1493
- }(utils.TuiComponentHarness));
1494
- TuiTextfieldHarness.hostSelector = 'input[tuiTextfield], textarea[tuiTextfield]';
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
- var TuiToggleHarness = /** @class */ (function (_super) {
1497
- __extends(TuiToggleHarness, _super);
1498
- function TuiToggleHarness() {
1499
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
1500
- _this.input = _this.locatorFor('input');
1501
- return _this;
1502
- }
1503
- TuiToggleHarness.prototype.toggle = function () {
1504
- return __awaiter(this, void 0, void 0, function () {
1505
- return __generator(this, function (_a) {
1506
- switch (_a.label) {
1507
- case 0: return [4 /*yield*/, this.input()];
1508
- case 1: return [2 /*return*/, (_a.sent()).click()];
1509
- }
1510
- });
1511
- });
1512
- };
1513
- TuiToggleHarness.prototype.getIcons = function () {
1514
- return __awaiter(this, void 0, void 0, function () {
1515
- return __generator(this, function (_a) {
1516
- return [2 /*return*/, this.locatorForAll(TuiSvgHarness)()];
1517
- });
1518
- });
1519
- };
1520
- return TuiToggleHarness;
1521
- }(utils.TuiComponentHarness));
1522
- TuiToggleHarness.hostSelector = 'tui-toggle';
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
- * Generated bundle index. Do not edit.
1526
- */
1378
+ /**
1379
+ * Generated bundle index. Do not edit.
1380
+ */
1527
1381
 
1528
- exports.TuiAccordionHarness = TuiAccordionHarness;
1529
- exports.TuiAccordionItemHarness = TuiAccordionItemHarness;
1530
- exports.TuiActionHarness = TuiActionHarness;
1531
- exports.TuiAvatarHarness = TuiAvatarHarness;
1532
- exports.TuiBadgeHarness = TuiBadgeHarness;
1533
- exports.TuiButtonHarness = TuiButtonHarness;
1534
- exports.TuiCalendarHarness = TuiCalendarHarness;
1535
- exports.TuiCardHarness = TuiCardHarness;
1536
- exports.TuiDialogHarness = TuiDialogHarness;
1537
- exports.TuiHostedDropdownHarness = TuiHostedDropdownHarness;
1538
- exports.TuiIslandHarness = TuiIslandHarness;
1539
- exports.TuiMarkerIconHarness = TuiMarkerIconHarness;
1540
- exports.TuiPrimitiveCalendarHarness = TuiPrimitiveCalendarHarness;
1541
- exports.TuiPrimitiveSpinButtonHarness = TuiPrimitiveSpinButtonHarness;
1542
- exports.TuiPrimitiveTextfieldHarness = TuiPrimitiveTextfieldHarness;
1543
- exports.TuiSelectHarness = TuiSelectHarness;
1544
- exports.TuiSvgHarness = TuiSvgHarness;
1545
- exports.TuiTagHarness = TuiTagHarness;
1546
- exports.TuiTextfieldHarness = TuiTextfieldHarness;
1547
- exports.TuiThumbnailCardHarness = TuiThumbnailCardHarness;
1548
- exports.TuiToggleHarness = TuiToggleHarness;
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
- Object.defineProperty(exports, '__esModule', { value: true });
1404
+ Object.defineProperty(exports, '__esModule', { value: true });
1551
1405
 
1552
1406
  }));
1553
1407
  //# sourceMappingURL=taiga-ui-testing-core.umd.js.map