@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.
Files changed (44) hide show
  1. package/bundles/taiga-ui-cdk-abstract.umd.js +1118 -971
  2. package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +650 -504
  4. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
  5. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +550 -404
  6. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
  7. package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js +737 -591
  8. package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js.map +1 -1
  9. package/bundles/taiga-ui-cdk-constants.umd.js +1 -1
  10. package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
  11. package/bundles/taiga-ui-cdk-date-time.umd.js +152 -6
  12. package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
  13. package/bundles/taiga-ui-cdk-decorators.umd.js +152 -6
  14. package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
  15. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +583 -437
  16. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
  17. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +852 -706
  18. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
  19. package/bundles/taiga-ui-cdk-directives-for-async.umd.js +572 -426
  20. package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
  21. package/bundles/taiga-ui-cdk-directives-hovered.umd.js +556 -410
  22. package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
  23. package/bundles/taiga-ui-cdk-directives-resizer.umd.js +628 -482
  24. package/bundles/taiga-ui-cdk-directives-resizer.umd.js.map +1 -1
  25. package/bundles/taiga-ui-cdk-exceptions.umd.js +572 -426
  26. package/bundles/taiga-ui-cdk-exceptions.umd.js.map +1 -1
  27. package/bundles/taiga-ui-cdk-pipes-filter.umd.js +519 -373
  28. package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
  29. package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +519 -373
  30. package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
  31. package/bundles/taiga-ui-cdk-services.umd.js +986 -840
  32. package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
  33. package/bundles/taiga-ui-cdk-tokens.umd.js +796 -650
  34. package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
  35. package/bundles/taiga-ui-cdk-utils-color.umd.js +152 -6
  36. package/bundles/taiga-ui-cdk-utils-color.umd.js.map +1 -1
  37. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +152 -6
  38. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
  39. package/constants/version.d.ts +1 -1
  40. package/constants/version.js +1 -1
  41. package/esm2015/constants/version.js +2 -2
  42. package/fesm2015/taiga-ui-cdk-constants.js +1 -1
  43. package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
  44. package/package.json +1 -1
