@taiga-ui/core 3.59.0 → 3.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/bundles/taiga-ui-core-abstract.umd.js +671 -525
  2. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-core-components-alert.umd.js +152 -6
  4. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
  5. package/bundles/taiga-ui-core-components-button.umd.js +668 -522
  6. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-data-list.umd.js +819 -673
  8. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-dialog.umd.js +152 -6
  10. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +933 -787
  12. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +3 -4
  14. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +605 -459
  16. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +1175 -1029
  18. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-root.umd.js +605 -459
  20. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  21. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +152 -6
  22. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  23. package/bundles/taiga-ui-core-components-svg.umd.js +152 -6
  24. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  25. package/bundles/taiga-ui-core-components-theme-night.umd.js +520 -374
  26. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  27. package/bundles/taiga-ui-core-components-tooltip.umd.js +595 -449
  28. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  29. package/bundles/taiga-ui-core-directives-dropdown.umd.js +1506 -1360
  30. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  31. package/bundles/taiga-ui-core-directives-hint.umd.js +1287 -1141
  32. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  33. package/bundles/taiga-ui-core-directives-mode.umd.js +521 -375
  34. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  35. package/bundles/taiga-ui-core-directives-number-format.umd.js +543 -397
  36. package/bundles/taiga-ui-core-directives-number-format.umd.js.map +1 -1
  37. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +152 -6
  38. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  39. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js +530 -384
  40. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js.map +1 -1
  41. package/bundles/taiga-ui-core-services.umd.js +780 -634
  42. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  43. package/bundles/taiga-ui-core-tokens.umd.js +152 -6
  44. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  45. package/bundles/taiga-ui-core-utils-format.umd.js +152 -6
  46. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  47. package/bundles/taiga-ui-core-utils-mask.umd.js +152 -6
  48. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  49. package/components/primitive-calendar/primitive-calendar.component.d.ts +1 -1
  50. package/constants/cache-basting-payload.d.ts +1 -1
  51. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +4 -4
  52. package/esm2015/components/root/root.component.js +1 -1
  53. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +3 -3
  54. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  55. package/fesm2015/taiga-ui-core-components-root.js +1 -1
  56. package/package.json +5 -5
@@ -1,1169 +1,1315 @@
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('@angular/common'), require('@taiga-ui/core/constants')) :
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', '@angular/common', '@taiga-ui/core/constants'], 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.ng.common, global["taiga-ui"].core.constants));
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('@angular/common'), require('@taiga-ui/core/constants')) :
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', '@angular/common', '@taiga-ui/core/constants'], 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.ng.common, global["taiga-ui"].core.constants));
5
5
  })(this, (function (exports, i0, i3, i3$1, animations, i5, i2, tokens, utils, i1, operators, i2$1, common, constants) { '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 i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$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 i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$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, "appearance", {
443
- get: function () {
444
- var _a;
445
- return (_a = this.tuiHintAppearance) !== null && _a !== void 0 ? _a : this.options.appearance;
446
- },
447
- enumerable: false,
448
- configurable: true
449
- });
450
- TuiHintDirective.prototype.ngOnChanges = function () {
451
- if (!this.content) {
452
- this.toggle(false);
453
- }
454
- };
455
- TuiHintDirective.prototype.ngOnDestroy = function () {
456
- this.toggle(false);
457
- };
458
- TuiHintDirective.prototype.getClientRect = function () {
459
- return this.el.nativeElement.getBoundingClientRect();
460
- };
461
- TuiHintDirective.prototype.toggle = function (show) {
462
- if (show && this.content) {
463
- this.hintService.add(this);
464
- }
465
- else {
466
- this.hintService.remove(this);
467
- }
468
- };
469
- return TuiHintDirective;
470
- }());
471
- 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 });
472
- TuiHintDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: { content: ["tuiHint", "content"], context: ["tuiHintContext", "context"], tuiHintAppearance: "tuiHintAppearance" }, providers: [
473
- i3$1.tuiAsRectAccessor(TuiHintDirective),
474
- i3$1.tuiAsVehicle(TuiHintDirective),
475
- {
476
- provide: i1.PolymorpheusComponent,
477
- deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
478
- useClass: i1.PolymorpheusComponent,
479
- },
480
- ], usesOnChanges: true, ngImport: i0__namespace });
481
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDirective, decorators: [{
482
- type: i0.Directive,
483
- args: [{
484
- selector: '[tuiHint]:not(ng-container):not(ng-template)',
485
- providers: [
486
- i3$1.tuiAsRectAccessor(TuiHintDirective),
487
- i3$1.tuiAsVehicle(TuiHintDirective),
488
- {
489
- provide: i1.PolymorpheusComponent,
490
- deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
491
- useClass: i1.PolymorpheusComponent,
492
- },
493
- ],
494
- }]
495
- }], ctorParameters: function () {
496
- return [{ type: i0__namespace.ElementRef, decorators: [{
497
- type: i0.Inject,
498
- args: [i0.ElementRef]
499
- }] }, { type: i1__namespace.PolymorpheusComponent, decorators: [{
500
- type: i0.Inject,
501
- args: [i1.PolymorpheusComponent]
502
- }] }, { type: i2__namespace.TuiHintService, decorators: [{
503
- type: i0.Inject,
504
- args: [i2.TuiHintService]
505
- }] }, { type: undefined, decorators: [{
506
- type: i0.Inject,
507
- args: [TUI_HINT_OPTIONS]
508
- }] }, { type: i3__namespace.TuiActiveZoneDirective, decorators: [{
509
- type: i0.Optional
510
- }, {
511
- type: i0.Inject,
512
- args: [i3.TuiActiveZoneDirective]
513
- }] }];
514
- }, propDecorators: { content: [{
515
- type: i0.Input,
516
- args: ['tuiHint']
517
- }], context: [{
518
- type: i0.Input,
519
- args: ['tuiHintContext']
520
- }], tuiHintAppearance: [{
521
- type: i0.Input
522
- }] } });
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, "appearance", {
589
+ get: function () {
590
+ var _a;
591
+ return (_a = this.tuiHintAppearance) !== null && _a !== void 0 ? _a : this.options.appearance;
592
+ },
593
+ enumerable: false,
594
+ configurable: true
595
+ });
596
+ TuiHintDirective.prototype.ngOnChanges = function () {
597
+ if (!this.content) {
598
+ this.toggle(false);
599
+ }
600
+ };
601
+ TuiHintDirective.prototype.ngOnDestroy = function () {
602
+ this.toggle(false);
603
+ };
604
+ TuiHintDirective.prototype.getClientRect = function () {
605
+ return this.el.nativeElement.getBoundingClientRect();
606
+ };
607
+ TuiHintDirective.prototype.toggle = function (show) {
608
+ if (show && this.content) {
609
+ this.hintService.add(this);
610
+ }
611
+ else {
612
+ this.hintService.remove(this);
613
+ }
614
+ };
615
+ return TuiHintDirective;
616
+ }());
617
+ 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 });
618
+ TuiHintDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: { content: ["tuiHint", "content"], context: ["tuiHintContext", "context"], tuiHintAppearance: "tuiHintAppearance" }, providers: [
619
+ i3$1.tuiAsRectAccessor(TuiHintDirective),
620
+ i3$1.tuiAsVehicle(TuiHintDirective),
621
+ {
622
+ provide: i1.PolymorpheusComponent,
623
+ deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
624
+ useClass: i1.PolymorpheusComponent,
625
+ },
626
+ ], usesOnChanges: true, ngImport: i0__namespace });
627
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDirective, decorators: [{
628
+ type: i0.Directive,
629
+ args: [{
630
+ selector: '[tuiHint]:not(ng-container):not(ng-template)',
631
+ providers: [
632
+ i3$1.tuiAsRectAccessor(TuiHintDirective),
633
+ i3$1.tuiAsVehicle(TuiHintDirective),
634
+ {
635
+ provide: i1.PolymorpheusComponent,
636
+ deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
637
+ useClass: i1.PolymorpheusComponent,
638
+ },
639
+ ],
640
+ }]
641
+ }], ctorParameters: function () {
642
+ return [{ type: i0__namespace.ElementRef, decorators: [{
643
+ type: i0.Inject,
644
+ args: [i0.ElementRef]
645
+ }] }, { type: i1__namespace.PolymorpheusComponent, decorators: [{
646
+ type: i0.Inject,
647
+ args: [i1.PolymorpheusComponent]
648
+ }] }, { type: i2__namespace.TuiHintService, decorators: [{
649
+ type: i0.Inject,
650
+ args: [i2.TuiHintService]
651
+ }] }, { type: undefined, decorators: [{
652
+ type: i0.Inject,
653
+ args: [TUI_HINT_OPTIONS]
654
+ }] }, { type: i3__namespace.TuiActiveZoneDirective, decorators: [{
655
+ type: i0.Optional
656
+ }, {
657
+ type: i0.Inject,
658
+ args: [i3.TuiActiveZoneDirective]
659
+ }] }];
660
+ }, propDecorators: { content: [{
661
+ type: i0.Input,
662
+ args: ['tuiHint']
663
+ }], context: [{
664
+ type: i0.Input,
665
+ args: ['tuiHintContext']
666
+ }], tuiHintAppearance: [{
667
+ type: i0.Input
668
+ }] } });
523
669
 
