@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,808 +1,954 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/core/abstract'), require('@taiga-ui/cdk'), require('@taiga-ui/core/directives'), require('rxjs/operators'), require('rxjs'), require('@taiga-ui/core/directives/dropdown'), require('@taiga-ui/core/utils/miscellaneous'), require('@tinkoff/ng-event-plugins'), require('@tinkoff/ng-polymorpheus'), require('@angular/common')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/core/components/hosted-dropdown', ['exports', '@angular/core', '@taiga-ui/core/abstract', '@taiga-ui/cdk', '@taiga-ui/core/directives', 'rxjs/operators', 'rxjs', '@taiga-ui/core/directives/dropdown', '@taiga-ui/core/utils/miscellaneous', '@tinkoff/ng-event-plugins', '@tinkoff/ng-polymorpheus', '@angular/common'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.components = global["taiga-ui"].core.components || {}, global["taiga-ui"].core.components["hosted-dropdown"] = {}), global.ng.core, global["taiga-ui"].core.abstract, global.i1, global["taiga-ui"].core.directives, global.rxjs.operators, global.rxjs, global["taiga-ui"].core.directives.dropdown, global["taiga-ui"].core.utils.miscellaneous, global.ngEventPlugins, global.i5, global.ng.common));
|
|
5
5
|
})(this, (function (exports, i0, abstract, i1, i2, operators, i1$1, i4, miscellaneous, ngEventPlugins, i5, i6) { '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 i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
29
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
30
|
+
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
31
|
+
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
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
|
-
|
|
355
|
-
|
|
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
|
-
|
|
497
|
+
var TuiAccessorProxyDirective = /** @class */ (function (_super) {
|
|
498
|
+
__extends(TuiAccessorProxyDirective, _super);
|
|
499
|
+
function TuiAccessorProxyDirective() {
|
|
500
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
501
|
+
_this.type = 'dummy';
|
|
502
|
+
return _this;
|
|
503
|
+
}
|
|
504
|
+
TuiAccessorProxyDirective.prototype.getPosition = function () {
|
|
505
|
+
return [0, 0];
|
|
506
|
+
};
|
|
507
|
+
return TuiAccessorProxyDirective;
|
|
508
|
+
}(abstract.TuiPositionAccessor));
|
|
509
|
+
TuiAccessorProxyDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiAccessorProxyDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
510
|
+
TuiAccessorProxyDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiAccessorProxyDirective, selector: "[tuiAccessorProxy]", providers: [
|
|
511
|
+
{
|
|
512
|
+
provide: abstract.TuiPositionAccessor,
|
|
513
|
+
multi: true,
|
|
514
|
+
deps: [
|
|
515
|
+
[new i0.Optional(), new i0.SkipSelf(), TuiAccessorProxyDirective],
|
|
516
|
+
TuiAccessorProxyDirective,
|
|
517
|
+
],
|
|
518
|
+
useFactory: function (accessor, fallback) { return accessor || fallback; },
|
|
519
|
+
},
|
|
520
|
+
], usesInheritance: true, ngImport: i0__namespace });
|
|
521
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiAccessorProxyDirective, decorators: [{
|
|
522
|
+
type: i0.Directive,
|
|
523
|
+
args: [{
|
|
524
|
+
selector: '[tuiAccessorProxy]',
|
|
525
|
+
providers: [
|
|
526
|
+
{
|
|
527
|
+
provide: abstract.TuiPositionAccessor,
|
|
528
|
+
multi: true,
|
|
529
|
+
deps: [
|
|
530
|
+
[new i0.Optional(), new i0.SkipSelf(), TuiAccessorProxyDirective],
|
|
531
|
+
TuiAccessorProxyDirective,
|
|
532
|
+
],
|
|
533
|
+
useFactory: function (accessor, fallback) { return accessor || fallback; },
|
|
534
|
+
},
|
|
535
|
+
],
|
|
536
|
+
}]
|
|
537
|
+
}] });
|
|
392
538
|
|
|
393
|
-
|
|
539
|
+
var TUI_HOSTED_DROPDOWN_COMPONENT = new i0.InjectionToken("[TUI_HOSTED_DROPDOWN_COMPONENT]");
|
|
394
540
|
|
|
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
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
541
|
+
var TuiDropdownOpenMonitorDirective = /** @class */ (function () {
|
|
542
|
+
function TuiDropdownOpenMonitorDirective(destroy$, hosted, dropdown, open) {
|
|
543
|
+
open === null || open === void 0 ? void 0 : open.tuiDropdownOpenChange.pipe(operators.filter(function (value) { return value && open.dropdown === dropdown && !hosted.focused; }), operators.takeUntil(destroy$)).subscribe(function () {
|
|
544
|
+
var _a;
|
|
545
|
+
(_a = hosted.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
546
|
+
hosted.updateOpen(true);
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
return TuiDropdownOpenMonitorDirective;
|
|
550
|
+
}());
|
|
551
|
+
TuiDropdownOpenMonitorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownOpenMonitorDirective, deps: [{ token: i1.TuiDestroyService, self: true }, { token: TUI_HOSTED_DROPDOWN_COMPONENT }, { token: i2.TuiDropdownDirective, self: true }, { token: i2.TuiDropdownOpenDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
552
|
+
TuiDropdownOpenMonitorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiDropdownOpenMonitorDirective, selector: "[tuiDropdownOpenMonitor]", providers: [i1.TuiDestroyService], ngImport: i0__namespace });
|
|
553
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownOpenMonitorDirective, decorators: [{
|
|
554
|
+
type: i0.Directive,
|
|
555
|
+
args: [{
|
|
556
|
+
selector: '[tuiDropdownOpenMonitor]',
|
|
557
|
+
providers: [i1.TuiDestroyService],
|
|
558
|
+
}]
|
|
559
|
+
}], ctorParameters: function () {
|
|
560
|
+
return [{ type: i1__namespace.Observable, decorators: [{
|
|
561
|
+
type: i0.Self
|
|
562
|
+
}, {
|
|
563
|
+
type: i0.Inject,
|
|
564
|
+
args: [i1.TuiDestroyService]
|
|
565
|
+
}] }, { type: undefined, decorators: [{
|
|
566
|
+
type: i0.Inject,
|
|
567
|
+
args: [TUI_HOSTED_DROPDOWN_COMPONENT]
|
|
568
|
+
}] }, { type: i2__namespace.TuiDropdownDirective, decorators: [{
|
|
569
|
+
type: i0.Self
|
|
570
|
+
}, {
|
|
571
|
+
type: i0.Inject,
|
|
572
|
+
args: [i2.TuiDropdownDirective]
|
|
573
|
+
}] }, { type: i2__namespace.TuiDropdownOpenDirective, decorators: [{
|
|
574
|
+
type: i0.Optional
|
|
575
|
+
}, {
|
|
576
|
+
type: i0.Inject,
|
|
577
|
+
args: [i2.TuiDropdownOpenDirective]
|
|
578
|
+
}] }];
|
|
579
|
+
} });
|
|
434
580
|
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
581
|
+
var TuiHostedDropdownConnectorDirective = /** @class */ (function () {
|
|
582
|
+
function TuiHostedDropdownConnectorDirective() {
|
|
583
|
+
}
|
|
584
|
+
return TuiHostedDropdownConnectorDirective;
|
|
585
|
+
}());
|
|
586
|
+
TuiHostedDropdownConnectorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHostedDropdownConnectorDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
587
|
+
TuiHostedDropdownConnectorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHostedDropdownConnectorDirective, selector: "[tuiHostedDropdownHost]", ngImport: i0__namespace });
|
|
588
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHostedDropdownConnectorDirective, decorators: [{
|
|
589
|
+
type: i0.Directive,
|
|
590
|
+
args: [{
|
|
591
|
+
selector: '[tuiHostedDropdownHost]',
|
|
592
|
+
}]
|
|
593
|
+
}] });
|
|
448
594
|
|
|
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
|
-
|
|
523
|
-
|
|
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
|
-
|
|
575
|
-
|
|
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
|
-
|
|
610
|
-
|
|
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
|
-
|
|
595
|
+
function shouldClose(event) {
|
|
596
|
+
var _a;
|
|
597
|
+
return ('key' in event &&
|
|
598
|
+
event.key.toLowerCase() === 'escape' &&
|
|
599
|
+
this.canOpen &&
|
|
600
|
+
this.open &&
|
|
601
|
+
!((_a = this.dropdown) === null || _a === void 0 ? void 0 : _a.nextElementSibling));
|
|
602
|
+
}
|
|
603
|
+
var TuiHostedDropdownComponent = /** @class */ (function () {
|
|
604
|
+
function TuiHostedDropdownComponent(hover$, el) {
|
|
605
|
+
var _this = this;
|
|
606
|
+
this.hover$ = hover$;
|
|
607
|
+
this.el = el;
|
|
608
|
+
this.openChange$ = new i1$1.BehaviorSubject(false);
|
|
609
|
+
this.hostHover$ = i1$1.combineLatest([
|
|
610
|
+
i1.tuiTypedFromEvent(this.el.nativeElement, 'mouseover').pipe(operators.map(function (e) { return _this.computedHost.contains(i1.tuiGetActualTarget(e)); }), operators.switchMap(function (visible) {
|
|
611
|
+
var _a, _b;
|
|
612
|
+
return i1$1.of(visible).pipe(operators.delay((visible ? (_a = _this.hover$) === null || _a === void 0 ? void 0 : _a.showDelay : (_b = _this.hover$) === null || _b === void 0 ? void 0 : _b.hideDelay) || 0));
|
|
613
|
+
})),
|
|
614
|
+
this.hover$ || i1$1.EMPTY,
|
|
615
|
+
]).pipe(operators.map(function (_c) {
|
|
616
|
+
var _d = __read(_c, 2), visible = _d[0], hovered = _d[1];
|
|
617
|
+
return visible && hovered;
|
|
618
|
+
}));
|
|
619
|
+
this.sided = false;
|
|
620
|
+
this.canOpen = true;
|
|
621
|
+
this.open$ = i1$1.merge(this.openChange$, this.hostHover$).pipe(operators.skip(1), operators.distinctUntilChanged(), operators.share());
|
|
622
|
+
this.focusedChange = new i0.EventEmitter();
|
|
623
|
+
this.focus$ = new i1$1.BehaviorSubject(false);
|
|
624
|
+
/** TODO: rename in 4.0 */
|
|
625
|
+
this.openChange = this.openChange$;
|
|
626
|
+
this.close = function () { return _this.updateOpen(false); };
|
|
627
|
+
}
|
|
628
|
+
Object.defineProperty(TuiHostedDropdownComponent.prototype, "open", {
|
|
629
|
+
get: function () {
|
|
630
|
+
return this.openChange.value;
|
|
631
|
+
},
|
|
632
|
+
set: function (open) {
|
|
633
|
+
this.openChange.next(open);
|
|
634
|
+
},
|
|
635
|
+
enumerable: false,
|
|
636
|
+
configurable: true
|
|
637
|
+
});
|
|
638
|
+
Object.defineProperty(TuiHostedDropdownComponent.prototype, "host", {
|
|
639
|
+
get: function () {
|
|
640
|
+
var _a;
|
|
641
|
+
return ((_a = this.dropdownHost) === null || _a === void 0 ? void 0 : _a.nativeElement) || this.el.nativeElement;
|
|
642
|
+
},
|
|
643
|
+
enumerable: false,
|
|
644
|
+
configurable: true
|
|
645
|
+
});
|
|
646
|
+
Object.defineProperty(TuiHostedDropdownComponent.prototype, "computedHost", {
|
|
647
|
+
get: function () {
|
|
648
|
+
var _a;
|
|
649
|
+
return (((_a = this.dropdownHost) === null || _a === void 0 ? void 0 : _a.nativeElement) ||
|
|
650
|
+
this.nativeFocusableElement ||
|
|
651
|
+
this.el.nativeElement);
|
|
652
|
+
},
|
|
653
|
+
enumerable: false,
|
|
654
|
+
configurable: true
|
|
655
|
+
});
|
|
656
|
+
Object.defineProperty(TuiHostedDropdownComponent.prototype, "dropdown", {
|
|
657
|
+
get: function () {
|
|
658
|
+
var _a, _b;
|
|
659
|
+
return (_b = (_a = this.dropdownDirective) === null || _a === void 0 ? void 0 : _a.dropdownBoxRef) === null || _b === void 0 ? void 0 : _b.location.nativeElement;
|
|
660
|
+
},
|
|
661
|
+
enumerable: false,
|
|
662
|
+
configurable: true
|
|
663
|
+
});
|
|
664
|
+
Object.defineProperty(TuiHostedDropdownComponent.prototype, "nativeFocusableElement", {
|
|
665
|
+
get: function () {
|
|
666
|
+
return i1.tuiIsNativeKeyboardFocusable(this.host)
|
|
667
|
+
? this.host
|
|
668
|
+
: i1.tuiGetClosestFocusable({
|
|
669
|
+
initial: this.host,
|
|
670
|
+
root: this.el.nativeElement,
|
|
671
|
+
});
|
|
672
|
+
},
|
|
673
|
+
enumerable: false,
|
|
674
|
+
configurable: true
|
|
675
|
+
});
|
|
676
|
+
Object.defineProperty(TuiHostedDropdownComponent.prototype, "focused", {
|
|
677
|
+
get: function () {
|
|
678
|
+
return (i1.tuiIsNativeFocusedIn(this.host) ||
|
|
679
|
+
(this.open &&
|
|
680
|
+
!!this.wrapper &&
|
|
681
|
+
i1.tuiIsNativeFocusedIn(this.wrapper.nativeElement)));
|
|
682
|
+
},
|
|
683
|
+
enumerable: false,
|
|
684
|
+
configurable: true
|
|
685
|
+
});
|
|
686
|
+
TuiHostedDropdownComponent.prototype.onFocusInOut = function () {
|
|
687
|
+
this.focus$.next(this.focused);
|
|
688
|
+
};
|
|
689
|
+
TuiHostedDropdownComponent.prototype.onFocusIn = function (target) {
|
|
690
|
+
if (!this.computedHost.contains(target)) {
|
|
691
|
+
this.updateOpen(false);
|
|
692
|
+
}
|
|
693
|
+
};
|
|
694
|
+
TuiHostedDropdownComponent.prototype.onClick = function (target) {
|
|
695
|
+
var _a;
|
|
696
|
+
if (!this.hostEditable &&
|
|
697
|
+
this.computedHost.contains(target) &&
|
|
698
|
+
!((_a = this.hover$) === null || _a === void 0 ? void 0 : _a.hovered)) {
|
|
699
|
+
this.updateOpen(!this.open);
|
|
700
|
+
}
|
|
701
|
+
};
|
|
702
|
+
TuiHostedDropdownComponent.prototype.onKeyDownEsc = function (event) {
|
|
703
|
+
event.preventDefault();
|
|
704
|
+
this.closeDropdown();
|
|
705
|
+
};
|
|
706
|
+
TuiHostedDropdownComponent.prototype.onArrow = function (event, down) {
|
|
707
|
+
this.focusDropdown(event, down);
|
|
708
|
+
};
|
|
709
|
+
TuiHostedDropdownComponent.prototype.onKeydown = function (_c) {
|
|
710
|
+
var key = _c.key, target = _c.target, defaultPrevented = _c.defaultPrevented;
|
|
711
|
+
if (!defaultPrevented &&
|
|
712
|
+
miscellaneous.tuiIsEditingKey(key) &&
|
|
713
|
+
this.hostEditable &&
|
|
714
|
+
i1.tuiIsHTMLElement(target) &&
|
|
715
|
+
!i1.tuiIsElementEditable(target)) {
|
|
716
|
+
this.focusHost();
|
|
717
|
+
}
|
|
718
|
+
};
|
|
719
|
+
TuiHostedDropdownComponent.prototype.onActiveZone = function (active) {
|
|
720
|
+
this.updateFocused(active);
|
|
721
|
+
if (!active) {
|
|
722
|
+
this.updateOpen(false);
|
|
723
|
+
}
|
|
724
|
+
};
|
|
725
|
+
TuiHostedDropdownComponent.prototype.onHostObscured = function (obscured) {
|
|
726
|
+
if (obscured) {
|
|
727
|
+
this.closeDropdown();
|
|
728
|
+
}
|
|
729
|
+
};
|
|
730
|
+
TuiHostedDropdownComponent.prototype.updateOpen = function (open) {
|
|
731
|
+
if (!open || this.canOpen) {
|
|
732
|
+
this.open = open;
|
|
733
|
+
}
|
|
734
|
+
};
|
|
735
|
+
Object.defineProperty(TuiHostedDropdownComponent.prototype, "hostEditable", {
|
|
736
|
+
get: function () {
|
|
737
|
+
return i1.tuiIsElementEditable(this.computedHost);
|
|
738
|
+
},
|
|
739
|
+
enumerable: false,
|
|
740
|
+
configurable: true
|
|
741
|
+
});
|
|
742
|
+
TuiHostedDropdownComponent.prototype.focusDropdown = function (event, first) {
|
|
743
|
+
var host = this.nativeFocusableElement;
|
|
744
|
+
if (!host ||
|
|
745
|
+
!i1.tuiIsHTMLElement(host) ||
|
|
746
|
+
!i1.tuiIsElement(event.target) ||
|
|
747
|
+
!host.contains(event.target)) {
|
|
748
|
+
return;
|
|
749
|
+
}
|
|
750
|
+
if (!this.wrapper ||
|
|
751
|
+
!this.open ||
|
|
752
|
+
!this.dropdown ||
|
|
753
|
+
!i1.tuiIsHTMLElement(this.wrapper.nativeElement.nextElementSibling)) {
|
|
754
|
+
this.updateOpen(true);
|
|
755
|
+
if (!i1.tuiIsElementEditable(host)) {
|
|
756
|
+
event.preventDefault();
|
|
757
|
+
}
|
|
758
|
+
return;
|
|
759
|
+
}
|
|
760
|
+
var initial = first
|
|
761
|
+
? this.wrapper.nativeElement
|
|
762
|
+
: this.wrapper.nativeElement.nextElementSibling;
|
|
763
|
+
var focusable = i1.tuiGetClosestFocusable({
|
|
764
|
+
initial: initial,
|
|
765
|
+
root: this.wrapper.nativeElement,
|
|
766
|
+
previous: !first,
|
|
767
|
+
});
|
|
768
|
+
if (!focusable) {
|
|
769
|
+
return;
|
|
770
|
+
}
|
|
771
|
+
focusable.focus();
|
|
772
|
+
event.preventDefault();
|
|
773
|
+
};
|
|
774
|
+
TuiHostedDropdownComponent.prototype.closeDropdown = function () {
|
|
775
|
+
if (this.focused) {
|
|
776
|
+
this.focusHost();
|
|
777
|
+
}
|
|
778
|
+
this.updateOpen(false);
|
|
779
|
+
};
|
|
780
|
+
TuiHostedDropdownComponent.prototype.focusHost = function () {
|
|
781
|
+
var host = this.nativeFocusableElement;
|
|
782
|
+
if (host) {
|
|
783
|
+
host.focus({ preventScroll: true });
|
|
784
|
+
}
|
|
785
|
+
};
|
|
786
|
+
TuiHostedDropdownComponent.prototype.updateFocused = function (focused) {
|
|
787
|
+
this.focusedChange.emit(focused);
|
|
788
|
+
};
|
|
789
|
+
return TuiHostedDropdownComponent;
|
|
790
|
+
}());
|
|
791
|
+
TuiHostedDropdownComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHostedDropdownComponent, deps: [{ token: i4.TuiDropdownHoverDirective, optional: true, self: true }, { token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
792
|
+
TuiHostedDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: { content: "content", sided: "sided", canOpen: "canOpen", open: "open" }, outputs: { open$: "openChange", focusedChange: "focusedChange" }, host: { listeners: { "$.class._hosted_dropdown_focused": "focus$", "focusin.capture.silent": "onFocusInOut()", "focusout.capture.silent": "onFocusInOut()", "focusin": "onFocusIn($event.target)", "click": "onClick($event.target)", "document:keydown.silent.capture": "onKeyDownEsc($event)", "keydown.arrowDown": "onArrow($event,true)", "keydown.arrowUp": "onArrow($event,false)" }, properties: { "$.class._hosted_dropdown_focused": "focus$" } }, providers: [
|
|
793
|
+
i1.tuiAsFocusableItemAccessor(TuiHostedDropdownComponent),
|
|
794
|
+
{
|
|
795
|
+
provide: TuiAccessorProxyDirective,
|
|
796
|
+
deps: [[new i0.Optional(), new i0.Self(), abstract.TuiPositionAccessor]],
|
|
797
|
+
useFactory: function (position) { return position === null || position === void 0 ? void 0 : position[0]; },
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
provide: TUI_HOSTED_DROPDOWN_COMPONENT,
|
|
801
|
+
useExisting: TuiHostedDropdownComponent,
|
|
802
|
+
},
|
|
803
|
+
], queries: [{ propertyName: "dropdownHost", first: true, predicate: TuiHostedDropdownConnectorDirective, descendants: true, read: i0.ElementRef }], viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["wrapper"], descendants: true, read: i0.ElementRef }, { propertyName: "dropdownDirective", first: true, predicate: i4.TuiDropdownDirective, descendants: true }, { propertyName: "activeZone", first: true, predicate: i1.TuiActiveZoneDirective, descendants: true }], ngImport: i0__namespace, template: "<div\n *tuiLet=\"(open$ | async) ?? openChange.value as isOpen\"\n #activeZone=\"tuiActiveZone\"\n tuiAccessorProxy\n tuiDropdownOpenMonitor\n class=\"t-wrapper\"\n [tuiDropdown]=\"dropdown\"\n [tuiDropdownManual]=\"isOpen && canOpen\"\n [tuiDropdownSided]=\"sided\"\n [tuiObscuredEnabled]=\"isOpen\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n (tuiObscured)=\"onHostObscured($event)\"\n>\n <ng-content></ng-content>\n <ng-template\n #dropdown=\"polymorpheus\"\n [polymorpheus]=\"context\"\n >\n <div\n #wrapper\n class=\"t-dropdown\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n *polymorpheusOutlet=\"\n content as text;\n context: {\n $implicit: activeZone,\n close: close\n }\n \"\n class=\"t-primitive\"\n >\n {{ text }}\n </div>\n </div>\n <!--This DIV is here to start backwards TreeWalker for focusing last focusable item on ArrowUp-->\n <div></div>\n </ng-template>\n</div>\n", styles: [":host{display:inline-flex}.t-wrapper{border-radius:inherit;height:inherit;flex:1 1 auto;width:100%}.t-dropdown{height:100%}.t-primitive{padding:1rem}\n"], directives: [{ type: i1__namespace$1.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: TuiAccessorProxyDirective, selector: "[tuiAccessorProxy]" }, { type: TuiDropdownOpenMonitorDirective, selector: "[tuiDropdownOpenMonitor]" }, { type: i4__namespace.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { type: i4__namespace.TuiDropdownDriverDirective, selector: "[tuiDropdown]" }, { type: i4__namespace.TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: ["tuiDropdownManual"] }, { type: i4__namespace.TuiDropdownPositionSidedDirective, selector: "[tuiDropdownSided]", inputs: ["tuiDropdownSided", "tuiDropdownSidedOffset"] }, { type: i1__namespace$1.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i1__namespace$1.TuiObscuredDirective, selector: "[tuiObscured]", inputs: ["tuiObscuredEnabled"], outputs: ["tuiObscured"] }, { type: i5__namespace.PolymorpheusTemplate, selector: "ng-template[polymorpheus]", inputs: ["polymorpheus"], exportAs: ["polymorpheus"] }, { type: i5__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], pipes: { "async": i6__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
804
|
+
__decorate([
|
|
805
|
+
ngEventPlugins.shouldCall(shouldClose)
|
|
806
|
+
], TuiHostedDropdownComponent.prototype, "onKeyDownEsc", null);
|
|
807
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHostedDropdownComponent, decorators: [{
|
|
808
|
+
type: i0.Component,
|
|
809
|
+
args: [{
|
|
810
|
+
selector: 'tui-hosted-dropdown',
|
|
811
|
+
templateUrl: './hosted-dropdown.template.html',
|
|
812
|
+
styleUrls: ['./hosted-dropdown.style.less'],
|
|
813
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
814
|
+
providers: [
|
|
815
|
+
i1.tuiAsFocusableItemAccessor(TuiHostedDropdownComponent),
|
|
816
|
+
{
|
|
817
|
+
provide: TuiAccessorProxyDirective,
|
|
818
|
+
deps: [[new i0.Optional(), new i0.Self(), abstract.TuiPositionAccessor]],
|
|
819
|
+
useFactory: function (position) { return position === null || position === void 0 ? void 0 : position[0]; },
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
provide: TUI_HOSTED_DROPDOWN_COMPONENT,
|
|
823
|
+
useExisting: TuiHostedDropdownComponent,
|
|
824
|
+
},
|
|
825
|
+
],
|
|
826
|
+
host: {
|
|
827
|
+
'[$.class._hosted_dropdown_focused]': 'focus$',
|
|
828
|
+
'($.class._hosted_dropdown_focused)': 'focus$',
|
|
829
|
+
},
|
|
830
|
+
}]
|
|
831
|
+
}], ctorParameters: function () {
|
|
832
|
+
return [{ type: i4__namespace.TuiDropdownHoverDirective, decorators: [{
|
|
833
|
+
type: i0.Self
|
|
834
|
+
}, {
|
|
835
|
+
type: i0.Optional
|
|
836
|
+
}, {
|
|
837
|
+
type: i0.Inject,
|
|
838
|
+
args: [i4.TuiDropdownHoverDirective]
|
|
839
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
840
|
+
type: i0.Inject,
|
|
841
|
+
args: [i0.ElementRef]
|
|
842
|
+
}] }];
|
|
843
|
+
}, propDecorators: { dropdownHost: [{
|
|
844
|
+
type: i0.ContentChild,
|
|
845
|
+
args: [TuiHostedDropdownConnectorDirective, { read: i0.ElementRef }]
|
|
846
|
+
}], wrapper: [{
|
|
847
|
+
type: i0.ViewChild,
|
|
848
|
+
args: ['wrapper', { read: i0.ElementRef }]
|
|
849
|
+
}], dropdownDirective: [{
|
|
850
|
+
type: i0.ViewChild,
|
|
851
|
+
args: [i4.TuiDropdownDirective]
|
|
852
|
+
}], activeZone: [{
|
|
853
|
+
type: i0.ViewChild,
|
|
854
|
+
args: [i1.TuiActiveZoneDirective]
|
|
855
|
+
}], content: [{
|
|
856
|
+
type: i0.Input
|
|
857
|
+
}], sided: [{
|
|
858
|
+
type: i0.Input
|
|
859
|
+
}], canOpen: [{
|
|
860
|
+
type: i0.Input
|
|
861
|
+
}], open$: [{
|
|
862
|
+
type: i0.Output,
|
|
863
|
+
args: ['openChange']
|
|
864
|
+
}], focusedChange: [{
|
|
865
|
+
type: i0.Output
|
|
866
|
+
}], open: [{
|
|
867
|
+
type: i0.Input
|
|
868
|
+
}], onFocusInOut: [{
|
|
869
|
+
type: i0.HostListener,
|
|
870
|
+
args: ['focusin.capture.silent']
|
|
871
|
+
}, {
|
|
872
|
+
type: i0.HostListener,
|
|
873
|
+
args: ['focusout.capture.silent']
|
|
874
|
+
}], onFocusIn: [{
|
|
875
|
+
type: i0.HostListener,
|
|
876
|
+
args: ['focusin', ['$event.target']]
|
|
877
|
+
}], onClick: [{
|
|
878
|
+
type: i0.HostListener,
|
|
879
|
+
args: ['click', ['$event.target']]
|
|
880
|
+
}], onKeyDownEsc: [{
|
|
881
|
+
type: i0.HostListener,
|
|
882
|
+
args: ['document:keydown.silent.capture', ['$event']]
|
|
883
|
+
}], onArrow: [{
|
|
884
|
+
type: i0.HostListener,
|
|
885
|
+
args: ['keydown.arrowDown', ['$event', 'true']]
|
|
886
|
+
}, {
|
|
887
|
+
type: i0.HostListener,
|
|
888
|
+
args: ['keydown.arrowUp', ['$event', 'false']]
|
|
889
|
+
}] } });
|
|
744
890
|
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
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
|
-
|
|
891
|
+
var TuiHostedDropdownModule = /** @class */ (function () {
|
|
892
|
+
function TuiHostedDropdownModule() {
|
|
893
|
+
}
|
|
894
|
+
return TuiHostedDropdownModule;
|
|
895
|
+
}());
|
|
896
|
+
TuiHostedDropdownModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHostedDropdownModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
897
|
+
TuiHostedDropdownModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHostedDropdownModule, declarations: [TuiAccessorProxyDirective,
|
|
898
|
+
TuiDropdownOpenMonitorDirective,
|
|
899
|
+
TuiHostedDropdownComponent,
|
|
900
|
+
TuiHostedDropdownConnectorDirective], imports: [i6.CommonModule,
|
|
901
|
+
i5.PolymorpheusModule,
|
|
902
|
+
i1.TuiLetModule,
|
|
903
|
+
i1.TuiObscuredModule,
|
|
904
|
+
i1.TuiActiveZoneModule,
|
|
905
|
+
i4.TuiDropdownModule], exports: [TuiHostedDropdownComponent,
|
|
906
|
+
TuiHostedDropdownConnectorDirective,
|
|
907
|
+
i4.TuiDropdownOptionsDirective] });
|
|
908
|
+
TuiHostedDropdownModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHostedDropdownModule, imports: [[
|
|
909
|
+
i6.CommonModule,
|
|
910
|
+
i5.PolymorpheusModule,
|
|
911
|
+
i1.TuiLetModule,
|
|
912
|
+
i1.TuiObscuredModule,
|
|
913
|
+
i1.TuiActiveZoneModule,
|
|
914
|
+
i4.TuiDropdownModule,
|
|
915
|
+
]] });
|
|
916
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHostedDropdownModule, decorators: [{
|
|
917
|
+
type: i0.NgModule,
|
|
918
|
+
args: [{
|
|
919
|
+
imports: [
|
|
920
|
+
i6.CommonModule,
|
|
921
|
+
i5.PolymorpheusModule,
|
|
922
|
+
i1.TuiLetModule,
|
|
923
|
+
i1.TuiObscuredModule,
|
|
924
|
+
i1.TuiActiveZoneModule,
|
|
925
|
+
i4.TuiDropdownModule,
|
|
926
|
+
],
|
|
927
|
+
declarations: [
|
|
928
|
+
TuiAccessorProxyDirective,
|
|
929
|
+
TuiDropdownOpenMonitorDirective,
|
|
930
|
+
TuiHostedDropdownComponent,
|
|
931
|
+
TuiHostedDropdownConnectorDirective,
|
|
932
|
+
],
|
|
933
|
+
exports: [
|
|
934
|
+
TuiHostedDropdownComponent,
|
|
935
|
+
TuiHostedDropdownConnectorDirective,
|
|
936
|
+
i4.TuiDropdownOptionsDirective,
|
|
937
|
+
],
|
|
938
|
+
}]
|
|
939
|
+
}] });
|
|
794
940
|
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
941
|
+
/**
|
|
942
|
+
* Generated bundle index. Do not edit.
|
|
943
|
+
*/
|
|
798
944
|
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
945
|
+
exports.TuiAccessorProxyDirective = TuiAccessorProxyDirective;
|
|
946
|
+
exports.TuiDropdownOpenMonitorDirective = TuiDropdownOpenMonitorDirective;
|
|
947
|
+
exports.TuiHostedDropdownComponent = TuiHostedDropdownComponent;
|
|
948
|
+
exports.TuiHostedDropdownConnectorDirective = TuiHostedDropdownConnectorDirective;
|
|
949
|
+
exports.TuiHostedDropdownModule = TuiHostedDropdownModule;
|
|
804
950
|
|
|
805
|
-
|
|
951
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
806
952
|
|
|
807
953
|
}));
|
|
808
954
|
//# sourceMappingURL=taiga-ui-core-components-hosted-dropdown.umd.js.map
|