@@ -1,610 +1,756 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ng-web-apis/common'), require('@taiga-ui/cdk/observables'), require('@taiga-ui/cdk/tokens'), require('rxjs/operators'), require('@angular/common'), require('@taiga-ui/cdk/constants'), require('@taiga-ui/cdk/services'), require('rxjs')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/cdk/components/scroll-controls', ['exports', '@angular/core', '@ng-web-apis/common', '@taiga-ui/cdk/observables', '@taiga-ui/cdk/tokens', 'rxjs/operators', '@angular/common', '@taiga-ui/cdk/constants', '@taiga-ui/cdk/services', 'rxjs'], 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.components = global["taiga-ui"].cdk.components || {}, global["taiga-ui"].cdk.components["scroll-controls"] = {}), global.ng.core, global.common, global["taiga-ui"].cdk.observables, global["taiga-ui"].cdk.tokens, global.rxjs.operators, global.ng.common, global["taiga-ui"].cdk.constants, global["taiga-ui"].cdk.services, global.rxjs));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ng-web-apis/common'), require('@taiga-ui/cdk/observables'), require('@taiga-ui/cdk/tokens'), require('rxjs/operators'), require('@angular/common'), require('@taiga-ui/cdk/constants'), require('@taiga-ui/cdk/services'), require('rxjs')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/cdk/components/scroll-controls', ['exports', '@angular/core', '@ng-web-apis/common', '@taiga-ui/cdk/observables', '@taiga-ui/cdk/tokens', 'rxjs/operators', '@angular/common', '@taiga-ui/cdk/constants', '@taiga-ui/cdk/services', 'rxjs'], 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.components = global["taiga-ui"].cdk.components || {}, global["taiga-ui"].cdk.components["scroll-controls"] = {}), global.ng.core, global.common, global["taiga-ui"].cdk.observables, global["taiga-ui"].cdk.tokens, global.rxjs.operators, global.ng.common, global["taiga-ui"].cdk.constants, global["taiga-ui"].cdk.services, global.rxjs));
5
5
  })(this, (function (exports, i0, common, observables, tokens, operators, i1$1, constants, services, i1) { '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 i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
27
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
27
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
28
28
 
29
- /*! *****************************************************************************
30
- Copyright (c) Microsoft Corporation.
29
+ /******************************************************************************
30
+ Copyright (c) Microsoft Corporation.
31
31
 
32
- Permission to use, copy, modify, and/or distribute this software for any
33
- purpose with or without fee is hereby granted.
32
+ Permission to use, copy, modify, and/or distribute this software for any
33
+ purpose with or without fee is hereby granted.
34
34
 
35
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
36
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
38
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
39
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
40
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
- PERFORMANCE OF THIS SOFTWARE.
42
- ***************************************************************************** */
43
- /* global Reflect, Promise */
44
- var extendStatics = function (d, b) {
45
- extendStatics = Object.setPrototypeOf ||
46
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
47
- function (d, b) { for (var p in b)
48
- if (Object.prototype.hasOwnProperty.call(b, p))
49
- d[p] = b[p]; };
50
- return extendStatics(d, b);
51
- };
52
- function __extends(d, b) {
53
- if (typeof b !== "function" && b !== null)
54
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
55
- extendStatics(d, b);
56
- function __() { this.constructor = d; }
57
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
58
- }
59
- var __assign = function () {
60
- __assign = Object.assign || function __assign(t) {
61
- for (var s, i = 1, n = arguments.length; i < n; i++) {
62
- s = arguments[i];
63
- for (var p in s)
64
- if (Object.prototype.hasOwnProperty.call(s, p))
65
- t[p] = s[p];
66
- }
67
- return t;
68
- };
69
- return __assign.apply(this, arguments);
70
- };
71
- function __rest(s, e) {
72
- var t = {};
73
- for (var p in s)
74
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
75
- t[p] = s[p];
76
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
77
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
78
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
79
- t[p[i]] = s[p[i]];
80
- }
81
- return t;
82
- }
83
- function __decorate(decorators, target, key, desc) {
84
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
85
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
86
- r = Reflect.decorate(decorators, target, key, desc);
87
- else
88
- for (var i = decorators.length - 1; i >= 0; i--)
89
- if (d = decorators[i])
90
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
91
- return c > 3 && r && Object.defineProperty(target, key, r), r;
92
- }
93
- function __param(paramIndex, decorator) {
94
- return function (target, key) { decorator(target, key, paramIndex); };
95
- }
96
- function __metadata(metadataKey, metadataValue) {
97
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
98
- return Reflect.metadata(metadataKey, metadataValue);
99
- }
100
- function __awaiter(thisArg, _arguments, P, generator) {
101
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
102
- return new (P || (P = Promise))(function (resolve, reject) {
103
- function fulfilled(value) { try {
104
- step(generator.next(value));
105
- }
106
- catch (e) {
107
- reject(e);
108
- } }
109
- function rejected(value) { try {
110
- step(generator["throw"](value));
111
- }
112
- catch (e) {
113
- reject(e);
114
- } }
115
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
116
- step((generator = generator.apply(thisArg, _arguments || [])).next());
117
- });
118
- }
119
- function __generator(thisArg, body) {
120
- var _ = { label: 0, sent: function () { if (t[0] & 1)
121
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
122
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
123
- function verb(n) { return function (v) { return step([n, v]); }; }
124
- function step(op) {
125
- if (f)
126
- throw new TypeError("Generator is already executing.");
127
- while (_)
128
- try {
129
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
130
- return t;
131
- if (y = 0, t)
132
- op = [op[0] & 2, t.value];
133
- switch (op[0]) {
134
- case 0:
135
- case 1:
136
- t = op;
137
- break;
138
- case 4:
139
- _.label++;
140
- return { value: op[1], done: false };
141
- case 5:
142
- _.label++;
143
- y = op[1];
144
- op = [0];
145
- continue;
146
- case 7:
147
- op = _.ops.pop();
148
- _.trys.pop();
149
- continue;
150
- default:
151
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
152
- _ = 0;
153
- continue;
154
- }
155
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
156
- _.label = op[1];
157
- break;
158
- }
159
- if (op[0] === 6 && _.label < t[1]) {
160
- _.label = t[1];
161
- t = op;
162
- break;
163
- }
164
- if (t && _.label < t[2]) {
165
- _.label = t[2];
166
- _.ops.push(op);
167
- break;
168
- }
169
- if (t[2])
170
- _.ops.pop();
171
- _.trys.pop();
172
- continue;
173
- }
174
- op = body.call(thisArg, _);
175
- }
176
- catch (e) {
177
- op = [6, e];
178
- y = 0;
179
- }
180
- finally {
181
- f = t = 0;
182
- }
183
- if (op[0] & 5)
184
- throw op[1];
185
- return { value: op[0] ? op[1] : void 0, done: true };
186
- }
187
- }
188
- var __createBinding = Object.create ? (function (o, m, k, k2) {
189
- if (k2 === undefined)
190
- k2 = k;
191
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
192
- }) : (function (o, m, k, k2) {
193
- if (k2 === undefined)
194
- k2 = k;
195
- o[k2] = m[k];
196
- });
197
- function __exportStar(m, o) {
198
- for (var p in m)
199
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
200
- __createBinding(o, m, p);
201
- }
202
- function __values(o) {
203
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
204
- if (m)
205
- return m.call(o);
206
- if (o && typeof o.length === "number")
207
- return {
208
- next: function () {
209
- if (o && i >= o.length)
210
- o = void 0;
211
- return { value: o && o[i++], done: !o };
212
- }
213
- };
214
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
215
- }
216
- function __read(o, n) {
217
- var m = typeof Symbol === "function" && o[Symbol.iterator];
218
- if (!m)
219
- return o;
220
- var i = m.call(o), r, ar = [], e;
221
- try {
222
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
223
- ar.push(r.value);
224
- }
225
- catch (error) {
226
- e = { error: error };
227
- }
228
- finally {
229
- try {
230
- if (r && !r.done && (m = i["return"]))
231
- m.call(i);
232
- }
233
- finally {
234
- if (e)
235
- throw e.error;
236
- }
237
- }
238
- return ar;
239
- }
240
- /** @deprecated */
241
- function __spread() {
242
- for (var ar = [], i = 0; i < arguments.length; i++)
243
- ar = ar.concat(__read(arguments[i]));
244
- return ar;
245
- }
246
- /** @deprecated */
247
- function __spreadArrays() {
248
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
249
- s += arguments[i].length;
250
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
251
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
252
- r[k] = a[j];
253
- return r;
254
- }
255
- function __spreadArray(to, from, pack) {
256
- if (pack || arguments.length === 2)
257
- for (var i = 0, l = from.length, ar; i < l; i++) {
258
- if (ar || !(i in from)) {
259
- if (!ar)
260
- ar = Array.prototype.slice.call(from, 0, i);
261
- ar[i] = from[i];
262
- }
263
- }
264
- return to.concat(ar || from);
265
- }
266
- function __await(v) {
267
- return this instanceof __await ? (this.v = v, this) : new __await(v);
268
- }
269
- function __asyncGenerator(thisArg, _arguments, generator) {
270
- if (!Symbol.asyncIterator)
271
- throw new TypeError("Symbol.asyncIterator is not defined.");
272
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
273
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
274
- function verb(n) { if (g[n])
275
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
276
- function resume(n, v) { try {
277
- step(g[n](v));
278
- }
279
- catch (e) {
280
- settle(q[0][3], e);
281
- } }
282
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
283
- function fulfill(value) { resume("next", value); }
284
- function reject(value) { resume("throw", value); }
285
- function settle(f, v) { if (f(v), q.shift(), q.length)
286
- resume(q[0][0], q[0][1]); }
287
- }
288
- function __asyncDelegator(o) {
289
- var i, p;
290
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
291
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
292
- }
293
- function __asyncValues(o) {
294
- if (!Symbol.asyncIterator)
295
- throw new TypeError("Symbol.asyncIterator is not defined.");
296
- var m = o[Symbol.asyncIterator], i;
297
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
298
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
299
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
300
- }
301
- function __makeTemplateObject(cooked, raw) {
302
- if (Object.defineProperty) {
303
- Object.defineProperty(cooked, "raw", { value: raw });
304
- }
305
- else {
306
- cooked.raw = raw;
307
- }
308
- return cooked;
309
- }
310
- ;
311
- var __setModuleDefault = Object.create ? (function (o, v) {
312
- Object.defineProperty(o, "default", { enumerable: true, value: v });
313
- }) : function (o, v) {
314
- o["default"] = v;
315
- };
316
- function __importStar(mod) {
317
- if (mod && mod.__esModule)
318
- return mod;
319
- var result = {};
320
- if (mod != null)
321
- for (var k in mod)
322
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
323
- __createBinding(result, mod, k);
324
- __setModuleDefault(result, mod);
325
- return result;
326
- }
327
- function __importDefault(mod) {
328
- return (mod && mod.__esModule) ? mod : { default: mod };
329
- }
330
- function __classPrivateFieldGet(receiver, state, kind, f) {
331
- if (kind === "a" && !f)
332
- throw new TypeError("Private accessor was defined without a getter");
333
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
334
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
335
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
336
- }
337
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
338
- if (kind === "m")
339
- throw new TypeError("Private method is not writable");
340
- if (kind === "a" && !f)
341
- throw new TypeError("Private accessor was defined without a setter");
342
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
343
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
344
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
345
- }
35
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
36
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
38
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
39
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
40
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
+ PERFORMANCE OF THIS SOFTWARE.
42
+ ***************************************************************************** */
43
+ /* global Reflect, Promise, SuppressedError, Symbol */
44
+ var extendStatics = function (d, b) {
45
+ extendStatics = Object.setPrototypeOf ||
46
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
47
+ function (d, b) { for (var p in b)
48
+ if (Object.prototype.hasOwnProperty.call(b, p))
49
+ d[p] = b[p]; };
50
+ return extendStatics(d, b);
51
+ };
52
+ function __extends(d, b) {
53
+ if (typeof b !== "function" && b !== null)
54
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
55
+ extendStatics(d, b);
56
+ function __() { this.constructor = d; }
57
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
58
+ }
59
+ var __assign = function () {
60
+ __assign = Object.assign || function __assign(t) {
61
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
62
+ s = arguments[i];
63
+ for (var p in s)
64
+ if (Object.prototype.hasOwnProperty.call(s, p))
65
+ t[p] = s[p];
66
+ }
67
+ return t;
68
+ };
69
+ return __assign.apply(this, arguments);
70
+ };
71
+ function __rest(s, e) {
72
+ var t = {};
73
+ for (var p in s)
74
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
75
+ t[p] = s[p];
76
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
77
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
78
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
79
+ t[p[i]] = s[p[i]];
80
+ }
81
+ return t;
82
+ }
83
+ function __decorate(decorators, target, key, desc) {
84
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
85
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
86
+ r = Reflect.decorate(decorators, target, key, desc);
87
+ else
88
+ for (var i = decorators.length - 1; i >= 0; i--)
89
+ if (d = decorators[i])
90
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
91
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
92
+ }
93
+ function __param(paramIndex, decorator) {
94
+ return function (target, key) { decorator(target, key, paramIndex); };
95
+ }
96
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
97
+ function accept(f) { if (f !== void 0 && typeof f !== "function")
98
+ throw new TypeError("Function expected"); return f; }
99
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
100
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
101
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
102
+ var _, done = false;
103
+ for (var i = decorators.length - 1; i >= 0; i--) {
104
+ var context = {};
105
+ for (var p in contextIn)
106
+ context[p] = p === "access" ? {} : contextIn[p];
107
+ for (var p in contextIn.access)
108
+ context.access[p] = contextIn.access[p];
109
+ context.addInitializer = function (f) { if (done)
110
+ throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
111
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
112
+ if (kind === "accessor") {
113
+ if (result === void 0)
114
+ continue;
115
+ if (result === null || typeof result !== "object")
116
+ throw new TypeError("Object expected");
117
+ if (_ = accept(result.get))
118
+ descriptor.get = _;
119
+ if (_ = accept(result.set))
120
+ descriptor.set = _;
121
+ if (_ = accept(result.init))
122
+ initializers.unshift(_);
123
+ }
124
+ else if (_ = accept(result)) {
125
+ if (kind === "field")
126
+ initializers.unshift(_);
127
+ else
128
+ descriptor[key] = _;
129
+ }
130
+ }
131
+ if (target)
132
+ Object.defineProperty(target, contextIn.name, descriptor);
133
+ done = true;
134
+ }
135
+ ;
136
+ function __runInitializers(thisArg, initializers, value) {
137
+ var useValue = arguments.length > 2;
138
+ for (var i = 0; i < initializers.length; i++) {
139
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
140
+ }
141
+ return useValue ? value : void 0;
142
+ }
143
+ ;
144
+ function __propKey(x) {
145
+ return typeof x === "symbol" ? x : "".concat(x);
146
+ }
147
+ ;
148
+ function __setFunctionName(f, name, prefix) {
149
+ if (typeof name === "symbol")
150
+ name = name.description ? "[".concat(name.description, "]") : "";
151
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
152
+ }
153
+ ;
154
+ function __metadata(metadataKey, metadataValue) {
155
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
156
+ return Reflect.metadata(metadataKey, metadataValue);
157
+ }
158
+ function __awaiter(thisArg, _arguments, P, generator) {
159
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
160
+ return new (P || (P = Promise))(function (resolve, reject) {
161
+ function fulfilled(value) { try {
162
+ step(generator.next(value));
163
+ }
164
+ catch (e) {
165
+ reject(e);
166
+ } }
167
+ function rejected(value) { try {
168
+ step(generator["throw"](value));
169
+ }
170
+ catch (e) {
171
+ reject(e);
172
+ } }
173
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
174
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
175
+ });
176
+ }
177
+ function __generator(thisArg, body) {
178
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
179
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
180
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
181
+ function verb(n) { return function (v) { return step([n, v]); }; }
182
+ function step(op) {
183
+ if (f)
184
+ throw new TypeError("Generator is already executing.");
185
+ while (g && (g = 0, op[0] && (_ = 0)), _)
186
+ try {
187
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
188
+ return t;
189
+ if (y = 0, t)
190
+ op = [op[0] & 2, t.value];
191
+ switch (op[0]) {
192
+ case 0:
193
+ case 1:
194
+ t = op;
195
+ break;
196
+ case 4:
197
+ _.label++;
198
+ return { value: op[1], done: false };
199
+ case 5:
200
+ _.label++;
201
+ y = op[1];
202
+ op = [0];
203
+ continue;
204
+ case 7:
205
+ op = _.ops.pop();
206
+ _.trys.pop();
207
+ continue;
208
+ default:
209
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
210
+ _ = 0;
211
+ continue;
212
+ }
213
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
214
+ _.label = op[1];
215
+ break;
216
+ }
217
+ if (op[0] === 6 && _.label < t[1]) {
218
+ _.label = t[1];
219
+ t = op;
220
+ break;
221
+ }
222
+ if (t && _.label < t[2]) {
223
+ _.label = t[2];
224
+ _.ops.push(op);
225
+ break;
226
+ }
227
+ if (t[2])
228
+ _.ops.pop();
229
+ _.trys.pop();
230
+ continue;
231
+ }
232
+ op = body.call(thisArg, _);
233
+ }
234
+ catch (e) {
235
+ op = [6, e];
236
+ y = 0;
237
+ }
238
+ finally {
239
+ f = t = 0;
240
+ }
241
+ if (op[0] & 5)
242
+ throw op[1];
243
+ return { value: op[0] ? op[1] : void 0, done: true };
244
+ }
245
+ }
246
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
247
+ if (k2 === undefined)
248
+ k2 = k;
249
+ var desc = Object.getOwnPropertyDescriptor(m, k);
250
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
251
+ desc = { enumerable: true, get: function () { return m[k]; } };
252
+ }
253
+ Object.defineProperty(o, k2, desc);
254
+ }) : (function (o, m, k, k2) {
255
+ if (k2 === undefined)
256
+ k2 = k;
257
+ o[k2] = m[k];
258
+ });
259
+ function __exportStar(m, o) {
260
+ for (var p in m)
261
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
262
+ __createBinding(o, m, p);
263
+ }
264
+ function __values(o) {
265
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
266
+ if (m)
267
+ return m.call(o);
268
+ if (o && typeof o.length === "number")
269
+ return {
270
+ next: function () {
271
+ if (o && i >= o.length)
272
+ o = void 0;
273
+ return { value: o && o[i++], done: !o };
274
+ }
275
+ };
276
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
277
+ }
278
+ function __read(o, n) {
279
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
280
+ if (!m)
281
+ return o;
282
+ var i = m.call(o), r, ar = [], e;
283
+ try {
284
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
285
+ ar.push(r.value);
286
+ }
287
+ catch (error) {
288
+ e = { error: error };
289
+ }
290
+ finally {
291
+ try {
292
+ if (r && !r.done && (m = i["return"]))
293
+ m.call(i);
294
+ }
295
+ finally {
296
+ if (e)
297
+ throw e.error;
298
+ }
299
+ }
300
+ return ar;
301
+ }
302
+ /** @deprecated */
303
+ function __spread() {
304
+ for (var ar = [], i = 0; i < arguments.length; i++)
305
+ ar = ar.concat(__read(arguments[i]));
306
+ return ar;
307
+ }
308
+ /** @deprecated */
309
+ function __spreadArrays() {
310
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
311
+ s += arguments[i].length;
312
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
313
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
314
+ r[k] = a[j];
315
+ return r;
316
+ }
317
+ function __spreadArray(to, from, pack) {
318
+ if (pack || arguments.length === 2)
319
+ for (var i = 0, l = from.length, ar; i < l; i++) {
320
+ if (ar || !(i in from)) {
321
+ if (!ar)
322
+ ar = Array.prototype.slice.call(from, 0, i);
323
+ ar[i] = from[i];
324
+ }
325
+ }
326
+ return to.concat(ar || Array.prototype.slice.call(from));
327
+ }
328
+ function __await(v) {
329
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
330
+ }
331
+ function __asyncGenerator(thisArg, _arguments, generator) {
332
+ if (!Symbol.asyncIterator)
333
+ throw new TypeError("Symbol.asyncIterator is not defined.");
334
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
335
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
336
+ function verb(n) { if (g[n])
337
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
338
+ function resume(n, v) { try {
339
+ step(g[n](v));
340
+ }
341
+ catch (e) {
342
+ settle(q[0][3], e);
343
+ } }
344
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
345
+ function fulfill(value) { resume("next", value); }
346
+ function reject(value) { resume("throw", value); }
347
+ function settle(f, v) { if (f(v), q.shift(), q.length)
348
+ resume(q[0][0], q[0][1]); }
349
+ }
350
+ function __asyncDelegator(o) {
351
+ var i, p;
352
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
353
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
354
+ }
355
+ function __asyncValues(o) {
356
+ if (!Symbol.asyncIterator)
357
+ throw new TypeError("Symbol.asyncIterator is not defined.");
358
+ var m = o[Symbol.asyncIterator], i;
359
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
360
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
361
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
362
+ }
363
+ function __makeTemplateObject(cooked, raw) {
364
+ if (Object.defineProperty) {
365
+ Object.defineProperty(cooked, "raw", { value: raw });
366
+ }
367
+ else {
368
+ cooked.raw = raw;
369
+ }
370
+ return cooked;
371
+ }
372
+ ;
373
+ var __setModuleDefault = Object.create ? (function (o, v) {
374
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
375
+ }) : function (o, v) {
376
+ o["default"] = v;
377
+ };
378
+ function __importStar(mod) {
379
+ if (mod && mod.__esModule)
380
+ return mod;
381
+ var result = {};
382
+ if (mod != null)
383
+ for (var k in mod)
384
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
385
+ __createBinding(result, mod, k);
386
+ __setModuleDefault(result, mod);
387
+ return result;
388
+ }
389
+ function __importDefault(mod) {
390
+ return (mod && mod.__esModule) ? mod : { default: mod };
391
+ }
392
+ function __classPrivateFieldGet(receiver, state, kind, f) {
393
+ if (kind === "a" && !f)
394
+ throw new TypeError("Private accessor was defined without a getter");
395
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
396
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
397
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
398
+ }
399
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
400
+ if (kind === "m")
401
+ throw new TypeError("Private method is not writable");
402
+ if (kind === "a" && !f)
403
+ throw new TypeError("Private accessor was defined without a setter");
404
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
405
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
406
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
407
+ }
408
+ function __classPrivateFieldIn(state, receiver) {
409
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
410
+ throw new TypeError("Cannot use 'in' operator on non-object");
411
+ return typeof state === "function" ? receiver === state : state.has(receiver);
412
+ }
413
+ function __addDisposableResource(env, value, async) {
414
+ if (value !== null && value !== void 0) {
415
+ if (typeof value !== "object" && typeof value !== "function")
416
+ throw new TypeError("Object expected.");
417
+ var dispose;
418
+ if (async) {
419
+ if (!Symbol.asyncDispose)
420
+ throw new TypeError("Symbol.asyncDispose is not defined.");
421
+ dispose = value[Symbol.asyncDispose];
422
+ }
423
+ if (dispose === void 0) {
424
+ if (!Symbol.dispose)
425
+ throw new TypeError("Symbol.dispose is not defined.");
426
+ dispose = value[Symbol.dispose];
427
+ }
428
+ if (typeof dispose !== "function")
429
+ throw new TypeError("Object not disposable.");
430
+ env.stack.push({ value: value, dispose: dispose, async: async });
431
+ }
432
+ else if (async) {
433
+ env.stack.push({ async: true });
434
+ }
435
+ return value;
436
+ }
437
+ var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
438
+ var e = new Error(message);
439
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
440
+ };
441
+ function __disposeResources(env) {
442
+ function fail(e) {
443
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
444
+ env.hasError = true;
445
+ }
446
+ function next() {
447
+ while (env.stack.length) {
448
+ var rec = env.stack.pop();
449
+ try {
450
+ var result = rec.dispose && rec.dispose.call(rec.value);
451
+ if (rec.async)
452
+ return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
453
+ }
454
+ catch (e) {
455
+ fail(e);
456
+ }
457
+ }
458
+ if (env.hasError)
459
+ throw env.error;
460
+ }
461
+ return next();
462
+ }
463
+ var tslib_es6 = {
464
+ __extends: __extends,
465
+ __assign: __assign,
466
+ __rest: __rest,
467
+ __decorate: __decorate,
468
+ __param: __param,
469
+ __metadata: __metadata,
470
+ __awaiter: __awaiter,
471
+ __generator: __generator,
472
+ __createBinding: __createBinding,
473
+ __exportStar: __exportStar,
474
+ __values: __values,
475
+ __read: __read,
476
+ __spread: __spread,
477
+ __spreadArrays: __spreadArrays,
478
+ __spreadArray: __spreadArray,
479
+ __await: __await,
480
+ __asyncGenerator: __asyncGenerator,
481
+ __asyncDelegator: __asyncDelegator,
482
+ __asyncValues: __asyncValues,
483
+ __makeTemplateObject: __makeTemplateObject,
484
+ __importStar: __importStar,
485
+ __importDefault: __importDefault,
486
+ __classPrivateFieldGet: __classPrivateFieldGet,
487
+ __classPrivateFieldSet: __classPrivateFieldSet,
488
+ __classPrivateFieldIn: __classPrivateFieldIn,
489
+ __addDisposableResource: __addDisposableResource,
490
+ __disposeResources: __disposeResources,
491
+ };
346
492
 
