@taiga-ui/core 3.86.0 → 3.87.0-canary.95b57e0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/bundles/taiga-ui-core-abstract.umd.js +677 -531
  2. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-core-components-alert.umd.js +152 -6
  4. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
  5. package/bundles/taiga-ui-core-components-button.umd.js +668 -522
  6. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-data-list.umd.js +823 -677
  8. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-dialog.umd.js +152 -6
  10. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +946 -783
  12. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +605 -459
  14. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +1176 -1030
  16. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-root.umd.js +607 -461
  18. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +152 -6
  20. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  21. package/bundles/taiga-ui-core-components-svg.umd.js +152 -6
  22. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  23. package/bundles/taiga-ui-core-components-theme-night.umd.js +520 -374
  24. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  25. package/bundles/taiga-ui-core-components-tooltip.umd.js +595 -449
  26. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  27. package/bundles/taiga-ui-core-directives-dropdown.umd.js +1583 -1437
  28. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  29. package/bundles/taiga-ui-core-directives-hint.umd.js +1306 -1160
  30. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  31. package/bundles/taiga-ui-core-directives-mode.umd.js +521 -375
  32. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  33. package/bundles/taiga-ui-core-directives-number-format.umd.js +543 -397
  34. package/bundles/taiga-ui-core-directives-number-format.umd.js.map +1 -1
  35. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +152 -6
  36. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  37. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js +530 -384
  38. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js.map +1 -1
  39. package/bundles/taiga-ui-core-services.umd.js +783 -637
  40. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  41. package/bundles/taiga-ui-core-tokens.umd.js +152 -6
  42. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  43. package/bundles/taiga-ui-core-utils-format.umd.js +152 -6
  44. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  45. package/bundles/taiga-ui-core-utils-mask.umd.js +152 -6
  46. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  47. package/components/hosted-dropdown/dropdown-open-monitor.directive.d.ts +4 -1
  48. package/constants/cache-basting-payload.d.ts +1 -1
  49. package/esm2015/components/hosted-dropdown/dropdown-open-monitor.directive.js +23 -10
  50. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +5 -5
  51. package/esm2015/components/root/root.component.js +1 -1
  52. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +25 -12
  53. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  54. package/fesm2015/taiga-ui-core-components-root.js +1 -1
  55. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  56. package/package.json +42 -42
@@ -1,1188 +1,1334 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/abstract'), require('@taiga-ui/core/animations'), require('@taiga-ui/core/directives/mode'), require('@taiga-ui/core/services'), require('@taiga-ui/core/tokens'), require('@taiga-ui/core/utils'), require('@tinkoff/ng-polymorpheus'), require('rxjs/operators'), require('rxjs'), require('@taiga-ui/core/constants'), require('@angular/common')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/core/directives/hint', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/abstract', '@taiga-ui/core/animations', '@taiga-ui/core/directives/mode', '@taiga-ui/core/services', '@taiga-ui/core/tokens', '@taiga-ui/core/utils', '@tinkoff/ng-polymorpheus', 'rxjs/operators', 'rxjs', '@taiga-ui/core/constants', '@angular/common'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.directives = global["taiga-ui"].core.directives || {}, global["taiga-ui"].core.directives.hint = {}), global.ng.core, global.i3, global["taiga-ui"].core.abstract, global["taiga-ui"].core.animations, global["taiga-ui"].core.directives.mode, global["taiga-ui"].core.services, global["taiga-ui"].core.tokens, global["taiga-ui"].core.utils, global.i1, global.rxjs.operators, global.rxjs, global["taiga-ui"].core.constants, global.ng.common));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/abstract'), require('@taiga-ui/core/animations'), require('@taiga-ui/core/directives/mode'), require('@taiga-ui/core/services'), require('@taiga-ui/core/tokens'), require('@taiga-ui/core/utils'), require('@tinkoff/ng-polymorpheus'), require('rxjs/operators'), require('rxjs'), require('@taiga-ui/core/constants'), require('@angular/common')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/core/directives/hint', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/abstract', '@taiga-ui/core/animations', '@taiga-ui/core/directives/mode', '@taiga-ui/core/services', '@taiga-ui/core/tokens', '@taiga-ui/core/utils', '@tinkoff/ng-polymorpheus', 'rxjs/operators', 'rxjs', '@taiga-ui/core/constants', '@angular/common'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.directives = global["taiga-ui"].core.directives || {}, global["taiga-ui"].core.directives.hint = {}), global.ng.core, global.i3, global["taiga-ui"].core.abstract, global["taiga-ui"].core.animations, global["taiga-ui"].core.directives.mode, global["taiga-ui"].core.services, global["taiga-ui"].core.tokens, global["taiga-ui"].core.utils, global.i1, global.rxjs.operators, global.rxjs, global["taiga-ui"].core.constants, global.ng.common));
5
5
  })(this, (function (exports, i0, i3, i1$1, animations, i5, i2, tokens, utils, i1, operators, i2$1, constants, common) { 'use strict';
6
6
 
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
20
18
  }
21
- n["default"] = e;
22
- return Object.freeze(n);
19
+ });
23
20
  }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
24
 
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
27
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
28
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
29
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
31
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
27
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
28
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
29
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
31
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
32
32
 
