@taiga-ui/core 3.59.0 → 3.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/bundles/taiga-ui-core-abstract.umd.js +671 -525
  2. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-core-components-alert.umd.js +152 -6
  4. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
  5. package/bundles/taiga-ui-core-components-button.umd.js +668 -522
  6. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-data-list.umd.js +819 -673
  8. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-dialog.umd.js +152 -6
  10. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +933 -787
  12. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +3 -4
  14. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +605 -459
  16. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +1175 -1029
  18. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-root.umd.js +605 -459
  20. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  21. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +152 -6
  22. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  23. package/bundles/taiga-ui-core-components-svg.umd.js +152 -6
  24. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  25. package/bundles/taiga-ui-core-components-theme-night.umd.js +520 -374
  26. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  27. package/bundles/taiga-ui-core-components-tooltip.umd.js +595 -449
  28. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  29. package/bundles/taiga-ui-core-directives-dropdown.umd.js +1506 -1360
  30. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  31. package/bundles/taiga-ui-core-directives-hint.umd.js +1287 -1141
  32. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  33. package/bundles/taiga-ui-core-directives-mode.umd.js +521 -375
  34. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  35. package/bundles/taiga-ui-core-directives-number-format.umd.js +543 -397
  36. package/bundles/taiga-ui-core-directives-number-format.umd.js.map +1 -1
  37. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +152 -6
  38. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  39. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js +530 -384
  40. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js.map +1 -1
  41. package/bundles/taiga-ui-core-services.umd.js +780 -634
  42. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  43. package/bundles/taiga-ui-core-tokens.umd.js +152 -6
  44. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  45. package/bundles/taiga-ui-core-utils-format.umd.js +152 -6
  46. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  47. package/bundles/taiga-ui-core-utils-mask.umd.js +152 -6
  48. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  49. package/components/primitive-calendar/primitive-calendar.component.d.ts +1 -1
  50. package/constants/cache-basting-payload.d.ts +1 -1
  51. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +4 -4
  52. package/esm2015/components/root/root.component.js +1 -1
  53. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +3 -3
  54. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  55. package/fesm2015/taiga-ui-core-components-root.js +1 -1
  56. package/package.json +5 -5
@@ -1,657 +1,803 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/tokens'), require('rxjs'), require('rxjs/operators'), require('@ng-web-apis/common'), require('@taiga-ui/core/abstract'), require('@angular/router'), require('@angular/platform-browser'), require('@taiga-ui/core/utils/dom')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/core/services', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/tokens', 'rxjs', 'rxjs/operators', '@ng-web-apis/common', '@taiga-ui/core/abstract', '@angular/router', '@angular/platform-browser', '@taiga-ui/core/utils/dom'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.services = {}), global.ng.core, global.i3, global["taiga-ui"].core.tokens, global.rxjs, global.rxjs.operators, global.common, global["taiga-ui"].core.abstract, global.ng.router, global.ng.platformBrowser, global["taiga-ui"].core.utils.dom));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/tokens'), require('rxjs'), require('rxjs/operators'), require('@ng-web-apis/common'), require('@taiga-ui/core/abstract'), require('@angular/router'), require('@angular/platform-browser'), require('@taiga-ui/core/utils/dom')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/core/services', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/tokens', 'rxjs', 'rxjs/operators', '@ng-web-apis/common', '@taiga-ui/core/abstract', '@angular/router', '@angular/platform-browser', '@taiga-ui/core/utils/dom'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.services = {}), global.ng.core, global.i3, global["taiga-ui"].core.tokens, global.rxjs, global.rxjs.operators, global.common, global["taiga-ui"].core.abstract, global.ng.router, global.ng.platformBrowser, global["taiga-ui"].core.utils.dom));
5
5
  })(this, (function (exports, i0, i3, tokens, i1, operators, common, i2, i1$1, i1$2, dom) { 'use strict';
6
6
 
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
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
- n["default"] = e;
22
- return Object.freeze(n);
19
+ });
23
20
  }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
24
 
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
27
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
28
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
29
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
30
- var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
27
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
28
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
29
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
30
+ var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
31
31
 
