@taiga-ui/cdk 3.87.0-canary.95b57e0 → 3.87.0-canary.d0e04f9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taiga-ui-cdk-abstract.umd.js +971 -1118
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +504 -650
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +404 -550
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js +591 -737
- package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-date-time.umd.js +6 -152
- package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-decorators.umd.js +6 -152
- package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +437 -583
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +706 -852
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js +426 -572
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js +410 -556
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js +482 -628
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-exceptions.umd.js +426 -572
- package/bundles/taiga-ui-cdk-exceptions.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js +373 -519
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +373 -519
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +840 -986
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js +650 -796
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-color.umd.js +6 -152
- package/bundles/taiga-ui-cdk-utils-color.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js +4 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +6 -152
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
- package/esm2015/utils/focus/set-native-mouse-focused.js +5 -2
- package/fesm2015/taiga-ui-cdk-utils-focus.js +4 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/package.json +1 -1
@@ -1,1144 +1,997 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk/classes'), require('@taiga-ui/cdk/constants'), require('@taiga-ui/cdk/utils'), require('rxjs'), require('rxjs/operators'), require('@taiga-ui/cdk/observables'), require('@tinkoff/ng-polymorpheus'), require('@taiga-ui/cdk/services'), require('@taiga-ui/cdk/exceptions'), require('@angular/common')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/cdk/abstract', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk/classes', '@taiga-ui/cdk/constants', '@taiga-ui/cdk/utils', 'rxjs', 'rxjs/operators', '@taiga-ui/cdk/observables', '@tinkoff/ng-polymorpheus', '@taiga-ui/cdk/services', '@taiga-ui/cdk/exceptions', '@angular/common'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].cdk = global["taiga-ui"].cdk || {}, global["taiga-ui"].cdk.abstract = {}), global.ng.core, global.ng.forms, global["taiga-ui"].cdk.classes, global["taiga-ui"].cdk.constants, global["taiga-ui"].cdk.utils, global.rxjs, global.rxjs.operators, global["taiga-ui"].cdk.observables, global.ngPolymorpheus, global["taiga-ui"].cdk.services, global["taiga-ui"].cdk.exceptions, global.ng.common));
|
5
5
|
})(this, (function (exports, i0, i1, classes, constants, utils, rxjs, operators, observables, ngPolymorpheus, i1$1, exceptions, common) { 'use strict';
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
7
|
+
function _interopNamespace(e) {
|
8
|
+
if (e && e.__esModule) return e;
|
9
|
+
var n = Object.create(null);
|
10
|
+
if (e) {
|
11
|
+
Object.keys(e).forEach(function (k) {
|
12
|
+
if (k !== 'default') {
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
15
|
+
enumerable: true,
|
16
|
+
get: function () { return e[k]; }
|
17
|
+
});
|
18
|
+
}
|
19
|
+
});
|
18
20
|
}
|
19
|
-
|
21
|
+
n["default"] = e;
|
22
|
+
return Object.freeze(n);
|
20
23
|
}
|
21
|
-
n["default"] = e;
|
22
|
-
return Object.freeze(n);
|
23
|
-
}
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
27
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
28
28
|
|
29
|
-
|
30
|
-
|
29
|
+
/*! *****************************************************************************
|
30
|
+
Copyright (c) Microsoft Corporation.
|
31
31
|
|
32
|
-
|
33
|
-
|
32
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
33
|
+
purpose with or without fee is hereby granted.
|
34
34
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
function reject(value) { resume("throw", value); }
|
347
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
348
|
-
resume(q[0][0], q[0][1]); }
|
349
|
-
}
|
350
|
-
function __asyncDelegator(o) {
|
351
|
-
var i, p;
|
352
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
353
|
-
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; }
|
354
|
-
}
|
355
|
-
function __asyncValues(o) {
|
356
|
-
if (!Symbol.asyncIterator)
|
357
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
358
|
-
var m = o[Symbol.asyncIterator], i;
|
359
|
-
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);
|
360
|
-
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); }); }; }
|
361
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
362
|
-
}
|
363
|
-
function __makeTemplateObject(cooked, raw) {
|
364
|
-
if (Object.defineProperty) {
|
365
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
366
|
-
}
|
367
|
-
else {
|
368
|
-
cooked.raw = raw;
|
369
|
-
}
|
370
|
-
return cooked;
|
371
|
-
}
|
372
|
-
;
|
373
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
374
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
375
|
-
}) : function (o, v) {
|
376
|
-
o["default"] = v;
|
377
|
-
};
|
378
|
-
function __importStar(mod) {
|
379
|
-
if (mod && mod.__esModule)
|
380
|
-
return mod;
|
381
|
-
var result = {};
|
382
|
-
if (mod != null)
|
383
|
-
for (var k in mod)
|
384
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
385
|
-
__createBinding(result, mod, k);
|
386
|
-
__setModuleDefault(result, mod);
|
387
|
-
return result;
|
388
|
-
}
|
389
|
-
function __importDefault(mod) {
|
390
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
391
|
-
}
|
392
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
393
|
-
if (kind === "a" && !f)
|
394
|
-
throw new TypeError("Private accessor was defined without a getter");
|
395
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
396
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
397
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
398
|
-
}
|
399
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
400
|
-
if (kind === "m")
|
401
|
-
throw new TypeError("Private method is not writable");
|
402
|
-
if (kind === "a" && !f)
|
403
|
-
throw new TypeError("Private accessor was defined without a setter");
|
404
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
405
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
406
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
407
|
-
}
|
408
|
-
function __classPrivateFieldIn(state, receiver) {
|
409
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
410
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
411
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
412
|
-
}
|
413
|
-
function __addDisposableResource(env, value, async) {
|
414
|
-
if (value !== null && value !== void 0) {
|
415
|
-
if (typeof value !== "object" && typeof value !== "function")
|
416
|
-
throw new TypeError("Object expected.");
|
417
|
-
var dispose;
|
418
|
-
if (async) {
|
419
|
-
if (!Symbol.asyncDispose)
|
420
|
-
throw new TypeError("Symbol.asyncDispose is not defined.");
|
421
|
-
dispose = value[Symbol.asyncDispose];
|
422
|
-
}
|
423
|
-
if (dispose === void 0) {
|
424
|
-
if (!Symbol.dispose)
|
425
|
-
throw new TypeError("Symbol.dispose is not defined.");
|
426
|
-
dispose = value[Symbol.dispose];
|
427
|
-
}
|
428
|
-
if (typeof dispose !== "function")
|
429
|
-
throw new TypeError("Object not disposable.");
|
430
|
-
env.stack.push({ value: value, dispose: dispose, async: async });
|
431
|
-
}
|
432
|
-
else if (async) {
|
433
|
-
env.stack.push({ async: true });
|
434
|
-
}
|
435
|
-
return value;
|
436
|
-
}
|
437
|
-
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
438
|
-
var e = new Error(message);
|
439
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
440
|
-
};
|
441
|
-
function __disposeResources(env) {
|
442
|
-
function fail(e) {
|
443
|
-
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
444
|
-
env.hasError = true;
|
445
|
-
}
|
446
|
-
function next() {
|
447
|
-
while (env.stack.length) {
|
448
|
-
var rec = env.stack.pop();
|
449
|
-
try {
|
450
|
-
var result = rec.dispose && rec.dispose.call(rec.value);
|
451
|
-
if (rec.async)
|
452
|
-
return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
|
453
|
-
}
|
454
|
-
catch (e) {
|
455
|
-
fail(e);
|
456
|
-
}
|
457
|
-
}
|
458
|
-
if (env.hasError)
|
459
|
-
throw env.error;
|
460
|
-
}
|
461
|
-
return next();
|
462
|
-
}
|
463
|
-
var tslib_es6 = {
|
464
|
-
__extends: __extends,
|
465
|
-
__assign: __assign,
|
466
|
-
__rest: __rest,
|
467
|
-
__decorate: __decorate,
|
468
|
-
__param: __param,
|
469
|
-
__metadata: __metadata,
|
470
|
-
__awaiter: __awaiter,
|
471
|
-
__generator: __generator,
|
472
|
-
__createBinding: __createBinding,
|
473
|
-
__exportStar: __exportStar,
|
474
|
-
__values: __values,
|
475
|
-
__read: __read,
|
476
|
-
__spread: __spread,
|
477
|
-
__spreadArrays: __spreadArrays,
|
478
|
-
__spreadArray: __spreadArray,
|
479
|
-
__await: __await,
|
480
|
-
__asyncGenerator: __asyncGenerator,
|
481
|
-
__asyncDelegator: __asyncDelegator,
|
482
|
-
__asyncValues: __asyncValues,
|
483
|
-
__makeTemplateObject: __makeTemplateObject,
|
484
|
-
__importStar: __importStar,
|
485
|
-
__importDefault: __importDefault,
|
486
|
-
__classPrivateFieldGet: __classPrivateFieldGet,
|
487
|
-
__classPrivateFieldSet: __classPrivateFieldSet,
|
488
|
-
__classPrivateFieldIn: __classPrivateFieldIn,
|
489
|
-
__addDisposableResource: __addDisposableResource,
|
490
|
-
__disposeResources: __disposeResources,
|
491
|
-
};
|
35
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
36
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
37
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
38
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
39
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
40
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
41
|
+
PERFORMANCE OF THIS SOFTWARE.
|
42
|
+
***************************************************************************** */
|
43
|
+
/* global Reflect, Promise */
|
44
|
+
var extendStatics = function (d, b) {
|
45
|
+
extendStatics = Object.setPrototypeOf ||
|
46
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
47
|
+
function (d, b) { for (var p in b)
|
48
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
49
|
+
d[p] = b[p]; };
|
50
|
+
return extendStatics(d, b);
|
51
|
+
};
|
52
|
+
function __extends(d, b) {
|
53
|
+
if (typeof b !== "function" && b !== null)
|
54
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
55
|
+
extendStatics(d, b);
|
56
|
+
function __() { this.constructor = d; }
|
57
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
58
|
+
}
|
59
|
+
var __assign = function () {
|
60
|
+
__assign = Object.assign || function __assign(t) {
|
61
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
62
|
+
s = arguments[i];
|
63
|
+
for (var p in s)
|
64
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
65
|
+
t[p] = s[p];
|
66
|
+
}
|
67
|
+
return t;
|
68
|
+
};
|
69
|
+
return __assign.apply(this, arguments);
|
70
|
+
};
|
71
|
+
function __rest(s, e) {
|
72
|
+
var t = {};
|
73
|
+
for (var p in s)
|
74
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
75
|
+
t[p] = s[p];
|
76
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
77
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
78
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
79
|
+
t[p[i]] = s[p[i]];
|
80
|
+
}
|
81
|
+
return t;
|
82
|
+
}
|
83
|
+
function __decorate(decorators, target, key, desc) {
|
84
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
85
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
86
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
87
|
+
else
|
88
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
89
|
+
if (d = decorators[i])
|
90
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
91
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
92
|
+
}
|
93
|
+
function __param(paramIndex, decorator) {
|
94
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
95
|
+
}
|
96
|
+
function __metadata(metadataKey, metadataValue) {
|
97
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
98
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
99
|
+
}
|
100
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
101
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
102
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
103
|
+
function fulfilled(value) { try {
|
104
|
+
step(generator.next(value));
|
105
|
+
}
|
106
|
+
catch (e) {
|
107
|
+
reject(e);
|
108
|
+
} }
|
109
|
+
function rejected(value) { try {
|
110
|
+
step(generator["throw"](value));
|
111
|
+
}
|
112
|
+
catch (e) {
|
113
|
+
reject(e);
|
114
|
+
} }
|
115
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
116
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
117
|
+
});
|
118
|
+
}
|
119
|
+
function __generator(thisArg, body) {
|
120
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
121
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
122
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
123
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
124
|
+
function step(op) {
|
125
|
+
if (f)
|
126
|
+
throw new TypeError("Generator is already executing.");
|
127
|
+
while (_)
|
128
|
+
try {
|
129
|
+
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)
|
130
|
+
return t;
|
131
|
+
if (y = 0, t)
|
132
|
+
op = [op[0] & 2, t.value];
|
133
|
+
switch (op[0]) {
|
134
|
+
case 0:
|
135
|
+
case 1:
|
136
|
+
t = op;
|
137
|
+
break;
|
138
|
+
case 4:
|
139
|
+
_.label++;
|
140
|
+
return { value: op[1], done: false };
|
141
|
+
case 5:
|
142
|
+
_.label++;
|
143
|
+
y = op[1];
|
144
|
+
op = [0];
|
145
|
+
continue;
|
146
|
+
case 7:
|
147
|
+
op = _.ops.pop();
|
148
|
+
_.trys.pop();
|
149
|
+
continue;
|
150
|
+
default:
|
151
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
152
|
+
_ = 0;
|
153
|
+
continue;
|
154
|
+
}
|
155
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
156
|
+
_.label = op[1];
|
157
|
+
break;
|
158
|
+
}
|
159
|
+
if (op[0] === 6 && _.label < t[1]) {
|
160
|
+
_.label = t[1];
|
161
|
+
t = op;
|
162
|
+
break;
|
163
|
+
}
|
164
|
+
if (t && _.label < t[2]) {
|
165
|
+
_.label = t[2];
|
166
|
+
_.ops.push(op);
|
167
|
+
break;
|
168
|
+
}
|
169
|
+
if (t[2])
|
170
|
+
_.ops.pop();
|
171
|
+
_.trys.pop();
|
172
|
+
continue;
|
173
|
+
}
|
174
|
+
op = body.call(thisArg, _);
|
175
|
+
}
|
176
|
+
catch (e) {
|
177
|
+
op = [6, e];
|
178
|
+
y = 0;
|
179
|
+
}
|
180
|
+
finally {
|
181
|
+
f = t = 0;
|
182
|
+
}
|
183
|
+
if (op[0] & 5)
|
184
|
+
throw op[1];
|
185
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
186
|
+
}
|
187
|
+
}
|
188
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
189
|
+
if (k2 === undefined)
|
190
|
+
k2 = k;
|
191
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
192
|
+
}) : (function (o, m, k, k2) {
|
193
|
+
if (k2 === undefined)
|
194
|
+
k2 = k;
|
195
|
+
o[k2] = m[k];
|
196
|
+
});
|
197
|
+
function __exportStar(m, o) {
|
198
|
+
for (var p in m)
|
199
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
200
|
+
__createBinding(o, m, p);
|
201
|
+
}
|
202
|
+
function __values(o) {
|
203
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
204
|
+
if (m)
|
205
|
+
return m.call(o);
|
206
|
+
if (o && typeof o.length === "number")
|
207
|
+
return {
|
208
|
+
next: function () {
|
209
|
+
if (o && i >= o.length)
|
210
|
+
o = void 0;
|
211
|
+
return { value: o && o[i++], done: !o };
|
212
|
+
}
|
213
|
+
};
|
214
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
215
|
+
}
|
216
|
+
function __read(o, n) {
|
217
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
218
|
+
if (!m)
|
219
|
+
return o;
|
220
|
+
var i = m.call(o), r, ar = [], e;
|
221
|
+
try {
|
222
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
223
|
+
ar.push(r.value);
|
224
|
+
}
|
225
|
+
catch (error) {
|
226
|
+
e = { error: error };
|
227
|
+
}
|
228
|
+
finally {
|
229
|
+
try {
|
230
|
+
if (r && !r.done && (m = i["return"]))
|
231
|
+
m.call(i);
|
232
|
+
}
|
233
|
+
finally {
|
234
|
+
if (e)
|
235
|
+
throw e.error;
|
236
|
+
}
|
237
|
+
}
|
238
|
+
return ar;
|
239
|
+
}
|
240
|
+
/** @deprecated */
|
241
|
+
function __spread() {
|
242
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
243
|
+
ar = ar.concat(__read(arguments[i]));
|
244
|
+
return ar;
|
245
|
+
}
|
246
|
+
/** @deprecated */
|
247
|
+
function __spreadArrays() {
|
248
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
249
|
+
s += arguments[i].length;
|
250
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
251
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
252
|
+
r[k] = a[j];
|
253
|
+
return r;
|
254
|
+
}
|
255
|
+
function __spreadArray(to, from, pack) {
|
256
|
+
if (pack || arguments.length === 2)
|
257
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
258
|
+
if (ar || !(i in from)) {
|
259
|
+
if (!ar)
|
260
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
261
|
+
ar[i] = from[i];
|
262
|
+
}
|
263
|
+
}
|
264
|
+
return to.concat(ar || from);
|
265
|
+
}
|
266
|
+
function __await(v) {
|
267
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
268
|
+
}
|
269
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
270
|
+
if (!Symbol.asyncIterator)
|
271
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
272
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
273
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
274
|
+
function verb(n) { if (g[n])
|
275
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
276
|
+
function resume(n, v) { try {
|
277
|
+
step(g[n](v));
|
278
|
+
}
|
279
|
+
catch (e) {
|
280
|
+
settle(q[0][3], e);
|
281
|
+
} }
|
282
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
283
|
+
function fulfill(value) { resume("next", value); }
|
284
|
+
function reject(value) { resume("throw", value); }
|
285
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
286
|
+
resume(q[0][0], q[0][1]); }
|
287
|
+
}
|
288
|
+
function __asyncDelegator(o) {
|
289
|
+
var i, p;
|
290
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
291
|
+
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; }
|
292
|
+
}
|
293
|
+
function __asyncValues(o) {
|
294
|
+
if (!Symbol.asyncIterator)
|
295
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
296
|
+
var m = o[Symbol.asyncIterator], i;
|
297
|
+
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);
|
298
|
+
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); }); }; }
|
299
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
300
|
+
}
|
301
|
+
function __makeTemplateObject(cooked, raw) {
|
302
|
+
if (Object.defineProperty) {
|
303
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
304
|
+
}
|
305
|
+
else {
|
306
|
+
cooked.raw = raw;
|
307
|
+
}
|
308
|
+
return cooked;
|
309
|
+
}
|
310
|
+
;
|
311
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
312
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
313
|
+
}) : function (o, v) {
|
314
|
+
o["default"] = v;
|
315
|
+
};
|
316
|
+
function __importStar(mod) {
|
317
|
+
if (mod && mod.__esModule)
|
318
|
+
return mod;
|
319
|
+
var result = {};
|
320
|
+
if (mod != null)
|
321
|
+
for (var k in mod)
|
322
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
323
|
+
__createBinding(result, mod, k);
|
324
|
+
__setModuleDefault(result, mod);
|
325
|
+
return result;
|
326
|
+
}
|
327
|
+
function __importDefault(mod) {
|
328
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
329
|
+
}
|
330
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
331
|
+
if (kind === "a" && !f)
|
332
|
+
throw new TypeError("Private accessor was defined without a getter");
|
333
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
334
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
335
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
336
|
+
}
|
337
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
338
|
+
if (kind === "m")
|
339
|
+
throw new TypeError("Private method is not writable");
|
340
|
+
if (kind === "a" && !f)
|
341
|
+
throw new TypeError("Private accessor was defined without a setter");
|
342
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
343
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
344
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
345
|
+
}
|
492
346
|
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
347
|
+
var TUI = 'tui_interactive_';
|
348
|
+
/**
|
349
|
+
* The most basic class for interactive components
|
350
|
+
*/
|
351
|
+
var AbstractTuiInteractive = /** @class */ (function () {
|
352
|
+
function AbstractTuiInteractive() {
|
353
|
+
this.pseudoHover = null;
|
354
|
+
this.pseudoActive = null;
|
355
|
+
this.pseudoFocus = null;
|
356
|
+
/**
|
357
|
+
* Determines if component is focusable with keyboard.
|
358
|
+
*/
|
359
|
+
this.focusable = true;
|
360
|
+
this.nativeId = '';
|
361
|
+
/**
|
362
|
+
* Emits 'true' on focus and 'false' on blur.
|
363
|
+
*/
|
364
|
+
this.focusedChange = new i0.EventEmitter();
|
365
|
+
this.focusVisibleChange = new i0.EventEmitter();
|
366
|
+
this.focusVisible = false;
|
367
|
+
this.autoIdString = "" + TUI + AbstractTuiInteractive.autoId++ + Date.now();
|
368
|
+
}
|
369
|
+
Object.defineProperty(AbstractTuiInteractive.prototype, "computedDisabled", {
|
370
|
+
get: function () {
|
371
|
+
return this.disabled;
|
372
|
+
},
|
373
|
+
enumerable: false,
|
374
|
+
configurable: true
|
375
|
+
});
|
376
|
+
Object.defineProperty(AbstractTuiInteractive.prototype, "computedFocusable", {
|
377
|
+
get: function () {
|
378
|
+
return !this.computedDisabled && (this.focusable || this.focused);
|
379
|
+
},
|
380
|
+
enumerable: false,
|
381
|
+
configurable: true
|
382
|
+
});
|
383
|
+
Object.defineProperty(AbstractTuiInteractive.prototype, "computedFocused", {
|
384
|
+
get: function () {
|
385
|
+
var _a;
|
386
|
+
return !this.computedDisabled && ((_a = this.pseudoFocus) !== null && _a !== void 0 ? _a : this.focused);
|
387
|
+
},
|
388
|
+
enumerable: false,
|
389
|
+
configurable: true
|
390
|
+
});
|
391
|
+
Object.defineProperty(AbstractTuiInteractive.prototype, "computedFocusVisible", {
|
392
|
+
get: function () {
|
393
|
+
var _a;
|
394
|
+
return !this.computedDisabled && ((_a = this.pseudoFocus) !== null && _a !== void 0 ? _a : this.focusVisible);
|
395
|
+
},
|
396
|
+
enumerable: false,
|
397
|
+
configurable: true
|
398
|
+
});
|
399
|
+
Object.defineProperty(AbstractTuiInteractive.prototype, "id", {
|
400
|
+
// TODO: 3.0 Consider removing since native input is exposed
|
401
|
+
get: function () {
|
402
|
+
return this.nativeId || this.autoIdString;
|
403
|
+
},
|
404
|
+
enumerable: false,
|
405
|
+
configurable: true
|
406
|
+
});
|
407
|
+
AbstractTuiInteractive.prototype.updateFocused = function (focused) {
|
408
|
+
this.focusedChange.emit(focused);
|
409
|
+
};
|
410
|
+
AbstractTuiInteractive.prototype.updateFocusVisible = function (focusVisible) {
|
411
|
+
if (this.focusVisible === focusVisible) {
|
412
|
+
return;
|
413
|
+
}
|
414
|
+
this.focusVisible = focusVisible;
|
415
|
+
this.focusVisibleChange.emit(focusVisible);
|
416
|
+
};
|
417
|
+
return AbstractTuiInteractive;
|
418
|
+
}());
|
419
|
+
AbstractTuiInteractive.autoId = 0;
|
420
|
+
AbstractTuiInteractive.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiInteractive, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
421
|
+
AbstractTuiInteractive.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiInteractive, inputs: { pseudoHover: "pseudoHover", pseudoActive: "pseudoActive", pseudoFocus: "pseudoFocus", focusable: "focusable", nativeId: "nativeId" }, outputs: { focusedChange: "focusedChange", focusVisibleChange: "focusVisibleChange" }, host: { properties: { "attr.data-focused": "this.pseudoFocus", "class._disabled": "this.computedDisabled", "class._focused": "this.computedFocused", "class._focus-visible": "this.computedFocusVisible" } }, ngImport: i0__namespace });
|
422
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiInteractive, decorators: [{
|
423
|
+
type: i0.Directive
|
424
|
+
}], ctorParameters: function () { return []; }, propDecorators: { pseudoHover: [{
|
425
|
+
type: i0.Input
|
426
|
+
}], pseudoActive: [{
|
427
|
+
type: i0.Input
|
428
|
+
}], pseudoFocus: [{
|
429
|
+
type: i0.Input
|
430
|
+
}, {
|
431
|
+
type: i0.HostBinding,
|
432
|
+
args: ['attr.data-focused']
|
433
|
+
}], focusable: [{
|
434
|
+
type: i0.Input
|
435
|
+
}], nativeId: [{
|
436
|
+
type: i0.Input
|
437
|
+
}], focusedChange: [{
|
438
|
+
type: i0.Output
|
439
|
+
}], focusVisibleChange: [{
|
440
|
+
type: i0.Output
|
441
|
+
}], computedDisabled: [{
|
442
|
+
type: i0.HostBinding,
|
443
|
+
args: ['class._disabled']
|
444
|
+
}], computedFocused: [{
|
445
|
+
type: i0.HostBinding,
|
446
|
+
args: ['class._focused']
|
447
|
+
}], computedFocusVisible: [{
|
448
|
+
type: i0.HostBinding,
|
449
|
+
args: ['class._focus-visible']
|
450
|
+
}] } });
|
597
451
|
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
452
|
+
var AbstractTuiValueTransformer = /** @class */ (function () {
|
453
|
+
function AbstractTuiValueTransformer() {
|
454
|
+
}
|
455
|
+
return AbstractTuiValueTransformer;
|
456
|
+
}());
|
603
457
|
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
458
|
+
/**
|
459
|
+
* Basic ControlValueAccessor class to build form components upon
|
460
|
+
*/
|
461
|
+
var AbstractTuiControl = /** @class */ (function (_super) {
|
462
|
+
__extends(AbstractTuiControl, _super);
|
463
|
+
function AbstractTuiControl(ngControl, cdr, valueTransformer) {
|
464
|
+
var _this = _super.call(this) || this;
|
465
|
+
_this.ngControl = ngControl;
|
466
|
+
_this.cdr = cdr;
|
467
|
+
_this.valueTransformer = valueTransformer;
|
468
|
+
_this.refresh$ = new rxjs.Subject();
|
469
|
+
_this.onTouched = constants.EMPTY_FUNCTION;
|
470
|
+
_this.onChange = constants.EMPTY_FUNCTION;
|
471
|
+
_this.fallbackValue = _this.getFallbackValue();
|
472
|
+
_this.destroy$ = new rxjs.Subject();
|
473
|
+
_this.readOnly = false;
|
474
|
+
_this.pseudoInvalid = null;
|
475
|
+
if (ngDevMode && _this.ngControl === null) {
|
476
|
+
classes.tuiAssert.assert(false, "NgControl not injected in " + _this.constructor.name + "!\n", 'Use [(ngModel)] or [formControl] or formControlName for correct work.');
|
477
|
+
}
|
478
|
+
if (_this.ngControl) {
|
479
|
+
_this.ngControl.valueAccessor = _this;
|
480
|
+
}
|
481
|
+
return _this;
|
482
|
+
}
|
483
|
+
Object.defineProperty(AbstractTuiControl.prototype, "computedInvalid", {
|
484
|
+
get: function () {
|
485
|
+
return (this.interactive &&
|
486
|
+
(this.pseudoInvalid !== null
|
487
|
+
? this.pseudoInvalid
|
488
|
+
: this.touched && this.invalid));
|
489
|
+
},
|
490
|
+
enumerable: false,
|
491
|
+
configurable: true
|
492
|
+
});
|
493
|
+
Object.defineProperty(AbstractTuiControl.prototype, "value", {
|
494
|
+
get: function () {
|
495
|
+
var _a;
|
496
|
+
return (_a = this.previousInternalValue) !== null && _a !== void 0 ? _a : this.fallbackValue;
|
497
|
+
},
|
498
|
+
set: function (value) {
|
499
|
+
this.updateValue(value);
|
500
|
+
},
|
501
|
+
enumerable: false,
|
502
|
+
configurable: true
|
503
|
+
});
|
504
|
+
Object.defineProperty(AbstractTuiControl.prototype, "safeCurrentValue", {
|
505
|
+
get: function () {
|
506
|
+
var _a;
|
507
|
+
return (_a = this.rawValue) !== null && _a !== void 0 ? _a : this.fallbackValue;
|
508
|
+
},
|
509
|
+
enumerable: false,
|
510
|
+
configurable: true
|
511
|
+
});
|
512
|
+
Object.defineProperty(AbstractTuiControl.prototype, "invalid", {
|
513
|
+
get: function () {
|
514
|
+
return this.safeNgControlData(function (_d) {
|
515
|
+
var invalid = _d.invalid;
|
516
|
+
return invalid;
|
517
|
+
}, false);
|
518
|
+
},
|
519
|
+
enumerable: false,
|
520
|
+
configurable: true
|
521
|
+
});
|
522
|
+
Object.defineProperty(AbstractTuiControl.prototype, "valid", {
|
523
|
+
get: function () {
|
524
|
+
return this.safeNgControlData(function (_d) {
|
525
|
+
var valid = _d.valid;
|
526
|
+
return valid;
|
527
|
+
}, false);
|
528
|
+
},
|
529
|
+
enumerable: false,
|
530
|
+
configurable: true
|
531
|
+
});
|
532
|
+
Object.defineProperty(AbstractTuiControl.prototype, "touched", {
|
533
|
+
get: function () {
|
534
|
+
return this.safeNgControlData(function (_d) {
|
535
|
+
var touched = _d.touched;
|
536
|
+
return touched;
|
537
|
+
}, false);
|
538
|
+
},
|
539
|
+
enumerable: false,
|
540
|
+
configurable: true
|
541
|
+
});
|
542
|
+
Object.defineProperty(AbstractTuiControl.prototype, "disabled", {
|
543
|
+
get: function () {
|
544
|
+
return this.safeNgControlData(function (_d) {
|
545
|
+
var disabled = _d.disabled;
|
546
|
+
return disabled;
|
547
|
+
}, false);
|
548
|
+
},
|
549
|
+
enumerable: false,
|
550
|
+
configurable: true
|
551
|
+
});
|
552
|
+
Object.defineProperty(AbstractTuiControl.prototype, "interactive", {
|
553
|
+
get: function () {
|
554
|
+
return !this.readOnly && !this.computedDisabled;
|
555
|
+
},
|
556
|
+
enumerable: false,
|
557
|
+
configurable: true
|
558
|
+
});
|
559
|
+
Object.defineProperty(AbstractTuiControl.prototype, "control", {
|
560
|
+
get: function () {
|
561
|
+
return this.safeNgControlData(function (_d) {
|
562
|
+
var control = _d.control;
|
563
|
+
return control;
|
564
|
+
}, null);
|
565
|
+
},
|
566
|
+
enumerable: false,
|
567
|
+
configurable: true
|
568
|
+
});
|
569
|
+
Object.defineProperty(AbstractTuiControl.prototype, "computedName", {
|
570
|
+
get: function () {
|
571
|
+
var _a, _b;
|
572
|
+
return (_b = (_a = this.controlName) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : null;
|
573
|
+
},
|
574
|
+
enumerable: false,
|
575
|
+
configurable: true
|
576
|
+
});
|
577
|
+
Object.defineProperty(AbstractTuiControl.prototype, "controlName", {
|
578
|
+
get: function () {
|
579
|
+
var _a, _b, _c;
|
580
|
+
return (_c = (_b = (_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : null;
|
581
|
+
},
|
582
|
+
enumerable: false,
|
583
|
+
configurable: true
|
584
|
+
});
|
585
|
+
Object.defineProperty(AbstractTuiControl.prototype, "rawValue", {
|
586
|
+
get: function () {
|
587
|
+
var ngControl = this.ngControl;
|
588
|
+
if (ngControl === null) {
|
589
|
+
return undefined;
|
590
|
+
}
|
591
|
+
var controlValue = ngControl instanceof i1.NgModel && this.previousInternalValue === undefined
|
592
|
+
? ngControl.viewModel
|
593
|
+
: ngControl.value;
|
594
|
+
return this.fromControlValue(controlValue);
|
595
|
+
},
|
596
|
+
enumerable: false,
|
597
|
+
configurable: true
|
598
|
+
});
|
599
|
+
AbstractTuiControl.prototype.ngOnInit = function () {
|
600
|
+
var _this = this;
|
601
|
+
this.refresh$
|
602
|
+
.pipe(operators.delay(0), operators.startWith(null), operators.map(function () { var _a; return (_a = _this.ngControl) === null || _a === void 0 ? void 0 : _a.control; }), operators.filter(utils.tuiIsPresent), operators.distinctUntilChanged(), operators.switchMap(function (control) { return rxjs.merge(control.valueChanges, control.statusChanges); }), operators.takeUntil(this.destroy$))
|
603
|
+
.subscribe(function () {
|
604
|
+
_this.refreshLocalValue(_this.safeCurrentValue);
|
605
|
+
});
|
606
|
+
};
|
607
|
+
AbstractTuiControl.prototype.ngOnDestroy = function () {
|
608
|
+
this.destroy$.next();
|
609
|
+
this.destroy$.complete();
|
610
|
+
};
|
611
|
+
AbstractTuiControl.prototype.checkControlUpdate = function () {
|
612
|
+
this.cdr.markForCheck();
|
613
|
+
};
|
614
|
+
AbstractTuiControl.prototype.registerOnChange = function (onChange) {
|
615
|
+
var _this = this;
|
616
|
+
this.onChange = function (componentValue) {
|
617
|
+
onChange(_this.toControlValue(componentValue));
|
618
|
+
};
|
619
|
+
this.refresh$.next();
|
620
|
+
};
|
621
|
+
AbstractTuiControl.prototype.registerOnTouched = function (onTouched) {
|
622
|
+
this.onTouched = onTouched;
|
623
|
+
};
|
624
|
+
AbstractTuiControl.prototype.setDisabledState = function () {
|
625
|
+
this.checkControlUpdate();
|
626
|
+
};
|
627
|
+
AbstractTuiControl.prototype.writeValue = function (value) {
|
628
|
+
var controlValue = this.ngControl instanceof i1.NgModel && this.previousInternalValue === undefined
|
629
|
+
? this.ngControl.model
|
630
|
+
: value;
|
631
|
+
this.refreshLocalValue(this.fromControlValue(controlValue));
|
632
|
+
};
|
633
|
+
AbstractTuiControl.prototype.updateFocused = function (focused) {
|
634
|
+
if (!focused) {
|
635
|
+
this.controlMarkAsTouched();
|
636
|
+
}
|
637
|
+
_super.prototype.updateFocused.call(this, focused);
|
638
|
+
};
|
639
|
+
/**
|
640
|
+
* @deprecated use `value` setter
|
641
|
+
*/
|
642
|
+
AbstractTuiControl.prototype.updateValue = function (value) {
|
643
|
+
if (this.disabled || this.valueIdenticalComparator(this.value, value)) {
|
644
|
+
return;
|
645
|
+
}
|
646
|
+
this.previousInternalValue = value;
|
647
|
+
this.controlSetValue(value);
|
648
|
+
};
|
649
|
+
AbstractTuiControl.prototype.valueIdenticalComparator = function (oldValue, newValue) {
|
650
|
+
return oldValue === newValue;
|
651
|
+
};
|
652
|
+
AbstractTuiControl.prototype.safeNgControlData = function (extractor, defaultFieldValue) {
|
653
|
+
var _a;
|
654
|
+
return (_a = (this.ngControl && extractor(this.ngControl))) !== null && _a !== void 0 ? _a : defaultFieldValue;
|
655
|
+
};
|
656
|
+
AbstractTuiControl.prototype.controlMarkAsTouched = function () {
|
657
|
+
this.onTouched();
|
658
|
+
this.checkControlUpdate();
|
659
|
+
};
|
660
|
+
AbstractTuiControl.prototype.controlSetValue = function (value) {
|
661
|
+
this.onChange(value);
|
662
|
+
this.checkControlUpdate();
|
663
|
+
};
|
664
|
+
AbstractTuiControl.prototype.refreshLocalValue = function (value) {
|
665
|
+
this.previousInternalValue = value;
|
666
|
+
this.checkControlUpdate();
|
667
|
+
};
|
668
|
+
AbstractTuiControl.prototype.fromControlValue = function (controlValue) {
|
669
|
+
return this.valueTransformer
|
670
|
+
? this.valueTransformer.fromControlValue(controlValue)
|
671
|
+
: controlValue;
|
672
|
+
};
|
673
|
+
AbstractTuiControl.prototype.toControlValue = function (componentValue) {
|
674
|
+
return this.valueTransformer
|
675
|
+
? this.valueTransformer.toControlValue(componentValue)
|
676
|
+
: componentValue;
|
677
|
+
};
|
678
|
+
return AbstractTuiControl;
|
679
|
+
}(AbstractTuiInteractive));
|
680
|
+
AbstractTuiControl.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiControl, deps: [{ token: i1__namespace.NgControl, optional: true }, { token: i0__namespace.ChangeDetectorRef }, { token: AbstractTuiValueTransformer, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
681
|
+
AbstractTuiControl.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiControl, inputs: { readOnly: "readOnly", pseudoInvalid: "pseudoInvalid" }, host: { properties: { "class._readonly": "this.readOnly", "class._invalid": "this.computedInvalid" } }, usesInheritance: true, ngImport: i0__namespace });
|
682
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiControl, decorators: [{
|
683
|
+
type: i0.Directive
|
684
|
+
}], ctorParameters: function () {
|
685
|
+
return [{ type: i1__namespace.NgControl, decorators: [{
|
686
|
+
type: i0.Optional
|
687
|
+
}] }, { type: i0__namespace.ChangeDetectorRef }, { type: undefined, decorators: [{
|
688
|
+
type: i0.Optional
|
689
|
+
}, {
|
690
|
+
type: i0.Inject,
|
691
|
+
args: [AbstractTuiValueTransformer]
|
692
|
+
}] }];
|
693
|
+
}, propDecorators: { readOnly: [{
|
694
|
+
type: i0.Input
|
695
|
+
}, {
|
696
|
+
type: i0.HostBinding,
|
697
|
+
args: ['class._readonly']
|
698
|
+
}], pseudoInvalid: [{
|
699
|
+
type: i0.Input
|
700
|
+
}], computedInvalid: [{
|
701
|
+
type: i0.HostBinding,
|
702
|
+
args: ['class._invalid']
|
703
|
+
}] } });
|
704
|
+
function tuiAsControl(useExisting) {
|
705
|
+
return {
|
706
|
+
provide: AbstractTuiControl,
|
707
|
+
useExisting: useExisting,
|
708
|
+
};
|
709
|
+
}
|
856
710
|
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
711
|
+
var AbstractTuiController = /** @class */ (function () {
|
712
|
+
function AbstractTuiController() {
|
713
|
+
this.change$ = new rxjs.Subject();
|
714
|
+
}
|
715
|
+
AbstractTuiController.prototype.ngOnChanges = function () {
|
716
|
+
this.change$.next();
|
717
|
+
};
|
718
|
+
return AbstractTuiController;
|
719
|
+
}());
|
720
|
+
AbstractTuiController.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiController, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
721
|
+
AbstractTuiController.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiController, usesOnChanges: true, ngImport: i0__namespace });
|
722
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiController, decorators: [{
|
723
|
+
type: i0.Directive
|
724
|
+
}] });
|
871
725
|
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
} });
|
726
|
+
var AbstractTuiDialogService = /** @class */ (function (_super) {
|
727
|
+
__extends(AbstractTuiDialogService, _super);
|
728
|
+
function AbstractTuiDialogService(idService) {
|
729
|
+
var _this = _super.call(this, function (observer) { return _this.dialogs$.subscribe(observer); }) || this;
|
730
|
+
_this.idService = idService;
|
731
|
+
_this.dialogs$ = new rxjs.BehaviorSubject([]);
|
732
|
+
return _this;
|
733
|
+
}
|
734
|
+
AbstractTuiDialogService.prototype.open = function (content, options) {
|
735
|
+
var _this = this;
|
736
|
+
if (options === void 0) { options = {}; }
|
737
|
+
return new rxjs.Observable(function (observer) {
|
738
|
+
var completeWith = function (result) {
|
739
|
+
observer.next(result);
|
740
|
+
observer.complete();
|
741
|
+
};
|
742
|
+
var dialog = Object.assign(Object.assign(Object.assign({}, _this.defaultOptions), options), { content: content, completeWith: completeWith, $implicit: observer, component: _this.component, createdAt: Date.now(), id: _this.idService.generate() });
|
743
|
+
_this.dialogs$.next(__spreadArray(__spreadArray([], __read(_this.dialogs$.value)), [dialog]));
|
744
|
+
return function () {
|
745
|
+
_this.dialogs$.next(_this.dialogs$.value.filter(function (item) { return item !== dialog; }));
|
746
|
+
};
|
747
|
+
});
|
748
|
+
};
|
749
|
+
return AbstractTuiDialogService;
|
750
|
+
}(rxjs.Observable));
|
751
|
+
AbstractTuiDialogService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiDialogService, deps: [{ token: i1$1.TuiIdService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
752
|
+
AbstractTuiDialogService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiDialogService });
|
753
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiDialogService, decorators: [{
|
754
|
+
type: i0.Injectable
|
755
|
+
}], ctorParameters: function () {
|
756
|
+
return [{ type: i1__namespace$1.TuiIdService, decorators: [{
|
757
|
+
type: i0.Inject,
|
758
|
+
args: [i1$1.TuiIdService]
|
759
|
+
}] }];
|
760
|
+
} });
|
908
761
|
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
762
|
+
var AbstractTuiDialogDirective = /** @class */ (function (_super) {
|
763
|
+
__extends(AbstractTuiDialogDirective, _super);
|
764
|
+
function AbstractTuiDialogDirective(templateRef, cdr, service) {
|
765
|
+
var _this = _super.call(this, templateRef, cdr) || this;
|
766
|
+
_this.service = service;
|
767
|
+
_this.open$ = new rxjs.Subject();
|
768
|
+
_this.options = {};
|
769
|
+
_this.open = false;
|
770
|
+
_this.openChange = _this.open$.pipe(operators.distinctUntilChanged(), observables.tuiIfMap(function () { return _this.service.open(_this, _this.options).pipe(operators.ignoreElements(), operators.endWith(false)); }), operators.share());
|
771
|
+
return _this;
|
772
|
+
}
|
773
|
+
AbstractTuiDialogDirective.prototype.ngOnChanges = function () {
|
774
|
+
this.open$.next(this.open);
|
775
|
+
};
|
776
|
+
return AbstractTuiDialogDirective;
|
777
|
+
}(ngPolymorpheus.PolymorpheusTemplate));
|
778
|
+
AbstractTuiDialogDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiDialogDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ChangeDetectorRef }, { token: AbstractTuiDialogService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
779
|
+
AbstractTuiDialogDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiDialogDirective, usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace });
|
780
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiDialogDirective, decorators: [{
|
781
|
+
type: i0.Directive
|
782
|
+
}], ctorParameters: function () {
|
783
|
+
return [{ type: i0__namespace.TemplateRef, decorators: [{
|
784
|
+
type: i0.Inject,
|
785
|
+
args: [i0.TemplateRef]
|
786
|
+
}] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
|
787
|
+
type: i0.Inject,
|
788
|
+
args: [i0.ChangeDetectorRef]
|
789
|
+
}] }, { type: AbstractTuiDialogService, decorators: [{
|
790
|
+
type: i0.Inject,
|
791
|
+
args: [AbstractTuiDialogService]
|
792
|
+
}] }];
|
793
|
+
} });
|
941
794
|
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
795
|
+
var AbstractTuiMultipleControl = /** @class */ (function (_super) {
|
796
|
+
__extends(AbstractTuiMultipleControl, _super);
|
797
|
+
function AbstractTuiMultipleControl() {
|
798
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
799
|
+
}
|
800
|
+
AbstractTuiMultipleControl.prototype.clear = function () {
|
801
|
+
this.value = [];
|
802
|
+
};
|
803
|
+
AbstractTuiMultipleControl.prototype.getFallbackValue = function () {
|
804
|
+
return [];
|
805
|
+
};
|
806
|
+
return AbstractTuiMultipleControl;
|
807
|
+
}(AbstractTuiControl));
|
808
|
+
AbstractTuiMultipleControl.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiMultipleControl, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
809
|
+
AbstractTuiMultipleControl.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiMultipleControl, usesInheritance: true, ngImport: i0__namespace });
|
810
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiMultipleControl, decorators: [{
|
811
|
+
type: i0.Directive
|
812
|
+
}] });
|
960
813
|
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
814
|
+
var AbstractTuiNullableControl = /** @class */ (function (_super) {
|
815
|
+
__extends(AbstractTuiNullableControl, _super);
|
816
|
+
function AbstractTuiNullableControl() {
|
817
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
818
|
+
}
|
819
|
+
AbstractTuiNullableControl.prototype.getFallbackValue = function () {
|
820
|
+
return null;
|
821
|
+
};
|
822
|
+
return AbstractTuiNullableControl;
|
823
|
+
}(AbstractTuiControl));
|
824
|
+
AbstractTuiNullableControl.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiNullableControl, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
825
|
+
AbstractTuiNullableControl.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiNullableControl, usesInheritance: true, ngImport: i0__namespace });
|
826
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiNullableControl, decorators: [{
|
827
|
+
type: i0.Directive
|
828
|
+
}] });
|
976
829
|
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
830
|
+
/**
|
831
|
+
* Abstract service for displaying portals
|
832
|
+
*/
|
833
|
+
var AbstractTuiPortalService = /** @class */ (function () {
|
834
|
+
function AbstractTuiPortalService() {
|
835
|
+
}
|
836
|
+
Object.defineProperty(AbstractTuiPortalService.prototype, "safeHost", {
|
837
|
+
get: function () {
|
838
|
+
if (!this.host) {
|
839
|
+
throw new exceptions.TuiNoHostException();
|
840
|
+
}
|
841
|
+
return this.host;
|
842
|
+
},
|
843
|
+
enumerable: false,
|
844
|
+
configurable: true
|
845
|
+
});
|
846
|
+
AbstractTuiPortalService.prototype.attach = function (host) {
|
847
|
+
this.host = host;
|
848
|
+
};
|
849
|
+
AbstractTuiPortalService.prototype.add = function (component) {
|
850
|
+
return this.safeHost.addComponentChild(component);
|
851
|
+
};
|
852
|
+
AbstractTuiPortalService.prototype.remove = function (_a) {
|
853
|
+
var hostView = _a.hostView;
|
854
|
+
if (!hostView.destroyed) {
|
855
|
+
hostView.destroy();
|
856
|
+
}
|
857
|
+
};
|
858
|
+
AbstractTuiPortalService.prototype.addTemplate = function (templateRef, context) {
|
859
|
+
return this.safeHost.addTemplateChild(templateRef, context);
|
860
|
+
};
|
861
|
+
AbstractTuiPortalService.prototype.removeTemplate = function (viewRef) {
|
862
|
+
if (!viewRef.destroyed) {
|
863
|
+
viewRef.destroy();
|
864
|
+
}
|
865
|
+
};
|
866
|
+
return AbstractTuiPortalService;
|
867
|
+
}());
|
868
|
+
AbstractTuiPortalService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiPortalService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
869
|
+
AbstractTuiPortalService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiPortalService });
|
870
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiPortalService, decorators: [{
|
871
|
+
type: i0.Injectable
|
872
|
+
}] });
|
1020
873
|
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
874
|
+
/**
|
875
|
+
* Abstract class for host element for dynamically created portals.
|
876
|
+
*/
|
877
|
+
var AbstractTuiPortalHostComponent = /** @class */ (function () {
|
878
|
+
function AbstractTuiPortalHostComponent(injector, el, portalService) {
|
879
|
+
this.injector = injector;
|
880
|
+
this.el = el;
|
881
|
+
portalService.attach(this);
|
882
|
+
}
|
883
|
+
Object.defineProperty(AbstractTuiPortalHostComponent.prototype, "clientRect", {
|
884
|
+
/** @deprecated unused, will be removed in 4.0 **/
|
885
|
+
get: function () {
|
886
|
+
return this.el.nativeElement.getBoundingClientRect();
|
887
|
+
},
|
888
|
+
enumerable: false,
|
889
|
+
configurable: true
|
890
|
+
});
|
891
|
+
AbstractTuiPortalHostComponent.prototype.addComponentChild = function (component) {
|
892
|
+
var parent = component.createInjector(this.injector);
|
893
|
+
var resolver = parent.get(i0.ComponentFactoryResolver);
|
894
|
+
var factory = resolver.resolveComponentFactory(component.component);
|
895
|
+
// TODO: Remove in 4.0
|
896
|
+
var providers = [{ provide: AbstractTuiPortalHostComponent, useValue: this }];
|
897
|
+
var injector = i0.Injector.create({ parent: parent, providers: providers });
|
898
|
+
var ref = this.vcr.createComponent(factory, undefined, injector);
|
899
|
+
ref.changeDetectorRef.detectChanges();
|
900
|
+
return ref;
|
901
|
+
};
|
902
|
+
AbstractTuiPortalHostComponent.prototype.addTemplateChild = function (templateRef, context) {
|
903
|
+
return this.vcr.createEmbeddedView(templateRef, context);
|
904
|
+
};
|
905
|
+
return AbstractTuiPortalHostComponent;
|
906
|
+
}());
|
907
|
+
AbstractTuiPortalHostComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiPortalHostComponent, deps: [{ token: i0.INJECTOR }, { token: i0.ElementRef }, { token: AbstractTuiPortalService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
908
|
+
AbstractTuiPortalHostComponent.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiPortalHostComponent, viewQueries: [{ propertyName: "vcr", first: true, predicate: ["viewContainer"], descendants: true, read: i0.ViewContainerRef }], ngImport: i0__namespace });
|
909
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiPortalHostComponent, decorators: [{
|
910
|
+
type: i0.Directive
|
911
|
+
}], ctorParameters: function () {
|
912
|
+
return [{ type: i0__namespace.Injector, decorators: [{
|
913
|
+
type: i0.Inject,
|
914
|
+
args: [i0.INJECTOR]
|
915
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
916
|
+
type: i0.Inject,
|
917
|
+
args: [i0.ElementRef]
|
918
|
+
}] }, { type: AbstractTuiPortalService, decorators: [{
|
919
|
+
type: i0.Inject,
|
920
|
+
args: [AbstractTuiPortalService]
|
921
|
+
}] }];
|
922
|
+
}, propDecorators: { vcr: [{
|
923
|
+
type: i0.ViewChild,
|
924
|
+
args: ['viewContainer', { read: i0.ViewContainerRef }]
|
925
|
+
}] } });
|
1073
926
|
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
927
|
+
/**
|
928
|
+
* Use this abstract class to create your own toggleable themes.
|
929
|
+
* A component extending this class must have CSS variables definitions
|
930
|
+
* and have ViewEncapsulation set to NONE. A boolean input allows to
|
931
|
+
* switch theme on or off.
|
932
|
+
*/
|
933
|
+
var AbstractTuiThemeSwitcher = /** @class */ (function () {
|
934
|
+
function AbstractTuiThemeSwitcher(doc) {
|
935
|
+
this.doc = doc;
|
936
|
+
if (this.style !== null) {
|
937
|
+
this.addTheme();
|
938
|
+
return;
|
939
|
+
}
|
940
|
+
var styles = this.doc.head.querySelectorAll('style');
|
941
|
+
this.constructor.style =
|
942
|
+
styles[styles.length - 1];
|
943
|
+
}
|
944
|
+
Object.defineProperty(AbstractTuiThemeSwitcher.prototype, "style", {
|
945
|
+
get: function () {
|
946
|
+
return this.constructor.style;
|
947
|
+
},
|
948
|
+
enumerable: false,
|
949
|
+
configurable: true
|
950
|
+
});
|
951
|
+
AbstractTuiThemeSwitcher.prototype.ngOnDestroy = function () {
|
952
|
+
this.removeTheme();
|
953
|
+
};
|
954
|
+
AbstractTuiThemeSwitcher.prototype.addTheme = function () {
|
955
|
+
if (this.style) {
|
956
|
+
this.doc.head.appendChild(this.style);
|
957
|
+
}
|
958
|
+
};
|
959
|
+
AbstractTuiThemeSwitcher.prototype.removeTheme = function () {
|
960
|
+
var _a;
|
961
|
+
(_a = this.style) === null || _a === void 0 ? void 0 : _a.remove();
|
962
|
+
};
|
963
|
+
return AbstractTuiThemeSwitcher;
|
964
|
+
}());
|
965
|
+
AbstractTuiThemeSwitcher.style = null;
|
966
|
+
AbstractTuiThemeSwitcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiThemeSwitcher, deps: [{ token: common.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
967
|
+
AbstractTuiThemeSwitcher.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiThemeSwitcher, ngImport: i0__namespace });
|
968
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiThemeSwitcher, decorators: [{
|
969
|
+
type: i0.Directive
|
970
|
+
}], ctorParameters: function () {
|
971
|
+
return [{ type: Document, decorators: [{
|
972
|
+
type: i0.Inject,
|
973
|
+
args: [common.DOCUMENT]
|
974
|
+
}] }];
|
975
|
+
} });
|
1123
976
|
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
977
|
+
/**
|
978
|
+
* Generated bundle index. Do not edit.
|
979
|
+
*/
|
1127
980
|
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
981
|
+
exports.AbstractTuiControl = AbstractTuiControl;
|
982
|
+
exports.AbstractTuiController = AbstractTuiController;
|
983
|
+
exports.AbstractTuiDialogDirective = AbstractTuiDialogDirective;
|
984
|
+
exports.AbstractTuiDialogService = AbstractTuiDialogService;
|
985
|
+
exports.AbstractTuiInteractive = AbstractTuiInteractive;
|
986
|
+
exports.AbstractTuiMultipleControl = AbstractTuiMultipleControl;
|
987
|
+
exports.AbstractTuiNullableControl = AbstractTuiNullableControl;
|
988
|
+
exports.AbstractTuiPortalHostComponent = AbstractTuiPortalHostComponent;
|
989
|
+
exports.AbstractTuiPortalService = AbstractTuiPortalService;
|
990
|
+
exports.AbstractTuiThemeSwitcher = AbstractTuiThemeSwitcher;
|
991
|
+
exports.AbstractTuiValueTransformer = AbstractTuiValueTransformer;
|
992
|
+
exports.tuiAsControl = tuiAsControl;
|
1140
993
|
|
1141
|
-
|
994
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
1142
995
|
|
1143
996
|
}));
|
1144
997
|
//# sourceMappingURL=taiga-ui-cdk-abstract.umd.js.map
|