33
- /*! *****************************************************************************
34
- Copyright (c) Microsoft Corporation.
33
+ /******************************************************************************
34
+ Copyright (c) Microsoft Corporation.
35
35
 
36
- Permission to use, copy, modify, and/or distribute this software for any
37
- purpose with or without fee is hereby granted.
36
+ Permission to use, copy, modify, and/or distribute this software for any
37
+ purpose with or without fee is hereby granted.
38
38
 
39
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
40
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
41
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
42
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
43
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
44
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
45
- PERFORMANCE OF THIS SOFTWARE.
46
- ***************************************************************************** */
47
- /* global Reflect, Promise */
48
- var extendStatics = function (d, b) {
49
- extendStatics = Object.setPrototypeOf ||
50
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
51
- function (d, b) { for (var p in b)
52
- if (Object.prototype.hasOwnProperty.call(b, p))
53
- d[p] = b[p]; };
54
- return extendStatics(d, b);
55
- };
56
- function __extends(d, b) {
57
- if (typeof b !== "function" && b !== null)
58
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
59
- extendStatics(d, b);
60
- function __() { this.constructor = d; }
61
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
62
- }
63
- var __assign = function () {
64
- __assign = Object.assign || function __assign(t) {
65
- for (var s, i = 1, n = arguments.length; i < n; i++) {
66
- s = arguments[i];
67
- for (var p in s)
68
- if (Object.prototype.hasOwnProperty.call(s, p))
69
- t[p] = s[p];
70
- }
71
- return t;
72
- };
73
- return __assign.apply(this, arguments);
74
- };
75
- function __rest(s, e) {
76
- var t = {};
77
- for (var p in s)
78
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
79
- t[p] = s[p];
80
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
81
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
82
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
83
- t[p[i]] = s[p[i]];
84
- }
85
- return t;
86
- }
87
- function __decorate(decorators, target, key, desc) {
88
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
89
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
90
- r = Reflect.decorate(decorators, target, key, desc);
91
- else
92
- for (var i = decorators.length - 1; i >= 0; i--)
93
- if (d = decorators[i])
94
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
95
- return c > 3 && r && Object.defineProperty(target, key, r), r;
96
- }
97
- function __param(paramIndex, decorator) {
98
- return function (target, key) { decorator(target, key, paramIndex); };
99
- }
100
- function __metadata(metadataKey, metadataValue) {
101
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
102
- return Reflect.metadata(metadataKey, metadataValue);
103
- }
104
- function __awaiter(thisArg, _arguments, P, generator) {
105
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
106
- return new (P || (P = Promise))(function (resolve, reject) {
107
- function fulfilled(value) { try {
108
- step(generator.next(value));
109
- }
110
- catch (e) {
111
- reject(e);
112
- } }
113
- function rejected(value) { try {
114
- step(generator["throw"](value));
115
- }
116
- catch (e) {
117
- reject(e);
118
- } }
119
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
120
- step((generator = generator.apply(thisArg, _arguments || [])).next());
121
- });
122
- }
123
- function __generator(thisArg, body) {
124
- var _ = { label: 0, sent: function () { if (t[0] & 1)
125
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
126
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
127
- function verb(n) { return function (v) { return step([n, v]); }; }
128
- function step(op) {
129
- if (f)
130
- throw new TypeError("Generator is already executing.");
131
- while (_)
132
- try {
133
- 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)
134
- return t;
135
- if (y = 0, t)
136
- op = [op[0] & 2, t.value];
137
- switch (op[0]) {
138
- case 0:
139
- case 1:
140
- t = op;
141
- break;
142
- case 4:
143
- _.label++;
144
- return { value: op[1], done: false };
145
- case 5:
146
- _.label++;
147
- y = op[1];
148
- op = [0];
149
- continue;
150
- case 7:
151
- op = _.ops.pop();
152
- _.trys.pop();
153
- continue;
154
- default:
155
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
156
- _ = 0;
157
- continue;
158
- }
159
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
160
- _.label = op[1];
161
- break;
162
- }
163
- if (op[0] === 6 && _.label < t[1]) {
164
- _.label = t[1];
165
- t = op;
166
- break;
167
- }
168
- if (t && _.label < t[2]) {
169
- _.label = t[2];
170
- _.ops.push(op);
171
- break;
172
- }
173
- if (t[2])
174
- _.ops.pop();
175
- _.trys.pop();
176
- continue;
177
- }
178
- op = body.call(thisArg, _);
179
- }
180
- catch (e) {
181
- op = [6, e];
182
- y = 0;
183
- }
184
- finally {
185
- f = t = 0;
186
- }
187
- if (op[0] & 5)
188
- throw op[1];
189
- return { value: op[0] ? op[1] : void 0, done: true };
190
- }
191
- }
192
- var __createBinding = Object.create ? (function (o, m, k, k2) {
193
- if (k2 === undefined)
194
- k2 = k;
195
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
196
- }) : (function (o, m, k, k2) {
197
- if (k2 === undefined)
198
- k2 = k;
199
- o[k2] = m[k];
200
- });
201
- function __exportStar(m, o) {
202
- for (var p in m)
203
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
204
- __createBinding(o, m, p);
205
- }
206
- function __values(o) {
207
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
208
- if (m)
209
- return m.call(o);
210
- if (o && typeof o.length === "number")
211
- return {
212
- next: function () {
213
- if (o && i >= o.length)
214
- o = void 0;
215
- return { value: o && o[i++], done: !o };
216
- }
217
- };
218
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
219
- }
220
- function __read(o, n) {
221
- var m = typeof Symbol === "function" && o[Symbol.iterator];
222
- if (!m)
223
- return o;
224
- var i = m.call(o), r, ar = [], e;
225
- try {
226
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
227
- ar.push(r.value);
228
- }
229
- catch (error) {
230
- e = { error: error };
231
- }
232
- finally {
233
- try {
234
- if (r && !r.done && (m = i["return"]))
235
- m.call(i);
236
- }
237
- finally {
238
- if (e)
239
- throw e.error;
240
- }
241
- }
242
- return ar;
243
- }
244
- /** @deprecated */
245
- function __spread() {
246
- for (var ar = [], i = 0; i < arguments.length; i++)
247
- ar = ar.concat(__read(arguments[i]));
248
- return ar;
249
- }
250
- /** @deprecated */
251
- function __spreadArrays() {
252
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
253
- s += arguments[i].length;
254
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
255
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
256
- r[k] = a[j];
257
- return r;
258
- }
259
- function __spreadArray(to, from, pack) {
260
- if (pack || arguments.length === 2)
261
- for (var i = 0, l = from.length, ar; i < l; i++) {
262
- if (ar || !(i in from)) {
263
- if (!ar)
264
- ar = Array.prototype.slice.call(from, 0, i);
265
- ar[i] = from[i];
266
- }
267
- }
268
- return to.concat(ar || from);
269
- }
270
- function __await(v) {
271
- return this instanceof __await ? (this.v = v, this) : new __await(v);
272
- }
273
- function __asyncGenerator(thisArg, _arguments, generator) {
274
- if (!Symbol.asyncIterator)
275
- throw new TypeError("Symbol.asyncIterator is not defined.");
276
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
277
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
278
- function verb(n) { if (g[n])
279
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
280
- function resume(n, v) { try {
281
- step(g[n](v));
282
- }
283
- catch (e) {
284
- settle(q[0][3], e);
285
- } }
286
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
287
- function fulfill(value) { resume("next", value); }
288
- function reject(value) { resume("throw", value); }
289
- function settle(f, v) { if (f(v), q.shift(), q.length)
290
- resume(q[0][0], q[0][1]); }
291
- }
292
- function __asyncDelegator(o) {
293
- var i, p;
294
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
295
- 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; }
296
- }
297
- function __asyncValues(o) {
298
- if (!Symbol.asyncIterator)
299
- throw new TypeError("Symbol.asyncIterator is not defined.");
300
- var m = o[Symbol.asyncIterator], i;
301
- 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);
302
- 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); }); }; }
303
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
304
- }
305
- function __makeTemplateObject(cooked, raw) {
306
- if (Object.defineProperty) {
307
- Object.defineProperty(cooked, "raw", { value: raw });
308
- }
309
- else {
310
- cooked.raw = raw;
311
- }
312
- return cooked;
313
- }
314
- ;
315
- var __setModuleDefault = Object.create ? (function (o, v) {
316
- Object.defineProperty(o, "default", { enumerable: true, value: v });
317
- }) : function (o, v) {
318
- o["default"] = v;
319
- };
320
- function __importStar(mod) {
321
- if (mod && mod.__esModule)
322
- return mod;
323
- var result = {};
324
- if (mod != null)
325
- for (var k in mod)
326
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
327
- __createBinding(result, mod, k);
328
- __setModuleDefault(result, mod);
329
- return result;
330
- }
331
- function __importDefault(mod) {
332
- return (mod && mod.__esModule) ? mod : { default: mod };
333
- }
334
- function __classPrivateFieldGet(receiver, state, kind, f) {
335
- if (kind === "a" && !f)
336
- throw new TypeError("Private accessor was defined without a getter");
337
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
338
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
339
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
340
- }
341
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
342
- if (kind === "m")
343
- throw new TypeError("Private method is not writable");
344
- if (kind === "a" && !f)
345
- throw new TypeError("Private accessor was defined without a setter");
346
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
347
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
348
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
349
- }
39
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
40
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
41
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
42
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
43
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
44
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
45
+ PERFORMANCE OF THIS SOFTWARE.
46
+ ***************************************************************************** */
47
+ /* global Reflect, Promise, SuppressedError, Symbol */
48
+ var extendStatics = function (d, b) {
49
+ extendStatics = Object.setPrototypeOf ||
50
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
51
+ function (d, b) { for (var p in b)
52
+ if (Object.prototype.hasOwnProperty.call(b, p))
53
+ d[p] = b[p]; };
54
+ return extendStatics(d, b);
55
+ };
56
+ function __extends(d, b) {
57
+ if (typeof b !== "function" && b !== null)
58
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
59
+ extendStatics(d, b);
60
+ function __() { this.constructor = d; }
61
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
62
+ }
63
+ var __assign = function () {
64
+ __assign = Object.assign || function __assign(t) {
65
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
66
+ s = arguments[i];
67
+ for (var p in s)
68
+ if (Object.prototype.hasOwnProperty.call(s, p))
69
+ t[p] = s[p];
70
+ }
71
+ return t;
72
+ };
73
+ return __assign.apply(this, arguments);
74
+ };
75
+ function __rest(s, e) {
76
+ var t = {};
77
+ for (var p in s)
78
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
79
+ t[p] = s[p];
80
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
81
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
82
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
83
+ t[p[i]] = s[p[i]];
84
+ }
85
+ return t;
86
+ }
87
+ function __decorate(decorators, target, key, desc) {
88
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
89
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
90
+ r = Reflect.decorate(decorators, target, key, desc);
91
+ else
92
+ for (var i = decorators.length - 1; i >= 0; i--)
93
+ if (d = decorators[i])
94
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
95
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
96
+ }
97
+ function __param(paramIndex, decorator) {
98
+ return function (target, key) { decorator(target, key, paramIndex); };
99
+ }
100
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
101
+ function accept(f) { if (f !== void 0 && typeof f !== "function")
102
+ throw new TypeError("Function expected"); return f; }
103
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
104
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
105
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
106
+ var _, done = false;
107
+ for (var i = decorators.length - 1; i >= 0; i--) {
108
+ var context = {};
109
+ for (var p in contextIn)
110
+ context[p] = p === "access" ? {} : contextIn[p];
111
+ for (var p in contextIn.access)
112
+ context.access[p] = contextIn.access[p];
113
+ context.addInitializer = function (f) { if (done)
114
+ throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
115
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
116
+ if (kind === "accessor") {
117
+ if (result === void 0)
118
+ continue;
119
+ if (result === null || typeof result !== "object")
120
+ throw new TypeError("Object expected");
121
+ if (_ = accept(result.get))
122
+ descriptor.get = _;
123
+ if (_ = accept(result.set))
124
+ descriptor.set = _;
125
+ if (_ = accept(result.init))
126
+ initializers.unshift(_);
127
+ }
128
+ else if (_ = accept(result)) {
129
+ if (kind === "field")
130
+ initializers.unshift(_);
131
+ else
132
+ descriptor[key] = _;
133
+ }
134
+ }
135
+ if (target)
136
+ Object.defineProperty(target, contextIn.name, descriptor);
137
+ done = true;
138
+ }
139
+ ;
140
+ function __runInitializers(thisArg, initializers, value) {
141
+ var useValue = arguments.length > 2;
142
+ for (var i = 0; i < initializers.length; i++) {
143
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
144
+ }
145
+ return useValue ? value : void 0;
146
+ }
147
+ ;
148
+ function __propKey(x) {
149
+ return typeof x === "symbol" ? x : "".concat(x);
150
+ }
151
+ ;
152
+ function __setFunctionName(f, name, prefix) {
153
+ if (typeof name === "symbol")
154
+ name = name.description ? "[".concat(name.description, "]") : "";
155
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
156
+ }
157
+ ;
158
+ function __metadata(metadataKey, metadataValue) {
159
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
160
+ return Reflect.metadata(metadataKey, metadataValue);
161
+ }
162
+ function __awaiter(thisArg, _arguments, P, generator) {
163
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
164
+ return new (P || (P = Promise))(function (resolve, reject) {
165
+ function fulfilled(value) { try {
166
+ step(generator.next(value));
167
+ }
168
+ catch (e) {
169
+ reject(e);
170
+ } }
171
+ function rejected(value) { try {
172
+ step(generator["throw"](value));
173
+ }
174
+ catch (e) {
175
+ reject(e);
176
+ } }
177
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
178
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
179
+ });
180
+ }
181
+ function __generator(thisArg, body) {
182
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
183
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
184
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
185
+ function verb(n) { return function (v) { return step([n, v]); }; }
186
+ function step(op) {
187
+ if (f)
188
+ throw new TypeError("Generator is already executing.");
189
+ while (g && (g = 0, op[0] && (_ = 0)), _)
190
+ try {
191
+ 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)
192
+ return t;
193
+ if (y = 0, t)
194
+ op = [op[0] & 2, t.value];
195
+ switch (op[0]) {
196
+ case 0:
197
+ case 1:
198
+ t = op;
199
+ break;
200
+ case 4:
201
+ _.label++;
202
+ return { value: op[1], done: false };
203
+ case 5:
204
+ _.label++;
205
+ y = op[1];
206
+ op = [0];
207
+ continue;
208
+ case 7:
209
+ op = _.ops.pop();
210
+ _.trys.pop();
211
+ continue;
212
+ default:
213
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
214
+ _ = 0;
215
+ continue;
216
+ }
217
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
218
+ _.label = op[1];
219
+ break;
220
+ }
221
+ if (op[0] === 6 && _.label < t[1]) {
222
+ _.label = t[1];
223
+ t = op;
224
+ break;
225
+ }
226
+ if (t && _.label < t[2]) {
227
+ _.label = t[2];
228
+ _.ops.push(op);
229
+ break;
230
+ }
231
+ if (t[2])
232
+ _.ops.pop();
233
+ _.trys.pop();
234
+ continue;
235
+ }
236
+ op = body.call(thisArg, _);
237
+ }
238
+ catch (e) {
239
+ op = [6, e];
240
+ y = 0;
241
+ }
242
+ finally {
243
+ f = t = 0;
244
+ }
245
+ if (op[0] & 5)
246
+ throw op[1];
247
+ return { value: op[0] ? op[1] : void 0, done: true };
248
+ }
249
+ }
250
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
251
+ if (k2 === undefined)
252
+ k2 = k;
253
+ var desc = Object.getOwnPropertyDescriptor(m, k);
254
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
255
+ desc = { enumerable: true, get: function () { return m[k]; } };
256
+ }
257
+ Object.defineProperty(o, k2, desc);
258
+ }) : (function (o, m, k, k2) {
259
+ if (k2 === undefined)
260
+ k2 = k;
261
+ o[k2] = m[k];
262
+ });
263
+ function __exportStar(m, o) {
264
+ for (var p in m)
265
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
266
+ __createBinding(o, m, p);
267
+ }
268
+ function __values(o) {
269
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
270
+ if (m)
271
+ return m.call(o);
272
+ if (o && typeof o.length === "number")
273
+ return {
274
+ next: function () {
275
+ if (o && i >= o.length)
276
+ o = void 0;
277
+ return { value: o && o[i++], done: !o };
278
+ }
279
+ };
280
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
281
+ }
282
+ function __read(o, n) {
283
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
284
+ if (!m)
285
+ return o;
286
+ var i = m.call(o), r, ar = [], e;
287
+ try {
288
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
289
+ ar.push(r.value);
290
+ }
291
+ catch (error) {
292
+ e = { error: error };
293
+ }
294
+ finally {
295
+ try {
296
+ if (r && !r.done && (m = i["return"]))
297
+ m.call(i);
298
+ }
299
+ finally {
300
+ if (e)
301
+ throw e.error;
302
+ }
303
+ }
304
+ return ar;
305
+ }
306
+ /** @deprecated */
307
+ function __spread() {
308
+ for (var ar = [], i = 0; i < arguments.length; i++)
309
+ ar = ar.concat(__read(arguments[i]));
310
+ return ar;
311
+ }
312
+ /** @deprecated */
313
+ function __spreadArrays() {
314
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
315
+ s += arguments[i].length;
316
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
317
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
318
+ r[k] = a[j];
319
+ return r;
320
+ }
321
+ function __spreadArray(to, from, pack) {
322
+ if (pack || arguments.length === 2)
323
+ for (var i = 0, l = from.length, ar; i < l; i++) {
324
+ if (ar || !(i in from)) {
325
+ if (!ar)
326
+ ar = Array.prototype.slice.call(from, 0, i);
327
+ ar[i] = from[i];
328
+ }
329
+ }
330
+ return to.concat(ar || Array.prototype.slice.call(from));
331
+ }
332
+ function __await(v) {
333
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
334
+ }
335
+ function __asyncGenerator(thisArg, _arguments, generator) {
336
+ if (!Symbol.asyncIterator)
337
+ throw new TypeError("Symbol.asyncIterator is not defined.");
338
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
339
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
340
+ function verb(n) { if (g[n])
341
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
342
+ function resume(n, v) { try {
343
+ step(g[n](v));
344
+ }
345
+ catch (e) {
346
+ settle(q[0][3], e);
347
+ } }
348
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
349
+ function fulfill(value) { resume("next", value); }
350
+ function reject(value) { resume("throw", value); }
351
+ function settle(f, v) { if (f(v), q.shift(), q.length)
352
+ resume(q[0][0], q[0][1]); }
353
+ }
354
+ function __asyncDelegator(o) {
355
+ var i, p;
356
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
357
+ 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; }
358
+ }
359
+ function __asyncValues(o) {
360
+ if (!Symbol.asyncIterator)
361
+ throw new TypeError("Symbol.asyncIterator is not defined.");
362
+ var m = o[Symbol.asyncIterator], i;
363
+ 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);
364
+ 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); }); }; }
365
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
366
+ }
367
+ function __makeTemplateObject(cooked, raw) {
368
+ if (Object.defineProperty) {
369
+ Object.defineProperty(cooked, "raw", { value: raw });
370
+ }
371
+ else {
372
+ cooked.raw = raw;
373
+ }
374
+ return cooked;
375
+ }
376
+ ;
377
+ var __setModuleDefault = Object.create ? (function (o, v) {
378
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
379
+ }) : function (o, v) {
380
+ o["default"] = v;
381
+ };
382
+ function __importStar(mod) {
383
+ if (mod && mod.__esModule)
384
+ return mod;
385
+ var result = {};
386
+ if (mod != null)
387
+ for (var k in mod)
388
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
389
+ __createBinding(result, mod, k);
390
+ __setModuleDefault(result, mod);
391
+ return result;
392
+ }
393
+ function __importDefault(mod) {
394
+ return (mod && mod.__esModule) ? mod : { default: mod };
395
+ }
396
+ function __classPrivateFieldGet(receiver, state, kind, f) {
397
+ if (kind === "a" && !f)
398
+ throw new TypeError("Private accessor was defined without a getter");
399
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
400
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
401
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
402
+ }
403
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
404
+ if (kind === "m")
405
+ throw new TypeError("Private method is not writable");
406
+ if (kind === "a" && !f)
407
+ throw new TypeError("Private accessor was defined without a setter");
408
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
409
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
410
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
411
+ }
412
+ function __classPrivateFieldIn(state, receiver) {
413
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
414
+ throw new TypeError("Cannot use 'in' operator on non-object");
415
+ return typeof state === "function" ? receiver === state : state.has(receiver);
416
+ }
417
+ function __addDisposableResource(env, value, async) {
418
+ if (value !== null && value !== void 0) {
419
+ if (typeof value !== "object" && typeof value !== "function")
420
+ throw new TypeError("Object expected.");
421
+ var dispose;
422
+ if (async) {
423
+ if (!Symbol.asyncDispose)
424
+ throw new TypeError("Symbol.asyncDispose is not defined.");
425
+ dispose = value[Symbol.asyncDispose];
426
+ }
427
+ if (dispose === void 0) {
428
+ if (!Symbol.dispose)
429
+ throw new TypeError("Symbol.dispose is not defined.");
430
+ dispose = value[Symbol.dispose];
431
+ }
432
+ if (typeof dispose !== "function")
433
+ throw new TypeError("Object not disposable.");
434
+ env.stack.push({ value: value, dispose: dispose, async: async });
435
+ }
436
+ else if (async) {
437
+ env.stack.push({ async: true });
438
+ }
439
+ return value;
440
+ }
441
+ var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
442
+ var e = new Error(message);
443
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
444
+ };
445
+ function __disposeResources(env) {
446
+ function fail(e) {
447
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
448
+ env.hasError = true;
449
+ }
450
+ function next() {
451
+ while (env.stack.length) {
452
+ var rec = env.stack.pop();
453
+ try {
454
+ var result = rec.dispose && rec.dispose.call(rec.value);
455
+ if (rec.async)
456
+ return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
457
+ }
458
+ catch (e) {
459
+ fail(e);
460
+ }
461
+ }
462
+ if (env.hasError)
463
+ throw env.error;
464
+ }
465
+ return next();
466
+ }
467
+ var tslib_es6 = {
468
+ __extends: __extends,
469
+ __assign: __assign,
470
+ __rest: __rest,
471
+ __decorate: __decorate,
472
+ __param: __param,
473
+ __metadata: __metadata,
474
+ __awaiter: __awaiter,
475
+ __generator: __generator,
476
+ __createBinding: __createBinding,
477
+ __exportStar: __exportStar,
478
+ __values: __values,
479
+ __read: __read,
480
+ __spread: __spread,
481
+ __spreadArrays: __spreadArrays,
482
+ __spreadArray: __spreadArray,
483
+ __await: __await,
484
+ __asyncGenerator: __asyncGenerator,
485
+ __asyncDelegator: __asyncDelegator,
486
+ __asyncValues: __asyncValues,
487
+ __makeTemplateObject: __makeTemplateObject,
488
+ __importStar: __importStar,
489
+ __importDefault: __importDefault,
490
+ __classPrivateFieldGet: __classPrivateFieldGet,
491
+ __classPrivateFieldSet: __classPrivateFieldSet,
492
+ __classPrivateFieldIn: __classPrivateFieldIn,
493
+ __addDisposableResource: __addDisposableResource,
494
+ __disposeResources: __disposeResources,
495
+ };
350
496
 
351
- /**
352
- * A component to display a hint
353
- */
354
- var TUI_HINT_COMPONENT = i3.tuiCreateTokenFromFactory(function () { return TuiHintComponent; });
497
+ /**
498
+ * A component to display a hint
499
+ */
500
+ var TUI_HINT_COMPONENT = i3.tuiCreateTokenFromFactory(function () { return TuiHintComponent; });
355
501
 