32
- /*! *****************************************************************************
33
- Copyright (c) Microsoft Corporation.
32
+ /******************************************************************************
33
+ Copyright (c) Microsoft Corporation.
34
34
 
35
- Permission to use, copy, modify, and/or distribute this software for any
36
- purpose with or without fee is hereby granted.
35
+ Permission to use, copy, modify, and/or distribute this software for any
36
+ purpose with or without fee is hereby granted.
37
37
 
38
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
39
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
40
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
41
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
42
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
43
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
44
- PERFORMANCE OF THIS SOFTWARE.
45
- ***************************************************************************** */
46
- /* global Reflect, Promise */
47
- var extendStatics = function (d, b) {
48
- extendStatics = Object.setPrototypeOf ||
49
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
50
- function (d, b) { for (var p in b)
51
- if (Object.prototype.hasOwnProperty.call(b, p))
52
- d[p] = b[p]; };
53
- return extendStatics(d, b);
54
- };
55
- function __extends(d, b) {
56
- if (typeof b !== "function" && b !== null)
57
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
58
- extendStatics(d, b);
59
- function __() { this.constructor = d; }
60
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61
- }
62
- var __assign = function () {
63
- __assign = Object.assign || function __assign(t) {
64
- for (var s, i = 1, n = arguments.length; i < n; i++) {
65
- s = arguments[i];
66
- for (var p in s)
67
- if (Object.prototype.hasOwnProperty.call(s, p))
68
- t[p] = s[p];
69
- }
70
- return t;
71
- };
72
- return __assign.apply(this, arguments);
73
- };
74
- function __rest(s, e) {
75
- var t = {};
76
- for (var p in s)
77
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
78
- t[p] = s[p];
79
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
80
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
81
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
82
- t[p[i]] = s[p[i]];
83
- }
84
- return t;
85
- }
86
- function __decorate(decorators, target, key, desc) {
87
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
88
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
89
- r = Reflect.decorate(decorators, target, key, desc);
90
- else
91
- for (var i = decorators.length - 1; i >= 0; i--)
92
- if (d = decorators[i])
93
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
94
- return c > 3 && r && Object.defineProperty(target, key, r), r;
95
- }
96
- function __param(paramIndex, decorator) {
97
- return function (target, key) { decorator(target, key, paramIndex); };
98
- }
99
- function __metadata(metadataKey, metadataValue) {
100
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
101
- return Reflect.metadata(metadataKey, metadataValue);
102
- }
103
- function __awaiter(thisArg, _arguments, P, generator) {
104
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
105
- return new (P || (P = Promise))(function (resolve, reject) {
106
- function fulfilled(value) { try {
107
- step(generator.next(value));
108
- }
109
- catch (e) {
110
- reject(e);
111
- } }
112
- function rejected(value) { try {
113
- step(generator["throw"](value));
114
- }
115
- catch (e) {
116
- reject(e);
117
- } }
118
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
119
- step((generator = generator.apply(thisArg, _arguments || [])).next());
120
- });
121
- }
122
- function __generator(thisArg, body) {
123
- var _ = { label: 0, sent: function () { if (t[0] & 1)
124
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
125
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
126
- function verb(n) { return function (v) { return step([n, v]); }; }
127
- function step(op) {
128
- if (f)
129
- throw new TypeError("Generator is already executing.");
130
- while (_)
131
- try {
132
- 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)
133
- return t;
134
- if (y = 0, t)
135
- op = [op[0] & 2, t.value];
136
- switch (op[0]) {
137
- case 0:
138
- case 1:
139
- t = op;
140
- break;
141
- case 4:
142
- _.label++;
143
- return { value: op[1], done: false };
144
- case 5:
145
- _.label++;
146
- y = op[1];
147
- op = [0];
148
- continue;
149
- case 7:
150
- op = _.ops.pop();
151
- _.trys.pop();
152
- continue;
153
- default:
154
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
155
- _ = 0;
156
- continue;
157
- }
158
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
159
- _.label = op[1];
160
- break;
161
- }
162
- if (op[0] === 6 && _.label < t[1]) {
163
- _.label = t[1];
164
- t = op;
165
- break;
166
- }
167
- if (t && _.label < t[2]) {
168
- _.label = t[2];
169
- _.ops.push(op);
170
- break;
171
- }
172
- if (t[2])
173
- _.ops.pop();
174
- _.trys.pop();
175
- continue;
176
- }
177
- op = body.call(thisArg, _);
178
- }
179
- catch (e) {
180
- op = [6, e];
181
- y = 0;
182
- }
183
- finally {
184
- f = t = 0;
185
- }
186
- if (op[0] & 5)
187
- throw op[1];
188
- return { value: op[0] ? op[1] : void 0, done: true };
189
- }
190
- }
191
- var __createBinding = Object.create ? (function (o, m, k, k2) {
192
- if (k2 === undefined)
193
- k2 = k;
194
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
195
- }) : (function (o, m, k, k2) {
196
- if (k2 === undefined)
197
- k2 = k;
198
- o[k2] = m[k];
199
- });
200
- function __exportStar(m, o) {
201
- for (var p in m)
202
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
203
- __createBinding(o, m, p);
204
- }
205
- function __values(o) {
206
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
207
- if (m)
208
- return m.call(o);
209
- if (o && typeof o.length === "number")
210
- return {
211
- next: function () {
212
- if (o && i >= o.length)
213
- o = void 0;
214
- return { value: o && o[i++], done: !o };
215
- }
216
- };
217
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
218
- }
219
- function __read(o, n) {
220
- var m = typeof Symbol === "function" && o[Symbol.iterator];
221
- if (!m)
222
- return o;
223
- var i = m.call(o), r, ar = [], e;
224
- try {
225
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
226
- ar.push(r.value);
227
- }
228
- catch (error) {
229
- e = { error: error };
230
- }
231
- finally {
232
- try {
233
- if (r && !r.done && (m = i["return"]))
234
- m.call(i);
235
- }
236
- finally {
237
- if (e)
238
- throw e.error;
239
- }
240
- }
241
- return ar;
242
- }
243
- /** @deprecated */
244
- function __spread() {
245
- for (var ar = [], i = 0; i < arguments.length; i++)
246
- ar = ar.concat(__read(arguments[i]));
247
- return ar;
248
- }
249
- /** @deprecated */
250
- function __spreadArrays() {
251
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
252
- s += arguments[i].length;
253
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
254
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
255
- r[k] = a[j];
256
- return r;
257
- }
258
- function __spreadArray(to, from, pack) {
259
- if (pack || arguments.length === 2)
260
- for (var i = 0, l = from.length, ar; i < l; i++) {
261
- if (ar || !(i in from)) {
262
- if (!ar)
263
- ar = Array.prototype.slice.call(from, 0, i);
264
- ar[i] = from[i];
265
- }
266
- }
267
- return to.concat(ar || from);
268
- }
269
- function __await(v) {
270
- return this instanceof __await ? (this.v = v, this) : new __await(v);
271
- }
272
- function __asyncGenerator(thisArg, _arguments, generator) {
273
- if (!Symbol.asyncIterator)
274
- throw new TypeError("Symbol.asyncIterator is not defined.");
275
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
276
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
277
- function verb(n) { if (g[n])
278
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
279
- function resume(n, v) { try {
280
- step(g[n](v));
281
- }
282
- catch (e) {
283
- settle(q[0][3], e);
284
- } }
285
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
286
- function fulfill(value) { resume("next", value); }
287
- function reject(value) { resume("throw", value); }
288
- function settle(f, v) { if (f(v), q.shift(), q.length)
289
- resume(q[0][0], q[0][1]); }
290
- }
291
- function __asyncDelegator(o) {
292
- var i, p;
293
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
294
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
295
- }
296
- function __asyncValues(o) {
297
- if (!Symbol.asyncIterator)
298
- throw new TypeError("Symbol.asyncIterator is not defined.");
299
- var m = o[Symbol.asyncIterator], i;
300
- 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);
301
- 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); }); }; }
302
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
303
- }
304
- function __makeTemplateObject(cooked, raw) {
305
- if (Object.defineProperty) {
306
- Object.defineProperty(cooked, "raw", { value: raw });
307
- }
308
- else {
309
- cooked.raw = raw;
310
- }
311
- return cooked;
312
- }
313
- ;
314
- var __setModuleDefault = Object.create ? (function (o, v) {
315
- Object.defineProperty(o, "default", { enumerable: true, value: v });
316
- }) : function (o, v) {
317
- o["default"] = v;
318
- };
319
- function __importStar(mod) {
320
- if (mod && mod.__esModule)
321
- return mod;
322
- var result = {};
323
- if (mod != null)
324
- for (var k in mod)
325
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
326
- __createBinding(result, mod, k);
327
- __setModuleDefault(result, mod);
328
- return result;
329
- }
330
- function __importDefault(mod) {
331
- return (mod && mod.__esModule) ? mod : { default: mod };
332
- }
333
- function __classPrivateFieldGet(receiver, state, kind, f) {
334
- if (kind === "a" && !f)
335
- throw new TypeError("Private accessor was defined without a getter");
336
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
337
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
338
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
339
- }
340
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
341
- if (kind === "m")
342
- throw new TypeError("Private method is not writable");
343
- if (kind === "a" && !f)
344
- throw new TypeError("Private accessor was defined without a setter");
345
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
346
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
347
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
348
- }
38
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
39
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
40
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
41
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
42
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
43
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
44
+ PERFORMANCE OF THIS SOFTWARE.
45
+ ***************************************************************************** */
46
+ /* global Reflect, Promise, SuppressedError, Symbol */
47
+ var extendStatics = function (d, b) {
48
+ extendStatics = Object.setPrototypeOf ||
49
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
50
+ function (d, b) { for (var p in b)
51
+ if (Object.prototype.hasOwnProperty.call(b, p))
52
+ d[p] = b[p]; };
53
+ return extendStatics(d, b);
54
+ };
55
+ function __extends(d, b) {
56
+ if (typeof b !== "function" && b !== null)
57
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
58
+ extendStatics(d, b);
59
+ function __() { this.constructor = d; }
60
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61
+ }
62
+ var __assign = function () {
63
+ __assign = Object.assign || function __assign(t) {
64
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
65
+ s = arguments[i];
66
+ for (var p in s)
67
+ if (Object.prototype.hasOwnProperty.call(s, p))
68
+ t[p] = s[p];
69
+ }
70
+ return t;
71
+ };
72
+ return __assign.apply(this, arguments);
73
+ };
74
+ function __rest(s, e) {
75
+ var t = {};
76
+ for (var p in s)
77
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
78
+ t[p] = s[p];
79
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
80
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
81
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
82
+ t[p[i]] = s[p[i]];
83
+ }
84
+ return t;
85
+ }
86
+ function __decorate(decorators, target, key, desc) {
87
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
88
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
89
+ r = Reflect.decorate(decorators, target, key, desc);
90
+ else
91
+ for (var i = decorators.length - 1; i >= 0; i--)
92
+ if (d = decorators[i])
93
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
94
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
95
+ }
96
+ function __param(paramIndex, decorator) {
97
+ return function (target, key) { decorator(target, key, paramIndex); };
98
+ }
99
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
100
+ function accept(f) { if (f !== void 0 && typeof f !== "function")
101
+ throw new TypeError("Function expected"); return f; }
102
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
103
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
104
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
105
+ var _, done = false;
106
+ for (var i = decorators.length - 1; i >= 0; i--) {
107
+ var context = {};
108
+ for (var p in contextIn)
109
+ context[p] = p === "access" ? {} : contextIn[p];
110
+ for (var p in contextIn.access)
111
+ context.access[p] = contextIn.access[p];
112
+ context.addInitializer = function (f) { if (done)
113
+ throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
114
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
115
+ if (kind === "accessor") {
116
+ if (result === void 0)
117
+ continue;
118
+ if (result === null || typeof result !== "object")
119
+ throw new TypeError("Object expected");
120
+ if (_ = accept(result.get))
121
+ descriptor.get = _;
122
+ if (_ = accept(result.set))
123
+ descriptor.set = _;
124
+ if (_ = accept(result.init))
125
+ initializers.unshift(_);
126
+ }
127
+ else if (_ = accept(result)) {
128
+ if (kind === "field")
129
+ initializers.unshift(_);
130
+ else
131
+ descriptor[key] = _;
132
+ }
133
+ }
134
+ if (target)
135
+ Object.defineProperty(target, contextIn.name, descriptor);
136
+ done = true;
137
+ }
138
+ ;
139
+ function __runInitializers(thisArg, initializers, value) {
140
+ var useValue = arguments.length > 2;
141
+ for (var i = 0; i < initializers.length; i++) {
142
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
143
+ }
144
+ return useValue ? value : void 0;
145
+ }
146
+ ;
147
+ function __propKey(x) {
148
+ return typeof x === "symbol" ? x : "".concat(x);
149
+ }
150
+ ;
151
+ function __setFunctionName(f, name, prefix) {
152
+ if (typeof name === "symbol")
153
+ name = name.description ? "[".concat(name.description, "]") : "";
154
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
155
+ }
156
+ ;
157
+ function __metadata(metadataKey, metadataValue) {
158
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
159
+ return Reflect.metadata(metadataKey, metadataValue);
160
+ }
161
+ function __awaiter(thisArg, _arguments, P, generator) {
162
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
163
+ return new (P || (P = Promise))(function (resolve, reject) {
164
+ function fulfilled(value) { try {
165
+ step(generator.next(value));
166
+ }
167
+ catch (e) {
168
+ reject(e);
169
+ } }
170
+ function rejected(value) { try {
171
+ step(generator["throw"](value));
172
+ }
173
+ catch (e) {
174
+ reject(e);
175
+ } }
176
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
177
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
178
+ });
179
+ }
180
+ function __generator(thisArg, body) {
181
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
182
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
183
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
184
+ function verb(n) { return function (v) { return step([n, v]); }; }
185
+ function step(op) {
186
+ if (f)
187
+ throw new TypeError("Generator is already executing.");
188
+ while (g && (g = 0, op[0] && (_ = 0)), _)
189
+ try {
190
+ 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)
191
+ return t;
192
+ if (y = 0, t)
193
+ op = [op[0] & 2, t.value];
194
+ switch (op[0]) {
195
+ case 0:
196
+ case 1:
197
+ t = op;
198
+ break;
199
+ case 4:
200
+ _.label++;
201
+ return { value: op[1], done: false };
202
+ case 5:
203
+ _.label++;
204
+ y = op[1];
205
+ op = [0];
206
+ continue;
207
+ case 7:
208
+ op = _.ops.pop();
209
+ _.trys.pop();
210
+ continue;
211
+ default:
212
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
213
+ _ = 0;
214
+ continue;
215
+ }
216
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
217
+ _.label = op[1];
218
+ break;
219
+ }
220
+ if (op[0] === 6 && _.label < t[1]) {
221
+ _.label = t[1];
222
+ t = op;
223
+ break;
224
+ }
225
+ if (t && _.label < t[2]) {
226
+ _.label = t[2];
227
+ _.ops.push(op);
228
+ break;
229
+ }
230
+ if (t[2])
231
+ _.ops.pop();
232
+ _.trys.pop();
233
+ continue;
234
+ }
235
+ op = body.call(thisArg, _);
236
+ }
237
+ catch (e) {
238
+ op = [6, e];
239
+ y = 0;
240
+ }
241
+ finally {
242
+ f = t = 0;
243
+ }
244
+ if (op[0] & 5)
245
+ throw op[1];
246
+ return { value: op[0] ? op[1] : void 0, done: true };
247
+ }
248
+ }
249
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
250
+ if (k2 === undefined)
251
+ k2 = k;
252
+ var desc = Object.getOwnPropertyDescriptor(m, k);
253
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
254
+ desc = { enumerable: true, get: function () { return m[k]; } };
255
+ }
256
+ Object.defineProperty(o, k2, desc);
257
+ }) : (function (o, m, k, k2) {
258
+ if (k2 === undefined)
259
+ k2 = k;
260
+ o[k2] = m[k];
261
+ });
262
+ function __exportStar(m, o) {
263
+ for (var p in m)
264
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
265
+ __createBinding(o, m, p);
266
+ }
267
+ function __values(o) {
268
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
269
+ if (m)
270
+ return m.call(o);
271
+ if (o && typeof o.length === "number")
272
+ return {
273
+ next: function () {
274
+ if (o && i >= o.length)
275
+ o = void 0;
276
+ return { value: o && o[i++], done: !o };
277
+ }
278
+ };
279
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
280
+ }
281
+ function __read(o, n) {
282
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
283
+ if (!m)
284
+ return o;
285
+ var i = m.call(o), r, ar = [], e;
286
+ try {
287
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
288
+ ar.push(r.value);
289
+ }
290
+ catch (error) {
291
+ e = { error: error };
292
+ }
293
+ finally {
294
+ try {
295
+ if (r && !r.done && (m = i["return"]))
296
+ m.call(i);
297
+ }
298
+ finally {
299
+ if (e)
300
+ throw e.error;
301
+ }
302
+ }
303
+ return ar;
304
+ }
305
+ /** @deprecated */
306
+ function __spread() {
307
+ for (var ar = [], i = 0; i < arguments.length; i++)
308
+ ar = ar.concat(__read(arguments[i]));
309
+ return ar;
310
+ }
311
+ /** @deprecated */
312
+ function __spreadArrays() {
313
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
314
+ s += arguments[i].length;
315
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
316
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
317
+ r[k] = a[j];
318
+ return r;
319
+ }
320
+ function __spreadArray(to, from, pack) {
321
+ if (pack || arguments.length === 2)
322
+ for (var i = 0, l = from.length, ar; i < l; i++) {
323
+ if (ar || !(i in from)) {
324
+ if (!ar)
325
+ ar = Array.prototype.slice.call(from, 0, i);
326
+ ar[i] = from[i];
327
+ }
328
+ }
329
+ return to.concat(ar || Array.prototype.slice.call(from));
330
+ }
331
+ function __await(v) {
332
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
333
+ }
334
+ function __asyncGenerator(thisArg, _arguments, generator) {
335
+ if (!Symbol.asyncIterator)
336
+ throw new TypeError("Symbol.asyncIterator is not defined.");
337
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
338
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
339
+ function verb(n) { if (g[n])
340
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
341
+ function resume(n, v) { try {
342
+ step(g[n](v));
343
+ }
344
+ catch (e) {
345
+ settle(q[0][3], e);
346
+ } }
347
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
348
+ function fulfill(value) { resume("next", value); }
349
+ function reject(value) { resume("throw", value); }
350
+ function settle(f, v) { if (f(v), q.shift(), q.length)
351
+ resume(q[0][0], q[0][1]); }
352
+ }
353
+ function __asyncDelegator(o) {
354
+ var i, p;
355
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
356
+ 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; }
357
+ }
358
+ function __asyncValues(o) {
359
+ if (!Symbol.asyncIterator)
360
+ throw new TypeError("Symbol.asyncIterator is not defined.");
361
+ var m = o[Symbol.asyncIterator], i;
362
+ 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);
363
+ 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); }); }; }
364
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
365
+ }
366
+ function __makeTemplateObject(cooked, raw) {
367
+ if (Object.defineProperty) {
368
+ Object.defineProperty(cooked, "raw", { value: raw });
369
+ }
370
+ else {
371
+ cooked.raw = raw;
372
+ }
373
+ return cooked;
374
+ }
375
+ ;
376
+ var __setModuleDefault = Object.create ? (function (o, v) {
377
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
378
+ }) : function (o, v) {
379
+ o["default"] = v;
380
+ };
381
+ function __importStar(mod) {
382
+ if (mod && mod.__esModule)
383
+ return mod;
384
+ var result = {};
385
+ if (mod != null)
386
+ for (var k in mod)
387
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
388
+ __createBinding(result, mod, k);
389
+ __setModuleDefault(result, mod);
390
+ return result;
391
+ }
392
+ function __importDefault(mod) {
393
+ return (mod && mod.__esModule) ? mod : { default: mod };
394
+ }
395
+ function __classPrivateFieldGet(receiver, state, kind, f) {
396
+ if (kind === "a" && !f)
397
+ throw new TypeError("Private accessor was defined without a getter");
398
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
399
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
400
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
401
+ }
402
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
403
+ if (kind === "m")
404
+ throw new TypeError("Private method is not writable");
405
+ if (kind === "a" && !f)
406
+ throw new TypeError("Private accessor was defined without a setter");
407
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
408
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
409
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
410
+ }
411
+ function __classPrivateFieldIn(state, receiver) {
412
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
413
+ throw new TypeError("Cannot use 'in' operator on non-object");
414
+ return typeof state === "function" ? receiver === state : state.has(receiver);
415
+ }
416
+ function __addDisposableResource(env, value, async) {
417
+ if (value !== null && value !== void 0) {
418
+ if (typeof value !== "object" && typeof value !== "function")
419
+ throw new TypeError("Object expected.");
420
+ var dispose;
421
+ if (async) {
422
+ if (!Symbol.asyncDispose)
423
+ throw new TypeError("Symbol.asyncDispose is not defined.");
424
+ dispose = value[Symbol.asyncDispose];
425
+ }
426
+ if (dispose === void 0) {
427
+ if (!Symbol.dispose)
428
+ throw new TypeError("Symbol.dispose is not defined.");
429
+ dispose = value[Symbol.dispose];
430
+ }
431
+ if (typeof dispose !== "function")
432
+ throw new TypeError("Object not disposable.");
433
+ env.stack.push({ value: value, dispose: dispose, async: async });
434
+ }
435
+ else if (async) {
436
+ env.stack.push({ async: true });
437
+ }
438
+ return value;
439
+ }
440
+ var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
441
+ var e = new Error(message);
442
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
443
+ };
444
+ function __disposeResources(env) {
445
+ function fail(e) {
446
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
447
+ env.hasError = true;
448
+ }
449
+ function next() {
450
+ while (env.stack.length) {
451
+ var rec = env.stack.pop();
452
+ try {
453
+ var result = rec.dispose && rec.dispose.call(rec.value);
454
+ if (rec.async)
455
+ return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
456
+ }
457
+ catch (e) {
458
+ fail(e);
459
+ }
460
+ }
461
+ if (env.hasError)
462
+ throw env.error;
463
+ }
464
+ return next();
465
+ }
466
+ var tslib_es6 = {
467
+ __extends: __extends,
468
+ __assign: __assign,
469
+ __rest: __rest,
470
+ __decorate: __decorate,
471
+ __param: __param,
472
+ __metadata: __metadata,
473
+ __awaiter: __awaiter,
474
+ __generator: __generator,
475
+ __createBinding: __createBinding,
476
+ __exportStar: __exportStar,
477
+ __values: __values,
478
+ __read: __read,
479
+ __spread: __spread,
480
+ __spreadArrays: __spreadArrays,
481
+ __spreadArray: __spreadArray,
482
+ __await: __await,
483
+ __asyncGenerator: __asyncGenerator,
484
+ __asyncDelegator: __asyncDelegator,
485
+ __asyncValues: __asyncValues,
486
+ __makeTemplateObject: __makeTemplateObject,
487
+ __importStar: __importStar,
488
+ __importDefault: __importDefault,
489
+ __classPrivateFieldGet: __classPrivateFieldGet,
490
+ __classPrivateFieldSet: __classPrivateFieldSet,
491
+ __classPrivateFieldIn: __classPrivateFieldIn,
492
+ __addDisposableResource: __addDisposableResource,
493
+ __disposeResources: __disposeResources,
494
+ };
349
495
 
