@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,1390 +1,1536 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ng-web-apis/common'), require('@taiga-ui/cdk'), require('@taiga-ui/core/abstract'), require('@taiga-ui/core/animations'), require('@taiga-ui/core/providers'), require('@taiga-ui/core/services'), require('@taiga-ui/core/tokens'), require('rxjs/operators'), require('@taiga-ui/core/utils'), require('@tinkoff/ng-polymorpheus'), require('rxjs'), require('@taiga-ui/core/components/scrollbar'), require('@tinkoff/ng-event-plugins'), require('@angular/common')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/core/directives/dropdown', ['exports', '@angular/core', '@ng-web-apis/common', '@taiga-ui/cdk', '@taiga-ui/core/abstract', '@taiga-ui/core/animations', '@taiga-ui/core/providers', '@taiga-ui/core/services', '@taiga-ui/core/tokens', 'rxjs/operators', '@taiga-ui/core/utils', '@tinkoff/ng-polymorpheus', 'rxjs', '@taiga-ui/core/components/scrollbar', '@tinkoff/ng-event-plugins', '@angular/common'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.directives = global["taiga-ui"].core.directives || {}, global["taiga-ui"].core.directives.dropdown = {}), global.ng.core, global.common, global.i2, global["taiga-ui"].core.abstract, global["taiga-ui"].core.animations, global["taiga-ui"].core.providers, global["taiga-ui"].core.services, global["taiga-ui"].core.tokens, global.rxjs.operators, global["taiga-ui"].core.utils, global.i3, global.rxjs, global["taiga-ui"].core.components.scrollbar, global.ngEventPlugins, global.ng.common));
|
|
5
5
|
})(this, (function (exports, i0, common, i2, i1$1, animations, providers, i4, tokens, operators, utils, i3, i1, i1$2, ngEventPlugins, common$1) { '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 i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
27
|
+
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
28
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
29
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
30
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
31
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
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 dropdown
|
|
499
|
+
*/
|
|
500
|
+
var TUI_DROPDOWN_COMPONENT = i2.tuiCreateTokenFromFactory(function () { return TuiDropdownComponent; });
|
|
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
|
-
|
|
502
|
+
var TuiDropdownOpenDirective = /** @class */ (function () {
|
|
503
|
+
function TuiDropdownOpenDirective() {
|
|
504
|
+
this.tuiDropdownOpen = false;
|
|
505
|
+
this.tuiDropdownOpenChange = new i0.EventEmitter();
|
|
506
|
+
}
|
|
507
|
+
TuiDropdownOpenDirective.prototype.update = function (open) {
|
|
508
|
+
this.tuiDropdownOpen = open;
|
|
509
|
+
this.tuiDropdownOpenChange.emit(open);
|
|
510
|
+
};
|
|
511
|
+
TuiDropdownOpenDirective.prototype.ngOnChanges = function () {
|
|
512
|
+
var _a;
|
|
513
|
+
(_a = this.dropdown) === null || _a === void 0 ? void 0 : _a.toggle(this.tuiDropdownOpen);
|
|
514
|
+
};
|
|
515
|
+
return TuiDropdownOpenDirective;
|
|
516
|
+
}());
|
|
517
|
+
TuiDropdownOpenDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownOpenDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
518
|
+
TuiDropdownOpenDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiDropdownOpenDirective, selector: "[tuiDropdownOpen],[tuiDropdownOpenChange]", inputs: { tuiDropdownOpen: "tuiDropdownOpen" }, outputs: { tuiDropdownOpenChange: "tuiDropdownOpenChange" }, usesOnChanges: true, ngImport: i0__namespace });
|
|
519
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownOpenDirective, decorators: [{
|
|
520
|
+
type: i0.Directive,
|
|
521
|
+
args: [{
|
|
522
|
+
selector: '[tuiDropdownOpen],[tuiDropdownOpenChange]',
|
|
523
|
+
}]
|
|
524
|
+
}], propDecorators: { tuiDropdownOpen: [{
|
|
525
|
+
type: i0.Input
|
|
526
|
+
}], tuiDropdownOpenChange: [{
|
|
527
|
+
type: i0.Output
|
|
528
|
+
}] } });
|
|
383
529
|
|
|
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
|
-
|
|
431
|
-
|
|
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
|
-
|
|
530
|
+
var TuiDropdownDirective = /** @class */ (function () {
|
|
531
|
+
function TuiDropdownDirective(destroy$, el, dropdown, injector, dropdownService, open) {
|
|
532
|
+
var _this = this;
|
|
533
|
+
this.el = el;
|
|
534
|
+
this.dropdown = dropdown;
|
|
535
|
+
this.injector = injector;
|
|
536
|
+
this.dropdownService = dropdownService;
|
|
537
|
+
this.open = open;
|
|
538
|
+
this.refresh$ = new i1.Subject();
|
|
539
|
+
this.dropdownBoxRef = null;
|
|
540
|
+
this.type = 'dropdown';
|
|
541
|
+
this.component = new i3.PolymorpheusComponent(this.dropdown, this.injector);
|
|
542
|
+
if (this.open && !this.open.dropdown) {
|
|
543
|
+
this.open.dropdown = this;
|
|
544
|
+
}
|
|
545
|
+
else {
|
|
546
|
+
this.open = null;
|
|
547
|
+
}
|
|
548
|
+
// Ignore multiple change detection triggers at the same frame
|
|
549
|
+
this.refresh$.pipe(operators.throttleTime(0), operators.takeUntil(destroy$)).subscribe(function () {
|
|
550
|
+
var _a, _b;
|
|
551
|
+
(_a = _this.dropdownBoxRef) === null || _a === void 0 ? void 0 : _a.changeDetectorRef.detectChanges();
|
|
552
|
+
(_b = _this.dropdownBoxRef) === null || _b === void 0 ? void 0 : _b.changeDetectorRef.markForCheck();
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
Object.defineProperty(TuiDropdownDirective.prototype, "position", {
|
|
556
|
+
get: function () {
|
|
557
|
+
return utils.tuiCheckFixedPosition(this.el.nativeElement) ? 'fixed' : 'absolute';
|
|
558
|
+
},
|
|
559
|
+
enumerable: false,
|
|
560
|
+
configurable: true
|
|
561
|
+
});
|
|
562
|
+
TuiDropdownDirective.prototype.ngAfterViewChecked = function () {
|
|
563
|
+
this.refresh$.next();
|
|
564
|
+
};
|
|
565
|
+
TuiDropdownDirective.prototype.ngAfterViewInit = function () {
|
|
566
|
+
if (this.open) {
|
|
567
|
+
this.toggle(this.open.tuiDropdownOpen);
|
|
568
|
+
}
|
|
569
|
+
};
|
|
570
|
+
TuiDropdownDirective.prototype.ngOnChanges = function () {
|
|
571
|
+
if (!this.content) {
|
|
572
|
+
this.toggle(false);
|
|
573
|
+
}
|
|
574
|
+
};
|
|
575
|
+
TuiDropdownDirective.prototype.ngOnDestroy = function () {
|
|
576
|
+
this.toggle(false);
|
|
577
|
+
if (this.open) {
|
|
578
|
+
this.open.dropdown = undefined;
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
TuiDropdownDirective.prototype.getClientRect = function () {
|
|
582
|
+
return this.el.nativeElement.getBoundingClientRect();
|
|
583
|
+
};
|
|
584
|
+
TuiDropdownDirective.prototype.toggle = function (show) {
|
|
585
|
+
var _a, _b;
|
|
586
|
+
if (show && this.content && !this.dropdownBoxRef) {
|
|
587
|
+
this.dropdownBoxRef = this.dropdownService.add(this.component);
|
|
588
|
+
(_a = this.open) === null || _a === void 0 ? void 0 : _a.update(true);
|
|
589
|
+
}
|
|
590
|
+
else if (!show && this.dropdownBoxRef) {
|
|
591
|
+
this.dropdownService.remove(this.dropdownBoxRef);
|
|
592
|
+
this.dropdownBoxRef = null;
|
|
593
|
+
(_b = this.open) === null || _b === void 0 ? void 0 : _b.update(false);
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
return TuiDropdownDirective;
|
|
597
|
+
}());
|
|
598
|
+
TuiDropdownDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownDirective, deps: [{ token: i2.TuiDestroyService, self: true }, { token: i0.ElementRef }, { token: TUI_DROPDOWN_COMPONENT }, { token: i0.INJECTOR }, { token: i2.TuiDropdownPortalService }, { token: TuiDropdownOpenDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
599
|
+
TuiDropdownDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: { content: ["tuiDropdown", "content"] }, providers: [
|
|
600
|
+
i2.TuiDestroyService,
|
|
601
|
+
i1$1.tuiAsRectAccessor(TuiDropdownDirective),
|
|
602
|
+
i1$1.tuiAsVehicle(TuiDropdownDirective),
|
|
603
|
+
], exportAs: ["tuiDropdown"], usesOnChanges: true, ngImport: i0__namespace });
|
|
604
|
+
__decorate([
|
|
605
|
+
i2.tuiPure
|
|
606
|
+
], TuiDropdownDirective.prototype, "position", null);
|
|
607
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownDirective, decorators: [{
|
|
608
|
+
type: i0.Directive,
|
|
609
|
+
args: [{
|
|
610
|
+
selector: '[tuiDropdown]:not(ng-container)',
|
|
611
|
+
providers: [
|
|
612
|
+
i2.TuiDestroyService,
|
|
613
|
+
i1$1.tuiAsRectAccessor(TuiDropdownDirective),
|
|
614
|
+
i1$1.tuiAsVehicle(TuiDropdownDirective),
|
|
615
|
+
],
|
|
616
|
+
exportAs: 'tuiDropdown',
|
|
617
|
+
}]
|
|
618
|
+
}], ctorParameters: function () {
|
|
619
|
+
return [{ type: i1__namespace.Observable, decorators: [{
|
|
620
|
+
type: i0.Self
|
|
621
|
+
}, {
|
|
622
|
+
type: i0.Inject,
|
|
623
|
+
args: [i2.TuiDestroyService]
|
|
624
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
625
|
+
type: i0.Inject,
|
|
626
|
+
args: [i0.ElementRef]
|
|
627
|
+
}] }, { type: i0__namespace.Type, decorators: [{
|
|
628
|
+
type: i0.Inject,
|
|
629
|
+
args: [TUI_DROPDOWN_COMPONENT]
|
|
630
|
+
}] }, { type: i0__namespace.Injector, decorators: [{
|
|
631
|
+
type: i0.Inject,
|
|
632
|
+
args: [i0.INJECTOR]
|
|
633
|
+
}] }, { type: i2__namespace.TuiDropdownPortalService, decorators: [{
|
|
634
|
+
type: i0.Inject,
|
|
635
|
+
args: [i2.TuiDropdownPortalService]
|
|
636
|
+
}] }, { type: TuiDropdownOpenDirective, decorators: [{
|
|
637
|
+
type: i0.Optional
|
|
638
|
+
}, {
|
|
639
|
+
type: i0.Inject,
|
|
640
|
+
args: [TuiDropdownOpenDirective]
|
|
641
|
+
}] }];
|
|
642
|
+
}, propDecorators: { content: [{
|
|
643
|
+
type: i0.Input,
|
|
644
|
+
args: ['tuiDropdown']
|
|
645
|
+
}], position: [] } });
|
|
500
646
|
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
647
|
+
/** Default values for hint options */
|
|
648
|
+
var TUI_DROPDOWN_HOVER_DEFAULT_OPTIONS = {
|
|
649
|
+
showDelay: 200,
|
|
650
|
+
hideDelay: 500,
|
|
651
|
+
};
|
|
652
|
+
/**
|
|
653
|
+
* Default parameters for dropdown hover directive
|
|
654
|
+
*/
|
|
655
|
+
var TUI_DROPDOWN_HOVER_OPTIONS = i2.tuiCreateToken(TUI_DROPDOWN_HOVER_DEFAULT_OPTIONS);
|
|
656
|
+
function tuiDropdownHoverOptionsProvider(options) {
|
|
657
|
+
return i2.tuiProvideOptions(TUI_DROPDOWN_HOVER_OPTIONS, options, TUI_DROPDOWN_HOVER_DEFAULT_OPTIONS);
|
|
658
|
+
}
|
|
513
659
|
|
|
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
|
-
|
|
660
|
+
var TuiDropdownHoverDirective = /** @class */ (function (_super) {
|
|
661
|
+
__extends(TuiDropdownHoverDirective, _super);
|
|
662
|
+
function TuiDropdownHoverDirective(hovered$, options, parentHover) {
|
|
663
|
+
var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
|
|
664
|
+
_this.hovered$ = hovered$;
|
|
665
|
+
_this.options = options;
|
|
666
|
+
_this.parentHover = parentHover;
|
|
667
|
+
_this.toggle$ = new i1.Subject();
|
|
668
|
+
_this.stream$ = i1.merge(_this.toggle$, _this.hovered$).pipe(operators.switchMap(function (visible) { return i1.of(visible).pipe(operators.delay(visible ? _this.showDelay : _this.hideDelay)); }), operators.tap(function (visible) {
|
|
669
|
+
_this.hovered = visible;
|
|
670
|
+
}), operators.share());
|
|
671
|
+
_this.showDelay = _this.options.showDelay;
|
|
672
|
+
_this.hideDelay = _this.options.hideDelay;
|
|
673
|
+
_this.hovered = false;
|
|
674
|
+
_this.type = 'dropdown';
|
|
675
|
+
return _this;
|
|
676
|
+
}
|
|
677
|
+
TuiDropdownHoverDirective.prototype.toggle = function (visible) {
|
|
678
|
+
var _a;
|
|
679
|
+
(_a = this.parentHover) === null || _a === void 0 ? void 0 : _a.toggle(visible);
|
|
680
|
+
this.toggle$.next(visible);
|
|
681
|
+
};
|
|
682
|
+
return TuiDropdownHoverDirective;
|
|
683
|
+
}(i1$1.TuiDriver));
|
|
684
|
+
TuiDropdownHoverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownHoverDirective, deps: [{ token: i2.TuiHoveredService }, { token: TUI_DROPDOWN_HOVER_OPTIONS }, { token: TuiDropdownHoverDirective, optional: true, skipSelf: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
685
|
+
TuiDropdownHoverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiDropdownHoverDirective, selector: "[tuiDropdownHover]:not(ng-container)", inputs: { showDelay: ["tuiDropdownShowDelay", "showDelay"], hideDelay: ["tuiDropdownHideDelay", "hideDelay"] }, providers: [i1$1.tuiAsDriver(TuiDropdownHoverDirective), i2.TuiHoveredService], usesInheritance: true, ngImport: i0__namespace });
|
|
686
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownHoverDirective, decorators: [{
|
|
687
|
+
type: i0.Directive,
|
|
688
|
+
args: [{
|
|
689
|
+
selector: '[tuiDropdownHover]:not(ng-container)',
|
|
690
|
+
providers: [i1$1.tuiAsDriver(TuiDropdownHoverDirective), i2.TuiHoveredService],
|
|
691
|
+
}]
|
|
692
|
+
}], ctorParameters: function () {
|
|
693
|
+
return [{ type: i1__namespace.Observable, decorators: [{
|
|
694
|
+
type: i0.Inject,
|
|
695
|
+
args: [i2.TuiHoveredService]
|
|
696
|
+
}] }, { type: undefined, decorators: [{
|
|
697
|
+
type: i0.Inject,
|
|
698
|
+
args: [TUI_DROPDOWN_HOVER_OPTIONS]
|
|
699
|
+
}] }, { type: TuiDropdownHoverDirective, decorators: [{
|
|
700
|
+
type: i0.SkipSelf
|
|
701
|
+
}, {
|
|
702
|
+
type: i0.Optional
|
|
703
|
+
}, {
|
|
704
|
+
type: i0.Inject,
|
|
705
|
+
args: [TuiDropdownHoverDirective]
|
|
706
|
+
}] }];
|
|
707
|
+
}, propDecorators: { showDelay: [{
|
|
708
|
+
type: i0.Input,
|
|
709
|
+
args: ['tuiDropdownShowDelay']
|
|
710
|
+
}], hideDelay: [{
|
|
711
|
+
type: i0.Input,
|
|
712
|
+
args: ['tuiDropdownHideDelay']
|
|
713
|
+
}] } });
|
|
568
714
|
|
|
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
|
-
|
|
715
|
+
/** Default values for dropdown options */
|
|
716
|
+
var TUI_DROPDOWN_DEFAULT_OPTIONS = {
|
|
717
|
+
align: 'left',
|
|
718
|
+
direction: null,
|
|
719
|
+
limitWidth: 'auto',
|
|
720
|
+
maxHeight: 400,
|
|
721
|
+
minHeight: 80,
|
|
722
|
+
offset: 4,
|
|
723
|
+
appearance: '',
|
|
724
|
+
};
|
|
725
|
+
/**
|
|
726
|
+
* Default parameters for dropdown directive
|
|
727
|
+
*/
|
|
728
|
+
var TUI_DROPDOWN_OPTIONS = i2.tuiCreateToken(TUI_DROPDOWN_DEFAULT_OPTIONS);
|
|
729
|
+
var tuiDropdownOptionsProvider = function (override) { return ({
|
|
730
|
+
provide: TUI_DROPDOWN_OPTIONS,
|
|
731
|
+
deps: [
|
|
732
|
+
[new i0.Optional(), TuiDropdownOptionsDirective],
|
|
733
|
+
[new i0.Optional(), new i0.SkipSelf(), TUI_DROPDOWN_OPTIONS],
|
|
734
|
+
],
|
|
735
|
+
useFactory: utils.tuiOverrideOptions(override, TUI_DROPDOWN_DEFAULT_OPTIONS),
|
|
736
|
+
}); };
|
|
737
|
+
var TuiDropdownOptionsDirective = /** @class */ (function () {
|
|
738
|
+
function TuiDropdownOptionsDirective(options) {
|
|
739
|
+
this.options = options;
|
|
740
|
+
this.align = this.options.align;
|
|
741
|
+
this.appearance = this.options.appearance;
|
|
742
|
+
this.direction = this.options.direction;
|
|
743
|
+
this.limitWidth = this.options.limitWidth;
|
|
744
|
+
this.minHeight = this.options.minHeight;
|
|
745
|
+
this.maxHeight = this.options.maxHeight;
|
|
746
|
+
this.offset = this.options.offset;
|
|
747
|
+
}
|
|
748
|
+
return TuiDropdownOptionsDirective;
|
|
749
|
+
}());
|
|
750
|
+
TuiDropdownOptionsDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownOptionsDirective, deps: [{ token: TUI_DROPDOWN_OPTIONS, skipSelf: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
751
|
+
TuiDropdownOptionsDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiDropdownOptionsDirective, selector: "[tuiDropdownAlign], [tuiDropdownAppearance], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownOffset]", inputs: { align: ["tuiDropdownAlign", "align"], appearance: ["tuiDropdownAppearance", "appearance"], direction: ["tuiDropdownDirection", "direction"], limitWidth: ["tuiDropdownLimitWidth", "limitWidth"], minHeight: ["tuiDropdownMinHeight", "minHeight"], maxHeight: ["tuiDropdownMaxHeight", "maxHeight"], offset: ["tuiDropdownOffset", "offset"] }, providers: [
|
|
752
|
+
{
|
|
753
|
+
provide: TUI_DROPDOWN_OPTIONS,
|
|
754
|
+
useExisting: i0.forwardRef(function () { return TuiDropdownOptionsDirective; }),
|
|
755
|
+
},
|
|
756
|
+
], ngImport: i0__namespace });
|
|
757
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownOptionsDirective, decorators: [{
|
|
758
|
+
type: i0.Directive,
|
|
759
|
+
args: [{
|
|
760
|
+
selector: '[tuiDropdownAlign], [tuiDropdownAppearance], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownOffset]',
|
|
761
|
+
providers: [
|
|
762
|
+
{
|
|
763
|
+
provide: TUI_DROPDOWN_OPTIONS,
|
|
764
|
+
useExisting: i0.forwardRef(function () { return TuiDropdownOptionsDirective; }),
|
|
765
|
+
},
|
|
766
|
+
],
|
|
767
|
+
}]
|
|
768
|
+
}], ctorParameters: function () {
|
|
769
|
+
return [{ type: undefined, decorators: [{
|
|
770
|
+
type: i0.SkipSelf
|
|
771
|
+
}, {
|
|
772
|
+
type: i0.Inject,
|
|
773
|
+
args: [TUI_DROPDOWN_OPTIONS]
|
|
774
|
+
}] }];
|
|
775
|
+
}, propDecorators: { align: [{
|
|
776
|
+
type: i0.Input,
|
|
777
|
+
args: ['tuiDropdownAlign']
|
|
778
|
+
}], appearance: [{
|
|
779
|
+
type: i0.Input,
|
|
780
|
+
args: ['tuiDropdownAppearance']
|
|
781
|
+
}], direction: [{
|
|
782
|
+
type: i0.Input,
|
|
783
|
+
args: ['tuiDropdownDirection']
|
|
784
|
+
}], limitWidth: [{
|
|
785
|
+
type: i0.Input,
|
|
786
|
+
args: ['tuiDropdownLimitWidth']
|
|
787
|
+
}], minHeight: [{
|
|
788
|
+
type: i0.Input,
|
|
789
|
+
args: ['tuiDropdownMinHeight']
|
|
790
|
+
}], maxHeight: [{
|
|
791
|
+
type: i0.Input,
|
|
792
|
+
args: ['tuiDropdownMaxHeight']
|
|
793
|
+
}], offset: [{
|
|
794
|
+
type: i0.Input,
|
|
795
|
+
args: ['tuiDropdownOffset']
|
|
796
|
+
}] } });
|
|
651
797
|
|
|
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
|
-
|
|
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
|
-
|
|
798
|
+
/**
|
|
799
|
+
* @description:
|
|
800
|
+
* This component is used to show template in a portal
|
|
801
|
+
* using default style of white rounded box with a shadow
|
|
802
|
+
*/
|
|
803
|
+
var TuiDropdownComponent = /** @class */ (function () {
|
|
804
|
+
function TuiDropdownComponent(visualViewportService, position$, destroy$, directive, animation, el, accessor, win, mode$, options, hoverDirective) {
|
|
805
|
+
var _this = this;
|
|
806
|
+
this.directive = directive;
|
|
807
|
+
this.animation = animation;
|
|
808
|
+
this.el = el;
|
|
809
|
+
this.accessor = accessor;
|
|
810
|
+
this.win = win;
|
|
811
|
+
this.mode$ = mode$;
|
|
812
|
+
this.options = options;
|
|
813
|
+
this.hoverDirective = hoverDirective;
|
|
814
|
+
position$
|
|
815
|
+
.pipe(operators.map(function (point) { return _this.directive.position === 'fixed'
|
|
816
|
+
? visualViewportService.correct(point)
|
|
817
|
+
: point; }), operators.takeUntil(destroy$))
|
|
818
|
+
.subscribe(function (_b) {
|
|
819
|
+
var _c = __read(_b, 2), top = _c[0], left = _c[1];
|
|
820
|
+
_this.update(top, left);
|
|
821
|
+
});
|
|
822
|
+
this.updateWidth(this.accessor.getClientRect().width);
|
|
823
|
+
}
|
|
824
|
+
TuiDropdownComponent.prototype.onHoveredChange = function (hovered) {
|
|
825
|
+
var _a;
|
|
826
|
+
(_a = this.hoverDirective) === null || _a === void 0 ? void 0 : _a.toggle(hovered);
|
|
827
|
+
};
|
|
828
|
+
TuiDropdownComponent.prototype.onTopFocus = function () {
|
|
829
|
+
this.moveFocusOutside(true);
|
|
830
|
+
};
|
|
831
|
+
TuiDropdownComponent.prototype.onBottomFocus = function () {
|
|
832
|
+
this.moveFocusOutside(false);
|
|
833
|
+
};
|
|
834
|
+
TuiDropdownComponent.prototype.update = function (top, left) {
|
|
835
|
+
var _a;
|
|
836
|
+
var style = this.el.nativeElement.style;
|
|
837
|
+
var right = this.el.nativeElement.getBoundingClientRect().right;
|
|
838
|
+
var _b = this.options, maxHeight = _b.maxHeight, offset = _b.offset;
|
|
839
|
+
var innerHeight = this.win.innerHeight;
|
|
840
|
+
var clientRect = (_a = this.el.nativeElement.offsetParent) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
841
|
+
var position = this.directive.position;
|
|
842
|
+
var rect = this.accessor.getClientRect();
|
|
843
|
+
var offsetX = position === 'fixed' ? 0 : -((clientRect === null || clientRect === void 0 ? void 0 : clientRect.left) || 0);
|
|
844
|
+
var offsetY = position === 'fixed' ? 0 : -((clientRect === null || clientRect === void 0 ? void 0 : clientRect.top) || 0);
|
|
845
|
+
top += offsetY;
|
|
846
|
+
left += offsetX;
|
|
847
|
+
var isIntersecting = left < rect.right && right > rect.left && top < offsetY + 2 * offset;
|
|
848
|
+
var available = isIntersecting
|
|
849
|
+
? rect.top - 2 * offset
|
|
850
|
+
: offsetY + innerHeight - top - offset;
|
|
851
|
+
style.position = position;
|
|
852
|
+
style.top = i2.tuiPx(Math.max(top, offsetY + offset));
|
|
853
|
+
style.left = i2.tuiPx(left);
|
|
854
|
+
style.maxHeight = i2.tuiPx(Math.min(maxHeight, available));
|
|
855
|
+
style.width = '';
|
|
856
|
+
style.minWidth = '';
|
|
857
|
+
this.updateWidth(rect.width);
|
|
858
|
+
};
|
|
859
|
+
TuiDropdownComponent.prototype.updateWidth = function (width) {
|
|
860
|
+
var style = this.el.nativeElement.style;
|
|
861
|
+
switch (this.options.limitWidth) {
|
|
862
|
+
case 'min':
|
|
863
|
+
style.minWidth = i2.tuiPx(width);
|
|
864
|
+
break;
|
|
865
|
+
case 'fixed':
|
|
866
|
+
style.width = i2.tuiPx(width);
|
|
867
|
+
break;
|
|
868
|
+
case 'auto':
|
|
869
|
+
break;
|
|
870
|
+
}
|
|
871
|
+
};
|
|
872
|
+
TuiDropdownComponent.prototype.moveFocusOutside = function (previous) {
|
|
873
|
+
var nativeElement = this.directive.el.nativeElement;
|
|
874
|
+
var ownerDocument = nativeElement.ownerDocument;
|
|
875
|
+
var root = ownerDocument ? ownerDocument.body : nativeElement;
|
|
876
|
+
var focusable = i2.tuiGetClosestFocusable({ initial: nativeElement, root: root, previous: previous });
|
|
877
|
+
while (focusable !== null && nativeElement.contains(focusable)) {
|
|
878
|
+
focusable = i2.tuiGetClosestFocusable({ initial: focusable, root: root, previous: previous });
|
|
879
|
+
}
|
|
880
|
+
focusable === null || focusable === void 0 ? void 0 : focusable.focus();
|
|
881
|
+
};
|
|
882
|
+
return TuiDropdownComponent;
|
|
883
|
+
}());
|
|
884
|
+
TuiDropdownComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownComponent, deps: [{ token: i4.TuiVisualViewportService }, { token: i4.TuiPositionService }, { token: i2.TuiDestroyService, self: true }, { token: TuiDropdownDirective }, { token: tokens.TUI_ANIMATION_OPTIONS }, { token: i0.ElementRef }, { token: i1$1.TuiRectAccessor }, { token: common.WINDOW }, { token: tokens.TUI_MODE }, { token: TUI_DROPDOWN_OPTIONS }, { token: TuiDropdownHoverDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
885
|
+
TuiDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiDropdownComponent, selector: "tui-dropdown", host: { listeners: { "$.data-mode.attr": "mode$" }, properties: { "@tuiDropdownAnimation": "animation", "attr.data-appearance": "options.appearance" } }, providers: [
|
|
886
|
+
i2.TuiDestroyService,
|
|
887
|
+
i4.TuiPositionService,
|
|
888
|
+
i1$1.tuiPositionAccessorFor('dropdown'),
|
|
889
|
+
i1$1.tuiRectAccessorFor('dropdown', TuiDropdownDirective),
|
|
890
|
+
providers.MODE_PROVIDER,
|
|
891
|
+
], ngImport: i0__namespace, template: "<tui-scrollbar\n #activeZone=\"tuiActiveZone\"\n tuiActiveZone\n tuiOverscroll=\"all\"\n class=\"t-scroll\"\n (tuiHoveredChange)=\"onHoveredChange($event)\"\n>\n <div\n tabindex=\"0\"\n (focus)=\"onTopFocus()\"\n ></div>\n <div\n *polymorpheusOutlet=\"directive.content as text; context: {$implicit: activeZone}\"\n class=\"t-primitive\"\n >\n {{ text }}\n </div>\n <div\n tabindex=\"0\"\n (focus)=\"onBottomFocus()\"\n ></div>\n</tui-scrollbar>\n", styles: [":host{position:absolute;display:flex;box-shadow:var(--tui-shadow-dropdown);background:var(--tui-elevation-02);border-radius:var(--tui-radius-m);overflow:hidden;border:1px solid var(--tui-base-04);box-sizing:border-box;max-width:calc(100% - 8px);isolation:isolate;pointer-events:auto}:host.ng-animating{pointer-events:none}:host:not([style*=\"top\"]){visibility:hidden}:host[data-mode=onDark]{--tui-text-01: var(--tui-text-01-night);--tui-clear: var(--tui-clear-inverse);background:#222;border:1px solid #808080}.t-scroll{flex-grow:1;max-width:100%}.t-primitive{padding:1rem}\n"], components: [{ type: i1__namespace$1.TuiScrollbarComponent, selector: "tui-scrollbar", inputs: ["hidden"] }], directives: [{ type: i2__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i2__namespace.TuiOverscrollDirective, selector: "[tuiOverscroll]", inputs: ["tuiOverscroll"] }, { type: i2__namespace.TuiHoveredDirective, selector: "[tuiHoveredChange]", outputs: ["tuiHoveredChange"] }, { type: i3__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [animations.tuiDropdownAnimation], changeDetection: i0__namespace.ChangeDetectionStrategy.Default });
|
|
892
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownComponent, decorators: [{
|
|
893
|
+
type: i0.Component,
|
|
894
|
+
args: [{
|
|
895
|
+
selector: 'tui-dropdown',
|
|
896
|
+
templateUrl: './dropdown.template.html',
|
|
897
|
+
styleUrls: ['./dropdown.style.less'],
|
|
898
|
+
// @bad TODO: OnPush
|
|
899
|
+
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
|
900
|
+
changeDetection: i0.ChangeDetectionStrategy.Default,
|
|
901
|
+
providers: [
|
|
902
|
+
i2.TuiDestroyService,
|
|
903
|
+
i4.TuiPositionService,
|
|
904
|
+
i1$1.tuiPositionAccessorFor('dropdown'),
|
|
905
|
+
i1$1.tuiRectAccessorFor('dropdown', TuiDropdownDirective),
|
|
906
|
+
providers.MODE_PROVIDER,
|
|
907
|
+
],
|
|
908
|
+
host: {
|
|
909
|
+
'[@tuiDropdownAnimation]': 'animation',
|
|
910
|
+
'[attr.data-appearance]': 'options.appearance',
|
|
911
|
+
'($.data-mode.attr)': 'mode$',
|
|
912
|
+
},
|
|
913
|
+
animations: [animations.tuiDropdownAnimation],
|
|
914
|
+
}]
|
|
915
|
+
}], ctorParameters: function () {
|
|
916
|
+
return [{ type: i4__namespace.TuiVisualViewportService, decorators: [{
|
|
917
|
+
type: i0.Inject,
|
|
918
|
+
args: [i4.TuiVisualViewportService]
|
|
919
|
+
}] }, { type: i1__namespace.Observable, decorators: [{
|
|
920
|
+
type: i0.Inject,
|
|
921
|
+
args: [i4.TuiPositionService]
|
|
922
|
+
}] }, { type: i1__namespace.Observable, decorators: [{
|
|
923
|
+
type: i0.Self
|
|
924
|
+
}, {
|
|
925
|
+
type: i0.Inject,
|
|
926
|
+
args: [i2.TuiDestroyService]
|
|
927
|
+
}] }, { type: TuiDropdownDirective, decorators: [{
|
|
928
|
+
type: i0.Inject,
|
|
929
|
+
args: [TuiDropdownDirective]
|
|
930
|
+
}] }, { type: undefined, decorators: [{
|
|
931
|
+
type: i0.Inject,
|
|
932
|
+
args: [tokens.TUI_ANIMATION_OPTIONS]
|
|
933
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
934
|
+
type: i0.Inject,
|
|
935
|
+
args: [i0.ElementRef]
|
|
936
|
+
}] }, { type: i1__namespace$2.TuiRectAccessor, decorators: [{
|
|
937
|
+
type: i0.Inject,
|
|
938
|
+
args: [i1$1.TuiRectAccessor]
|
|
939
|
+
}] }, { type: Window, decorators: [{
|
|
940
|
+
type: i0.Inject,
|
|
941
|
+
args: [common.WINDOW]
|
|
942
|
+
}] }, { type: i1__namespace.Observable, decorators: [{
|
|
943
|
+
type: i0.Inject,
|
|
944
|
+
args: [tokens.TUI_MODE]
|
|
945
|
+
}] }, { type: undefined, decorators: [{
|
|
946
|
+
type: i0.Inject,
|
|
947
|
+
args: [TUI_DROPDOWN_OPTIONS]
|
|
948
|
+
}] }, { type: TuiDropdownHoverDirective, decorators: [{
|
|
949
|
+
type: i0.Optional
|
|
950
|
+
}, {
|
|
951
|
+
type: i0.Inject,
|
|
952
|
+
args: [TuiDropdownHoverDirective]
|
|
953
|
+
}] }];
|
|
954
|
+
} });
|
|
809
955
|
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
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
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
956
|
+
function activeZoneFilter(target) {
|
|
957
|
+
return !this.activeZone.contains(target);
|
|
958
|
+
}
|
|
959
|
+
var TuiDropdownContextDirective = /** @class */ (function (_super) {
|
|
960
|
+
__extends(TuiDropdownContextDirective, _super);
|
|
961
|
+
function TuiDropdownContextDirective(activeZone) {
|
|
962
|
+
var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
|
|
963
|
+
_this.activeZone = activeZone;
|
|
964
|
+
_this.stream$ = new i1.Subject();
|
|
965
|
+
_this.currentRect = i2.EMPTY_CLIENT_RECT;
|
|
966
|
+
_this.type = 'dropdown';
|
|
967
|
+
return _this;
|
|
968
|
+
}
|
|
969
|
+
TuiDropdownContextDirective.prototype.onContextMenu = function (x, y) {
|
|
970
|
+
this.currentRect = i2.tuiPointToClientRect(x, y);
|
|
971
|
+
this.stream$.next(true);
|
|
972
|
+
};
|
|
973
|
+
TuiDropdownContextDirective.prototype.closeDropdown = function () {
|
|
974
|
+
this.stream$.next(false);
|
|
975
|
+
};
|
|
976
|
+
TuiDropdownContextDirective.prototype.getClientRect = function () {
|
|
977
|
+
return this.currentRect;
|
|
978
|
+
};
|
|
979
|
+
return TuiDropdownContextDirective;
|
|
980
|
+
}(i1$1.TuiDriver));
|
|
981
|
+
TuiDropdownContextDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownContextDirective, deps: [{ token: i2.TuiActiveZoneDirective }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
982
|
+
TuiDropdownContextDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiDropdownContextDirective, selector: "[tuiDropdown][tuiDropdownContext]", host: { listeners: { "contextmenu.prevent.stop": "onContextMenu($event.clientX,$event.clientY)", "document:click.silent": "closeDropdown($event.target)", "document:contextmenu.capture.silent": "closeDropdown($event.target)", "document:keydown.esc": "closeDropdown($event.currentTarget)" } }, providers: [
|
|
983
|
+
i2.TuiActiveZoneDirective,
|
|
984
|
+
i1$1.tuiAsDriver(TuiDropdownContextDirective),
|
|
985
|
+
i1$1.tuiAsRectAccessor(TuiDropdownContextDirective),
|
|
986
|
+
], usesInheritance: true, ngImport: i0__namespace });
|
|
987
|
+
__decorate([
|
|
988
|
+
ngEventPlugins.shouldCall(activeZoneFilter)
|
|
989
|
+
], TuiDropdownContextDirective.prototype, "closeDropdown", null);
|
|
990
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownContextDirective, decorators: [{
|
|
991
|
+
type: i0.Directive,
|
|
992
|
+
args: [{
|
|
993
|
+
selector: '[tuiDropdown][tuiDropdownContext]',
|
|
994
|
+
providers: [
|
|
995
|
+
i2.TuiActiveZoneDirective,
|
|
996
|
+
i1$1.tuiAsDriver(TuiDropdownContextDirective),
|
|
997
|
+
i1$1.tuiAsRectAccessor(TuiDropdownContextDirective),
|
|
998
|
+
],
|
|
999
|
+
}]
|
|
1000
|
+
}], ctorParameters: function () {
|
|
1001
|
+
return [{ type: i2__namespace.TuiActiveZoneDirective, decorators: [{
|
|
1002
|
+
type: i0.Inject,
|
|
1003
|
+
args: [i2.TuiActiveZoneDirective]
|
|
1004
|
+
}] }];
|
|
1005
|
+
}, propDecorators: { onContextMenu: [{
|
|
1006
|
+
type: i0.HostListener,
|
|
1007
|
+
args: ['contextmenu.prevent.stop', ['$event.clientX', '$event.clientY']]
|
|
1008
|
+
}], closeDropdown: [{
|
|
1009
|
+
type: i0.HostListener,
|
|
1010
|
+
args: ['document:click.silent', ['$event.target']]
|
|
1011
|
+
}, {
|
|
1012
|
+
type: i0.HostListener,
|
|
1013
|
+
args: ['document:contextmenu.capture.silent', ['$event.target']]
|
|
1014
|
+
}, {
|
|
1015
|
+
type: i0.HostListener,
|
|
1016
|
+
args: ['document:keydown.esc', ['$event.currentTarget']]
|
|
1017
|
+
}] } });
|
|
872
1018
|
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
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
|
-
|
|
1019
|
+
var TuiDropdownDriverDirective = /** @class */ (function (_super) {
|
|
1020
|
+
__extends(TuiDropdownDriverDirective, _super);
|
|
1021
|
+
// TODO: Figure out why this is necessary under nx test runner
|
|
1022
|
+
function TuiDropdownDriverDirective(destroy$, drivers, vehicles) {
|
|
1023
|
+
var _this = _super.call(this, destroy$, drivers, vehicles) || this;
|
|
1024
|
+
_this.type = 'dropdown';
|
|
1025
|
+
return _this;
|
|
1026
|
+
}
|
|
1027
|
+
return TuiDropdownDriverDirective;
|
|
1028
|
+
}(i1$1.AbstractTuiDriverDirective));
|
|
1029
|
+
TuiDropdownDriverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownDriverDirective, deps: [{ token: i2.TuiDestroyService, self: true }, { token: i1$1.TuiDriver }, { token: i1$1.TuiVehicle }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1030
|
+
TuiDropdownDriverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiDropdownDriverDirective, selector: "[tuiDropdown]", providers: [i2.TuiDestroyService], usesInheritance: true, ngImport: i0__namespace });
|
|
1031
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownDriverDirective, decorators: [{
|
|
1032
|
+
type: i0.Directive,
|
|
1033
|
+
args: [{
|
|
1034
|
+
selector: '[tuiDropdown]',
|
|
1035
|
+
providers: [i2.TuiDestroyService],
|
|
1036
|
+
}]
|
|
1037
|
+
}], ctorParameters: function () {
|
|
1038
|
+
return [{ type: i1__namespace.Observable, decorators: [{
|
|
1039
|
+
type: i0.Self
|
|
1040
|
+
}, {
|
|
1041
|
+
type: i0.Inject,
|
|
1042
|
+
args: [i2.TuiDestroyService]
|
|
1043
|
+
}] }, { type: undefined, decorators: [{
|
|
1044
|
+
type: i0.Inject,
|
|
1045
|
+
args: [i1$1.TuiDriver]
|
|
1046
|
+
}] }, { type: undefined, decorators: [{
|
|
1047
|
+
type: i0.Inject,
|
|
1048
|
+
args: [i1$1.TuiVehicle]
|
|
1049
|
+
}] }];
|
|
1050
|
+
} });
|
|
905
1051
|
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
1052
|
+
var TuiDropdownHostDirective = /** @class */ (function (_super) {
|
|
1053
|
+
__extends(TuiDropdownHostDirective, _super);
|
|
1054
|
+
function TuiDropdownHostDirective() {
|
|
1055
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
1056
|
+
_this.type = 'dropdown';
|
|
1057
|
+
return _this;
|
|
1058
|
+
}
|
|
1059
|
+
TuiDropdownHostDirective.prototype.getClientRect = function () {
|
|
1060
|
+
var _a;
|
|
1061
|
+
return ((_a = this.tuiDropdownHost) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || i2.EMPTY_CLIENT_RECT;
|
|
1062
|
+
};
|
|
1063
|
+
return TuiDropdownHostDirective;
|
|
1064
|
+
}(i1$1.TuiRectAccessor));
|
|
1065
|
+
TuiDropdownHostDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownHostDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1066
|
+
TuiDropdownHostDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiDropdownHostDirective, selector: "[tuiDropdown][tuiDropdownHost]", inputs: { tuiDropdownHost: "tuiDropdownHost" }, providers: [i1$1.tuiAsRectAccessor(TuiDropdownHostDirective)], usesInheritance: true, ngImport: i0__namespace });
|
|
1067
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownHostDirective, decorators: [{
|
|
1068
|
+
type: i0.Directive,
|
|
1069
|
+
args: [{
|
|
1070
|
+
selector: '[tuiDropdown][tuiDropdownHost]',
|
|
1071
|
+
providers: [i1$1.tuiAsRectAccessor(TuiDropdownHostDirective)],
|
|
1072
|
+
}]
|
|
1073
|
+
}], propDecorators: { tuiDropdownHost: [{
|
|
1074
|
+
type: i0.Input
|
|
1075
|
+
}] } });
|
|
930
1076
|
|
|
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
|
-
|
|
1077
|
+
var TuiDropdownManualDirective = /** @class */ (function (_super) {
|
|
1078
|
+
__extends(TuiDropdownManualDirective, _super);
|
|
1079
|
+
function TuiDropdownManualDirective() {
|
|
1080
|
+
var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
|
|
1081
|
+
_this.stream$ = new i1.BehaviorSubject(false);
|
|
1082
|
+
_this.tuiDropdownManual = false;
|
|
1083
|
+
_this.type = 'dropdown';
|
|
1084
|
+
return _this;
|
|
1085
|
+
}
|
|
1086
|
+
TuiDropdownManualDirective.prototype.ngOnChanges = function () {
|
|
1087
|
+
this.stream$.next(this.tuiDropdownManual);
|
|
1088
|
+
};
|
|
1089
|
+
return TuiDropdownManualDirective;
|
|
1090
|
+
}(i1$1.TuiDriver));
|
|
1091
|
+
TuiDropdownManualDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownManualDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1092
|
+
TuiDropdownManualDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: { tuiDropdownManual: "tuiDropdownManual" }, providers: [i1$1.tuiAsDriver(TuiDropdownManualDirective)], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace });
|
|
1093
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownManualDirective, decorators: [{
|
|
1094
|
+
type: i0.Directive,
|
|
1095
|
+
args: [{
|
|
1096
|
+
selector: '[tuiDropdown][tuiDropdownManual]',
|
|
1097
|
+
providers: [i1$1.tuiAsDriver(TuiDropdownManualDirective)],
|
|
1098
|
+
}]
|
|
1099
|
+
}], ctorParameters: function () { return []; }, propDecorators: { tuiDropdownManual: [{
|
|
1100
|
+
type: i0.Input
|
|
1101
|
+
}] } });
|
|
956
1102
|
|
|
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
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1103
|
+
var TuiDropdownPositionDirective = /** @class */ (function (_super) {
|
|
1104
|
+
__extends(TuiDropdownPositionDirective, _super);
|
|
1105
|
+
function TuiDropdownPositionDirective(options, viewport, accessors, directive) {
|
|
1106
|
+
var _this = _super.call(this) || this;
|
|
1107
|
+
_this.options = options;
|
|
1108
|
+
_this.viewport = viewport;
|
|
1109
|
+
_this.accessors = accessors;
|
|
1110
|
+
_this.directive = directive;
|
|
1111
|
+
_this.type = 'dropdown';
|
|
1112
|
+
return _this;
|
|
1113
|
+
}
|
|
1114
|
+
TuiDropdownPositionDirective.prototype.getPosition = function (_c) {
|
|
1115
|
+
var width = _c.width, height = _c.height;
|
|
1116
|
+
var _a, _b;
|
|
1117
|
+
if (!width && !height) {
|
|
1118
|
+
this.previous = undefined;
|
|
1119
|
+
}
|
|
1120
|
+
var hostRect = (_b = (_a = this.accessor) === null || _a === void 0 ? void 0 : _a.getClientRect()) !== null && _b !== void 0 ? _b : i2.EMPTY_CLIENT_RECT;
|
|
1121
|
+
var viewportRect = this.viewport.getClientRect();
|
|
1122
|
+
var _d = this.options, minHeight = _d.minHeight, align = _d.align, direction = _d.direction, offset = _d.offset;
|
|
1123
|
+
var viewport = {
|
|
1124
|
+
top: viewportRect.top - offset,
|
|
1125
|
+
bottom: viewportRect.bottom + offset,
|
|
1126
|
+
right: viewportRect.right - offset,
|
|
1127
|
+
left: viewportRect.left + offset,
|
|
1128
|
+
};
|
|
1129
|
+
var previous = this.previous || direction || 'bottom';
|
|
1130
|
+
var available = {
|
|
1131
|
+
top: hostRect.top - 2 * offset - viewport.top,
|
|
1132
|
+
bottom: viewport.bottom - hostRect.bottom - 2 * offset,
|
|
1133
|
+
};
|
|
1134
|
+
var right = Math.max(hostRect.right - width, offset);
|
|
1135
|
+
var left = hostRect.left + width < viewport.right ? hostRect.left : right;
|
|
1136
|
+
var position = {
|
|
1137
|
+
top: hostRect.top - offset - height,
|
|
1138
|
+
bottom: hostRect.bottom + offset,
|
|
1139
|
+
right: Math.max(viewport.left, right),
|
|
1140
|
+
center: hostRect.left + hostRect.width / 2 + width / 2 < viewport.right
|
|
1141
|
+
? hostRect.left + hostRect.width / 2 - width / 2
|
|
1142
|
+
: right,
|
|
1143
|
+
left: Math.max(viewport.left, left),
|
|
1144
|
+
};
|
|
1145
|
+
var better = available.top > available.bottom ? 'top' : 'bottom';
|
|
1146
|
+
if ((available[previous] > minHeight && direction) ||
|
|
1147
|
+
available[previous] > height) {
|
|
1148
|
+
return [position[previous], position[align]];
|
|
1149
|
+
}
|
|
1150
|
+
this.previous = better;
|
|
1151
|
+
return [position[better], position[align]];
|
|
1152
|
+
};
|
|
1153
|
+
Object.defineProperty(TuiDropdownPositionDirective.prototype, "accessor", {
|
|
1154
|
+
get: function () {
|
|
1155
|
+
return i1$1.tuiFallbackRectAccessor('dropdown')(this.accessors, this.directive);
|
|
1156
|
+
},
|
|
1157
|
+
enumerable: false,
|
|
1158
|
+
configurable: true
|
|
1159
|
+
});
|
|
1160
|
+
return TuiDropdownPositionDirective;
|
|
1161
|
+
}(i1$1.TuiPositionAccessor));
|
|
1162
|
+
TuiDropdownPositionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownPositionDirective, deps: [{ token: TUI_DROPDOWN_OPTIONS }, { token: tokens.TUI_VIEWPORT }, { token: i1$1.TuiRectAccessor }, { token: TuiDropdownDirective }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1163
|
+
TuiDropdownPositionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiDropdownPositionDirective, selector: "[tuiDropdown]:not([tuiDropdownCustomPosition]):not([tuiDropdownSided])", providers: [i1$1.tuiAsPositionAccessor(TuiDropdownPositionDirective)], usesInheritance: true, ngImport: i0__namespace });
|
|
1164
|
+
__decorate([
|
|
1165
|
+
i2.tuiPure
|
|
1166
|
+
], TuiDropdownPositionDirective.prototype, "accessor", null);
|
|
1167
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownPositionDirective, decorators: [{
|
|
1168
|
+
type: i0.Directive,
|
|
1169
|
+
args: [{
|
|
1170
|
+
selector: '[tuiDropdown]:not([tuiDropdownCustomPosition]):not([tuiDropdownSided])',
|
|
1171
|
+
providers: [i1$1.tuiAsPositionAccessor(TuiDropdownPositionDirective)],
|
|
1172
|
+
}]
|
|
1173
|
+
}], ctorParameters: function () {
|
|
1174
|
+
return [{ type: undefined, decorators: [{
|
|
1175
|
+
type: i0.Inject,
|
|
1176
|
+
args: [TUI_DROPDOWN_OPTIONS]
|
|
1177
|
+
}] }, { type: i1__namespace$2.TuiRectAccessor, decorators: [{
|
|
1178
|
+
type: i0.Inject,
|
|
1179
|
+
args: [tokens.TUI_VIEWPORT]
|
|
1180
|
+
}] }, { type: undefined, decorators: [{
|
|
1181
|
+
type: i0.Inject,
|
|
1182
|
+
args: [i1$1.TuiRectAccessor]
|
|
1183
|
+
}] }, { type: TuiDropdownDirective, decorators: [{
|
|
1184
|
+
type: i0.Inject,
|
|
1185
|
+
args: [TuiDropdownDirective]
|
|
1186
|
+
}] }];
|
|
1187
|
+
}, propDecorators: { accessor: [] } });
|
|
1042
1188
|
|
|
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
|
-
|
|
1080
|
-
|
|
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
|
-
|
|
1189
|
+
var TuiDropdownPositionSidedDirective = /** @class */ (function (_super) {
|
|
1190
|
+
__extends(TuiDropdownPositionSidedDirective, _super);
|
|
1191
|
+
function TuiDropdownPositionSidedDirective(options, viewport, vertical) {
|
|
1192
|
+
var _this = _super.call(this) || this;
|
|
1193
|
+
_this.options = options;
|
|
1194
|
+
_this.viewport = viewport;
|
|
1195
|
+
_this.vertical = vertical;
|
|
1196
|
+
_this.previous = _this.options.direction || 'bottom';
|
|
1197
|
+
_this.tuiDropdownSided = '';
|
|
1198
|
+
_this.tuiDropdownSidedOffset = 4;
|
|
1199
|
+
_this.type = 'dropdown';
|
|
1200
|
+
return _this;
|
|
1201
|
+
}
|
|
1202
|
+
TuiDropdownPositionSidedDirective.prototype.getPosition = function (rect) {
|
|
1203
|
+
var _a, _b;
|
|
1204
|
+
if (this.tuiDropdownSided === false) {
|
|
1205
|
+
return this.vertical.getPosition(rect);
|
|
1206
|
+
}
|
|
1207
|
+
var height = rect.height, width = rect.width;
|
|
1208
|
+
var hostRect = (_b = (_a = this.vertical.accessor) === null || _a === void 0 ? void 0 : _a.getClientRect()) !== null && _b !== void 0 ? _b : i2.EMPTY_CLIENT_RECT;
|
|
1209
|
+
var viewport = this.viewport.getClientRect();
|
|
1210
|
+
var _c = this.options, direction = _c.direction, minHeight = _c.minHeight, offset = _c.offset;
|
|
1211
|
+
var align = this.options.align === 'center' ? 'left' : this.options.align;
|
|
1212
|
+
var available = {
|
|
1213
|
+
top: hostRect.bottom - viewport.top,
|
|
1214
|
+
left: hostRect.left - offset - viewport.left,
|
|
1215
|
+
right: viewport.right - hostRect.right - offset,
|
|
1216
|
+
bottom: viewport.bottom - hostRect.top,
|
|
1217
|
+
};
|
|
1218
|
+
var position = {
|
|
1219
|
+
top: hostRect.bottom - height + this.tuiDropdownSidedOffset + 1,
|
|
1220
|
+
left: hostRect.left - width - offset,
|
|
1221
|
+
right: hostRect.right + offset,
|
|
1222
|
+
bottom: hostRect.top - this.tuiDropdownSidedOffset - 1, // 1 for border
|
|
1223
|
+
};
|
|
1224
|
+
var better = available.top > available.bottom ? 'top' : 'bottom';
|
|
1225
|
+
var maxLeft = available.left > available.right ? position.left : position.right;
|
|
1226
|
+
var left = available[align] > width ? position[align] : maxLeft;
|
|
1227
|
+
if ((available[this.previous] > minHeight && direction) ||
|
|
1228
|
+
this.previous === better) {
|
|
1229
|
+
return [position[this.previous], left];
|
|
1230
|
+
}
|
|
1231
|
+
this.previous = better;
|
|
1232
|
+
return [position[better], left];
|
|
1233
|
+
};
|
|
1234
|
+
return TuiDropdownPositionSidedDirective;
|
|
1235
|
+
}(i1$1.TuiPositionAccessor));
|
|
1236
|
+
TuiDropdownPositionSidedDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownPositionSidedDirective, deps: [{ token: TUI_DROPDOWN_OPTIONS }, { token: tokens.TUI_VIEWPORT }, { token: TuiDropdownPositionDirective }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1237
|
+
TuiDropdownPositionSidedDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiDropdownPositionSidedDirective, selector: "[tuiDropdownSided]", inputs: { tuiDropdownSided: "tuiDropdownSided", tuiDropdownSidedOffset: "tuiDropdownSidedOffset" }, providers: [
|
|
1238
|
+
TuiDropdownPositionDirective,
|
|
1239
|
+
i1$1.tuiAsPositionAccessor(TuiDropdownPositionSidedDirective),
|
|
1240
|
+
], usesInheritance: true, ngImport: i0__namespace });
|
|
1241
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownPositionSidedDirective, decorators: [{
|
|
1242
|
+
type: i0.Directive,
|
|
1243
|
+
args: [{
|
|
1244
|
+
selector: '[tuiDropdownSided]',
|
|
1245
|
+
providers: [
|
|
1246
|
+
TuiDropdownPositionDirective,
|
|
1247
|
+
i1$1.tuiAsPositionAccessor(TuiDropdownPositionSidedDirective),
|
|
1248
|
+
],
|
|
1249
|
+
}]
|
|
1250
|
+
}], ctorParameters: function () {
|
|
1251
|
+
return [{ type: undefined, decorators: [{
|
|
1252
|
+
type: i0.Inject,
|
|
1253
|
+
args: [TUI_DROPDOWN_OPTIONS]
|
|
1254
|
+
}] }, { type: i1__namespace$2.TuiRectAccessor, decorators: [{
|
|
1255
|
+
type: i0.Inject,
|
|
1256
|
+
args: [tokens.TUI_VIEWPORT]
|
|
1257
|
+
}] }, { type: TuiDropdownPositionDirective, decorators: [{
|
|
1258
|
+
type: i0.Inject,
|
|
1259
|
+
args: [TuiDropdownPositionDirective]
|
|
1260
|
+
}] }];
|
|
1261
|
+
}, propDecorators: { tuiDropdownSided: [{
|
|
1262
|
+
type: i0.Input
|
|
1263
|
+
}], tuiDropdownSidedOffset: [{
|
|
1264
|
+
type: i0.Input
|
|
1265
|
+
}] } });
|
|
1120
1266
|
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1267
|
+
var TuiDropdownSelectionDirective = /** @class */ (function (_super) {
|
|
1268
|
+
__extends(TuiDropdownSelectionDirective, _super);
|
|
1269
|
+
function TuiDropdownSelectionDirective(range, doc, selection$, el, vcr, dropdown) {
|
|
1270
|
+
var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
|
|
1271
|
+
_this.range = range;
|
|
1272
|
+
_this.doc = doc;
|
|
1273
|
+
_this.selection$ = selection$;
|
|
1274
|
+
_this.el = el;
|
|
1275
|
+
_this.vcr = vcr;
|
|
1276
|
+
_this.dropdown = dropdown;
|
|
1277
|
+
_this.handler$ = new i1.BehaviorSubject(i2.ALWAYS_TRUE_HANDLER);
|
|
1278
|
+
_this.stream$ = i1.combineLatest([
|
|
1279
|
+
_this.handler$,
|
|
1280
|
+
_this.selection$.pipe(operators.map(function () { return _this.getRange(); }), operators.distinctUntilChanged(function (x, y) { return x.startOffset === y.startOffset && x.endOffset === y.endOffset; })),
|
|
1281
|
+
]).pipe(operators.map(function (_b) {
|
|
1282
|
+
var _c = __read(_b, 2), handler = _c[0], range = _c[1];
|
|
1283
|
+
var contained = _this.el.nativeElement.contains(range.commonAncestorContainer);
|
|
1284
|
+
_this.range =
|
|
1285
|
+
contained && i2.tuiIsTextNode(range.commonAncestorContainer)
|
|
1286
|
+
? range
|
|
1287
|
+
: _this.range;
|
|
1288
|
+
return (contained && handler(_this.range)) || _this.inDropdown(range);
|
|
1289
|
+
}));
|
|
1290
|
+
_this.position = 'selection';
|
|
1291
|
+
_this.type = 'dropdown';
|
|
1292
|
+
return _this;
|
|
1293
|
+
}
|
|
1294
|
+
Object.defineProperty(TuiDropdownSelectionDirective.prototype, "tuiDropdownSelection", {
|
|
1295
|
+
set: function (visible) {
|
|
1296
|
+
if (!i2.tuiIsString(visible)) {
|
|
1297
|
+
this.handler$.next(visible);
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1300
|
+
enumerable: false,
|
|
1301
|
+
configurable: true
|
|
1302
|
+
});
|
|
1303
|
+
TuiDropdownSelectionDirective.prototype.getClientRect = function () {
|
|
1304
|
+
switch (this.position) {
|
|
1305
|
+
case 'tag': {
|
|
1306
|
+
var commonAncestorContainer = this.range.commonAncestorContainer;
|
|
1307
|
+
var element = i2.tuiIsElement(commonAncestorContainer)
|
|
1308
|
+
? commonAncestorContainer
|
|
1309
|
+
: commonAncestorContainer.parentNode;
|
|
1310
|
+
return element && i2.tuiIsElement(element)
|
|
1311
|
+
? element.getBoundingClientRect()
|
|
1312
|
+
: i2.EMPTY_CLIENT_RECT;
|
|
1313
|
+
}
|
|
1314
|
+
case 'word':
|
|
1315
|
+
return utils.tuiGetWordRange(this.range).getBoundingClientRect();
|
|
1316
|
+
default:
|
|
1317
|
+
return this.range.getBoundingClientRect();
|
|
1318
|
+
}
|
|
1319
|
+
};
|
|
1320
|
+
TuiDropdownSelectionDirective.prototype.ngOnDestroy = function () {
|
|
1321
|
+
if (this.ghost) {
|
|
1322
|
+
this.vcr.element.nativeElement.removeChild(this.ghost);
|
|
1323
|
+
}
|
|
1324
|
+
};
|
|
1325
|
+
TuiDropdownSelectionDirective.prototype.getRange = function () {
|
|
1326
|
+
var active = i2.tuiGetNativeFocused(this.doc);
|
|
1327
|
+
var selection = this.doc.getSelection();
|
|
1328
|
+
var range = active && i2.tuiIsTextfield(active) && this.el.nativeElement.contains(active)
|
|
1329
|
+
? this.veryVerySadInputFix(active)
|
|
1330
|
+
: ((selection === null || selection === void 0 ? void 0 : selection.rangeCount) && selection.getRangeAt(0)) || this.range;
|
|
1331
|
+
return range.cloneRange();
|
|
1332
|
+
};
|
|
1333
|
+
/**
|
|
1334
|
+
* Check if Node is inside dropdown
|
|
1335
|
+
*/
|
|
1336
|
+
TuiDropdownSelectionDirective.prototype.boxContains = function (node) {
|
|
1337
|
+
var _a;
|
|
1338
|
+
return !!((_a = this.dropdown.dropdownBoxRef) === null || _a === void 0 ? void 0 : _a.location.nativeElement.contains(node));
|
|
1339
|
+
};
|
|
1340
|
+
/**
|
|
1341
|
+
* Check if given range is at least partially inside dropdown
|
|
1342
|
+
*/
|
|
1343
|
+
TuiDropdownSelectionDirective.prototype.inDropdown = function (range) {
|
|
1344
|
+
var startContainer = range.startContainer, endContainer = range.endContainer;
|
|
1345
|
+
var nativeElement = this.el.nativeElement;
|
|
1346
|
+
var inDropdown = this.boxContains(range.commonAncestorContainer);
|
|
1347
|
+
var hostToDropdown = this.boxContains(endContainer) && nativeElement.contains(startContainer);
|
|
1348
|
+
var dropdownToHost = this.boxContains(startContainer) && nativeElement.contains(endContainer);
|
|
1349
|
+
return inDropdown || hostToDropdown || dropdownToHost;
|
|
1350
|
+
};
|
|
1351
|
+
TuiDropdownSelectionDirective.prototype.veryVerySadInputFix = function (element) {
|
|
1352
|
+
var _b = this.ghost, ghost = _b === void 0 ? this.initGhost(element) : _b;
|
|
1353
|
+
var _c = element.getBoundingClientRect(), top = _c.top, left = _c.left, width = _c.width, height = _c.height;
|
|
1354
|
+
var selectionStart = element.selectionStart, selectionEnd = element.selectionEnd, value = element.value;
|
|
1355
|
+
var range = this.doc.createRange();
|
|
1356
|
+
var hostRect = this.el.nativeElement.getBoundingClientRect();
|
|
1357
|
+
ghost.style.top = i2.tuiPx(top - hostRect.top);
|
|
1358
|
+
ghost.style.left = i2.tuiPx(left - hostRect.left);
|
|
1359
|
+
ghost.style.width = i2.tuiPx(width);
|
|
1360
|
+
ghost.style.height = i2.tuiPx(height);
|
|
1361
|
+
ghost.textContent = i2.CHAR_ZERO_WIDTH_SPACE + value + i2.CHAR_NO_BREAK_SPACE;
|
|
1362
|
+
range.setStart(ghost.firstChild, selectionStart || 0);
|
|
1363
|
+
range.setEnd(ghost.firstChild, selectionEnd || 0);
|
|
1364
|
+
return range;
|
|
1365
|
+
};
|
|
1366
|
+
/**
|
|
1367
|
+
* Create an invisible DIV styled exactly like input/textarea element inside directive
|
|
1368
|
+
*/
|
|
1369
|
+
TuiDropdownSelectionDirective.prototype.initGhost = function (element) {
|
|
1370
|
+
var ghost = this.doc.createElement('div');
|
|
1371
|
+
var _b = getComputedStyle(element), font = _b.font, letterSpacing = _b.letterSpacing, textTransform = _b.textTransform, padding = _b.padding;
|
|
1372
|
+
ghost.style.position = 'absolute';
|
|
1373
|
+
ghost.style.pointerEvents = 'none';
|
|
1374
|
+
ghost.style.opacity = '0';
|
|
1375
|
+
ghost.style.whiteSpace = 'pre-wrap';
|
|
1376
|
+
ghost.style.font = font;
|
|
1377
|
+
ghost.style.letterSpacing = letterSpacing;
|
|
1378
|
+
ghost.style.textTransform = textTransform;
|
|
1379
|
+
ghost.style.padding = padding;
|
|
1380
|
+
this.vcr.element.nativeElement.appendChild(ghost);
|
|
1381
|
+
this.ghost = ghost;
|
|
1382
|
+
return ghost;
|
|
1383
|
+
};
|
|
1384
|
+
return TuiDropdownSelectionDirective;
|
|
1385
|
+
}(i1$1.TuiDriver));
|
|
1386
|
+
TuiDropdownSelectionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownSelectionDirective, deps: [{ token: i2.TUI_RANGE }, { token: common$1.DOCUMENT }, { token: tokens.TUI_SELECTION_STREAM }, { token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: TuiDropdownDirective }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1387
|
+
TuiDropdownSelectionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiDropdownSelectionDirective, selector: "[tuiDropdown][tuiDropdownSelection]", inputs: { position: ["tuiDropdownSelectionPosition", "position"], tuiDropdownSelection: "tuiDropdownSelection" }, providers: [
|
|
1388
|
+
i1$1.tuiAsDriver(TuiDropdownSelectionDirective),
|
|
1389
|
+
i1$1.tuiAsRectAccessor(TuiDropdownSelectionDirective),
|
|
1390
|
+
], usesInheritance: true, ngImport: i0__namespace });
|
|
1391
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownSelectionDirective, decorators: [{
|
|
1392
|
+
type: i0.Directive,
|
|
1393
|
+
args: [{
|
|
1394
|
+
selector: '[tuiDropdown][tuiDropdownSelection]',
|
|
1395
|
+
providers: [
|
|
1396
|
+
i1$1.tuiAsDriver(TuiDropdownSelectionDirective),
|
|
1397
|
+
i1$1.tuiAsRectAccessor(TuiDropdownSelectionDirective),
|
|
1398
|
+
],
|
|
1399
|
+
}]
|
|
1400
|
+
}], ctorParameters: function () {
|
|
1401
|
+
return [{ type: Range, decorators: [{
|
|
1402
|
+
type: i0.Inject,
|
|
1403
|
+
args: [i2.TUI_RANGE]
|
|
1404
|
+
}] }, { type: Document, decorators: [{
|
|
1405
|
+
type: i0.Inject,
|
|
1406
|
+
args: [common$1.DOCUMENT]
|
|
1407
|
+
}] }, { type: i1__namespace.Observable, decorators: [{
|
|
1408
|
+
type: i0.Inject,
|
|
1409
|
+
args: [tokens.TUI_SELECTION_STREAM]
|
|
1410
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
1411
|
+
type: i0.Inject,
|
|
1412
|
+
args: [i0.ElementRef]
|
|
1413
|
+
}] }, { type: i0__namespace.ViewContainerRef, decorators: [{
|
|
1414
|
+
type: i0.Inject,
|
|
1415
|
+
args: [i0.ViewContainerRef]
|
|
1416
|
+
}] }, { type: TuiDropdownDirective, decorators: [{
|
|
1417
|
+
type: i0.Inject,
|
|
1418
|
+
args: [TuiDropdownDirective]
|
|
1419
|
+
}] }];
|
|
1420
|
+
}, propDecorators: { position: [{
|
|
1421
|
+
type: i0.Input,
|
|
1422
|
+
args: ['tuiDropdownSelectionPosition']
|
|
1423
|
+
}], tuiDropdownSelection: [{
|
|
1424
|
+
type: i0.Input
|
|
1425
|
+
}] } });
|
|
1280
1426
|
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1427
|
+
var TuiDropdownModule = /** @class */ (function () {
|
|
1428
|
+
function TuiDropdownModule() {
|
|
1429
|
+
}
|
|
1430
|
+
return TuiDropdownModule;
|
|
1431
|
+
}());
|
|
1432
|
+
TuiDropdownModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1433
|
+
TuiDropdownModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownModule, declarations: [TuiDropdownDirective,
|
|
1434
|
+
TuiDropdownComponent,
|
|
1435
|
+
TuiDropdownOpenDirective,
|
|
1436
|
+
TuiDropdownOptionsDirective,
|
|
1437
|
+
TuiDropdownHostDirective,
|
|
1438
|
+
TuiDropdownDriverDirective,
|
|
1439
|
+
TuiDropdownManualDirective,
|
|
1440
|
+
TuiDropdownHoverDirective,
|
|
1441
|
+
TuiDropdownContextDirective,
|
|
1442
|
+
TuiDropdownPositionDirective,
|
|
1443
|
+
TuiDropdownPositionSidedDirective,
|
|
1444
|
+
TuiDropdownSelectionDirective], imports: [i3.PolymorpheusModule,
|
|
1445
|
+
i2.TuiActiveZoneModule,
|
|
1446
|
+
i2.TuiOverscrollModule,
|
|
1447
|
+
i1$2.TuiScrollbarModule,
|
|
1448
|
+
i2.TuiHoveredModule], exports: [TuiDropdownDirective,
|
|
1449
|
+
TuiDropdownComponent,
|
|
1450
|
+
TuiDropdownOpenDirective,
|
|
1451
|
+
TuiDropdownOptionsDirective,
|
|
1452
|
+
TuiDropdownHostDirective,
|
|
1453
|
+
TuiDropdownDriverDirective,
|
|
1454
|
+
TuiDropdownManualDirective,
|
|
1455
|
+
TuiDropdownHoverDirective,
|
|
1456
|
+
TuiDropdownContextDirective,
|
|
1457
|
+
TuiDropdownPositionDirective,
|
|
1458
|
+
TuiDropdownPositionSidedDirective,
|
|
1459
|
+
TuiDropdownSelectionDirective] });
|
|
1460
|
+
TuiDropdownModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownModule, imports: [[
|
|
1461
|
+
i3.PolymorpheusModule,
|
|
1462
|
+
i2.TuiActiveZoneModule,
|
|
1463
|
+
i2.TuiOverscrollModule,
|
|
1464
|
+
i1$2.TuiScrollbarModule,
|
|
1465
|
+
i2.TuiHoveredModule,
|
|
1466
|
+
]] });
|
|
1467
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDropdownModule, decorators: [{
|
|
1468
|
+
type: i0.NgModule,
|
|
1469
|
+
args: [{
|
|
1470
|
+
imports: [
|
|
1471
|
+
i3.PolymorpheusModule,
|
|
1472
|
+
i2.TuiActiveZoneModule,
|
|
1473
|
+
i2.TuiOverscrollModule,
|
|
1474
|
+
i1$2.TuiScrollbarModule,
|
|
1475
|
+
i2.TuiHoveredModule,
|
|
1476
|
+
],
|
|
1477
|
+
declarations: [
|
|
1478
|
+
TuiDropdownDirective,
|
|
1479
|
+
TuiDropdownComponent,
|
|
1480
|
+
TuiDropdownOpenDirective,
|
|
1481
|
+
TuiDropdownOptionsDirective,
|
|
1482
|
+
TuiDropdownHostDirective,
|
|
1483
|
+
TuiDropdownDriverDirective,
|
|
1484
|
+
TuiDropdownManualDirective,
|
|
1485
|
+
TuiDropdownHoverDirective,
|
|
1486
|
+
TuiDropdownContextDirective,
|
|
1487
|
+
TuiDropdownPositionDirective,
|
|
1488
|
+
TuiDropdownPositionSidedDirective,
|
|
1489
|
+
TuiDropdownSelectionDirective,
|
|
1490
|
+
],
|
|
1491
|
+
exports: [
|
|
1492
|
+
TuiDropdownDirective,
|
|
1493
|
+
TuiDropdownComponent,
|
|
1494
|
+
TuiDropdownOpenDirective,
|
|
1495
|
+
TuiDropdownOptionsDirective,
|
|
1496
|
+
TuiDropdownHostDirective,
|
|
1497
|
+
TuiDropdownDriverDirective,
|
|
1498
|
+
TuiDropdownManualDirective,
|
|
1499
|
+
TuiDropdownHoverDirective,
|
|
1500
|
+
TuiDropdownContextDirective,
|
|
1501
|
+
TuiDropdownPositionDirective,
|
|
1502
|
+
TuiDropdownPositionSidedDirective,
|
|
1503
|
+
TuiDropdownSelectionDirective,
|
|
1504
|
+
],
|
|
1505
|
+
}]
|
|
1506
|
+
}] });
|
|
1361
1507
|
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1508
|
+
/**
|
|
1509
|
+
* Generated bundle index. Do not edit.
|
|
1510
|
+
*/
|
|
1365
1511
|
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1512
|
+
exports.TUI_DROPDOWN_COMPONENT = TUI_DROPDOWN_COMPONENT;
|
|
1513
|
+
exports.TUI_DROPDOWN_DEFAULT_OPTIONS = TUI_DROPDOWN_DEFAULT_OPTIONS;
|
|
1514
|
+
exports.TUI_DROPDOWN_HOVER_DEFAULT_OPTIONS = TUI_DROPDOWN_HOVER_DEFAULT_OPTIONS;
|
|
1515
|
+
exports.TUI_DROPDOWN_HOVER_OPTIONS = TUI_DROPDOWN_HOVER_OPTIONS;
|
|
1516
|
+
exports.TUI_DROPDOWN_OPTIONS = TUI_DROPDOWN_OPTIONS;
|
|
1517
|
+
exports.TuiDropdownComponent = TuiDropdownComponent;
|
|
1518
|
+
exports.TuiDropdownContextDirective = TuiDropdownContextDirective;
|
|
1519
|
+
exports.TuiDropdownDirective = TuiDropdownDirective;
|
|
1520
|
+
exports.TuiDropdownDriverDirective = TuiDropdownDriverDirective;
|
|
1521
|
+
exports.TuiDropdownHostDirective = TuiDropdownHostDirective;
|
|
1522
|
+
exports.TuiDropdownHoverDirective = TuiDropdownHoverDirective;
|
|
1523
|
+
exports.TuiDropdownManualDirective = TuiDropdownManualDirective;
|
|
1524
|
+
exports.TuiDropdownModule = TuiDropdownModule;
|
|
1525
|
+
exports.TuiDropdownOpenDirective = TuiDropdownOpenDirective;
|
|
1526
|
+
exports.TuiDropdownOptionsDirective = TuiDropdownOptionsDirective;
|
|
1527
|
+
exports.TuiDropdownPositionDirective = TuiDropdownPositionDirective;
|
|
1528
|
+
exports.TuiDropdownPositionSidedDirective = TuiDropdownPositionSidedDirective;
|
|
1529
|
+
exports.TuiDropdownSelectionDirective = TuiDropdownSelectionDirective;
|
|
1530
|
+
exports.tuiDropdownHoverOptionsProvider = tuiDropdownHoverOptionsProvider;
|
|
1531
|
+
exports.tuiDropdownOptionsProvider = tuiDropdownOptionsProvider;
|
|
1386
1532
|
|
|
1387
|
-
|
|
1533
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1388
1534
|
|
|
1389
1535
|
}));
|
|
1390
1536
|
//# sourceMappingURL=taiga-ui-core-directives-dropdown.umd.js.map
|