356
- /** Default values for hint options */
357
- var TUI_HINT_DEFAULT_OPTIONS = {
358
- direction: 'bottom-left',
359
- showDelay: 500,
360
- hideDelay: 200,
361
- appearance: '',
362
- icon: 'tuiIconHelpCircle',
363
- };
364
- /**
365
- * Default parameters for hint directive
366
- */
367
- var TUI_HINT_OPTIONS = i3.tuiCreateToken(TUI_HINT_DEFAULT_OPTIONS);
368
- var tuiHintOptionsProvider = function (override) { return ({
369
- provide: TUI_HINT_OPTIONS,
370
- deps: [
371
- [new i0.Optional(), TuiHintOptionsDirective],
372
- [new i0.Optional(), new i0.SkipSelf(), TUI_HINT_OPTIONS],
373
- ],
374
- useFactory: utils.tuiOverrideOptions(override, TUI_HINT_DEFAULT_OPTIONS),
375
- }); };
376
- var TuiHintOptionsDirective = /** @class */ (function (_super) {
377
- __extends(TuiHintOptionsDirective, _super);
378
- function TuiHintOptionsDirective(options) {
379
- var _this = _super.call(this) || this;
380
- _this.options = options;
381
- _this.direction = _this.options.direction;
382
- _this.appearance = _this.options.appearance;
383
- _this.showDelay = _this.options.showDelay;
384
- _this.hideDelay = _this.options.hideDelay;
385
- _this.icon = _this.options.icon;
386
- return _this;
387
- }
388
- return TuiHintOptionsDirective;
389
- }(i3.AbstractTuiController));
390
- TuiHintOptionsDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintOptionsDirective, deps: [{ token: TUI_HINT_OPTIONS, skipSelf: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
391
- TuiHintOptionsDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintOptionsDirective, selector: "[tuiHintContent]", inputs: { content: ["tuiHintContent", "content"], direction: ["tuiHintDirection", "direction"], appearance: ["tuiHintAppearance", "appearance"], showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, providers: [
392
- {
393
- provide: TUI_HINT_OPTIONS,
394
- useExisting: i0.forwardRef(function () { return TuiHintOptionsDirective; }),
395
- },
396
- ], usesInheritance: true, ngImport: i0__namespace });
397
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintOptionsDirective, decorators: [{
398
- type: i0.Directive,
399
- args: [{
400
- selector: '[tuiHintContent]',
401
- providers: [
402
- {
403
- provide: TUI_HINT_OPTIONS,
404
- useExisting: i0.forwardRef(function () { return TuiHintOptionsDirective; }),
405
- },
406
- ],
407
- }]
408
- }], ctorParameters: function () {
409
- return [{ type: undefined, decorators: [{
410
- type: i0.SkipSelf
411
- }, {
412
- type: i0.Inject,
413
- args: [TUI_HINT_OPTIONS]
414
- }] }];
415
- }, propDecorators: { content: [{
416
- type: i0.Input,
417
- args: ['tuiHintContent']
418
- }], direction: [{
419
- type: i0.Input,
420
- args: ['tuiHintDirection']
421
- }], appearance: [{
422
- type: i0.Input,
423
- args: ['tuiHintAppearance']
424
- }], showDelay: [{
425
- type: i0.Input,
426
- args: ['tuiHintShowDelay']
427
- }], hideDelay: [{
428
- type: i0.Input,
429
- args: ['tuiHintHideDelay']
430
- }] } });
502
+ /** Default values for hint options */
503
+ var TUI_HINT_DEFAULT_OPTIONS = {
504
+ direction: 'bottom-left',
505
+ showDelay: 500,
506
+ hideDelay: 200,
507
+ appearance: '',
508
+ icon: 'tuiIconHelpCircle',
509
+ };
510
+ /**
511
+ * Default parameters for hint directive
512
+ */
513
+ var TUI_HINT_OPTIONS = i3.tuiCreateToken(TUI_HINT_DEFAULT_OPTIONS);
514
+ var tuiHintOptionsProvider = function (override) { return ({
515
+ provide: TUI_HINT_OPTIONS,
516
+ deps: [
517
+ [new i0.Optional(), TuiHintOptionsDirective],
518
+ [new i0.Optional(), new i0.SkipSelf(), TUI_HINT_OPTIONS],
519
+ ],
520
+ useFactory: utils.tuiOverrideOptions(override, TUI_HINT_DEFAULT_OPTIONS),
521
+ }); };
522
+ var TuiHintOptionsDirective = /** @class */ (function (_super) {
523
+ __extends(TuiHintOptionsDirective, _super);
524
+ function TuiHintOptionsDirective(options) {
525
+ var _this = _super.call(this) || this;
526
+ _this.options = options;
527
+ _this.direction = _this.options.direction;
528
+ _this.appearance = _this.options.appearance;
529
+ _this.showDelay = _this.options.showDelay;
530
+ _this.hideDelay = _this.options.hideDelay;
531
+ _this.icon = _this.options.icon;
532
+ return _this;
533
+ }
534
+ return TuiHintOptionsDirective;
535
+ }(i3.AbstractTuiController));
536
+ TuiHintOptionsDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintOptionsDirective, deps: [{ token: TUI_HINT_OPTIONS, skipSelf: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
537
+ TuiHintOptionsDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintOptionsDirective, selector: "[tuiHintContent]", inputs: { content: ["tuiHintContent", "content"], direction: ["tuiHintDirection", "direction"], appearance: ["tuiHintAppearance", "appearance"], showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, providers: [
538
+ {
539
+ provide: TUI_HINT_OPTIONS,
540
+ useExisting: i0.forwardRef(function () { return TuiHintOptionsDirective; }),
541
+ },
542
+ ], usesInheritance: true, ngImport: i0__namespace });
543
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintOptionsDirective, decorators: [{
544
+ type: i0.Directive,
545
+ args: [{
546
+ selector: '[tuiHintContent]',
547
+ providers: [
548
+ {
549
+ provide: TUI_HINT_OPTIONS,
550
+ useExisting: i0.forwardRef(function () { return TuiHintOptionsDirective; }),
551
+ },
552
+ ],
553
+ }]
554
+ }], ctorParameters: function () {
555
+ return [{ type: undefined, decorators: [{
556
+ type: i0.SkipSelf
557
+ }, {
558
+ type: i0.Inject,
559
+ args: [TUI_HINT_OPTIONS]
560
+ }] }];
561
+ }, propDecorators: { content: [{
562
+ type: i0.Input,
563
+ args: ['tuiHintContent']
564
+ }], direction: [{
565
+ type: i0.Input,
566
+ args: ['tuiHintDirection']
567
+ }], appearance: [{
568
+ type: i0.Input,
569
+ args: ['tuiHintAppearance']
570
+ }], showDelay: [{
571
+ type: i0.Input,
572
+ args: ['tuiHintShowDelay']
573
+ }], hideDelay: [{
574
+ type: i0.Input,
575
+ args: ['tuiHintHideDelay']
576
+ }] } });
431
577
 
432
- var TuiHintDirective = /** @class */ (function () {
433
- function TuiHintDirective(el, component, hintService, options, activeZone) {
434
- this.el = el;
435
- this.component = component;
436
- this.hintService = hintService;
437
- this.options = options;
438
- this.activeZone = activeZone;
439
- this.tuiHintAppearance = null;
440
- this.type = 'hint';
441
- }
442
- Object.defineProperty(TuiHintDirective.prototype, "tuiHint", {
443
- set: function (content) {
444
- this.content = content;
445
- if (!content) {
446
- this.toggle(false);
447
- }
448
- },
449
- enumerable: false,
450
- configurable: true
451
- });
452
- Object.defineProperty(TuiHintDirective.prototype, "appearance", {
453
- get: function () {
454
- var _a;
455
- return (_a = this.tuiHintAppearance) !== null && _a !== void 0 ? _a : this.options.appearance;
456
- },
457
- enumerable: false,
458
- configurable: true
459
- });
460
- TuiHintDirective.prototype.ngOnDestroy = function () {
461
- this.toggle(false);
462
- };
463
- TuiHintDirective.prototype.getClientRect = function () {
464
- return this.el.nativeElement.getBoundingClientRect();
465
- };
466
- TuiHintDirective.prototype.toggle = function (show) {
467
- if (show && this.content) {
468
- this.hintService.add(this);
469
- }
470
- else {
471
- this.hintService.remove(this);
472
- }
473
- };
474
- return TuiHintDirective;
475
- }());
476
- TuiHintDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDirective, deps: [{ token: i0.ElementRef }, { token: i1.PolymorpheusComponent }, { token: i2.TuiHintService }, { token: TUI_HINT_OPTIONS }, { token: i3.TuiActiveZoneDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
477
- TuiHintDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: { tuiHint: "tuiHint", context: ["tuiHintContext", "context"], tuiHintAppearance: "tuiHintAppearance" }, providers: [
478
- i1$1.tuiAsRectAccessor(TuiHintDirective),
479
- i1$1.tuiAsVehicle(TuiHintDirective),
480
- {
481
- provide: i1.PolymorpheusComponent,
482
- deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
483
- useClass: i1.PolymorpheusComponent,
484
- },
485
- ], ngImport: i0__namespace });
486
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDirective, decorators: [{
487
- type: i0.Directive,
488
- args: [{
489
- selector: '[tuiHint]:not(ng-container):not(ng-template)',
490
- providers: [
491
- i1$1.tuiAsRectAccessor(TuiHintDirective),
492
- i1$1.tuiAsVehicle(TuiHintDirective),
493
- {
494
- provide: i1.PolymorpheusComponent,
495
- deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
496
- useClass: i1.PolymorpheusComponent,
497
- },
498
- ],
499
- }]
500
- }], ctorParameters: function () {
501
- return [{ type: i0__namespace.ElementRef, decorators: [{
502
- type: i0.Inject,
503
- args: [i0.ElementRef]
504
- }] }, { type: i1__namespace.PolymorpheusComponent, decorators: [{
505
- type: i0.Inject,
506
- args: [i1.PolymorpheusComponent]
507
- }] }, { type: i2__namespace.TuiHintService, decorators: [{
508
- type: i0.Inject,
509
- args: [i2.TuiHintService]
510
- }] }, { type: undefined, decorators: [{
511
- type: i0.Inject,
512
- args: [TUI_HINT_OPTIONS]
513
- }] }, { type: i3__namespace.TuiActiveZoneDirective, decorators: [{
514
- type: i0.Optional
515
- }, {
516
- type: i0.Inject,
517
- args: [i3.TuiActiveZoneDirective]
518
- }] }];
519
- }, propDecorators: { tuiHint: [{
520
- type: i0.Input
521
- }], context: [{
522
- type: i0.Input,
523
- args: ['tuiHintContext']
524
- }], tuiHintAppearance: [{
525
- type: i0.Input
526
- }] } });
578
+ var TuiHintDirective = /** @class */ (function () {
579
+ function TuiHintDirective(el, component, hintService, options, activeZone) {
580
+ this.el = el;
581
+ this.component = component;
582
+ this.hintService = hintService;
583
+ this.options = options;
584
+ this.activeZone = activeZone;
585
+ this.tuiHintAppearance = null;
586
+ this.type = 'hint';
587
+ }
588
+ Object.defineProperty(TuiHintDirective.prototype, "tuiHint", {
589
+ set: function (content) {
590
+ this.content = content;
591
+ if (!content) {
592
+ this.toggle(false);
593
+ }
594
+ },
595
+ enumerable: false,
596
+ configurable: true
597
+ });
598
+ Object.defineProperty(TuiHintDirective.prototype, "appearance", {
599
+ get: function () {
600
+ var _a;
601
+ return (_a = this.tuiHintAppearance) !== null && _a !== void 0 ? _a : this.options.appearance;
602
+ },
603
+ enumerable: false,
604
+ configurable: true
605
+ });
606
+ TuiHintDirective.prototype.ngOnDestroy = function () {
607
+ this.toggle(false);
608
+ };
609
+ TuiHintDirective.prototype.getClientRect = function () {
610
+ return this.el.nativeElement.getBoundingClientRect();
611
+ };
612
+ TuiHintDirective.prototype.toggle = function (show) {
613
+ if (show && this.content) {
614
+ this.hintService.add(this);
615
+ }
616
+ else {
617
+ this.hintService.remove(this);
618
+ }
619
+ };
620
+ return TuiHintDirective;
621
+ }());
622
+ TuiHintDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDirective, deps: [{ token: i0.ElementRef }, { token: i1.PolymorpheusComponent }, { token: i2.TuiHintService }, { token: TUI_HINT_OPTIONS }, { token: i3.TuiActiveZoneDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
623
+ TuiHintDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: { tuiHint: "tuiHint", context: ["tuiHintContext", "context"], tuiHintAppearance: "tuiHintAppearance" }, providers: [
624
+ i1$1.tuiAsRectAccessor(TuiHintDirective),
625
+ i1$1.tuiAsVehicle(TuiHintDirective),
626
+ {
627
+ provide: i1.PolymorpheusComponent,
628
+ deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
629
+ useClass: i1.PolymorpheusComponent,
630
+ },
631
+ ], ngImport: i0__namespace });
632
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDirective, decorators: [{
633
+ type: i0.Directive,
634
+ args: [{
635
+ selector: '[tuiHint]:not(ng-container):not(ng-template)',
636
+ providers: [
637
+ i1$1.tuiAsRectAccessor(TuiHintDirective),
638
+ i1$1.tuiAsVehicle(TuiHintDirective),
639
+ {
640
+ provide: i1.PolymorpheusComponent,
641
+ deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
642
+ useClass: i1.PolymorpheusComponent,
643
+ },
644
+ ],
645
+ }]
646
+ }], ctorParameters: function () {
647
+ return [{ type: i0__namespace.ElementRef, decorators: [{
648
+ type: i0.Inject,
649
+ args: [i0.ElementRef]
650
+ }] }, { type: i1__namespace.PolymorpheusComponent, decorators: [{
651
+ type: i0.Inject,
652
+ args: [i1.PolymorpheusComponent]
653
+ }] }, { type: i2__namespace.TuiHintService, decorators: [{
654
+ type: i0.Inject,
655
+ args: [i2.TuiHintService]
656
+ }] }, { type: undefined, decorators: [{
657
+ type: i0.Inject,
658
+ args: [TUI_HINT_OPTIONS]
659
+ }] }, { type: i3__namespace.TuiActiveZoneDirective, decorators: [{
660
+ type: i0.Optional
661
+ }, {
662
+ type: i0.Inject,
663
+ args: [i3.TuiActiveZoneDirective]
664
+ }] }];
665
+ }, propDecorators: { tuiHint: [{
666
+ type: i0.Input
667
+ }], context: [{
668
+ type: i0.Input,
669
+ args: ['tuiHintContext']
670
+ }], tuiHintAppearance: [{
671
+ type: i0.Input
672
+ }] } });
527
673
 