350
- /**
351
- * Service to provide the current breakpoint based on Taiga UI's media queries
352
- */
353
- var TuiBreakpointService = /** @class */ (function (_super) {
354
- __extends(TuiBreakpointService, _super);
355
- function TuiBreakpointService(media, ngZone, size$) {
356
- var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
357
- _this.media = media;
358
- _this.ngZone = ngZone;
359
- _this.size$ = size$;
360
- _this.sorted = Object.values(_this.media).sort(function (a, b) { return a - b; });
361
- _this.invert = Object.keys(_this.media).reduce(function (ret, key) {
362
- var _a;
363
- return (Object.assign(Object.assign({}, ret), (_a = {}, _a[_this.media[key]] = key, _a)));
364
- }, {});
365
- _this.stream$ = _this.size$.pipe(operators.map(function (_a) {
366
- var width = _a.width;
367
- return _this.sorted.find(function (size) { return size > width; });
368
- }), operators.map(function (key) { return _this.invert[key || _this.sorted[_this.sorted.length - 1]]; }), operators.distinctUntilChanged(), i3.tuiZoneOptimized(_this.ngZone), operators.shareReplay({ bufferSize: 1, refCount: true }));
369
- return _this;
370
- }
371
- return TuiBreakpointService;
372
- }(i1.Observable));
373
- TuiBreakpointService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiBreakpointService, deps: [{ token: tokens.TUI_MEDIA }, { token: i0.NgZone }, { token: i3.TUI_WINDOW_SIZE }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
374
- TuiBreakpointService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiBreakpointService, providedIn: "root" });
375
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiBreakpointService, decorators: [{
376
- type: i0.Injectable,
377
- args: [{
378
- providedIn: "root",
379
- }]
380
- }], ctorParameters: function () {
381
- return [{ type: undefined, decorators: [{
382
- type: i0.Inject,
383
- args: [tokens.TUI_MEDIA]
384
- }] }, { type: i0__namespace.NgZone, decorators: [{
385
- type: i0.Inject,
386
- args: [i0.NgZone]
387
- }] }, { type: i1__namespace.Observable, decorators: [{
388
- type: i0.Inject,
389
- args: [i3.TUI_WINDOW_SIZE]
390
- }] }];
391
- } });
496
+ /**
497
+ * Service to provide the current breakpoint based on Taiga UI's media queries
498
+ */
499
+ var TuiBreakpointService = /** @class */ (function (_super) {
500
+ __extends(TuiBreakpointService, _super);
501
+ function TuiBreakpointService(media, ngZone, size$) {
502
+ var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
503
+ _this.media = media;
504
+ _this.ngZone = ngZone;
505
+ _this.size$ = size$;
506
+ _this.sorted = Object.values(_this.media).sort(function (a, b) { return a - b; });
507
+ _this.invert = Object.keys(_this.media).reduce(function (ret, key) {
508
+ var _a;
509
+ return (Object.assign(Object.assign({}, ret), (_a = {}, _a[_this.media[key]] = key, _a)));
510
+ }, {});
511
+ _this.stream$ = _this.size$.pipe(operators.map(function (_a) {
512
+ var width = _a.width;
513
+ return _this.sorted.find(function (size) { return size > width; });
514
+ }), operators.map(function (key) { return _this.invert[key || _this.sorted[_this.sorted.length - 1]]; }), operators.distinctUntilChanged(), i3.tuiZoneOptimized(_this.ngZone), operators.shareReplay({ bufferSize: 1, refCount: true }));
515
+ return _this;
516
+ }
517
+ return TuiBreakpointService;
518
+ }(i1.Observable));
519
+ TuiBreakpointService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiBreakpointService, deps: [{ token: tokens.TUI_MEDIA }, { token: i0.NgZone }, { token: i3.TUI_WINDOW_SIZE }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
520
+ TuiBreakpointService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiBreakpointService, providedIn: "root" });
521
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiBreakpointService, decorators: [{
522
+ type: i0.Injectable,
523
+ args: [{
524
+ providedIn: "root",
525
+ }]
526
+ }], ctorParameters: function () {
527
+ return [{ type: undefined, decorators: [{
528
+ type: i0.Inject,
529
+ args: [tokens.TUI_MEDIA]
530
+ }] }, { type: i0__namespace.NgZone, decorators: [{
531
+ type: i0.Inject,
532
+ args: [i0.NgZone]
533
+ }] }, { type: i1__namespace.Observable, decorators: [{
534
+ type: i0.Inject,
535
+ args: [i3.TUI_WINDOW_SIZE]
536
+ }] }];
537
+ } });
392
538
 