524
- var TuiHintHoverDirective = /** @class */ (function (_super) {
525
- __extends(TuiHintHoverDirective, _super);
526
- function TuiHintHoverDirective(hovered$, options, el) {
527
- var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
528
- _this.hovered$ = hovered$;
529
- _this.options = options;
530
- _this.el = el;
531
- _this.visible = false;
532
- _this.toggle$ = new i2$1.Subject();
533
- _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 && !utils.tuiIsObscured(_this.el.nativeElement); }), operators.tap(function (visible) {
534
- _this.visible = visible;
535
- }));
536
- _this.showDelay = _this.options.showDelay;
537
- _this.hideDelay = _this.options.hideDelay;
538
- _this.type = 'hint';
539
- _this.enabled = true;
540
- return _this;
541
- }
542
- TuiHintHoverDirective.prototype.toggle = function (visible) {
543
- if (visible === void 0) { visible = !this.visible; }
544
- this.toggle$.next(visible);
545
- };
546
- return TuiHintHoverDirective;
547
- }(i3$1.TuiDriver));
548
- 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 }], target: i0__namespace.ɵɵFactoryTarget.Directive });
549
- 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: [i3$1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService], exportAs: ["tuiHintHover"], usesInheritance: true, ngImport: i0__namespace });
550
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHoverDirective, decorators: [{
551
- type: i0.Directive,
552
- args: [{
553
- selector: '[tuiHint]:not(ng-container):not(ng-template)',
554
- providers: [i3$1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService],
555
- exportAs: 'tuiHintHover',
556
- }]
557
- }], ctorParameters: function () {
558
- return [{ type: i2__namespace$1.Observable, decorators: [{
559
- type: i0.Inject,
560
- args: [i3.TuiHoveredService]
561
- }] }, { type: undefined, decorators: [{
562
- type: i0.Inject,
563
- args: [TUI_HINT_OPTIONS]
564
- }] }, { type: i0__namespace.ElementRef, decorators: [{
565
- type: i0.Inject,
566
- args: [i0.ElementRef]
567
- }] }];
568
- }, propDecorators: { showDelay: [{
569
- type: i0.Input,
570
- args: ['tuiHintShowDelay']
571
- }], hideDelay: [{
572
- type: i0.Input,
573
- args: ['tuiHintHideDelay']
574
- }] } });
670
+ var TuiHintHoverDirective = /** @class */ (function (_super) {
671
+ __extends(TuiHintHoverDirective, _super);
672
+ function TuiHintHoverDirective(hovered$, options, el) {
673
+ var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
674
+ _this.hovered$ = hovered$;
675
+ _this.options = options;
676
+ _this.el = el;
677
+ _this.visible = false;
678
+ _this.toggle$ = new i2$1.Subject();
679
+ _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 && !utils.tuiIsObscured(_this.el.nativeElement); }), operators.tap(function (visible) {
680
+ _this.visible = visible;
681
+ }));
682
+ _this.showDelay = _this.options.showDelay;
683
+ _this.hideDelay = _this.options.hideDelay;
684
+ _this.type = 'hint';
685
+ _this.enabled = true;
686
+ return _this;
687
+ }
688
+ TuiHintHoverDirective.prototype.toggle = function (visible) {
689
+ if (visible === void 0) { visible = !this.visible; }
690
+ this.toggle$.next(visible);
691
+ };
692
+ return TuiHintHoverDirective;
693
+ }(i3$1.TuiDriver));
694
+ 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 }], target: i0__namespace.ɵɵFactoryTarget.Directive });
695
+ 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: [i3$1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService], exportAs: ["tuiHintHover"], usesInheritance: true, ngImport: i0__namespace });
696
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHoverDirective, decorators: [{
697
+ type: i0.Directive,
698
+ args: [{
699
+ selector: '[tuiHint]:not(ng-container):not(ng-template)',
700
+ providers: [i3$1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService],
701
+ exportAs: 'tuiHintHover',
702
+ }]
703
+ }], ctorParameters: function () {
704
+ return [{ type: i2__namespace$1.Observable, decorators: [{
705
+ type: i0.Inject,
706
+ args: [i3.TuiHoveredService]
707
+ }] }, { type: undefined, decorators: [{
708
+ type: i0.Inject,
709
+ args: [TUI_HINT_OPTIONS]
710
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
711
+ type: i0.Inject,
712
+ args: [i0.ElementRef]
713
+ }] }];
714
+ }, propDecorators: { showDelay: [{
715
+ type: i0.Input,
716
+ args: ['tuiHintShowDelay']
717
+ }], hideDelay: [{
718
+ type: i0.Input,
719
+ args: ['tuiHintHideDelay']
720
+ }] } });
575
721
 
576
- var TuiHintPointerDirective = /** @class */ (function (_super) {
577
- __extends(TuiHintPointerDirective, _super);
578
- function TuiHintPointerDirective() {
579
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
580
- _this.currentRect = i3.EMPTY_CLIENT_RECT;
581
- return _this;
582
- }
583
- TuiHintPointerDirective.prototype.onMove = function (_a) {
584
- var clientX = _a.clientX, clientY = _a.clientY;
585
- this.currentRect = i3.tuiPointToClientRect(clientX, clientY);
586
- };
587
- TuiHintPointerDirective.prototype.getClientRect = function () {
588
- return this.currentRect;
589
- };
590
- return TuiHintPointerDirective;
591
- }(TuiHintHoverDirective));
592
- 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 });
593
- 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: [
594
- i3$1.tuiAsRectAccessor(TuiHintPointerDirective),
595
- i3$1.tuiAsDriver(TuiHintPointerDirective),
596
- ], usesInheritance: true, ngImport: i0__namespace });
597
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPointerDirective, decorators: [{
598
- type: i0.Directive,
599
- args: [{
600
- selector: '[tuiHint][tuiHintPointer]',
601
- providers: [
602
- i3$1.tuiAsRectAccessor(TuiHintPointerDirective),
603
- i3$1.tuiAsDriver(TuiHintPointerDirective),
604
- ],
605
- }]
606
- }], propDecorators: { onMove: [{
607
- type: i0.HostListener,
608
- args: ['mousemove.silent', ['$event']]
609
- }] } });
722
+ var TuiHintPointerDirective = /** @class */ (function (_super) {
723
+ __extends(TuiHintPointerDirective, _super);
724
+ function TuiHintPointerDirective() {
725
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
726
+ _this.currentRect = i3.EMPTY_CLIENT_RECT;
727
+ return _this;
728
+ }
729
+ TuiHintPointerDirective.prototype.onMove = function (_a) {
730
+ var clientX = _a.clientX, clientY = _a.clientY;
731
+ this.currentRect = i3.tuiPointToClientRect(clientX, clientY);
732
+ };
733
+ TuiHintPointerDirective.prototype.getClientRect = function () {
734
+ return this.currentRect;
735
+ };
736
+ return TuiHintPointerDirective;
737
+ }(TuiHintHoverDirective));
738
+ 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 });
739
+ 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: [
740
+ i3$1.tuiAsRectAccessor(TuiHintPointerDirective),
741
+ i3$1.tuiAsDriver(TuiHintPointerDirective),
742
+ ], usesInheritance: true, ngImport: i0__namespace });
743
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPointerDirective, decorators: [{
744
+ type: i0.Directive,
745
+ args: [{
746
+ selector: '[tuiHint][tuiHintPointer]',
747
+ providers: [
748
+ i3$1.tuiAsRectAccessor(TuiHintPointerDirective),
749
+ i3$1.tuiAsDriver(TuiHintPointerDirective),
750
+ ],
751
+ }]
752
+ }], propDecorators: { onMove: [{
753
+ type: i0.HostListener,
754
+ args: ['mousemove.silent', ['$event']]
755
+ }] } });
610
756
 