528
- var TuiHintHoverDirective = /** @class */ (function (_super) {
529
- __extends(TuiHintHoverDirective, _super);
530
- function TuiHintHoverDirective(hovered$, options, el, parent) {
531
- var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
532
- _this.hovered$ = hovered$;
533
- _this.options = options;
534
- _this.el = el;
535
- _this.parent = parent;
536
- _this.visible = false;
537
- _this.toggle$ = new i2$1.Subject();
538
- _this.stream$ = i2$1.merge(_this.toggle$.pipe(operators.switchMap(function (visible) { return i2$1.of(visible).pipe(operators.delay(visible ? 0 : _this.hideDelay)); }), operators.takeUntil(_this.hovered$), operators.repeat()), _this.hovered$.pipe(operators.switchMap(function (visible) { return i2$1.of(visible).pipe(operators.delay(visible ? _this.showDelay : _this.hideDelay)); }), operators.takeUntil(_this.toggle$), operators.repeat())).pipe(operators.filter(function () { return _this.enabled; }), operators.map(function (value) { return value &&
539
- (_this.el.nativeElement.hasAttribute('tuiHintPointer') ||
540
- !utils.tuiIsObscured(_this.el.nativeElement)); }), operators.tap(function (visible) {
541
- _this.visible = visible;
542
- }));
543
- _this.showDelay = _this.options.showDelay;
544
- _this.hideDelay = _this.options.hideDelay;
545
- _this.type = 'hint';
546
- _this.enabled = true;
547
- return _this;
548
- }
549
- TuiHintHoverDirective.prototype.toggle = function (visible) {
550
- if (visible === void 0) { visible = !this.visible; }
551
- var _a;
552
- this.toggle$.next(visible);
553
- (_a = this.parent) === null || _a === void 0 ? void 0 : _a.toggle(visible);
554
- };
555
- return TuiHintHoverDirective;
556
- }(i1$1.TuiDriver));
557
- TuiHintHoverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHoverDirective, deps: [{ token: i3.TuiHoveredService }, { token: TUI_HINT_OPTIONS }, { token: i0.ElementRef }, { token: TuiHintHoverDirective, optional: true, skipSelf: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
558
- TuiHintHoverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintHoverDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: { showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, providers: [i1$1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService], exportAs: ["tuiHintHover"], usesInheritance: true, ngImport: i0__namespace });
559
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHoverDirective, decorators: [{
560
- type: i0.Directive,
561
- args: [{
562
- selector: '[tuiHint]:not(ng-container):not(ng-template)',
563
- providers: [i1$1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService],
564
- exportAs: 'tuiHintHover',
565
- }]
566
- }], ctorParameters: function () {
567
- return [{ type: i2__namespace$1.Observable, decorators: [{
568
- type: i0.Inject,
569
- args: [i3.TuiHoveredService]
570
- }] }, { type: undefined, decorators: [{
571
- type: i0.Inject,
572
- args: [TUI_HINT_OPTIONS]
573
- }] }, { type: i0__namespace.ElementRef, decorators: [{
574
- type: i0.Inject,
575
- args: [i0.ElementRef]
576
- }] }, { type: TuiHintHoverDirective, decorators: [{
577
- type: i0.Optional
578
- }, {
579
- type: i0.SkipSelf
580
- }, {
581
- type: i0.Inject,
582
- args: [TuiHintHoverDirective]
583
- }] }];
584
- }, propDecorators: { showDelay: [{
585
- type: i0.Input,
586
- args: ['tuiHintShowDelay']
587
- }], hideDelay: [{
588
- type: i0.Input,
589
- args: ['tuiHintHideDelay']
590
- }] } });
674
+ var TuiHintHoverDirective = /** @class */ (function (_super) {
675
+ __extends(TuiHintHoverDirective, _super);
676
+ function TuiHintHoverDirective(hovered$, options, el, parent) {
677
+ var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
678
+ _this.hovered$ = hovered$;
679
+ _this.options = options;
680
+ _this.el = el;
681
+ _this.parent = parent;
682
+ _this.visible = false;
683
+ _this.toggle$ = new i2$1.Subject();
684
+ _this.stream$ = i2$1.merge(_this.toggle$.pipe(operators.switchMap(function (visible) { return i2$1.of(visible).pipe(operators.delay(visible ? 0 : _this.hideDelay)); }), operators.takeUntil(_this.hovered$), operators.repeat()), _this.hovered$.pipe(operators.switchMap(function (visible) { return i2$1.of(visible).pipe(operators.delay(visible ? _this.showDelay : _this.hideDelay)); }), operators.takeUntil(_this.toggle$), operators.repeat())).pipe(operators.filter(function () { return _this.enabled; }), operators.map(function (value) { return value &&
685
+ (_this.el.nativeElement.hasAttribute('tuiHintPointer') ||
686
+ !utils.tuiIsObscured(_this.el.nativeElement)); }), operators.tap(function (visible) {
687
+ _this.visible = visible;
688
+ }));
689
+ _this.showDelay = _this.options.showDelay;
690
+ _this.hideDelay = _this.options.hideDelay;
691
+ _this.type = 'hint';
692
+ _this.enabled = true;
693
+ return _this;
694
+ }
695
+ TuiHintHoverDirective.prototype.toggle = function (visible) {
696
+ if (visible === void 0) { visible = !this.visible; }
697
+ var _a;
698
+ this.toggle$.next(visible);
699
+ (_a = this.parent) === null || _a === void 0 ? void 0 : _a.toggle(visible);
700
+ };
701
+ return TuiHintHoverDirective;
702
+ }(i1$1.TuiDriver));
703
+ TuiHintHoverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHoverDirective, deps: [{ token: i3.TuiHoveredService }, { token: TUI_HINT_OPTIONS }, { token: i0.ElementRef }, { token: TuiHintHoverDirective, optional: true, skipSelf: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
704
+ TuiHintHoverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintHoverDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: { showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, providers: [i1$1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService], exportAs: ["tuiHintHover"], usesInheritance: true, ngImport: i0__namespace });
705
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHoverDirective, decorators: [{
706
+ type: i0.Directive,
707
+ args: [{
708
+ selector: '[tuiHint]:not(ng-container):not(ng-template)',
709
+ providers: [i1$1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService],
710
+ exportAs: 'tuiHintHover',
711
+ }]
712
+ }], ctorParameters: function () {
713
+ return [{ type: i2__namespace$1.Observable, decorators: [{
714
+ type: i0.Inject,
715
+ args: [i3.TuiHoveredService]
716
+ }] }, { type: undefined, decorators: [{
717
+ type: i0.Inject,
718
+ args: [TUI_HINT_OPTIONS]
719
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
720
+ type: i0.Inject,
721
+ args: [i0.ElementRef]
722
+ }] }, { type: TuiHintHoverDirective, decorators: [{
723
+ type: i0.Optional
724
+ }, {
725
+ type: i0.SkipSelf
726
+ }, {
727
+ type: i0.Inject,
728
+ args: [TuiHintHoverDirective]
729
+ }] }];
730
+ }, propDecorators: { showDelay: [{
731
+ type: i0.Input,
732
+ args: ['tuiHintShowDelay']
733
+ }], hideDelay: [{
734
+ type: i0.Input,
735
+ args: ['tuiHintHideDelay']
736
+ }] } });
591
737
 
592
- var TuiHintPointerDirective = /** @class */ (function (_super) {
593
- __extends(TuiHintPointerDirective, _super);
594
- function TuiHintPointerDirective() {
595
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
596
- _this.currentRect = i3.EMPTY_CLIENT_RECT;
597
- return _this;
598
- }
599
- TuiHintPointerDirective.prototype.onMove = function (_a) {
600
- var clientX = _a.clientX, clientY = _a.clientY;
601
- this.currentRect = i3.tuiPointToClientRect(clientX, clientY);
602
- };
603
- TuiHintPointerDirective.prototype.getClientRect = function () {
604
- return this.currentRect;
605
- };
606
- return TuiHintPointerDirective;
607
- }(TuiHintHoverDirective));
608
- TuiHintPointerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPointerDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
609
- TuiHintPointerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintPointerDirective, selector: "[tuiHint][tuiHintPointer]", host: { listeners: { "mousemove.silent": "onMove($event)" } }, providers: [
610
- i1$1.tuiAsRectAccessor(TuiHintPointerDirective),
611
- i1$1.tuiAsDriver(TuiHintPointerDirective),
612
- ], usesInheritance: true, ngImport: i0__namespace });
613
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPointerDirective, decorators: [{
614
- type: i0.Directive,
615
- args: [{
616
- selector: '[tuiHint][tuiHintPointer]',
617
- providers: [
618
- i1$1.tuiAsRectAccessor(TuiHintPointerDirective),
619
- i1$1.tuiAsDriver(TuiHintPointerDirective),
620
- ],
621
- }]
622
- }], propDecorators: { onMove: [{
623
- type: i0.HostListener,
624
- args: ['mousemove.silent', ['$event']]
625
- }] } });
738
+ var TuiHintPointerDirective = /** @class */ (function (_super) {
739
+ __extends(TuiHintPointerDirective, _super);
740
+ function TuiHintPointerDirective() {
741
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
742
+ _this.currentRect = i3.EMPTY_CLIENT_RECT;
743
+ return _this;
744
+ }
745
+ TuiHintPointerDirective.prototype.onMove = function (_a) {
746
+ var clientX = _a.clientX, clientY = _a.clientY;
747
+ this.currentRect = i3.tuiPointToClientRect(clientX, clientY);
748
+ };
749
+ TuiHintPointerDirective.prototype.getClientRect = function () {
750
+ return this.currentRect;
751
+ };
752
+ return TuiHintPointerDirective;
753
+ }(TuiHintHoverDirective));
754
+ TuiHintPointerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPointerDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
755
+ TuiHintPointerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintPointerDirective, selector: "[tuiHint][tuiHintPointer]", host: { listeners: { "mousemove.silent": "onMove($event)" } }, providers: [
756
+ i1$1.tuiAsRectAccessor(TuiHintPointerDirective),
757
+ i1$1.tuiAsDriver(TuiHintPointerDirective),
758
+ ], usesInheritance: true, ngImport: i0__namespace });
759
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPointerDirective, decorators: [{
760
+ type: i0.Directive,
761
+ args: [{
762
+ selector: '[tuiHint][tuiHintPointer]',
763
+ providers: [
764
+ i1$1.tuiAsRectAccessor(TuiHintPointerDirective),
765
+ i1$1.tuiAsDriver(TuiHintPointerDirective),
766
+ ],
767
+ }]
768
+ }], propDecorators: { onMove: [{
769
+ type: i0.HostListener,
770
+ args: ['mousemove.silent', ['$event']]
771
+ }] } });
626
772
 