393
- var TuiFormatDateService = /** @class */ (function () {
394
- function TuiFormatDateService(locale) {
395
- this.locale = locale;
396
- }
397
- TuiFormatDateService.prototype.format = function (timestamp) {
398
- return i1.of(new Date(timestamp).toLocaleTimeString(this.locale, {
399
- hour: "numeric",
400
- minute: "2-digit",
401
- }));
402
- };
403
- return TuiFormatDateService;
404
- }());
405
- TuiFormatDateService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFormatDateService, deps: [{ token: i0.LOCALE_ID }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
406
- TuiFormatDateService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFormatDateService, providedIn: "root" });
407
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFormatDateService, decorators: [{
408
- type: i0.Injectable,
409
- args: [{
410
- providedIn: "root",
411
- }]
412
- }], ctorParameters: function () {
413
- return [{ type: undefined, decorators: [{
414
- type: i0.Inject,
415
- args: [i0.LOCALE_ID]
416
- }] }];
417
- } });
539
+ var TuiFormatDateService = /** @class */ (function () {
540
+ function TuiFormatDateService(locale) {
541
+ this.locale = locale;
542
+ }
543
+ TuiFormatDateService.prototype.format = function (timestamp) {
544
+ return i1.of(new Date(timestamp).toLocaleTimeString(this.locale, {
545
+ hour: "numeric",
546
+ minute: "2-digit",
547
+ }));
548
+ };
549
+ return TuiFormatDateService;
550
+ }());
551
+ TuiFormatDateService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFormatDateService, deps: [{ token: i0.LOCALE_ID }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
552
+ TuiFormatDateService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFormatDateService, providedIn: "root" });
553
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFormatDateService, decorators: [{
554
+ type: i0.Injectable,
555
+ args: [{
556
+ providedIn: "root",
557
+ }]
558
+ }], ctorParameters: function () {
559
+ return [{ type: undefined, decorators: [{
560
+ type: i0.Inject,
561
+ args: [i0.LOCALE_ID]
562
+ }] }];
563
+ } });
418
564
 
