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