627
- var OFFSET = 8;
628
- var ARROW_OFFSET = 22;
629
- var TOP = 0;
630
- var LEFT = 1;
631
- var TuiHintPositionDirective = /** @class */ (function (_super) {
632
- __extends(TuiHintPositionDirective, _super);
633
- function TuiHintPositionDirective(options, viewport, directive, accessors) {
634
- var _this = _super.call(this) || this;
635
- _this.options = options;
636
- _this.viewport = viewport;
637
- _this.directive = directive;
638
- _this.accessors = accessors;
639
- _this.points = constants.TUI_HINT_DIRECTIONS.reduce(function (acc, direction) {
640
- var _c;
641
- return (Object.assign(Object.assign({}, acc), (_c = {}, _c[direction] = [0, 0], _c)));
642
- }, {});
643
- _this.direction = _this.options.direction;
644
- _this.type = 'hint';
645
- return _this;
646
- }
647
- TuiHintPositionDirective.prototype.getPosition = function (_c) {
648
- var _this = this;
649
- var width = _c.width, height = _c.height;
650
- var _a, _b;
651
- var hostRect = (_b = (_a = this.accessor) === null || _a === void 0 ? void 0 : _a.getClientRect()) !== null && _b !== void 0 ? _b : i3.EMPTY_CLIENT_RECT;
652
- var leftCenter = hostRect.left + hostRect.width / 2;
653
- var topCenter = hostRect.top + hostRect.height / 2;
654
- this.points['top-left'][TOP] = hostRect.top - height - OFFSET;
655
- this.points['top-left'][LEFT] = leftCenter - width + ARROW_OFFSET;
656
- this.points.top[TOP] = this.points['top-left'][TOP];
657
- this.points.top[LEFT] = leftCenter - width / 2;
658
- this.points['top-right'][TOP] = this.points['top-left'][TOP];
659
- this.points['top-right'][LEFT] = leftCenter - ARROW_OFFSET;
660
- this.points['bottom-left'][TOP] = hostRect.bottom + OFFSET;
661
- this.points['bottom-left'][LEFT] = this.points['top-left'][LEFT];
662
- this.points.bottom[TOP] = this.points['bottom-left'][TOP];
663
- this.points.bottom[LEFT] = this.points.top[LEFT];
664
- this.points['bottom-right'][TOP] = this.points['bottom-left'][TOP];
665
- this.points['bottom-right'][LEFT] = this.points['top-right'][LEFT];
666
- this.points['left-top'][TOP] = topCenter - height + ARROW_OFFSET;
667
- this.points['left-top'][LEFT] = hostRect.left - width - OFFSET;
668
- this.points.left[TOP] = topCenter - height / 2;
669
- this.points.left[LEFT] = this.points['left-top'][LEFT];
670
- this.points['left-bottom'][TOP] = topCenter - ARROW_OFFSET;
671
- this.points['left-bottom'][LEFT] = this.points['left-top'][LEFT];
672
- this.points['right-top'][TOP] = this.points['left-top'][TOP];
673
- this.points['right-top'][LEFT] = hostRect.right + OFFSET;
674
- this.points.right[TOP] = this.points.left[TOP];
675
- this.points.right[LEFT] = this.points['right-top'][LEFT];
676
- this.points['right-bottom'][TOP] = this.points['left-bottom'][TOP];
677
- this.points['right-bottom'][LEFT] = this.points['right-top'][LEFT];
678
- if (this.checkPosition(this.points[this.direction], width, height)) {
679
- return this.points[this.direction];
680
- }
681
- var direction = constants.TUI_HINT_DIRECTIONS.find(function (direction) { return _this.checkPosition(_this.points[direction], width, height); });
682
- return this.points[direction || this.fallback];
683
- };
684
- Object.defineProperty(TuiHintPositionDirective.prototype, "accessor", {
685
- get: function () {
686
- return i1$1.tuiFallbackRectAccessor('hint')(this.accessors, this.directive);
687
- },
688
- enumerable: false,
689
- configurable: true
690
- });
691
- Object.defineProperty(TuiHintPositionDirective.prototype, "fallback", {
692
- get: function () {
693
- return this.points.top[TOP] >
694
- this.viewport.getClientRect().bottom - this.points.bottom[TOP]
695
- ? 'top'
696
- : 'bottom';
697
- },
698
- enumerable: false,
699
- configurable: true
700
- });
701
- TuiHintPositionDirective.prototype.checkPosition = function (_c, width, height) {
702
- var _d = __read(_c, 2), top = _d[0], left = _d[1];
703
- var viewport = this.viewport.getClientRect();
704
- return (top > OFFSET / 4 &&
705
- left > OFFSET / 4 &&
706
- top + height < viewport.bottom - OFFSET / 4 &&
707
- left + width < viewport.right - OFFSET / 4);
708
- };
709
- return TuiHintPositionDirective;
710
- }(i1$1.TuiPositionAccessor));
711
- TuiHintPositionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPositionDirective, deps: [{ token: TUI_HINT_OPTIONS }, { token: tokens.TUI_VIEWPORT }, { token: TuiHintDirective }, { token: i1$1.TuiRectAccessor }], target: i0__namespace.ɵɵFactoryTarget.Directive });
712
- TuiHintPositionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintPositionDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: { direction: ["tuiHintDirection", "direction"] }, usesInheritance: true, ngImport: i0__namespace });
713
- __decorate([
714
- i3.tuiPure
715
- ], TuiHintPositionDirective.prototype, "accessor", null);
716
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPositionDirective, decorators: [{
717
- type: i0.Directive,
718
- args: [{
719
- selector: '[tuiHint]:not(ng-container):not(ng-template)',
720
- }]
721
- }], ctorParameters: function () {
722
- return [{ type: undefined, decorators: [{
723
- type: i0.Inject,
724
- args: [TUI_HINT_OPTIONS]
725
- }] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
726
- type: i0.Inject,
727
- args: [tokens.TUI_VIEWPORT]
728
- }] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
729
- type: i0.Inject,
730
- args: [TuiHintDirective]
731
- }] }, { type: undefined, decorators: [{
732
- type: i0.Inject,
733
- args: [i1$1.TuiRectAccessor]
734
- }] }];
735
- }, propDecorators: { direction: [{
736
- type: i0.Input,
737
- args: ['tuiHintDirection']
738
- }], accessor: [] } });
773
+ var OFFSET = 8;
774
+ var ARROW_OFFSET = 22;
775
+ var TOP = 0;
776
+ var LEFT = 1;
777
+ var TuiHintPositionDirective = /** @class */ (function (_super) {
778
+ __extends(TuiHintPositionDirective, _super);
779
+ function TuiHintPositionDirective(options, viewport, directive, accessors) {
780
+ var _this = _super.call(this) || this;
781
+ _this.options = options;
782
+ _this.viewport = viewport;
783
+ _this.directive = directive;
784
+ _this.accessors = accessors;
785
+ _this.points = constants.TUI_HINT_DIRECTIONS.reduce(function (acc, direction) {
786
+ var _c;
787
+ return (Object.assign(Object.assign({}, acc), (_c = {}, _c[direction] = [0, 0], _c)));
788
+ }, {});
789
+ _this.direction = _this.options.direction;
790
+ _this.type = 'hint';
791
+ return _this;
792
+ }
793
+ TuiHintPositionDirective.prototype.getPosition = function (_c) {
794
+ var _this = this;
795
+ var width = _c.width, height = _c.height;
796
+ var _a, _b;
797
+ var hostRect = (_b = (_a = this.accessor) === null || _a === void 0 ? void 0 : _a.getClientRect()) !== null && _b !== void 0 ? _b : i3.EMPTY_CLIENT_RECT;
798
+ var leftCenter = hostRect.left + hostRect.width / 2;
799
+ var topCenter = hostRect.top + hostRect.height / 2;
800
+ this.points['top-left'][TOP] = hostRect.top - height - OFFSET;
801
+ this.points['top-left'][LEFT] = leftCenter - width + ARROW_OFFSET;
802
+ this.points.top[TOP] = this.points['top-left'][TOP];
803
+ this.points.top[LEFT] = leftCenter - width / 2;
804
+ this.points['top-right'][TOP] = this.points['top-left'][TOP];
805
+ this.points['top-right'][LEFT] = leftCenter - ARROW_OFFSET;
806
+ this.points['bottom-left'][TOP] = hostRect.bottom + OFFSET;
807
+ this.points['bottom-left'][LEFT] = this.points['top-left'][LEFT];
808
+ this.points.bottom[TOP] = this.points['bottom-left'][TOP];
809
+ this.points.bottom[LEFT] = this.points.top[LEFT];
810
+ this.points['bottom-right'][TOP] = this.points['bottom-left'][TOP];
811
+ this.points['bottom-right'][LEFT] = this.points['top-right'][LEFT];
812
+ this.points['left-top'][TOP] = topCenter - height + ARROW_OFFSET;
813
+ this.points['left-top'][LEFT] = hostRect.left - width - OFFSET;
814
+ this.points.left[TOP] = topCenter - height / 2;
815
+ this.points.left[LEFT] = this.points['left-top'][LEFT];
816
+ this.points['left-bottom'][TOP] = topCenter - ARROW_OFFSET;
817
+ this.points['left-bottom'][LEFT] = this.points['left-top'][LEFT];
818
+ this.points['right-top'][TOP] = this.points['left-top'][TOP];
819
+ this.points['right-top'][LEFT] = hostRect.right + OFFSET;
820
+ this.points.right[TOP] = this.points.left[TOP];
821
+ this.points.right[LEFT] = this.points['right-top'][LEFT];
822
+ this.points['right-bottom'][TOP] = this.points['left-bottom'][TOP];
823
+ this.points['right-bottom'][LEFT] = this.points['right-top'][LEFT];
824
+ if (this.checkPosition(this.points[this.direction], width, height)) {
825
+ return this.points[this.direction];
826
+ }
827
+ var direction = constants.TUI_HINT_DIRECTIONS.find(function (direction) { return _this.checkPosition(_this.points[direction], width, height); });
828
+ return this.points[direction || this.fallback];
829
+ };
830
+ Object.defineProperty(TuiHintPositionDirective.prototype, "accessor", {
831
+ get: function () {
832
+ return i1$1.tuiFallbackRectAccessor('hint')(this.accessors, this.directive);
833
+ },
834
+ enumerable: false,
835
+ configurable: true
836
+ });
837
+ Object.defineProperty(TuiHintPositionDirective.prototype, "fallback", {
838
+ get: function () {
839
+ return this.points.top[TOP] >
840
+ this.viewport.getClientRect().bottom - this.points.bottom[TOP]
841
+ ? 'top'
842
+ : 'bottom';
843
+ },
844
+ enumerable: false,
845
+ configurable: true
846
+ });
847
+ TuiHintPositionDirective.prototype.checkPosition = function (_c, width, height) {
848
+ var _d = __read(_c, 2), top = _d[0], left = _d[1];
849
+ var viewport = this.viewport.getClientRect();
850
+ return (top > OFFSET / 4 &&
851
+ left > OFFSET / 4 &&
852
+ top + height < viewport.bottom - OFFSET / 4 &&
853
+ left + width < viewport.right - OFFSET / 4);
854
+ };
855
+ return TuiHintPositionDirective;
856
+ }(i1$1.TuiPositionAccessor));
857
+ TuiHintPositionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPositionDirective, deps: [{ token: TUI_HINT_OPTIONS }, { token: tokens.TUI_VIEWPORT }, { token: TuiHintDirective }, { token: i1$1.TuiRectAccessor }], target: i0__namespace.ɵɵFactoryTarget.Directive });
858
+ TuiHintPositionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintPositionDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: { direction: ["tuiHintDirection", "direction"] }, usesInheritance: true, ngImport: i0__namespace });
859
+ __decorate([
860
+ i3.tuiPure
861
+ ], TuiHintPositionDirective.prototype, "accessor", null);
862
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPositionDirective, decorators: [{
863
+ type: i0.Directive,
864
+ args: [{
865
+ selector: '[tuiHint]:not(ng-container):not(ng-template)',
866
+ }]
867
+ }], ctorParameters: function () {
868
+ return [{ type: undefined, decorators: [{
869
+ type: i0.Inject,
870
+ args: [TUI_HINT_OPTIONS]
871
+ }] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
872
+ type: i0.Inject,
873
+ args: [tokens.TUI_VIEWPORT]
874
+ }] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
875
+ type: i0.Inject,
876
+ args: [TuiHintDirective]
877
+ }] }, { type: undefined, decorators: [{
878
+ type: i0.Inject,
879
+ args: [i1$1.TuiRectAccessor]
880
+ }] }];
881
+ }, propDecorators: { direction: [{
882
+ type: i0.Input,
883
+ args: ['tuiHintDirection']
884
+ }], accessor: [] } });
739
885
 