419
- /**
420
- * Service for displaying hints/tooltips
421
- */
422
- var TuiHintService = /** @class */ (function (_super) {
423
- __extends(TuiHintService, _super);
424
- function TuiHintService() {
425
- return _super.call(this, []) || this;
426
- }
427
- TuiHintService.prototype.add = function (directive) {
428
- this.next(this.value.concat(directive));
429
- };
430
- TuiHintService.prototype.remove = function (directive) {
431
- if (this.value.includes(directive)) {
432
- this.next(this.value.filter(function (hint) { return hint !== directive; }));
433
- }
434
- };
435
- return TuiHintService;
436
- }(i1.BehaviorSubject));
437
- TuiHintService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
438
- TuiHintService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintService, providedIn: "root" });
439
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintService, decorators: [{
440
- type: i0.Injectable,
441
- args: [{
442
- providedIn: "root",
443
- }]
444
- }], ctorParameters: function () { return []; } });
565
+ /**
566
+ * Service for displaying hints/tooltips
567
+ */
568
+ var TuiHintService = /** @class */ (function (_super) {
569
+ __extends(TuiHintService, _super);
570
+ function TuiHintService() {
571
+ return _super.call(this, []) || this;
572
+ }
573
+ TuiHintService.prototype.add = function (directive) {
574
+ this.next(this.value.concat(directive));
575
+ };
576
+ TuiHintService.prototype.remove = function (directive) {
577
+ if (this.value.includes(directive)) {
578
+ this.next(this.value.filter(function (hint) { return hint !== directive; }));
579
+ }
580
+ };
581
+ return TuiHintService;
582
+ }(i1.BehaviorSubject));
583
+ TuiHintService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
584
+ TuiHintService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintService, providedIn: "root" });
585
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintService, decorators: [{
586
+ type: i0.Injectable,
587
+ args: [{
588
+ providedIn: "root",
589
+ }]
590
+ }], ctorParameters: function () { return []; } });
445
591
 