347
- var MIN_WIDTH = 24;
348
- function getOffsetVertical(_a, _b) {
349
- var clientY = _a.clientY;
350
- var top = _b.top, height = _b.height;
351
- return (clientY - top) / height;
352
- }
353
- function getOffsetHorizontal(_a, _b) {
354
- var clientX = _a.clientX;
355
- var left = _b.left, width = _b.width;
356
- return (clientX - left) / width;
357
- }
358
- var TuiScrollbarDirective = /** @class */ (function () {
359
- function TuiScrollbarDirective(zone, destroy$, animationFrame$, container, doc, el) {
360
- var _this = this;
361
- this.container = container;
362
- this.doc = doc;
363
- this.el = el;
364
- this.tuiScrollbar = 'vertical';
365
- var nativeElement = this.el.nativeElement;
366
- var mousedown$ = observables.tuiTypedFromEvent(nativeElement, 'mousedown');
367
- var mousemove$ = observables.tuiTypedFromEvent(this.doc, 'mousemove');
368
- var mouseup$ = observables.tuiTypedFromEvent(this.doc, 'mouseup');
369
- var mousedownWrapper$ = observables.tuiTypedFromEvent(this.wrapper, 'mousedown');
370
- i1.merge(mousedownWrapper$.pipe(operators.map(function (event) { return _this.getScrolled(event, 0.5, 0.5); })), mousedown$.pipe(operators.switchMap(function (event) {
371
- var rect = nativeElement.getBoundingClientRect();
372
- var vertical = getOffsetVertical(event, rect);
373
- var horizontal = getOffsetHorizontal(event, rect);
374
- return mousemove$.pipe(operators.map(function (event) { return _this.getScrolled(event, vertical, horizontal); }), operators.takeUntil(mouseup$));
375
- })))
376
- .pipe(observables.tuiZonefree(zone), operators.takeUntil(destroy$))
377
- .subscribe(function (_a) {
378
- var _b = __read(_a, 2), scrollTop = _b[0], scrollLeft = _b[1];
379
- _this.element.style.scrollBehavior = 'auto';
380
- if (_this.tuiScrollbar === 'vertical') {
381
- _this.element.scrollTop = scrollTop;
382
- }
383
- else {
384
- _this.element.scrollLeft = scrollLeft;
385
- }
386
- _this.element.style.scrollBehavior = '';
387
- });
388
- i1.merge(animationFrame$.pipe(operators.throttleTime(constants.POLLING_TIME)), observables.tuiScrollFrom(this.element))
389
- .pipe(observables.tuiZonefree(zone), operators.takeUntil(destroy$))
390
- .subscribe(function () {
391
- if (_this.tuiScrollbar === 'vertical') {
392
- nativeElement.style.top = _this.thumb * 100 + "%";
393
- nativeElement.style.height = _this.view * 100 + "%";
394
- }
395
- else {
396
- nativeElement.style.left = _this.thumb * 100 + "%";
397
- nativeElement.style.width = _this.view * 100 + "%";
398
- }
399
- });
400
- }
401
- Object.defineProperty(TuiScrollbarDirective.prototype, "wrapper", {
402
- get: function () {
403
- return this.el.nativeElement.parentElement;
404
- },
405
- enumerable: false,
406
- configurable: true
407
- });
408
- Object.defineProperty(TuiScrollbarDirective.prototype, "scrolled", {
409
- get: function () {
410
- var _a = this.element, scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight, scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
411
- return this.tuiScrollbar === 'vertical'
412
- ? scrollTop / (scrollHeight - clientHeight)
413
- : scrollLeft / (scrollWidth - clientWidth);
414
- },
415
- enumerable: false,
416
- configurable: true
417
- });
418
- Object.defineProperty(TuiScrollbarDirective.prototype, "compensation", {
419
- get: function () {
420
- var _a = this.element, clientHeight = _a.clientHeight, scrollHeight = _a.scrollHeight, clientWidth = _a.clientWidth, scrollWidth = _a.scrollWidth;
421
- if (((clientHeight * clientHeight) / scrollHeight > MIN_WIDTH &&
422
- this.tuiScrollbar === 'vertical') ||
423
- ((clientWidth * clientWidth) / scrollWidth > MIN_WIDTH &&
424
- this.tuiScrollbar === 'horizontal')) {
425
- return 0;
426
- }
427
- return this.tuiScrollbar === 'vertical'
428
- ? MIN_WIDTH / clientHeight
429
- : MIN_WIDTH / clientWidth;
430
- },
431
- enumerable: false,
432
- configurable: true
433
- });
434
- Object.defineProperty(TuiScrollbarDirective.prototype, "thumb", {
435
- get: function () {
436
- var compensation = this.compensation || this.view;
437
- return this.scrolled * (1 - compensation);
438
- },
439
- enumerable: false,
440
- configurable: true
441
- });
442
- Object.defineProperty(TuiScrollbarDirective.prototype, "view", {
443
- get: function () {
444
- var _a = this.element, clientHeight = _a.clientHeight, scrollHeight = _a.scrollHeight, clientWidth = _a.clientWidth, scrollWidth = _a.scrollWidth;
445
- return this.tuiScrollbar === 'vertical'
446
- ? Math.ceil((clientHeight / scrollHeight) * 100) / 100
447
- : Math.ceil((clientWidth / scrollWidth) * 100) / 100;
448
- },
449
- enumerable: false,
450
- configurable: true
451
- });
452
- Object.defineProperty(TuiScrollbarDirective.prototype, "element", {
453
- get: function () {
454
- return this.container.nativeElement;
455
- },
456
- enumerable: false,
457
- configurable: true
458
- });
459
- TuiScrollbarDirective.prototype.getScrolled = function (_a, offsetVertical, offsetHorizontal) {
460
- var clientY = _a.clientY, clientX = _a.clientX;
461
- var _b = this.el.nativeElement, offsetHeight = _b.offsetHeight, offsetWidth = _b.offsetWidth;
462
- var _c = this.wrapper.getBoundingClientRect(), top = _c.top, left = _c.left, width = _c.width, height = _c.height;
463
- var maxTop = this.element.scrollHeight - height;
464
- var maxLeft = this.element.scrollWidth - width;
465
- var scrolledTop = (clientY - top - offsetHeight * offsetVertical) / (height - offsetHeight);
466
- var scrolledLeft = (clientX - left - offsetWidth * offsetHorizontal) / (width - offsetWidth);
467
- return [maxTop * scrolledTop, maxLeft * scrolledLeft];
468
- };
469
- return TuiScrollbarDirective;
470
- }());
471
- TuiScrollbarDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollbarDirective, deps: [{ token: i0.NgZone }, { token: services.TuiDestroyService, self: true }, { token: common.ANIMATION_FRAME }, { token: tokens.TUI_SCROLL_REF }, { token: i1$1.DOCUMENT }, { token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
472
- TuiScrollbarDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiScrollbarDirective, selector: "[tuiScrollbar]", inputs: { tuiScrollbar: "tuiScrollbar" }, providers: [services.TuiDestroyService], ngImport: i0__namespace });
473
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollbarDirective, decorators: [{
474
- type: i0.Directive,
475
- args: [{
476
- selector: '[tuiScrollbar]',
477
- providers: [services.TuiDestroyService],
478
- }]
479
- }], ctorParameters: function () {
480
- return [{ type: i0__namespace.NgZone, decorators: [{
481
- type: i0.Inject,
482
- args: [i0.NgZone]
483
- }] }, { type: i1__namespace.Observable, decorators: [{
484
- type: i0.Self
485
- }, {
486
- type: i0.Inject,
487
- args: [services.TuiDestroyService]
488
- }] }, { type: i1__namespace.Observable, decorators: [{
489
- type: i0.Inject,
490
- args: [common.ANIMATION_FRAME]
491
- }] }, { type: i0__namespace.ElementRef, decorators: [{
492
- type: i0.Inject,
493
- args: [tokens.TUI_SCROLL_REF]
494
- }] }, { type: Document, decorators: [{
495
- type: i0.Inject,
496
- args: [i1$1.DOCUMENT]
497
- }] }, { type: i0__namespace.ElementRef, decorators: [{
498
- type: i0.Inject,
499
- args: [i0.ElementRef]
500
- }] }];
501
- }, propDecorators: { tuiScrollbar: [{
502
- type: i0.Input
503
- }] } });
493
+ var MIN_WIDTH = 24;
494
+ function getOffsetVertical(_a, _b) {
495
+ var clientY = _a.clientY;
496
+ var top = _b.top, height = _b.height;
497
+ return (clientY - top) / height;
498
+ }
499
+ function getOffsetHorizontal(_a, _b) {
500
+ var clientX = _a.clientX;
501
+ var left = _b.left, width = _b.width;
502
+ return (clientX - left) / width;
503
+ }
504
+ var TuiScrollbarDirective = /** @class */ (function () {
505
+ function TuiScrollbarDirective(zone, destroy$, animationFrame$, container, doc, el) {
506
+ var _this = this;
507
+ this.container = container;
508
+ this.doc = doc;
509
+ this.el = el;
510
+ this.tuiScrollbar = 'vertical';
511
+ var nativeElement = this.el.nativeElement;
512
+ var mousedown$ = observables.tuiTypedFromEvent(nativeElement, 'mousedown');
513
+ var mousemove$ = observables.tuiTypedFromEvent(this.doc, 'mousemove');
514
+ var mouseup$ = observables.tuiTypedFromEvent(this.doc, 'mouseup');
515
+ var mousedownWrapper$ = observables.tuiTypedFromEvent(this.wrapper, 'mousedown');
516
+ i1.merge(mousedownWrapper$.pipe(operators.map(function (event) { return _this.getScrolled(event, 0.5, 0.5); })), mousedown$.pipe(operators.switchMap(function (event) {
517
+ var rect = nativeElement.getBoundingClientRect();
518
+ var vertical = getOffsetVertical(event, rect);
519
+ var horizontal = getOffsetHorizontal(event, rect);
520
+ return mousemove$.pipe(operators.map(function (event) { return _this.getScrolled(event, vertical, horizontal); }), operators.takeUntil(mouseup$));
521
+ })))
522
+ .pipe(observables.tuiZonefree(zone), operators.takeUntil(destroy$))
523
+ .subscribe(function (_a) {
524
+ var _b = __read(_a, 2), scrollTop = _b[0], scrollLeft = _b[1];
525
+ _this.element.style.scrollBehavior = 'auto';
526
+ if (_this.tuiScrollbar === 'vertical') {
527
+ _this.element.scrollTop = scrollTop;
528
+ }
529
+ else {
530
+ _this.element.scrollLeft = scrollLeft;
531
+ }
532
+ _this.element.style.scrollBehavior = '';
533
+ });
534
+ i1.merge(animationFrame$.pipe(operators.throttleTime(constants.POLLING_TIME)), observables.tuiScrollFrom(this.element))
535
+ .pipe(observables.tuiZonefree(zone), operators.takeUntil(destroy$))
536
+ .subscribe(function () {
537
+ if (_this.tuiScrollbar === 'vertical') {
538
+ nativeElement.style.top = _this.thumb * 100 + "%";
539
+ nativeElement.style.height = _this.view * 100 + "%";
540
+ }
541
+ else {
542
+ nativeElement.style.left = _this.thumb * 100 + "%";
543
+ nativeElement.style.width = _this.view * 100 + "%";
544
+ }
545
+ });
546
+ }
547
+ Object.defineProperty(TuiScrollbarDirective.prototype, "wrapper", {
548
+ get: function () {
549
+ return this.el.nativeElement.parentElement;
550
+ },
551
+ enumerable: false,
552
+ configurable: true
553
+ });
554
+ Object.defineProperty(TuiScrollbarDirective.prototype, "scrolled", {
555
+ get: function () {
556
+ var _a = this.element, scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight, scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
557
+ return this.tuiScrollbar === 'vertical'
558
+ ? scrollTop / (scrollHeight - clientHeight)
559
+ : scrollLeft / (scrollWidth - clientWidth);
560
+ },
561
+ enumerable: false,
562
+ configurable: true
563
+ });
564
+ Object.defineProperty(TuiScrollbarDirective.prototype, "compensation", {
565
+ get: function () {
566
+ var _a = this.element, clientHeight = _a.clientHeight, scrollHeight = _a.scrollHeight, clientWidth = _a.clientWidth, scrollWidth = _a.scrollWidth;
567
+ if (((clientHeight * clientHeight) / scrollHeight > MIN_WIDTH &&
568
+ this.tuiScrollbar === 'vertical') ||
569
+ ((clientWidth * clientWidth) / scrollWidth > MIN_WIDTH &&
570
+ this.tuiScrollbar === 'horizontal')) {
571
+ return 0;
572
+ }
573
+ return this.tuiScrollbar === 'vertical'
574
+ ? MIN_WIDTH / clientHeight
575
+ : MIN_WIDTH / clientWidth;
576
+ },
577
+ enumerable: false,
578
+ configurable: true
579
+ });
580
+ Object.defineProperty(TuiScrollbarDirective.prototype, "thumb", {
581
+ get: function () {
582
+ var compensation = this.compensation || this.view;
583
+ return this.scrolled * (1 - compensation);
584
+ },
585
+ enumerable: false,
586
+ configurable: true
587
+ });
588
+ Object.defineProperty(TuiScrollbarDirective.prototype, "view", {
589
+ get: function () {
590
+ var _a = this.element, clientHeight = _a.clientHeight, scrollHeight = _a.scrollHeight, clientWidth = _a.clientWidth, scrollWidth = _a.scrollWidth;
591
+ return this.tuiScrollbar === 'vertical'
592
+ ? Math.ceil((clientHeight / scrollHeight) * 100) / 100
593
+ : Math.ceil((clientWidth / scrollWidth) * 100) / 100;
594
+ },
595
+ enumerable: false,
596
+ configurable: true
597
+ });
598
+ Object.defineProperty(TuiScrollbarDirective.prototype, "element", {
599
+ get: function () {
600
+ return this.container.nativeElement;
601
+ },
602
+ enumerable: false,
603
+ configurable: true
604
+ });
605
+ TuiScrollbarDirective.prototype.getScrolled = function (_a, offsetVertical, offsetHorizontal) {
606
+ var clientY = _a.clientY, clientX = _a.clientX;
607
+ var _b = this.el.nativeElement, offsetHeight = _b.offsetHeight, offsetWidth = _b.offsetWidth;
608
+ var _c = this.wrapper.getBoundingClientRect(), top = _c.top, left = _c.left, width = _c.width, height = _c.height;
609
+ var maxTop = this.element.scrollHeight - height;
610
+ var maxLeft = this.element.scrollWidth - width;
611
+ var scrolledTop = (clientY - top - offsetHeight * offsetVertical) / (height - offsetHeight);
612
+ var scrolledLeft = (clientX - left - offsetWidth * offsetHorizontal) / (width - offsetWidth);
613
+ return [maxTop * scrolledTop, maxLeft * scrolledLeft];
614
+ };
615
+ return TuiScrollbarDirective;
616
+ }());
617
+ TuiScrollbarDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollbarDirective, deps: [{ token: i0.NgZone }, { token: services.TuiDestroyService, self: true }, { token: common.ANIMATION_FRAME }, { token: tokens.TUI_SCROLL_REF }, { token: i1$1.DOCUMENT }, { token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
618
+ TuiScrollbarDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiScrollbarDirective, selector: "[tuiScrollbar]", inputs: { tuiScrollbar: "tuiScrollbar" }, providers: [services.TuiDestroyService], ngImport: i0__namespace });
619
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollbarDirective, decorators: [{
620
+ type: i0.Directive,
621
+ args: [{
622
+ selector: '[tuiScrollbar]',
623
+ providers: [services.TuiDestroyService],
624
+ }]
625
+ }], ctorParameters: function () {
626
+ return [{ type: i0__namespace.NgZone, decorators: [{
627
+ type: i0.Inject,
628
+ args: [i0.NgZone]
629
+ }] }, { type: i1__namespace.Observable, decorators: [{
630
+ type: i0.Self
631
+ }, {
632
+ type: i0.Inject,
633
+ args: [services.TuiDestroyService]
634
+ }] }, { type: i1__namespace.Observable, decorators: [{
635
+ type: i0.Inject,
636
+ args: [common.ANIMATION_FRAME]
637
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
638
+ type: i0.Inject,
639
+ args: [tokens.TUI_SCROLL_REF]
640
+ }] }, { type: Document, decorators: [{
641
+ type: i0.Inject,
642
+ args: [i1$1.DOCUMENT]
643
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
644
+ type: i0.Inject,
645
+ args: [i0.ElementRef]
646
+ }] }];
647
+ }, propDecorators: { tuiScrollbar: [{
648
+ type: i0.Input
649
+ }] } });
504
650
 
