@taiga-ui/kit 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-kit-components-accordion.umd.js +774 -628
- package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.js +598 -452
- package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.js +640 -494
- package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +563 -417
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js +747 -601
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js +718 -572
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-carousel.umd.js +821 -675
- package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +645 -499
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +585 -439
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.js +608 -462
- package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.js +834 -688
- package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +656 -510
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js +587 -441
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.js +808 -662
- package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.js +607 -461
- package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.js +700 -554
- package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.js +809 -663
- package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-multi.umd.js +849 -703
- package/bundles/taiga-ui-kit-components-input-date-multi.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js +973 -827
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js +1026 -880
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.js +976 -830
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.js +975 -829
- package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.js +612 -466
- package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js +755 -609
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.js +788 -642
- package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.js +941 -795
- package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.js +720 -574
- package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +811 -665
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.js +913 -767
- package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.js +796 -650
- package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +737 -591
- package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +1102 -956
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.js +1021 -875
- package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-year.umd.js +706 -560
- package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.js +661 -515
- package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js +689 -543
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js +742 -596
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +544 -398
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.js +1337 -1191
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.js +810 -664
- package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +152 -6
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.js +152 -6
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-push.umd.js +152 -6
- package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-block.umd.js +645 -499
- package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +616 -470
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-list.umd.js +628 -482
- package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.js +689 -543
- package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.js +811 -665
- package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-rating.umd.js +646 -500
- package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js +580 -434
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js +933 -787
- package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js +943 -797
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.js +769 -623
- package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js +152 -6
- package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-textarea.umd.js +966 -820
- package/bundles/taiga-ui-kit-components-textarea.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tiles.umd.js +839 -693
- package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.js +711 -565
- package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-constants.umd.js +152 -6
- package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +637 -491
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +605 -459
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js +540 -394
- package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js +693 -547
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +616 -470
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js +524 -378
- package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.js +152 -6
- package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-math.umd.js +152 -6
- package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +152 -6
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,818 +1,964 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/kit/utils'), require('@ng-web-apis/common'), require('rxjs/operators'), require('@angular/common'), require('rxjs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/slider', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/kit/utils', '@ng-web-apis/common', 'rxjs/operators', '@angular/common', 'rxjs'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components.slider = {}), global.ng.core, global.ng.forms, global.cdk, global["taiga-ui"].kit.utils, global.common, global.rxjs.operators, global.ng.common, global.rxjs));
|
|
5
5
|
})(this, (function (exports, i0, i1, cdk, utils, common, operators, i1$2, i1$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
|
-
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
+
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
28
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
/******************************************************************************
|
|
31
|
+
Copyright (c) Microsoft Corporation.
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
34
|
+
purpose with or without fee is hereby granted.
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
36
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
37
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
38
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
39
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
40
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
41
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
42
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
43
|
+
***************************************************************************** */
|
|
44
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
45
|
+
var extendStatics = function (d, b) {
|
|
46
|
+
extendStatics = Object.setPrototypeOf ||
|
|
47
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
48
|
+
function (d, b) { for (var p in b)
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
50
|
+
d[p] = b[p]; };
|
|
51
|
+
return extendStatics(d, b);
|
|
52
|
+
};
|
|
53
|
+
function __extends(d, b) {
|
|
54
|
+
if (typeof b !== "function" && b !== null)
|
|
55
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56
|
+
extendStatics(d, b);
|
|
57
|
+
function __() { this.constructor = d; }
|
|
58
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
59
|
+
}
|
|
60
|
+
var __assign = function () {
|
|
61
|
+
__assign = Object.assign || function __assign(t) {
|
|
62
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
63
|
+
s = arguments[i];
|
|
64
|
+
for (var p in s)
|
|
65
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
66
|
+
t[p] = s[p];
|
|
67
|
+
}
|
|
68
|
+
return t;
|
|
69
|
+
};
|
|
70
|
+
return __assign.apply(this, arguments);
|
|
71
|
+
};
|
|
72
|
+
function __rest(s, e) {
|
|
73
|
+
var t = {};
|
|
74
|
+
for (var p in s)
|
|
75
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
76
|
+
t[p] = s[p];
|
|
77
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
78
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
79
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
80
|
+
t[p[i]] = s[p[i]];
|
|
81
|
+
}
|
|
82
|
+
return t;
|
|
83
|
+
}
|
|
84
|
+
function __decorate(decorators, target, key, desc) {
|
|
85
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
86
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
87
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
88
|
+
else
|
|
89
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
90
|
+
if (d = decorators[i])
|
|
91
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
92
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
93
|
+
}
|
|
94
|
+
function __param(paramIndex, decorator) {
|
|
95
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
96
|
+
}
|
|
97
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
98
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
|
99
|
+
throw new TypeError("Function expected"); return f; }
|
|
100
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
101
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
102
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
103
|
+
var _, done = false;
|
|
104
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
105
|
+
var context = {};
|
|
106
|
+
for (var p in contextIn)
|
|
107
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
|
108
|
+
for (var p in contextIn.access)
|
|
109
|
+
context.access[p] = contextIn.access[p];
|
|
110
|
+
context.addInitializer = function (f) { if (done)
|
|
111
|
+
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
112
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
113
|
+
if (kind === "accessor") {
|
|
114
|
+
if (result === void 0)
|
|
115
|
+
continue;
|
|
116
|
+
if (result === null || typeof result !== "object")
|
|
117
|
+
throw new TypeError("Object expected");
|
|
118
|
+
if (_ = accept(result.get))
|
|
119
|
+
descriptor.get = _;
|
|
120
|
+
if (_ = accept(result.set))
|
|
121
|
+
descriptor.set = _;
|
|
122
|
+
if (_ = accept(result.init))
|
|
123
|
+
initializers.unshift(_);
|
|
124
|
+
}
|
|
125
|
+
else if (_ = accept(result)) {
|
|
126
|
+
if (kind === "field")
|
|
127
|
+
initializers.unshift(_);
|
|
128
|
+
else
|
|
129
|
+
descriptor[key] = _;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
if (target)
|
|
133
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
|
134
|
+
done = true;
|
|
135
|
+
}
|
|
136
|
+
;
|
|
137
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
138
|
+
var useValue = arguments.length > 2;
|
|
139
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
140
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
141
|
+
}
|
|
142
|
+
return useValue ? value : void 0;
|
|
143
|
+
}
|
|
144
|
+
;
|
|
145
|
+
function __propKey(x) {
|
|
146
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
147
|
+
}
|
|
148
|
+
;
|
|
149
|
+
function __setFunctionName(f, name, prefix) {
|
|
150
|
+
if (typeof name === "symbol")
|
|
151
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
|
152
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
153
|
+
}
|
|
154
|
+
;
|
|
155
|
+
function __metadata(metadataKey, metadataValue) {
|
|
156
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
157
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
158
|
+
}
|
|
159
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
160
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
161
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
162
|
+
function fulfilled(value) { try {
|
|
163
|
+
step(generator.next(value));
|
|
164
|
+
}
|
|
165
|
+
catch (e) {
|
|
166
|
+
reject(e);
|
|
167
|
+
} }
|
|
168
|
+
function rejected(value) { try {
|
|
169
|
+
step(generator["throw"](value));
|
|
170
|
+
}
|
|
171
|
+
catch (e) {
|
|
172
|
+
reject(e);
|
|
173
|
+
} }
|
|
174
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
175
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
function __generator(thisArg, body) {
|
|
179
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
180
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
181
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
182
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
183
|
+
function step(op) {
|
|
184
|
+
if (f)
|
|
185
|
+
throw new TypeError("Generator is already executing.");
|
|
186
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
187
|
+
try {
|
|
188
|
+
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)
|
|
189
|
+
return t;
|
|
190
|
+
if (y = 0, t)
|
|
191
|
+
op = [op[0] & 2, t.value];
|
|
192
|
+
switch (op[0]) {
|
|
193
|
+
case 0:
|
|
194
|
+
case 1:
|
|
195
|
+
t = op;
|
|
196
|
+
break;
|
|
197
|
+
case 4:
|
|
198
|
+
_.label++;
|
|
199
|
+
return { value: op[1], done: false };
|
|
200
|
+
case 5:
|
|
201
|
+
_.label++;
|
|
202
|
+
y = op[1];
|
|
203
|
+
op = [0];
|
|
204
|
+
continue;
|
|
205
|
+
case 7:
|
|
206
|
+
op = _.ops.pop();
|
|
207
|
+
_.trys.pop();
|
|
208
|
+
continue;
|
|
209
|
+
default:
|
|
210
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
211
|
+
_ = 0;
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
214
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
215
|
+
_.label = op[1];
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
219
|
+
_.label = t[1];
|
|
220
|
+
t = op;
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
if (t && _.label < t[2]) {
|
|
224
|
+
_.label = t[2];
|
|
225
|
+
_.ops.push(op);
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
if (t[2])
|
|
229
|
+
_.ops.pop();
|
|
230
|
+
_.trys.pop();
|
|
231
|
+
continue;
|
|
232
|
+
}
|
|
233
|
+
op = body.call(thisArg, _);
|
|
234
|
+
}
|
|
235
|
+
catch (e) {
|
|
236
|
+
op = [6, e];
|
|
237
|
+
y = 0;
|
|
238
|
+
}
|
|
239
|
+
finally {
|
|
240
|
+
f = t = 0;
|
|
241
|
+
}
|
|
242
|
+
if (op[0] & 5)
|
|
243
|
+
throw op[1];
|
|
244
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
248
|
+
if (k2 === undefined)
|
|
249
|
+
k2 = k;
|
|
250
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
251
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
252
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
253
|
+
}
|
|
254
|
+
Object.defineProperty(o, k2, desc);
|
|
255
|
+
}) : (function (o, m, k, k2) {
|
|
256
|
+
if (k2 === undefined)
|
|
257
|
+
k2 = k;
|
|
258
|
+
o[k2] = m[k];
|
|
259
|
+
});
|
|
260
|
+
function __exportStar(m, o) {
|
|
261
|
+
for (var p in m)
|
|
262
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
263
|
+
__createBinding(o, m, p);
|
|
264
|
+
}
|
|
265
|
+
function __values(o) {
|
|
266
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
267
|
+
if (m)
|
|
268
|
+
return m.call(o);
|
|
269
|
+
if (o && typeof o.length === "number")
|
|
270
|
+
return {
|
|
271
|
+
next: function () {
|
|
272
|
+
if (o && i >= o.length)
|
|
273
|
+
o = void 0;
|
|
274
|
+
return { value: o && o[i++], done: !o };
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
278
|
+
}
|
|
279
|
+
function __read(o, n) {
|
|
280
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
281
|
+
if (!m)
|
|
282
|
+
return o;
|
|
283
|
+
var i = m.call(o), r, ar = [], e;
|
|
284
|
+
try {
|
|
285
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
286
|
+
ar.push(r.value);
|
|
287
|
+
}
|
|
288
|
+
catch (error) {
|
|
289
|
+
e = { error: error };
|
|
290
|
+
}
|
|
291
|
+
finally {
|
|
292
|
+
try {
|
|
293
|
+
if (r && !r.done && (m = i["return"]))
|
|
294
|
+
m.call(i);
|
|
295
|
+
}
|
|
296
|
+
finally {
|
|
297
|
+
if (e)
|
|
298
|
+
throw e.error;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
return ar;
|
|
302
|
+
}
|
|
303
|
+
/** @deprecated */
|
|
304
|
+
function __spread() {
|
|
305
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
306
|
+
ar = ar.concat(__read(arguments[i]));
|
|
307
|
+
return ar;
|
|
308
|
+
}
|
|
309
|
+
/** @deprecated */
|
|
310
|
+
function __spreadArrays() {
|
|
311
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
312
|
+
s += arguments[i].length;
|
|
313
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
314
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
315
|
+
r[k] = a[j];
|
|
316
|
+
return r;
|
|
317
|
+
}
|
|
318
|
+
function __spreadArray(to, from, pack) {
|
|
319
|
+
if (pack || arguments.length === 2)
|
|
320
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
321
|
+
if (ar || !(i in from)) {
|
|
322
|
+
if (!ar)
|
|
323
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
324
|
+
ar[i] = from[i];
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
328
|
+
}
|
|
329
|
+
function __await(v) {
|
|
330
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
331
|
+
}
|
|
332
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
333
|
+
if (!Symbol.asyncIterator)
|
|
334
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
335
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
336
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
337
|
+
function verb(n) { if (g[n])
|
|
338
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
339
|
+
function resume(n, v) { try {
|
|
340
|
+
step(g[n](v));
|
|
341
|
+
}
|
|
342
|
+
catch (e) {
|
|
343
|
+
settle(q[0][3], e);
|
|
344
|
+
} }
|
|
345
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
346
|
+
function fulfill(value) { resume("next", value); }
|
|
347
|
+
function reject(value) { resume("throw", value); }
|
|
348
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
349
|
+
resume(q[0][0], q[0][1]); }
|
|
350
|
+
}
|
|
351
|
+
function __asyncDelegator(o) {
|
|
352
|
+
var i, p;
|
|
353
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
354
|
+
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; }
|
|
355
|
+
}
|
|
356
|
+
function __asyncValues(o) {
|
|
357
|
+
if (!Symbol.asyncIterator)
|
|
358
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
359
|
+
var m = o[Symbol.asyncIterator], i;
|
|
360
|
+
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);
|
|
361
|
+
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); }); }; }
|
|
362
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
363
|
+
}
|
|
364
|
+
function __makeTemplateObject(cooked, raw) {
|
|
365
|
+
if (Object.defineProperty) {
|
|
366
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
367
|
+
}
|
|
368
|
+
else {
|
|
369
|
+
cooked.raw = raw;
|
|
370
|
+
}
|
|
371
|
+
return cooked;
|
|
372
|
+
}
|
|
373
|
+
;
|
|
374
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
375
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
376
|
+
}) : function (o, v) {
|
|
377
|
+
o["default"] = v;
|
|
378
|
+
};
|
|
379
|
+
function __importStar(mod) {
|
|
380
|
+
if (mod && mod.__esModule)
|
|
381
|
+
return mod;
|
|
382
|
+
var result = {};
|
|
383
|
+
if (mod != null)
|
|
384
|
+
for (var k in mod)
|
|
385
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
386
|
+
__createBinding(result, mod, k);
|
|
387
|
+
__setModuleDefault(result, mod);
|
|
388
|
+
return result;
|
|
389
|
+
}
|
|
390
|
+
function __importDefault(mod) {
|
|
391
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
392
|
+
}
|
|
393
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
394
|
+
if (kind === "a" && !f)
|
|
395
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
396
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
397
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
398
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
399
|
+
}
|
|
400
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
401
|
+
if (kind === "m")
|
|
402
|
+
throw new TypeError("Private method is not writable");
|
|
403
|
+
if (kind === "a" && !f)
|
|
404
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
405
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
406
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
407
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
408
|
+
}
|
|
409
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
410
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
411
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
412
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
413
|
+
}
|
|
414
|
+
function __addDisposableResource(env, value, async) {
|
|
415
|
+
if (value !== null && value !== void 0) {
|
|
416
|
+
if (typeof value !== "object" && typeof value !== "function")
|
|
417
|
+
throw new TypeError("Object expected.");
|
|
418
|
+
var dispose;
|
|
419
|
+
if (async) {
|
|
420
|
+
if (!Symbol.asyncDispose)
|
|
421
|
+
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
422
|
+
dispose = value[Symbol.asyncDispose];
|
|
423
|
+
}
|
|
424
|
+
if (dispose === void 0) {
|
|
425
|
+
if (!Symbol.dispose)
|
|
426
|
+
throw new TypeError("Symbol.dispose is not defined.");
|
|
427
|
+
dispose = value[Symbol.dispose];
|
|
428
|
+
}
|
|
429
|
+
if (typeof dispose !== "function")
|
|
430
|
+
throw new TypeError("Object not disposable.");
|
|
431
|
+
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
432
|
+
}
|
|
433
|
+
else if (async) {
|
|
434
|
+
env.stack.push({ async: true });
|
|
435
|
+
}
|
|
436
|
+
return value;
|
|
437
|
+
}
|
|
438
|
+
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
439
|
+
var e = new Error(message);
|
|
440
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
441
|
+
};
|
|
442
|
+
function __disposeResources(env) {
|
|
443
|
+
function fail(e) {
|
|
444
|
+
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
445
|
+
env.hasError = true;
|
|
446
|
+
}
|
|
447
|
+
function next() {
|
|
448
|
+
while (env.stack.length) {
|
|
449
|
+
var rec = env.stack.pop();
|
|
450
|
+
try {
|
|
451
|
+
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
452
|
+
if (rec.async)
|
|
453
|
+
return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
|
|
454
|
+
}
|
|
455
|
+
catch (e) {
|
|
456
|
+
fail(e);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
if (env.hasError)
|
|
460
|
+
throw env.error;
|
|
461
|
+
}
|
|
462
|
+
return next();
|
|
463
|
+
}
|
|
464
|
+
var tslib_es6 = {
|
|
465
|
+
__extends: __extends,
|
|
466
|
+
__assign: __assign,
|
|
467
|
+
__rest: __rest,
|
|
468
|
+
__decorate: __decorate,
|
|
469
|
+
__param: __param,
|
|
470
|
+
__metadata: __metadata,
|
|
471
|
+
__awaiter: __awaiter,
|
|
472
|
+
__generator: __generator,
|
|
473
|
+
__createBinding: __createBinding,
|
|
474
|
+
__exportStar: __exportStar,
|
|
475
|
+
__values: __values,
|
|
476
|
+
__read: __read,
|
|
477
|
+
__spread: __spread,
|
|
478
|
+
__spreadArrays: __spreadArrays,
|
|
479
|
+
__spreadArray: __spreadArray,
|
|
480
|
+
__await: __await,
|
|
481
|
+
__asyncGenerator: __asyncGenerator,
|
|
482
|
+
__asyncDelegator: __asyncDelegator,
|
|
483
|
+
__asyncValues: __asyncValues,
|
|
484
|
+
__makeTemplateObject: __makeTemplateObject,
|
|
485
|
+
__importStar: __importStar,
|
|
486
|
+
__importDefault: __importDefault,
|
|
487
|
+
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
488
|
+
__classPrivateFieldSet: __classPrivateFieldSet,
|
|
489
|
+
__classPrivateFieldIn: __classPrivateFieldIn,
|
|
490
|
+
__addDisposableResource: __addDisposableResource,
|
|
491
|
+
__disposeResources: __disposeResources,
|
|
492
|
+
};
|
|
347
493
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
494
|
+
var TUI_SLIDER_DEFAULT_OPTIONS = {
|
|
495
|
+
size: "m",
|
|
496
|
+
trackColor: "var(--tui-base-03)",
|
|
497
|
+
};
|
|
498
|
+
/**
|
|
499
|
+
* Default parameters for Slider component
|
|
500
|
+
*/
|
|
501
|
+
var TUI_SLIDER_OPTIONS = cdk.tuiCreateToken(TUI_SLIDER_DEFAULT_OPTIONS);
|
|
502
|
+
function tuiSliderOptionsProvider(options) {
|
|
503
|
+
return cdk.tuiProvideOptions(TUI_SLIDER_OPTIONS, options, TUI_SLIDER_DEFAULT_OPTIONS);
|
|
504
|
+
}
|
|
359
505
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
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
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
506
|
+
var TuiSliderComponent = /** @class */ (function () {
|
|
507
|
+
function TuiSliderComponent(control, cdr, options, el, userAgent, injector) {
|
|
508
|
+
var _a;
|
|
509
|
+
this.control = control;
|
|
510
|
+
this.options = options;
|
|
511
|
+
this.el = el;
|
|
512
|
+
this.userAgent = userAgent;
|
|
513
|
+
this.injector = injector;
|
|
514
|
+
this.size = this.options.size;
|
|
515
|
+
this.segments = 1;
|
|
516
|
+
if (control instanceof i1.NgModel) {
|
|
517
|
+
/**
|
|
518
|
+
* The ValueAccessor.writeValue method is called twice on any value accessor during component initialization,
|
|
519
|
+
* when a control is bound using [(ngModel)], first time with a phantom null value.
|
|
520
|
+
* With `changeDetection: ChangeDetectionStrategy.OnPush` the second call of writeValue with real value don't re-render the view.
|
|
521
|
+
* ___
|
|
522
|
+
* See this {@link https://github.com/angular/angular/issues/14988 issue}
|
|
523
|
+
*/
|
|
524
|
+
(_a = control.valueChanges) === null || _a === void 0 ? void 0 : _a.pipe(cdk.tuiWatch(cdr), operators.take(1)).subscribe();
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
Object.defineProperty(TuiSliderComponent.prototype, "min", {
|
|
528
|
+
get: function () {
|
|
529
|
+
return Number(this.el.nativeElement.min);
|
|
530
|
+
},
|
|
531
|
+
enumerable: false,
|
|
532
|
+
configurable: true
|
|
533
|
+
});
|
|
534
|
+
Object.defineProperty(TuiSliderComponent.prototype, "max", {
|
|
535
|
+
get: function () {
|
|
536
|
+
return Number(this.el.nativeElement.max || 100);
|
|
537
|
+
},
|
|
538
|
+
enumerable: false,
|
|
539
|
+
configurable: true
|
|
540
|
+
});
|
|
541
|
+
Object.defineProperty(TuiSliderComponent.prototype, "step", {
|
|
542
|
+
get: function () {
|
|
543
|
+
return Number(this.el.nativeElement.step) || 1;
|
|
544
|
+
},
|
|
545
|
+
enumerable: false,
|
|
546
|
+
configurable: true
|
|
547
|
+
});
|
|
548
|
+
Object.defineProperty(TuiSliderComponent.prototype, "value", {
|
|
549
|
+
get: function () {
|
|
550
|
+
var _b = this, el = _b.el, control = _b.control, hasKeySteps = _b.hasKeySteps;
|
|
551
|
+
if (!hasKeySteps && control instanceof i1.NgModel) {
|
|
552
|
+
/**
|
|
553
|
+
* If developer uses `[(ngModel)]` and programmatically change value,
|
|
554
|
+
* the `el.nativeElement.value` is equal to the previous value at this moment.
|
|
555
|
+
*/
|
|
556
|
+
return control.viewModel;
|
|
557
|
+
}
|
|
558
|
+
return Number(el.nativeElement.value) || 0;
|
|
559
|
+
},
|
|
560
|
+
set: function (newValue) {
|
|
561
|
+
this.el.nativeElement.value = "" + newValue;
|
|
562
|
+
},
|
|
563
|
+
enumerable: false,
|
|
564
|
+
configurable: true
|
|
565
|
+
});
|
|
566
|
+
Object.defineProperty(TuiSliderComponent.prototype, "valueRatio", {
|
|
567
|
+
get: function () {
|
|
568
|
+
return (this.value - this.min) / (this.max - this.min) || 0;
|
|
569
|
+
},
|
|
570
|
+
enumerable: false,
|
|
571
|
+
configurable: true
|
|
572
|
+
});
|
|
573
|
+
Object.defineProperty(TuiSliderComponent.prototype, "valuePercentage", {
|
|
574
|
+
get: function () {
|
|
575
|
+
return 100 * this.valueRatio;
|
|
576
|
+
},
|
|
577
|
+
enumerable: false,
|
|
578
|
+
configurable: true
|
|
579
|
+
});
|
|
580
|
+
Object.defineProperty(TuiSliderComponent.prototype, "segmentWidth", {
|
|
581
|
+
get: function () {
|
|
582
|
+
return 100 / Math.max(1, this.segments);
|
|
583
|
+
},
|
|
584
|
+
enumerable: false,
|
|
585
|
+
configurable: true
|
|
586
|
+
});
|
|
587
|
+
Object.defineProperty(TuiSliderComponent.prototype, "isOldEdge", {
|
|
588
|
+
// TODO: drop support of legacy Edge (EdgeHTML) in v4.x
|
|
589
|
+
get: function () {
|
|
590
|
+
return cdk.tuiIsEdgeOlderThan(cdk.CHROMIUM_EDGE_START_VERSION, this.userAgent);
|
|
591
|
+
},
|
|
592
|
+
enumerable: false,
|
|
593
|
+
configurable: true
|
|
594
|
+
});
|
|
595
|
+
Object.defineProperty(TuiSliderComponent.prototype, "hasKeySteps", {
|
|
596
|
+
get: function () {
|
|
597
|
+
return Boolean(this.injector.get(TuiSliderKeyStepsDirective, null));
|
|
598
|
+
},
|
|
599
|
+
enumerable: false,
|
|
600
|
+
configurable: true
|
|
601
|
+
});
|
|
602
|
+
return TuiSliderComponent;
|
|
603
|
+
}());
|
|
604
|
+
TuiSliderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: TUI_SLIDER_OPTIONS }, { token: i0.ElementRef }, { token: common.USER_AGENT }, { token: i0.Injector }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
605
|
+
TuiSliderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSliderComponent, selector: "input[type=range][tuiSlider]", inputs: { size: "size", segments: "segments" }, host: { listeners: { "input": "0" }, properties: { "style.--tui-slider-track-color": "options.trackColor", "attr.data-size": "this.size", "style.--tui-slider-fill-ratio": "this.valueRatio", "style.--tui-slider-fill-percentage.%": "this.valuePercentage", "style.--tui-slider-segment-width.%": "this.segmentWidth", "class._old-edge": "this.isOldEdge" } }, ngImport: i0__namespace, template: '', isInline: true, styles: [":host{position:relative;display:block;width:100%;color:var(--tui-primary);cursor:pointer}:host:active{cursor:ew-resize}:host:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}:host[data-size=s]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:calc(var(--tui-slider-fill-percentage) - var(--tui-slider-fill-ratio) * .5rem);width:.5rem;height:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:\"\";cursor:ew-resize;background:currentColor;opacity:0}:host[data-size=s]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}:host[data-size=m]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:calc(var(--tui-slider-fill-percentage) - var(--tui-slider-fill-ratio) * .75rem);width:.75rem;height:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:\"\";cursor:ew-resize;background:currentColor;opacity:0}:host[data-size=m]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}:host:not(._old-edge){-webkit-appearance:none;-moz-appearance:none;appearance:none;height:.125rem;padding:.4375rem 0;background-color:transparent;background-clip:content-box;outline:none;border-radius:var(--tui-radius-m)}:host:not(._old-edge)::-webkit-slider-container{border-radius:inherit}:host:not(._old-edge)[data-size=m]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.25rem,0;background-size:calc(100% - .75rem),calc(100% - .75rem),auto}:host:not(._old-edge)[data-size=s]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.125rem,0;background-size:calc(100% - .5rem),calc(100% - .5rem),auto}:host:not(._old-edge)[data-size=m]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.25rem;background-size:calc(100% - .75rem)}:host:not(._old-edge)[data-size=s]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.125rem;background-size:calc(100% - .5rem)}:host:not(._old-edge)[data-size=m]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled):host:not(._old-edge)[data-size=m]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled):host:not(._old-edge)[data-size=m]::-webkit-slider-thumb:hover{background-color:var(--tui-primary-hover)}:active:not(:disabled):host:not(._old-edge)[data-size=m]::-webkit-slider-thumb{background-color:var(--tui-primary-active)}:not(:disabled):host:not(._old-edge)[data-size=m]::-webkit-slider-thumb:hover,:active:not(:disabled):host:not(._old-edge)[data-size=m]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible:host:not(._old-edge)[data-size=m]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size=s]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled):host:not(._old-edge)[data-size=s]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled):host:not(._old-edge)[data-size=s]::-webkit-slider-thumb:hover{background-color:var(--tui-primary-hover)}:active:not(:disabled):host:not(._old-edge)[data-size=s]::-webkit-slider-thumb{background-color:var(--tui-primary-active)}:not(:disabled):host:not(._old-edge)[data-size=s]::-webkit-slider-thumb:hover,:active:not(:disabled):host:not(._old-edge)[data-size=s]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible:host:not(._old-edge)[data-size=s]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size=m]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-moz-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled):host:not(._old-edge)[data-size=m]::-moz-range-thumb{cursor:ew-resize}:not(:disabled):host:not(._old-edge)[data-size=m]::-moz-range-thumb:hover{background-color:var(--tui-primary-hover)}:active:not(:disabled):host:not(._old-edge)[data-size=m]::-moz-range-thumb{background-color:var(--tui-primary-active)}:not(:disabled):host:not(._old-edge)[data-size=m]::-moz-range-thumb:hover,:active:not(:disabled):host:not(._old-edge)[data-size=m]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible:host:not(._old-edge)[data-size=m]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size=s]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-moz-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled):host:not(._old-edge)[data-size=s]::-moz-range-thumb{cursor:ew-resize}:not(:disabled):host:not(._old-edge)[data-size=s]::-moz-range-thumb:hover{background-color:var(--tui-primary-hover)}:active:not(:disabled):host:not(._old-edge)[data-size=s]::-moz-range-thumb{background-color:var(--tui-primary-active)}:not(:disabled):host:not(._old-edge)[data-size=s]::-moz-range-thumb:hover,:active:not(:disabled):host:not(._old-edge)[data-size=s]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible:host:not(._old-edge)[data-size=s]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)::-moz-range-progress{border-radius:inherit}:host:not(._old-edge)::-moz-range-progress{height:.125rem;background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}:host._old-edge::-ms-thumb{background:currentColor;border-radius:50%}:host._old-edge::-ms-fill-lower{background:currentColor}:host._old-edge::-ms-track{background:var(--tui-slider-track-color);border:none}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
606
|
+
__decorate([
|
|
607
|
+
cdk.tuiPure
|
|
608
|
+
], TuiSliderComponent.prototype, "hasKeySteps", null);
|
|
609
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderComponent, decorators: [{
|
|
610
|
+
type: i0.Component,
|
|
611
|
+
args: [{
|
|
612
|
+
/**
|
|
613
|
+
* We have to call our component as `<input tuiSlider type="range" ... />`
|
|
614
|
+
* because otherwise built-in angular
|
|
615
|
+
* {@link https://github.com/angular/angular/blob/master/packages/forms/src/directives/range_value_accessor.ts#L45 RangeValueAccessor}
|
|
616
|
+
* cannot be matched by its CSS selector.
|
|
617
|
+
*/
|
|
618
|
+
selector: 'input[type=range][tuiSlider]',
|
|
619
|
+
template: '',
|
|
620
|
+
styleUrls: ['./slider.style.less'],
|
|
621
|
+
host: {
|
|
622
|
+
/**
|
|
623
|
+
* For change detection.
|
|
624
|
+
* Webkit does not have built-in method for customization of filling progress (as Firefox).
|
|
625
|
+
* We draw filling of progress by `background: linear-gradient(...)` of the track.
|
|
626
|
+
* This function triggers change detection (for {@link valuePercentage} function) when we drag thumb of the input.
|
|
627
|
+
*/
|
|
628
|
+
'(input)': '0',
|
|
629
|
+
'[style.--tui-slider-track-color]': 'options.trackColor',
|
|
630
|
+
},
|
|
631
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
632
|
+
}]
|
|
633
|
+
}], ctorParameters: function () {
|
|
634
|
+
return [{ type: i1__namespace.NgControl, decorators: [{
|
|
635
|
+
type: i0.Optional
|
|
636
|
+
}, {
|
|
637
|
+
type: i0.Self
|
|
638
|
+
}, {
|
|
639
|
+
type: i0.Inject,
|
|
640
|
+
args: [i1.NgControl]
|
|
641
|
+
}] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
|
|
642
|
+
type: i0.Inject,
|
|
643
|
+
args: [i0.ChangeDetectorRef]
|
|
644
|
+
}] }, { type: undefined, decorators: [{
|
|
645
|
+
type: i0.Inject,
|
|
646
|
+
args: [TUI_SLIDER_OPTIONS]
|
|
647
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
648
|
+
type: i0.Inject,
|
|
649
|
+
args: [i0.ElementRef]
|
|
650
|
+
}] }, { type: undefined, decorators: [{
|
|
651
|
+
type: i0.Inject,
|
|
652
|
+
args: [common.USER_AGENT]
|
|
653
|
+
}] }, { type: i0__namespace.Injector, decorators: [{
|
|
654
|
+
type: i0.Inject,
|
|
655
|
+
args: [i0.Injector]
|
|
656
|
+
}] }];
|
|
657
|
+
}, propDecorators: { size: [{
|
|
658
|
+
type: i0.Input
|
|
659
|
+
}, {
|
|
660
|
+
type: i0.HostBinding,
|
|
661
|
+
args: ['attr.data-size']
|
|
662
|
+
}], segments: [{
|
|
663
|
+
type: i0.Input
|
|
664
|
+
}], valueRatio: [{
|
|
665
|
+
type: i0.HostBinding,
|
|
666
|
+
args: ['style.--tui-slider-fill-ratio']
|
|
667
|
+
}], valuePercentage: [{
|
|
668
|
+
type: i0.HostBinding,
|
|
669
|
+
args: ['style.--tui-slider-fill-percentage.%']
|
|
670
|
+
}], segmentWidth: [{
|
|
671
|
+
type: i0.HostBinding,
|
|
672
|
+
args: ['style.--tui-slider-segment-width.%']
|
|
673
|
+
}], isOldEdge: [{
|
|
674
|
+
type: i0.HostBinding,
|
|
675
|
+
args: ['class._old-edge']
|
|
676
|
+
}], hasKeySteps: [] } });
|
|
531
677
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
678
|
+
var TuiSliderKeyStepsDirective = /** @class */ (function (_super) {
|
|
679
|
+
__extends(TuiSliderKeyStepsDirective, _super);
|
|
680
|
+
function TuiSliderKeyStepsDirective(control, cdr, el, slider) {
|
|
681
|
+
var _this = _super.call(this, control, cdr) || this;
|
|
682
|
+
_this.el = el;
|
|
683
|
+
_this.slider = slider;
|
|
684
|
+
return _this;
|
|
685
|
+
}
|
|
686
|
+
Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "nativeFocusableElement", {
|
|
687
|
+
get: function () {
|
|
688
|
+
return this.computedDisabled ? null : this.el.nativeElement;
|
|
689
|
+
},
|
|
690
|
+
enumerable: false,
|
|
691
|
+
configurable: true
|
|
692
|
+
});
|
|
693
|
+
Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "focused", {
|
|
694
|
+
get: function () {
|
|
695
|
+
return cdk.tuiIsNativeFocused(this.nativeFocusableElement);
|
|
696
|
+
},
|
|
697
|
+
enumerable: false,
|
|
698
|
+
configurable: true
|
|
699
|
+
});
|
|
700
|
+
Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "min", {
|
|
701
|
+
get: function () {
|
|
702
|
+
return this.keySteps[0][1];
|
|
703
|
+
},
|
|
704
|
+
enumerable: false,
|
|
705
|
+
configurable: true
|
|
706
|
+
});
|
|
707
|
+
Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "max", {
|
|
708
|
+
get: function () {
|
|
709
|
+
return this.keySteps[this.keySteps.length - 1][1];
|
|
710
|
+
},
|
|
711
|
+
enumerable: false,
|
|
712
|
+
configurable: true
|
|
713
|
+
});
|
|
714
|
+
TuiSliderKeyStepsDirective.prototype.updateControlValue = function () {
|
|
715
|
+
this.value = utils.tuiPercentageToKeyStepValue(this.slider.valuePercentage, this.keySteps);
|
|
716
|
+
};
|
|
717
|
+
TuiSliderKeyStepsDirective.prototype.writeValue = function (controlValue) {
|
|
718
|
+
if (controlValue === null) {
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
721
|
+
var clampedControlValue = cdk.tuiClamp(controlValue, this.min, this.max);
|
|
722
|
+
ngDevMode &&
|
|
723
|
+
cdk.tuiAssert.assert(controlValue === clampedControlValue, '\n[SliderKeySteps]: You cannot programmatically set value which is less/more than min/max');
|
|
724
|
+
this.slider.value = this.transformToNativeValue(clampedControlValue);
|
|
725
|
+
};
|
|
726
|
+
TuiSliderKeyStepsDirective.prototype.getFallbackValue = function () {
|
|
727
|
+
return 0;
|
|
728
|
+
};
|
|
729
|
+
TuiSliderKeyStepsDirective.prototype.transformToNativeValue = function (controlValue) {
|
|
730
|
+
var _a = this.slider, min = _a.min, max = _a.max;
|
|
731
|
+
var newValuePercentage = utils.tuiKeyStepValueToPercentage(controlValue, this.keySteps);
|
|
732
|
+
return (newValuePercentage * (max - min)) / 100 + min;
|
|
733
|
+
};
|
|
734
|
+
return TuiSliderKeyStepsDirective;
|
|
735
|
+
}(cdk.AbstractTuiControl));
|
|
736
|
+
TuiSliderKeyStepsDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderKeyStepsDirective, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.forwardRef(function () { return TuiSliderComponent; }) }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
737
|
+
TuiSliderKeyStepsDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSliderKeyStepsDirective, selector: "input[tuiSlider][keySteps]", inputs: { keySteps: "keySteps" }, host: { listeners: { "input": "updateControlValue()", "change": "updateControlValue()" }, properties: { "attr.aria-valuenow": "safeCurrentValue", "attr.aria-valuemin": "min", "attr.aria-valuemax": "max", "disabled": "computedDisabled" } }, usesInheritance: true, ngImport: i0__namespace });
|
|
738
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderKeyStepsDirective, decorators: [{
|
|
739
|
+
type: i0.Directive,
|
|
740
|
+
args: [{
|
|
741
|
+
selector: 'input[tuiSlider][keySteps]',
|
|
742
|
+
host: {
|
|
743
|
+
'[attr.aria-valuenow]': 'safeCurrentValue',
|
|
744
|
+
'[attr.aria-valuemin]': 'min',
|
|
745
|
+
'[attr.aria-valuemax]': 'max',
|
|
746
|
+
'[disabled]': 'computedDisabled',
|
|
747
|
+
},
|
|
748
|
+
}]
|
|
749
|
+
}], ctorParameters: function () {
|
|
750
|
+
return [{ type: i1__namespace.NgControl, decorators: [{
|
|
751
|
+
type: i0.Optional
|
|
752
|
+
}, {
|
|
753
|
+
type: i0.Self
|
|
754
|
+
}, {
|
|
755
|
+
type: i0.Inject,
|
|
756
|
+
args: [i1.NgControl]
|
|
757
|
+
}] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
|
|
758
|
+
type: i0.Inject,
|
|
759
|
+
args: [i0.ChangeDetectorRef]
|
|
760
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
761
|
+
type: i0.Inject,
|
|
762
|
+
args: [i0.ElementRef]
|
|
763
|
+
}] }, { type: TuiSliderComponent, decorators: [{
|
|
764
|
+
type: i0.Inject,
|
|
765
|
+
args: [i0.forwardRef(function () { return TuiSliderComponent; })]
|
|
766
|
+
}] }];
|
|
767
|
+
}, propDecorators: { keySteps: [{
|
|
768
|
+
type: i0.Input
|
|
769
|
+
}], updateControlValue: [{
|
|
770
|
+
type: i0.HostListener,
|
|
771
|
+
args: ['input']
|
|
772
|
+
}, {
|
|
773
|
+
type: i0.HostListener,
|
|
774
|
+
args: ['change']
|
|
775
|
+
}] } });
|
|
630
776
|
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
777
|
+
var SLIDER_INTERACTION_KEYS = new Set([
|
|
778
|
+
'ArrowLeft',
|
|
779
|
+
'ArrowRight',
|
|
780
|
+
'ArrowUp',
|
|
781
|
+
'ArrowDown',
|
|
782
|
+
'Home',
|
|
783
|
+
'End',
|
|
784
|
+
'PageUp',
|
|
785
|
+
'PageDown',
|
|
786
|
+
]);
|
|
787
|
+
/**
|
|
788
|
+
* Native <input type='range' readonly> doesn't work.
|
|
789
|
+
* This directive imitates this native behaviour.
|
|
790
|
+
*/
|
|
791
|
+
var TuiSliderReadonlyDirective = /** @class */ (function () {
|
|
792
|
+
function TuiSliderReadonlyDirective(el, doc, destroy$) {
|
|
793
|
+
var _this = this;
|
|
794
|
+
this.readonly = true;
|
|
795
|
+
var touchStart$ = cdk.tuiTypedFromEvent(el.nativeElement, 'touchstart', {
|
|
796
|
+
passive: false,
|
|
797
|
+
});
|
|
798
|
+
var touchMove$ = cdk.tuiTypedFromEvent(doc, 'touchmove', {
|
|
799
|
+
passive: false,
|
|
800
|
+
});
|
|
801
|
+
var touchEnd$ = cdk.tuiTypedFromEvent(doc, 'touchend', {
|
|
802
|
+
passive: true,
|
|
803
|
+
});
|
|
804
|
+
var shouldPreventMove$ = i1$1.merge(touchStart$.pipe(operators.tap(function (e) { return _this.preventEvent(e); }), operators.map(cdk.ALWAYS_TRUE_HANDLER)), touchEnd$.pipe(operators.map(cdk.ALWAYS_FALSE_HANDLER)));
|
|
805
|
+
/**
|
|
806
|
+
* @bad TODO think about another solution.
|
|
807
|
+
* Keep in mind that preventing touch event (on slider) inside `@HostListener('touchstart')` doesn't work for mobile chrome.
|
|
808
|
+
*/
|
|
809
|
+
i1$1.combineLatest([touchMove$, shouldPreventMove$])
|
|
810
|
+
.pipe(operators.filter(function (_a) {
|
|
811
|
+
var _b = __read(_a, 2), _ = _b[0], shouldPreventMove = _b[1];
|
|
812
|
+
return shouldPreventMove;
|
|
813
|
+
}), operators.takeUntil(destroy$))
|
|
814
|
+
.subscribe(function (_a) {
|
|
815
|
+
var _b = __read(_a, 1), moveEvent = _b[0];
|
|
816
|
+
return _this.preventEvent(moveEvent);
|
|
817
|
+
});
|
|
818
|
+
}
|
|
819
|
+
TuiSliderReadonlyDirective.prototype.preventEvent = function (event) {
|
|
820
|
+
if (event.cancelable && cdk.tuiCoerceBooleanProperty(this.readonly)) {
|
|
821
|
+
event.preventDefault();
|
|
822
|
+
}
|
|
823
|
+
};
|
|
824
|
+
TuiSliderReadonlyDirective.prototype.preventKeyboardInteraction = function (event) {
|
|
825
|
+
if (SLIDER_INTERACTION_KEYS.has(event.key)) {
|
|
826
|
+
this.preventEvent(event);
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
return TuiSliderReadonlyDirective;
|
|
830
|
+
}());
|
|
831
|
+
TuiSliderReadonlyDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderReadonlyDirective, deps: [{ token: i0.ElementRef }, { token: i1$2.DOCUMENT }, { token: cdk.TuiDestroyService, self: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
832
|
+
TuiSliderReadonlyDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSliderReadonlyDirective, selector: "input[tuiSlider][readonly]", inputs: { readonly: "readonly" }, host: { listeners: { "mousedown": "preventEvent($event)", "keydown": "preventKeyboardInteraction($event)" } }, providers: [cdk.TuiDestroyService], ngImport: i0__namespace });
|
|
833
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderReadonlyDirective, decorators: [{
|
|
834
|
+
type: i0.Directive,
|
|
835
|
+
args: [{
|
|
836
|
+
selector: 'input[tuiSlider][readonly]',
|
|
837
|
+
providers: [cdk.TuiDestroyService],
|
|
838
|
+
}]
|
|
839
|
+
}], ctorParameters: function () {
|
|
840
|
+
return [{ type: i0__namespace.ElementRef, decorators: [{
|
|
841
|
+
type: i0.Inject,
|
|
842
|
+
args: [i0.ElementRef]
|
|
843
|
+
}] }, { type: Document, decorators: [{
|
|
844
|
+
type: i0.Inject,
|
|
845
|
+
args: [i1$2.DOCUMENT]
|
|
846
|
+
}] }, { type: i1__namespace$1.Observable, decorators: [{
|
|
847
|
+
type: i0.Self
|
|
848
|
+
}, {
|
|
849
|
+
type: i0.Inject,
|
|
850
|
+
args: [cdk.TuiDestroyService]
|
|
851
|
+
}] }];
|
|
852
|
+
}, propDecorators: { readonly: [{
|
|
853
|
+
type: i0.Input
|
|
854
|
+
}], preventEvent: [{
|
|
855
|
+
type: i0.HostListener,
|
|
856
|
+
args: ['mousedown', ['$event']]
|
|
857
|
+
}], preventKeyboardInteraction: [{
|
|
858
|
+
type: i0.HostListener,
|
|
859
|
+
args: ['keydown', ['$event']]
|
|
860
|
+
}] } });
|
|
715
861
|
|
|
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
|
-
|
|
862
|
+
var TuiSliderThumbLabelComponent = /** @class */ (function () {
|
|
863
|
+
function TuiSliderThumbLabelComponent() {
|
|
864
|
+
}
|
|
865
|
+
Object.defineProperty(TuiSliderThumbLabelComponent.prototype, "size", {
|
|
866
|
+
get: function () {
|
|
867
|
+
var _a;
|
|
868
|
+
return ((_a = this.slider) === null || _a === void 0 ? void 0 : _a.size) || 'm';
|
|
869
|
+
},
|
|
870
|
+
enumerable: false,
|
|
871
|
+
configurable: true
|
|
872
|
+
});
|
|
873
|
+
Object.defineProperty(TuiSliderThumbLabelComponent.prototype, "ratio", {
|
|
874
|
+
get: function () {
|
|
875
|
+
var _a;
|
|
876
|
+
return ((_a = this.slider) === null || _a === void 0 ? void 0 : _a.valueRatio) || 0;
|
|
877
|
+
},
|
|
878
|
+
enumerable: false,
|
|
879
|
+
configurable: true
|
|
880
|
+
});
|
|
881
|
+
Object.defineProperty(TuiSliderThumbLabelComponent.prototype, "ghostLeft", {
|
|
882
|
+
get: function () {
|
|
883
|
+
var _a;
|
|
884
|
+
return this.ratio * (((_a = this.slider) === null || _a === void 0 ? void 0 : _a.el.nativeElement.offsetWidth) || 0);
|
|
885
|
+
},
|
|
886
|
+
enumerable: false,
|
|
887
|
+
configurable: true
|
|
888
|
+
});
|
|
889
|
+
TuiSliderThumbLabelComponent.prototype.ngAfterContentInit = function () {
|
|
890
|
+
var _a;
|
|
891
|
+
ngDevMode &&
|
|
892
|
+
cdk.tuiAssert.assert(Boolean((_a = this.control) === null || _a === void 0 ? void 0 : _a.valueChanges), '\n[tuiSliderThumbLabel] expected <input tuiSlider type="range" /> to use Angular Forms.\n' +
|
|
893
|
+
'Use [(ngModel)] or [formControl] or formControlName for correct work.');
|
|
894
|
+
};
|
|
895
|
+
return TuiSliderThumbLabelComponent;
|
|
896
|
+
}());
|
|
897
|
+
TuiSliderThumbLabelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderThumbLabelComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
898
|
+
TuiSliderThumbLabelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSliderThumbLabelComponent, selector: "[tuiSliderThumbLabel]", queries: [{ propertyName: "slider", first: true, predicate: TuiSliderComponent, descendants: true }, { propertyName: "control", first: true, predicate: i1.NgControl, descendants: true }], ngImport: i0__namespace, template: "<ng-container *ngIf=\"control?.valueChanges | async\"></ng-container>\n\n<div\n class=\"t-ghost\"\n [attr.data-size]=\"size\"\n [style.--tui-slider-thumb-ratio]=\"ratio\"\n [style.left.px]=\"ghostLeft\"\n>\n <ng-content></ng-content>\n</div>\n\n<ng-content select=\"input[type=range]\"></ng-content>\n", styles: [":host{position:relative}.t-ghost{position:absolute;top:0;bottom:0;margin:auto;border-radius:50%;pointer-events:none}.t-ghost[data-size=s]{width:.5rem;height:.5rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.5rem))}.t-ghost[data-size=m]{width:.75rem;height:.75rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.75rem))}\n"], directives: [{ type: i1__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i1__namespace$2.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
899
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderThumbLabelComponent, decorators: [{
|
|
900
|
+
type: i0.Component,
|
|
901
|
+
args: [{
|
|
902
|
+
selector: '[tuiSliderThumbLabel]',
|
|
903
|
+
templateUrl: './slider-thumb-label.template.html',
|
|
904
|
+
styleUrls: ['./slider-thumb-label.style.less'],
|
|
905
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
906
|
+
}]
|
|
907
|
+
}], propDecorators: { slider: [{
|
|
908
|
+
type: i0.ContentChild,
|
|
909
|
+
args: [TuiSliderComponent]
|
|
910
|
+
}], control: [{
|
|
911
|
+
type: i0.ContentChild,
|
|
912
|
+
args: [i1.NgControl]
|
|
913
|
+
}] } });
|
|
768
914
|
|
|
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
|
-
|
|
915
|
+
var TuiSliderModule = /** @class */ (function () {
|
|
916
|
+
function TuiSliderModule() {
|
|
917
|
+
}
|
|
918
|
+
return TuiSliderModule;
|
|
919
|
+
}());
|
|
920
|
+
TuiSliderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
921
|
+
TuiSliderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, declarations: [TuiSliderComponent,
|
|
922
|
+
TuiSliderThumbLabelComponent,
|
|
923
|
+
TuiSliderKeyStepsDirective,
|
|
924
|
+
TuiSliderReadonlyDirective], imports: [i1$2.CommonModule], exports: [TuiSliderComponent,
|
|
925
|
+
TuiSliderThumbLabelComponent,
|
|
926
|
+
TuiSliderKeyStepsDirective,
|
|
927
|
+
TuiSliderReadonlyDirective] });
|
|
928
|
+
TuiSliderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, imports: [[i1$2.CommonModule]] });
|
|
929
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, decorators: [{
|
|
930
|
+
type: i0.NgModule,
|
|
931
|
+
args: [{
|
|
932
|
+
imports: [i1$2.CommonModule],
|
|
933
|
+
declarations: [
|
|
934
|
+
TuiSliderComponent,
|
|
935
|
+
TuiSliderThumbLabelComponent,
|
|
936
|
+
TuiSliderKeyStepsDirective,
|
|
937
|
+
TuiSliderReadonlyDirective,
|
|
938
|
+
],
|
|
939
|
+
exports: [
|
|
940
|
+
TuiSliderComponent,
|
|
941
|
+
TuiSliderThumbLabelComponent,
|
|
942
|
+
TuiSliderKeyStepsDirective,
|
|
943
|
+
TuiSliderReadonlyDirective,
|
|
944
|
+
],
|
|
945
|
+
}]
|
|
946
|
+
}] });
|
|
801
947
|
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
948
|
+
/**
|
|
949
|
+
* Generated bundle index. Do not edit.
|
|
950
|
+
*/
|
|
805
951
|
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
952
|
+
exports.TUI_SLIDER_DEFAULT_OPTIONS = TUI_SLIDER_DEFAULT_OPTIONS;
|
|
953
|
+
exports.TUI_SLIDER_OPTIONS = TUI_SLIDER_OPTIONS;
|
|
954
|
+
exports.TuiSliderComponent = TuiSliderComponent;
|
|
955
|
+
exports.TuiSliderKeyStepsDirective = TuiSliderKeyStepsDirective;
|
|
956
|
+
exports.TuiSliderModule = TuiSliderModule;
|
|
957
|
+
exports.TuiSliderReadonlyDirective = TuiSliderReadonlyDirective;
|
|
958
|
+
exports.TuiSliderThumbLabelComponent = TuiSliderThumbLabelComponent;
|
|
959
|
+
exports.tuiSliderOptionsProvider = tuiSliderOptionsProvider;
|
|
814
960
|
|
|
815
|
-
|
|
961
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
816
962
|
|
|
817
963
|
}));
|
|
818
964
|
//# sourceMappingURL=taiga-ui-kit-components-slider.umd.js.map
|