611
- var GAP = 4;
612
- var TuiHintComponent = /** @class */ (function () {
613
- function TuiHintComponent(hovered$, position$, destroy$, animation, pointer, accessor, el, polymorpheus, hover, mode, visualViewportService, viewport) {
614
- var _this = this;
615
- var _a;
616
- this.animation = animation;
617
- this.pointer = pointer;
618
- this.accessor = accessor;
619
- this.el = el;
620
- this.polymorpheus = polymorpheus;
621
- this.hover = hover;
622
- this.mode = mode;
623
- this.visualViewportService = visualViewportService;
624
- this.viewport = viewport;
625
- this.appearance = this.polymorpheus.$implicit.appearance || ((_a = this.mode) === null || _a === void 0 ? void 0 : _a.mode);
626
- position$
627
- .pipe(operators.map(function (point) { return _this.visualViewportService.correct(point); }), operators.takeUntil(destroy$))
628
- .subscribe(function (_b) {
629
- var _c = __read(_b, 2), top = _c[0], left = _c[1];
630
- _this.update(top, left);
631
- });
632
- hovered$.pipe(operators.takeUntil(destroy$)).subscribe(function (hover) { return _this.hover.toggle(hover); });
633
- }
634
- Object.defineProperty(TuiHintComponent.prototype, "content", {
635
- get: function () {
636
- return this.polymorpheus.$implicit.content;
637
- },
638
- enumerable: false,
639
- configurable: true
640
- });
641
- Object.defineProperty(TuiHintComponent.prototype, "context", {
642
- get: function () {
643
- return this.polymorpheus.$implicit.context;
644
- },
645
- enumerable: false,
646
- configurable: true
647
- });
648
- TuiHintComponent.prototype.onClick = function (target) {
649
- if ((!this.el.nativeElement.contains(target) &&
650
- !this.hover.el.nativeElement.contains(target)) ||
651
- utils.tuiIsObscured(this.hover.el.nativeElement)) {
652
- this.hover.toggle(false);
653
- }
654
- };
655
- TuiHintComponent.prototype.update = function (top, left) {
656
- var _b = this.el.nativeElement.getBoundingClientRect(), height = _b.height, width = _b.width;
657
- var style = this.el.nativeElement.style;
658
- var rect = this.accessor.getClientRect();
659
- var viewport = this.viewport.getClientRect();
660
- if (rect === i3.EMPTY_CLIENT_RECT) {
661
- return;
662
- }
663
- var safeLeft = i3.tuiClamp(left, GAP, viewport.width - width - GAP);
664
- var _c = __read(this.visualViewportService.correct([
665
- rect.top + rect.height / 2 - top,
666
- rect.left + rect.width / 2 - safeLeft,
667
- ]), 2), beakTop = _c[0], beakLeft = _c[1];
668
- style.top = i3.tuiPx(top);
669
- style.left = i3.tuiPx(safeLeft);
670
- style.setProperty('--top', i3.tuiPx(i3.tuiClamp(beakTop, 0.5, height - 1)));
671
- style.setProperty('--left', i3.tuiPx(i3.tuiClamp(beakLeft, 0.5, width - 1)));
672
- };
673
- return TuiHintComponent;
674
- }());
675
- 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: i3$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 });
676
- 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: [
677
- i3.TuiDestroyService,
678
- i2.TuiPositionService,
679
- i3.TuiHoveredService,
680
- i3$1.tuiPositionAccessorFor('hint'),
681
- i3$1.tuiRectAccessorFor('hint', TuiHintDirective),
682
- ], 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}: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 });
683
- __decorate([
684
- i3.tuiPure
685
- ], TuiHintComponent.prototype, "update", null);
686
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintComponent, decorators: [{
687
- type: i0.Component,
688
- args: [{
689
- selector: 'tui-hint',
690
- template: "\n <ng-content></ng-content>\n <span\n *polymorpheusOutlet=\"content as text; context: context\"\n [innerHTML]=\"text\"\n ></span>\n ",
691
- styleUrls: ['./hint.style.less'],
692
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
693
- providers: [
694
- i3.TuiDestroyService,
695
- i2.TuiPositionService,
696
- i3.TuiHoveredService,
697
- i3$1.tuiPositionAccessorFor('hint'),
698
- i3$1.tuiRectAccessorFor('hint', TuiHintDirective),
699
- ],
700
- animations: [animations.tuiFadeIn],
701
- host: {
702
- '[@tuiFadeIn]': 'animation',
703
- '[class._untouchable]': 'pointer',
704
- },
705
- }]
706
- }], ctorParameters: function () {
707
- return [{ type: i2__namespace$1.Observable, decorators: [{
708
- type: i0.Inject,
709
- args: [i3.TuiHoveredService]
710
- }] }, { type: i2__namespace$1.Observable, decorators: [{
711
- type: i0.Inject,
712
- args: [i2.TuiPositionService]
713
- }] }, { type: i2__namespace$1.Observable, decorators: [{
714
- type: i0.Self
715
- }, {
716
- type: i0.Inject,
717
- args: [i3.TuiDestroyService]
718
- }] }, { type: undefined, decorators: [{
719
- type: i0.Inject,
720
- args: [tokens.TUI_ANIMATION_OPTIONS]
721
- }] }, { type: undefined, decorators: [{
722
- type: i0.Optional
723
- }, {
724
- type: i0.Inject,
725
- args: [TuiHintPointerDirective]
726
- }] }, { type: i3__namespace$1.TuiRectAccessor, decorators: [{
727
- type: i0.Inject,
728
- args: [i3$1.TuiRectAccessor]
729
- }] }, { type: i0__namespace.ElementRef, decorators: [{
730
- type: i0.Inject,
731
- args: [i0.ElementRef]
732
- }] }, { type: undefined, decorators: [{
733
- type: i0.Inject,
734
- args: [i1.POLYMORPHEUS_CONTEXT]
735
- }] }, { type: TuiHintHoverDirective, decorators: [{
736
- type: i0.Inject,
737
- args: [TuiHintHoverDirective]
738
- }] }, { type: i5__namespace.TuiModeDirective, decorators: [{
739
- type: i0.Optional
740
- }, {
741
- type: i0.Inject,
742
- args: [i5.TuiModeDirective]
743
- }] }, { type: i2__namespace.TuiVisualViewportService, decorators: [{
744
- type: i0.Inject,
745
- args: [i2.TuiVisualViewportService]
746
- }] }, { type: i3__namespace$1.TuiRectAccessor, decorators: [{
747
- type: i0.Inject,
748
- args: [tokens.TUI_VIEWPORT]
749
- }] }];
750
- }, propDecorators: { appearance: [{
751
- type: i0.HostBinding,
752
- args: ['attr.data-appearance']
753
- }], onClick: [{
754
- type: i0.HostListener,
755
- args: ['document:click', ['$event.target']]
756
- }], update: [] } });
757
+ var GAP = 4;
758
+ var TuiHintComponent = /** @class */ (function () {
759
+ function TuiHintComponent(hovered$, position$, destroy$, animation, pointer, accessor, el, polymorpheus, hover, mode, visualViewportService, viewport) {
760
+ var _this = this;
761
+ var _a;
762
+ this.animation = animation;
763
+ this.pointer = pointer;
764
+ this.accessor = accessor;
765
+ this.el = el;
766
+ this.polymorpheus = polymorpheus;
767
+ this.hover = hover;
768
+ this.mode = mode;
769
+ this.visualViewportService = visualViewportService;
770
+ this.viewport = viewport;
771
+ this.appearance = this.polymorpheus.$implicit.appearance || ((_a = this.mode) === null || _a === void 0 ? void 0 : _a.mode);
772
+ position$
773
+ .pipe(operators.map(function (point) { return _this.visualViewportService.correct(point); }), operators.takeUntil(destroy$))
774
+ .subscribe(function (_b) {
775
+ var _c = __read(_b, 2), top = _c[0], left = _c[1];
776
+ _this.update(top, left);
777
+ });
778
+ hovered$.pipe(operators.takeUntil(destroy$)).subscribe(function (hover) { return _this.hover.toggle(hover); });
779
+ }
780
+ Object.defineProperty(TuiHintComponent.prototype, "content", {
781
+ get: function () {
782
+ return this.polymorpheus.$implicit.content;
783
+ },
784
+ enumerable: false,
785
+ configurable: true
786
+ });
787
+ Object.defineProperty(TuiHintComponent.prototype, "context", {
788
+ get: function () {
789
+ return this.polymorpheus.$implicit.context;
790
+ },
791
+ enumerable: false,
792
+ configurable: true
793
+ });
794
+ TuiHintComponent.prototype.onClick = function (target) {
795
+ if ((!this.el.nativeElement.contains(target) &&
796
+ !this.hover.el.nativeElement.contains(target)) ||
797
+ utils.tuiIsObscured(this.hover.el.nativeElement)) {
798
+ this.hover.toggle(false);
799
+ }
800
+ };
801
+ TuiHintComponent.prototype.update = function (top, left) {
802
+ var _b = this.el.nativeElement.getBoundingClientRect(), height = _b.height, width = _b.width;
803
+ var style = this.el.nativeElement.style;
804
+ var rect = this.accessor.getClientRect();
805
+ var viewport = this.viewport.getClientRect();
806
+ if (rect === i3.EMPTY_CLIENT_RECT) {
807
+ return;
808
+ }
809
+ var safeLeft = i3.tuiClamp(left, GAP, viewport.width - width - GAP);
810
+ var _c = __read(this.visualViewportService.correct([
811
+ rect.top + rect.height / 2 - top,
812
+ rect.left + rect.width / 2 - safeLeft,
813
+ ]), 2), beakTop = _c[0], beakLeft = _c[1];
814
+ style.top = i3.tuiPx(top);
815
+ style.left = i3.tuiPx(safeLeft);
816
+ style.setProperty('--top', i3.tuiPx(i3.tuiClamp(beakTop, 0.5, height - 1)));
817
+ style.setProperty('--left', i3.tuiPx(i3.tuiClamp(beakLeft, 0.5, width - 1)));
818
+ };
819
+ return TuiHintComponent;
820
+ }());
821
+ 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: i3$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 });
822
+ 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: [
823
+ i3.TuiDestroyService,
824
+ i2.TuiPositionService,
825
+ i3.TuiHoveredService,
826
+ i3$1.tuiPositionAccessorFor('hint'),
827
+ i3$1.tuiRectAccessorFor('hint', TuiHintDirective),
828
+ ], 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}: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 });
829
+ __decorate([
830
+ i3.tuiPure
831
+ ], TuiHintComponent.prototype, "update", null);
832
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintComponent, decorators: [{
833
+ type: i0.Component,
834
+ args: [{
835
+ selector: 'tui-hint',
836
+ template: "\n <ng-content></ng-content>\n <span\n *polymorpheusOutlet=\"content as text; context: context\"\n [innerHTML]=\"text\"\n ></span>\n ",
837
+ styleUrls: ['./hint.style.less'],
838
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
839
+ providers: [
840
+ i3.TuiDestroyService,
841
+ i2.TuiPositionService,
842
+ i3.TuiHoveredService,
843
+ i3$1.tuiPositionAccessorFor('hint'),
844
+ i3$1.tuiRectAccessorFor('hint', TuiHintDirective),
845
+ ],
846
+ animations: [animations.tuiFadeIn],
847
+ host: {
848
+ '[@tuiFadeIn]': 'animation',
849
+ '[class._untouchable]': 'pointer',
850
+ },
851
+ }]
852
+ }], ctorParameters: function () {
853
+ return [{ type: i2__namespace$1.Observable, decorators: [{
854
+ type: i0.Inject,
855
+ args: [i3.TuiHoveredService]
856
+ }] }, { type: i2__namespace$1.Observable, decorators: [{
857
+ type: i0.Inject,
858
+ args: [i2.TuiPositionService]
859
+ }] }, { type: i2__namespace$1.Observable, decorators: [{
860
+ type: i0.Self
861
+ }, {
862
+ type: i0.Inject,
863
+ args: [i3.TuiDestroyService]
864
+ }] }, { type: undefined, decorators: [{
865
+ type: i0.Inject,
866
+ args: [tokens.TUI_ANIMATION_OPTIONS]
867
+ }] }, { type: undefined, decorators: [{
868
+ type: i0.Optional
869
+ }, {
870
+ type: i0.Inject,
871
+ args: [TuiHintPointerDirective]
872
+ }] }, { type: i3__namespace$1.TuiRectAccessor, decorators: [{
873
+ type: i0.Inject,
874
+ args: [i3$1.TuiRectAccessor]
875
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
876
+ type: i0.Inject,
877
+ args: [i0.ElementRef]
878
+ }] }, { type: undefined, decorators: [{
879
+ type: i0.Inject,
880
+ args: [i1.POLYMORPHEUS_CONTEXT]
881
+ }] }, { type: TuiHintHoverDirective, decorators: [{
882
+ type: i0.Inject,
883
+ args: [TuiHintHoverDirective]
884
+ }] }, { type: i5__namespace.TuiModeDirective, decorators: [{
885
+ type: i0.Optional
886
+ }, {
887
+ type: i0.Inject,
888
+ args: [i5.TuiModeDirective]
889
+ }] }, { type: i2__namespace.TuiVisualViewportService, decorators: [{
890
+ type: i0.Inject,
891
+ args: [i2.TuiVisualViewportService]
892
+ }] }, { type: i3__namespace$1.TuiRectAccessor, decorators: [{
893
+ type: i0.Inject,
894
+ args: [tokens.TUI_VIEWPORT]
895
+ }] }];
896
+ }, propDecorators: { appearance: [{
897
+ type: i0.HostBinding,
898
+ args: ['attr.data-appearance']
899
+ }], onClick: [{
900
+ type: i0.HostListener,
901
+ args: ['document:click', ['$event.target']]
902
+ }], update: [] } });
757
903
 