505
- var TuiScrollControlsComponent = /** @class */ (function () {
506
- function TuiScrollControlsComponent(isIOS, zone, scrollRef, animationFrame$) {
507
- var _this = this;
508
- this.isIOS = isIOS;
509
- this.zone = zone;
510
- this.scrollRef = scrollRef;
511
- this.animationFrame$ = animationFrame$;
512
- this.refresh$ = this.animationFrame$.pipe(operators.throttleTime(300), operators.map(function () {
513
- var _a = _this.scrollRef.nativeElement, clientHeight = _a.clientHeight, scrollHeight = _a.scrollHeight, clientWidth = _a.clientWidth, scrollWidth = _a.scrollWidth;
514
- return [
515
- Math.ceil((clientHeight / scrollHeight) * 100) < 100,
516
- Math.ceil((clientWidth / scrollWidth) * 100) < 100,
517
- ];
518
- }), operators.startWith([false, false]), operators.distinctUntilChanged(function (a, b) { return a[0] === b[0] && a[1] === b[1]; }), observables.tuiZoneOptimized(this.zone));
519
- }
520
- return TuiScrollControlsComponent;
521
- }());
522
- TuiScrollControlsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollControlsComponent, deps: [{ token: tokens.TUI_IS_IOS }, { token: i0.NgZone }, { token: tokens.TUI_SCROLL_REF }, { token: common.ANIMATION_FRAME }], target: i0__namespace.ɵɵFactoryTarget.Component });
523
- TuiScrollControlsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiScrollControlsComponent, selector: "tui-scroll-controls", ngImport: i0__namespace, template: "<ng-container *ngIf=\"!isIOS\">\n <ng-container *ngIf=\"refresh$ | async as bars\">\n <div\n *ngIf=\"bars[0]\"\n class=\"t-bar t-bar_vertical\"\n [class.t-bar_has-horizontal]=\"bars[1]\"\n >\n <div\n tuiScrollbar=\"vertical\"\n class=\"t-thumb\"\n ></div>\n </div>\n <div\n *ngIf=\"bars[1]\"\n class=\"t-bar t-bar_horizontal\"\n [class.t-bar_has-vertical]=\"bars[0]\"\n >\n <div\n tuiScrollbar=\"horizontal\"\n class=\"t-thumb\"\n ></div>\n </div>\n </ng-container>\n</ng-container>\n", styles: [":host{position:-webkit-sticky;position:sticky;top:0;left:0;z-index:1;min-width:calc(100% - 1px);min-height:calc(100% - 1px);max-width:calc(100% - 1px);max-height:calc(100% - 1px);float:left;-webkit-margin-end:calc(-100% + 1px);margin-inline-end:calc(-100% + 1px);pointer-events:none}.t-bar{position:absolute;right:0;bottom:0;pointer-events:auto;animation:tuiFadeIn var(--tui-duration, .3s) ease-in-out}.t-bar_vertical{top:0;width:.875rem}.t-bar_horizontal{left:0;height:.875rem}.t-bar_has-horizontal{bottom:.5rem}.t-bar_has-vertical{right:.5rem}.t-thumb{position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:currentColor;background-clip:content-box;box-sizing:border-box;transition:all var(--tui-duration, .3s) ease-in-out;transition-property:width,height,opacity;opacity:.2}.t-thumb:hover{opacity:.24}.t-thumb:active{opacity:.48}.t-bar_vertical .t-thumb{right:0;width:.75rem;min-height:1.25rem}.t-bar_vertical:hover .t-thumb,.t-bar_vertical .t-thumb:active{width:.875rem}.t-bar_horizontal .t-thumb{bottom:0;height:.75rem;min-width:1.25rem}.t-bar_horizontal:hover .t-thumb,.t-bar_horizontal .t-thumb:active{height:.875rem}\n"], directives: [{ type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TuiScrollbarDirective, selector: "[tuiScrollbar]", inputs: ["tuiScrollbar"] }], pipes: { "async": i1__namespace$1.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
524
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollControlsComponent, decorators: [{
525
- type: i0.Component,
526
- args: [{
527
- selector: 'tui-scroll-controls',
528
- templateUrl: './scroll-controls.template.html',
529
- styleUrls: ['./scroll-controls.style.less'],
530
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
531
- }]
532
- }], ctorParameters: function () {
533
- return [{ type: undefined, decorators: [{
534
- type: i0.Inject,
535
- args: [tokens.TUI_IS_IOS]
536
- }] }, { type: i0__namespace.NgZone, decorators: [{
537
- type: i0.Inject,
538
- args: [i0.NgZone]
539
- }] }, { type: i0__namespace.ElementRef, decorators: [{
540
- type: i0.Inject,
541
- args: [tokens.TUI_SCROLL_REF]
542
- }] }, { type: i1__namespace.Observable, decorators: [{
543
- type: i0.Inject,
544
- args: [common.ANIMATION_FRAME]
545
- }] }];
546
- } });
651
+ var TuiScrollControlsComponent = /** @class */ (function () {
652
+ function TuiScrollControlsComponent(isIOS, zone, scrollRef, animationFrame$) {
653
+ var _this = this;
654
+ this.isIOS = isIOS;
655
+ this.zone = zone;
656
+ this.scrollRef = scrollRef;
657
+ this.animationFrame$ = animationFrame$;
658
+ this.refresh$ = this.animationFrame$.pipe(operators.throttleTime(300), operators.map(function () {
659
+ var _a = _this.scrollRef.nativeElement, clientHeight = _a.clientHeight, scrollHeight = _a.scrollHeight, clientWidth = _a.clientWidth, scrollWidth = _a.scrollWidth;
660
+ return [
661
+ Math.ceil((clientHeight / scrollHeight) * 100) < 100,
662
+ Math.ceil((clientWidth / scrollWidth) * 100) < 100,
663
+ ];
664
+ }), operators.startWith([false, false]), operators.distinctUntilChanged(function (a, b) { return a[0] === b[0] && a[1] === b[1]; }), observables.tuiZoneOptimized(this.zone));
665
+ }
666
+ return TuiScrollControlsComponent;
667
+ }());
668
+ TuiScrollControlsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollControlsComponent, deps: [{ token: tokens.TUI_IS_IOS }, { token: i0.NgZone }, { token: tokens.TUI_SCROLL_REF }, { token: common.ANIMATION_FRAME }], target: i0__namespace.ɵɵFactoryTarget.Component });
669
+ TuiScrollControlsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiScrollControlsComponent, selector: "tui-scroll-controls", ngImport: i0__namespace, template: "<ng-container *ngIf=\"!isIOS\">\n <ng-container *ngIf=\"refresh$ | async as bars\">\n <div\n *ngIf=\"bars[0]\"\n class=\"t-bar t-bar_vertical\"\n [class.t-bar_has-horizontal]=\"bars[1]\"\n >\n <div\n tuiScrollbar=\"vertical\"\n class=\"t-thumb\"\n ></div>\n </div>\n <div\n *ngIf=\"bars[1]\"\n class=\"t-bar t-bar_horizontal\"\n [class.t-bar_has-vertical]=\"bars[0]\"\n >\n <div\n tuiScrollbar=\"horizontal\"\n class=\"t-thumb\"\n ></div>\n </div>\n </ng-container>\n</ng-container>\n", styles: [":host{position:-webkit-sticky;position:sticky;top:0;left:0;z-index:1;min-width:calc(100% - 1px);min-height:calc(100% - 1px);max-width:calc(100% - 1px);max-height:calc(100% - 1px);float:left;-webkit-margin-end:calc(-100% + 1px);margin-inline-end:calc(-100% + 1px);pointer-events:none}.t-bar{position:absolute;right:0;bottom:0;pointer-events:auto;animation:tuiFadeIn var(--tui-duration, .3s) ease-in-out}.t-bar_vertical{top:0;width:.875rem}.t-bar_horizontal{left:0;height:.875rem}.t-bar_has-horizontal{bottom:.5rem}.t-bar_has-vertical{right:.5rem}.t-thumb{position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:currentColor;background-clip:content-box;box-sizing:border-box;transition:all var(--tui-duration, .3s) ease-in-out;transition-property:width,height,opacity;opacity:.2}.t-thumb:hover{opacity:.24}.t-thumb:active{opacity:.48}.t-bar_vertical .t-thumb{right:0;width:.75rem;min-height:1.25rem}.t-bar_vertical:hover .t-thumb,.t-bar_vertical .t-thumb:active{width:.875rem}.t-bar_horizontal .t-thumb{bottom:0;height:.75rem;min-width:1.25rem}.t-bar_horizontal:hover .t-thumb,.t-bar_horizontal .t-thumb:active{height:.875rem}\n"], directives: [{ type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TuiScrollbarDirective, selector: "[tuiScrollbar]", inputs: ["tuiScrollbar"] }], pipes: { "async": i1__namespace$1.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
670
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollControlsComponent, decorators: [{
671
+ type: i0.Component,
672
+ args: [{
673
+ selector: 'tui-scroll-controls',
674
+ templateUrl: './scroll-controls.template.html',
675
+ styleUrls: ['./scroll-controls.style.less'],
676
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
677
+ }]
678
+ }], ctorParameters: function () {
679
+ return [{ type: undefined, decorators: [{
680
+ type: i0.Inject,
681
+ args: [tokens.TUI_IS_IOS]
682
+ }] }, { type: i0__namespace.NgZone, decorators: [{
683
+ type: i0.Inject,
684
+ args: [i0.NgZone]
685
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
686
+ type: i0.Inject,
687
+ args: [tokens.TUI_SCROLL_REF]
688
+ }] }, { type: i1__namespace.Observable, decorators: [{
689
+ type: i0.Inject,
690
+ args: [common.ANIMATION_FRAME]
691
+ }] }];
692
+ } });
547
693
 
