@taiga-ui/cdk 3.86.0-canary.e2e0ae5 → 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 +1 -1
@@ -1,867 +1,1013 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@taiga-ui/cdk/observables'), require('rxjs/operators'), require('@ng-web-apis/common'), require('@taiga-ui/cdk/constants'), require('@taiga-ui/cdk/utils/dom'), require('@angular/common'), require('@ng-web-apis/resize-observer'), require('@taiga-ui/cdk/classes'), require('@taiga-ui/cdk/utils/math'), require('@taiga-ui/cdk/utils/miscellaneous'), require('rxjs/fetch'), require('@taiga-ui/cdk/tokens'), require('@taiga-ui/cdk/utils')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/cdk/services', ['exports', '@angular/core', 'rxjs', '@taiga-ui/cdk/observables', 'rxjs/operators', '@ng-web-apis/common', '@taiga-ui/cdk/constants', '@taiga-ui/cdk/utils/dom', '@angular/common', '@ng-web-apis/resize-observer', '@taiga-ui/cdk/classes', '@taiga-ui/cdk/utils/math', '@taiga-ui/cdk/utils/miscellaneous', 'rxjs/fetch', '@taiga-ui/cdk/tokens', '@taiga-ui/cdk/utils'], 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.services = {}), global.ng.core, global.rxjs, global["taiga-ui"].cdk.observables, global.rxjs.operators, global.common, global["taiga-ui"].cdk.constants, global["taiga-ui"].cdk.utils.dom, global.ng.common, global.resizeObserver, global["taiga-ui"].cdk.classes, global["taiga-ui"].cdk.utils.math, global["taiga-ui"].cdk.utils.miscellaneous, global.rxjs.fetch, global["taiga-ui"].cdk.tokens, global["taiga-ui"].cdk.utils));
|
5
5
|
})(this, (function (exports, i0, i1, observables, operators, common, constants, dom, common$1, resizeObserver, classes, math, miscellaneous, fetch$1, tokens, utils) { '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
|
-
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
27
27
|
|
28
|
-
|
29
|
-
|
28
|
+
/******************************************************************************
|
29
|
+
Copyright (c) Microsoft Corporation.
|
30
30
|
|
31
|
-
|
32
|
-
|
31
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
32
|
+
purpose with or without fee is hereby granted.
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
34
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
35
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
36
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
37
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
38
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
39
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
40
|
+
PERFORMANCE OF THIS SOFTWARE.
|
41
|
+
***************************************************************************** */
|
42
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
43
|
+
var extendStatics = function (d, b) {
|
44
|
+
extendStatics = Object.setPrototypeOf ||
|
45
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
46
|
+
function (d, b) { for (var p in b)
|
47
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
48
|
+
d[p] = b[p]; };
|
49
|
+
return extendStatics(d, b);
|
50
|
+
};
|
51
|
+
function __extends(d, b) {
|
52
|
+
if (typeof b !== "function" && b !== null)
|
53
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
54
|
+
extendStatics(d, b);
|
55
|
+
function __() { this.constructor = d; }
|
56
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
57
|
+
}
|
58
|
+
var __assign = function () {
|
59
|
+
__assign = Object.assign || function __assign(t) {
|
60
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
61
|
+
s = arguments[i];
|
62
|
+
for (var p in s)
|
63
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
64
|
+
t[p] = s[p];
|
65
|
+
}
|
66
|
+
return t;
|
67
|
+
};
|
68
|
+
return __assign.apply(this, arguments);
|
69
|
+
};
|
70
|
+
function __rest(s, e) {
|
71
|
+
var t = {};
|
72
|
+
for (var p in s)
|
73
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
74
|
+
t[p] = s[p];
|
75
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
76
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
77
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
78
|
+
t[p[i]] = s[p[i]];
|
79
|
+
}
|
80
|
+
return t;
|
81
|
+
}
|
82
|
+
function __decorate(decorators, target, key, desc) {
|
83
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
84
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
85
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
86
|
+
else
|
87
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
88
|
+
if (d = decorators[i])
|
89
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
90
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
91
|
+
}
|
92
|
+
function __param(paramIndex, decorator) {
|
93
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
94
|
+
}
|
95
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
96
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
97
|
+
throw new TypeError("Function expected"); return f; }
|
98
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
99
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
100
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
101
|
+
var _, done = false;
|
102
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
103
|
+
var context = {};
|
104
|
+
for (var p in contextIn)
|
105
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
106
|
+
for (var p in contextIn.access)
|
107
|
+
context.access[p] = contextIn.access[p];
|
108
|
+
context.addInitializer = function (f) { if (done)
|
109
|
+
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
110
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
111
|
+
if (kind === "accessor") {
|
112
|
+
if (result === void 0)
|
113
|
+
continue;
|
114
|
+
if (result === null || typeof result !== "object")
|
115
|
+
throw new TypeError("Object expected");
|
116
|
+
if (_ = accept(result.get))
|
117
|
+
descriptor.get = _;
|
118
|
+
if (_ = accept(result.set))
|
119
|
+
descriptor.set = _;
|
120
|
+
if (_ = accept(result.init))
|
121
|
+
initializers.unshift(_);
|
122
|
+
}
|
123
|
+
else if (_ = accept(result)) {
|
124
|
+
if (kind === "field")
|
125
|
+
initializers.unshift(_);
|
126
|
+
else
|
127
|
+
descriptor[key] = _;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
if (target)
|
131
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
132
|
+
done = true;
|
133
|
+
}
|
134
|
+
;
|
135
|
+
function __runInitializers(thisArg, initializers, value) {
|
136
|
+
var useValue = arguments.length > 2;
|
137
|
+
for (var i = 0; i < initializers.length; i++) {
|
138
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
139
|
+
}
|
140
|
+
return useValue ? value : void 0;
|
141
|
+
}
|
142
|
+
;
|
143
|
+
function __propKey(x) {
|
144
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
145
|
+
}
|
146
|
+
;
|
147
|
+
function __setFunctionName(f, name, prefix) {
|
148
|
+
if (typeof name === "symbol")
|
149
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
150
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
151
|
+
}
|
152
|
+
;
|
153
|
+
function __metadata(metadataKey, metadataValue) {
|
154
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
155
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
156
|
+
}
|
157
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
158
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
159
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
160
|
+
function fulfilled(value) { try {
|
161
|
+
step(generator.next(value));
|
162
|
+
}
|
163
|
+
catch (e) {
|
164
|
+
reject(e);
|
165
|
+
} }
|
166
|
+
function rejected(value) { try {
|
167
|
+
step(generator["throw"](value));
|
168
|
+
}
|
169
|
+
catch (e) {
|
170
|
+
reject(e);
|
171
|
+
} }
|
172
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
173
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
174
|
+
});
|
175
|
+
}
|
176
|
+
function __generator(thisArg, body) {
|
177
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
178
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
179
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
180
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
181
|
+
function step(op) {
|
182
|
+
if (f)
|
183
|
+
throw new TypeError("Generator is already executing.");
|
184
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
185
|
+
try {
|
186
|
+
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)
|
187
|
+
return t;
|
188
|
+
if (y = 0, t)
|
189
|
+
op = [op[0] & 2, t.value];
|
190
|
+
switch (op[0]) {
|
191
|
+
case 0:
|
192
|
+
case 1:
|
193
|
+
t = op;
|
194
|
+
break;
|
195
|
+
case 4:
|
196
|
+
_.label++;
|
197
|
+
return { value: op[1], done: false };
|
198
|
+
case 5:
|
199
|
+
_.label++;
|
200
|
+
y = op[1];
|
201
|
+
op = [0];
|
202
|
+
continue;
|
203
|
+
case 7:
|
204
|
+
op = _.ops.pop();
|
205
|
+
_.trys.pop();
|
206
|
+
continue;
|
207
|
+
default:
|
208
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
209
|
+
_ = 0;
|
210
|
+
continue;
|
211
|
+
}
|
212
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
213
|
+
_.label = op[1];
|
214
|
+
break;
|
215
|
+
}
|
216
|
+
if (op[0] === 6 && _.label < t[1]) {
|
217
|
+
_.label = t[1];
|
218
|
+
t = op;
|
219
|
+
break;
|
220
|
+
}
|
221
|
+
if (t && _.label < t[2]) {
|
222
|
+
_.label = t[2];
|
223
|
+
_.ops.push(op);
|
224
|
+
break;
|
225
|
+
}
|
226
|
+
if (t[2])
|
227
|
+
_.ops.pop();
|
228
|
+
_.trys.pop();
|
229
|
+
continue;
|
230
|
+
}
|
231
|
+
op = body.call(thisArg, _);
|
232
|
+
}
|
233
|
+
catch (e) {
|
234
|
+
op = [6, e];
|
235
|
+
y = 0;
|
236
|
+
}
|
237
|
+
finally {
|
238
|
+
f = t = 0;
|
239
|
+
}
|
240
|
+
if (op[0] & 5)
|
241
|
+
throw op[1];
|
242
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
243
|
+
}
|
244
|
+
}
|
245
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
246
|
+
if (k2 === undefined)
|
247
|
+
k2 = k;
|
248
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
249
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
250
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
251
|
+
}
|
252
|
+
Object.defineProperty(o, k2, desc);
|
253
|
+
}) : (function (o, m, k, k2) {
|
254
|
+
if (k2 === undefined)
|
255
|
+
k2 = k;
|
256
|
+
o[k2] = m[k];
|
257
|
+
});
|
258
|
+
function __exportStar(m, o) {
|
259
|
+
for (var p in m)
|
260
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
261
|
+
__createBinding(o, m, p);
|
262
|
+
}
|
263
|
+
function __values(o) {
|
264
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
265
|
+
if (m)
|
266
|
+
return m.call(o);
|
267
|
+
if (o && typeof o.length === "number")
|
268
|
+
return {
|
269
|
+
next: function () {
|
270
|
+
if (o && i >= o.length)
|
271
|
+
o = void 0;
|
272
|
+
return { value: o && o[i++], done: !o };
|
273
|
+
}
|
274
|
+
};
|
275
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
276
|
+
}
|
277
|
+
function __read(o, n) {
|
278
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
279
|
+
if (!m)
|
280
|
+
return o;
|
281
|
+
var i = m.call(o), r, ar = [], e;
|
282
|
+
try {
|
283
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
284
|
+
ar.push(r.value);
|
285
|
+
}
|
286
|
+
catch (error) {
|
287
|
+
e = { error: error };
|
288
|
+
}
|
289
|
+
finally {
|
290
|
+
try {
|
291
|
+
if (r && !r.done && (m = i["return"]))
|
292
|
+
m.call(i);
|
293
|
+
}
|
294
|
+
finally {
|
295
|
+
if (e)
|
296
|
+
throw e.error;
|
297
|
+
}
|
298
|
+
}
|
299
|
+
return ar;
|
300
|
+
}
|
301
|
+
/** @deprecated */
|
302
|
+
function __spread() {
|
303
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
304
|
+
ar = ar.concat(__read(arguments[i]));
|
305
|
+
return ar;
|
306
|
+
}
|
307
|
+
/** @deprecated */
|
308
|
+
function __spreadArrays() {
|
309
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
310
|
+
s += arguments[i].length;
|
311
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
312
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
313
|
+
r[k] = a[j];
|
314
|
+
return r;
|
315
|
+
}
|
316
|
+
function __spreadArray(to, from, pack) {
|
317
|
+
if (pack || arguments.length === 2)
|
318
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
319
|
+
if (ar || !(i in from)) {
|
320
|
+
if (!ar)
|
321
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
322
|
+
ar[i] = from[i];
|
323
|
+
}
|
324
|
+
}
|
325
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
326
|
+
}
|
327
|
+
function __await(v) {
|
328
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
329
|
+
}
|
330
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
331
|
+
if (!Symbol.asyncIterator)
|
332
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
333
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
334
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
335
|
+
function verb(n) { if (g[n])
|
336
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
337
|
+
function resume(n, v) { try {
|
338
|
+
step(g[n](v));
|
339
|
+
}
|
340
|
+
catch (e) {
|
341
|
+
settle(q[0][3], e);
|
342
|
+
} }
|
343
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
344
|
+
function fulfill(value) { resume("next", value); }
|
345
|
+
function reject(value) { resume("throw", value); }
|
346
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
347
|
+
resume(q[0][0], q[0][1]); }
|
348
|
+
}
|
349
|
+
function __asyncDelegator(o) {
|
350
|
+
var i, p;
|
351
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
352
|
+
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; }
|
353
|
+
}
|
354
|
+
function __asyncValues(o) {
|
355
|
+
if (!Symbol.asyncIterator)
|
356
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
357
|
+
var m = o[Symbol.asyncIterator], i;
|
358
|
+
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);
|
359
|
+
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); }); }; }
|
360
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
361
|
+
}
|
362
|
+
function __makeTemplateObject(cooked, raw) {
|
363
|
+
if (Object.defineProperty) {
|
364
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
365
|
+
}
|
366
|
+
else {
|
367
|
+
cooked.raw = raw;
|
368
|
+
}
|
369
|
+
return cooked;
|
370
|
+
}
|
371
|
+
;
|
372
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
373
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
374
|
+
}) : function (o, v) {
|
375
|
+
o["default"] = v;
|
376
|
+
};
|
377
|
+
function __importStar(mod) {
|
378
|
+
if (mod && mod.__esModule)
|
379
|
+
return mod;
|
380
|
+
var result = {};
|
381
|
+
if (mod != null)
|
382
|
+
for (var k in mod)
|
383
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
384
|
+
__createBinding(result, mod, k);
|
385
|
+
__setModuleDefault(result, mod);
|
386
|
+
return result;
|
387
|
+
}
|
388
|
+
function __importDefault(mod) {
|
389
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
390
|
+
}
|
391
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
392
|
+
if (kind === "a" && !f)
|
393
|
+
throw new TypeError("Private accessor was defined without a getter");
|
394
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
395
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
396
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
397
|
+
}
|
398
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
399
|
+
if (kind === "m")
|
400
|
+
throw new TypeError("Private method is not writable");
|
401
|
+
if (kind === "a" && !f)
|
402
|
+
throw new TypeError("Private accessor was defined without a setter");
|
403
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
404
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
405
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
406
|
+
}
|
407
|
+
function __classPrivateFieldIn(state, receiver) {
|
408
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
409
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
410
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
411
|
+
}
|
412
|
+
function __addDisposableResource(env, value, async) {
|
413
|
+
if (value !== null && value !== void 0) {
|
414
|
+
if (typeof value !== "object" && typeof value !== "function")
|
415
|
+
throw new TypeError("Object expected.");
|
416
|
+
var dispose;
|
417
|
+
if (async) {
|
418
|
+
if (!Symbol.asyncDispose)
|
419
|
+
throw new TypeError("Symbol.asyncDispose is not defined.");
|
420
|
+
dispose = value[Symbol.asyncDispose];
|
421
|
+
}
|
422
|
+
if (dispose === void 0) {
|
423
|
+
if (!Symbol.dispose)
|
424
|
+
throw new TypeError("Symbol.dispose is not defined.");
|
425
|
+
dispose = value[Symbol.dispose];
|
426
|
+
}
|
427
|
+
if (typeof dispose !== "function")
|
428
|
+
throw new TypeError("Object not disposable.");
|
429
|
+
env.stack.push({ value: value, dispose: dispose, async: async });
|
430
|
+
}
|
431
|
+
else if (async) {
|
432
|
+
env.stack.push({ async: true });
|
433
|
+
}
|
434
|
+
return value;
|
435
|
+
}
|
436
|
+
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
437
|
+
var e = new Error(message);
|
438
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
439
|
+
};
|
440
|
+
function __disposeResources(env) {
|
441
|
+
function fail(e) {
|
442
|
+
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
443
|
+
env.hasError = true;
|
444
|
+
}
|
445
|
+
function next() {
|
446
|
+
while (env.stack.length) {
|
447
|
+
var rec = env.stack.pop();
|
448
|
+
try {
|
449
|
+
var result = rec.dispose && rec.dispose.call(rec.value);
|
450
|
+
if (rec.async)
|
451
|
+
return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
|
452
|
+
}
|
453
|
+
catch (e) {
|
454
|
+
fail(e);
|
455
|
+
}
|
456
|
+
}
|
457
|
+
if (env.hasError)
|
458
|
+
throw env.error;
|
459
|
+
}
|
460
|
+
return next();
|
461
|
+
}
|
462
|
+
var tslib_es6 = {
|
463
|
+
__extends: __extends,
|
464
|
+
__assign: __assign,
|
465
|
+
__rest: __rest,
|
466
|
+
__decorate: __decorate,
|
467
|
+
__param: __param,
|
468
|
+
__metadata: __metadata,
|
469
|
+
__awaiter: __awaiter,
|
470
|
+
__generator: __generator,
|
471
|
+
__createBinding: __createBinding,
|
472
|
+
__exportStar: __exportStar,
|
473
|
+
__values: __values,
|
474
|
+
__read: __read,
|
475
|
+
__spread: __spread,
|
476
|
+
__spreadArrays: __spreadArrays,
|
477
|
+
__spreadArray: __spreadArray,
|
478
|
+
__await: __await,
|
479
|
+
__asyncGenerator: __asyncGenerator,
|
480
|
+
__asyncDelegator: __asyncDelegator,
|
481
|
+
__asyncValues: __asyncValues,
|
482
|
+
__makeTemplateObject: __makeTemplateObject,
|
483
|
+
__importStar: __importStar,
|
484
|
+
__importDefault: __importDefault,
|
485
|
+
__classPrivateFieldGet: __classPrivateFieldGet,
|
486
|
+
__classPrivateFieldSet: __classPrivateFieldSet,
|
487
|
+
__classPrivateFieldIn: __classPrivateFieldIn,
|
488
|
+
__addDisposableResource: __addDisposableResource,
|
489
|
+
__disposeResources: __disposeResources,
|
490
|
+
};
|
345
491
|
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
492
|
+
/**
|
493
|
+
* @note:
|
494
|
+
* Observable abstraction over ngOnDestroy to use with takeUntil
|
495
|
+
*
|
496
|
+
* Why we use `ReplaySubject` instead of `Subject`?
|
497
|
+
* Well, we’ll use ReplaySubject to emit the last message in case
|
498
|
+
* the subscription is ended after the component is destroyed.
|
499
|
+
*/
|
500
|
+
var TuiDestroyService = /** @class */ (function (_super) {
|
501
|
+
__extends(TuiDestroyService, _super);
|
502
|
+
function TuiDestroyService() {
|
503
|
+
return _super.call(this, 1) || this;
|
504
|
+
}
|
505
|
+
TuiDestroyService.prototype.ngOnDestroy = function () {
|
506
|
+
this.next();
|
507
|
+
};
|
508
|
+
return TuiDestroyService;
|
509
|
+
}(i1.ReplaySubject));
|
510
|
+
TuiDestroyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDestroyService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
511
|
+
TuiDestroyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDestroyService });
|
512
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDestroyService, decorators: [{
|
513
|
+
type: i0.Injectable
|
514
|
+
}], ctorParameters: function () { return []; } });
|
369
515
|
|
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
|
-
|
516
|
+
/**
|
517
|
+
* Service to use styles with directives
|
518
|
+
*/
|
519
|
+
var TuiDirectiveStylesService = /** @class */ (function () {
|
520
|
+
function TuiDirectiveStylesService(resolver, injector) {
|
521
|
+
this.resolver = resolver;
|
522
|
+
this.injector = injector;
|
523
|
+
this.map = new Map();
|
524
|
+
}
|
525
|
+
TuiDirectiveStylesService.prototype.addComponent = function (component) {
|
526
|
+
if (!this.map.has(component)) {
|
527
|
+
this.map.set(component, this.resolver.resolveComponentFactory(component).create(this.injector));
|
528
|
+
}
|
529
|
+
};
|
530
|
+
TuiDirectiveStylesService.prototype.ngOnDestroy = function () {
|
531
|
+
this.map.forEach(function (value) { return value.destroy(); });
|
532
|
+
};
|
533
|
+
return TuiDirectiveStylesService;
|
534
|
+
}());
|
535
|
+
TuiDirectiveStylesService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDirectiveStylesService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.INJECTOR }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
536
|
+
TuiDirectiveStylesService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDirectiveStylesService, providedIn: 'root' });
|
537
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDirectiveStylesService, decorators: [{
|
538
|
+
type: i0.Injectable,
|
539
|
+
args: [{
|
540
|
+
providedIn: 'root',
|
541
|
+
}]
|
542
|
+
}], ctorParameters: function () {
|
543
|
+
return [{ type: i0__namespace.ComponentFactoryResolver, decorators: [{
|
544
|
+
type: i0.Inject,
|
545
|
+
args: [i0.ComponentFactoryResolver]
|
546
|
+
}] }, { type: i0__namespace.Injector, decorators: [{
|
547
|
+
type: i0.Inject,
|
548
|
+
args: [i0.INJECTOR]
|
549
|
+
}] }];
|
550
|
+
} });
|
405
551
|
|
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
|
-
|
552
|
+
/**
|
553
|
+
* Service to imitate :focus-visible
|
554
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible)
|
555
|
+
* in browsers that do not support it
|
556
|
+
*/
|
557
|
+
var TuiFocusVisibleService = /** @class */ (function (_super) {
|
558
|
+
__extends(TuiFocusVisibleService, _super);
|
559
|
+
function TuiFocusVisibleService(_a, cdr, destroy$) {
|
560
|
+
var nativeElement = _a.nativeElement;
|
561
|
+
var _this = _super.call(this, function (subscriber) { return _this.focusVisible$.subscribe(subscriber); }) || this;
|
562
|
+
_this.focusVisible$ = observables.tuiFocusVisibleObservable(nativeElement).pipe(observables.tuiWatch(cdr), operators.takeUntil(destroy$));
|
563
|
+
return _this;
|
564
|
+
}
|
565
|
+
return TuiFocusVisibleService;
|
566
|
+
}(i1.Observable));
|
567
|
+
TuiFocusVisibleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFocusVisibleService, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: TuiDestroyService, self: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
568
|
+
TuiFocusVisibleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFocusVisibleService });
|
569
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFocusVisibleService, decorators: [{
|
570
|
+
type: i0.Injectable
|
571
|
+
}], ctorParameters: function () {
|
572
|
+
return [{ type: i0__namespace.ElementRef, decorators: [{
|
573
|
+
type: i0.Inject,
|
574
|
+
args: [i0.ElementRef]
|
575
|
+
}] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
|
576
|
+
type: i0.Inject,
|
577
|
+
args: [i0.ChangeDetectorRef]
|
578
|
+
}] }, { type: i1__namespace.Observable, decorators: [{
|
579
|
+
type: i0.Self
|
580
|
+
}, {
|
581
|
+
type: i0.Inject,
|
582
|
+
args: [TuiDestroyService]
|
583
|
+
}] }];
|
584
|
+
} });
|
439
585
|
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
586
|
+
var TUI = 'tui_';
|
587
|
+
/**
|
588
|
+
* Generates unique ids
|
589
|
+
*/
|
590
|
+
var TuiIdService = /** @class */ (function () {
|
591
|
+
function TuiIdService() {
|
592
|
+
}
|
593
|
+
TuiIdService.prototype.generate = function () {
|
594
|
+
return "" + TUI + TuiIdService.autoId++ + Date.now();
|
595
|
+
};
|
596
|
+
return TuiIdService;
|
597
|
+
}());
|
598
|
+
TuiIdService.autoId = 0;
|
599
|
+
TuiIdService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiIdService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
600
|
+
TuiIdService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiIdService, providedIn: 'root' });
|
601
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiIdService, decorators: [{
|
602
|
+
type: i0.Injectable,
|
603
|
+
args: [{
|
604
|
+
providedIn: 'root',
|
605
|
+
}]
|
606
|
+
}] });
|
461
607
|
|
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
|
-
|
608
|
+
/**
|
609
|
+
* Service that subscribes to scroll events of all parent elements
|
610
|
+
*/
|
611
|
+
var TuiParentsScrollService = /** @class */ (function (_super) {
|
612
|
+
__extends(TuiParentsScrollService, _super);
|
613
|
+
function TuiParentsScrollService(
|
614
|
+
// Destructuring here causes memory leak
|
615
|
+
el, win) {
|
616
|
+
var _this = _super.call(this, function (subscriber) { return _this.callback$.subscribe(subscriber); }) || this;
|
617
|
+
_this.callback$ = i1.defer(function () {
|
618
|
+
var nativeElement = el.nativeElement;
|
619
|
+
var eventTargets = [win, nativeElement];
|
620
|
+
while (nativeElement.parentElement) {
|
621
|
+
nativeElement = nativeElement.parentElement;
|
622
|
+
eventTargets.push(nativeElement);
|
623
|
+
}
|
624
|
+
return i1.merge.apply(void 0, __spreadArray([], __read(eventTargets.map(function (element) { return observables.tuiTypedFromEvent(element, 'scroll'); }))));
|
625
|
+
});
|
626
|
+
return _this;
|
627
|
+
}
|
628
|
+
return TuiParentsScrollService;
|
629
|
+
}(i1.Observable));
|
630
|
+
TuiParentsScrollService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiParentsScrollService, deps: [{ token: i0.ElementRef }, { token: common.WINDOW }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
631
|
+
TuiParentsScrollService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiParentsScrollService });
|
632
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiParentsScrollService, decorators: [{
|
633
|
+
type: i0.Injectable
|
634
|
+
}], ctorParameters: function () {
|
635
|
+
return [{ type: i0__namespace.ElementRef, decorators: [{
|
636
|
+
type: i0.Inject,
|
637
|
+
args: [i0.ElementRef]
|
638
|
+
}] }, { type: Window, decorators: [{
|
639
|
+
type: i0.Inject,
|
640
|
+
args: [common.WINDOW]
|
641
|
+
}] }];
|
642
|
+
} });
|
497
643
|
|
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
|
-
|
644
|
+
// @bad TODO: Consider Intersection Observer with fallback to current implementation
|
645
|
+
/**
|
646
|
+
* Service that monitors element visibility by subscribing to scrolls
|
647
|
+
* and polling with set interval, returns either null or an array
|
648
|
+
* of elements that overlap given element edges
|
649
|
+
*/
|
650
|
+
var TuiObscuredService = /** @class */ (function (_super) {
|
651
|
+
__extends(TuiObscuredService, _super);
|
652
|
+
function TuiObscuredService(parentsScroll$, _a, zone, win, destroy$, animationFrame$) {
|
653
|
+
var nativeElement = _a.nativeElement;
|
654
|
+
var _this = _super.call(this, function (subscriber) { return _this.obscured$.subscribe(subscriber); }) || this;
|
655
|
+
_this.obscured$ = i1.merge(
|
656
|
+
// delay is added so it will not interfere with other listeners
|
657
|
+
i1.merge(parentsScroll$, i1.fromEvent(win, 'resize')).pipe(operators.delay(0)), animationFrame$.pipe(operators.throttleTime(constants.POLLING_TIME))).pipe(operators.map(function () { return dom.tuiGetElementObscures(nativeElement); }), operators.startWith(null), operators.distinctUntilChanged(), observables.tuiZoneOptimized(zone), operators.takeUntil(destroy$));
|
658
|
+
return _this;
|
659
|
+
}
|
660
|
+
return TuiObscuredService;
|
661
|
+
}(i1.Observable));
|
662
|
+
TuiObscuredService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiObscuredService, deps: [{ token: TuiParentsScrollService, self: true }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: common.WINDOW }, { token: TuiDestroyService, self: true }, { token: common.ANIMATION_FRAME }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
663
|
+
TuiObscuredService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiObscuredService });
|
664
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiObscuredService, decorators: [{
|
665
|
+
type: i0.Injectable
|
666
|
+
}], ctorParameters: function () {
|
667
|
+
return [{ type: TuiParentsScrollService, decorators: [{
|
668
|
+
type: i0.Inject,
|
669
|
+
args: [TuiParentsScrollService]
|
670
|
+
}, {
|
671
|
+
type: i0.Self
|
672
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
673
|
+
type: i0.Inject,
|
674
|
+
args: [i0.ElementRef]
|
675
|
+
}] }, { type: i0__namespace.NgZone, decorators: [{
|
676
|
+
type: i0.Inject,
|
677
|
+
args: [i0.NgZone]
|
678
|
+
}] }, { type: Window, decorators: [{
|
679
|
+
type: i0.Inject,
|
680
|
+
args: [common.WINDOW]
|
681
|
+
}] }, { type: i1__namespace.Observable, decorators: [{
|
682
|
+
type: i0.Self
|
683
|
+
}, {
|
684
|
+
type: i0.Inject,
|
685
|
+
args: [TuiDestroyService]
|
686
|
+
}] }, { type: i1__namespace.Observable, decorators: [{
|
687
|
+
type: i0.Inject,
|
688
|
+
args: [common.ANIMATION_FRAME]
|
689
|
+
}] }];
|
690
|
+
} });
|
545
691
|
|
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
|
-
|
692
|
+
var TuiPanService = /** @class */ (function (_super) {
|
693
|
+
__extends(TuiPanService, _super);
|
694
|
+
function TuiPanService(_a, doc) {
|
695
|
+
var nativeElement = _a.nativeElement;
|
696
|
+
return _super.call(this, function (subscriber) {
|
697
|
+
i1.merge(observables.tuiTypedFromEvent(nativeElement, 'touchstart', { passive: true }), observables.tuiTypedFromEvent(nativeElement, 'mousedown'))
|
698
|
+
.pipe(operators.switchMap(function () { return i1.merge(observables.tuiTypedFromEvent(doc, 'touchmove', {
|
699
|
+
passive: true,
|
700
|
+
}).pipe(operators.filter(function (_a) {
|
701
|
+
var touches = _a.touches;
|
702
|
+
return touches.length < 2;
|
703
|
+
}), operators.map(function (_a) {
|
704
|
+
var touches = _a.touches;
|
705
|
+
return touches[0];
|
706
|
+
})), observables.tuiTypedFromEvent(doc, 'mousemove')); }), operators.pairwise(), operators.map(function (_a) {
|
707
|
+
var _b = __read(_a, 2), first = _b[0], second = _b[1];
|
708
|
+
var deltaX = second.clientX - first.clientX;
|
709
|
+
var deltaY = second.clientY - first.clientY;
|
710
|
+
return [deltaX, deltaY];
|
711
|
+
}),
|
712
|
+
// eslint-disable-next-line rxjs/no-unsafe-takeuntil
|
713
|
+
operators.takeUntil(i1.merge(observables.tuiTypedFromEvent(doc, 'touchend'), observables.tuiTypedFromEvent(doc, 'mouseup'))), operators.repeat())
|
714
|
+
.subscribe(subscriber);
|
715
|
+
}) || this;
|
716
|
+
}
|
717
|
+
return TuiPanService;
|
718
|
+
}(i1.Observable));
|
719
|
+
TuiPanService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPanService, deps: [{ token: i0.ElementRef }, { token: common$1.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
720
|
+
TuiPanService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPanService });
|
721
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPanService, decorators: [{
|
722
|
+
type: i0.Injectable
|
723
|
+
}], ctorParameters: function () {
|
724
|
+
return [{ type: i0__namespace.ElementRef, decorators: [{
|
725
|
+
type: i0.Inject,
|
726
|
+
args: [i0.ElementRef]
|
727
|
+
}] }, { type: Document, decorators: [{
|
728
|
+
type: i0.Inject,
|
729
|
+
args: [common$1.DOCUMENT]
|
730
|
+
}] }];
|
731
|
+
} });
|
586
732
|
|
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
|
-
|
733
|
+
// TODO: Remove in 4.0 when Safari is bumped to 13
|
734
|
+
var TuiResizeService = /** @class */ (function (_super) {
|
735
|
+
__extends(TuiResizeService, _super);
|
736
|
+
function TuiResizeService(el, zone, destroy$, support, box, animationFrame$) {
|
737
|
+
var _this = _super.call(this, el, zone, support, box) || this;
|
738
|
+
return _this.pipe(operators.catchError(function () {
|
739
|
+
/**
|
740
|
+
* @note: if not supported ResizeObserver
|
741
|
+
* remove `catchError` after supports modern browsers
|
742
|
+
*/
|
743
|
+
return animationFrame$.pipe(operators.throttleTime(constants.POLLING_TIME), operators.map(function () { return el.nativeElement.clientWidth + " " + el.nativeElement.clientHeight; }), operators.distinctUntilChanged(), operators.map(function () { return constants.EMPTY_ARRAY; }));
|
744
|
+
}), operators.debounceTime(0), observables.tuiZonefree(zone), operators.share(), operators.takeUntil(destroy$));
|
745
|
+
}
|
746
|
+
return TuiResizeService;
|
747
|
+
}(resizeObserver.ResizeObserverService));
|
748
|
+
TuiResizeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiResizeService, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: TuiDestroyService, self: true }, { token: resizeObserver.RESIZE_OBSERVER_SUPPORT }, { token: resizeObserver.RESIZE_OPTION_BOX }, { token: common.ANIMATION_FRAME }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
749
|
+
TuiResizeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiResizeService });
|
750
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiResizeService, decorators: [{
|
751
|
+
type: i0.Injectable
|
752
|
+
}], ctorParameters: function () {
|
753
|
+
return [{ type: i0__namespace.ElementRef, decorators: [{
|
754
|
+
type: i0.Inject,
|
755
|
+
args: [i0.ElementRef]
|
756
|
+
}] }, { type: i0__namespace.NgZone, decorators: [{
|
757
|
+
type: i0.Inject,
|
758
|
+
args: [i0.NgZone]
|
759
|
+
}] }, { type: i1__namespace.Observable, decorators: [{
|
760
|
+
type: i0.Self
|
761
|
+
}, {
|
762
|
+
type: i0.Inject,
|
763
|
+
args: [TuiDestroyService]
|
764
|
+
}] }, { type: undefined, decorators: [{
|
765
|
+
type: i0.Inject,
|
766
|
+
args: [resizeObserver.RESIZE_OBSERVER_SUPPORT]
|
767
|
+
}] }, { type: undefined, decorators: [{
|
768
|
+
type: i0.Inject,
|
769
|
+
args: [resizeObserver.RESIZE_OPTION_BOX]
|
770
|
+
}] }, { type: i1__namespace.Observable, decorators: [{
|
771
|
+
type: i0.Inject,
|
772
|
+
args: [common.ANIMATION_FRAME]
|
773
|
+
}] }];
|
774
|
+
} });
|
629
775
|
|
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
|
-
|
776
|
+
var SCROLL_TIME = 300;
|
777
|
+
function getX(elementOrWindow) {
|
778
|
+
return 'scrollX' in elementOrWindow
|
779
|
+
? elementOrWindow.scrollX
|
780
|
+
: elementOrWindow.scrollLeft;
|
781
|
+
}
|
782
|
+
function getY(elementOrWindow) {
|
783
|
+
return 'scrollY' in elementOrWindow
|
784
|
+
? elementOrWindow.scrollY
|
785
|
+
: elementOrWindow.scrollTop;
|
786
|
+
}
|
787
|
+
var TuiScrollService = /** @class */ (function () {
|
788
|
+
function TuiScrollService(performanceRef, animationFrame$) {
|
789
|
+
this.performanceRef = performanceRef;
|
790
|
+
this.animationFrame$ = animationFrame$;
|
791
|
+
}
|
792
|
+
TuiScrollService.prototype.scroll$ = function (elementOrWindow, scrollTop, scrollLeft, duration) {
|
793
|
+
var _this = this;
|
794
|
+
if (scrollLeft === void 0) { scrollLeft = getX(elementOrWindow); }
|
795
|
+
if (duration === void 0) { duration = SCROLL_TIME; }
|
796
|
+
ngDevMode && classes.tuiAssert.assert(duration >= 0, 'Duration cannot be negative');
|
797
|
+
ngDevMode && classes.tuiAssert.assert(scrollTop >= 0, 'scrollTop cannot be negative');
|
798
|
+
ngDevMode && classes.tuiAssert.assert(scrollLeft >= 0, 'scrollLeft cannot be negative');
|
799
|
+
var initialTop = getY(elementOrWindow);
|
800
|
+
var initialLeft = getX(elementOrWindow);
|
801
|
+
var deltaTop = scrollTop - initialTop;
|
802
|
+
var deltaLeft = scrollLeft - initialLeft;
|
803
|
+
var observable = !duration
|
804
|
+
? i1.of([scrollTop, scrollLeft])
|
805
|
+
: i1.defer(function () { return i1.of(_this.performanceRef.now()); }).pipe(operators.switchMap(function (start) { return _this.animationFrame$.pipe(operators.map(function (now) { return now - start; })); }), operators.map(function (elapsed) { return miscellaneous.tuiEaseInOutQuad(math.tuiClamp(elapsed / duration, 0, 1)); }), operators.map(function (percent) { return [
|
806
|
+
initialTop + deltaTop * percent,
|
807
|
+
initialLeft + deltaLeft * percent,
|
808
|
+
]; }), operators.takeUntil(i1.timer(duration)), operators.endWith([scrollTop, scrollLeft]));
|
809
|
+
return observable.pipe(operators.tap(function (_b) {
|
810
|
+
var _c = __read(_b, 2), scrollTop = _c[0], scrollLeft = _c[1];
|
811
|
+
var _a;
|
812
|
+
(_a = elementOrWindow.scrollTo) === null || _a === void 0 ? void 0 : _a.call(elementOrWindow, scrollLeft, scrollTop);
|
813
|
+
}));
|
814
|
+
};
|
815
|
+
return TuiScrollService;
|
816
|
+
}());
|
817
|
+
TuiScrollService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollService, deps: [{ token: common.PERFORMANCE }, { token: common.ANIMATION_FRAME }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
818
|
+
TuiScrollService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollService, providedIn: 'root' });
|
819
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollService, decorators: [{
|
820
|
+
type: i0.Injectable,
|
821
|
+
args: [{
|
822
|
+
providedIn: 'root',
|
823
|
+
}]
|
824
|
+
}], ctorParameters: function () {
|
825
|
+
return [{ type: Performance, decorators: [{
|
826
|
+
type: i0.Inject,
|
827
|
+
args: [common.PERFORMANCE]
|
828
|
+
}] }, { type: i1__namespace.Observable, decorators: [{
|
829
|
+
type: i0.Inject,
|
830
|
+
args: [common.ANIMATION_FRAME]
|
831
|
+
}] }];
|
832
|
+
} });
|
687
833
|
|
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
|
-
|
834
|
+
var TuiStaticRequestService = /** @class */ (function () {
|
835
|
+
function TuiStaticRequestService(win, platformId) {
|
836
|
+
this.win = win;
|
837
|
+
this.platformId = platformId;
|
838
|
+
this.cache = new Map();
|
839
|
+
}
|
840
|
+
TuiStaticRequestService.prototype.request = function (url) {
|
841
|
+
var _this = this;
|
842
|
+
var cache = this.cache.get(url);
|
843
|
+
if (cache) {
|
844
|
+
return cache;
|
845
|
+
}
|
846
|
+
var response$ = 'AbortController' in this.win || common$1.isPlatformServer(this.platformId)
|
847
|
+
? fetch$1.fromFetch(url)
|
848
|
+
: /**
|
849
|
+
* Fallback for Firefox 55 and 56
|
850
|
+
* TODO: drop after browser support bump
|
851
|
+
*/
|
852
|
+
i1.defer(function () { return i1.from(fetch(url)); });
|
853
|
+
var piped = response$.pipe(operators.switchMap(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
854
|
+
return __generator(this, function (_a) {
|
855
|
+
if (response.ok) {
|
856
|
+
return [2 /*return*/, response.text()];
|
857
|
+
}
|
858
|
+
throw new Error("Failed to load " + url + " (" + response.statusText + ")");
|
859
|
+
});
|
860
|
+
}); }), operators.shareReplay({ bufferSize: 1, refCount: false }));
|
861
|
+
this.cache.set(url, piped);
|
862
|
+
return piped;
|
863
|
+
};
|
864
|
+
return TuiStaticRequestService;
|
865
|
+
}());
|
866
|
+
TuiStaticRequestService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiStaticRequestService, deps: [{ token: common.WINDOW }, { token: i0.PLATFORM_ID }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
867
|
+
TuiStaticRequestService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiStaticRequestService, providedIn: 'root' });
|
868
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiStaticRequestService, decorators: [{
|
869
|
+
type: i0.Injectable,
|
870
|
+
args: [{
|
871
|
+
providedIn: 'root',
|
872
|
+
}]
|
873
|
+
}], ctorParameters: function () {
|
874
|
+
return [{ type: Window, decorators: [{
|
875
|
+
type: i0.Inject,
|
876
|
+
args: [common.WINDOW]
|
877
|
+
}] }, { type: undefined, decorators: [{
|
878
|
+
type: i0.Inject,
|
879
|
+
args: [i0.PLATFORM_ID]
|
880
|
+
}] }];
|
881
|
+
} });
|
736
882
|
|
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
|
-
|
883
|
+
var TuiSwipeService = /** @class */ (function (_super) {
|
884
|
+
__extends(TuiSwipeService, _super);
|
885
|
+
function TuiSwipeService(_a, _b, doc) {
|
886
|
+
var nativeElement = _a.nativeElement;
|
887
|
+
var timeout = _b.timeout, threshold = _b.threshold;
|
888
|
+
return _super.call(this, function (subscriber) {
|
889
|
+
i1.merge(observables.tuiTypedFromEvent(nativeElement, 'touchstart', { passive: true }), observables.tuiTypedFromEvent(doc, 'touchend'))
|
890
|
+
.pipe(operators.pairwise(), operators.filter(function (_a) {
|
891
|
+
var _b = __read(_a, 2), first = _b[0], second = _b[1];
|
892
|
+
return !!first.touches.length &&
|
893
|
+
first.touches[0].identifier ===
|
894
|
+
second.changedTouches[0].identifier;
|
895
|
+
}), operators.map(function (_a) {
|
896
|
+
var _b = __read(_a, 2), start = _b[0], end = _b[1];
|
897
|
+
var startX = start.touches[0].clientX;
|
898
|
+
var startY = start.touches[0].clientY;
|
899
|
+
var endX = end.changedTouches[0].clientX;
|
900
|
+
var endY = end.changedTouches[0].clientY;
|
901
|
+
var distanceX = startX - endX;
|
902
|
+
var distanceY = startY - endY;
|
903
|
+
var duration = end.timeStamp - start.timeStamp;
|
904
|
+
if ((Math.abs(distanceX) > threshold ||
|
905
|
+
Math.abs(distanceY) > threshold) &&
|
906
|
+
duration < timeout) {
|
907
|
+
return {
|
908
|
+
direction: miscellaneous.tuiGetSwipeDirection(distanceX, distanceY),
|
909
|
+
events: [start, end],
|
910
|
+
};
|
911
|
+
}
|
912
|
+
return null;
|
913
|
+
}), operators.filter(miscellaneous.tuiIsPresent))
|
914
|
+
.subscribe(subscriber);
|
915
|
+
}) || this;
|
916
|
+
}
|
917
|
+
return TuiSwipeService;
|
918
|
+
}(i1.Observable));
|
919
|
+
TuiSwipeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSwipeService, deps: [{ token: i0.ElementRef }, { token: tokens.TUI_SWIPE_OPTIONS }, { token: common$1.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
920
|
+
TuiSwipeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSwipeService });
|
921
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSwipeService, decorators: [{
|
922
|
+
type: i0.Injectable
|
923
|
+
}], ctorParameters: function () {
|
924
|
+
return [{ type: i0__namespace.ElementRef, decorators: [{
|
925
|
+
type: i0.Inject,
|
926
|
+
args: [i0.ElementRef]
|
927
|
+
}] }, { type: undefined, decorators: [{
|
928
|
+
type: i0.Inject,
|
929
|
+
args: [tokens.TUI_SWIPE_OPTIONS]
|
930
|
+
}] }, { type: Document, decorators: [{
|
931
|
+
type: i0.Inject,
|
932
|
+
args: [common$1.DOCUMENT]
|
933
|
+
}] }];
|
934
|
+
} });
|
789
935
|
|
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
|
-
|
936
|
+
var TOUCH_SENSITIVITY = 0.01;
|
937
|
+
var TuiZoomService = /** @class */ (function (_super) {
|
938
|
+
__extends(TuiZoomService, _super);
|
939
|
+
function TuiZoomService(_a, _b) {
|
940
|
+
var nativeElement = _a.nativeElement;
|
941
|
+
var wheelSensitivity = _b.wheelSensitivity;
|
942
|
+
return _super.call(this, function (subscriber) {
|
943
|
+
i1.merge(observables.tuiTypedFromEvent(nativeElement, 'touchstart', { passive: true }).pipe(operators.filter(function (_a) {
|
944
|
+
var touches = _a.touches;
|
945
|
+
return touches.length > 1;
|
946
|
+
}), operators.switchMap(function (startEvent) { return observables.tuiTypedFromEvent(nativeElement, 'touchmove', {
|
947
|
+
passive: true,
|
948
|
+
}).pipe(observables.tuiPreventDefault(), operators.scan(function (prev, event) {
|
949
|
+
var distance = utils.tuiDistanceBetweenTouches(event);
|
950
|
+
return {
|
951
|
+
event: event,
|
952
|
+
distance: distance,
|
953
|
+
delta: (distance - prev.distance) *
|
954
|
+
TOUCH_SENSITIVITY,
|
955
|
+
};
|
956
|
+
}, {
|
957
|
+
event: startEvent,
|
958
|
+
distance: utils.tuiDistanceBetweenTouches(startEvent),
|
959
|
+
delta: 0,
|
960
|
+
}), operators.map(function (_a) {
|
961
|
+
var event = _a.event, delta = _a.delta;
|
962
|
+
var clientX = (event.touches[0].clientX +
|
963
|
+
event.touches[1].clientX) /
|
964
|
+
2;
|
965
|
+
var clientY = (event.touches[0].clientY +
|
966
|
+
event.touches[1].clientY) /
|
967
|
+
2;
|
968
|
+
return { clientX: clientX, clientY: clientY, delta: delta, event: event };
|
969
|
+
}), operators.takeUntil(observables.tuiTypedFromEvent(nativeElement, 'touchend'))); })), observables.tuiTypedFromEvent(nativeElement, 'wheel', { passive: false }).pipe(observables.tuiPreventDefault(), operators.map(function (wheel) { return ({
|
970
|
+
clientX: wheel.clientX,
|
971
|
+
clientY: wheel.clientY,
|
972
|
+
delta: -wheel.deltaY * wheelSensitivity,
|
973
|
+
event: wheel,
|
974
|
+
}); }))).subscribe(subscriber);
|
975
|
+
}) || this;
|
976
|
+
}
|
977
|
+
return TuiZoomService;
|
978
|
+
}(i1.Observable));
|
979
|
+
TuiZoomService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiZoomService, deps: [{ token: i0.ElementRef }, { token: tokens.TUI_ZOOM_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
980
|
+
TuiZoomService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiZoomService });
|
981
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiZoomService, decorators: [{
|
982
|
+
type: i0.Injectable
|
983
|
+
}], ctorParameters: function () {
|
984
|
+
return [{ type: i0__namespace.ElementRef, decorators: [{
|
985
|
+
type: i0.Inject,
|
986
|
+
args: [i0.ElementRef]
|
987
|
+
}] }, { type: undefined, decorators: [{
|
988
|
+
type: i0.Inject,
|
989
|
+
args: [tokens.TUI_ZOOM_OPTIONS]
|
990
|
+
}] }];
|
991
|
+
} });
|
846
992
|
|
847
|
-
|
848
|
-
|
849
|
-
|
993
|
+
/**
|
994
|
+
* Generated bundle index. Do not edit.
|
995
|
+
*/
|
850
996
|
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
997
|
+
exports.TuiDestroyService = TuiDestroyService;
|
998
|
+
exports.TuiDirectiveStylesService = TuiDirectiveStylesService;
|
999
|
+
exports.TuiFocusVisibleService = TuiFocusVisibleService;
|
1000
|
+
exports.TuiIdService = TuiIdService;
|
1001
|
+
exports.TuiObscuredService = TuiObscuredService;
|
1002
|
+
exports.TuiPanService = TuiPanService;
|
1003
|
+
exports.TuiParentsScrollService = TuiParentsScrollService;
|
1004
|
+
exports.TuiResizeService = TuiResizeService;
|
1005
|
+
exports.TuiScrollService = TuiScrollService;
|
1006
|
+
exports.TuiStaticRequestService = TuiStaticRequestService;
|
1007
|
+
exports.TuiSwipeService = TuiSwipeService;
|
1008
|
+
exports.TuiZoomService = TuiZoomService;
|
863
1009
|
|
864
|
-
|
1010
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
865
1011
|
|
866
1012
|
}));
|
867
1013
|
//# sourceMappingURL=taiga-ui-cdk-services.umd.js.map
|