446
- var TuiNightThemeService = /** @class */ (function (_super) {
447
- __extends(TuiNightThemeService, _super);
448
- function TuiNightThemeService(win) {
449
- var _this = this;
450
- var media = win.matchMedia("(prefers-color-scheme: dark)");
451
- var media$ = i1.fromEvent(media, "change").pipe(operators.startWith(null), operators.map(function () { return media.matches; }), operators.share());
452
- _this = _super.call(this, function (subscriber) { return media$.subscribe(subscriber); }) || this;
453
- return _this;
454
- }
455
- return TuiNightThemeService;
456
- }(i1.Observable));
457
- TuiNightThemeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNightThemeService, deps: [{ token: common.WINDOW }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
458
- TuiNightThemeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNightThemeService, providedIn: "root" });
459
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNightThemeService, decorators: [{
460
- type: i0.Injectable,
461
- args: [{
462
- providedIn: "root",
463
- }]
464
- }], ctorParameters: function () {
465
- return [{ type: Window, decorators: [{
466
- type: i0.Inject,
467
- args: [common.WINDOW]
468
- }] }];
469
- } });
592
+ var TuiNightThemeService = /** @class */ (function (_super) {
593
+ __extends(TuiNightThemeService, _super);
594
+ function TuiNightThemeService(win) {
595
+ var _this = this;
596
+ var media = win.matchMedia("(prefers-color-scheme: dark)");
597
+ var media$ = i1.fromEvent(media, "change").pipe(operators.startWith(null), operators.map(function () { return media.matches; }), operators.share());
598
+ _this = _super.call(this, function (subscriber) { return media$.subscribe(subscriber); }) || this;
599
+ return _this;
600
+ }
601
+ return TuiNightThemeService;
602
+ }(i1.Observable));
603
+ TuiNightThemeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNightThemeService, deps: [{ token: common.WINDOW }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
604
+ TuiNightThemeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNightThemeService, providedIn: "root" });
605
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNightThemeService, decorators: [{
606
+ type: i0.Injectable,
607
+ args: [{
608
+ providedIn: "root",
609
+ }]
610
+ }], ctorParameters: function () {
611
+ return [{ type: Window, decorators: [{
612
+ type: i0.Inject,
613
+ args: [common.WINDOW]
614
+ }] }];
615
+ } });
470
616
 
471
- var TuiPositionService = /** @class */ (function (_super) {
472
- __extends(TuiPositionService, _super);
473
- function TuiPositionService(
474
- // Destructuring here causes memory leak
475
- el, animationFrame, zone, accessor) {
476
- return _super.call(this, function (subscriber) { return animationFrame
477
- .pipe(operators.map(function () { return el.nativeElement.getBoundingClientRect(); }), operators.map(function (rect) { return accessor.getPosition(rect); }), i3.tuiZonefree(zone), operators.finalize(function () { return accessor.getPosition(i3.EMPTY_CLIENT_RECT); }))
478
- .subscribe(subscriber); }) || this;
479
- }
480
- return TuiPositionService;
481
- }(i1.Observable));
482
- TuiPositionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPositionService, deps: [{ token: i0.ElementRef }, { token: common.ANIMATION_FRAME }, { token: i0.NgZone }, { token: i2.TuiPositionAccessor }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
483
- TuiPositionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPositionService });
484
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPositionService, decorators: [{
485
- type: i0.Injectable
486
- }], ctorParameters: function () {
487
- return [{ type: i0__namespace.ElementRef, decorators: [{
488
- type: i0.Inject,
489
- args: [i0.ElementRef]
490
- }] }, { type: i1__namespace.Observable, decorators: [{
491
- type: i0.Inject,
492
- args: [common.ANIMATION_FRAME]
493
- }] }, { type: i0__namespace.NgZone, decorators: [{
494
- type: i0.Inject,
495
- args: [i0.NgZone]
496
- }] }, { type: i2__namespace.TuiPositionAccessor, decorators: [{
497
- type: i0.Inject,
498
- args: [i2.TuiPositionAccessor]
499
- }] }];
500
- } });
617
+ var TuiPositionService = /** @class */ (function (_super) {
618
+ __extends(TuiPositionService, _super);
619
+ function TuiPositionService(
620
+ // Destructuring here causes memory leak
621
+ el, animationFrame, zone, accessor) {
622
+ return _super.call(this, function (subscriber) { return animationFrame
623
+ .pipe(operators.map(function () { return el.nativeElement.getBoundingClientRect(); }), operators.map(function (rect) { return accessor.getPosition(rect); }), i3.tuiZonefree(zone), operators.finalize(function () { return accessor.getPosition(i3.EMPTY_CLIENT_RECT); }))
624
+ .subscribe(subscriber); }) || this;
625
+ }
626
+ return TuiPositionService;
627
+ }(i1.Observable));
628
+ TuiPositionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPositionService, deps: [{ token: i0.ElementRef }, { token: common.ANIMATION_FRAME }, { token: i0.NgZone }, { token: i2.TuiPositionAccessor }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
629
+ TuiPositionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPositionService });
630
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPositionService, decorators: [{
631
+ type: i0.Injectable
632
+ }], ctorParameters: function () {
633
+ return [{ type: i0__namespace.ElementRef, decorators: [{
634
+ type: i0.Inject,
635
+ args: [i0.ElementRef]
636
+ }] }, { type: i1__namespace.Observable, decorators: [{
637
+ type: i0.Inject,
638
+ args: [common.ANIMATION_FRAME]
639
+ }] }, { type: i0__namespace.NgZone, decorators: [{
640
+ type: i0.Inject,
641
+ args: [i0.NgZone]
642
+ }] }, { type: i2__namespace.TuiPositionAccessor, decorators: [{
643
+ type: i0.Inject,
644
+ args: [i2.TuiPositionAccessor]
645
+ }] }];
646
+ } });
501
647
 