758
- var TuiHintDescribeDirective = /** @class */ (function (_super) {
759
- __extends(TuiHintDescribeDirective, _super);
760
- function TuiHintDescribeDirective(zone, doc, el) {
761
- var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
762
- _this.zone = zone;
763
- _this.doc = doc;
764
- _this.el = el;
765
- _this.id$ = new i2$1.ReplaySubject(1);
766
- _this.stream$ = _this.id$.pipe(i3.tuiIfMap(function () { return i3.tuiTypedFromEvent(_this.doc, 'keydown', {
767
- capture: true,
768
- }); }, i3.tuiIsPresent), operators.switchMap(function () { return _this.focused
769
- ? i2$1.of(false)
770
- : 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));
771
- _this.tuiHintDescribe = '';
772
- _this.type = 'hint';
773
- return _this;
774
- }
775
- TuiHintDescribeDirective.prototype.ngOnChanges = function () {
776
- this.id$.next(this.tuiHintDescribe);
777
- };
778
- Object.defineProperty(TuiHintDescribeDirective.prototype, "focused", {
779
- get: function () {
780
- return i3.tuiIsNativeFocused(this.element);
781
- },
782
- enumerable: false,
783
- configurable: true
784
- });
785
- Object.defineProperty(TuiHintDescribeDirective.prototype, "element", {
786
- get: function () {
787
- return (this.doc.getElementById(this.tuiHintDescribe || '') || this.el.nativeElement);
788
- },
789
- enumerable: false,
790
- configurable: true
791
- });
792
- return TuiHintDescribeDirective;
793
- }(i3$1.TuiDriver));
794
- 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 });
795
- TuiHintDescribeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDescribeDirective, selector: "[tuiHintDescribe]", inputs: { tuiHintDescribe: "tuiHintDescribe" }, providers: [i3$1.tuiAsDriver(TuiHintDescribeDirective)], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace });
796
- __decorate([
797
- i3.tuiPure
798
- ], TuiHintDescribeDirective.prototype, "element", null);
799
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDescribeDirective, decorators: [{
800
- type: i0.Directive,
801
- args: [{
802
- selector: '[tuiHintDescribe]',
803
- providers: [i3$1.tuiAsDriver(TuiHintDescribeDirective)],
804
- }]
805
- }], ctorParameters: function () {
806
- return [{ type: i0__namespace.NgZone, decorators: [{
807
- type: i0.Inject,
808
- args: [i0.NgZone]
809
- }] }, { type: Document, decorators: [{
810
- type: i0.Inject,
811
- args: [common.DOCUMENT]
812
- }] }, { type: i0__namespace.ElementRef, decorators: [{
813
- type: i0.Inject,
814
- args: [i0.ElementRef]
815
- }] }];
816
- }, propDecorators: { tuiHintDescribe: [{
817
- type: i0.Input
818
- }], element: [] } });
904
+ var TuiHintDescribeDirective = /** @class */ (function (_super) {
905
+ __extends(TuiHintDescribeDirective, _super);
906
+ function TuiHintDescribeDirective(zone, doc, el) {
907
+ var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
908
+ _this.zone = zone;
909
+ _this.doc = doc;
910
+ _this.el = el;
911
+ _this.id$ = new i2$1.ReplaySubject(1);
912
+ _this.stream$ = _this.id$.pipe(i3.tuiIfMap(function () { return i3.tuiTypedFromEvent(_this.doc, 'keydown', {
913
+ capture: true,
914
+ }); }, i3.tuiIsPresent), operators.switchMap(function () { return _this.focused
915
+ ? i2$1.of(false)
916
+ : 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));
917
+ _this.tuiHintDescribe = '';
918
+ _this.type = 'hint';
919
+ return _this;
920
+ }
921
+ TuiHintDescribeDirective.prototype.ngOnChanges = function () {
922
+ this.id$.next(this.tuiHintDescribe);
923
+ };
924
+ Object.defineProperty(TuiHintDescribeDirective.prototype, "focused", {
925
+ get: function () {
926
+ return i3.tuiIsNativeFocused(this.element);
927
+ },
928
+ enumerable: false,
929
+ configurable: true
930
+ });
931
+ Object.defineProperty(TuiHintDescribeDirective.prototype, "element", {
932
+ get: function () {
933
+ return (this.doc.getElementById(this.tuiHintDescribe || '') || this.el.nativeElement);
934
+ },
935
+ enumerable: false,
936
+ configurable: true
937
+ });
938
+ return TuiHintDescribeDirective;
939
+ }(i3$1.TuiDriver));
940
+ 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 });
941
+ TuiHintDescribeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDescribeDirective, selector: "[tuiHintDescribe]", inputs: { tuiHintDescribe: "tuiHintDescribe" }, providers: [i3$1.tuiAsDriver(TuiHintDescribeDirective)], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace });
942
+ __decorate([
943
+ i3.tuiPure
944
+ ], TuiHintDescribeDirective.prototype, "element", null);
945
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDescribeDirective, decorators: [{
946
+ type: i0.Directive,
947
+ args: [{
948
+ selector: '[tuiHintDescribe]',
949
+ providers: [i3$1.tuiAsDriver(TuiHintDescribeDirective)],
950
+ }]
951
+ }], ctorParameters: function () {
952
+ return [{ type: i0__namespace.NgZone, decorators: [{
953
+ type: i0.Inject,
954
+ args: [i0.NgZone]
955
+ }] }, { type: Document, decorators: [{
956
+ type: i0.Inject,
957
+ args: [common.DOCUMENT]
958
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
959
+ type: i0.Inject,
960
+ args: [i0.ElementRef]
961
+ }] }];
962
+ }, propDecorators: { tuiHintDescribe: [{
963
+ type: i0.Input
964
+ }], element: [] } });
819
965
 