740
- var GAP = 4;
741
- var TuiHintComponent = /** @class */ (function () {
742
- function TuiHintComponent(hovered$, position$, destroy$, animation, pointer, accessor, el, polymorpheus, hover, mode, vvs, viewport) {
743
- var _this = this;
744
- var _a;
745
- this.animation = animation;
746
- this.pointer = pointer;
747
- this.accessor = accessor;
748
- this.el = el;
749
- this.polymorpheus = polymorpheus;
750
- this.hover = hover;
751
- this.mode = mode;
752
- this.vvs = vvs;
753
- this.viewport = viewport;
754
- this.appearance = this.polymorpheus.$implicit.appearance || ((_a = this.mode) === null || _a === void 0 ? void 0 : _a.mode);
755
- position$
756
- .pipe(operators.map(function (point) { return _this.vvs.correct(point); }), operators.takeUntil(destroy$))
757
- .subscribe(function (_b) {
758
- var _c = __read(_b, 2), top = _c[0], left = _c[1];
759
- _this.update(top, left);
760
- });
761
- hovered$.pipe(operators.takeUntil(destroy$)).subscribe(function (hover) { return _this.hover.toggle(hover); });
762
- }
763
- Object.defineProperty(TuiHintComponent.prototype, "content", {
764
- get: function () {
765
- return this.polymorpheus.$implicit.content;
766
- },
767
- enumerable: false,
768
- configurable: true
769
- });
770
- Object.defineProperty(TuiHintComponent.prototype, "context", {
771
- get: function () {
772
- return this.polymorpheus.$implicit.context;
773
- },
774
- enumerable: false,
775
- configurable: true
776
- });
777
- TuiHintComponent.prototype.onClick = function (target) {
778
- if ((!target.closest('tui-hint') &&
779
- !this.hover.el.nativeElement.contains(target)) ||
780
- utils.tuiIsObscured(this.hover.el.nativeElement)) {
781
- this.hover.toggle(false);
782
- }
783
- };
784
- TuiHintComponent.prototype.update = function (top, left) {
785
- if (!this.hover.el.nativeElement.isConnected) {
786
- this.hover.toggle(false);
787
- return;
788
- }
789
- var _b = this.el.nativeElement.getBoundingClientRect(), height = _b.height, width = _b.width;
790
- var style = this.el.nativeElement.style;
791
- var rect = this.accessor.getClientRect();
792
- var viewport = this.viewport.getClientRect();
793
- if (rect === i3.EMPTY_CLIENT_RECT) {
794
- return;
795
- }
796
- var safeLeft = i3.tuiClamp(left, GAP, viewport.width - width - GAP);
797
- var _c = __read(this.vvs.correct([
798
- rect.top + rect.height / 2 - top,
799
- rect.left + rect.width / 2 - safeLeft,
800
- ]), 2), beakTop = _c[0], beakLeft = _c[1];
801
- style.top = i3.tuiPx(top);
802
- style.left = i3.tuiPx(safeLeft);
803
- style.setProperty('--top', i3.tuiPx(i3.tuiClamp(beakTop, 0.5, height - 1)));
804
- style.setProperty('--left', i3.tuiPx(i3.tuiClamp(beakLeft, 0.5, width - 1)));
805
- };
806
- return TuiHintComponent;
807
- }());
808
- TuiHintComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintComponent, deps: [{ token: i3.TuiHoveredService }, { token: i2.TuiPositionService }, { token: i3.TuiDestroyService, self: true }, { token: tokens.TUI_ANIMATION_OPTIONS }, { token: TuiHintPointerDirective, optional: true }, { token: i1$1.TuiRectAccessor }, { token: i0.ElementRef }, { token: i1.POLYMORPHEUS_CONTEXT }, { token: TuiHintHoverDirective }, { token: i5.TuiModeDirective, optional: true }, { token: i2.TuiVisualViewportService }, { token: tokens.TUI_VIEWPORT }], target: i0__namespace.ɵɵFactoryTarget.Component });
809
- TuiHintComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintComponent, selector: "tui-hint", host: { listeners: { "document:click": "onClick($event.target)" }, properties: { "@tuiFadeIn": "animation", "class._untouchable": "pointer", "attr.data-appearance": "this.appearance" } }, providers: [
810
- i3.TuiDestroyService,
811
- i2.TuiPositionService,
812
- i3.TuiHoveredService,
813
- i1$1.tuiPositionAccessorFor('hint', TuiHintPositionDirective),
814
- i1$1.tuiRectAccessorFor('hint', TuiHintDirective),
815
- ], ngImport: i0__namespace, template: "\n <ng-content></ng-content>\n <span\n *polymorpheusOutlet=\"content as text; context: context\"\n [innerHTML]=\"text\"\n ></span>\n ", isInline: true, styles: [":host{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-primary);border-radius:var(--tui-radius-l);color:var(--tui-primary-text);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word;line-height:1.25rem}:host:before{content:\"\";position:absolute;top:var(--top);left:var(--left);width:.5rem;height:.5rem;border-radius:.125rem;box-sizing:border-box;background:inherit;transform:translate(-50%,-50%) rotate(45deg)}:host[data-appearance=error]{background:var(--tui-error-fill)}:host[data-appearance=onDark]{background:var(--tui-elevation-02);color:var(--tui-text-01);filter:drop-shadow(0 0 .125rem rgba(0,0,0,.16)) drop-shadow(0 1.5rem 1rem rgba(0,0,0,.03)) drop-shadow(0 .75rem .75rem rgba(0,0,0,.04)) drop-shadow(0 .25rem .375rem rgba(0,0,0,.05))}:host:not([style*=\"top\"]){visibility:hidden}:host._untouchable{pointer-events:none}\n"], directives: [{ type: i1__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [animations.tuiFadeIn], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
816
- __decorate([
817
- i3.tuiPure
818
- ], TuiHintComponent.prototype, "update", null);
819
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintComponent, decorators: [{
820
- type: i0.Component,
821
- args: [{
822
- selector: 'tui-hint',
823
- template: "\n <ng-content></ng-content>\n <span\n *polymorpheusOutlet=\"content as text; context: context\"\n [innerHTML]=\"text\"\n ></span>\n ",
824
- styleUrls: ['./hint.style.less'],
825
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
826
- providers: [
827
- i3.TuiDestroyService,
828
- i2.TuiPositionService,
829
- i3.TuiHoveredService,
830
- i1$1.tuiPositionAccessorFor('hint', TuiHintPositionDirective),
831
- i1$1.tuiRectAccessorFor('hint', TuiHintDirective),
832
- ],
833
- animations: [animations.tuiFadeIn],
834
- host: {
835
- '[@tuiFadeIn]': 'animation',
836
- '[class._untouchable]': 'pointer',
837
- },
838
- }]
839
- }], ctorParameters: function () {
840
- return [{ type: i2__namespace$1.Observable, decorators: [{
841
- type: i0.Inject,
842
- args: [i3.TuiHoveredService]
843
- }] }, { type: i2__namespace$1.Observable, decorators: [{
844
- type: i0.Inject,
845
- args: [i2.TuiPositionService]
846
- }] }, { type: i2__namespace$1.Observable, decorators: [{
847
- type: i0.Self
848
- }, {
849
- type: i0.Inject,
850
- args: [i3.TuiDestroyService]
851
- }] }, { type: undefined, decorators: [{
852
- type: i0.Inject,
853
- args: [tokens.TUI_ANIMATION_OPTIONS]
854
- }] }, { type: undefined, decorators: [{
855
- type: i0.Optional
856
- }, {
857
- type: i0.Inject,
858
- args: [TuiHintPointerDirective]
859
- }] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
860
- type: i0.Inject,
861
- args: [i1$1.TuiRectAccessor]
862
- }] }, { type: i0__namespace.ElementRef, decorators: [{
863
- type: i0.Inject,
864
- args: [i0.ElementRef]
865
- }] }, { type: undefined, decorators: [{
866
- type: i0.Inject,
867
- args: [i1.POLYMORPHEUS_CONTEXT]
868
- }] }, { type: TuiHintHoverDirective, decorators: [{
869
- type: i0.Inject,
870
- args: [TuiHintHoverDirective]
871
- }] }, { type: i5__namespace.TuiModeDirective, decorators: [{
872
- type: i0.Optional
873
- }, {
874
- type: i0.Inject,
875
- args: [i5.TuiModeDirective]
876
- }] }, { type: i2__namespace.TuiVisualViewportService, decorators: [{
877
- type: i0.Inject,
878
- args: [i2.TuiVisualViewportService]
879
- }] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
880
- type: i0.Inject,
881
- args: [tokens.TUI_VIEWPORT]
882
- }] }];
883
- }, propDecorators: { appearance: [{
884
- type: i0.HostBinding,
885
- args: ['attr.data-appearance']
886
- }], onClick: [{
887
- type: i0.HostListener,
888
- args: ['document:click', ['$event.target']]
889
- }], update: [] } });
886
+ var GAP = 4;
887
+ var TuiHintComponent = /** @class */ (function () {
888
+ function TuiHintComponent(hovered$, position$, destroy$, animation, pointer, accessor, el, polymorpheus, hover, mode, vvs, viewport) {
889
+ var _this = this;
890
+ var _a;
891
+ this.animation = animation;
892
+ this.pointer = pointer;
893
+ this.accessor = accessor;
894
+ this.el = el;
895
+ this.polymorpheus = polymorpheus;
896
+ this.hover = hover;
897
+ this.mode = mode;
898
+ this.vvs = vvs;
899
+ this.viewport = viewport;
900
+ this.appearance = this.polymorpheus.$implicit.appearance || ((_a = this.mode) === null || _a === void 0 ? void 0 : _a.mode);
901
+ position$
902
+ .pipe(operators.map(function (point) { return _this.vvs.correct(point); }), operators.takeUntil(destroy$))
903
+ .subscribe(function (_b) {
904
+ var _c = __read(_b, 2), top = _c[0], left = _c[1];
905
+ _this.update(top, left);
906
+ });
907
+ hovered$.pipe(operators.takeUntil(destroy$)).subscribe(function (hover) { return _this.hover.toggle(hover); });
908
+ }
909
+ Object.defineProperty(TuiHintComponent.prototype, "content", {
910
+ get: function () {
911
+ return this.polymorpheus.$implicit.content;
912
+ },
913
+ enumerable: false,
914
+ configurable: true
915
+ });
916
+ Object.defineProperty(TuiHintComponent.prototype, "context", {
917
+ get: function () {
918
+ return this.polymorpheus.$implicit.context;
919
+ },
920
+ enumerable: false,
921
+ configurable: true
922
+ });
923
+ TuiHintComponent.prototype.onClick = function (target) {
924
+ if ((!target.closest('tui-hint') &&
925
+ !this.hover.el.nativeElement.contains(target)) ||
926
+ utils.tuiIsObscured(this.hover.el.nativeElement)) {
927
+ this.hover.toggle(false);
928
+ }
929
+ };
930
+ TuiHintComponent.prototype.update = function (top, left) {
931
+ if (!this.hover.el.nativeElement.isConnected) {
932
+ this.hover.toggle(false);
933
+ return;
934
+ }
935
+ var _b = this.el.nativeElement.getBoundingClientRect(), height = _b.height, width = _b.width;
936
+ var style = this.el.nativeElement.style;
937
+ var rect = this.accessor.getClientRect();
938
+ var viewport = this.viewport.getClientRect();
939
+ if (rect === i3.EMPTY_CLIENT_RECT) {
940
+ return;
941
+ }
942
+ var safeLeft = i3.tuiClamp(left, GAP, viewport.width - width - GAP);
943
+ var _c = __read(this.vvs.correct([
944
+ rect.top + rect.height / 2 - top,
945
+ rect.left + rect.width / 2 - safeLeft,
946
+ ]), 2), beakTop = _c[0], beakLeft = _c[1];
947
+ style.top = i3.tuiPx(top);
948
+ style.left = i3.tuiPx(safeLeft);
949
+ style.setProperty('--top', i3.tuiPx(i3.tuiClamp(beakTop, 0.5, height - 1)));
950
+ style.setProperty('--left', i3.tuiPx(i3.tuiClamp(beakLeft, 0.5, width - 1)));
951
+ };
952
+ return TuiHintComponent;
953
+ }());
954
+ TuiHintComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintComponent, deps: [{ token: i3.TuiHoveredService }, { token: i2.TuiPositionService }, { token: i3.TuiDestroyService, self: true }, { token: tokens.TUI_ANIMATION_OPTIONS }, { token: TuiHintPointerDirective, optional: true }, { token: i1$1.TuiRectAccessor }, { token: i0.ElementRef }, { token: i1.POLYMORPHEUS_CONTEXT }, { token: TuiHintHoverDirective }, { token: i5.TuiModeDirective, optional: true }, { token: i2.TuiVisualViewportService }, { token: tokens.TUI_VIEWPORT }], target: i0__namespace.ɵɵFactoryTarget.Component });
955
+ TuiHintComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintComponent, selector: "tui-hint", host: { listeners: { "document:click": "onClick($event.target)" }, properties: { "@tuiFadeIn": "animation", "class._untouchable": "pointer", "attr.data-appearance": "this.appearance" } }, providers: [
956
+ i3.TuiDestroyService,
957
+ i2.TuiPositionService,
958
+ i3.TuiHoveredService,
959
+ i1$1.tuiPositionAccessorFor('hint', TuiHintPositionDirective),
960
+ i1$1.tuiRectAccessorFor('hint', TuiHintDirective),
961
+ ], ngImport: i0__namespace, template: "\n <ng-content></ng-content>\n <span\n *polymorpheusOutlet=\"content as text; context: context\"\n [innerHTML]=\"text\"\n ></span>\n ", isInline: true, styles: [":host{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-primary);border-radius:var(--tui-radius-l);color:var(--tui-primary-text);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word;line-height:1.25rem}:host:before{content:\"\";position:absolute;top:var(--top);left:var(--left);width:.5rem;height:.5rem;border-radius:.125rem;box-sizing:border-box;background:inherit;transform:translate(-50%,-50%) rotate(45deg)}:host[data-appearance=error]{background:var(--tui-error-fill)}:host[data-appearance=onDark]{background:var(--tui-elevation-02);color:var(--tui-text-01);filter:drop-shadow(0 0 .125rem rgba(0,0,0,.16)) drop-shadow(0 1.5rem 1rem rgba(0,0,0,.03)) drop-shadow(0 .75rem .75rem rgba(0,0,0,.04)) drop-shadow(0 .25rem .375rem rgba(0,0,0,.05))}:host:not([style*=\"top\"]){visibility:hidden}:host._untouchable{pointer-events:none}\n"], directives: [{ type: i1__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [animations.tuiFadeIn], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
962
+ __decorate([
963
+ i3.tuiPure
964
+ ], TuiHintComponent.prototype, "update", null);
965
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintComponent, decorators: [{
966
+ type: i0.Component,
967
+ args: [{
968
+ selector: 'tui-hint',
969
+ template: "\n <ng-content></ng-content>\n <span\n *polymorpheusOutlet=\"content as text; context: context\"\n [innerHTML]=\"text\"\n ></span>\n ",
970
+ styleUrls: ['./hint.style.less'],
971
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
972
+ providers: [
973
+ i3.TuiDestroyService,
974
+ i2.TuiPositionService,
975
+ i3.TuiHoveredService,
976
+ i1$1.tuiPositionAccessorFor('hint', TuiHintPositionDirective),
977
+ i1$1.tuiRectAccessorFor('hint', TuiHintDirective),
978
+ ],
979
+ animations: [animations.tuiFadeIn],
980
+ host: {
981
+ '[@tuiFadeIn]': 'animation',
982
+ '[class._untouchable]': 'pointer',
983
+ },
984
+ }]
985
+ }], ctorParameters: function () {
986
+ return [{ type: i2__namespace$1.Observable, decorators: [{
987
+ type: i0.Inject,
988
+ args: [i3.TuiHoveredService]
989
+ }] }, { type: i2__namespace$1.Observable, decorators: [{
990
+ type: i0.Inject,
991
+ args: [i2.TuiPositionService]
992
+ }] }, { type: i2__namespace$1.Observable, decorators: [{
993
+ type: i0.Self
994
+ }, {
995
+ type: i0.Inject,
996
+ args: [i3.TuiDestroyService]
997
+ }] }, { type: undefined, decorators: [{
998
+ type: i0.Inject,
999
+ args: [tokens.TUI_ANIMATION_OPTIONS]
1000
+ }] }, { type: undefined, decorators: [{
1001
+ type: i0.Optional
1002
+ }, {
1003
+ type: i0.Inject,
1004
+ args: [TuiHintPointerDirective]
1005
+ }] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
1006
+ type: i0.Inject,
1007
+ args: [i1$1.TuiRectAccessor]
1008
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
1009
+ type: i0.Inject,
1010
+ args: [i0.ElementRef]
1011
+ }] }, { type: undefined, decorators: [{
1012
+ type: i0.Inject,
1013
+ args: [i1.POLYMORPHEUS_CONTEXT]
1014
+ }] }, { type: TuiHintHoverDirective, decorators: [{
1015
+ type: i0.Inject,
1016
+ args: [TuiHintHoverDirective]
1017
+ }] }, { type: i5__namespace.TuiModeDirective, decorators: [{
1018
+ type: i0.Optional
1019
+ }, {
1020
+ type: i0.Inject,
1021
+ args: [i5.TuiModeDirective]
1022
+ }] }, { type: i2__namespace.TuiVisualViewportService, decorators: [{
1023
+ type: i0.Inject,
1024
+ args: [i2.TuiVisualViewportService]
1025
+ }] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
1026
+ type: i0.Inject,
1027
+ args: [tokens.TUI_VIEWPORT]
1028
+ }] }];
1029
+ }, propDecorators: { appearance: [{
1030
+ type: i0.HostBinding,
1031
+ args: ['attr.data-appearance']
1032
+ }], onClick: [{
1033
+ type: i0.HostListener,
1034
+ args: ['document:click', ['$event.target']]
1035
+ }], update: [] } });
890
1036
 