548
- var SCROLL_REF_SELECTOR = '[tuiScrollRef]';
549
- var TuiScrollRefDirective = /** @class */ (function () {
550
- function TuiScrollRefDirective() {
551
- }
552
- return TuiScrollRefDirective;
553
- }());
554
- TuiScrollRefDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollRefDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
555
- TuiScrollRefDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiScrollRefDirective, selector: "[tuiScrollRef]", providers: [
556
- {
557
- provide: tokens.TUI_SCROLL_REF,
558
- useExisting: i0.ElementRef,
559
- },
560
- ], ngImport: i0__namespace });
561
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollRefDirective, decorators: [{
562
- type: i0.Directive,
563
- args: [{
564
- selector: SCROLL_REF_SELECTOR,
565
- providers: [
566
- {
567
- provide: tokens.TUI_SCROLL_REF,
568
- useExisting: i0.ElementRef,
569
- },
570
- ],
571
- }]
572
- }] });
694
+ var SCROLL_REF_SELECTOR = '[tuiScrollRef]';
695
+ var TuiScrollRefDirective = /** @class */ (function () {
696
+ function TuiScrollRefDirective() {
697
+ }
698
+ return TuiScrollRefDirective;
699
+ }());
700
+ TuiScrollRefDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollRefDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
701
+ TuiScrollRefDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiScrollRefDirective, selector: "[tuiScrollRef]", providers: [
702
+ {
703
+ provide: tokens.TUI_SCROLL_REF,
704
+ useExisting: i0.ElementRef,
705
+ },
706
+ ], ngImport: i0__namespace });
707
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollRefDirective, decorators: [{
708
+ type: i0.Directive,
709
+ args: [{
710
+ selector: SCROLL_REF_SELECTOR,
711
+ providers: [
712
+ {
713
+ provide: tokens.TUI_SCROLL_REF,
714
+ useExisting: i0.ElementRef,
715
+ },
716
+ ],
717
+ }]
718
+ }] });
573
719
 
