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