820
- var TuiHintDriverDirective = /** @class */ (function (_super) {
821
- __extends(TuiHintDriverDirective, _super);
822
- // TODO: Figure out why this is necessary under nx test runner
823
- function TuiHintDriverDirective(destroy$, drivers, vehicles) {
824
- var _this = _super.call(this, destroy$, drivers, vehicles) || this;
825
- _this.type = 'hint';
826
- return _this;
827
- }
828
- return TuiHintDriverDirective;
829
- }(i3$1.AbstractTuiDriverDirective));
830
- 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: i3$1.TuiDriver }, { token: i3$1.TuiVehicle }], target: i0__namespace.ɵɵFactoryTarget.Directive });
831
- 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 });
832
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDriverDirective, decorators: [{
833
- type: i0.Directive,
834
- args: [{
835
- selector: '[tuiHint]:not(ng-container):not(ng-template)',
836
- providers: [i3.TuiDestroyService],
837
- }]
838
- }], ctorParameters: function () {
839
- return [{ type: i2__namespace$1.Observable, decorators: [{
840
- type: i0.Self
841
- }, {
842
- type: i0.Inject,
843
- args: [i3.TuiDestroyService]
844
- }] }, { type: undefined, decorators: [{
845
- type: i0.Inject,
846
- args: [i3$1.TuiDriver]
847
- }] }, { type: undefined, decorators: [{
848
- type: i0.Inject,
849
- args: [i3$1.TuiVehicle]
850
- }] }];
851
- } });
966
+ var TuiHintDriverDirective = /** @class */ (function (_super) {
967
+ __extends(TuiHintDriverDirective, _super);
968
+ // TODO: Figure out why this is necessary under nx test runner
969
+ function TuiHintDriverDirective(destroy$, drivers, vehicles) {
970
+ var _this = _super.call(this, destroy$, drivers, vehicles) || this;
971
+ _this.type = 'hint';
972
+ return _this;
973
+ }
974
+ return TuiHintDriverDirective;
975
+ }(i3$1.AbstractTuiDriverDirective));
976
+ 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: i3$1.TuiDriver }, { token: i3$1.TuiVehicle }], target: i0__namespace.ɵɵFactoryTarget.Directive });
977
+ 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 });
978
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDriverDirective, decorators: [{
979
+ type: i0.Directive,
980
+ args: [{
981
+ selector: '[tuiHint]:not(ng-container):not(ng-template)',
982
+ providers: [i3.TuiDestroyService],
983
+ }]
984
+ }], ctorParameters: function () {
985
+ return [{ type: i2__namespace$1.Observable, decorators: [{
986
+ type: i0.Self
987
+ }, {
988
+ type: i0.Inject,
989
+ args: [i3.TuiDestroyService]
990
+ }] }, { type: undefined, decorators: [{
991
+ type: i0.Inject,
992
+ args: [i3$1.TuiDriver]
993
+ }] }, { type: undefined, decorators: [{
994
+ type: i0.Inject,
995
+ args: [i3$1.TuiVehicle]
996
+ }] }];
997
+ } });
852
998
 
853
- var TuiHintHostDirective = /** @class */ (function (_super) {
854
- __extends(TuiHintHostDirective, _super);
855
- function TuiHintHostDirective() {
856
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
857
- _this.type = 'hint';
858
- return _this;
859
- }
860
- TuiHintHostDirective.prototype.getClientRect = function () {
861
- var _a;
862
- return ((_a = this.tuiHintHost) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || i3.EMPTY_CLIENT_RECT;
863
- };
864
- return TuiHintHostDirective;
865
- }(i3$1.TuiRectAccessor));
866
- 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 });
867
- TuiHintHostDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintHostDirective, selector: "[tuiHint][tuiHintHost]", inputs: { tuiHintHost: "tuiHintHost" }, providers: [i3$1.tuiAsRectAccessor(TuiHintHostDirective)], usesInheritance: true, ngImport: i0__namespace });
868
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHostDirective, decorators: [{
869
- type: i0.Directive,
870
- args: [{
871
- selector: '[tuiHint][tuiHintHost]',
872
- providers: [i3$1.tuiAsRectAccessor(TuiHintHostDirective)],
873
- }]
874
- }], propDecorators: { tuiHintHost: [{
875
- type: i0.Input
876
- }] } });
999
+ var TuiHintHostDirective = /** @class */ (function (_super) {
1000
+ __extends(TuiHintHostDirective, _super);
1001
+ function TuiHintHostDirective() {
1002
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
1003
+ _this.type = 'hint';
1004
+ return _this;
1005
+ }
1006
+ TuiHintHostDirective.prototype.getClientRect = function () {
1007
+ var _a;
1008
+ return ((_a = this.tuiHintHost) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || i3.EMPTY_CLIENT_RECT;
1009
+ };
1010
+ return TuiHintHostDirective;
1011
+ }(i3$1.TuiRectAccessor));
1012
+ 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 });
1013
+ TuiHintHostDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintHostDirective, selector: "[tuiHint][tuiHintHost]", inputs: { tuiHintHost: "tuiHintHost" }, providers: [i3$1.tuiAsRectAccessor(TuiHintHostDirective)], usesInheritance: true, ngImport: i0__namespace });
1014
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHostDirective, decorators: [{
1015
+ type: i0.Directive,
1016
+ args: [{
1017
+ selector: '[tuiHint][tuiHintHost]',
1018
+ providers: [i3$1.tuiAsRectAccessor(TuiHintHostDirective)],
1019
+ }]
1020
+ }], propDecorators: { tuiHintHost: [{
1021
+ type: i0.Input
1022
+ }] } });
877
1023
 
878
- var TuiHintManualDirective = /** @class */ (function (_super) {
879
- __extends(TuiHintManualDirective, _super);
880
- function TuiHintManualDirective(hover) {
881
- var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
882
- _this.stream$ = new i2$1.BehaviorSubject(false);
883
- _this.tuiHintManual = false;
884
- _this.type = 'hint';
885
- hover.enabled = false;
886
- return _this;
887
- }
888
- TuiHintManualDirective.prototype.ngOnChanges = function () {
889
- this.stream$.next(this.tuiHintManual);
890
- };
891
- return TuiHintManualDirective;
892
- }(i3$1.TuiDriver));
893
- 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 });
894
- TuiHintManualDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintManualDirective, selector: "[tuiHint][tuiHintManual]", inputs: { tuiHintManual: "tuiHintManual" }, providers: [i3$1.tuiAsDriver(TuiHintManualDirective)], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace });
895
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintManualDirective, decorators: [{
896
- type: i0.Directive,
897
- args: [{
898
- selector: '[tuiHint][tuiHintManual]',
899
- providers: [i3$1.tuiAsDriver(TuiHintManualDirective)],
900
- }]
901
- }], ctorParameters: function () {
902
- return [{ type: TuiHintHoverDirective, decorators: [{
903
- type: i0.Inject,
904
- args: [TuiHintHoverDirective]
905
- }] }];
906
- }, propDecorators: { tuiHintManual: [{
907
- type: i0.Input
908
- }] } });
1024
+ var TuiHintManualDirective = /** @class */ (function (_super) {
1025
+ __extends(TuiHintManualDirective, _super);
1026
+ function TuiHintManualDirective(hover) {
1027
+ var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
1028
+ _this.stream$ = new i2$1.BehaviorSubject(false);
1029
+ _this.tuiHintManual = false;
1030
+ _this.type = 'hint';
1031
+ hover.enabled = false;
1032
+ return _this;
1033
+ }
1034
+ TuiHintManualDirective.prototype.ngOnChanges = function () {
1035
+ this.stream$.next(this.tuiHintManual);
1036
+ };
1037
+ return TuiHintManualDirective;
1038
+ }(i3$1.TuiDriver));
1039
+ 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 });
1040
+ TuiHintManualDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintManualDirective, selector: "[tuiHint][tuiHintManual]", inputs: { tuiHintManual: "tuiHintManual" }, providers: [i3$1.tuiAsDriver(TuiHintManualDirective)], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace });
1041
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintManualDirective, decorators: [{
1042
+ type: i0.Directive,
1043
+ args: [{
1044
+ selector: '[tuiHint][tuiHintManual]',
1045
+ providers: [i3$1.tuiAsDriver(TuiHintManualDirective)],
1046
+ }]
1047
+ }], ctorParameters: function () {
1048
+ return [{ type: TuiHintHoverDirective, decorators: [{
1049
+ type: i0.Inject,
1050
+ args: [TuiHintHoverDirective]
1051
+ }] }];
1052
+ }, propDecorators: { tuiHintManual: [{
1053
+ type: i0.Input
1054
+ }] } });
909
1055
 
