@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.
- package/bundles/taiga-ui-core-abstract.umd.js +671 -525
- package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-alert.umd.js +152 -6
- package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-button.umd.js +668 -522
- package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-data-list.umd.js +819 -673
- package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-dialog.umd.js +152 -6
- package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +933 -787
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +3 -4
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +605 -459
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +1175 -1029
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-root.umd.js +605 -459
- package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js +152 -6
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-svg.umd.js +152 -6
- package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-theme-night.umd.js +520 -374
- package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-tooltip.umd.js +595 -449
- package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.js +1506 -1360
- package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint.umd.js +1287 -1141
- package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-mode.umd.js +521 -375
- package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-number-format.umd.js +543 -397
- package/bundles/taiga-ui-core-directives-number-format.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +152 -6
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-order-week-days.umd.js +530 -384
- package/bundles/taiga-ui-core-pipes-order-week-days.umd.js.map +1 -1
- package/bundles/taiga-ui-core-services.umd.js +780 -634
- package/bundles/taiga-ui-core-services.umd.js.map +1 -1
- package/bundles/taiga-ui-core-tokens.umd.js +152 -6
- package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-format.umd.js +152 -6
- package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-mask.umd.js +152 -6
- package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
- package/components/primitive-calendar/primitive-calendar.component.d.ts +1 -1
- package/constants/cache-basting-payload.d.ts +1 -1
- package/esm2015/components/primitive-calendar/primitive-calendar.component.js +4 -4
- package/esm2015/components/root/root.component.js +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-calendar.js +3 -3
- package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-root.js +1 -1
- package/package.json +5 -5
|
@@ -1,1169 +1,1315 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
22
|
-
return Object.freeze(n);
|
|
19
|
+
});
|
|
23
20
|
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
33
|
+
/******************************************************************************
|
|
34
|
+
Copyright (c) Microsoft Corporation.
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
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
|
-
|
|
353
|
-
|
|
354
|
-
|
|
497
|
+
/**
|
|
498
|
+
* A component to display a hint
|
|
499
|
+
*/
|
|
500
|
+
var TUI_HINT_COMPONENT = i3.tuiCreateTokenFromFactory(function () { return TuiHintComponent; });
|
|
355
501
|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
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
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
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
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
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
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
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
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
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
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
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
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
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
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
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
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
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
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
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
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
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
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
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
|
-
|
|
1146
|
-
|
|
1290
|
+
/**
|
|
1291
|
+
* Generated bundle index. Do not edit.
|
|
1292
|
+
*/
|
|
1147
1293
|
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
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
|
-
|
|
1312
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1167
1313
|
|
|
1168
1314
|
}));
|
|
1169
1315
|
//# sourceMappingURL=taiga-ui-core-directives-hint.umd.js.map
|