@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,684 +1,830 @@
|
|
|
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'), require('@taiga-ui/i18n'), require('@taiga-ui/kit/components/arrow'), require('@taiga-ui/kit/components/input-phone'), require('@taiga-ui/kit/pipes'), require('@taiga-ui/kit/providers'), require('@taiga-ui/kit/tokens'), require('@taiga-ui/kit/utils'), require('@angular/common'), require('@tinkoff/ng-polymorpheus'), require('rxjs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-phone-international', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/i18n', '@taiga-ui/kit/components/arrow', '@taiga-ui/kit/components/input-phone', '@taiga-ui/kit/pipes', '@taiga-ui/kit/providers', '@taiga-ui/kit/tokens', '@taiga-ui/kit/utils', '@angular/common', '@tinkoff/ng-polymorpheus', '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["input-phone-international"] = {}), global.ng.core, global.ng.forms, global.i4, global.i1, global.i18n, global["taiga-ui"].kit.components.arrow, global["taiga-ui"].kit.components["input-phone"], global["taiga-ui"].kit.pipes, global["taiga-ui"].kit.providers, global["taiga-ui"].kit.tokens, global["taiga-ui"].kit.utils, global.ng.common, global.i6, global.rxjs));
|
|
5
5
|
})(this, (function (exports, i0, i5, i4, i1, i18n, arrow, i2, i8, providers, tokens, utils, i3, i6, i7) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
});
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
20
18
|
}
|
|
21
|
-
|
|
22
|
-
return Object.freeze(n);
|
|
19
|
+
});
|
|
23
20
|
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
27
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
28
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
29
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
30
|
+
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
31
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
32
|
+
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
33
|
+
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
/******************************************************************************
|
|
36
|
+
Copyright (c) Microsoft Corporation.
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
39
|
+
purpose with or without fee is hereby granted.
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
41
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
42
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
43
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
44
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
45
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
46
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
47
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
48
|
+
***************************************************************************** */
|
|
49
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
50
|
+
var extendStatics = function (d, b) {
|
|
51
|
+
extendStatics = Object.setPrototypeOf ||
|
|
52
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
53
|
+
function (d, b) { for (var p in b)
|
|
54
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
55
|
+
d[p] = b[p]; };
|
|
56
|
+
return extendStatics(d, b);
|
|
57
|
+
};
|
|
58
|
+
function __extends(d, b) {
|
|
59
|
+
if (typeof b !== "function" && b !== null)
|
|
60
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
61
|
+
extendStatics(d, b);
|
|
62
|
+
function __() { this.constructor = d; }
|
|
63
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
64
|
+
}
|
|
65
|
+
var __assign = function () {
|
|
66
|
+
__assign = Object.assign || function __assign(t) {
|
|
67
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
68
|
+
s = arguments[i];
|
|
69
|
+
for (var p in s)
|
|
70
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
71
|
+
t[p] = s[p];
|
|
72
|
+
}
|
|
73
|
+
return t;
|
|
74
|
+
};
|
|
75
|
+
return __assign.apply(this, arguments);
|
|
76
|
+
};
|
|
77
|
+
function __rest(s, e) {
|
|
78
|
+
var t = {};
|
|
79
|
+
for (var p in s)
|
|
80
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
81
|
+
t[p] = s[p];
|
|
82
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
83
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
84
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
85
|
+
t[p[i]] = s[p[i]];
|
|
86
|
+
}
|
|
87
|
+
return t;
|
|
88
|
+
}
|
|
89
|
+
function __decorate(decorators, target, key, desc) {
|
|
90
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
91
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
92
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
93
|
+
else
|
|
94
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
95
|
+
if (d = decorators[i])
|
|
96
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
97
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
98
|
+
}
|
|
99
|
+
function __param(paramIndex, decorator) {
|
|
100
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
101
|
+
}
|
|
102
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
103
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
|
104
|
+
throw new TypeError("Function expected"); return f; }
|
|
105
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
106
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
107
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
108
|
+
var _, done = false;
|
|
109
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
110
|
+
var context = {};
|
|
111
|
+
for (var p in contextIn)
|
|
112
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
|
113
|
+
for (var p in contextIn.access)
|
|
114
|
+
context.access[p] = contextIn.access[p];
|
|
115
|
+
context.addInitializer = function (f) { if (done)
|
|
116
|
+
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
117
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
118
|
+
if (kind === "accessor") {
|
|
119
|
+
if (result === void 0)
|
|
120
|
+
continue;
|
|
121
|
+
if (result === null || typeof result !== "object")
|
|
122
|
+
throw new TypeError("Object expected");
|
|
123
|
+
if (_ = accept(result.get))
|
|
124
|
+
descriptor.get = _;
|
|
125
|
+
if (_ = accept(result.set))
|
|
126
|
+
descriptor.set = _;
|
|
127
|
+
if (_ = accept(result.init))
|
|
128
|
+
initializers.unshift(_);
|
|
129
|
+
}
|
|
130
|
+
else if (_ = accept(result)) {
|
|
131
|
+
if (kind === "field")
|
|
132
|
+
initializers.unshift(_);
|
|
133
|
+
else
|
|
134
|
+
descriptor[key] = _;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
if (target)
|
|
138
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
|
139
|
+
done = true;
|
|
140
|
+
}
|
|
141
|
+
;
|
|
142
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
143
|
+
var useValue = arguments.length > 2;
|
|
144
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
145
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
146
|
+
}
|
|
147
|
+
return useValue ? value : void 0;
|
|
148
|
+
}
|
|
149
|
+
;
|
|
150
|
+
function __propKey(x) {
|
|
151
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
152
|
+
}
|
|
153
|
+
;
|
|
154
|
+
function __setFunctionName(f, name, prefix) {
|
|
155
|
+
if (typeof name === "symbol")
|
|
156
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
|
157
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
158
|
+
}
|
|
159
|
+
;
|
|
160
|
+
function __metadata(metadataKey, metadataValue) {
|
|
161
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
162
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
163
|
+
}
|
|
164
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
165
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
166
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
167
|
+
function fulfilled(value) { try {
|
|
168
|
+
step(generator.next(value));
|
|
169
|
+
}
|
|
170
|
+
catch (e) {
|
|
171
|
+
reject(e);
|
|
172
|
+
} }
|
|
173
|
+
function rejected(value) { try {
|
|
174
|
+
step(generator["throw"](value));
|
|
175
|
+
}
|
|
176
|
+
catch (e) {
|
|
177
|
+
reject(e);
|
|
178
|
+
} }
|
|
179
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
180
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
function __generator(thisArg, body) {
|
|
184
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
185
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
186
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
187
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
188
|
+
function step(op) {
|
|
189
|
+
if (f)
|
|
190
|
+
throw new TypeError("Generator is already executing.");
|
|
191
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
192
|
+
try {
|
|
193
|
+
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)
|
|
194
|
+
return t;
|
|
195
|
+
if (y = 0, t)
|
|
196
|
+
op = [op[0] & 2, t.value];
|
|
197
|
+
switch (op[0]) {
|
|
198
|
+
case 0:
|
|
199
|
+
case 1:
|
|
200
|
+
t = op;
|
|
201
|
+
break;
|
|
202
|
+
case 4:
|
|
203
|
+
_.label++;
|
|
204
|
+
return { value: op[1], done: false };
|
|
205
|
+
case 5:
|
|
206
|
+
_.label++;
|
|
207
|
+
y = op[1];
|
|
208
|
+
op = [0];
|
|
209
|
+
continue;
|
|
210
|
+
case 7:
|
|
211
|
+
op = _.ops.pop();
|
|
212
|
+
_.trys.pop();
|
|
213
|
+
continue;
|
|
214
|
+
default:
|
|
215
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
216
|
+
_ = 0;
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
220
|
+
_.label = op[1];
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
224
|
+
_.label = t[1];
|
|
225
|
+
t = op;
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
if (t && _.label < t[2]) {
|
|
229
|
+
_.label = t[2];
|
|
230
|
+
_.ops.push(op);
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
if (t[2])
|
|
234
|
+
_.ops.pop();
|
|
235
|
+
_.trys.pop();
|
|
236
|
+
continue;
|
|
237
|
+
}
|
|
238
|
+
op = body.call(thisArg, _);
|
|
239
|
+
}
|
|
240
|
+
catch (e) {
|
|
241
|
+
op = [6, e];
|
|
242
|
+
y = 0;
|
|
243
|
+
}
|
|
244
|
+
finally {
|
|
245
|
+
f = t = 0;
|
|
246
|
+
}
|
|
247
|
+
if (op[0] & 5)
|
|
248
|
+
throw op[1];
|
|
249
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
253
|
+
if (k2 === undefined)
|
|
254
|
+
k2 = k;
|
|
255
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
256
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
257
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
258
|
+
}
|
|
259
|
+
Object.defineProperty(o, k2, desc);
|
|
260
|
+
}) : (function (o, m, k, k2) {
|
|
261
|
+
if (k2 === undefined)
|
|
262
|
+
k2 = k;
|
|
263
|
+
o[k2] = m[k];
|
|
264
|
+
});
|
|
265
|
+
function __exportStar(m, o) {
|
|
266
|
+
for (var p in m)
|
|
267
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
268
|
+
__createBinding(o, m, p);
|
|
269
|
+
}
|
|
270
|
+
function __values(o) {
|
|
271
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
272
|
+
if (m)
|
|
273
|
+
return m.call(o);
|
|
274
|
+
if (o && typeof o.length === "number")
|
|
275
|
+
return {
|
|
276
|
+
next: function () {
|
|
277
|
+
if (o && i >= o.length)
|
|
278
|
+
o = void 0;
|
|
279
|
+
return { value: o && o[i++], done: !o };
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
283
|
+
}
|
|
284
|
+
function __read(o, n) {
|
|
285
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
286
|
+
if (!m)
|
|
287
|
+
return o;
|
|
288
|
+
var i = m.call(o), r, ar = [], e;
|
|
289
|
+
try {
|
|
290
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
291
|
+
ar.push(r.value);
|
|
292
|
+
}
|
|
293
|
+
catch (error) {
|
|
294
|
+
e = { error: error };
|
|
295
|
+
}
|
|
296
|
+
finally {
|
|
297
|
+
try {
|
|
298
|
+
if (r && !r.done && (m = i["return"]))
|
|
299
|
+
m.call(i);
|
|
300
|
+
}
|
|
301
|
+
finally {
|
|
302
|
+
if (e)
|
|
303
|
+
throw e.error;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return ar;
|
|
307
|
+
}
|
|
308
|
+
/** @deprecated */
|
|
309
|
+
function __spread() {
|
|
310
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
311
|
+
ar = ar.concat(__read(arguments[i]));
|
|
312
|
+
return ar;
|
|
313
|
+
}
|
|
314
|
+
/** @deprecated */
|
|
315
|
+
function __spreadArrays() {
|
|
316
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
317
|
+
s += arguments[i].length;
|
|
318
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
319
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
320
|
+
r[k] = a[j];
|
|
321
|
+
return r;
|
|
322
|
+
}
|
|
323
|
+
function __spreadArray(to, from, pack) {
|
|
324
|
+
if (pack || arguments.length === 2)
|
|
325
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
326
|
+
if (ar || !(i in from)) {
|
|
327
|
+
if (!ar)
|
|
328
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
329
|
+
ar[i] = from[i];
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
333
|
+
}
|
|
334
|
+
function __await(v) {
|
|
335
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
336
|
+
}
|
|
337
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
338
|
+
if (!Symbol.asyncIterator)
|
|
339
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
340
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
341
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
342
|
+
function verb(n) { if (g[n])
|
|
343
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
344
|
+
function resume(n, v) { try {
|
|
345
|
+
step(g[n](v));
|
|
346
|
+
}
|
|
347
|
+
catch (e) {
|
|
348
|
+
settle(q[0][3], e);
|
|
349
|
+
} }
|
|
350
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
351
|
+
function fulfill(value) { resume("next", value); }
|
|
352
|
+
function reject(value) { resume("throw", value); }
|
|
353
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
354
|
+
resume(q[0][0], q[0][1]); }
|
|
355
|
+
}
|
|
356
|
+
function __asyncDelegator(o) {
|
|
357
|
+
var i, p;
|
|
358
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
359
|
+
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; }
|
|
360
|
+
}
|
|
361
|
+
function __asyncValues(o) {
|
|
362
|
+
if (!Symbol.asyncIterator)
|
|
363
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
364
|
+
var m = o[Symbol.asyncIterator], i;
|
|
365
|
+
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);
|
|
366
|
+
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); }); }; }
|
|
367
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
368
|
+
}
|
|
369
|
+
function __makeTemplateObject(cooked, raw) {
|
|
370
|
+
if (Object.defineProperty) {
|
|
371
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
372
|
+
}
|
|
373
|
+
else {
|
|
374
|
+
cooked.raw = raw;
|
|
375
|
+
}
|
|
376
|
+
return cooked;
|
|
377
|
+
}
|
|
378
|
+
;
|
|
379
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
380
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
381
|
+
}) : function (o, v) {
|
|
382
|
+
o["default"] = v;
|
|
383
|
+
};
|
|
384
|
+
function __importStar(mod) {
|
|
385
|
+
if (mod && mod.__esModule)
|
|
386
|
+
return mod;
|
|
387
|
+
var result = {};
|
|
388
|
+
if (mod != null)
|
|
389
|
+
for (var k in mod)
|
|
390
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
391
|
+
__createBinding(result, mod, k);
|
|
392
|
+
__setModuleDefault(result, mod);
|
|
393
|
+
return result;
|
|
394
|
+
}
|
|
395
|
+
function __importDefault(mod) {
|
|
396
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
397
|
+
}
|
|
398
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
399
|
+
if (kind === "a" && !f)
|
|
400
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
401
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
402
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
403
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
404
|
+
}
|
|
405
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
406
|
+
if (kind === "m")
|
|
407
|
+
throw new TypeError("Private method is not writable");
|
|
408
|
+
if (kind === "a" && !f)
|
|
409
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
410
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
411
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
412
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
413
|
+
}
|
|
414
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
415
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
416
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
417
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
418
|
+
}
|
|
419
|
+
function __addDisposableResource(env, value, async) {
|
|
420
|
+
if (value !== null && value !== void 0) {
|
|
421
|
+
if (typeof value !== "object" && typeof value !== "function")
|
|
422
|
+
throw new TypeError("Object expected.");
|
|
423
|
+
var dispose;
|
|
424
|
+
if (async) {
|
|
425
|
+
if (!Symbol.asyncDispose)
|
|
426
|
+
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
427
|
+
dispose = value[Symbol.asyncDispose];
|
|
428
|
+
}
|
|
429
|
+
if (dispose === void 0) {
|
|
430
|
+
if (!Symbol.dispose)
|
|
431
|
+
throw new TypeError("Symbol.dispose is not defined.");
|
|
432
|
+
dispose = value[Symbol.dispose];
|
|
433
|
+
}
|
|
434
|
+
if (typeof dispose !== "function")
|
|
435
|
+
throw new TypeError("Object not disposable.");
|
|
436
|
+
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
437
|
+
}
|
|
438
|
+
else if (async) {
|
|
439
|
+
env.stack.push({ async: true });
|
|
440
|
+
}
|
|
441
|
+
return value;
|
|
442
|
+
}
|
|
443
|
+
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
444
|
+
var e = new Error(message);
|
|
445
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
446
|
+
};
|
|
447
|
+
function __disposeResources(env) {
|
|
448
|
+
function fail(e) {
|
|
449
|
+
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
450
|
+
env.hasError = true;
|
|
451
|
+
}
|
|
452
|
+
function next() {
|
|
453
|
+
while (env.stack.length) {
|
|
454
|
+
var rec = env.stack.pop();
|
|
455
|
+
try {
|
|
456
|
+
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
457
|
+
if (rec.async)
|
|
458
|
+
return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
|
|
459
|
+
}
|
|
460
|
+
catch (e) {
|
|
461
|
+
fail(e);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
if (env.hasError)
|
|
465
|
+
throw env.error;
|
|
466
|
+
}
|
|
467
|
+
return next();
|
|
468
|
+
}
|
|
469
|
+
var tslib_es6 = {
|
|
470
|
+
__extends: __extends,
|
|
471
|
+
__assign: __assign,
|
|
472
|
+
__rest: __rest,
|
|
473
|
+
__decorate: __decorate,
|
|
474
|
+
__param: __param,
|
|
475
|
+
__metadata: __metadata,
|
|
476
|
+
__awaiter: __awaiter,
|
|
477
|
+
__generator: __generator,
|
|
478
|
+
__createBinding: __createBinding,
|
|
479
|
+
__exportStar: __exportStar,
|
|
480
|
+
__values: __values,
|
|
481
|
+
__read: __read,
|
|
482
|
+
__spread: __spread,
|
|
483
|
+
__spreadArrays: __spreadArrays,
|
|
484
|
+
__spreadArray: __spreadArray,
|
|
485
|
+
__await: __await,
|
|
486
|
+
__asyncGenerator: __asyncGenerator,
|
|
487
|
+
__asyncDelegator: __asyncDelegator,
|
|
488
|
+
__asyncValues: __asyncValues,
|
|
489
|
+
__makeTemplateObject: __makeTemplateObject,
|
|
490
|
+
__importStar: __importStar,
|
|
491
|
+
__importDefault: __importDefault,
|
|
492
|
+
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
493
|
+
__classPrivateFieldSet: __classPrivateFieldSet,
|
|
494
|
+
__classPrivateFieldIn: __classPrivateFieldIn,
|
|
495
|
+
__addDisposableResource: __addDisposableResource,
|
|
496
|
+
__disposeResources: __disposeResources,
|
|
497
|
+
};
|
|
352
498
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
499
|
+
var TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS = {
|
|
500
|
+
countries: [],
|
|
501
|
+
countryIsoCode: i18n.TuiCountryIsoCode.RU,
|
|
502
|
+
};
|
|
503
|
+
/**
|
|
504
|
+
* Default parameters for input phone international component
|
|
505
|
+
*/
|
|
506
|
+
var TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS = i4.tuiCreateToken(TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS);
|
|
507
|
+
function tuiInputPhoneInternationalOptionsProvider(options) {
|
|
508
|
+
return i4.tuiProvideOptions(TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS, options, TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS);
|
|
509
|
+
}
|
|
364
510
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
511
|
+
function tuiExtractValueFromEvent(event) {
|
|
512
|
+
var _a;
|
|
513
|
+
return "dataTransfer" in event
|
|
514
|
+
? ((_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.getData("text/plain")) || ""
|
|
515
|
+
: i4.tuiGetClipboardDataText(event);
|
|
516
|
+
}
|
|
371
517
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
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
|
-
|
|
518
|
+
var TuiInputPhoneInternationalComponent = /** @class */ (function (_super) {
|
|
519
|
+
__extends(TuiInputPhoneInternationalComponent, _super);
|
|
520
|
+
function TuiInputPhoneInternationalComponent(control, cdr, countriesNames$, countriesMasks, options, flagPipe, extractCountryCodePipe, textfieldSize) {
|
|
521
|
+
var _this = _super.call(this, control, cdr) || this;
|
|
522
|
+
_this.countriesNames$ = countriesNames$;
|
|
523
|
+
_this.countriesMasks = countriesMasks;
|
|
524
|
+
_this.options = options;
|
|
525
|
+
_this.flagPipe = flagPipe;
|
|
526
|
+
_this.extractCountryCodePipe = extractCountryCodePipe;
|
|
527
|
+
_this.textfieldSize = textfieldSize;
|
|
528
|
+
_this.countries = _this.options.countries;
|
|
529
|
+
_this.countryIsoCodeChange = new i0.EventEmitter();
|
|
530
|
+
_this.countryIsoCode = _this.options.countryIsoCode;
|
|
531
|
+
_this.open = false;
|
|
532
|
+
_this.arrow = arrow.TUI_ARROW;
|
|
533
|
+
_this.isoToCountryCodeMapper = function (item) { return utils.tuiIsoToCountryCode(_this.countriesMasks, item); };
|
|
534
|
+
return _this;
|
|
535
|
+
}
|
|
536
|
+
Object.defineProperty(TuiInputPhoneInternationalComponent.prototype, "isoCode", {
|
|
537
|
+
set: function (code) {
|
|
538
|
+
var _a;
|
|
539
|
+
if (this.countryIsoCode === code) {
|
|
540
|
+
return;
|
|
541
|
+
}
|
|
542
|
+
(_a = this.inputPhoneComponent) === null || _a === void 0 ? void 0 : _a.writeValue(this.value);
|
|
543
|
+
this.countryIsoCode = code;
|
|
544
|
+
},
|
|
545
|
+
enumerable: false,
|
|
546
|
+
configurable: true
|
|
547
|
+
});
|
|
548
|
+
Object.defineProperty(TuiInputPhoneInternationalComponent.prototype, "size", {
|
|
549
|
+
get: function () {
|
|
550
|
+
return this.textfieldSize.size;
|
|
551
|
+
},
|
|
552
|
+
enumerable: false,
|
|
553
|
+
configurable: true
|
|
554
|
+
});
|
|
555
|
+
Object.defineProperty(TuiInputPhoneInternationalComponent.prototype, "nativeFocusableElement", {
|
|
556
|
+
get: function () {
|
|
557
|
+
return this.inputPhoneComponent && !this.computedDisabled
|
|
558
|
+
? this.inputPhoneComponent.nativeFocusableElement
|
|
559
|
+
: null;
|
|
560
|
+
},
|
|
561
|
+
enumerable: false,
|
|
562
|
+
configurable: true
|
|
563
|
+
});
|
|
564
|
+
Object.defineProperty(TuiInputPhoneInternationalComponent.prototype, "focused", {
|
|
565
|
+
get: function () {
|
|
566
|
+
return ((!!this.primitiveTextfield && this.primitiveTextfield.focused) ||
|
|
567
|
+
(!!this.inputPhoneComponent && this.inputPhoneComponent.focused));
|
|
568
|
+
},
|
|
569
|
+
enumerable: false,
|
|
570
|
+
configurable: true
|
|
571
|
+
});
|
|
572
|
+
Object.defineProperty(TuiInputPhoneInternationalComponent.prototype, "inputPhoneCountryCode", {
|
|
573
|
+
get: function () {
|
|
574
|
+
return utils.tuiIsoToCountryCode(this.countriesMasks, this.countryIsoCode);
|
|
575
|
+
},
|
|
576
|
+
enumerable: false,
|
|
577
|
+
configurable: true
|
|
578
|
+
});
|
|
579
|
+
Object.defineProperty(TuiInputPhoneInternationalComponent.prototype, "phoneMaskAfterCountryCode", {
|
|
580
|
+
get: function () {
|
|
581
|
+
var countryCode = this.inputPhoneCountryCode;
|
|
582
|
+
return this.calculateMaskAfterCountryCode(this.countriesMasks[this.countryIsoCode], countryCode);
|
|
583
|
+
},
|
|
584
|
+
enumerable: false,
|
|
585
|
+
configurable: true
|
|
586
|
+
});
|
|
587
|
+
Object.defineProperty(TuiInputPhoneInternationalComponent.prototype, "countryFlagPath", {
|
|
588
|
+
/**
|
|
589
|
+
* @deprecated use `<img [src]="countryIsoCode | tuiFlagPipe" />`
|
|
590
|
+
* TODO drop in v4.0
|
|
591
|
+
*/
|
|
592
|
+
get: function () {
|
|
593
|
+
return this.getFlagPath(this.countryIsoCode);
|
|
594
|
+
},
|
|
595
|
+
enumerable: false,
|
|
596
|
+
configurable: true
|
|
597
|
+
});
|
|
598
|
+
TuiInputPhoneInternationalComponent.prototype.onPaste = function (event) {
|
|
599
|
+
var value = tuiExtractValueFromEvent(event).replace(i1.TUI_NON_DIGITS_REGEXP, '');
|
|
600
|
+
var countryIsoCode = this.extractCountryCodePipe.transform(value, this.countries);
|
|
601
|
+
if (!countryIsoCode) {
|
|
602
|
+
this.value = ("" + this.inputPhoneCountryCode + value)
|
|
603
|
+
.replace(i1.TUI_MASK_SYMBOLS_REGEXP, '')
|
|
604
|
+
.slice(0, utils.tuiGetMaxAllowedPhoneLength(this.countriesMasks, this.countryIsoCode));
|
|
605
|
+
return;
|
|
606
|
+
}
|
|
607
|
+
if (countryIsoCode === i18n.TuiCountryIsoCode.RU) {
|
|
608
|
+
value = value.replace(/^8/, '7');
|
|
609
|
+
}
|
|
610
|
+
this.updateCountryIsoCode(countryIsoCode);
|
|
611
|
+
this.value = "" + i4.CHAR_PLUS + value;
|
|
612
|
+
};
|
|
613
|
+
/**
|
|
614
|
+
* @deprecated use `<img [src]="countryIsoCode | tuiFlagPipe" />`
|
|
615
|
+
* TODO drop in v4.0
|
|
616
|
+
*/
|
|
617
|
+
TuiInputPhoneInternationalComponent.prototype.getFlagPath = function (code) {
|
|
618
|
+
return this.flagPipe.transform(code);
|
|
619
|
+
};
|
|
620
|
+
TuiInputPhoneInternationalComponent.prototype.onItemClick = function (isoCode) {
|
|
621
|
+
this.open = false;
|
|
622
|
+
this.updateCountryIsoCode(isoCode);
|
|
623
|
+
// recalculates mask inside inputPhone to prevent isoCode conflict
|
|
624
|
+
this.cdr.detectChanges();
|
|
625
|
+
var maxLength = utils.tuiGetMaxAllowedPhoneLength(this.countriesMasks, isoCode);
|
|
626
|
+
if (this.value.length > maxLength) {
|
|
627
|
+
this.value = this.value.slice(0, maxLength);
|
|
628
|
+
}
|
|
629
|
+
if (this.nativeFocusableElement) {
|
|
630
|
+
this.nativeFocusableElement.focus();
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
TuiInputPhoneInternationalComponent.prototype.setDisabledState = function () {
|
|
634
|
+
_super.prototype.setDisabledState.call(this);
|
|
635
|
+
this.close();
|
|
636
|
+
};
|
|
637
|
+
/**
|
|
638
|
+
* @deprecated use `{{ countryIsoCode | tuiIsoToCountryCode }}`
|
|
639
|
+
* TODO drop in v4.0
|
|
640
|
+
*/
|
|
641
|
+
TuiInputPhoneInternationalComponent.prototype.isoToCountryCode = function (isoCode) {
|
|
642
|
+
return utils.tuiIsoToCountryCode(this.countriesMasks, isoCode);
|
|
643
|
+
};
|
|
644
|
+
/** @deprecated use 'value' setter */
|
|
645
|
+
TuiInputPhoneInternationalComponent.prototype.onModelChange = function (value) {
|
|
646
|
+
this.value = value;
|
|
647
|
+
};
|
|
648
|
+
TuiInputPhoneInternationalComponent.prototype.onActiveZone = function (active) {
|
|
649
|
+
this.updateFocused(active);
|
|
650
|
+
};
|
|
651
|
+
TuiInputPhoneInternationalComponent.prototype.getFallbackValue = function () {
|
|
652
|
+
return '';
|
|
653
|
+
};
|
|
654
|
+
TuiInputPhoneInternationalComponent.prototype.calculateMaskAfterCountryCode = function (mask, countryCode) {
|
|
655
|
+
return mask.replace(countryCode, '').trim();
|
|
656
|
+
};
|
|
657
|
+
TuiInputPhoneInternationalComponent.prototype.close = function () {
|
|
658
|
+
this.open = false;
|
|
659
|
+
};
|
|
660
|
+
TuiInputPhoneInternationalComponent.prototype.updateCountryIsoCode = function (code) {
|
|
661
|
+
this.countryIsoCode = code;
|
|
662
|
+
this.countryIsoCodeChange.emit(code);
|
|
663
|
+
};
|
|
664
|
+
return TuiInputPhoneInternationalComponent;
|
|
665
|
+
}(i4.AbstractTuiControl));
|
|
666
|
+
TuiInputPhoneInternationalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputPhoneInternationalComponent, deps: [{ token: i5.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: tokens.TUI_COUNTRIES }, { token: tokens.TUI_COUNTRIES_MASKS }, { token: TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS }, { token: i1.TuiFlagPipe }, { token: i8.TuiToCountryCodePipe }, { token: i1.TUI_TEXTFIELD_SIZE }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
667
|
+
TuiInputPhoneInternationalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputPhoneInternationalComponent, selector: "tui-input-phone-international", inputs: { isoCode: ["countryIsoCode", "isoCode"], countries: "countries" }, outputs: { countryIsoCodeChange: "countryIsoCodeChange" }, host: { listeners: { "paste.capture.prevent.stop": "onPaste($event)", "drop.capture.prevent.stop": "onPaste($event)" }, properties: { "attr.data-size": "this.size" } }, providers: [
|
|
668
|
+
i4.tuiAsFocusableItemAccessor(TuiInputPhoneInternationalComponent),
|
|
669
|
+
i4.tuiAsControl(TuiInputPhoneInternationalComponent),
|
|
670
|
+
// TODO: for backward compatibility only. Drop in v4.0
|
|
671
|
+
i1.TuiFlagPipe,
|
|
672
|
+
i8.TuiToCountryCodePipe,
|
|
673
|
+
], viewQueries: [{ propertyName: "inputPhoneComponent", first: true, predicate: i2.TuiInputPhoneComponent, descendants: true }, { propertyName: "primitiveTextfield", first: true, predicate: i1.TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<tui-hosted-dropdown\n *ngIf=\"countriesNames$ | async as countriesNames\"\n class=\"t-hosted-dropdown\"\n [canOpen]=\"!readOnly\"\n [content]=\"dropdown\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <div tuiGroup>\n <tui-primitive-textfield\n tuiHintContent=\"\"\n tuiTextfieldPostfix=\"\"\n tuiTextfieldPrefix=\"\"\n class=\"t-country-select tui-group__auto-width-item\"\n [disabled]=\"disabled\"\n [editable]=\"false\"\n [focusable]=\"focusable\"\n [pseudoFocus]=\"open || null\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldCustomContent]=\"countryValueContent\"\n [tuiTextfieldIcon]=\"icon\"\n [tuiTextfieldLabelOutside]=\"true\"\n ></tui-primitive-textfield>\n <tui-input-phone\n class=\"t-input-phone tui-group__auto-width-item\"\n [countryCode]=\"inputPhoneCountryCode\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [phoneMaskAfterCountryCode]=\"phoneMaskAfterCountryCode\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n [(ngModel)]=\"value\"\n >\n <ng-content></ng-content>\n <input\n autocomplete=\"new-password\"\n tuiTextfield\n />\n </tui-input-phone>\n </div>\n\n <ng-template #dropdown>\n <tui-data-list>\n <button\n *ngFor=\"let item of countries\"\n tuiOption\n (click)=\"onItemClick(item)\"\n >\n <img\n alt=\"\"\n class=\"t-country-item-flag\"\n [src]=\"item | tuiFlag\"\n />\n <span class=\"t-country-item-name\">\n {{ countriesNames[item] }}\n </span>\n <span class=\"t-country-item-code\">\n {{ item | tuiMapper: isoToCountryCodeMapper }}\n </span>\n </button>\n </tui-data-list>\n </ng-template>\n\n <ng-template #countryValueContent>\n <img\n class=\"t-flag\"\n [alt]=\"countriesNames[countryIsoCode]\"\n [src]=\"countryIsoCode | tuiFlag\"\n />\n </ng-template>\n\n <ng-template #icon>\n <div\n appearance=\"icon\"\n tuiWrapper\n >\n <ng-container *polymorpheusOutlet=\"arrow\"></ng-container>\n </div>\n </ng-template>\n</tui-hosted-dropdown>\n", styles: [":host{display:block}:host._disabled{pointer-events:none}.t-hosted-dropdown{display:block}.t-country-select{width:5.625rem}.t-country-select:not(._readonly) ::ng-deep input:not(:disabled){cursor:pointer}.t-country-select._readonly ::ng-deep input{cursor:default}.t-country-select[data-size=m]{width:5.5rem}.t-country-select[data-size=s]{width:2rem}.t-country-select[data-size=s] .t-flag{margin-left:-1rem}.t-arrow-icon{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto}:host._readonly .t-arrow-icon,:host._disabled .t-arrow-icon{pointer-events:none}.t-arrow-icon_open{transform:rotate(180deg)}.t-input-phone{flex:1}.t-flag{width:1.75rem;height:1.25rem;margin-left:-.5rem}.t-country-item-flag{width:1.75rem;height:1.25rem}.t-country-item-name{margin-left:.75rem;margin-right:auto}.t-country-item-code{color:var(--tui-text-02);margin-right:.25rem}\n"], components: [{ type: i1__namespace.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i1__namespace.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i2__namespace.TuiInputPhoneComponent, selector: "tui-input-phone", inputs: ["countryCode", "phoneMaskAfterCountryCode", "allowText", "search"], outputs: ["searchChange"] }, { type: i1__namespace.TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]" }, { type: i1__namespace.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent", "size"] }, { type: i1__namespace.TuiOptionComponent, selector: "button[tuiOption], a[tuiOption]", inputs: ["size", "role", "disabled", "value"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i1__namespace.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { type: i1__namespace.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i1__namespace.TuiHintOptionsDirective, selector: "[tuiHintContent]", inputs: ["tuiHintContent", "tuiHintDirection", "tuiHintAppearance", "tuiHintShowDelay", "tuiHintHideDelay"] }, { type: i1__namespace.TuiTextfieldPostfixDirective, selector: "[tuiTextfieldPostfix]", inputs: ["tuiTextfieldPostfix"] }, { type: i1__namespace.TuiTextfieldPrefixDirective, selector: "[tuiTextfieldPrefix]", inputs: ["tuiTextfieldPrefix"] }, { type: i1__namespace.TuiTextfieldCustomContentDirective, selector: "[tuiTextfieldCustomContent]", inputs: ["tuiTextfieldCustomContent"] }, { type: i1__namespace.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i1__namespace.TuiTextfieldLabelOutsideDirective, selector: "[tuiTextfieldLabelOutside]", inputs: ["tuiTextfieldLabelOutside"] }, { type: i2__namespace.TuiInputPhoneDirective, selector: "tui-input-phone" }, { type: i5__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i6__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], pipes: { "async": i3__namespace.AsyncPipe, "tuiFlag": i1__namespace.TuiFlagPipe, "tuiMapper": i4__namespace.TuiMapperPipe }, viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
674
|
+
__decorate([
|
|
675
|
+
i4.tuiPure
|
|
676
|
+
], TuiInputPhoneInternationalComponent.prototype, "calculateMaskAfterCountryCode", null);
|
|
677
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputPhoneInternationalComponent, decorators: [{
|
|
678
|
+
type: i0.Component,
|
|
679
|
+
args: [{
|
|
680
|
+
selector: 'tui-input-phone-international',
|
|
681
|
+
templateUrl: './input-phone-international.template.html',
|
|
682
|
+
styleUrls: ['./input-phone-international.style.less'],
|
|
683
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
684
|
+
providers: [
|
|
685
|
+
i4.tuiAsFocusableItemAccessor(TuiInputPhoneInternationalComponent),
|
|
686
|
+
i4.tuiAsControl(TuiInputPhoneInternationalComponent),
|
|
687
|
+
// TODO: for backward compatibility only. Drop in v4.0
|
|
688
|
+
i1.TuiFlagPipe,
|
|
689
|
+
i8.TuiToCountryCodePipe,
|
|
690
|
+
],
|
|
691
|
+
viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER],
|
|
692
|
+
}]
|
|
693
|
+
}], ctorParameters: function () {
|
|
694
|
+
return [{ type: i5__namespace.NgControl, decorators: [{
|
|
695
|
+
type: i0.Optional
|
|
696
|
+
}, {
|
|
697
|
+
type: i0.Self
|
|
698
|
+
}, {
|
|
699
|
+
type: i0.Inject,
|
|
700
|
+
args: [i5.NgControl]
|
|
701
|
+
}] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
|
|
702
|
+
type: i0.Inject,
|
|
703
|
+
args: [i0.ChangeDetectorRef]
|
|
704
|
+
}] }, { type: i7__namespace.Observable, decorators: [{
|
|
705
|
+
type: i0.Inject,
|
|
706
|
+
args: [tokens.TUI_COUNTRIES]
|
|
707
|
+
}] }, { type: undefined, decorators: [{
|
|
708
|
+
type: i0.Inject,
|
|
709
|
+
args: [tokens.TUI_COUNTRIES_MASKS]
|
|
710
|
+
}] }, { type: undefined, decorators: [{
|
|
711
|
+
type: i0.Inject,
|
|
712
|
+
args: [TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS]
|
|
713
|
+
}] }, { type: i1__namespace.TuiFlagPipe, decorators: [{
|
|
714
|
+
type: i0.Inject,
|
|
715
|
+
args: [i1.TuiFlagPipe]
|
|
716
|
+
}] }, { type: i8__namespace.TuiToCountryCodePipe, decorators: [{
|
|
717
|
+
type: i0.Inject,
|
|
718
|
+
args: [i8.TuiToCountryCodePipe]
|
|
719
|
+
}] }, { type: i1__namespace.TuiTextfieldSizeDirective, decorators: [{
|
|
720
|
+
type: i0.Inject,
|
|
721
|
+
args: [i1.TUI_TEXTFIELD_SIZE]
|
|
722
|
+
}] }];
|
|
723
|
+
}, propDecorators: { inputPhoneComponent: [{
|
|
724
|
+
type: i0.ViewChild,
|
|
725
|
+
args: [i2.TuiInputPhoneComponent]
|
|
726
|
+
}], primitiveTextfield: [{
|
|
727
|
+
type: i0.ViewChild,
|
|
728
|
+
args: [i1.TuiPrimitiveTextfieldComponent]
|
|
729
|
+
}], isoCode: [{
|
|
730
|
+
type: i0.Input,
|
|
731
|
+
args: ['countryIsoCode']
|
|
732
|
+
}], countries: [{
|
|
733
|
+
type: i0.Input
|
|
734
|
+
}], countryIsoCodeChange: [{
|
|
735
|
+
type: i0.Output
|
|
736
|
+
}], size: [{
|
|
737
|
+
type: i0.HostBinding,
|
|
738
|
+
args: ['attr.data-size']
|
|
739
|
+
}], onPaste: [{
|
|
740
|
+
type: i0.HostListener,
|
|
741
|
+
args: ['paste.capture.prevent.stop', ['$event']]
|
|
742
|
+
}, {
|
|
743
|
+
type: i0.HostListener,
|
|
744
|
+
args: ['drop.capture.prevent.stop', ['$event']]
|
|
745
|
+
}], calculateMaskAfterCountryCode: [] } });
|
|
600
746
|
|
|
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
|
-
|
|
747
|
+
var TuiInputPhoneInternationalModule = /** @class */ (function () {
|
|
748
|
+
function TuiInputPhoneInternationalModule() {
|
|
749
|
+
}
|
|
750
|
+
return TuiInputPhoneInternationalModule;
|
|
751
|
+
}());
|
|
752
|
+
TuiInputPhoneInternationalModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputPhoneInternationalModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
753
|
+
TuiInputPhoneInternationalModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputPhoneInternationalModule, declarations: [TuiInputPhoneInternationalComponent], imports: [i3.CommonModule,
|
|
754
|
+
i5.FormsModule,
|
|
755
|
+
i6.PolymorpheusModule,
|
|
756
|
+
i1.TuiSvgModule,
|
|
757
|
+
i2.TuiInputPhoneModule,
|
|
758
|
+
i1.TuiGroupModule,
|
|
759
|
+
i1.TuiPrimitiveTextfieldModule,
|
|
760
|
+
i1.TuiTextfieldControllerModule,
|
|
761
|
+
i1.TuiHintModule,
|
|
762
|
+
i1.TuiHostedDropdownModule,
|
|
763
|
+
i1.TuiDataListModule,
|
|
764
|
+
arrow.TuiArrowModule,
|
|
765
|
+
i1.TuiWrapperModule,
|
|
766
|
+
i4.TuiLetModule,
|
|
767
|
+
i4.TuiMapperPipeModule,
|
|
768
|
+
i4.TuiActiveZoneModule,
|
|
769
|
+
i1.TuiFlagPipeModule], exports: [TuiInputPhoneInternationalComponent] });
|
|
770
|
+
TuiInputPhoneInternationalModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputPhoneInternationalModule, imports: [[
|
|
771
|
+
i3.CommonModule,
|
|
772
|
+
i5.FormsModule,
|
|
773
|
+
i6.PolymorpheusModule,
|
|
774
|
+
i1.TuiSvgModule,
|
|
775
|
+
i2.TuiInputPhoneModule,
|
|
776
|
+
i1.TuiGroupModule,
|
|
777
|
+
i1.TuiPrimitiveTextfieldModule,
|
|
778
|
+
i1.TuiTextfieldControllerModule,
|
|
779
|
+
i1.TuiHintModule,
|
|
780
|
+
i1.TuiHostedDropdownModule,
|
|
781
|
+
i1.TuiDataListModule,
|
|
782
|
+
arrow.TuiArrowModule,
|
|
783
|
+
i1.TuiWrapperModule,
|
|
784
|
+
i4.TuiLetModule,
|
|
785
|
+
i4.TuiMapperPipeModule,
|
|
786
|
+
i4.TuiActiveZoneModule,
|
|
787
|
+
i1.TuiFlagPipeModule,
|
|
788
|
+
]] });
|
|
789
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputPhoneInternationalModule, decorators: [{
|
|
790
|
+
type: i0.NgModule,
|
|
791
|
+
args: [{
|
|
792
|
+
imports: [
|
|
793
|
+
i3.CommonModule,
|
|
794
|
+
i5.FormsModule,
|
|
795
|
+
i6.PolymorpheusModule,
|
|
796
|
+
i1.TuiSvgModule,
|
|
797
|
+
i2.TuiInputPhoneModule,
|
|
798
|
+
i1.TuiGroupModule,
|
|
799
|
+
i1.TuiPrimitiveTextfieldModule,
|
|
800
|
+
i1.TuiTextfieldControllerModule,
|
|
801
|
+
i1.TuiHintModule,
|
|
802
|
+
i1.TuiHostedDropdownModule,
|
|
803
|
+
i1.TuiDataListModule,
|
|
804
|
+
arrow.TuiArrowModule,
|
|
805
|
+
i1.TuiWrapperModule,
|
|
806
|
+
i4.TuiLetModule,
|
|
807
|
+
i4.TuiMapperPipeModule,
|
|
808
|
+
i4.TuiActiveZoneModule,
|
|
809
|
+
i1.TuiFlagPipeModule,
|
|
810
|
+
],
|
|
811
|
+
declarations: [TuiInputPhoneInternationalComponent],
|
|
812
|
+
exports: [TuiInputPhoneInternationalComponent],
|
|
813
|
+
}]
|
|
814
|
+
}] });
|
|
669
815
|
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
816
|
+
/**
|
|
817
|
+
* Generated bundle index. Do not edit.
|
|
818
|
+
*/
|
|
673
819
|
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
820
|
+
exports.TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS = TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS;
|
|
821
|
+
exports.TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS = TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS;
|
|
822
|
+
exports.TuiInputPhoneInternationalComponent = TuiInputPhoneInternationalComponent;
|
|
823
|
+
exports.TuiInputPhoneInternationalModule = TuiInputPhoneInternationalModule;
|
|
824
|
+
exports.tuiExtractValueFromEvent = tuiExtractValueFromEvent;
|
|
825
|
+
exports.tuiInputPhoneInternationalOptionsProvider = tuiInputPhoneInternationalOptionsProvider;
|
|
680
826
|
|
|
681
|
-
|
|
827
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
682
828
|
|
|
683
829
|
}));
|
|
684
830
|
//# sourceMappingURL=taiga-ui-kit-components-input-phone-international.umd.js.map
|