910
- var OFFSET = 8;
911
- var ARROW_OFFSET = 22;
912
- var TOP = 0;
913
- var LEFT = 1;
914
- var TuiHintPositionDirective = /** @class */ (function (_super) {
915
- __extends(TuiHintPositionDirective, _super);
916
- function TuiHintPositionDirective(options, viewport, directive, accessors) {
917
- var _this = _super.call(this) || this;
918
- _this.options = options;
919
- _this.viewport = viewport;
920
- _this.directive = directive;
921
- _this.accessors = accessors;
922
- _this.points = constants.TUI_HINT_DIRECTIONS.reduce(function (acc, direction) {
923
- var _c;
924
- return (Object.assign(Object.assign({}, acc), (_c = {}, _c[direction] = [0, 0], _c)));
925
- }, {});
926
- _this.direction = _this.options.direction;
927
- _this.type = 'hint';
928
- return _this;
929
- }
930
- TuiHintPositionDirective.prototype.getPosition = function (_c) {
931
- var _this = this;
932
- var width = _c.width, height = _c.height;
933
- var _a, _b;
934
- var hostRect = (_b = (_a = this.accessor) === null || _a === void 0 ? void 0 : _a.getClientRect()) !== null && _b !== void 0 ? _b : i3.EMPTY_CLIENT_RECT;
935
- var leftCenter = hostRect.left + hostRect.width / 2;
936
- var topCenter = hostRect.top + hostRect.height / 2;
937
- this.points['top-left'][TOP] = hostRect.top - height - OFFSET;
938
- this.points['top-left'][LEFT] = leftCenter - width + ARROW_OFFSET;
939
- this.points.top[TOP] = this.points['top-left'][TOP];
940
- this.points.top[LEFT] = leftCenter - width / 2;
941
- this.points['top-right'][TOP] = this.points['top-left'][TOP];
942
- this.points['top-right'][LEFT] = leftCenter - ARROW_OFFSET;
943
- this.points['bottom-left'][TOP] = hostRect.bottom + OFFSET;
944
- this.points['bottom-left'][LEFT] = this.points['top-left'][LEFT];
945
- this.points.bottom[TOP] = this.points['bottom-left'][TOP];
946
- this.points.bottom[LEFT] = this.points.top[LEFT];
947
- this.points['bottom-right'][TOP] = this.points['bottom-left'][TOP];
948
- this.points['bottom-right'][LEFT] = this.points['top-right'][LEFT];
949
- this.points['left-top'][TOP] = topCenter - height + ARROW_OFFSET;
950
- this.points['left-top'][LEFT] = hostRect.left - width - OFFSET;
951
- this.points.left[TOP] = topCenter - height / 2;
952
- this.points.left[LEFT] = this.points['left-top'][LEFT];
953
- this.points['left-bottom'][TOP] = topCenter - ARROW_OFFSET;
954
- this.points['left-bottom'][LEFT] = this.points['left-top'][LEFT];
955
- this.points['right-top'][TOP] = this.points['left-top'][TOP];
956
- this.points['right-top'][LEFT] = hostRect.right + OFFSET;
957
- this.points.right[TOP] = this.points.left[TOP];
958
- this.points.right[LEFT] = this.points['right-top'][LEFT];
959
- this.points['right-bottom'][TOP] = this.points['left-bottom'][TOP];
960
- this.points['right-bottom'][LEFT] = this.points['right-top'][LEFT];
961
- if (this.checkPosition(this.points[this.direction], width, height)) {
962
- return this.points[this.direction];
963
- }
964
- var direction = constants.TUI_HINT_DIRECTIONS.find(function (direction) { return _this.checkPosition(_this.points[direction], width, height); });
965
- return this.points[direction || this.fallback];
966
- };
967
- Object.defineProperty(TuiHintPositionDirective.prototype, "accessor", {
968
- get: function () {
969
- return i3$1.tuiFallbackRectAccessor('hint')(this.accessors, this.directive);
970
- },
971
- enumerable: false,
972
- configurable: true
973
- });
974
- Object.defineProperty(TuiHintPositionDirective.prototype, "fallback", {
975
- get: function () {
976
- return this.points.top[TOP] >
977
- this.viewport.getClientRect().bottom - this.points.bottom[TOP]
978
- ? 'top'
979
- : 'bottom';
980
- },
981
- enumerable: false,
982
- configurable: true
983
- });
984
- TuiHintPositionDirective.prototype.checkPosition = function (_c, width, height) {
985
- var _d = __read(_c, 2), top = _d[0], left = _d[1];
986
- var viewport = this.viewport.getClientRect();
987
- return (top > OFFSET &&
988
- left > OFFSET &&
989
- top + height < viewport.bottom - OFFSET &&
990
- left + width < viewport.right - OFFSET);
991
- };
992
- return TuiHintPositionDirective;
993
- }(i3$1.TuiPositionAccessor));
994
- 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: i3$1.TuiRectAccessor }], target: i0__namespace.ɵɵFactoryTarget.Directive });
995
- TuiHintPositionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintPositionDirective, selector: "[tuiHint]:not([tuiHintCustomPosition]):not(ng-container):not(ng-template)", inputs: { direction: ["tuiHintDirection", "direction"] }, providers: [i3$1.tuiAsPositionAccessor(TuiHintPositionDirective)], usesInheritance: true, ngImport: i0__namespace });
996
- __decorate([
997
- i3.tuiPure
998
- ], TuiHintPositionDirective.prototype, "accessor", null);
999
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPositionDirective, decorators: [{
1000
- type: i0.Directive,
1001
- args: [{
1002
- selector: '[tuiHint]:not([tuiHintCustomPosition]):not(ng-container):not(ng-template)',
1003
- providers: [i3$1.tuiAsPositionAccessor(TuiHintPositionDirective)],
1004
- }]
1005
- }], ctorParameters: function () {
1006
- return [{ type: undefined, decorators: [{
1007
- type: i0.Inject,
1008
- args: [TUI_HINT_OPTIONS]
1009
- }] }, { type: i3__namespace$1.TuiRectAccessor, decorators: [{
1010
- type: i0.Inject,
1011
- args: [tokens.TUI_VIEWPORT]
1012
- }] }, { type: i3__namespace$1.TuiRectAccessor, decorators: [{
1013
- type: i0.Inject,
1014
- args: [TuiHintDirective]
1015
- }] }, { type: undefined, decorators: [{
1016
- type: i0.Inject,
1017
- args: [i3$1.TuiRectAccessor]
1018
- }] }];
1019
- }, propDecorators: { direction: [{
1020
- type: i0.Input,
1021
- args: ['tuiHintDirection']
1022
- }], accessor: [] } });
1056
+ var OFFSET = 8;
1057
+ var ARROW_OFFSET = 22;
1058
+ var TOP = 0;
1059
+ var LEFT = 1;
1060
+ var TuiHintPositionDirective = /** @class */ (function (_super) {
1061
+ __extends(TuiHintPositionDirective, _super);
1062
+ function TuiHintPositionDirective(options, viewport, directive, accessors) {
1063
+ var _this = _super.call(this) || this;
1064
+ _this.options = options;
1065
+ _this.viewport = viewport;
1066
+ _this.directive = directive;
1067
+ _this.accessors = accessors;
1068
+ _this.points = constants.TUI_HINT_DIRECTIONS.reduce(function (acc, direction) {
1069
+ var _c;
1070
+ return (Object.assign(Object.assign({}, acc), (_c = {}, _c[direction] = [0, 0], _c)));
1071
+ }, {});
1072
+ _this.direction = _this.options.direction;
1073
+ _this.type = 'hint';
1074
+ return _this;
1075
+ }
1076
+ TuiHintPositionDirective.prototype.getPosition = function (_c) {
1077
+ var _this = this;
1078
+ var width = _c.width, height = _c.height;
1079
+ var _a, _b;
1080
+ var hostRect = (_b = (_a = this.accessor) === null || _a === void 0 ? void 0 : _a.getClientRect()) !== null && _b !== void 0 ? _b : i3.EMPTY_CLIENT_RECT;
1081
+ var leftCenter = hostRect.left + hostRect.width / 2;
1082
+ var topCenter = hostRect.top + hostRect.height / 2;
1083
+ this.points['top-left'][TOP] = hostRect.top - height - OFFSET;
1084
+ this.points['top-left'][LEFT] = leftCenter - width + ARROW_OFFSET;
1085
+ this.points.top[TOP] = this.points['top-left'][TOP];
1086
+ this.points.top[LEFT] = leftCenter - width / 2;
1087
+ this.points['top-right'][TOP] = this.points['top-left'][TOP];
1088
+ this.points['top-right'][LEFT] = leftCenter - ARROW_OFFSET;
1089
+ this.points['bottom-left'][TOP] = hostRect.bottom + OFFSET;
1090
+ this.points['bottom-left'][LEFT] = this.points['top-left'][LEFT];
1091
+ this.points.bottom[TOP] = this.points['bottom-left'][TOP];
1092
+ this.points.bottom[LEFT] = this.points.top[LEFT];
1093
+ this.points['bottom-right'][TOP] = this.points['bottom-left'][TOP];
1094
+ this.points['bottom-right'][LEFT] = this.points['top-right'][LEFT];
1095
+ this.points['left-top'][TOP] = topCenter - height + ARROW_OFFSET;
1096
+ this.points['left-top'][LEFT] = hostRect.left - width - OFFSET;
1097
+ this.points.left[TOP] = topCenter - height / 2;
1098
+ this.points.left[LEFT] = this.points['left-top'][LEFT];
1099
+ this.points['left-bottom'][TOP] = topCenter - ARROW_OFFSET;
1100
+ this.points['left-bottom'][LEFT] = this.points['left-top'][LEFT];
1101
+ this.points['right-top'][TOP] = this.points['left-top'][TOP];
1102
+ this.points['right-top'][LEFT] = hostRect.right + OFFSET;
1103
+ this.points.right[TOP] = this.points.left[TOP];
1104
+ this.points.right[LEFT] = this.points['right-top'][LEFT];
1105
+ this.points['right-bottom'][TOP] = this.points['left-bottom'][TOP];
1106
+ this.points['right-bottom'][LEFT] = this.points['right-top'][LEFT];
1107
+ if (this.checkPosition(this.points[this.direction], width, height)) {
1108
+ return this.points[this.direction];
1109
+ }
1110
+ var direction = constants.TUI_HINT_DIRECTIONS.find(function (direction) { return _this.checkPosition(_this.points[direction], width, height); });
1111
+ return this.points[direction || this.fallback];
1112
+ };
1113
+ Object.defineProperty(TuiHintPositionDirective.prototype, "accessor", {
1114
+ get: function () {
1115
+ return i3$1.tuiFallbackRectAccessor('hint')(this.accessors, this.directive);
1116
+ },
1117
+ enumerable: false,
1118
+ configurable: true
1119
+ });
1120
+ Object.defineProperty(TuiHintPositionDirective.prototype, "fallback", {
1121
+ get: function () {
1122
+ return this.points.top[TOP] >
1123
+ this.viewport.getClientRect().bottom - this.points.bottom[TOP]
1124
+ ? 'top'
1125
+ : 'bottom';
1126
+ },
1127
+ enumerable: false,
1128
+ configurable: true
1129
+ });
1130
+ TuiHintPositionDirective.prototype.checkPosition = function (_c, width, height) {
1131
+ var _d = __read(_c, 2), top = _d[0], left = _d[1];
1132
+ var viewport = this.viewport.getClientRect();
1133
+ return (top > OFFSET &&
1134
+ left > OFFSET &&
1135
+ top + height < viewport.bottom - OFFSET &&
1136
+ left + width < viewport.right - OFFSET);
1137
+ };
1138
+ return TuiHintPositionDirective;
1139
+ }(i3$1.TuiPositionAccessor));
1140
+ 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: i3$1.TuiRectAccessor }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1141
+ TuiHintPositionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintPositionDirective, selector: "[tuiHint]:not([tuiHintCustomPosition]):not(ng-container):not(ng-template)", inputs: { direction: ["tuiHintDirection", "direction"] }, providers: [i3$1.tuiAsPositionAccessor(TuiHintPositionDirective)], usesInheritance: true, ngImport: i0__namespace });
1142
+ __decorate([
1143
+ i3.tuiPure
1144
+ ], TuiHintPositionDirective.prototype, "accessor", null);
1145
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPositionDirective, decorators: [{
1146
+ type: i0.Directive,
1147
+ args: [{
1148
+ selector: '[tuiHint]:not([tuiHintCustomPosition]):not(ng-container):not(ng-template)',
1149
+ providers: [i3$1.tuiAsPositionAccessor(TuiHintPositionDirective)],
1150
+ }]
1151
+ }], ctorParameters: function () {
1152
+ return [{ type: undefined, decorators: [{
1153
+ type: i0.Inject,
1154
+ args: [TUI_HINT_OPTIONS]
1155
+ }] }, { type: i3__namespace$1.TuiRectAccessor, decorators: [{
1156
+ type: i0.Inject,
1157
+ args: [tokens.TUI_VIEWPORT]
1158
+ }] }, { type: i3__namespace$1.TuiRectAccessor, decorators: [{
1159
+ type: i0.Inject,
1160
+ args: [TuiHintDirective]
1161
+ }] }, { type: undefined, decorators: [{
1162
+ type: i0.Inject,
1163
+ args: [i3$1.TuiRectAccessor]
1164
+ }] }];
1165
+ }, propDecorators: { direction: [{
1166
+ type: i0.Input,
1167
+ args: ['tuiHintDirection']
1168
+ }], accessor: [] } });
1023
1169
 