891
- var TuiHintDescribeDirective = /** @class */ (function (_super) {
892
- __extends(TuiHintDescribeDirective, _super);
893
- function TuiHintDescribeDirective(zone, doc, el) {
894
- var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
895
- _this.zone = zone;
896
- _this.doc = doc;
897
- _this.el = el;
898
- _this.id$ = new i2$1.ReplaySubject(1);
899
- _this.stream$ = _this.id$.pipe(i3.tuiIfMap(function () { return i3.tuiTypedFromEvent(_this.doc, 'keydown', {
900
- capture: true,
901
- }); }, i3.tuiIsPresent), operators.switchMap(function () { return _this.focused
902
- ? i2$1.of(false)
903
- : i2$1.merge(i3.tuiTypedFromEvent(_this.doc, 'keyup'), i3.tuiTypedFromEvent(_this.element, 'blur')).pipe(operators.map(function () { return _this.focused; })); }), operators.debounce(function (visible) { return (visible ? i2$1.timer(1000) : i2$1.of(null)); }), operators.startWith(false), operators.distinctUntilChanged(), operators.skip(1), i3.tuiZoneOptimized(_this.zone));
904
- _this.tuiHintDescribe = '';
905
- _this.type = 'hint';
906
- return _this;
907
- }
908
- TuiHintDescribeDirective.prototype.ngOnChanges = function () {
909
- this.id$.next(this.tuiHintDescribe);
910
- };
911
- Object.defineProperty(TuiHintDescribeDirective.prototype, "focused", {
912
- get: function () {
913
- return i3.tuiIsNativeFocused(this.element);
914
- },
915
- enumerable: false,
916
- configurable: true
917
- });
918
- Object.defineProperty(TuiHintDescribeDirective.prototype, "element", {
919
- get: function () {
920
- return (this.doc.getElementById(this.tuiHintDescribe || '') || this.el.nativeElement);
921
- },
922
- enumerable: false,
923
- configurable: true
924
- });
925
- return TuiHintDescribeDirective;
926
- }(i1$1.TuiDriver));
927
- TuiHintDescribeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDescribeDirective, deps: [{ token: i0.NgZone }, { token: common.DOCUMENT }, { token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
928
- TuiHintDescribeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDescribeDirective, selector: "[tuiHintDescribe]", inputs: { tuiHintDescribe: "tuiHintDescribe" }, providers: [i1$1.tuiAsDriver(TuiHintDescribeDirective)], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace });
929
- __decorate([
930
- i3.tuiPure
931
- ], TuiHintDescribeDirective.prototype, "element", null);
932
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDescribeDirective, decorators: [{
933
- type: i0.Directive,
934
- args: [{
935
- selector: '[tuiHintDescribe]',
936
- providers: [i1$1.tuiAsDriver(TuiHintDescribeDirective)],
937
- }]
938
- }], ctorParameters: function () {
939
- return [{ type: i0__namespace.NgZone, decorators: [{
940
- type: i0.Inject,
941
- args: [i0.NgZone]
942
- }] }, { type: Document, decorators: [{
943
- type: i0.Inject,
944
- args: [common.DOCUMENT]
945
- }] }, { type: i0__namespace.ElementRef, decorators: [{
946
- type: i0.Inject,
947
- args: [i0.ElementRef]
948
- }] }];
949
- }, propDecorators: { tuiHintDescribe: [{
950
- type: i0.Input
951
- }], element: [] } });
1037
+ var TuiHintDescribeDirective = /** @class */ (function (_super) {
1038
+ __extends(TuiHintDescribeDirective, _super);
1039
+ function TuiHintDescribeDirective(zone, doc, el) {
1040
+ var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
1041
+ _this.zone = zone;
1042
+ _this.doc = doc;
1043
+ _this.el = el;
1044
+ _this.id$ = new i2$1.ReplaySubject(1);
1045
+ _this.stream$ = _this.id$.pipe(i3.tuiIfMap(function () { return i3.tuiTypedFromEvent(_this.doc, 'keydown', {
1046
+ capture: true,
1047
+ }); }, i3.tuiIsPresent), operators.switchMap(function () { return _this.focused
1048
+ ? i2$1.of(false)
1049
+ : i2$1.merge(i3.tuiTypedFromEvent(_this.doc, 'keyup'), i3.tuiTypedFromEvent(_this.element, 'blur')).pipe(operators.map(function () { return _this.focused; })); }), operators.debounce(function (visible) { return (visible ? i2$1.timer(1000) : i2$1.of(null)); }), operators.startWith(false), operators.distinctUntilChanged(), operators.skip(1), i3.tuiZoneOptimized(_this.zone));
1050
+ _this.tuiHintDescribe = '';
1051
+ _this.type = 'hint';
1052
+ return _this;
1053
+ }
1054
+ TuiHintDescribeDirective.prototype.ngOnChanges = function () {
1055
+ this.id$.next(this.tuiHintDescribe);
1056
+ };
1057
+ Object.defineProperty(TuiHintDescribeDirective.prototype, "focused", {
1058
+ get: function () {
1059
+ return i3.tuiIsNativeFocused(this.element);
1060
+ },
1061
+ enumerable: false,
1062
+ configurable: true
1063
+ });
1064
+ Object.defineProperty(TuiHintDescribeDirective.prototype, "element", {
1065
+ get: function () {
1066
+ return (this.doc.getElementById(this.tuiHintDescribe || '') || this.el.nativeElement);
1067
+ },
1068
+ enumerable: false,
1069
+ configurable: true
1070
+ });
1071
+ return TuiHintDescribeDirective;
1072
+ }(i1$1.TuiDriver));
1073
+ TuiHintDescribeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDescribeDirective, deps: [{ token: i0.NgZone }, { token: common.DOCUMENT }, { token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1074
+ TuiHintDescribeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDescribeDirective, selector: "[tuiHintDescribe]", inputs: { tuiHintDescribe: "tuiHintDescribe" }, providers: [i1$1.tuiAsDriver(TuiHintDescribeDirective)], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace });
1075
+ __decorate([
1076
+ i3.tuiPure
1077
+ ], TuiHintDescribeDirective.prototype, "element", null);
1078
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDescribeDirective, decorators: [{
1079
+ type: i0.Directive,
1080
+ args: [{
1081
+ selector: '[tuiHintDescribe]',
1082
+ providers: [i1$1.tuiAsDriver(TuiHintDescribeDirective)],
1083
+ }]
1084
+ }], ctorParameters: function () {
1085
+ return [{ type: i0__namespace.NgZone, decorators: [{
1086
+ type: i0.Inject,
1087
+ args: [i0.NgZone]
1088
+ }] }, { type: Document, decorators: [{
1089
+ type: i0.Inject,
1090
+ args: [common.DOCUMENT]
1091
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
1092
+ type: i0.Inject,
1093
+ args: [i0.ElementRef]
1094
+ }] }];
1095
+ }, propDecorators: { tuiHintDescribe: [{
1096
+ type: i0.Input
1097
+ }], element: [] } });
952
1098
 
953
- var TuiHintDriverDirective = /** @class */ (function (_super) {
954
- __extends(TuiHintDriverDirective, _super);
955
- // TODO: Figure out why this is necessary under nx test runner
956
- function TuiHintDriverDirective(destroy$, drivers, vehicles) {
957
- var _this = _super.call(this, destroy$, drivers, vehicles) || this;
958
- _this.type = 'hint';
959
- return _this;
960
- }
961
- return TuiHintDriverDirective;
962
- }(i1$1.AbstractTuiDriverDirective));
963
- TuiHintDriverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDriverDirective, deps: [{ token: i3.TuiDestroyService, self: true }, { token: i1$1.TuiDriver }, { token: i1$1.TuiVehicle }], target: i0__namespace.ɵɵFactoryTarget.Directive });
964
- TuiHintDriverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDriverDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", providers: [i3.TuiDestroyService], usesInheritance: true, ngImport: i0__namespace });
965
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDriverDirective, decorators: [{
966
- type: i0.Directive,
967
- args: [{
968
- selector: '[tuiHint]:not(ng-container):not(ng-template)',
969
- providers: [i3.TuiDestroyService],
970
- }]
971
- }], ctorParameters: function () {
972
- return [{ type: i2__namespace$1.Observable, decorators: [{
973
- type: i0.Self
974
- }, {
975
- type: i0.Inject,
976
- args: [i3.TuiDestroyService]
977
- }] }, { type: undefined, decorators: [{
978
- type: i0.Inject,
979
- args: [i1$1.TuiDriver]
980
- }] }, { type: undefined, decorators: [{
981
- type: i0.Inject,
982
- args: [i1$1.TuiVehicle]
983
- }] }];
984
- } });
1099
+ var TuiHintDriverDirective = /** @class */ (function (_super) {
1100
+ __extends(TuiHintDriverDirective, _super);
1101
+ // TODO: Figure out why this is necessary under nx test runner
1102
+ function TuiHintDriverDirective(destroy$, drivers, vehicles) {
1103
+ var _this = _super.call(this, destroy$, drivers, vehicles) || this;
1104
+ _this.type = 'hint';
1105
+ return _this;
1106
+ }
1107
+ return TuiHintDriverDirective;
1108
+ }(i1$1.AbstractTuiDriverDirective));
1109
+ TuiHintDriverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDriverDirective, deps: [{ token: i3.TuiDestroyService, self: true }, { token: i1$1.TuiDriver }, { token: i1$1.TuiVehicle }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1110
+ TuiHintDriverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDriverDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", providers: [i3.TuiDestroyService], usesInheritance: true, ngImport: i0__namespace });
1111
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDriverDirective, decorators: [{
1112
+ type: i0.Directive,
1113
+ args: [{
1114
+ selector: '[tuiHint]:not(ng-container):not(ng-template)',
1115
+ providers: [i3.TuiDestroyService],
1116
+ }]
1117
+ }], ctorParameters: function () {
1118
+ return [{ type: i2__namespace$1.Observable, decorators: [{
1119
+ type: i0.Self
1120
+ }, {
1121
+ type: i0.Inject,
1122
+ args: [i3.TuiDestroyService]
1123
+ }] }, { type: undefined, decorators: [{
1124
+ type: i0.Inject,
1125
+ args: [i1$1.TuiDriver]
1126
+ }] }, { type: undefined, decorators: [{
1127
+ type: i0.Inject,
1128
+ args: [i1$1.TuiVehicle]
1129
+ }] }];
1130
+ } });
985
1131
 
986
- var TuiHintHostDirective = /** @class */ (function (_super) {
987
- __extends(TuiHintHostDirective, _super);
988
- function TuiHintHostDirective() {
989
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
990
- _this.type = 'hint';
991
- return _this;
992
- }
993
- TuiHintHostDirective.prototype.getClientRect = function () {
994
- var _a;
995
- return ((_a = this.tuiHintHost) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || i3.EMPTY_CLIENT_RECT;
996
- };
997
- return TuiHintHostDirective;
998
- }(i1$1.TuiRectAccessor));
999
- TuiHintHostDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHostDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
1000
- TuiHintHostDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintHostDirective, selector: "[tuiHint][tuiHintHost]", inputs: { tuiHintHost: "tuiHintHost" }, providers: [i1$1.tuiAsRectAccessor(TuiHintHostDirective)], usesInheritance: true, ngImport: i0__namespace });
1001
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHostDirective, decorators: [{
1002
- type: i0.Directive,
1003
- args: [{
1004
- selector: '[tuiHint][tuiHintHost]',
1005
- providers: [i1$1.tuiAsRectAccessor(TuiHintHostDirective)],
1006
- }]
1007
- }], propDecorators: { tuiHintHost: [{
1008
- type: i0.Input
1009
- }] } });
1132
+ var TuiHintHostDirective = /** @class */ (function (_super) {
1133
+ __extends(TuiHintHostDirective, _super);
1134
+ function TuiHintHostDirective() {
1135
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
1136
+ _this.type = 'hint';
1137
+ return _this;
1138
+ }
1139
+ TuiHintHostDirective.prototype.getClientRect = function () {
1140
+ var _a;
1141
+ return ((_a = this.tuiHintHost) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || i3.EMPTY_CLIENT_RECT;
1142
+ };
1143
+ return TuiHintHostDirective;
1144
+ }(i1$1.TuiRectAccessor));
1145
+ TuiHintHostDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHostDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
1146
+ TuiHintHostDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintHostDirective, selector: "[tuiHint][tuiHintHost]", inputs: { tuiHintHost: "tuiHintHost" }, providers: [i1$1.tuiAsRectAccessor(TuiHintHostDirective)], usesInheritance: true, ngImport: i0__namespace });
1147
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHostDirective, decorators: [{
1148
+ type: i0.Directive,
1149
+ args: [{
1150
+ selector: '[tuiHint][tuiHintHost]',
1151
+ providers: [i1$1.tuiAsRectAccessor(TuiHintHostDirective)],
1152
+ }]
1153
+ }], propDecorators: { tuiHintHost: [{
1154
+ type: i0.Input
1155
+ }] } });
1010
1156
 
1011
- var TuiHintManualDirective = /** @class */ (function (_super) {
1012
- __extends(TuiHintManualDirective, _super);
1013
- function TuiHintManualDirective(hover) {
1014
- var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
1015
- _this.stream$ = new i2$1.BehaviorSubject(false);
1016
- _this.tuiHintManual = false;
1017
- _this.type = 'hint';
1018
- hover.enabled = false;
1019
- return _this;
1020
- }
1021
- TuiHintManualDirective.prototype.ngOnChanges = function () {
1022
- this.stream$.next(this.tuiHintManual);
1023
- };
1024
- return TuiHintManualDirective;
1025
- }(i1$1.TuiDriver));
1026
- TuiHintManualDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintManualDirective, deps: [{ token: TuiHintHoverDirective }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1027
- TuiHintManualDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintManualDirective, selector: "[tuiHint][tuiHintManual]", inputs: { tuiHintManual: "tuiHintManual" }, providers: [i1$1.tuiAsDriver(TuiHintManualDirective)], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace });
1028
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintManualDirective, decorators: [{
1029
- type: i0.Directive,
1030
- args: [{
1031
- selector: '[tuiHint][tuiHintManual]',
1032
- providers: [i1$1.tuiAsDriver(TuiHintManualDirective)],
1033
- }]
1034
- }], ctorParameters: function () {
1035
- return [{ type: TuiHintHoverDirective, decorators: [{
1036
- type: i0.Inject,
1037
- args: [TuiHintHoverDirective]
1038
- }] }];
1039
- }, propDecorators: { tuiHintManual: [{
1040
- type: i0.Input
1041
- }] } });
1157
+ var TuiHintManualDirective = /** @class */ (function (_super) {
1158
+ __extends(TuiHintManualDirective, _super);
1159
+ function TuiHintManualDirective(hover) {
1160
+ var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
1161
+ _this.stream$ = new i2$1.BehaviorSubject(false);
1162
+ _this.tuiHintManual = false;
1163
+ _this.type = 'hint';
1164
+ hover.enabled = false;
1165
+ return _this;
1166
+ }
1167
+ TuiHintManualDirective.prototype.ngOnChanges = function () {
1168
+ this.stream$.next(this.tuiHintManual);
1169
+ };
1170
+ return TuiHintManualDirective;
1171
+ }(i1$1.TuiDriver));
1172
+ TuiHintManualDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintManualDirective, deps: [{ token: TuiHintHoverDirective }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1173
+ TuiHintManualDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintManualDirective, selector: "[tuiHint][tuiHintManual]", inputs: { tuiHintManual: "tuiHintManual" }, providers: [i1$1.tuiAsDriver(TuiHintManualDirective)], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace });
1174
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintManualDirective, decorators: [{
1175
+ type: i0.Directive,
1176
+ args: [{
1177
+ selector: '[tuiHint][tuiHintManual]',
1178
+ providers: [i1$1.tuiAsDriver(TuiHintManualDirective)],
1179
+ }]
1180
+ }], ctorParameters: function () {
1181
+ return [{ type: TuiHintHoverDirective, decorators: [{
1182
+ type: i0.Inject,
1183
+ args: [TuiHintHoverDirective]
1184
+ }] }];
1185
+ }, propDecorators: { tuiHintManual: [{
1186
+ type: i0.Input
1187
+ }] } });
1042
1188
 