502
- // TODO: Remove when Angular is update and `RouterLinkActive` has output
503
- var TuiRouterLinkActiveService = /** @class */ (function (_super) {
504
- __extends(TuiRouterLinkActiveService, _super);
505
- function TuiRouterLinkActiveService(routerLinkActive, zone, animationFrame$, destroy$) {
506
- var _this = this;
507
- var stream$ = routerLinkActive
508
- ? i1.merge(i1.timer(0), // SSR (animationFrame$ never emits value during SSR)
509
- animationFrame$).pipe(operators.map(function () { return routerLinkActive.isActive; }), operators.distinctUntilChanged(), i3.tuiZoneOptimized(zone), operators.takeUntil(destroy$))
510
- : i1.EMPTY;
511
- _this = _super.call(this, function (subscriber) { return stream$.subscribe(subscriber); }) || this;
512
- return _this;
513
- }
514
- return TuiRouterLinkActiveService;
515
- }(i1.Observable));
516
- TuiRouterLinkActiveService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRouterLinkActiveService, deps: [{ token: i1$1.RouterLinkActive, optional: true }, { token: i0.NgZone }, { token: common.ANIMATION_FRAME }, { token: i3.TuiDestroyService, self: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
517
- TuiRouterLinkActiveService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRouterLinkActiveService });
518
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRouterLinkActiveService, decorators: [{
519
- type: i0.Injectable
520
- }], ctorParameters: function () {
521
- return [{ type: i1__namespace$1.RouterLinkActive, decorators: [{
522
- type: i0.Optional
523
- }, {
524
- type: i0.Inject,
525
- args: [i1$1.RouterLinkActive]
526
- }] }, { type: i0__namespace.NgZone, decorators: [{
527
- type: i0.Inject,
528
- args: [i0.NgZone]
529
- }] }, { type: i1__namespace.Observable, decorators: [{
530
- type: i0.Inject,
531
- args: [common.ANIMATION_FRAME]
532
- }] }, { type: i3__namespace.TuiDestroyService, decorators: [{
533
- type: i0.Self
534
- }, {
535
- type: i0.Inject,
536
- args: [i3.TuiDestroyService]
537
- }] }];
538
- } });
648
+ // TODO: Remove when Angular is update and `RouterLinkActive` has output
649
+ var TuiRouterLinkActiveService = /** @class */ (function (_super) {
650
+ __extends(TuiRouterLinkActiveService, _super);
651
+ function TuiRouterLinkActiveService(routerLinkActive, zone, animationFrame$, destroy$) {
652
+ var _this = this;
653
+ var stream$ = routerLinkActive
654
+ ? i1.merge(i1.timer(0), // SSR (animationFrame$ never emits value during SSR)
655
+ animationFrame$).pipe(operators.map(function () { return routerLinkActive.isActive; }), operators.distinctUntilChanged(), i3.tuiZoneOptimized(zone), operators.takeUntil(destroy$))
656
+ : i1.EMPTY;
657
+ _this = _super.call(this, function (subscriber) { return stream$.subscribe(subscriber); }) || this;
658
+ return _this;
659
+ }
660
+ return TuiRouterLinkActiveService;
661
+ }(i1.Observable));
662
+ TuiRouterLinkActiveService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRouterLinkActiveService, deps: [{ token: i1$1.RouterLinkActive, optional: true }, { token: i0.NgZone }, { token: common.ANIMATION_FRAME }, { token: i3.TuiDestroyService, self: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
663
+ TuiRouterLinkActiveService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRouterLinkActiveService });
664
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRouterLinkActiveService, decorators: [{
665
+ type: i0.Injectable
666
+ }], ctorParameters: function () {
667
+ return [{ type: i1__namespace$1.RouterLinkActive, decorators: [{
668
+ type: i0.Optional
669
+ }, {
670
+ type: i0.Inject,
671
+ args: [i1$1.RouterLinkActive]
672
+ }] }, { type: i0__namespace.NgZone, decorators: [{
673
+ type: i0.Inject,
674
+ args: [i0.NgZone]
675
+ }] }, { type: i1__namespace.Observable, decorators: [{
676
+ type: i0.Inject,
677
+ args: [common.ANIMATION_FRAME]
678
+ }] }, { type: i3__namespace.TuiDestroyService, decorators: [{
679
+ type: i0.Self
680
+ }, {
681
+ type: i0.Inject,
682
+ args: [i3.TuiDestroyService]
683
+ }] }];
684
+ } });
539
685
 
540
- /**
541
- * Service for reusing SVGs without inlining each instance
542
- */
543
- var TuiSvgService = /** @class */ (function () {
544
- function TuiSvgService(tuiSanitizer, sanitizer, icons) {
545
- this.tuiSanitizer = tuiSanitizer;
546
- this.sanitizer = sanitizer;
547
- this.originals = {};
548
- this.items$ = new i1.BehaviorSubject(new Map());
549
- this.define(icons);
550
- }
551
- TuiSvgService.prototype.define = function (icons) {
552
- var _this = this;
553
- var value = this.items$.value;
554
- Object.keys(icons).forEach(function (key) {
555
- _this.defineIcon(key, icons[key], value);
556
- });
557
- this.items$.next(value);
558
- };
559
- TuiSvgService.prototype.getOriginal = function (name) {
560
- return this.originals[name] || null;
561
- };
562
- TuiSvgService.prototype.defineIcon = function (name, src, map) {
563
- var _a;
564
- if (map.has(name)) {
565
- return;
566
- }
567
- var parsed = this.parseSrc(name, src);
568
- if (!parsed) {
569
- ngDevMode && i3.tuiAssert.assert(false, "Unable to parse given SVG src");
570
- return;
571
- }
572
- map.set(name, parsed);
573
- this.originals = Object.assign(Object.assign({}, this.originals), (_a = {}, _a[name] = src, _a));
574
- };
575
- TuiSvgService.prototype.parseSrc = function (name, src) {
576
- return this.sanitize(dom.tuiProcessIcon(src, name));
577
- };
578
- TuiSvgService.prototype.sanitize = function (src) {
579
- return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer
580
- ? this.tuiSanitizer.sanitize(i0.SecurityContext.HTML, src)
581
- : this.sanitizer.sanitize(i0.SecurityContext.HTML, src)) || "");
582
- };
583
- return TuiSvgService;
584
- }());
585
- TuiSvgService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSvgService, deps: [{ token: tokens.TUI_SANITIZER, optional: true }, { token: i1$2.DomSanitizer }, { token: tokens.TUI_ICONS }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
586
- TuiSvgService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSvgService, providedIn: "root" });
587
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSvgService, decorators: [{
588
- type: i0.Injectable,
589
- args: [{
590
- providedIn: "root",
591
- }]
592
- }], ctorParameters: function () {
593
- return [{ type: i0__namespace.Sanitizer, decorators: [{
594
- type: i0.Optional
595
- }, {
596
- type: i0.Inject,
597
- args: [tokens.TUI_SANITIZER]
598
- }] }, { type: i1__namespace$2.DomSanitizer, decorators: [{
599
- type: i0.Inject,
600
- args: [i1$2.DomSanitizer]
601
- }] }, { type: undefined, decorators: [{
602
- type: i0.Inject,
603
- args: [tokens.TUI_ICONS]
604
- }] }];
605
- } });
686
+ /**
687
+ * Service for reusing SVGs without inlining each instance
688
+ */
689
+ var TuiSvgService = /** @class */ (function () {
690
+ function TuiSvgService(tuiSanitizer, sanitizer, icons) {
691
+ this.tuiSanitizer = tuiSanitizer;
692
+ this.sanitizer = sanitizer;
693
+ this.originals = {};
694
+ this.items$ = new i1.BehaviorSubject(new Map());
695
+ this.define(icons);
696
+ }
697
+ TuiSvgService.prototype.define = function (icons) {
698
+ var _this = this;
699
+ var value = this.items$.value;
700
+ Object.keys(icons).forEach(function (key) {
701
+ _this.defineIcon(key, icons[key], value);
702
+ });
703
+ this.items$.next(value);
704
+ };
705
+ TuiSvgService.prototype.getOriginal = function (name) {
706
+ return this.originals[name] || null;
707
+ };
708
+ TuiSvgService.prototype.defineIcon = function (name, src, map) {
709
+ var _a;
710
+ if (map.has(name)) {
711
+ return;
712
+ }
713
+ var parsed = this.parseSrc(name, src);
714
+ if (!parsed) {
715
+ ngDevMode && i3.tuiAssert.assert(false, "Unable to parse given SVG src");
716
+ return;
717
+ }
718
+ map.set(name, parsed);
719
+ this.originals = Object.assign(Object.assign({}, this.originals), (_a = {}, _a[name] = src, _a));
720
+ };
721
+ TuiSvgService.prototype.parseSrc = function (name, src) {
722
+ return this.sanitize(dom.tuiProcessIcon(src, name));
723
+ };
724
+ TuiSvgService.prototype.sanitize = function (src) {
725
+ return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer
726
+ ? this.tuiSanitizer.sanitize(i0.SecurityContext.HTML, src)
727
+ : this.sanitizer.sanitize(i0.SecurityContext.HTML, src)) || "");
728
+ };
729
+ return TuiSvgService;
730
+ }());
731
+ TuiSvgService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSvgService, deps: [{ token: tokens.TUI_SANITIZER, optional: true }, { token: i1$2.DomSanitizer }, { token: tokens.TUI_ICONS }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
732
+ TuiSvgService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSvgService, providedIn: "root" });
733
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSvgService, decorators: [{
734
+ type: i0.Injectable,
735
+ args: [{
736
+ providedIn: "root",
737
+ }]
738
+ }], ctorParameters: function () {
739
+ return [{ type: i0__namespace.Sanitizer, decorators: [{
740
+ type: i0.Optional
741
+ }, {
742
+ type: i0.Inject,
743
+ args: [tokens.TUI_SANITIZER]
744
+ }] }, { type: i1__namespace$2.DomSanitizer, decorators: [{
745
+ type: i0.Inject,
746
+ args: [i1$2.DomSanitizer]
747
+ }] }, { type: undefined, decorators: [{
748
+ type: i0.Inject,
749
+ args: [tokens.TUI_ICONS]
750
+ }] }];
751
+ } });
606
752
 