1024
- var TuiHintUnstyledComponent = /** @class */ (function () {
1025
- function TuiHintUnstyledComponent(context) {
1026
- this.context = context;
1027
- }
1028
- return TuiHintUnstyledComponent;
1029
- }());
1030
- 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 });
1031
- 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 });
1032
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledComponent, decorators: [{
1033
- type: i0.Component,
1034
- args: [{
1035
- template: "\n <ng-container\n *polymorpheusOutlet=\"context.$implicit.content; context: context\"\n ></ng-container>\n ",
1036
- host: { '[@tuiParentAnimation]': '' },
1037
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1038
- animations: [i3.TUI_PARENT_ANIMATION],
1039
- }]
1040
- }], ctorParameters: function () {
1041
- return [{ type: undefined, decorators: [{
1042
- type: i0.Inject,
1043
- args: [i1.POLYMORPHEUS_CONTEXT]
1044
- }] }];
1045
- } });
1046
- var TuiHintUnstyledDirective = /** @class */ (function () {
1047
- function TuiHintUnstyledDirective(templateRef, hint) {
1048
- hint.component = new i1.PolymorpheusComponent(TuiHintUnstyledComponent);
1049
- hint.content = templateRef;
1050
- }
1051
- return TuiHintUnstyledDirective;
1052
- }());
1053
- 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 });
1054
- TuiHintUnstyledDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintUnstyledDirective, selector: "ng-template[tuiHint]", providers: [
1055
- {
1056
- provide: i1.POLYMORPHEUS_CONTEXT,
1057
- useValue: { $implicit: {} },
1058
- },
1059
- ], ngImport: i0__namespace });
1060
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledDirective, decorators: [{
1061
- type: i0.Directive,
1062
- args: [{
1063
- selector: 'ng-template[tuiHint]',
1064
- providers: [
1065
- {
1066
- provide: i1.POLYMORPHEUS_CONTEXT,
1067
- useValue: { $implicit: {} },
1068
- },
1069
- ],
1070
- }]
1071
- }], ctorParameters: function () {
1072
- return [{ type: i0__namespace.TemplateRef, decorators: [{
1073
- type: i0.Inject,
1074
- args: [i0.TemplateRef]
1075
- }] }, { type: TuiHintDirective, decorators: [{
1076
- type: i0.Inject,
1077
- args: [TuiHintDirective]
1078
- }] }];
1079
- } });
1170
+ var TuiHintUnstyledComponent = /** @class */ (function () {
1171
+ function TuiHintUnstyledComponent(context) {
1172
+ this.context = context;
1173
+ }
1174
+ return TuiHintUnstyledComponent;
1175
+ }());
1176
+ 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 });
1177
+ 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 });
1178
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledComponent, decorators: [{
1179
+ type: i0.Component,
1180
+ args: [{
1181
+ template: "\n <ng-container\n *polymorpheusOutlet=\"context.$implicit.content; context: context\"\n ></ng-container>\n ",
1182
+ host: { '[@tuiParentAnimation]': '' },
1183
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1184
+ animations: [i3.TUI_PARENT_ANIMATION],
1185
+ }]
1186
+ }], ctorParameters: function () {
1187
+ return [{ type: undefined, decorators: [{
1188
+ type: i0.Inject,
1189
+ args: [i1.POLYMORPHEUS_CONTEXT]
1190
+ }] }];
1191
+ } });
1192
+ var TuiHintUnstyledDirective = /** @class */ (function () {
1193
+ function TuiHintUnstyledDirective(templateRef, hint) {
1194
+ hint.component = new i1.PolymorpheusComponent(TuiHintUnstyledComponent);
1195
+ hint.content = templateRef;
1196
+ }
1197
+ return TuiHintUnstyledDirective;
1198
+ }());
1199
+ 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 });
1200
+ TuiHintUnstyledDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintUnstyledDirective, selector: "ng-template[tuiHint]", providers: [
1201
+ {
1202
+ provide: i1.POLYMORPHEUS_CONTEXT,
1203
+ useValue: { $implicit: {} },
1204
+ },
1205
+ ], ngImport: i0__namespace });
1206
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledDirective, decorators: [{
1207
+ type: i0.Directive,
1208
+ args: [{
1209
+ selector: 'ng-template[tuiHint]',
1210
+ providers: [
1211
+ {
1212
+ provide: i1.POLYMORPHEUS_CONTEXT,
1213
+ useValue: { $implicit: {} },
1214
+ },
1215
+ ],
1216
+ }]
1217
+ }], ctorParameters: function () {
1218
+ return [{ type: i0__namespace.TemplateRef, decorators: [{
1219
+ type: i0.Inject,
1220
+ args: [i0.TemplateRef]
1221
+ }] }, { type: TuiHintDirective, decorators: [{
1222
+ type: i0.Inject,
1223
+ args: [TuiHintDirective]
1224
+ }] }];
1225
+ } });
1080
1226
 
