@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,518 +1,664 @@
|
|
|
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/core')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/rating', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core'], 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.rating = {}), global.ng.core, global.ng.forms, global.i2, global.i1));
|
|
5
5
|
})(this, (function (exports, i0, i3, i2, i1) { '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 i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
27
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
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
|
-
|
|
359
|
-
|
|
360
|
-
|
|
494
|
+
var TUI_RATING_DEFAULT_OPTIONS = {
|
|
495
|
+
min: 0,
|
|
496
|
+
max: 5,
|
|
497
|
+
iconNormal: "tuiIconStarLarge",
|
|
498
|
+
iconFilled: "tuiIconStarLarge",
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* Default parameters for Rating component
|
|
502
|
+
*/
|
|
503
|
+
var TUI_RATING_OPTIONS = i2.tuiCreateToken(TUI_RATING_DEFAULT_OPTIONS);
|
|
504
|
+
function tuiRatingOptionsProvider(options) {
|
|
505
|
+
return i2.tuiProvideOptions(TUI_RATING_OPTIONS, options, TUI_RATING_DEFAULT_OPTIONS);
|
|
506
|
+
}
|
|
361
507
|
|
|
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
|
-
|
|
508
|
+
var TuiRatingComponent = /** @class */ (function (_super) {
|
|
509
|
+
__extends(TuiRatingComponent, _super);
|
|
510
|
+
function TuiRatingComponent(ngControl, cdr, options) {
|
|
511
|
+
var _this = _super.call(this, ngControl, cdr) || this;
|
|
512
|
+
_this.options = options;
|
|
513
|
+
_this.min = _this.options.min;
|
|
514
|
+
_this.max = _this.options.max;
|
|
515
|
+
_this.iconNormal = _this.options.iconNormal;
|
|
516
|
+
_this.iconFilled = _this.options.iconFilled;
|
|
517
|
+
return _this;
|
|
518
|
+
}
|
|
519
|
+
Object.defineProperty(TuiRatingComponent.prototype, "nativeFocusableElement", {
|
|
520
|
+
get: function () {
|
|
521
|
+
return this.computedDisabled || !this.focusableElement
|
|
522
|
+
? null
|
|
523
|
+
: this.focusableElement.nativeElement;
|
|
524
|
+
},
|
|
525
|
+
enumerable: false,
|
|
526
|
+
configurable: true
|
|
527
|
+
});
|
|
528
|
+
Object.defineProperty(TuiRatingComponent.prototype, "focused", {
|
|
529
|
+
get: function () {
|
|
530
|
+
return i2.tuiIsNativeFocused(this.nativeFocusableElement);
|
|
531
|
+
},
|
|
532
|
+
enumerable: false,
|
|
533
|
+
configurable: true
|
|
534
|
+
});
|
|
535
|
+
Object.defineProperty(TuiRatingComponent.prototype, "isFocusable", {
|
|
536
|
+
get: function () {
|
|
537
|
+
return !(this.readOnly || this.disabled);
|
|
538
|
+
},
|
|
539
|
+
enumerable: false,
|
|
540
|
+
configurable: true
|
|
541
|
+
});
|
|
542
|
+
Object.defineProperty(TuiRatingComponent.prototype, "percent", {
|
|
543
|
+
get: function () {
|
|
544
|
+
return i2.tuiClamp((100 * this.value) / this.max, 0, 100);
|
|
545
|
+
},
|
|
546
|
+
enumerable: false,
|
|
547
|
+
configurable: true
|
|
548
|
+
});
|
|
549
|
+
TuiRatingComponent.prototype.onFocused = function (focused) {
|
|
550
|
+
this.updateFocused(focused);
|
|
551
|
+
};
|
|
552
|
+
TuiRatingComponent.prototype.setRateByReverseIndex = function (index) {
|
|
553
|
+
var reversedIndex = this.max - index;
|
|
554
|
+
if (reversedIndex <= this.min) {
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
this.value = reversedIndex;
|
|
558
|
+
};
|
|
559
|
+
TuiRatingComponent.prototype.setRate = function (value) {
|
|
560
|
+
this.value = value;
|
|
561
|
+
};
|
|
562
|
+
TuiRatingComponent.prototype.getFallbackValue = function () {
|
|
563
|
+
return 0;
|
|
564
|
+
};
|
|
565
|
+
return TuiRatingComponent;
|
|
566
|
+
}(i2.AbstractTuiControl));
|
|
567
|
+
TuiRatingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRatingComponent, deps: [{ token: i3.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: TUI_RATING_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
568
|
+
TuiRatingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiRatingComponent, selector: "tui-rating", inputs: { min: "min", max: "max", iconNormal: "iconNormal", iconFilled: "iconFilled" }, host: { listeners: { "focusin": "onFocused(true)", "focusout": "onFocused(false)" } }, providers: [
|
|
569
|
+
i2.tuiAsFocusableItemAccessor(TuiRatingComponent),
|
|
570
|
+
i2.tuiAsControl(TuiRatingComponent),
|
|
571
|
+
], viewQueries: [{ propertyName: "focusableElement", first: true, predicate: ["focusableElement"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<label>\n <ng-content></ng-content>\n\n <div class=\"t-host\">\n <div class=\"t-interactive\">\n <tui-svg\n *tuiRepeatTimes=\"let index of max\"\n class=\"t-icon-rating t-icon-filled\"\n [class.t-icon-rating-last]=\"index === 0\"\n [src]=\"iconFilled\"\n (click)=\"setRateByReverseIndex(index)\"\n ></tui-svg>\n </div>\n\n <div\n class=\"t-wrapper\"\n [style.width.%]=\"percent\"\n >\n <tui-svg\n *tuiRepeatTimes=\"let index of max\"\n class=\"t-icon-rating t-icon-filled\"\n [class.t-icon-rating-last]=\"index === 0\"\n [src]=\"iconFilled\"\n ></tui-svg>\n </div>\n\n <tui-svg\n *tuiRepeatTimes=\"let index of max\"\n class=\"t-icon-rating\"\n [class.t-icon-rating-last]=\"max - 1 === index\"\n [src]=\"iconNormal\"\n ></tui-svg>\n\n <input\n #focusableElement\n step=\"1\"\n type=\"range\"\n class=\"t-input\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value\"\n [tuiFocusable]=\"isFocusable\"\n (ngModelChange)=\"setRate($event)\"\n />\n </div>\n</label>\n", styles: [":host._readonly,:host._disabled{pointer-events:none}:host._disabled{opacity:var(--tui-disabled-opacity)}.t-host{position:relative;display:inline-flex}.t-icon-rating{width:var(--tui-rating-size, 1.5rem);height:var(--tui-rating-size, 1.5rem);padding:0 var(--tui-rating-gap, 0) 0 0}.t-icon-rating-last{padding-right:0}.t-input{pointer-events:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent}.t-input::-webkit-slider-thumb{display:none}.t-input::-moz-range-thumb{opacity:0}.t-input,.t-wrapper,.t-interactive{position:absolute;left:0;bottom:0;width:100%;height:100%}.t-wrapper,.t-interactive{display:inline-flex;overflow:hidden;flex-direction:row-reverse;justify-content:flex-end;white-space:nowrap}.t-wrapper{pointer-events:none}.t-interactive{opacity:0}@media (hover: hover) and (pointer: fine){.t-interactive:hover{opacity:1}.t-interactive:hover~.t-wrapper{visibility:hidden}.t-interactive:hover .t-icon-filled{opacity:0}.t-interactive:hover .t-icon-filled:hover,.t-interactive:hover .t-icon-filled:hover~.t-icon-filled{opacity:1}}.t-icon-filled{position:relative;cursor:pointer;fill:currentColor}\n"], components: [{ type: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i2__namespace.TuiRepeatTimesDirective, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }, { type: i3__namespace.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { type: i3__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2__namespace.TuiFocusableDirective, selector: "[tuiFocusable]", inputs: ["tuiFocusable"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
572
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRatingComponent, decorators: [{
|
|
573
|
+
type: i0.Component,
|
|
574
|
+
args: [{
|
|
575
|
+
selector: 'tui-rating',
|
|
576
|
+
templateUrl: './rating.template.html',
|
|
577
|
+
styleUrls: ['./rating.style.less'],
|
|
578
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
579
|
+
providers: [
|
|
580
|
+
i2.tuiAsFocusableItemAccessor(TuiRatingComponent),
|
|
581
|
+
i2.tuiAsControl(TuiRatingComponent),
|
|
582
|
+
],
|
|
583
|
+
}]
|
|
584
|
+
}], ctorParameters: function () {
|
|
585
|
+
return [{ type: i3__namespace.NgControl, decorators: [{
|
|
586
|
+
type: i0.Optional
|
|
587
|
+
}, {
|
|
588
|
+
type: i0.Self
|
|
589
|
+
}, {
|
|
590
|
+
type: i0.Inject,
|
|
591
|
+
args: [i3.NgControl]
|
|
592
|
+
}] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
|
|
593
|
+
type: i0.Inject,
|
|
594
|
+
args: [i0.ChangeDetectorRef]
|
|
595
|
+
}] }, { type: undefined, decorators: [{
|
|
596
|
+
type: i0.Inject,
|
|
597
|
+
args: [TUI_RATING_OPTIONS]
|
|
598
|
+
}] }];
|
|
599
|
+
}, propDecorators: { focusableElement: [{
|
|
600
|
+
type: i0.ViewChild,
|
|
601
|
+
args: ['focusableElement']
|
|
602
|
+
}], min: [{
|
|
603
|
+
type: i0.Input
|
|
604
|
+
}], max: [{
|
|
605
|
+
type: i0.Input
|
|
606
|
+
}], iconNormal: [{
|
|
607
|
+
type: i0.Input
|
|
608
|
+
}], iconFilled: [{
|
|
609
|
+
type: i0.Input
|
|
610
|
+
}], onFocused: [{
|
|
611
|
+
type: i0.HostListener,
|
|
612
|
+
args: ['focusin', ['true']]
|
|
613
|
+
}, {
|
|
614
|
+
type: i0.HostListener,
|
|
615
|
+
args: ['focusout', ['false']]
|
|
616
|
+
}] } });
|
|
471
617
|
|
|
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
|
-
|
|
618
|
+
var TuiRatingModule = /** @class */ (function () {
|
|
619
|
+
function TuiRatingModule() {
|
|
620
|
+
}
|
|
621
|
+
return TuiRatingModule;
|
|
622
|
+
}());
|
|
623
|
+
TuiRatingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRatingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
624
|
+
TuiRatingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRatingModule, declarations: [TuiRatingComponent], imports: [i1.TuiSvgModule,
|
|
625
|
+
i2.TuiFocusableModule,
|
|
626
|
+
i2.TuiRepeatTimesModule,
|
|
627
|
+
i3.FormsModule,
|
|
628
|
+
i3.ReactiveFormsModule], exports: [TuiRatingComponent] });
|
|
629
|
+
TuiRatingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRatingModule, imports: [[
|
|
630
|
+
i1.TuiSvgModule,
|
|
631
|
+
i2.TuiFocusableModule,
|
|
632
|
+
i2.TuiRepeatTimesModule,
|
|
633
|
+
i3.FormsModule,
|
|
634
|
+
i3.ReactiveFormsModule,
|
|
635
|
+
]] });
|
|
636
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRatingModule, decorators: [{
|
|
637
|
+
type: i0.NgModule,
|
|
638
|
+
args: [{
|
|
639
|
+
imports: [
|
|
640
|
+
i1.TuiSvgModule,
|
|
641
|
+
i2.TuiFocusableModule,
|
|
642
|
+
i2.TuiRepeatTimesModule,
|
|
643
|
+
i3.FormsModule,
|
|
644
|
+
i3.ReactiveFormsModule,
|
|
645
|
+
],
|
|
646
|
+
declarations: [TuiRatingComponent],
|
|
647
|
+
exports: [TuiRatingComponent],
|
|
648
|
+
}]
|
|
649
|
+
}] });
|
|
504
650
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
651
|
+
/**
|
|
652
|
+
* Generated bundle index. Do not edit.
|
|
653
|
+
*/
|
|
508
654
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
655
|
+
exports.TUI_RATING_DEFAULT_OPTIONS = TUI_RATING_DEFAULT_OPTIONS;
|
|
656
|
+
exports.TUI_RATING_OPTIONS = TUI_RATING_OPTIONS;
|
|
657
|
+
exports.TuiRatingComponent = TuiRatingComponent;
|
|
658
|
+
exports.TuiRatingModule = TuiRatingModule;
|
|
659
|
+
exports.tuiRatingOptionsProvider = tuiRatingOptionsProvider;
|
|
514
660
|
|
|
515
|
-
|
|
661
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
516
662
|
|
|
517
663
|
}));
|
|
518
664
|
//# sourceMappingURL=taiga-ui-kit-components-rating.umd.js.map
|