607
- var TuiVisualViewportService = /** @class */ (function () {
608
- function TuiVisualViewportService(win, isWebkit) {
609
- this.win = win;
610
- this.isWebkit = isWebkit;
611
- }
612
- // https://bugs.webkit.org/show_bug.cgi?id=207089
613
- TuiVisualViewportService.prototype.correct = function (point) {
614
- var _a, _b, _c, _d;
615
- return this.isWebkit
616
- ? [
617
- point[0] + ((_b = (_a = this.win.visualViewport) === null || _a === void 0 ? void 0 : _a.offsetTop) !== null && _b !== void 0 ? _b : 0),
618
- point[1] + ((_d = (_c = this.win.visualViewport) === null || _c === void 0 ? void 0 : _c.offsetLeft) !== null && _d !== void 0 ? _d : 0),
619
- ]
620
- : point;
621
- };
622
- return TuiVisualViewportService;
623
- }());
624
- TuiVisualViewportService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiVisualViewportService, deps: [{ token: common.WINDOW }, { token: i3.TUI_IS_WEBKIT }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
625
- TuiVisualViewportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiVisualViewportService, providedIn: "root" });
626
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiVisualViewportService, decorators: [{
627
- type: i0.Injectable,
628
- args: [{
629
- providedIn: "root",
630
- }]
631
- }], ctorParameters: function () {
632
- return [{ type: Window, decorators: [{
633
- type: i0.Inject,
634
- args: [common.WINDOW]
635
- }] }, { type: undefined, decorators: [{
636
- type: i0.Inject,
637
- args: [i3.TUI_IS_WEBKIT]
638
- }] }];
639
- } });
753
+ var TuiVisualViewportService = /** @class */ (function () {
754
+ function TuiVisualViewportService(win, isWebkit) {
755
+ this.win = win;
756
+ this.isWebkit = isWebkit;
757
+ }
758
+ // https://bugs.webkit.org/show_bug.cgi?id=207089
759
+ TuiVisualViewportService.prototype.correct = function (point) {
760
+ var _a, _b, _c, _d;
761
+ return this.isWebkit
762
+ ? [
763
+ point[0] + ((_b = (_a = this.win.visualViewport) === null || _a === void 0 ? void 0 : _a.offsetTop) !== null && _b !== void 0 ? _b : 0),
764
+ point[1] + ((_d = (_c = this.win.visualViewport) === null || _c === void 0 ? void 0 : _c.offsetLeft) !== null && _d !== void 0 ? _d : 0),
765
+ ]
766
+ : point;
767
+ };
768
+ return TuiVisualViewportService;
769
+ }());
770
+ TuiVisualViewportService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiVisualViewportService, deps: [{ token: common.WINDOW }, { token: i3.TUI_IS_WEBKIT }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
771
+ TuiVisualViewportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiVisualViewportService, providedIn: "root" });
772
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiVisualViewportService, decorators: [{
773
+ type: i0.Injectable,
774
+ args: [{
775
+ providedIn: "root",
776
+ }]
777
+ }], ctorParameters: function () {
778
+ return [{ type: Window, decorators: [{
779
+ type: i0.Inject,
780
+ args: [common.WINDOW]
781
+ }] }, { type: undefined, decorators: [{
782
+ type: i0.Inject,
783
+ args: [i3.TUI_IS_WEBKIT]
784
+ }] }];
785
+ } });
640
786
 
641
- /**
642
- * Generated bundle index. Do not edit.
643
- */
787
+ /**
788
+ * Generated bundle index. Do not edit.
789
+ */
644
790
 
645
- exports.TuiBreakpointService = TuiBreakpointService;
646
- exports.TuiFormatDateService = TuiFormatDateService;
647
- exports.TuiHintService = TuiHintService;
648
- exports.TuiNightThemeService = TuiNightThemeService;
649
- exports.TuiPositionService = TuiPositionService;
650
- exports.TuiRouterLinkActiveService = TuiRouterLinkActiveService;
651
- exports.TuiSvgService = TuiSvgService;
652
- exports.TuiVisualViewportService = TuiVisualViewportService;
791
+ exports.TuiBreakpointService = TuiBreakpointService;
792
+ exports.TuiFormatDateService = TuiFormatDateService;
793
+ exports.TuiHintService = TuiHintService;
794
+ exports.TuiNightThemeService = TuiNightThemeService;
795
+ exports.TuiPositionService = TuiPositionService;
796
+ exports.TuiRouterLinkActiveService = TuiRouterLinkActiveService;
797
+ exports.TuiSvgService = TuiSvgService;
798
+ exports.TuiVisualViewportService = TuiVisualViewportService;
653
799
 
654
- Object.defineProperty(exports, '__esModule', { value: true });
800
+ Object.defineProperty(exports, '__esModule', { value: true });
655
801
 
656
802
  }));
657
803
  //# sourceMappingURL=taiga-ui-core-services.umd.js.map