574
- var TuiScrollControlsModule = /** @class */ (function () {
575
- function TuiScrollControlsModule() {
576
- }
577
- return TuiScrollControlsModule;
578
- }());
579
- TuiScrollControlsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollControlsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
580
- TuiScrollControlsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollControlsModule, declarations: [TuiScrollbarDirective,
581
- TuiScrollControlsComponent,
582
- TuiScrollRefDirective], imports: [i1$1.CommonModule], exports: [TuiScrollControlsComponent, TuiScrollRefDirective] });
583
- TuiScrollControlsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollControlsModule, imports: [[i1$1.CommonModule]] });
584
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollControlsModule, decorators: [{
585
- type: i0.NgModule,
586
- args: [{
587
- imports: [i1$1.CommonModule],
588
- declarations: [
589
- TuiScrollbarDirective,
590
- TuiScrollControlsComponent,
591
- TuiScrollRefDirective,
592
- ],
593
- exports: [TuiScrollControlsComponent, TuiScrollRefDirective],
594
- }]
595
- }] });
720
+ var TuiScrollControlsModule = /** @class */ (function () {
721
+ function TuiScrollControlsModule() {
722
+ }
723
+ return TuiScrollControlsModule;
724
+ }());
725
+ TuiScrollControlsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollControlsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
726
+ TuiScrollControlsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollControlsModule, declarations: [TuiScrollbarDirective,
727
+ TuiScrollControlsComponent,
728
+ TuiScrollRefDirective], imports: [i1$1.CommonModule], exports: [TuiScrollControlsComponent, TuiScrollRefDirective] });
729
+ TuiScrollControlsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollControlsModule, imports: [[i1$1.CommonModule]] });
730
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiScrollControlsModule, decorators: [{
731
+ type: i0.NgModule,
732
+ args: [{
733
+ imports: [i1$1.CommonModule],
734
+ declarations: [
735
+ TuiScrollbarDirective,
736
+ TuiScrollControlsComponent,
737
+ TuiScrollRefDirective,
738
+ ],
739
+ exports: [TuiScrollControlsComponent, TuiScrollRefDirective],
740
+ }]
741
+ }] });
596
742
 