1043
- var TuiHintUnstyledComponent = /** @class */ (function () {
1044
- function TuiHintUnstyledComponent(context) {
1045
- this.context = context;
1046
- }
1047
- return TuiHintUnstyledComponent;
1048
- }());
1049
- TuiHintUnstyledComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledComponent, deps: [{ token: i1.POLYMORPHEUS_CONTEXT }], target: i0__namespace.ɵɵFactoryTarget.Component });
1050
- TuiHintUnstyledComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintUnstyledComponent, selector: "ng-component", host: { properties: { "@tuiParentAnimation": "" } }, ngImport: i0__namespace, template: "\n <ng-container\n *polymorpheusOutlet=\"context.$implicit.content; context: context\"\n ></ng-container>\n ", isInline: true, directives: [{ type: i1__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [i3.TUI_PARENT_ANIMATION], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1051
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledComponent, decorators: [{
1052
- type: i0.Component,
1053
- args: [{
1054
- template: "\n <ng-container\n *polymorpheusOutlet=\"context.$implicit.content; context: context\"\n ></ng-container>\n ",
1055
- host: { '[@tuiParentAnimation]': '' },
1056
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1057
- animations: [i3.TUI_PARENT_ANIMATION],
1058
- }]
1059
- }], ctorParameters: function () {
1060
- return [{ type: undefined, decorators: [{
1061
- type: i0.Inject,
1062
- args: [i1.POLYMORPHEUS_CONTEXT]
1063
- }] }];
1064
- } });
1065
- var TuiHintUnstyledDirective = /** @class */ (function () {
1066
- function TuiHintUnstyledDirective(templateRef, hint) {
1067
- hint.component = new i1.PolymorpheusComponent(TuiHintUnstyledComponent);
1068
- hint.content = templateRef;
1069
- }
1070
- return TuiHintUnstyledDirective;
1071
- }());
1072
- TuiHintUnstyledDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledDirective, deps: [{ token: i0.TemplateRef }, { token: TuiHintDirective }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1073
- TuiHintUnstyledDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintUnstyledDirective, selector: "ng-template[tuiHint]", providers: [
1074
- {
1075
- provide: i1.POLYMORPHEUS_CONTEXT,
1076
- useValue: { $implicit: {} },
1077
- },
1078
- ], ngImport: i0__namespace });
1079
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledDirective, decorators: [{
1080
- type: i0.Directive,
1081
- args: [{
1082
- selector: 'ng-template[tuiHint]',
1083
- providers: [
1084
- {
1085
- provide: i1.POLYMORPHEUS_CONTEXT,
1086
- useValue: { $implicit: {} },
1087
- },
1088
- ],
1089
- }]
1090
- }], ctorParameters: function () {
1091
- return [{ type: i0__namespace.TemplateRef, decorators: [{
1092
- type: i0.Inject,
1093
- args: [i0.TemplateRef]
1094
- }] }, { type: TuiHintDirective, decorators: [{
1095
- type: i0.Inject,
1096
- args: [TuiHintDirective]
1097
- }] }];
1098
- } });
1189
+ var TuiHintUnstyledComponent = /** @class */ (function () {
1190
+ function TuiHintUnstyledComponent(context) {
1191
+ this.context = context;
1192
+ }
1193
+ return TuiHintUnstyledComponent;
1194
+ }());
1195
+ TuiHintUnstyledComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledComponent, deps: [{ token: i1.POLYMORPHEUS_CONTEXT }], target: i0__namespace.ɵɵFactoryTarget.Component });
1196
+ TuiHintUnstyledComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintUnstyledComponent, selector: "ng-component", host: { properties: { "@tuiParentAnimation": "" } }, ngImport: i0__namespace, template: "\n <ng-container\n *polymorpheusOutlet=\"context.$implicit.content; context: context\"\n ></ng-container>\n ", isInline: true, directives: [{ type: i1__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [i3.TUI_PARENT_ANIMATION], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1197
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledComponent, decorators: [{
1198
+ type: i0.Component,
1199
+ args: [{
1200
+ template: "\n <ng-container\n *polymorpheusOutlet=\"context.$implicit.content; context: context\"\n ></ng-container>\n ",
1201
+ host: { '[@tuiParentAnimation]': '' },
1202
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1203
+ animations: [i3.TUI_PARENT_ANIMATION],
1204
+ }]
1205
+ }], ctorParameters: function () {
1206
+ return [{ type: undefined, decorators: [{
1207
+ type: i0.Inject,
1208
+ args: [i1.POLYMORPHEUS_CONTEXT]
1209
+ }] }];
1210
+ } });
1211
+ var TuiHintUnstyledDirective = /** @class */ (function () {
1212
+ function TuiHintUnstyledDirective(templateRef, hint) {
1213
+ hint.component = new i1.PolymorpheusComponent(TuiHintUnstyledComponent);
1214
+ hint.content = templateRef;
1215
+ }
1216
+ return TuiHintUnstyledDirective;
1217
+ }());
1218
+ TuiHintUnstyledDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledDirective, deps: [{ token: i0.TemplateRef }, { token: TuiHintDirective }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1219
+ TuiHintUnstyledDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintUnstyledDirective, selector: "ng-template[tuiHint]", providers: [
1220
+ {
1221
+ provide: i1.POLYMORPHEUS_CONTEXT,
1222
+ useValue: { $implicit: {} },
1223
+ },
1224
+ ], ngImport: i0__namespace });
1225
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledDirective, decorators: [{
1226
+ type: i0.Directive,
1227
+ args: [{
1228
+ selector: 'ng-template[tuiHint]',
1229
+ providers: [
1230
+ {
1231
+ provide: i1.POLYMORPHEUS_CONTEXT,
1232
+ useValue: { $implicit: {} },
1233
+ },
1234
+ ],
1235
+ }]
1236
+ }], ctorParameters: function () {
1237
+ return [{ type: i0__namespace.TemplateRef, decorators: [{
1238
+ type: i0.Inject,
1239
+ args: [i0.TemplateRef]
1240
+ }] }, { type: TuiHintDirective, decorators: [{
1241
+ type: i0.Inject,
1242
+ args: [TuiHintDirective]
1243
+ }] }];
1244
+ } });
1099
1245
 
1100
- var TuiHintModule = /** @class */ (function () {
1101
- function TuiHintModule() {
1102
- }
1103
- return TuiHintModule;
1104
- }());
1105
- TuiHintModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1106
- TuiHintModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, declarations: [TuiHintComponent,
1107
- TuiHintDirective,
1108
- TuiHintDriverDirective,
1109
- TuiHintHostDirective,
1110
- TuiHintHoverDirective,
1111
- TuiHintManualDirective,
1112
- TuiHintPointerDirective,
1113
- TuiHintDescribeDirective,
1114
- TuiHintPositionDirective,
1115
- TuiHintOptionsDirective,
1116
- TuiHintUnstyledComponent,
1117
- TuiHintUnstyledDirective], imports: [common.CommonModule, i1.PolymorpheusModule], exports: [TuiHintComponent,
1118
- TuiHintDirective,
1119
- TuiHintDriverDirective,
1120
- TuiHintHostDirective,
1121
- TuiHintHoverDirective,
1122
- TuiHintManualDirective,
1123
- TuiHintPointerDirective,
1124
- TuiHintDescribeDirective,
1125
- TuiHintPositionDirective,
1126
- TuiHintOptionsDirective,
1127
- TuiHintUnstyledDirective] });
1128
- TuiHintModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, imports: [[common.CommonModule, i1.PolymorpheusModule]] });
1129
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, decorators: [{
1130
- type: i0.NgModule,
1131
- args: [{
1132
- imports: [common.CommonModule, i1.PolymorpheusModule],
1133
- declarations: [
1134
- TuiHintComponent,
1135
- TuiHintDirective,
1136
- TuiHintDriverDirective,
1137
- TuiHintHostDirective,
1138
- TuiHintHoverDirective,
1139
- TuiHintManualDirective,
1140
- TuiHintPointerDirective,
1141
- TuiHintDescribeDirective,
1142
- TuiHintPositionDirective,
1143
- TuiHintOptionsDirective,
1144
- TuiHintUnstyledComponent,
1145
- TuiHintUnstyledDirective,
1146
- ],
1147
- exports: [
1148
- TuiHintComponent,
1149
- TuiHintDirective,
1150
- TuiHintDriverDirective,
1151
- TuiHintHostDirective,
1152
- TuiHintHoverDirective,
1153
- TuiHintManualDirective,
1154
- TuiHintPointerDirective,
1155
- TuiHintDescribeDirective,
1156
- TuiHintPositionDirective,
1157
- TuiHintOptionsDirective,
1158
- TuiHintUnstyledDirective,
1159
- ],
1160
- }]
1161
- }] });
1246
+ var TuiHintModule = /** @class */ (function () {
1247
+ function TuiHintModule() {
1248
+ }
1249
+ return TuiHintModule;
1250
+ }());
1251
+ TuiHintModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1252
+ TuiHintModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, declarations: [TuiHintComponent,
1253
+ TuiHintDirective,
1254
+ TuiHintDriverDirective,
1255
+ TuiHintHostDirective,
1256
+ TuiHintHoverDirective,
1257
+ TuiHintManualDirective,
1258
+ TuiHintPointerDirective,
1259
+ TuiHintDescribeDirective,
1260
+ TuiHintPositionDirective,
1261
+ TuiHintOptionsDirective,
1262
+ TuiHintUnstyledComponent,
1263
+ TuiHintUnstyledDirective], imports: [common.CommonModule, i1.PolymorpheusModule], exports: [TuiHintComponent,
1264
+ TuiHintDirective,
1265
+ TuiHintDriverDirective,
1266
+ TuiHintHostDirective,
1267
+ TuiHintHoverDirective,
1268
+ TuiHintManualDirective,
1269
+ TuiHintPointerDirective,
1270
+ TuiHintDescribeDirective,
1271
+ TuiHintPositionDirective,
1272
+ TuiHintOptionsDirective,
1273
+ TuiHintUnstyledDirective] });
1274
+ TuiHintModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, imports: [[common.CommonModule, i1.PolymorpheusModule]] });
1275
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, decorators: [{
1276
+ type: i0.NgModule,
1277
+ args: [{
1278
+ imports: [common.CommonModule, i1.PolymorpheusModule],
1279
+ declarations: [
1280
+ TuiHintComponent,
1281
+ TuiHintDirective,
1282
+ TuiHintDriverDirective,
1283
+ TuiHintHostDirective,
1284
+ TuiHintHoverDirective,
1285
+ TuiHintManualDirective,
1286
+ TuiHintPointerDirective,
1287
+ TuiHintDescribeDirective,
1288
+ TuiHintPositionDirective,
1289
+ TuiHintOptionsDirective,
1290
+ TuiHintUnstyledComponent,
1291
+ TuiHintUnstyledDirective,
1292
+ ],
1293
+ exports: [
1294
+ TuiHintComponent,
1295
+ TuiHintDirective,
1296
+ TuiHintDriverDirective,
1297
+ TuiHintHostDirective,
1298
+ TuiHintHoverDirective,
1299
+ TuiHintManualDirective,
1300
+ TuiHintPointerDirective,
1301
+ TuiHintDescribeDirective,
1302
+ TuiHintPositionDirective,
1303
+ TuiHintOptionsDirective,
1304
+ TuiHintUnstyledDirective,
1305
+ ],
1306
+ }]
1307
+ }] });
1162
1308
 
1163
- /**
1164
- * Generated bundle index. Do not edit.
1165
- */
1309
+ /**
1310
+ * Generated bundle index. Do not edit.
1311
+ */
1166
1312
 
1167
- exports.TUI_HINT_COMPONENT = TUI_HINT_COMPONENT;
1168
- exports.TUI_HINT_DEFAULT_OPTIONS = TUI_HINT_DEFAULT_OPTIONS;
1169
- exports.TUI_HINT_OPTIONS = TUI_HINT_OPTIONS;
1170
- exports.TuiHintComponent = TuiHintComponent;
1171
- exports.TuiHintDescribeDirective = TuiHintDescribeDirective;
1172
- exports.TuiHintDirective = TuiHintDirective;
1173
- exports.TuiHintDriverDirective = TuiHintDriverDirective;
1174
- exports.TuiHintHostDirective = TuiHintHostDirective;
1175
- exports.TuiHintHoverDirective = TuiHintHoverDirective;
1176
- exports.TuiHintManualDirective = TuiHintManualDirective;
1177
- exports.TuiHintModule = TuiHintModule;
1178
- exports.TuiHintOptionsDirective = TuiHintOptionsDirective;
1179
- exports.TuiHintPointerDirective = TuiHintPointerDirective;
1180
- exports.TuiHintPositionDirective = TuiHintPositionDirective;
1181
- exports.TuiHintUnstyledComponent = TuiHintUnstyledComponent;
1182
- exports.TuiHintUnstyledDirective = TuiHintUnstyledDirective;
1183
- exports.tuiHintOptionsProvider = tuiHintOptionsProvider;
1313
+ exports.TUI_HINT_COMPONENT = TUI_HINT_COMPONENT;
1314
+ exports.TUI_HINT_DEFAULT_OPTIONS = TUI_HINT_DEFAULT_OPTIONS;
1315
+ exports.TUI_HINT_OPTIONS = TUI_HINT_OPTIONS;
1316
+ exports.TuiHintComponent = TuiHintComponent;
1317
+ exports.TuiHintDescribeDirective = TuiHintDescribeDirective;
1318
+ exports.TuiHintDirective = TuiHintDirective;
1319
+ exports.TuiHintDriverDirective = TuiHintDriverDirective;
1320
+ exports.TuiHintHostDirective = TuiHintHostDirective;
1321
+ exports.TuiHintHoverDirective = TuiHintHoverDirective;
1322
+ exports.TuiHintManualDirective = TuiHintManualDirective;
1323
+ exports.TuiHintModule = TuiHintModule;
1324
+ exports.TuiHintOptionsDirective = TuiHintOptionsDirective;
1325
+ exports.TuiHintPointerDirective = TuiHintPointerDirective;
1326
+ exports.TuiHintPositionDirective = TuiHintPositionDirective;
1327
+ exports.TuiHintUnstyledComponent = TuiHintUnstyledComponent;
1328
+ exports.TuiHintUnstyledDirective = TuiHintUnstyledDirective;
1329
+ exports.tuiHintOptionsProvider = tuiHintOptionsProvider;
1184
1330
 
1185
- Object.defineProperty(exports, '__esModule', { value: true });
1331
+ Object.defineProperty(exports, '__esModule', { value: true });
1186
1332
 
1187
1333
  }));
1188
1334
  //# sourceMappingURL=taiga-ui-core-directives-hint.umd.js.map