1081
- var TuiHintModule = /** @class */ (function () {
1082
- function TuiHintModule() {
1083
- }
1084
- return TuiHintModule;
1085
- }());
1086
- TuiHintModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1087
- TuiHintModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, declarations: [TuiHintComponent,
1088
- TuiHintDirective,
1089
- TuiHintDriverDirective,
1090
- TuiHintHostDirective,
1091
- TuiHintHoverDirective,
1092
- TuiHintManualDirective,
1093
- TuiHintPointerDirective,
1094
- TuiHintDescribeDirective,
1095
- TuiHintPositionDirective,
1096
- TuiHintOptionsDirective,
1097
- TuiHintUnstyledComponent,
1098
- TuiHintUnstyledDirective], imports: [common.CommonModule, i1.PolymorpheusModule], exports: [TuiHintComponent,
1099
- TuiHintDirective,
1100
- TuiHintDriverDirective,
1101
- TuiHintHostDirective,
1102
- TuiHintHoverDirective,
1103
- TuiHintManualDirective,
1104
- TuiHintPointerDirective,
1105
- TuiHintDescribeDirective,
1106
- TuiHintPositionDirective,
1107
- TuiHintOptionsDirective,
1108
- TuiHintUnstyledDirective] });
1109
- TuiHintModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, imports: [[common.CommonModule, i1.PolymorpheusModule]] });
1110
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, decorators: [{
1111
- type: i0.NgModule,
1112
- args: [{
1113
- imports: [common.CommonModule, i1.PolymorpheusModule],
1114
- declarations: [
1115
- TuiHintComponent,
1116
- TuiHintDirective,
1117
- TuiHintDriverDirective,
1118
- TuiHintHostDirective,
1119
- TuiHintHoverDirective,
1120
- TuiHintManualDirective,
1121
- TuiHintPointerDirective,
1122
- TuiHintDescribeDirective,
1123
- TuiHintPositionDirective,
1124
- TuiHintOptionsDirective,
1125
- TuiHintUnstyledComponent,
1126
- TuiHintUnstyledDirective,
1127
- ],
1128
- exports: [
1129
- TuiHintComponent,
1130
- TuiHintDirective,
1131
- TuiHintDriverDirective,
1132
- TuiHintHostDirective,
1133
- TuiHintHoverDirective,
1134
- TuiHintManualDirective,
1135
- TuiHintPointerDirective,
1136
- TuiHintDescribeDirective,
1137
- TuiHintPositionDirective,
1138
- TuiHintOptionsDirective,
1139
- TuiHintUnstyledDirective,
1140
- ],
1141
- }]
1142
- }] });
1227
+ var TuiHintModule = /** @class */ (function () {
1228
+ function TuiHintModule() {
1229
+ }
1230
+ return TuiHintModule;
1231
+ }());
1232
+ TuiHintModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1233
+ TuiHintModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, declarations: [TuiHintComponent,
1234
+ TuiHintDirective,
1235
+ TuiHintDriverDirective,
1236
+ TuiHintHostDirective,
1237
+ TuiHintHoverDirective,
1238
+ TuiHintManualDirective,
1239
+ TuiHintPointerDirective,
1240
+ TuiHintDescribeDirective,
1241
+ TuiHintPositionDirective,
1242
+ TuiHintOptionsDirective,
1243
+ TuiHintUnstyledComponent,
1244
+ TuiHintUnstyledDirective], imports: [common.CommonModule, i1.PolymorpheusModule], exports: [TuiHintComponent,
1245
+ TuiHintDirective,
1246
+ TuiHintDriverDirective,
1247
+ TuiHintHostDirective,
1248
+ TuiHintHoverDirective,
1249
+ TuiHintManualDirective,
1250
+ TuiHintPointerDirective,
1251
+ TuiHintDescribeDirective,
1252
+ TuiHintPositionDirective,
1253
+ TuiHintOptionsDirective,
1254
+ TuiHintUnstyledDirective] });
1255
+ TuiHintModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, imports: [[common.CommonModule, i1.PolymorpheusModule]] });
1256
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, decorators: [{
1257
+ type: i0.NgModule,
1258
+ args: [{
1259
+ imports: [common.CommonModule, i1.PolymorpheusModule],
1260
+ declarations: [
1261
+ TuiHintComponent,
1262
+ TuiHintDirective,
1263
+ TuiHintDriverDirective,
1264
+ TuiHintHostDirective,
1265
+ TuiHintHoverDirective,
1266
+ TuiHintManualDirective,
1267
+ TuiHintPointerDirective,
1268
+ TuiHintDescribeDirective,
1269
+ TuiHintPositionDirective,
1270
+ TuiHintOptionsDirective,
1271
+ TuiHintUnstyledComponent,
1272
+ TuiHintUnstyledDirective,
1273
+ ],
1274
+ exports: [
1275
+ TuiHintComponent,
1276
+ TuiHintDirective,
1277
+ TuiHintDriverDirective,
1278
+ TuiHintHostDirective,
1279
+ TuiHintHoverDirective,
1280
+ TuiHintManualDirective,
1281
+ TuiHintPointerDirective,
1282
+ TuiHintDescribeDirective,
1283
+ TuiHintPositionDirective,
1284
+ TuiHintOptionsDirective,
1285
+ TuiHintUnstyledDirective,
1286
+ ],
1287
+ }]
1288
+ }] });
1143
1289
 
1144
- /**
1145
- * Generated bundle index. Do not edit.
1146
- */
1290
+ /**
1291
+ * Generated bundle index. Do not edit.
1292
+ */
1147
1293
 
1148
- exports.TUI_HINT_COMPONENT = TUI_HINT_COMPONENT;
1149
- exports.TUI_HINT_DEFAULT_OPTIONS = TUI_HINT_DEFAULT_OPTIONS;
1150
- exports.TUI_HINT_OPTIONS = TUI_HINT_OPTIONS;
1151
- exports.TuiHintComponent = TuiHintComponent;
1152
- exports.TuiHintDescribeDirective = TuiHintDescribeDirective;
1153
- exports.TuiHintDirective = TuiHintDirective;
1154
- exports.TuiHintDriverDirective = TuiHintDriverDirective;
1155
- exports.TuiHintHostDirective = TuiHintHostDirective;
1156
- exports.TuiHintHoverDirective = TuiHintHoverDirective;
1157
- exports.TuiHintManualDirective = TuiHintManualDirective;
1158
- exports.TuiHintModule = TuiHintModule;
1159
- exports.TuiHintOptionsDirective = TuiHintOptionsDirective;
1160
- exports.TuiHintPointerDirective = TuiHintPointerDirective;
1161
- exports.TuiHintPositionDirective = TuiHintPositionDirective;
1162
- exports.TuiHintUnstyledComponent = TuiHintUnstyledComponent;
1163
- exports.TuiHintUnstyledDirective = TuiHintUnstyledDirective;
1164
- exports.tuiHintOptionsProvider = tuiHintOptionsProvider;
1294
+ exports.TUI_HINT_COMPONENT = TUI_HINT_COMPONENT;
1295
+ exports.TUI_HINT_DEFAULT_OPTIONS = TUI_HINT_DEFAULT_OPTIONS;
1296
+ exports.TUI_HINT_OPTIONS = TUI_HINT_OPTIONS;
1297
+ exports.TuiHintComponent = TuiHintComponent;
1298
+ exports.TuiHintDescribeDirective = TuiHintDescribeDirective;
1299
+ exports.TuiHintDirective = TuiHintDirective;
1300
+ exports.TuiHintDriverDirective = TuiHintDriverDirective;
1301
+ exports.TuiHintHostDirective = TuiHintHostDirective;
1302
+ exports.TuiHintHoverDirective = TuiHintHoverDirective;
1303
+ exports.TuiHintManualDirective = TuiHintManualDirective;
1304
+ exports.TuiHintModule = TuiHintModule;
1305
+ exports.TuiHintOptionsDirective = TuiHintOptionsDirective;
1306
+ exports.TuiHintPointerDirective = TuiHintPointerDirective;
1307
+ exports.TuiHintPositionDirective = TuiHintPositionDirective;
1308
+ exports.TuiHintUnstyledComponent = TuiHintUnstyledComponent;
1309
+ exports.TuiHintUnstyledDirective = TuiHintUnstyledDirective;
1310
+ exports.tuiHintOptionsProvider = tuiHintOptionsProvider;
1165
1311
 
1166
- Object.defineProperty(exports, '__esModule', { value: true });
1312
+ Object.defineProperty(exports, '__esModule', { value: true });
1167
1313
 
1168
1314
  }));
1169
1315
  //# sourceMappingURL=taiga-ui-core-directives-hint.umd.js.map