mis-crystal-design-system 4.0.49 → 4.0.50
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/action-list/mis-crystal-design-system-action-list.metadata.json +1 -1
- package/bundles/mis-crystal-design-system-action-list.umd.js +655 -495
- package/bundles/mis-crystal-design-system-action-list.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-action-list.umd.min.js +1 -15
- package/bundles/mis-crystal-design-system-action-list.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-analytics.umd.js +568 -409
- package/bundles/mis-crystal-design-system-analytics.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-analytics.umd.min.js +1 -15
- package/bundles/mis-crystal-design-system-analytics.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-checkbox.umd.js +1 -1
- package/bundles/mis-crystal-design-system-checkbox.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-checkbox.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-datepicker_v2.umd.js +849 -690
- package/bundles/mis-crystal-design-system-datepicker_v2.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js +1 -15
- package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js +2 -3
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-dropdown.umd.js +703 -544
- package/bundles/mis-crystal-design-system-dropdown.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-dropdown.umd.min.js +1 -15
- package/bundles/mis-crystal-design-system-dropdown.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-dynamic-form.umd.js +882 -723
- package/bundles/mis-crystal-design-system-dynamic-form.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-dynamic-form.umd.min.js +1 -15
- package/bundles/mis-crystal-design-system-dynamic-form.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-input-stepper.umd.js +2 -0
- package/bundles/mis-crystal-design-system-input-stepper.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-input-stepper.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-input-stepper.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-input.umd.js +1 -1
- package/bundles/mis-crystal-design-system-input.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-input.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-loader.umd.js +1 -1
- package/bundles/mis-crystal-design-system-loader.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-loader.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js +769 -610
- package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js +1 -15
- package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js +782 -623
- package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js +1 -15
- package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-ske-loader.umd.js +1 -1
- package/bundles/mis-crystal-design-system-ske-loader.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-ske-loader.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-snackbar.umd.js +19 -11
- package/bundles/mis-crystal-design-system-snackbar.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-snackbar.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-snackbar.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-specificdatepicker.umd.js +1120 -961
- package/bundles/mis-crystal-design-system-specificdatepicker.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-specificdatepicker.umd.min.js +1 -15
- package/bundles/mis-crystal-design-system-specificdatepicker.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-star-rating.umd.js +2 -2
- package/bundles/mis-crystal-design-system-star-rating.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-star-rating.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-star-rating.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-table.umd.js +927 -768
- package/bundles/mis-crystal-design-system-table.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-table.umd.min.js +1 -15
- package/bundles/mis-crystal-design-system-table.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-timepicker.umd.js +829 -670
- package/bundles/mis-crystal-design-system-timepicker.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-timepicker.umd.min.js +1 -15
- package/bundles/mis-crystal-design-system-timepicker.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-virtual-scroll.umd.js +616 -457
- package/bundles/mis-crystal-design-system-virtual-scroll.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-virtual-scroll.umd.min.js +1 -15
- package/bundles/mis-crystal-design-system-virtual-scroll.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-widgets.umd.js +621 -462
- package/bundles/mis-crystal-design-system-widgets.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-widgets.umd.min.js +1 -15
- package/bundles/mis-crystal-design-system-widgets.umd.min.js.map +1 -1
- package/checkbox/mis-crystal-design-system-checkbox.metadata.json +1 -1
- package/datepicker_v2/mis-crystal-design-system-datepicker_v2.metadata.json +1 -1
- package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.metadata.json +1 -1
- package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +0 -1
- package/dropdown/mis-crystal-design-system-dropdown.metadata.json +1 -1
- package/dynamic-form/mis-crystal-design-system-dynamic-form.metadata.json +1 -1
- package/esm2015/action-list/action-list.component.js +6 -5
- package/esm2015/checkbox/checkbox.component.js +1 -1
- package/esm2015/datepicker_v2/tz-dp-container/tz-dp-container.component.js +1 -1
- package/esm2015/daterangepicker_v2/tz-drp-container/tz-drp-container.component.js +3 -4
- package/esm2015/dropdown/dropdown.component.js +1 -1
- package/esm2015/dynamic-form/dynamic-form.component.js +1 -1
- package/esm2015/input/mis-input.component.js +1 -1
- package/esm2015/input-stepper/input-stepper/input-stepper.component.js +3 -1
- package/esm2015/loader/loader.component.js +1 -1
- package/esm2015/multi-select-dropdown/multi-select-dropdown.component.js +1 -1
- package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.component.js +1 -1
- package/esm2015/ske-loader/ske-loader.component.js +1 -1
- package/esm2015/snackbar/snackbar/snackbar.component.js +9 -13
- package/esm2015/snackbar/snackbar.module.js +13 -2
- package/esm2015/specificdatepicker/tz-sdp-container/tz-sdp-container.component.js +1 -1
- package/esm2015/star-rating/star-rating.component.js +3 -3
- package/esm2015/table/table.component.js +1 -1
- package/fesm2015/mis-crystal-design-system-action-list.js +5 -4
- package/fesm2015/mis-crystal-design-system-action-list.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-checkbox.js +1 -1
- package/fesm2015/mis-crystal-design-system-datepicker_v2.js +1 -1
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js +2 -3
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-dropdown.js +1 -1
- package/fesm2015/mis-crystal-design-system-dynamic-form.js +1 -1
- package/fesm2015/mis-crystal-design-system-input-stepper.js +2 -0
- package/fesm2015/mis-crystal-design-system-input-stepper.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-input.js +1 -1
- package/fesm2015/mis-crystal-design-system-loader.js +1 -1
- package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js +1 -1
- package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js +1 -1
- package/fesm2015/mis-crystal-design-system-ske-loader.js +1 -1
- package/fesm2015/mis-crystal-design-system-snackbar.js +20 -12
- package/fesm2015/mis-crystal-design-system-snackbar.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-specificdatepicker.js +1 -1
- package/fesm2015/mis-crystal-design-system-star-rating.js +2 -2
- package/fesm2015/mis-crystal-design-system-star-rating.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-table.js +1 -1
- package/input/mis-crystal-design-system-input.metadata.json +1 -1
- package/loader/mis-crystal-design-system-loader.metadata.json +1 -1
- package/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.metadata.json +1 -1
- package/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.metadata.json +1 -1
- package/package.json +1 -1
- package/ske-loader/mis-crystal-design-system-ske-loader.metadata.json +1 -1
- package/snackbar/mis-crystal-design-system-snackbar.metadata.json +1 -1
- package/snackbar/snackbar/snackbar.component.d.ts +5 -5
- package/snackbar/snackbar.module.d.ts +3 -0
- package/specificdatepicker/mis-crystal-design-system-specificdatepicker.metadata.json +1 -1
- package/table/mis-crystal-design-system-table.metadata.json +1 -1
|
@@ -1,688 +1,847 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('moment-timezone'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('mis-crystal-design-system/tooltip'), require('@angular/common'), require('@angular/forms')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('mis-crystal-design-system/timepicker', ['exports', '@angular/core', 'moment-timezone', '@angular/cdk/overlay', '@angular/cdk/portal', 'mis-crystal-design-system/tooltip', '@angular/common', '@angular/forms'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['mis-crystal-design-system'] = global['mis-crystal-design-system'] || {}, global['mis-crystal-design-system'].timepicker = {}), global.ng.core, global.moment, global.ng.cdk.overlay, global.ng.cdk.portal, global['mis-crystal-design-system'].tooltip, global.ng.common, global.ng.forms));
|
|
5
5
|
}(this, (function (exports, core, moment, overlay, portal, tooltip, common, forms) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
});
|
|
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 () {
|
|
17
|
+
return e[k];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
22
20
|
}
|
|
23
|
-
|
|
24
|
-
return Object.freeze(n);
|
|
21
|
+
});
|
|
25
22
|
}
|
|
23
|
+
n['default'] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
/******************************************************************************
|
|
30
|
+
Copyright (c) Microsoft Corporation.
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
33
|
+
purpose with or without fee is hereby granted.
|
|
34
34
|
|
|
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
|
-
|
|
35
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
36
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
37
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
38
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
39
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
40
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
41
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
42
|
+
***************************************************************************** */
|
|
43
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
44
|
+
var extendStatics = function (d, b) {
|
|
45
|
+
extendStatics = Object.setPrototypeOf ||
|
|
46
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
47
|
+
function (d, b) { for (var p in b)
|
|
48
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
49
|
+
d[p] = b[p]; };
|
|
50
|
+
return extendStatics(d, b);
|
|
51
|
+
};
|
|
52
|
+
function __extends(d, b) {
|
|
53
|
+
if (typeof b !== "function" && b !== null)
|
|
54
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
55
|
+
extendStatics(d, b);
|
|
56
|
+
function __() { this.constructor = d; }
|
|
57
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
58
|
+
}
|
|
59
|
+
var __assign = function () {
|
|
60
|
+
__assign = Object.assign || function __assign(t) {
|
|
61
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
62
|
+
s = arguments[i];
|
|
63
|
+
for (var p in s)
|
|
64
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
65
|
+
t[p] = s[p];
|
|
66
|
+
}
|
|
67
|
+
return t;
|
|
68
|
+
};
|
|
69
|
+
return __assign.apply(this, arguments);
|
|
70
|
+
};
|
|
71
|
+
function __rest(s, e) {
|
|
72
|
+
var t = {};
|
|
73
|
+
for (var p in s)
|
|
74
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
75
|
+
t[p] = s[p];
|
|
76
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
77
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
78
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
79
|
+
t[p[i]] = s[p[i]];
|
|
80
|
+
}
|
|
81
|
+
return t;
|
|
82
|
+
}
|
|
83
|
+
function __decorate(decorators, target, key, desc) {
|
|
84
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
85
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
86
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
87
|
+
else
|
|
88
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
89
|
+
if (d = decorators[i])
|
|
90
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
91
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
92
|
+
}
|
|
93
|
+
function __param(paramIndex, decorator) {
|
|
94
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
95
|
+
}
|
|
96
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
97
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
|
98
|
+
throw new TypeError("Function expected"); return f; }
|
|
99
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
100
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
101
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
102
|
+
var _, done = false;
|
|
103
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
104
|
+
var context = {};
|
|
105
|
+
for (var p in contextIn)
|
|
106
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
|
107
|
+
for (var p in contextIn.access)
|
|
108
|
+
context.access[p] = contextIn.access[p];
|
|
109
|
+
context.addInitializer = function (f) { if (done)
|
|
110
|
+
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
111
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
112
|
+
if (kind === "accessor") {
|
|
113
|
+
if (result === void 0)
|
|
114
|
+
continue;
|
|
115
|
+
if (result === null || typeof result !== "object")
|
|
116
|
+
throw new TypeError("Object expected");
|
|
117
|
+
if (_ = accept(result.get))
|
|
118
|
+
descriptor.get = _;
|
|
119
|
+
if (_ = accept(result.set))
|
|
120
|
+
descriptor.set = _;
|
|
121
|
+
if (_ = accept(result.init))
|
|
122
|
+
initializers.unshift(_);
|
|
123
|
+
}
|
|
124
|
+
else if (_ = accept(result)) {
|
|
125
|
+
if (kind === "field")
|
|
126
|
+
initializers.unshift(_);
|
|
127
|
+
else
|
|
128
|
+
descriptor[key] = _;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if (target)
|
|
132
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
|
133
|
+
done = true;
|
|
134
|
+
}
|
|
135
|
+
;
|
|
136
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
137
|
+
var useValue = arguments.length > 2;
|
|
138
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
139
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
140
|
+
}
|
|
141
|
+
return useValue ? value : void 0;
|
|
142
|
+
}
|
|
143
|
+
;
|
|
144
|
+
function __propKey(x) {
|
|
145
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
146
|
+
}
|
|
147
|
+
;
|
|
148
|
+
function __setFunctionName(f, name, prefix) {
|
|
149
|
+
if (typeof name === "symbol")
|
|
150
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
|
151
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
152
|
+
}
|
|
153
|
+
;
|
|
154
|
+
function __metadata(metadataKey, metadataValue) {
|
|
155
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
156
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
157
|
+
}
|
|
158
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
159
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
160
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
161
|
+
function fulfilled(value) { try {
|
|
162
|
+
step(generator.next(value));
|
|
163
|
+
}
|
|
164
|
+
catch (e) {
|
|
165
|
+
reject(e);
|
|
166
|
+
} }
|
|
167
|
+
function rejected(value) { try {
|
|
168
|
+
step(generator["throw"](value));
|
|
169
|
+
}
|
|
170
|
+
catch (e) {
|
|
171
|
+
reject(e);
|
|
172
|
+
} }
|
|
173
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
174
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
function __generator(thisArg, body) {
|
|
178
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
179
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
180
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
181
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
182
|
+
function step(op) {
|
|
183
|
+
if (f)
|
|
184
|
+
throw new TypeError("Generator is already executing.");
|
|
185
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
186
|
+
try {
|
|
187
|
+
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)
|
|
188
|
+
return t;
|
|
189
|
+
if (y = 0, t)
|
|
190
|
+
op = [op[0] & 2, t.value];
|
|
191
|
+
switch (op[0]) {
|
|
192
|
+
case 0:
|
|
193
|
+
case 1:
|
|
194
|
+
t = op;
|
|
195
|
+
break;
|
|
196
|
+
case 4:
|
|
197
|
+
_.label++;
|
|
198
|
+
return { value: op[1], done: false };
|
|
199
|
+
case 5:
|
|
200
|
+
_.label++;
|
|
201
|
+
y = op[1];
|
|
202
|
+
op = [0];
|
|
203
|
+
continue;
|
|
204
|
+
case 7:
|
|
205
|
+
op = _.ops.pop();
|
|
206
|
+
_.trys.pop();
|
|
207
|
+
continue;
|
|
208
|
+
default:
|
|
209
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
210
|
+
_ = 0;
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
214
|
+
_.label = op[1];
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
218
|
+
_.label = t[1];
|
|
219
|
+
t = op;
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
if (t && _.label < t[2]) {
|
|
223
|
+
_.label = t[2];
|
|
224
|
+
_.ops.push(op);
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
if (t[2])
|
|
228
|
+
_.ops.pop();
|
|
229
|
+
_.trys.pop();
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
op = body.call(thisArg, _);
|
|
233
|
+
}
|
|
234
|
+
catch (e) {
|
|
235
|
+
op = [6, e];
|
|
236
|
+
y = 0;
|
|
237
|
+
}
|
|
238
|
+
finally {
|
|
239
|
+
f = t = 0;
|
|
240
|
+
}
|
|
241
|
+
if (op[0] & 5)
|
|
242
|
+
throw op[1];
|
|
243
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
247
|
+
if (k2 === undefined)
|
|
248
|
+
k2 = k;
|
|
249
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
250
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
251
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
252
|
+
}
|
|
253
|
+
Object.defineProperty(o, k2, desc);
|
|
254
|
+
}) : (function (o, m, k, k2) {
|
|
255
|
+
if (k2 === undefined)
|
|
256
|
+
k2 = k;
|
|
257
|
+
o[k2] = m[k];
|
|
258
|
+
});
|
|
259
|
+
function __exportStar(m, o) {
|
|
260
|
+
for (var p in m)
|
|
261
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
262
|
+
__createBinding(o, m, p);
|
|
263
|
+
}
|
|
264
|
+
function __values(o) {
|
|
265
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
266
|
+
if (m)
|
|
267
|
+
return m.call(o);
|
|
268
|
+
if (o && typeof o.length === "number")
|
|
269
|
+
return {
|
|
270
|
+
next: function () {
|
|
271
|
+
if (o && i >= o.length)
|
|
272
|
+
o = void 0;
|
|
273
|
+
return { value: o && o[i++], done: !o };
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
277
|
+
}
|
|
278
|
+
function __read(o, n) {
|
|
279
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
280
|
+
if (!m)
|
|
281
|
+
return o;
|
|
282
|
+
var i = m.call(o), r, ar = [], e;
|
|
283
|
+
try {
|
|
284
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
285
|
+
ar.push(r.value);
|
|
286
|
+
}
|
|
287
|
+
catch (error) {
|
|
288
|
+
e = { error: error };
|
|
289
|
+
}
|
|
290
|
+
finally {
|
|
291
|
+
try {
|
|
292
|
+
if (r && !r.done && (m = i["return"]))
|
|
293
|
+
m.call(i);
|
|
294
|
+
}
|
|
295
|
+
finally {
|
|
296
|
+
if (e)
|
|
297
|
+
throw e.error;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return ar;
|
|
301
|
+
}
|
|
302
|
+
/** @deprecated */
|
|
303
|
+
function __spread() {
|
|
304
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
305
|
+
ar = ar.concat(__read(arguments[i]));
|
|
306
|
+
return ar;
|
|
307
|
+
}
|
|
308
|
+
/** @deprecated */
|
|
309
|
+
function __spreadArrays() {
|
|
310
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
311
|
+
s += arguments[i].length;
|
|
312
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
313
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
314
|
+
r[k] = a[j];
|
|
315
|
+
return r;
|
|
316
|
+
}
|
|
317
|
+
function __spreadArray(to, from, pack) {
|
|
318
|
+
if (pack || arguments.length === 2)
|
|
319
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
320
|
+
if (ar || !(i in from)) {
|
|
321
|
+
if (!ar)
|
|
322
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
323
|
+
ar[i] = from[i];
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
327
|
+
}
|
|
328
|
+
function __await(v) {
|
|
329
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
330
|
+
}
|
|
331
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
332
|
+
if (!Symbol.asyncIterator)
|
|
333
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
334
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
335
|
+
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
336
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
337
|
+
function verb(n, f) { 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
|
+
if (f)
|
|
340
|
+
i[n] = f(i[n]);
|
|
341
|
+
} }
|
|
342
|
+
function resume(n, v) { try {
|
|
343
|
+
step(g[n](v));
|
|
344
|
+
}
|
|
345
|
+
catch (e) {
|
|
346
|
+
settle(q[0][3], e);
|
|
347
|
+
} }
|
|
348
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
349
|
+
function fulfill(value) { resume("next", value); }
|
|
350
|
+
function reject(value) { resume("throw", value); }
|
|
351
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
352
|
+
resume(q[0][0], q[0][1]); }
|
|
353
|
+
}
|
|
354
|
+
function __asyncDelegator(o) {
|
|
355
|
+
var i, p;
|
|
356
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
357
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
358
|
+
}
|
|
359
|
+
function __asyncValues(o) {
|
|
360
|
+
if (!Symbol.asyncIterator)
|
|
361
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
362
|
+
var m = o[Symbol.asyncIterator], i;
|
|
363
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
364
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
365
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
366
|
+
}
|
|
367
|
+
function __makeTemplateObject(cooked, raw) {
|
|
368
|
+
if (Object.defineProperty) {
|
|
369
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
370
|
+
}
|
|
371
|
+
else {
|
|
372
|
+
cooked.raw = raw;
|
|
373
|
+
}
|
|
374
|
+
return cooked;
|
|
375
|
+
}
|
|
376
|
+
;
|
|
377
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
378
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
379
|
+
}) : function (o, v) {
|
|
380
|
+
o["default"] = v;
|
|
381
|
+
};
|
|
382
|
+
function __importStar(mod) {
|
|
383
|
+
if (mod && mod.__esModule)
|
|
384
|
+
return mod;
|
|
385
|
+
var result = {};
|
|
386
|
+
if (mod != null)
|
|
387
|
+
for (var k in mod)
|
|
388
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
389
|
+
__createBinding(result, mod, k);
|
|
390
|
+
__setModuleDefault(result, mod);
|
|
391
|
+
return result;
|
|
392
|
+
}
|
|
393
|
+
function __importDefault(mod) {
|
|
394
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
395
|
+
}
|
|
396
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
397
|
+
if (kind === "a" && !f)
|
|
398
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
399
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
400
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
401
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
402
|
+
}
|
|
403
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
404
|
+
if (kind === "m")
|
|
405
|
+
throw new TypeError("Private method is not writable");
|
|
406
|
+
if (kind === "a" && !f)
|
|
407
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
408
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
409
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
410
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
411
|
+
}
|
|
412
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
413
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
414
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
415
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
416
|
+
}
|
|
417
|
+
function __addDisposableResource(env, value, async) {
|
|
418
|
+
if (value !== null && value !== void 0) {
|
|
419
|
+
if (typeof value !== "object" && typeof value !== "function")
|
|
420
|
+
throw new TypeError("Object expected.");
|
|
421
|
+
var dispose, inner;
|
|
422
|
+
if (async) {
|
|
423
|
+
if (!Symbol.asyncDispose)
|
|
424
|
+
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
425
|
+
dispose = value[Symbol.asyncDispose];
|
|
426
|
+
}
|
|
427
|
+
if (dispose === void 0) {
|
|
428
|
+
if (!Symbol.dispose)
|
|
429
|
+
throw new TypeError("Symbol.dispose is not defined.");
|
|
430
|
+
dispose = value[Symbol.dispose];
|
|
431
|
+
if (async)
|
|
432
|
+
inner = dispose;
|
|
433
|
+
}
|
|
434
|
+
if (typeof dispose !== "function")
|
|
435
|
+
throw new TypeError("Object not disposable.");
|
|
436
|
+
if (inner)
|
|
437
|
+
dispose = function () { try {
|
|
438
|
+
inner.call(this);
|
|
439
|
+
}
|
|
440
|
+
catch (e) {
|
|
441
|
+
return Promise.reject(e);
|
|
442
|
+
} };
|
|
443
|
+
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
444
|
+
}
|
|
445
|
+
else if (async) {
|
|
446
|
+
env.stack.push({ async: true });
|
|
447
|
+
}
|
|
448
|
+
return value;
|
|
449
|
+
}
|
|
450
|
+
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
451
|
+
var e = new Error(message);
|
|
452
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
453
|
+
};
|
|
454
|
+
function __disposeResources(env) {
|
|
455
|
+
function fail(e) {
|
|
456
|
+
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
457
|
+
env.hasError = true;
|
|
458
|
+
}
|
|
459
|
+
function next() {
|
|
460
|
+
while (env.stack.length) {
|
|
461
|
+
var rec = env.stack.pop();
|
|
462
|
+
try {
|
|
463
|
+
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
464
|
+
if (rec.async)
|
|
465
|
+
return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
|
|
466
|
+
}
|
|
467
|
+
catch (e) {
|
|
468
|
+
fail(e);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
if (env.hasError)
|
|
472
|
+
throw env.error;
|
|
473
|
+
}
|
|
474
|
+
return next();
|
|
475
|
+
}
|
|
476
|
+
var tslib_es6 = {
|
|
477
|
+
__extends: __extends,
|
|
478
|
+
__assign: __assign,
|
|
479
|
+
__rest: __rest,
|
|
480
|
+
__decorate: __decorate,
|
|
481
|
+
__param: __param,
|
|
482
|
+
__metadata: __metadata,
|
|
483
|
+
__awaiter: __awaiter,
|
|
484
|
+
__generator: __generator,
|
|
485
|
+
__createBinding: __createBinding,
|
|
486
|
+
__exportStar: __exportStar,
|
|
487
|
+
__values: __values,
|
|
488
|
+
__read: __read,
|
|
489
|
+
__spread: __spread,
|
|
490
|
+
__spreadArrays: __spreadArrays,
|
|
491
|
+
__spreadArray: __spreadArray,
|
|
492
|
+
__await: __await,
|
|
493
|
+
__asyncGenerator: __asyncGenerator,
|
|
494
|
+
__asyncDelegator: __asyncDelegator,
|
|
495
|
+
__asyncValues: __asyncValues,
|
|
496
|
+
__makeTemplateObject: __makeTemplateObject,
|
|
497
|
+
__importStar: __importStar,
|
|
498
|
+
__importDefault: __importDefault,
|
|
499
|
+
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
500
|
+
__classPrivateFieldSet: __classPrivateFieldSet,
|
|
501
|
+
__classPrivateFieldIn: __classPrivateFieldIn,
|
|
502
|
+
__addDisposableResource: __addDisposableResource,
|
|
503
|
+
__disposeResources: __disposeResources,
|
|
504
|
+
};
|
|
346
505
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
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
|
-
|
|
506
|
+
var TimepickerDirective = /** @class */ (function () {
|
|
507
|
+
function TimepickerDirective(templateRef, overlay, viewContainerRef) {
|
|
508
|
+
this.templateRef = templateRef;
|
|
509
|
+
this.overlay = overlay;
|
|
510
|
+
this.viewContainerRef = viewContainerRef;
|
|
511
|
+
this.openStatus = false;
|
|
512
|
+
this.statusEmitter = new core.EventEmitter();
|
|
513
|
+
}
|
|
514
|
+
Object.defineProperty(TimepickerDirective.prototype, "createOverlayOnInput", {
|
|
515
|
+
set: function (openStatus) {
|
|
516
|
+
this.openStatus = openStatus;
|
|
517
|
+
if (this.originEl && this.openStatus)
|
|
518
|
+
this.createOverlay(this.originEl);
|
|
519
|
+
},
|
|
520
|
+
enumerable: false,
|
|
521
|
+
configurable: true
|
|
522
|
+
});
|
|
523
|
+
;
|
|
524
|
+
TimepickerDirective.prototype.createOverlay = function (origin) {
|
|
525
|
+
var _this = this;
|
|
526
|
+
var positions = [
|
|
527
|
+
new overlay.ConnectionPositionPair({ originX: "start", originY: "bottom" }, { overlayX: "start", overlayY: "top" }, 0, 4),
|
|
528
|
+
new overlay.ConnectionPositionPair({ originX: "end", originY: "bottom" }, { overlayX: "end", overlayY: "top" }, 0, 4)
|
|
529
|
+
];
|
|
530
|
+
var overlayConfig = new overlay.OverlayConfig({
|
|
531
|
+
hasBackdrop: true,
|
|
532
|
+
backdropClass: "cdk-overlay-transparent-backdrop",
|
|
533
|
+
positionStrategy: this.overlay
|
|
534
|
+
.position()
|
|
535
|
+
//connecting the dropdown overlay to the input element
|
|
536
|
+
.flexibleConnectedTo(origin)
|
|
537
|
+
.withPositions(__spread(positions))
|
|
538
|
+
.withPush(true)
|
|
539
|
+
});
|
|
540
|
+
this.overlayRef = this.overlay.create(overlayConfig);
|
|
541
|
+
var dropdownPortal = new portal.TemplatePortal(this.templateRef, this.viewContainerRef);
|
|
542
|
+
this.overlayRef.attach(dropdownPortal);
|
|
543
|
+
this.overlayRef.backdropClick().subscribe(function (resp) {
|
|
544
|
+
_this.openStatus = false;
|
|
545
|
+
_this.statusEmitter.emit(false);
|
|
546
|
+
_this.overlayRef.detach();
|
|
547
|
+
});
|
|
548
|
+
};
|
|
549
|
+
TimepickerDirective.prototype.destroyOverlay = function () {
|
|
550
|
+
this.overlayRef.detach();
|
|
551
|
+
};
|
|
552
|
+
return TimepickerDirective;
|
|
553
|
+
}());
|
|
554
|
+
TimepickerDirective.decorators = [
|
|
555
|
+
{ type: core.Directive, args: [{
|
|
556
|
+
selector: '[libTimepicker]'
|
|
557
|
+
},] }
|
|
558
|
+
];
|
|
559
|
+
TimepickerDirective.ctorParameters = function () { return [
|
|
560
|
+
{ type: core.TemplateRef },
|
|
561
|
+
{ type: overlay.Overlay },
|
|
562
|
+
{ type: core.ViewContainerRef }
|
|
563
|
+
]; };
|
|
564
|
+
TimepickerDirective.propDecorators = {
|
|
565
|
+
originEl: [{ type: core.Input, args: ['originEl',] }],
|
|
566
|
+
statusEmitter: [{ type: core.Output }],
|
|
567
|
+
createOverlayOnInput: [{ type: core.Input, args: ['openStatus',] }]
|
|
568
|
+
};
|
|
410
569
|
|
|
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
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
570
|
+
var TimePickerComponent = /** @class */ (function () {
|
|
571
|
+
function TimePickerComponent() {
|
|
572
|
+
this.openStatus = false;
|
|
573
|
+
this.isHighlighted = 0;
|
|
574
|
+
this.isInvalid = false;
|
|
575
|
+
this.timeIntervals = [];
|
|
576
|
+
this.shouldScroll = false;
|
|
577
|
+
this.userInputFlag = false;
|
|
578
|
+
this.givenTimeFlag = true;
|
|
579
|
+
this.clockFormat = 12;
|
|
580
|
+
this.timezone = "Asia/Kolkata";
|
|
581
|
+
this.height = "max-content";
|
|
582
|
+
this.inputWidth = "100px";
|
|
583
|
+
this.interval = 15;
|
|
584
|
+
this.dateAsEpoch = moment__namespace().valueOf();
|
|
585
|
+
this.rangeValidity = true;
|
|
586
|
+
this.showTooltip = true;
|
|
587
|
+
this.dispayToolTip = this.showTooltip;
|
|
588
|
+
this.triggerChange = true;
|
|
589
|
+
this.timeEmitter = new core.EventEmitter();
|
|
590
|
+
}
|
|
591
|
+
Object.defineProperty(TimePickerComponent.prototype, "timeIntervalRefs", {
|
|
592
|
+
// gets all the li elements from the dropdown and scrolls to the highlighted element
|
|
593
|
+
set: function (intervals) {
|
|
594
|
+
intervals.forEach(function (interval) {
|
|
595
|
+
if (interval.nativeElement.classList[0] === "highlight") {
|
|
596
|
+
var highlighted_1 = interval.nativeElement;
|
|
597
|
+
setTimeout(function () { return highlighted_1.scrollIntoView({ block: "center" }); });
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
},
|
|
601
|
+
enumerable: false,
|
|
602
|
+
configurable: true
|
|
603
|
+
});
|
|
604
|
+
TimePickerComponent.prototype.ngOnInit = function () {
|
|
605
|
+
if (!this.givenTime && !this.minTime) {
|
|
606
|
+
this.chosenTime = moment__namespace(this.firstInterval).format(this.timeFormat);
|
|
607
|
+
var chosenTimeMoment = this.getMoment(this.chosenTime);
|
|
608
|
+
this.emitTime({
|
|
609
|
+
valid: !this.isInvalid,
|
|
610
|
+
time: this.chosenTime,
|
|
611
|
+
epoch: chosenTimeMoment.valueOf()
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
};
|
|
615
|
+
TimePickerComponent.prototype.ngOnChanges = function () {
|
|
616
|
+
this.timeFormat = this.clockFormat === 12 ? "hh:mm a" : "HH:mm";
|
|
617
|
+
moment.tz.setDefault(this.timezone);
|
|
618
|
+
if (this.timeFormat) {
|
|
619
|
+
var chosenTimeMoment = this.getMoment(this.chosenTime);
|
|
620
|
+
// if the first interval is >= the chosen time
|
|
621
|
+
// then only update the value of chosen time
|
|
622
|
+
// else it remains the same
|
|
623
|
+
if (this.firstInterval >= chosenTimeMoment.valueOf() && this.rangeValidity && !this.userInputFlag) {
|
|
624
|
+
this.chosenTime = moment__namespace(this.firstInterval).format(this.timeFormat);
|
|
625
|
+
chosenTimeMoment = this.getMoment(this.chosenTime);
|
|
626
|
+
}
|
|
627
|
+
if ((this.givenTimeFlag && this.givenTime) || this.minTime) {
|
|
628
|
+
this.chosenTime = moment__namespace(this.minTime || this.givenTime).format(this.timeFormat);
|
|
629
|
+
}
|
|
630
|
+
chosenTimeMoment = this.getMoment(this.chosenTime);
|
|
631
|
+
if (!this.userInputFlag)
|
|
632
|
+
this.populateDropdown();
|
|
633
|
+
this.userInputFlag = false;
|
|
634
|
+
if (this.chosenTime) {
|
|
635
|
+
this.isInvalid = !this.checkTimeValidity(this.chosenTime.trim());
|
|
636
|
+
this.emitTime({
|
|
637
|
+
valid: !this.isInvalid,
|
|
638
|
+
time: this.chosenTime,
|
|
639
|
+
epoch: chosenTimeMoment.valueOf()
|
|
640
|
+
});
|
|
641
|
+
this.calculateClosestInterval(this.chosenTime);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
TimePickerComponent.prototype.emitTime = function (data) {
|
|
646
|
+
this.timeEmitter.emit(data);
|
|
647
|
+
};
|
|
648
|
+
// function to get moment object when time is given in string
|
|
649
|
+
TimePickerComponent.prototype.getMoment = function (time) {
|
|
650
|
+
return moment__namespace(moment__namespace(this.dateAsEpoch).format("DD-MM-YYYY") + " " + time, "'DD-MM-YYYY' " + this.timeFormat);
|
|
651
|
+
};
|
|
652
|
+
TimePickerComponent.prototype.closeDropdown = function () {
|
|
653
|
+
this.dispayToolTip = false;
|
|
654
|
+
this.userInputFlag = false;
|
|
655
|
+
this.openStatus = false;
|
|
656
|
+
if (this.timepickerDirective)
|
|
657
|
+
this.timepickerDirective.destroyOverlay();
|
|
658
|
+
};
|
|
659
|
+
// toggle timepicker dropdown
|
|
660
|
+
TimePickerComponent.prototype.openDropdown = function () {
|
|
661
|
+
this.dispayToolTip = true;
|
|
662
|
+
this.openStatus = true;
|
|
663
|
+
};
|
|
664
|
+
TimePickerComponent.prototype.checkTimeValidity = function (time) {
|
|
665
|
+
var RE12 = /^(([0][1-9]|1[0-2]):([0-5][0-9])( )?(am|pm|AM|PM))$/i;
|
|
666
|
+
var RE24 = /^([01][0-9]|2[0-3]):[0-5][0-9]$/;
|
|
667
|
+
var RE = this.clockFormat === 12 ? RE12 : RE24;
|
|
668
|
+
var timeMoment = this.getMoment(time);
|
|
669
|
+
var flag = false;
|
|
670
|
+
// if the first interval is set to the start of the day
|
|
671
|
+
// or a time is already provided to the component to show
|
|
672
|
+
// then we don't check its validity against the current time
|
|
673
|
+
if (this.minTime ||
|
|
674
|
+
this.givenTime ||
|
|
675
|
+
(this.firstInterval &&
|
|
676
|
+
moment__namespace(this.firstInterval).format(this.timeFormat).valueOf() === moment__namespace().startOf("d").format(this.timeFormat).valueOf())) {
|
|
677
|
+
flag = time.match(RE) ? true : false;
|
|
678
|
+
}
|
|
679
|
+
else {
|
|
680
|
+
flag = time.match(RE) && timeMoment.diff(moment__namespace(), "m") >= 0 ? true : false;
|
|
681
|
+
}
|
|
682
|
+
return flag;
|
|
683
|
+
};
|
|
684
|
+
// update chosen time as soon as the user clicks on an interval
|
|
685
|
+
TimePickerComponent.prototype.onTimeSelect = function (time) {
|
|
686
|
+
this.isInvalid = !this.checkTimeValidity(time.trim());
|
|
687
|
+
if (!this.isInvalid) {
|
|
688
|
+
this.chosenTime = time;
|
|
689
|
+
this.calculateClosestInterval(this.chosenTime);
|
|
690
|
+
}
|
|
691
|
+
var timeMoment = this.getMoment(time);
|
|
692
|
+
this.emitTime({
|
|
693
|
+
valid: !this.isInvalid,
|
|
694
|
+
time: time,
|
|
695
|
+
epoch: timeMoment.valueOf()
|
|
696
|
+
});
|
|
697
|
+
this.openStatus = false;
|
|
698
|
+
if (this.timepickerDirective)
|
|
699
|
+
this.timepickerDirective.destroyOverlay();
|
|
700
|
+
};
|
|
701
|
+
// checks validity of time on input change and calculates the closest interval
|
|
702
|
+
TimePickerComponent.prototype.onTimeChange = function (time) {
|
|
703
|
+
this.isInvalid = !this.checkTimeValidity(time.trim());
|
|
704
|
+
if (!this.isInvalid) {
|
|
705
|
+
this.userInputFlag = true;
|
|
706
|
+
this.openStatus = false;
|
|
707
|
+
if (this.timepickerDirective)
|
|
708
|
+
this.timepickerDirective.destroyOverlay();
|
|
709
|
+
this.calculateClosestInterval(time);
|
|
710
|
+
}
|
|
711
|
+
var timeMoment = this.getMoment(time);
|
|
712
|
+
this.emitTime({
|
|
713
|
+
valid: !this.isInvalid,
|
|
714
|
+
time: time,
|
|
715
|
+
epoch: timeMoment.valueOf()
|
|
716
|
+
});
|
|
717
|
+
};
|
|
718
|
+
TimePickerComponent.prototype.calculateClosestInterval = function (time) {
|
|
719
|
+
var _this = this;
|
|
720
|
+
var roundedEpoch;
|
|
721
|
+
// Converting time and date to a moment object
|
|
722
|
+
var chosenDate = moment__namespace(this.dateAsEpoch).format("DD-MM-YYYY"); // 05-01-2024
|
|
723
|
+
var parsedTimeWithDate = moment__namespace(chosenDate + " " + time, "DD-MM-YYYY " + this.timeFormat);
|
|
724
|
+
// Converting moment object to epoch
|
|
725
|
+
var chosenTimeEpoch = parsedTimeWithDate.valueOf();
|
|
726
|
+
var offset = this.interval - (moment__namespace(chosenTimeEpoch).minutes() % this.interval);
|
|
727
|
+
if (this.minTime && !this.givenTime) {
|
|
728
|
+
this.isHighlighted = 0;
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
roundedEpoch = offset >= this.interval / 2 ? (moment__namespace(chosenTimeEpoch).subtract(this.interval - offset, "m")).valueOf() : (moment__namespace(chosenTimeEpoch).add(offset, "m")).valueOf();
|
|
732
|
+
// finding the index of element that needs to be highlighted
|
|
733
|
+
if (chosenTimeEpoch > moment__namespace(this.dateAsEpoch).endOf("d").subtract(this.interval, "m").valueOf()) {
|
|
734
|
+
this.isHighlighted = this.timeIntervals.length - 1;
|
|
735
|
+
}
|
|
736
|
+
else {
|
|
737
|
+
var roundedEpochMoment_1 = moment__namespace(roundedEpoch);
|
|
738
|
+
this.isHighlighted = this.timeIntervals.findIndex(function (interval) {
|
|
739
|
+
var intervalObj = moment__namespace(chosenDate + " " + interval, "DD-MM-YYYY " + _this.timeFormat);
|
|
740
|
+
return intervalObj.isSame(roundedEpochMoment_1);
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
};
|
|
744
|
+
// populates the dropdown according to the first interval received
|
|
745
|
+
TimePickerComponent.prototype.populateDropdown = function () {
|
|
746
|
+
this.timeIntervals = [];
|
|
747
|
+
// if picker is used as an individual component
|
|
748
|
+
if (!this.firstInterval) {
|
|
749
|
+
// firstInterval is initialised according to the current time
|
|
750
|
+
// if the date is same as the current date
|
|
751
|
+
if (moment__namespace(this.dateAsEpoch).format("DD-MM-YYYY") === moment__namespace().format("DD-MM-YYYY") && !this.minTime) {
|
|
752
|
+
var offset = this.interval - (moment__namespace().minutes() % this.interval);
|
|
753
|
+
this.firstInterval = moment__namespace().add(offset, "m").valueOf();
|
|
754
|
+
}
|
|
755
|
+
// if minimum time to show is provided
|
|
756
|
+
else if (this.minTime) {
|
|
757
|
+
var offset = this.interval - (moment__namespace(this.minTime).minutes() % this.interval);
|
|
758
|
+
this.firstInterval = moment__namespace(this.minTime).add(offset, "m").valueOf();
|
|
759
|
+
}
|
|
760
|
+
// else the firstInterval is initialised as start of day
|
|
761
|
+
else {
|
|
762
|
+
this.firstInterval = moment__namespace().startOf("d").valueOf();
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
if (this.givenTime && this.givenTimeFlag) {
|
|
766
|
+
this.firstInterval = moment__namespace(this.givenTime).startOf('d').valueOf();
|
|
767
|
+
this.givenTimeFlag = false;
|
|
768
|
+
}
|
|
769
|
+
var dateAsString = moment__namespace(this.dateAsEpoch).format('DD-MM-YYYY');
|
|
770
|
+
var intervalAsString = moment__namespace(this.firstInterval).format(this.timeFormat);
|
|
771
|
+
var start = moment__namespace(dateAsString + " " + intervalAsString, "DD-MM-YYYY " + this.timeFormat);
|
|
772
|
+
var end = moment__namespace("" + dateAsString, 'DD-MM-YYYY').endOf('d');
|
|
773
|
+
while (start.valueOf() < end.valueOf()) {
|
|
774
|
+
this.timeIntervals.push(start.format(this.timeFormat));
|
|
775
|
+
start.add(this.interval, "m");
|
|
776
|
+
}
|
|
777
|
+
// if the start time is equal to the interval just before midnight
|
|
778
|
+
// and the start date = end date
|
|
779
|
+
// push 11:59pm only
|
|
780
|
+
if (this.timeIntervals.length === 0) {
|
|
781
|
+
this.chosenTime = moment__namespace().endOf("d").format(this.timeFormat);
|
|
782
|
+
this.timeIntervals.push(moment__namespace().endOf("d").format(this.timeFormat));
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
TimePickerComponent.prototype.ngOnDestroy = function () {
|
|
786
|
+
if (this.tooltipDirective)
|
|
787
|
+
this.tooltipDirective.hideToolTip();
|
|
788
|
+
};
|
|
789
|
+
return TimePickerComponent;
|
|
790
|
+
}());
|
|
791
|
+
TimePickerComponent.decorators = [
|
|
792
|
+
{ type: core.Component, args: [{
|
|
793
|
+
selector: "mis-timepicker",
|
|
794
|
+
template: "<div class=\"timepicker-container\" [ngStyle]=\"{ height: height }\">\n <input\n type=\"text\"\n [(ngModel)]=\"chosenTime\"\n (ngModelChange)=\"onTimeChange(chosenTime)\"\n [ngClass]=\"{ invalid: isInvalid || !rangeValidity }\"\n [ngStyle]=\"{ width: inputWidth }\"\n (click)=\"openDropdown()\"\n misToolTip\n [showToolTip]=\"showTooltip && (isInvalid || !rangeValidity) && dispayToolTip\"\n [text]=\"'Invalid Time'\"\n [position]=\"'top'\"\n [showOnHover]=\"false\"\n #input\n cdkOverlayOrigin\n class=\"h7\"\n />\n\n <ng-template #dropdownContainer libDropdownScroll libTimepicker [originEl]=\"input\" [openStatus]=\"openStatus\" (statusEmitter)=\"closeDropdown()\">\n <div *ngIf=\"openStatus\" class=\"timepicker-dropdown\" [ngStyle]=\"{ width: dropdownWidth || inputWidth }\">\n <ul #dropdown>\n <li #timeInterval (click)=\"onTimeSelect(interval)\" *ngFor=\"let interval of timeIntervals; index as i\" [ngClass]=\"{ highlight: i === isHighlighted }\">\n {{ interval }}\n <div class=\"ic-ui-check-24 selected-icon\" *ngIf=\"interval === chosenTime\"></div>\n </li>\n </ul>\n </div>\n </ng-template>\n</div>\n",
|
|
795
|
+
styles: [".h1{font-size:40px;line-height:48px}.h1,.h2{font-weight:400;letter-spacing:0}.h2{font-size:32px;line-height:40px}.h3{font-size:28px;line-height:36px}.h3,.h4{font-weight:400;letter-spacing:0}.h4{font-size:24px;line-height:32px}.h5-b{font-weight:700;letter-spacing:.25px}.h5,.h5-b{font-size:20px;line-height:28px}.h5{font-weight:400;letter-spacing:.15px}.h6-b{font-weight:700}.h6,.h6-b{font-size:16px;letter-spacing:0;line-height:24px}.h6,.p{font-weight:400}.p{font-size:16px;letter-spacing:0;line-height:180%}.h7-b{font-weight:700;letter-spacing:.25px}.h7,.h7-b{font-size:14px;line-height:20px}.h7{font-weight:400;letter-spacing:.2px}.h8-b{font-weight:700;letter-spacing:.25px}.h8,.h8-b{font-size:12px;line-height:18px}.h8{letter-spacing:.2px}.h8,.h9{font-weight:400}.h9{font-size:10px;letter-spacing:0;line-height:15px}.btn-lg-b{font-weight:700;letter-spacing:.5px}.btn-lg,.btn-lg-b{font-size:16px;line-height:24px}.btn-lg{font-weight:400;letter-spacing:.2px}.btn-sm{font-size:14px;font-weight:400;letter-spacing:.25px;line-height:20px}.btn-link{font-size:16px;line-height:24px}.btn-link,.display-1{font-weight:400;letter-spacing:0}.display-1{font-size:48px;line-height:56px}.display-2{font-size:14px;font-weight:400;letter-spacing:.5px;line-height:20px}*{box-sizing:border-box;font-family:Lato}.timepicker-container{display:inline-block;position:relative}input{text-align:center;border:none;border-bottom:1px solid #e0e0e0;outline:none;height:100%;width:100px;padding:4px 16px}input:hover{background:#f5f7fc}input:active,input:focus{background:#e6ebf7;border-bottom:1px solid #0937b2}.timepicker-dropdown{position:absolute;top:calc(100% + 4px);left:0;max-height:200px;overflow-y:auto;border:1px solid #e0e0e0;box-shadow:0 12px 24px rgba(0,0,0,.12),0 4px 8px rgba(0,0,0,.12);border-radius:4px;padding:8px;background:#fff}.timepicker-dropdown::-webkit-scrollbar{display:none}.timepicker-dropdown ul{margin:0;padding:0}.timepicker-dropdown li{text-align:start;list-style:none;padding:6px 12px;cursor:pointer;font-size:14px;color:#181f33;display:flex;justify-content:space-between;align-items:center}.timepicker-dropdown li:hover{background:#f5f7fc;border-radius:6px}.timepicker-dropdown li .selected-icon{font-weight:900}.highlight{background-color:#f5f7fc;border-radius:6px}.invalid{background:#fae1ea!important;border-bottom:1px solid #b00020!important}"]
|
|
796
|
+
},] }
|
|
797
|
+
];
|
|
798
|
+
TimePickerComponent.ctorParameters = function () { return []; };
|
|
799
|
+
TimePickerComponent.propDecorators = {
|
|
800
|
+
clockFormat: [{ type: core.Input }],
|
|
801
|
+
timezone: [{ type: core.Input }],
|
|
802
|
+
height: [{ type: core.Input }],
|
|
803
|
+
inputWidth: [{ type: core.Input }],
|
|
804
|
+
dropdownWidth: [{ type: core.Input }],
|
|
805
|
+
interval: [{ type: core.Input }],
|
|
806
|
+
dateAsEpoch: [{ type: core.Input }],
|
|
807
|
+
firstInterval: [{ type: core.Input }],
|
|
808
|
+
rangeValidity: [{ type: core.Input }],
|
|
809
|
+
showTooltip: [{ type: core.Input }],
|
|
810
|
+
givenTime: [{ type: core.Input }],
|
|
811
|
+
minTime: [{ type: core.Input }],
|
|
812
|
+
triggerChange: [{ type: core.Input }],
|
|
813
|
+
timeEmitter: [{ type: core.Output }],
|
|
814
|
+
input: [{ type: core.ViewChild, args: ["input", { static: true },] }],
|
|
815
|
+
timepickerDirective: [{ type: core.ViewChild, args: [TimepickerDirective,] }],
|
|
816
|
+
tooltipDirective: [{ type: core.ViewChild, args: [tooltip.ToolTipDirective,] }],
|
|
817
|
+
timeIntervalRefs: [{ type: core.ViewChildren, args: ["timeInterval",] }]
|
|
818
|
+
};
|
|
660
819
|
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
820
|
+
var TimePickerModule = /** @class */ (function () {
|
|
821
|
+
function TimePickerModule() {
|
|
822
|
+
}
|
|
823
|
+
TimePickerModule.forRoot = function () {
|
|
824
|
+
return { ngModule: TimePickerModule, providers: [] };
|
|
825
|
+
};
|
|
826
|
+
return TimePickerModule;
|
|
827
|
+
}());
|
|
828
|
+
TimePickerModule.decorators = [
|
|
829
|
+
{ type: core.NgModule, args: [{
|
|
830
|
+
declarations: [TimePickerComponent, TimepickerDirective],
|
|
831
|
+
imports: [common.CommonModule, forms.FormsModule, tooltip.ToolTipModule, overlay.OverlayModule],
|
|
832
|
+
exports: [TimePickerComponent]
|
|
833
|
+
},] }
|
|
834
|
+
];
|
|
676
835
|
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
836
|
+
/**
|
|
837
|
+
* Generated bundle index. Do not edit.
|
|
838
|
+
*/
|
|
680
839
|
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
840
|
+
exports.TimePickerComponent = TimePickerComponent;
|
|
841
|
+
exports.TimePickerModule = TimePickerModule;
|
|
842
|
+
exports.ɵa = TimepickerDirective;
|
|
684
843
|
|
|
685
|
-
|
|
844
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
686
845
|
|
|
687
846
|
})));
|
|
688
847
|
//# sourceMappingURL=mis-crystal-design-system-timepicker.umd.js.map
|