@taiga-ui/kit 3.70.0-canary.e02fd1e → 3.71.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 +628 -774
- package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.js +452 -598
- package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.js +494 -640
- package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +417 -563
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js +601 -747
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js +572 -718
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-carousel.umd.js +678 -824
- package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +499 -645
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +439 -585
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.js +462 -608
- package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.js +688 -834
- package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +510 -656
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js +441 -587
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.js +660 -806
- package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.js +461 -607
- package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.js +554 -700
- package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.js +663 -809
- package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-multi.umd.js +707 -853
- 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 +827 -973
- 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 +896 -1042
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.js +830 -976
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.js +829 -975
- package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.js +466 -612
- package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js +609 -755
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.js +642 -788
- package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.js +795 -941
- package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.js +574 -720
- package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +665 -811
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.js +767 -913
- package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.js +650 -796
- package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +591 -737
- package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +958 -1104
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.js +877 -1023
- package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-year.umd.js +559 -705
- package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.js +515 -661
- package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js +543 -689
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js +596 -742
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +398 -544
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.js +1191 -1337
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.js +664 -810
- package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +6 -152
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.js +6 -152
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-push.umd.js +6 -152
- package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-block.umd.js +499 -645
- package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +470 -616
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-list.umd.js +482 -628
- package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.js +543 -689
- package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.js +665 -811
- package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-rating.umd.js +500 -646
- package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js +440 -586
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js +787 -933
- package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js +797 -943
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.js +623 -769
- package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js +7 -153
- package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-textarea.umd.js +820 -966
- package/bundles/taiga-ui-kit-components-textarea.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tiles.umd.js +693 -839
- package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.js +565 -711
- package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-constants.umd.js +6 -152
- package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +491 -637
- 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 +459 -605
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js +394 -540
- package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js +547 -693
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +470 -616
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js +378 -524
- package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.js +6 -152
- package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-math.umd.js +6 -152
- package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +6 -152
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
- package/components/input-files/input-files.component.d.ts +1 -1
- package/esm2015/components/input-files/input-files.component.js +5 -5
- package/esm2015/components/tabs/tab/tab.component.js +1 -1
- package/fesm2015/taiga-ui-kit-components-input-files.js +4 -4
- package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js +1 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
- package/package.json +42 -42
|
@@ -1,964 +1,818 @@
|
|
|
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
|
-
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
18
20
|
}
|
|
19
|
-
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
20
23
|
}
|
|
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
|
-
|
|
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
|
-
};
|
|
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 */
|
|
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 __metadata(metadataKey, metadataValue) {
|
|
98
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
99
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
100
|
+
}
|
|
101
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
102
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
103
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
104
|
+
function fulfilled(value) { try {
|
|
105
|
+
step(generator.next(value));
|
|
106
|
+
}
|
|
107
|
+
catch (e) {
|
|
108
|
+
reject(e);
|
|
109
|
+
} }
|
|
110
|
+
function rejected(value) { try {
|
|
111
|
+
step(generator["throw"](value));
|
|
112
|
+
}
|
|
113
|
+
catch (e) {
|
|
114
|
+
reject(e);
|
|
115
|
+
} }
|
|
116
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
117
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
function __generator(thisArg, body) {
|
|
121
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
122
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
123
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
124
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
125
|
+
function step(op) {
|
|
126
|
+
if (f)
|
|
127
|
+
throw new TypeError("Generator is already executing.");
|
|
128
|
+
while (_)
|
|
129
|
+
try {
|
|
130
|
+
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)
|
|
131
|
+
return t;
|
|
132
|
+
if (y = 0, t)
|
|
133
|
+
op = [op[0] & 2, t.value];
|
|
134
|
+
switch (op[0]) {
|
|
135
|
+
case 0:
|
|
136
|
+
case 1:
|
|
137
|
+
t = op;
|
|
138
|
+
break;
|
|
139
|
+
case 4:
|
|
140
|
+
_.label++;
|
|
141
|
+
return { value: op[1], done: false };
|
|
142
|
+
case 5:
|
|
143
|
+
_.label++;
|
|
144
|
+
y = op[1];
|
|
145
|
+
op = [0];
|
|
146
|
+
continue;
|
|
147
|
+
case 7:
|
|
148
|
+
op = _.ops.pop();
|
|
149
|
+
_.trys.pop();
|
|
150
|
+
continue;
|
|
151
|
+
default:
|
|
152
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
153
|
+
_ = 0;
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
157
|
+
_.label = op[1];
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
161
|
+
_.label = t[1];
|
|
162
|
+
t = op;
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
if (t && _.label < t[2]) {
|
|
166
|
+
_.label = t[2];
|
|
167
|
+
_.ops.push(op);
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
if (t[2])
|
|
171
|
+
_.ops.pop();
|
|
172
|
+
_.trys.pop();
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
op = body.call(thisArg, _);
|
|
176
|
+
}
|
|
177
|
+
catch (e) {
|
|
178
|
+
op = [6, e];
|
|
179
|
+
y = 0;
|
|
180
|
+
}
|
|
181
|
+
finally {
|
|
182
|
+
f = t = 0;
|
|
183
|
+
}
|
|
184
|
+
if (op[0] & 5)
|
|
185
|
+
throw op[1];
|
|
186
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
190
|
+
if (k2 === undefined)
|
|
191
|
+
k2 = k;
|
|
192
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
193
|
+
}) : (function (o, m, k, k2) {
|
|
194
|
+
if (k2 === undefined)
|
|
195
|
+
k2 = k;
|
|
196
|
+
o[k2] = m[k];
|
|
197
|
+
});
|
|
198
|
+
function __exportStar(m, o) {
|
|
199
|
+
for (var p in m)
|
|
200
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
201
|
+
__createBinding(o, m, p);
|
|
202
|
+
}
|
|
203
|
+
function __values(o) {
|
|
204
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
205
|
+
if (m)
|
|
206
|
+
return m.call(o);
|
|
207
|
+
if (o && typeof o.length === "number")
|
|
208
|
+
return {
|
|
209
|
+
next: function () {
|
|
210
|
+
if (o && i >= o.length)
|
|
211
|
+
o = void 0;
|
|
212
|
+
return { value: o && o[i++], done: !o };
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
216
|
+
}
|
|
217
|
+
function __read(o, n) {
|
|
218
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
219
|
+
if (!m)
|
|
220
|
+
return o;
|
|
221
|
+
var i = m.call(o), r, ar = [], e;
|
|
222
|
+
try {
|
|
223
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
224
|
+
ar.push(r.value);
|
|
225
|
+
}
|
|
226
|
+
catch (error) {
|
|
227
|
+
e = { error: error };
|
|
228
|
+
}
|
|
229
|
+
finally {
|
|
230
|
+
try {
|
|
231
|
+
if (r && !r.done && (m = i["return"]))
|
|
232
|
+
m.call(i);
|
|
233
|
+
}
|
|
234
|
+
finally {
|
|
235
|
+
if (e)
|
|
236
|
+
throw e.error;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
return ar;
|
|
240
|
+
}
|
|
241
|
+
/** @deprecated */
|
|
242
|
+
function __spread() {
|
|
243
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
244
|
+
ar = ar.concat(__read(arguments[i]));
|
|
245
|
+
return ar;
|
|
246
|
+
}
|
|
247
|
+
/** @deprecated */
|
|
248
|
+
function __spreadArrays() {
|
|
249
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
250
|
+
s += arguments[i].length;
|
|
251
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
252
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
253
|
+
r[k] = a[j];
|
|
254
|
+
return r;
|
|
255
|
+
}
|
|
256
|
+
function __spreadArray(to, from, pack) {
|
|
257
|
+
if (pack || arguments.length === 2)
|
|
258
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
259
|
+
if (ar || !(i in from)) {
|
|
260
|
+
if (!ar)
|
|
261
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
262
|
+
ar[i] = from[i];
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
return to.concat(ar || from);
|
|
266
|
+
}
|
|
267
|
+
function __await(v) {
|
|
268
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
269
|
+
}
|
|
270
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
271
|
+
if (!Symbol.asyncIterator)
|
|
272
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
273
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
274
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
275
|
+
function verb(n) { if (g[n])
|
|
276
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
277
|
+
function resume(n, v) { try {
|
|
278
|
+
step(g[n](v));
|
|
279
|
+
}
|
|
280
|
+
catch (e) {
|
|
281
|
+
settle(q[0][3], e);
|
|
282
|
+
} }
|
|
283
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
284
|
+
function fulfill(value) { resume("next", value); }
|
|
285
|
+
function reject(value) { resume("throw", value); }
|
|
286
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
287
|
+
resume(q[0][0], q[0][1]); }
|
|
288
|
+
}
|
|
289
|
+
function __asyncDelegator(o) {
|
|
290
|
+
var i, p;
|
|
291
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
292
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
293
|
+
}
|
|
294
|
+
function __asyncValues(o) {
|
|
295
|
+
if (!Symbol.asyncIterator)
|
|
296
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
297
|
+
var m = o[Symbol.asyncIterator], i;
|
|
298
|
+
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);
|
|
299
|
+
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); }); }; }
|
|
300
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
301
|
+
}
|
|
302
|
+
function __makeTemplateObject(cooked, raw) {
|
|
303
|
+
if (Object.defineProperty) {
|
|
304
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
cooked.raw = raw;
|
|
308
|
+
}
|
|
309
|
+
return cooked;
|
|
310
|
+
}
|
|
311
|
+
;
|
|
312
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
313
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
314
|
+
}) : function (o, v) {
|
|
315
|
+
o["default"] = v;
|
|
316
|
+
};
|
|
317
|
+
function __importStar(mod) {
|
|
318
|
+
if (mod && mod.__esModule)
|
|
319
|
+
return mod;
|
|
320
|
+
var result = {};
|
|
321
|
+
if (mod != null)
|
|
322
|
+
for (var k in mod)
|
|
323
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
324
|
+
__createBinding(result, mod, k);
|
|
325
|
+
__setModuleDefault(result, mod);
|
|
326
|
+
return result;
|
|
327
|
+
}
|
|
328
|
+
function __importDefault(mod) {
|
|
329
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
330
|
+
}
|
|
331
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
332
|
+
if (kind === "a" && !f)
|
|
333
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
334
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
335
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
336
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
337
|
+
}
|
|
338
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
339
|
+
if (kind === "m")
|
|
340
|
+
throw new TypeError("Private method is not writable");
|
|
341
|
+
if (kind === "a" && !f)
|
|
342
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
343
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
344
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
345
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
346
|
+
}
|
|
493
347
|
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
348
|
+
var TUI_SLIDER_DEFAULT_OPTIONS = {
|
|
349
|
+
size: 'm',
|
|
350
|
+
trackColor: 'var(--tui-base-03)',
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* Default parameters for Slider component
|
|
354
|
+
*/
|
|
355
|
+
var TUI_SLIDER_OPTIONS = cdk.tuiCreateToken(TUI_SLIDER_DEFAULT_OPTIONS);
|
|
356
|
+
function tuiSliderOptionsProvider(options) {
|
|
357
|
+
return cdk.tuiProvideOptions(TUI_SLIDER_OPTIONS, options, TUI_SLIDER_DEFAULT_OPTIONS);
|
|
358
|
+
}
|
|
505
359
|
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
360
|
+
var TuiSliderComponent = /** @class */ (function () {
|
|
361
|
+
function TuiSliderComponent(control, cdr, options, el, userAgent, injector) {
|
|
362
|
+
var _a;
|
|
363
|
+
this.control = control;
|
|
364
|
+
this.options = options;
|
|
365
|
+
this.el = el;
|
|
366
|
+
this.userAgent = userAgent;
|
|
367
|
+
this.injector = injector;
|
|
368
|
+
this.size = this.options.size;
|
|
369
|
+
this.segments = 1;
|
|
370
|
+
if (control instanceof i1.NgModel) {
|
|
371
|
+
/**
|
|
372
|
+
* The ValueAccessor.writeValue method is called twice on any value accessor during component initialization,
|
|
373
|
+
* when a control is bound using [(ngModel)], first time with a phantom null value.
|
|
374
|
+
* With `changeDetection: ChangeDetectionStrategy.OnPush` the second call of writeValue with real value don't re-render the view.
|
|
375
|
+
* ___
|
|
376
|
+
* See this {@link https://github.com/angular/angular/issues/14988 issue}
|
|
377
|
+
*/
|
|
378
|
+
(_a = control.valueChanges) === null || _a === void 0 ? void 0 : _a.pipe(cdk.tuiWatch(cdr), operators.take(1)).subscribe();
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
Object.defineProperty(TuiSliderComponent.prototype, "min", {
|
|
382
|
+
get: function () {
|
|
383
|
+
return Number(this.el.nativeElement.min);
|
|
384
|
+
},
|
|
385
|
+
enumerable: false,
|
|
386
|
+
configurable: true
|
|
387
|
+
});
|
|
388
|
+
Object.defineProperty(TuiSliderComponent.prototype, "max", {
|
|
389
|
+
get: function () {
|
|
390
|
+
return Number(this.el.nativeElement.max || 100);
|
|
391
|
+
},
|
|
392
|
+
enumerable: false,
|
|
393
|
+
configurable: true
|
|
394
|
+
});
|
|
395
|
+
Object.defineProperty(TuiSliderComponent.prototype, "step", {
|
|
396
|
+
get: function () {
|
|
397
|
+
return Number(this.el.nativeElement.step) || 1;
|
|
398
|
+
},
|
|
399
|
+
enumerable: false,
|
|
400
|
+
configurable: true
|
|
401
|
+
});
|
|
402
|
+
Object.defineProperty(TuiSliderComponent.prototype, "value", {
|
|
403
|
+
get: function () {
|
|
404
|
+
var _b = this, el = _b.el, control = _b.control, hasKeySteps = _b.hasKeySteps;
|
|
405
|
+
if (!hasKeySteps && control instanceof i1.NgModel) {
|
|
406
|
+
/**
|
|
407
|
+
* If developer uses `[(ngModel)]` and programmatically change value,
|
|
408
|
+
* the `el.nativeElement.value` is equal to the previous value at this moment.
|
|
409
|
+
*/
|
|
410
|
+
return control.viewModel;
|
|
411
|
+
}
|
|
412
|
+
return Number(el.nativeElement.value) || 0;
|
|
413
|
+
},
|
|
414
|
+
set: function (newValue) {
|
|
415
|
+
this.el.nativeElement.value = "" + newValue;
|
|
416
|
+
},
|
|
417
|
+
enumerable: false,
|
|
418
|
+
configurable: true
|
|
419
|
+
});
|
|
420
|
+
Object.defineProperty(TuiSliderComponent.prototype, "valueRatio", {
|
|
421
|
+
get: function () {
|
|
422
|
+
return (this.value - this.min) / (this.max - this.min) || 0;
|
|
423
|
+
},
|
|
424
|
+
enumerable: false,
|
|
425
|
+
configurable: true
|
|
426
|
+
});
|
|
427
|
+
Object.defineProperty(TuiSliderComponent.prototype, "valuePercentage", {
|
|
428
|
+
get: function () {
|
|
429
|
+
return 100 * this.valueRatio;
|
|
430
|
+
},
|
|
431
|
+
enumerable: false,
|
|
432
|
+
configurable: true
|
|
433
|
+
});
|
|
434
|
+
Object.defineProperty(TuiSliderComponent.prototype, "segmentWidth", {
|
|
435
|
+
get: function () {
|
|
436
|
+
return 100 / Math.max(1, this.segments);
|
|
437
|
+
},
|
|
438
|
+
enumerable: false,
|
|
439
|
+
configurable: true
|
|
440
|
+
});
|
|
441
|
+
Object.defineProperty(TuiSliderComponent.prototype, "isOldEdge", {
|
|
442
|
+
// TODO: drop support of legacy Edge (EdgeHTML) in v4.x
|
|
443
|
+
get: function () {
|
|
444
|
+
return cdk.tuiIsEdgeOlderThan(cdk.CHROMIUM_EDGE_START_VERSION, this.userAgent);
|
|
445
|
+
},
|
|
446
|
+
enumerable: false,
|
|
447
|
+
configurable: true
|
|
448
|
+
});
|
|
449
|
+
Object.defineProperty(TuiSliderComponent.prototype, "hasKeySteps", {
|
|
450
|
+
get: function () {
|
|
451
|
+
return Boolean(this.injector.get(TuiSliderKeyStepsDirective, null));
|
|
452
|
+
},
|
|
453
|
+
enumerable: false,
|
|
454
|
+
configurable: true
|
|
455
|
+
});
|
|
456
|
+
return TuiSliderComponent;
|
|
457
|
+
}());
|
|
458
|
+
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 });
|
|
459
|
+
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 });
|
|
460
|
+
__decorate([
|
|
461
|
+
cdk.tuiPure
|
|
462
|
+
], TuiSliderComponent.prototype, "hasKeySteps", null);
|
|
463
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderComponent, decorators: [{
|
|
464
|
+
type: i0.Component,
|
|
465
|
+
args: [{
|
|
466
|
+
/**
|
|
467
|
+
* We have to call our component as `<input tuiSlider type="range" ... />`
|
|
468
|
+
* because otherwise built-in angular
|
|
469
|
+
* {@link https://github.com/angular/angular/blob/master/packages/forms/src/directives/range_value_accessor.ts#L45 RangeValueAccessor}
|
|
470
|
+
* cannot be matched by its CSS selector.
|
|
471
|
+
*/
|
|
472
|
+
selector: 'input[type=range][tuiSlider]',
|
|
473
|
+
template: '',
|
|
474
|
+
styleUrls: ['./slider.style.less'],
|
|
475
|
+
host: {
|
|
476
|
+
/**
|
|
477
|
+
* For change detection.
|
|
478
|
+
* Webkit does not have built-in method for customization of filling progress (as Firefox).
|
|
479
|
+
* We draw filling of progress by `background: linear-gradient(...)` of the track.
|
|
480
|
+
* This function triggers change detection (for {@link valuePercentage} function) when we drag thumb of the input.
|
|
481
|
+
*/
|
|
482
|
+
'(input)': '0',
|
|
483
|
+
'[style.--tui-slider-track-color]': 'options.trackColor',
|
|
484
|
+
},
|
|
485
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
486
|
+
}]
|
|
487
|
+
}], ctorParameters: function () {
|
|
488
|
+
return [{ type: i1__namespace.NgControl, decorators: [{
|
|
489
|
+
type: i0.Optional
|
|
490
|
+
}, {
|
|
491
|
+
type: i0.Self
|
|
492
|
+
}, {
|
|
493
|
+
type: i0.Inject,
|
|
494
|
+
args: [i1.NgControl]
|
|
495
|
+
}] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
|
|
496
|
+
type: i0.Inject,
|
|
497
|
+
args: [i0.ChangeDetectorRef]
|
|
498
|
+
}] }, { type: undefined, decorators: [{
|
|
499
|
+
type: i0.Inject,
|
|
500
|
+
args: [TUI_SLIDER_OPTIONS]
|
|
501
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
502
|
+
type: i0.Inject,
|
|
503
|
+
args: [i0.ElementRef]
|
|
504
|
+
}] }, { type: undefined, decorators: [{
|
|
505
|
+
type: i0.Inject,
|
|
506
|
+
args: [common.USER_AGENT]
|
|
507
|
+
}] }, { type: i0__namespace.Injector, decorators: [{
|
|
508
|
+
type: i0.Inject,
|
|
509
|
+
args: [i0.Injector]
|
|
510
|
+
}] }];
|
|
511
|
+
}, propDecorators: { size: [{
|
|
512
|
+
type: i0.Input
|
|
513
|
+
}, {
|
|
514
|
+
type: i0.HostBinding,
|
|
515
|
+
args: ['attr.data-size']
|
|
516
|
+
}], segments: [{
|
|
517
|
+
type: i0.Input
|
|
518
|
+
}], valueRatio: [{
|
|
519
|
+
type: i0.HostBinding,
|
|
520
|
+
args: ['style.--tui-slider-fill-ratio']
|
|
521
|
+
}], valuePercentage: [{
|
|
522
|
+
type: i0.HostBinding,
|
|
523
|
+
args: ['style.--tui-slider-fill-percentage.%']
|
|
524
|
+
}], segmentWidth: [{
|
|
525
|
+
type: i0.HostBinding,
|
|
526
|
+
args: ['style.--tui-slider-segment-width.%']
|
|
527
|
+
}], isOldEdge: [{
|
|
528
|
+
type: i0.HostBinding,
|
|
529
|
+
args: ['class._old-edge']
|
|
530
|
+
}], hasKeySteps: [] } });
|
|
677
531
|
|
|
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
|
-
|
|
532
|
+
var TuiSliderKeyStepsDirective = /** @class */ (function (_super) {
|
|
533
|
+
__extends(TuiSliderKeyStepsDirective, _super);
|
|
534
|
+
function TuiSliderKeyStepsDirective(control, cdr, el, slider) {
|
|
535
|
+
var _this = _super.call(this, control, cdr) || this;
|
|
536
|
+
_this.el = el;
|
|
537
|
+
_this.slider = slider;
|
|
538
|
+
return _this;
|
|
539
|
+
}
|
|
540
|
+
Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "nativeFocusableElement", {
|
|
541
|
+
get: function () {
|
|
542
|
+
return this.computedDisabled ? null : this.el.nativeElement;
|
|
543
|
+
},
|
|
544
|
+
enumerable: false,
|
|
545
|
+
configurable: true
|
|
546
|
+
});
|
|
547
|
+
Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "focused", {
|
|
548
|
+
get: function () {
|
|
549
|
+
return cdk.tuiIsNativeFocused(this.nativeFocusableElement);
|
|
550
|
+
},
|
|
551
|
+
enumerable: false,
|
|
552
|
+
configurable: true
|
|
553
|
+
});
|
|
554
|
+
Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "min", {
|
|
555
|
+
get: function () {
|
|
556
|
+
return this.keySteps[0][1];
|
|
557
|
+
},
|
|
558
|
+
enumerable: false,
|
|
559
|
+
configurable: true
|
|
560
|
+
});
|
|
561
|
+
Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "max", {
|
|
562
|
+
get: function () {
|
|
563
|
+
return this.keySteps[this.keySteps.length - 1][1];
|
|
564
|
+
},
|
|
565
|
+
enumerable: false,
|
|
566
|
+
configurable: true
|
|
567
|
+
});
|
|
568
|
+
TuiSliderKeyStepsDirective.prototype.updateControlValue = function () {
|
|
569
|
+
this.value = utils.tuiPercentageToKeyStepValue(this.slider.valuePercentage, this.keySteps);
|
|
570
|
+
};
|
|
571
|
+
TuiSliderKeyStepsDirective.prototype.writeValue = function (controlValue) {
|
|
572
|
+
if (controlValue === null) {
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
575
|
+
var clampedControlValue = cdk.tuiClamp(controlValue, this.min, this.max);
|
|
576
|
+
ngDevMode &&
|
|
577
|
+
cdk.tuiAssert.assert(controlValue === clampedControlValue, '\n[SliderKeySteps]: You cannot programmatically set value which is less/more than min/max');
|
|
578
|
+
this.slider.value = this.transformToNativeValue(clampedControlValue);
|
|
579
|
+
};
|
|
580
|
+
TuiSliderKeyStepsDirective.prototype.getFallbackValue = function () {
|
|
581
|
+
return 0;
|
|
582
|
+
};
|
|
583
|
+
TuiSliderKeyStepsDirective.prototype.transformToNativeValue = function (controlValue) {
|
|
584
|
+
var _a = this.slider, min = _a.min, max = _a.max;
|
|
585
|
+
var newValuePercentage = utils.tuiKeyStepValueToPercentage(controlValue, this.keySteps);
|
|
586
|
+
return (newValuePercentage * (max - min)) / 100 + min;
|
|
587
|
+
};
|
|
588
|
+
return TuiSliderKeyStepsDirective;
|
|
589
|
+
}(cdk.AbstractTuiControl));
|
|
590
|
+
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 });
|
|
591
|
+
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 });
|
|
592
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderKeyStepsDirective, decorators: [{
|
|
593
|
+
type: i0.Directive,
|
|
594
|
+
args: [{
|
|
595
|
+
selector: 'input[tuiSlider][keySteps]',
|
|
596
|
+
host: {
|
|
597
|
+
'[attr.aria-valuenow]': 'safeCurrentValue',
|
|
598
|
+
'[attr.aria-valuemin]': 'min',
|
|
599
|
+
'[attr.aria-valuemax]': 'max',
|
|
600
|
+
'[disabled]': 'computedDisabled',
|
|
601
|
+
},
|
|
602
|
+
}]
|
|
603
|
+
}], ctorParameters: function () {
|
|
604
|
+
return [{ type: i1__namespace.NgControl, decorators: [{
|
|
605
|
+
type: i0.Optional
|
|
606
|
+
}, {
|
|
607
|
+
type: i0.Self
|
|
608
|
+
}, {
|
|
609
|
+
type: i0.Inject,
|
|
610
|
+
args: [i1.NgControl]
|
|
611
|
+
}] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
|
|
612
|
+
type: i0.Inject,
|
|
613
|
+
args: [i0.ChangeDetectorRef]
|
|
614
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
615
|
+
type: i0.Inject,
|
|
616
|
+
args: [i0.ElementRef]
|
|
617
|
+
}] }, { type: TuiSliderComponent, decorators: [{
|
|
618
|
+
type: i0.Inject,
|
|
619
|
+
args: [i0.forwardRef(function () { return TuiSliderComponent; })]
|
|
620
|
+
}] }];
|
|
621
|
+
}, propDecorators: { keySteps: [{
|
|
622
|
+
type: i0.Input
|
|
623
|
+
}], updateControlValue: [{
|
|
624
|
+
type: i0.HostListener,
|
|
625
|
+
args: ['input']
|
|
626
|
+
}, {
|
|
627
|
+
type: i0.HostListener,
|
|
628
|
+
args: ['change']
|
|
629
|
+
}] } });
|
|
776
630
|
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
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
|
-
|
|
631
|
+
var SLIDER_INTERACTION_KEYS = new Set([
|
|
632
|
+
'ArrowLeft',
|
|
633
|
+
'ArrowRight',
|
|
634
|
+
'ArrowUp',
|
|
635
|
+
'ArrowDown',
|
|
636
|
+
'Home',
|
|
637
|
+
'End',
|
|
638
|
+
'PageUp',
|
|
639
|
+
'PageDown',
|
|
640
|
+
]);
|
|
641
|
+
/**
|
|
642
|
+
* Native <input type='range' readonly> doesn't work.
|
|
643
|
+
* This directive imitates this native behaviour.
|
|
644
|
+
*/
|
|
645
|
+
var TuiSliderReadonlyDirective = /** @class */ (function () {
|
|
646
|
+
function TuiSliderReadonlyDirective(el, doc, destroy$) {
|
|
647
|
+
var _this = this;
|
|
648
|
+
this.readonly = true;
|
|
649
|
+
var touchStart$ = cdk.tuiTypedFromEvent(el.nativeElement, 'touchstart', {
|
|
650
|
+
passive: false,
|
|
651
|
+
});
|
|
652
|
+
var touchMove$ = cdk.tuiTypedFromEvent(doc, 'touchmove', {
|
|
653
|
+
passive: false,
|
|
654
|
+
});
|
|
655
|
+
var touchEnd$ = cdk.tuiTypedFromEvent(doc, 'touchend', {
|
|
656
|
+
passive: true,
|
|
657
|
+
});
|
|
658
|
+
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)));
|
|
659
|
+
/**
|
|
660
|
+
* @bad TODO think about another solution.
|
|
661
|
+
* Keep in mind that preventing touch event (on slider) inside `@HostListener('touchstart')` doesn't work for mobile chrome.
|
|
662
|
+
*/
|
|
663
|
+
i1$1.combineLatest([touchMove$, shouldPreventMove$])
|
|
664
|
+
.pipe(operators.filter(function (_a) {
|
|
665
|
+
var _b = __read(_a, 2), _ = _b[0], shouldPreventMove = _b[1];
|
|
666
|
+
return shouldPreventMove;
|
|
667
|
+
}), operators.takeUntil(destroy$))
|
|
668
|
+
.subscribe(function (_a) {
|
|
669
|
+
var _b = __read(_a, 1), moveEvent = _b[0];
|
|
670
|
+
return _this.preventEvent(moveEvent);
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
TuiSliderReadonlyDirective.prototype.preventEvent = function (event) {
|
|
674
|
+
if (event.cancelable && cdk.tuiCoerceBooleanProperty(this.readonly)) {
|
|
675
|
+
event.preventDefault();
|
|
676
|
+
}
|
|
677
|
+
};
|
|
678
|
+
TuiSliderReadonlyDirective.prototype.preventKeyboardInteraction = function (event) {
|
|
679
|
+
if (SLIDER_INTERACTION_KEYS.has(event.key)) {
|
|
680
|
+
this.preventEvent(event);
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
return TuiSliderReadonlyDirective;
|
|
684
|
+
}());
|
|
685
|
+
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 });
|
|
686
|
+
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 });
|
|
687
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderReadonlyDirective, decorators: [{
|
|
688
|
+
type: i0.Directive,
|
|
689
|
+
args: [{
|
|
690
|
+
selector: 'input[tuiSlider][readonly]',
|
|
691
|
+
providers: [cdk.TuiDestroyService],
|
|
692
|
+
}]
|
|
693
|
+
}], ctorParameters: function () {
|
|
694
|
+
return [{ type: i0__namespace.ElementRef, decorators: [{
|
|
695
|
+
type: i0.Inject,
|
|
696
|
+
args: [i0.ElementRef]
|
|
697
|
+
}] }, { type: Document, decorators: [{
|
|
698
|
+
type: i0.Inject,
|
|
699
|
+
args: [i1$2.DOCUMENT]
|
|
700
|
+
}] }, { type: i1__namespace$1.Observable, decorators: [{
|
|
701
|
+
type: i0.Self
|
|
702
|
+
}, {
|
|
703
|
+
type: i0.Inject,
|
|
704
|
+
args: [cdk.TuiDestroyService]
|
|
705
|
+
}] }];
|
|
706
|
+
}, propDecorators: { readonly: [{
|
|
707
|
+
type: i0.Input
|
|
708
|
+
}], preventEvent: [{
|
|
709
|
+
type: i0.HostListener,
|
|
710
|
+
args: ['mousedown', ['$event']]
|
|
711
|
+
}], preventKeyboardInteraction: [{
|
|
712
|
+
type: i0.HostListener,
|
|
713
|
+
args: ['keydown', ['$event']]
|
|
714
|
+
}] } });
|
|
861
715
|
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
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
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
716
|
+
var TuiSliderThumbLabelComponent = /** @class */ (function () {
|
|
717
|
+
function TuiSliderThumbLabelComponent() {
|
|
718
|
+
}
|
|
719
|
+
Object.defineProperty(TuiSliderThumbLabelComponent.prototype, "size", {
|
|
720
|
+
get: function () {
|
|
721
|
+
var _a;
|
|
722
|
+
return ((_a = this.slider) === null || _a === void 0 ? void 0 : _a.size) || 'm';
|
|
723
|
+
},
|
|
724
|
+
enumerable: false,
|
|
725
|
+
configurable: true
|
|
726
|
+
});
|
|
727
|
+
Object.defineProperty(TuiSliderThumbLabelComponent.prototype, "ratio", {
|
|
728
|
+
get: function () {
|
|
729
|
+
var _a;
|
|
730
|
+
return ((_a = this.slider) === null || _a === void 0 ? void 0 : _a.valueRatio) || 0;
|
|
731
|
+
},
|
|
732
|
+
enumerable: false,
|
|
733
|
+
configurable: true
|
|
734
|
+
});
|
|
735
|
+
Object.defineProperty(TuiSliderThumbLabelComponent.prototype, "ghostLeft", {
|
|
736
|
+
get: function () {
|
|
737
|
+
var _a;
|
|
738
|
+
return this.ratio * (((_a = this.slider) === null || _a === void 0 ? void 0 : _a.el.nativeElement.offsetWidth) || 0);
|
|
739
|
+
},
|
|
740
|
+
enumerable: false,
|
|
741
|
+
configurable: true
|
|
742
|
+
});
|
|
743
|
+
TuiSliderThumbLabelComponent.prototype.ngAfterContentInit = function () {
|
|
744
|
+
var _a;
|
|
745
|
+
ngDevMode &&
|
|
746
|
+
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' +
|
|
747
|
+
'Use [(ngModel)] or [formControl] or formControlName for correct work.');
|
|
748
|
+
};
|
|
749
|
+
return TuiSliderThumbLabelComponent;
|
|
750
|
+
}());
|
|
751
|
+
TuiSliderThumbLabelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderThumbLabelComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
752
|
+
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 });
|
|
753
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderThumbLabelComponent, decorators: [{
|
|
754
|
+
type: i0.Component,
|
|
755
|
+
args: [{
|
|
756
|
+
selector: '[tuiSliderThumbLabel]',
|
|
757
|
+
templateUrl: './slider-thumb-label.template.html',
|
|
758
|
+
styleUrls: ['./slider-thumb-label.style.less'],
|
|
759
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
760
|
+
}]
|
|
761
|
+
}], propDecorators: { slider: [{
|
|
762
|
+
type: i0.ContentChild,
|
|
763
|
+
args: [TuiSliderComponent]
|
|
764
|
+
}], control: [{
|
|
765
|
+
type: i0.ContentChild,
|
|
766
|
+
args: [i1.NgControl]
|
|
767
|
+
}] } });
|
|
914
768
|
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
769
|
+
var TuiSliderModule = /** @class */ (function () {
|
|
770
|
+
function TuiSliderModule() {
|
|
771
|
+
}
|
|
772
|
+
return TuiSliderModule;
|
|
773
|
+
}());
|
|
774
|
+
TuiSliderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
775
|
+
TuiSliderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, declarations: [TuiSliderComponent,
|
|
776
|
+
TuiSliderThumbLabelComponent,
|
|
777
|
+
TuiSliderKeyStepsDirective,
|
|
778
|
+
TuiSliderReadonlyDirective], imports: [i1$2.CommonModule], exports: [TuiSliderComponent,
|
|
779
|
+
TuiSliderThumbLabelComponent,
|
|
780
|
+
TuiSliderKeyStepsDirective,
|
|
781
|
+
TuiSliderReadonlyDirective] });
|
|
782
|
+
TuiSliderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, imports: [[i1$2.CommonModule]] });
|
|
783
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, decorators: [{
|
|
784
|
+
type: i0.NgModule,
|
|
785
|
+
args: [{
|
|
786
|
+
imports: [i1$2.CommonModule],
|
|
787
|
+
declarations: [
|
|
788
|
+
TuiSliderComponent,
|
|
789
|
+
TuiSliderThumbLabelComponent,
|
|
790
|
+
TuiSliderKeyStepsDirective,
|
|
791
|
+
TuiSliderReadonlyDirective,
|
|
792
|
+
],
|
|
793
|
+
exports: [
|
|
794
|
+
TuiSliderComponent,
|
|
795
|
+
TuiSliderThumbLabelComponent,
|
|
796
|
+
TuiSliderKeyStepsDirective,
|
|
797
|
+
TuiSliderReadonlyDirective,
|
|
798
|
+
],
|
|
799
|
+
}]
|
|
800
|
+
}] });
|
|
947
801
|
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
802
|
+
/**
|
|
803
|
+
* Generated bundle index. Do not edit.
|
|
804
|
+
*/
|
|
951
805
|
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
806
|
+
exports.TUI_SLIDER_DEFAULT_OPTIONS = TUI_SLIDER_DEFAULT_OPTIONS;
|
|
807
|
+
exports.TUI_SLIDER_OPTIONS = TUI_SLIDER_OPTIONS;
|
|
808
|
+
exports.TuiSliderComponent = TuiSliderComponent;
|
|
809
|
+
exports.TuiSliderKeyStepsDirective = TuiSliderKeyStepsDirective;
|
|
810
|
+
exports.TuiSliderModule = TuiSliderModule;
|
|
811
|
+
exports.TuiSliderReadonlyDirective = TuiSliderReadonlyDirective;
|
|
812
|
+
exports.TuiSliderThumbLabelComponent = TuiSliderThumbLabelComponent;
|
|
813
|
+
exports.tuiSliderOptionsProvider = tuiSliderOptionsProvider;
|
|
960
814
|
|
|
961
|
-
|
|
815
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
962
816
|
|
|
963
817
|
}));
|
|
964
818
|
//# sourceMappingURL=taiga-ui-kit-components-slider.umd.js.map
|