597
- /**
598
- * Generated bundle index. Do not edit.
599
- */
743
+ /**
744
+ * Generated bundle index. Do not edit.
745
+ */
600
746
 
601
- exports.SCROLL_REF_SELECTOR = SCROLL_REF_SELECTOR;
602
- exports.TuiScrollControlsComponent = TuiScrollControlsComponent;
603
- exports.TuiScrollControlsModule = TuiScrollControlsModule;
604
- exports.TuiScrollRefDirective = TuiScrollRefDirective;
605
- exports.TuiScrollbarDirective = TuiScrollbarDirective;
747
+ exports.SCROLL_REF_SELECTOR = SCROLL_REF_SELECTOR;
748
+ exports.TuiScrollControlsComponent = TuiScrollControlsComponent;
749
+ exports.TuiScrollControlsModule = TuiScrollControlsModule;
750
+ exports.TuiScrollRefDirective = TuiScrollRefDirective;
751
+ exports.TuiScrollbarDirective = TuiScrollbarDirective;
606
752
 
607
- Object.defineProperty(exports, '__esModule', { value: true });
753
+ Object.defineProperty(exports, '__esModule', { value: true });
608
754
 
609
755
  }));
610
756
  //# sourceMappingURL=taiga-ui-cdk-components-scroll-controls.umd.js.map