@dodlhuat/basix 1.0.0 → 1.1.1
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/README.md +1 -1
- package/css/accordion.scss +31 -22
- package/css/alert.scss +79 -27
- package/css/button.scss +151 -102
- package/css/card.scss +11 -12
- package/css/carousel.scss +123 -87
- package/css/chart.scss +9 -11
- package/css/chat-bubbles.scss +2 -2
- package/css/checkbox.scss +72 -55
- package/css/chips.scss +52 -52
- package/css/code-viewer.scss +73 -98
- package/css/datepicker.scss +20 -0
- package/css/dropdown.scss +151 -137
- package/css/editor.scss +9 -6
- package/css/file-uploader.scss +187 -195
- package/css/flyout-menu.scss +20 -13
- package/css/form.scss +168 -115
- package/css/gallery.scss +62 -63
- package/css/grid.scss +0 -1
- package/css/modal.scss +117 -72
- package/css/placeholder.scss +17 -12
- package/css/properties.scss +6 -0
- package/css/push-menu.scss +70 -23
- package/css/radiobutton.scss +86 -64
- package/css/range-slider.scss +136 -0
- package/css/scrollbar.scss +69 -69
- package/css/spinner.scss +41 -66
- package/css/style.css +4351 -3735
- package/css/style.css.map +1 -1
- package/css/style.scss +2 -1
- package/css/switch.scss +43 -42
- package/css/table.scss +61 -40
- package/css/tabs.scss +12 -7
- package/css/timeline.scss +72 -69
- package/css/timepicker.scss +151 -72
- package/css/toast.scss +49 -48
- package/css/tooltip.scss +112 -122
- package/css/tree.scss +135 -192
- package/css/typography.scss +70 -9
- package/css/virtual-dropdown.scss +201 -142
- package/js/carousel.js +45 -18
- package/js/carousel.ts +217 -173
- package/js/datepicker.js +505 -497
- package/js/datepicker.ts +9 -0
- package/js/editor.js +398 -415
- package/js/file-uploader.js +142 -128
- package/js/file-uploader.ts +364 -350
- package/js/gallery.js +22 -15
- package/js/gallery.ts +17 -12
- package/js/index.js +718 -720
- package/js/index.ts +7 -8
- package/js/push-menu.js +113 -101
- package/js/push-menu.ts +17 -2
- package/js/range-slider.js +26 -0
- package/js/range-slider.ts +33 -0
- package/js/timepicker.js +144 -98
- package/js/timepicker.ts +194 -131
- package/js/tree.js +56 -28
- package/js/tree.ts +239 -218
- package/package.json +3 -2
- package/css/accordion.css +0 -109
- package/css/accordion.css.map +0 -1
- package/css/alert.css +0 -57
- package/css/alert.css.map +0 -1
- package/css/button.css +0 -69
- package/css/button.css.map +0 -1
- package/css/card.css +0 -144
- package/css/card.css.map +0 -1
- package/css/carousel.css +0 -118
- package/css/carousel.css.map +0 -1
- package/css/chart.css +0 -159
- package/css/chart.css.map +0 -1
- package/css/chat-bubbles.css +0 -97
- package/css/chat-bubbles.css.map +0 -1
- package/css/checkbox.css +0 -77
- package/css/checkbox.css.map +0 -1
- package/css/chips.css +0 -72
- package/css/chips.css.map +0 -1
- package/css/code-viewer.css +0 -97
- package/css/code-viewer.css.map +0 -1
- package/css/colors.css +0 -63
- package/css/colors.css.map +0 -1
- package/css/datepicker.css +0 -264
- package/css/datepicker.css.map +0 -1
- package/css/defaults.css +0 -118
- package/css/defaults.css.map +0 -1
- package/css/dropdown.css +0 -146
- package/css/dropdown.css.map +0 -1
- package/css/editor.css +0 -413
- package/css/file-uploader.css +0 -194
- package/css/file-uploader.css.map +0 -1
- package/css/flyout-menu.css +0 -345
- package/css/flyout-menu.css.map +0 -1
- package/css/form-builder.css +0 -9
- package/css/form-builder.css.map +0 -1
- package/css/form-builder.scss +0 -11
- package/css/form.css +0 -130
- package/css/form.css.map +0 -1
- package/css/gallery.css +0 -91
- package/css/gallery.css.map +0 -1
- package/css/grid.css +0 -44
- package/css/grid.css.map +0 -1
- package/css/icons.css +0 -327
- package/css/icons.css.map +0 -1
- package/css/modal.css +0 -97
- package/css/modal.css.map +0 -1
- package/css/parameters.css +0 -1
- package/css/parameters.css.map +0 -1
- package/css/placeholder.css +0 -50
- package/css/placeholder.css.map +0 -1
- package/css/progress.css +0 -51
- package/css/progress.css.map +0 -1
- package/css/properties.css +0 -31
- package/css/properties.css.map +0 -1
- package/css/push-menu.css +0 -145
- package/css/push-menu.css.map +0 -1
- package/css/radiobutton.css +0 -91
- package/css/radiobutton.css.map +0 -1
- package/css/reset.css +0 -46
- package/css/reset.css.map +0 -1
- package/css/scrollbar.css +0 -91
- package/css/scrollbar.css.map +0 -1
- package/css/spinner.css +0 -118
- package/css/spinner.css.map +0 -1
- package/css/switch.css +0 -66
- package/css/switch.css.map +0 -1
- package/css/table.css +0 -201
- package/css/table.css.map +0 -1
- package/css/tabs.css +0 -135
- package/css/tabs.css.map +0 -1
- package/css/timeline.css +0 -69
- package/css/timeline.css.map +0 -1
- package/css/toast.css +0 -98
- package/css/toast.css.map +0 -1
- package/css/tooltip.css +0 -151
- package/css/tooltip.css.map +0 -1
- package/css/tree.css +0 -199
- package/css/tree.css.map +0 -1
- package/css/typography.css +0 -137
- package/css/typography.css.map +0 -1
- package/css/virtual-dropdown.css +0 -149
- package/css/virtual-dropdown.css.map +0 -1
package/js/datepicker.js
CHANGED
|
@@ -1,497 +1,505 @@
|
|
|
1
|
-
class DatePicker {
|
|
2
|
-
constructor(elementOrSelector, options = {}) {
|
|
3
|
-
this.input = typeof elementOrSelector === 'string'
|
|
4
|
-
? document.querySelector(elementOrSelector)
|
|
5
|
-
: elementOrSelector;
|
|
6
|
-
if (!this.input) {
|
|
7
|
-
throw new Error(`DatePicker: Element not found for selector "${elementOrSelector}"`);
|
|
8
|
-
}
|
|
9
|
-
const timePicker = options.timePicker ?? false;
|
|
10
|
-
this.options = {
|
|
11
|
-
mode: 'single',
|
|
12
|
-
startDay: 0,
|
|
13
|
-
timePicker,
|
|
14
|
-
locales: {
|
|
15
|
-
days: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
|
16
|
-
months: [
|
|
17
|
-
'January', 'February', 'March', 'April', 'May', 'June',
|
|
18
|
-
'July', 'August', 'September', 'October', 'November', 'December'
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
format: timePicker
|
|
22
|
-
? (date) => {
|
|
23
|
-
const hours = String(date.getHours()).padStart(2, '0');
|
|
24
|
-
const minutes = String(date.getMinutes()).padStart(2, '0');
|
|
25
|
-
return `${date.toDateString()} ${hours}:${minutes}`;
|
|
26
|
-
}
|
|
27
|
-
: (date) => date.toDateString(),
|
|
28
|
-
onSelect: () => { },
|
|
29
|
-
...options
|
|
30
|
-
};
|
|
31
|
-
this.currentDate = new Date();
|
|
32
|
-
this.selectedDate = null;
|
|
33
|
-
this.rangeStart = null;
|
|
34
|
-
this.rangeEnd = null;
|
|
35
|
-
this.viewYear = this.currentDate.getFullYear();
|
|
36
|
-
this.viewMonth = this.currentDate.getMonth();
|
|
37
|
-
this.viewMode = 'days';
|
|
38
|
-
this.yearRangeStart = this.viewYear - (this.viewYear % 12);
|
|
39
|
-
this.selectedHours = this.currentDate.getHours();
|
|
40
|
-
this.selectedMinutes = this.currentDate.getMinutes();
|
|
41
|
-
this.init();
|
|
42
|
-
}
|
|
43
|
-
init() {
|
|
44
|
-
this.createCalendarElement();
|
|
45
|
-
this.attachEvents();
|
|
46
|
-
this.render();
|
|
47
|
-
}
|
|
48
|
-
createCalendarElement() {
|
|
49
|
-
this.calendar = document.createElement('div');
|
|
50
|
-
this.calendar.className = 'datepicker';
|
|
51
|
-
document.body.appendChild(this.calendar);
|
|
52
|
-
this.backdrop = document.createElement('div');
|
|
53
|
-
this.backdrop.className = 'datepicker-backdrop';
|
|
54
|
-
document.body.appendChild(this.backdrop);
|
|
55
|
-
this.backdrop.addEventListener('click', () => this.hide());
|
|
56
|
-
}
|
|
57
|
-
attachEvents() {
|
|
58
|
-
const toggle = (e) => {
|
|
59
|
-
e.preventDefault();
|
|
60
|
-
e.stopPropagation();
|
|
61
|
-
if (this.calendar.classList.contains('visible')) {
|
|
62
|
-
this.hide();
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
this.show();
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
this.input?.addEventListener('click', toggle);
|
|
69
|
-
this.backdrop.addEventListener('click', (e) => {
|
|
70
|
-
e.preventDefault();
|
|
71
|
-
e.stopPropagation();
|
|
72
|
-
this.hide();
|
|
73
|
-
});
|
|
74
|
-
this.handleDocumentClick = (e) => {
|
|
75
|
-
if (this.calendar.classList.contains('mobile'))
|
|
76
|
-
return;
|
|
77
|
-
const target = e.target;
|
|
78
|
-
if (!this.calendar.contains(target) && target !== this.input) {
|
|
79
|
-
this.hide();
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
show() {
|
|
84
|
-
const isMobile = window.innerWidth <= 640;
|
|
85
|
-
if (isMobile) {
|
|
86
|
-
this.calendar.classList.add('mobile');
|
|
87
|
-
this.backdrop.classList.add('visible');
|
|
88
|
-
document.body.style.overflow = 'hidden';
|
|
89
|
-
this.calendar.style.top = '';
|
|
90
|
-
this.calendar.style.left = '';
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
this.calendar.classList.remove('mobile');
|
|
94
|
-
this.backdrop.classList.remove('visible');
|
|
95
|
-
document.body.style.overflow = '';
|
|
96
|
-
if (this.input) {
|
|
97
|
-
const rect = this.input.getBoundingClientRect();
|
|
98
|
-
const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
|
|
99
|
-
const scrollLeft = window.pageXOffset || document.documentElement.scrollLeft;
|
|
100
|
-
this.calendar.style.top = `${rect.bottom + scrollTop + 5}px`;
|
|
101
|
-
this.calendar.style.left = `${rect.left + scrollLeft}px`;
|
|
102
|
-
if (rect.left + 320 > window.innerWidth) {
|
|
103
|
-
this.calendar.style.left = `${rect.right + scrollLeft - 320}px`;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
setTimeout(() => {
|
|
107
|
-
document.addEventListener('click', this.handleDocumentClick);
|
|
108
|
-
}, 0);
|
|
109
|
-
}
|
|
110
|
-
this.calendar.classList.add('visible');
|
|
111
|
-
}
|
|
112
|
-
hide() {
|
|
113
|
-
this.calendar.classList.remove('visible');
|
|
114
|
-
this.backdrop.classList.remove('visible');
|
|
115
|
-
document.body.style.overflow = '';
|
|
116
|
-
document.removeEventListener('click', this.handleDocumentClick);
|
|
117
|
-
}
|
|
118
|
-
render() {
|
|
119
|
-
this.calendar.innerHTML = '';
|
|
120
|
-
const header = this.createHeader();
|
|
121
|
-
let content;
|
|
122
|
-
if (this.viewMode === 'days') {
|
|
123
|
-
content = this.createGrid();
|
|
124
|
-
}
|
|
125
|
-
else if (this.viewMode === 'months') {
|
|
126
|
-
content = this.createMonthGrid();
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
content = this.createYearGrid();
|
|
130
|
-
}
|
|
131
|
-
this.calendar.appendChild(header);
|
|
132
|
-
this.calendar.appendChild(content);
|
|
133
|
-
if (this.options.timePicker && this.viewMode === 'days') {
|
|
134
|
-
const timeSection = this.createTimePicker();
|
|
135
|
-
this.calendar.appendChild(timeSection);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
const
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
e.stopPropagation();
|
|
164
|
-
this.viewMode = '
|
|
165
|
-
this.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
title
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
title
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
this.
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
this.
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
el.
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
el.
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
const
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
day
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
const
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
if (
|
|
307
|
-
day.classList.add('
|
|
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
|
-
const
|
|
346
|
-
this.
|
|
347
|
-
this.applyTimeToSelection();
|
|
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
|
-
display.
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
if (
|
|
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
|
-
this.
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
this.
|
|
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
|
-
this.
|
|
479
|
-
}
|
|
480
|
-
else {
|
|
481
|
-
this.
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}
|
|
497
|
-
|
|
1
|
+
class DatePicker {
|
|
2
|
+
constructor(elementOrSelector, options = {}) {
|
|
3
|
+
this.input = typeof elementOrSelector === 'string'
|
|
4
|
+
? document.querySelector(elementOrSelector)
|
|
5
|
+
: elementOrSelector;
|
|
6
|
+
if (!this.input) {
|
|
7
|
+
throw new Error(`DatePicker: Element not found for selector "${elementOrSelector}"`);
|
|
8
|
+
}
|
|
9
|
+
const timePicker = options.timePicker ?? false;
|
|
10
|
+
this.options = {
|
|
11
|
+
mode: 'single',
|
|
12
|
+
startDay: 0,
|
|
13
|
+
timePicker,
|
|
14
|
+
locales: {
|
|
15
|
+
days: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
|
16
|
+
months: [
|
|
17
|
+
'January', 'February', 'March', 'April', 'May', 'June',
|
|
18
|
+
'July', 'August', 'September', 'October', 'November', 'December'
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
format: timePicker
|
|
22
|
+
? (date) => {
|
|
23
|
+
const hours = String(date.getHours()).padStart(2, '0');
|
|
24
|
+
const minutes = String(date.getMinutes()).padStart(2, '0');
|
|
25
|
+
return `${date.toDateString()} ${hours}:${minutes}`;
|
|
26
|
+
}
|
|
27
|
+
: (date) => date.toDateString(),
|
|
28
|
+
onSelect: () => { },
|
|
29
|
+
...options
|
|
30
|
+
};
|
|
31
|
+
this.currentDate = new Date();
|
|
32
|
+
this.selectedDate = null;
|
|
33
|
+
this.rangeStart = null;
|
|
34
|
+
this.rangeEnd = null;
|
|
35
|
+
this.viewYear = this.currentDate.getFullYear();
|
|
36
|
+
this.viewMonth = this.currentDate.getMonth();
|
|
37
|
+
this.viewMode = 'days';
|
|
38
|
+
this.yearRangeStart = this.viewYear - (this.viewYear % 12);
|
|
39
|
+
this.selectedHours = this.currentDate.getHours();
|
|
40
|
+
this.selectedMinutes = this.currentDate.getMinutes();
|
|
41
|
+
this.init();
|
|
42
|
+
}
|
|
43
|
+
init() {
|
|
44
|
+
this.createCalendarElement();
|
|
45
|
+
this.attachEvents();
|
|
46
|
+
this.render();
|
|
47
|
+
}
|
|
48
|
+
createCalendarElement() {
|
|
49
|
+
this.calendar = document.createElement('div');
|
|
50
|
+
this.calendar.className = 'datepicker';
|
|
51
|
+
document.body.appendChild(this.calendar);
|
|
52
|
+
this.backdrop = document.createElement('div');
|
|
53
|
+
this.backdrop.className = 'datepicker-backdrop';
|
|
54
|
+
document.body.appendChild(this.backdrop);
|
|
55
|
+
this.backdrop.addEventListener('click', () => this.hide());
|
|
56
|
+
}
|
|
57
|
+
attachEvents() {
|
|
58
|
+
const toggle = (e) => {
|
|
59
|
+
e.preventDefault();
|
|
60
|
+
e.stopPropagation();
|
|
61
|
+
if (this.calendar.classList.contains('visible')) {
|
|
62
|
+
this.hide();
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
this.show();
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
this.input?.addEventListener('click', toggle);
|
|
69
|
+
this.backdrop.addEventListener('click', (e) => {
|
|
70
|
+
e.preventDefault();
|
|
71
|
+
e.stopPropagation();
|
|
72
|
+
this.hide();
|
|
73
|
+
});
|
|
74
|
+
this.handleDocumentClick = (e) => {
|
|
75
|
+
if (this.calendar.classList.contains('mobile'))
|
|
76
|
+
return;
|
|
77
|
+
const target = e.target;
|
|
78
|
+
if (!this.calendar.contains(target) && target !== this.input) {
|
|
79
|
+
this.hide();
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
show() {
|
|
84
|
+
const isMobile = window.innerWidth <= 640;
|
|
85
|
+
if (isMobile) {
|
|
86
|
+
this.calendar.classList.add('mobile');
|
|
87
|
+
this.backdrop.classList.add('visible');
|
|
88
|
+
document.body.style.overflow = 'hidden';
|
|
89
|
+
this.calendar.style.top = '';
|
|
90
|
+
this.calendar.style.left = '';
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
this.calendar.classList.remove('mobile');
|
|
94
|
+
this.backdrop.classList.remove('visible');
|
|
95
|
+
document.body.style.overflow = '';
|
|
96
|
+
if (this.input) {
|
|
97
|
+
const rect = this.input.getBoundingClientRect();
|
|
98
|
+
const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
|
|
99
|
+
const scrollLeft = window.pageXOffset || document.documentElement.scrollLeft;
|
|
100
|
+
this.calendar.style.top = `${rect.bottom + scrollTop + 5}px`;
|
|
101
|
+
this.calendar.style.left = `${rect.left + scrollLeft}px`;
|
|
102
|
+
if (rect.left + 320 > window.innerWidth) {
|
|
103
|
+
this.calendar.style.left = `${rect.right + scrollLeft - 320}px`;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
setTimeout(() => {
|
|
107
|
+
document.addEventListener('click', this.handleDocumentClick);
|
|
108
|
+
}, 0);
|
|
109
|
+
}
|
|
110
|
+
this.calendar.classList.add('visible');
|
|
111
|
+
}
|
|
112
|
+
hide() {
|
|
113
|
+
this.calendar.classList.remove('visible');
|
|
114
|
+
this.backdrop.classList.remove('visible');
|
|
115
|
+
document.body.style.overflow = '';
|
|
116
|
+
document.removeEventListener('click', this.handleDocumentClick);
|
|
117
|
+
}
|
|
118
|
+
render() {
|
|
119
|
+
this.calendar.innerHTML = '';
|
|
120
|
+
const header = this.createHeader();
|
|
121
|
+
let content;
|
|
122
|
+
if (this.viewMode === 'days') {
|
|
123
|
+
content = this.createGrid();
|
|
124
|
+
}
|
|
125
|
+
else if (this.viewMode === 'months') {
|
|
126
|
+
content = this.createMonthGrid();
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
content = this.createYearGrid();
|
|
130
|
+
}
|
|
131
|
+
this.calendar.appendChild(header);
|
|
132
|
+
this.calendar.appendChild(content);
|
|
133
|
+
if (this.options.timePicker && this.viewMode === 'days') {
|
|
134
|
+
const timeSection = this.createTimePicker();
|
|
135
|
+
this.calendar.appendChild(timeSection);
|
|
136
|
+
const setBtn = document.createElement('button');
|
|
137
|
+
setBtn.className = 'datepicker-set-btn';
|
|
138
|
+
setBtn.textContent = 'Set';
|
|
139
|
+
setBtn.onclick = (e) => {
|
|
140
|
+
e.stopPropagation();
|
|
141
|
+
this.hide();
|
|
142
|
+
};
|
|
143
|
+
this.calendar.appendChild(setBtn);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
createHeader() {
|
|
147
|
+
const header = document.createElement('div');
|
|
148
|
+
header.className = 'datepicker-header';
|
|
149
|
+
const prevBtn = document.createElement('button');
|
|
150
|
+
prevBtn.className = 'datepicker-nav';
|
|
151
|
+
prevBtn.innerHTML = '<';
|
|
152
|
+
prevBtn.onclick = (e) => {
|
|
153
|
+
e.stopPropagation();
|
|
154
|
+
this.navigate(-1);
|
|
155
|
+
};
|
|
156
|
+
const title = document.createElement('div');
|
|
157
|
+
title.className = 'datepicker-title';
|
|
158
|
+
if (this.viewMode === 'days') {
|
|
159
|
+
const monthBtn = document.createElement('button');
|
|
160
|
+
monthBtn.className = 'datepicker-title-btn';
|
|
161
|
+
monthBtn.textContent = this.options?.locales?.months[this.viewMonth] ?? '';
|
|
162
|
+
monthBtn.onclick = (e) => {
|
|
163
|
+
e.stopPropagation();
|
|
164
|
+
this.viewMode = 'months';
|
|
165
|
+
this.render();
|
|
166
|
+
};
|
|
167
|
+
const yearBtn = document.createElement('button');
|
|
168
|
+
yearBtn.className = 'datepicker-title-btn';
|
|
169
|
+
yearBtn.textContent = String(this.viewYear);
|
|
170
|
+
yearBtn.onclick = (e) => {
|
|
171
|
+
e.stopPropagation();
|
|
172
|
+
this.viewMode = 'years';
|
|
173
|
+
this.yearRangeStart = this.viewYear - (this.viewYear % 12);
|
|
174
|
+
this.render();
|
|
175
|
+
};
|
|
176
|
+
title.appendChild(monthBtn);
|
|
177
|
+
title.appendChild(yearBtn);
|
|
178
|
+
}
|
|
179
|
+
else if (this.viewMode === 'months') {
|
|
180
|
+
const yearBtn = document.createElement('button');
|
|
181
|
+
yearBtn.className = 'datepicker-title-btn';
|
|
182
|
+
yearBtn.textContent = String(this.viewYear);
|
|
183
|
+
yearBtn.onclick = (e) => {
|
|
184
|
+
e.stopPropagation();
|
|
185
|
+
this.viewMode = 'years';
|
|
186
|
+
this.yearRangeStart = this.viewYear - (this.viewYear % 12);
|
|
187
|
+
this.render();
|
|
188
|
+
};
|
|
189
|
+
title.appendChild(yearBtn);
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
const rangeText = document.createElement('span');
|
|
193
|
+
rangeText.style.fontWeight = '600';
|
|
194
|
+
rangeText.textContent = `${this.yearRangeStart} - ${this.yearRangeStart + 11}`;
|
|
195
|
+
title.appendChild(rangeText);
|
|
196
|
+
}
|
|
197
|
+
const nextBtn = document.createElement('button');
|
|
198
|
+
nextBtn.className = 'datepicker-nav';
|
|
199
|
+
nextBtn.innerHTML = '>';
|
|
200
|
+
nextBtn.onclick = (e) => {
|
|
201
|
+
e.stopPropagation();
|
|
202
|
+
this.navigate(1);
|
|
203
|
+
};
|
|
204
|
+
header.appendChild(prevBtn);
|
|
205
|
+
header.appendChild(title);
|
|
206
|
+
header.appendChild(nextBtn);
|
|
207
|
+
return header;
|
|
208
|
+
}
|
|
209
|
+
navigate(delta) {
|
|
210
|
+
if (this.viewMode === 'days') {
|
|
211
|
+
this.changeMonth(delta);
|
|
212
|
+
}
|
|
213
|
+
else if (this.viewMode === 'months') {
|
|
214
|
+
this.viewYear += delta;
|
|
215
|
+
this.render();
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
this.yearRangeStart += delta * 12;
|
|
219
|
+
this.render();
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
createMonthGrid() {
|
|
223
|
+
const grid = document.createElement('div');
|
|
224
|
+
grid.className = 'datepicker-grid-months';
|
|
225
|
+
this.options?.locales?.months.forEach((month, index) => {
|
|
226
|
+
const el = document.createElement('div');
|
|
227
|
+
el.className = 'datepicker-month';
|
|
228
|
+
el.textContent = month.substring(0, 3);
|
|
229
|
+
if (index === this.viewMonth) {
|
|
230
|
+
el.classList.add('selected');
|
|
231
|
+
}
|
|
232
|
+
if (index === new Date().getMonth() && this.viewYear === new Date().getFullYear()) {
|
|
233
|
+
el.classList.add('current');
|
|
234
|
+
}
|
|
235
|
+
el.onclick = (e) => {
|
|
236
|
+
e.stopPropagation();
|
|
237
|
+
this.viewMonth = index;
|
|
238
|
+
this.viewMode = 'days';
|
|
239
|
+
this.render();
|
|
240
|
+
};
|
|
241
|
+
grid.appendChild(el);
|
|
242
|
+
});
|
|
243
|
+
return grid;
|
|
244
|
+
}
|
|
245
|
+
createYearGrid() {
|
|
246
|
+
const grid = document.createElement('div');
|
|
247
|
+
grid.className = 'datepicker-grid-years';
|
|
248
|
+
for (let i = 0; i < 12; i++) {
|
|
249
|
+
const year = this.yearRangeStart + i;
|
|
250
|
+
const el = document.createElement('div');
|
|
251
|
+
el.className = 'datepicker-year';
|
|
252
|
+
el.textContent = String(year);
|
|
253
|
+
if (year === this.viewYear) {
|
|
254
|
+
el.classList.add('selected');
|
|
255
|
+
}
|
|
256
|
+
if (year === new Date().getFullYear()) {
|
|
257
|
+
el.classList.add('current');
|
|
258
|
+
}
|
|
259
|
+
el.onclick = (e) => {
|
|
260
|
+
e.stopPropagation();
|
|
261
|
+
this.viewYear = year;
|
|
262
|
+
this.viewMode = 'months';
|
|
263
|
+
this.render();
|
|
264
|
+
};
|
|
265
|
+
grid.appendChild(el);
|
|
266
|
+
}
|
|
267
|
+
return grid;
|
|
268
|
+
}
|
|
269
|
+
createGrid() {
|
|
270
|
+
const grid = document.createElement('div');
|
|
271
|
+
grid.className = 'datepicker-grid';
|
|
272
|
+
const days = this.options?.locales?.days ?? ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];
|
|
273
|
+
const startDay = this.options.startDay ?? 0;
|
|
274
|
+
const adjustedDays = [...days.slice(startDay), ...days.slice(0, startDay)];
|
|
275
|
+
adjustedDays.forEach(day => {
|
|
276
|
+
const el = document.createElement('div');
|
|
277
|
+
el.className = 'datepicker-day-header';
|
|
278
|
+
el.textContent = day;
|
|
279
|
+
grid.appendChild(el);
|
|
280
|
+
});
|
|
281
|
+
const firstDayOfMonth = new Date(this.viewYear, this.viewMonth, 1).getDay();
|
|
282
|
+
const daysInMonth = new Date(this.viewYear, this.viewMonth + 1, 0).getDate();
|
|
283
|
+
const offset = (firstDayOfMonth - startDay + 7) % 7;
|
|
284
|
+
const prevMonthDays = new Date(this.viewYear, this.viewMonth, 0).getDate();
|
|
285
|
+
for (let i = offset - 1; i >= 0; i--) {
|
|
286
|
+
const day = document.createElement('div');
|
|
287
|
+
day.className = 'datepicker-day other-month';
|
|
288
|
+
day.textContent = String(prevMonthDays - i);
|
|
289
|
+
grid.appendChild(day);
|
|
290
|
+
}
|
|
291
|
+
for (let i = 1; i <= daysInMonth; i++) {
|
|
292
|
+
const day = document.createElement('div');
|
|
293
|
+
day.className = 'datepicker-day';
|
|
294
|
+
day.textContent = String(i);
|
|
295
|
+
const date = new Date(this.viewYear, this.viewMonth, i);
|
|
296
|
+
date.setHours(0, 0, 0, 0);
|
|
297
|
+
const today = new Date();
|
|
298
|
+
today.setHours(0, 0, 0, 0);
|
|
299
|
+
if (date.getTime() === today.getTime()) {
|
|
300
|
+
day.classList.add('today');
|
|
301
|
+
}
|
|
302
|
+
if (this.options.mode === 'single') {
|
|
303
|
+
const selectedDay = this.selectedDate ? new Date(this.selectedDate) : null;
|
|
304
|
+
if (selectedDay)
|
|
305
|
+
selectedDay.setHours(0, 0, 0, 0);
|
|
306
|
+
if (selectedDay && date.getTime() === selectedDay.getTime()) {
|
|
307
|
+
day.classList.add('selected');
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
const t = date.getTime();
|
|
312
|
+
const start = this.rangeStart ? this.rangeStart.getTime() : null;
|
|
313
|
+
const end = this.rangeEnd ? this.rangeEnd.getTime() : null;
|
|
314
|
+
if (start && t === start) {
|
|
315
|
+
day.classList.add('range-start');
|
|
316
|
+
}
|
|
317
|
+
if (end && t === end) {
|
|
318
|
+
day.classList.add('range-end');
|
|
319
|
+
}
|
|
320
|
+
if (start && end && t > start && t < end) {
|
|
321
|
+
day.classList.add('in-range');
|
|
322
|
+
}
|
|
323
|
+
if (start && !end && t === start) {
|
|
324
|
+
day.classList.add('selected');
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
day.onclick = (e) => {
|
|
328
|
+
e.stopPropagation();
|
|
329
|
+
this.handleDateClick(date);
|
|
330
|
+
};
|
|
331
|
+
grid.appendChild(day);
|
|
332
|
+
}
|
|
333
|
+
return grid;
|
|
334
|
+
}
|
|
335
|
+
createTimePicker() {
|
|
336
|
+
const wrapper = document.createElement('div');
|
|
337
|
+
wrapper.className = 'datepicker-time';
|
|
338
|
+
const label = document.createElement('div');
|
|
339
|
+
label.className = 'datepicker-time-label';
|
|
340
|
+
label.textContent = 'Time';
|
|
341
|
+
wrapper.appendChild(label);
|
|
342
|
+
const controls = document.createElement('div');
|
|
343
|
+
controls.className = 'datepicker-time-controls';
|
|
344
|
+
// Hours spinner
|
|
345
|
+
const hoursSpinner = this.createSpinner(this.selectedHours, 0, 23, (value) => {
|
|
346
|
+
this.selectedHours = value;
|
|
347
|
+
this.applyTimeToSelection();
|
|
348
|
+
});
|
|
349
|
+
const separator = document.createElement('span');
|
|
350
|
+
separator.className = 'datepicker-time-separator';
|
|
351
|
+
separator.textContent = ':';
|
|
352
|
+
// Minutes spinner
|
|
353
|
+
const minutesSpinner = this.createSpinner(this.selectedMinutes, 0, 59, (value) => {
|
|
354
|
+
this.selectedMinutes = value;
|
|
355
|
+
this.applyTimeToSelection();
|
|
356
|
+
});
|
|
357
|
+
controls.appendChild(hoursSpinner);
|
|
358
|
+
controls.appendChild(separator);
|
|
359
|
+
controls.appendChild(minutesSpinner);
|
|
360
|
+
wrapper.appendChild(controls);
|
|
361
|
+
return wrapper;
|
|
362
|
+
}
|
|
363
|
+
createSpinner(value, min, max, onChange) {
|
|
364
|
+
const spinner = document.createElement('div');
|
|
365
|
+
spinner.className = 'datepicker-time-spinner';
|
|
366
|
+
const upBtn = document.createElement('button');
|
|
367
|
+
upBtn.className = 'datepicker-time-btn';
|
|
368
|
+
upBtn.innerHTML = '▲';
|
|
369
|
+
upBtn.onclick = (e) => {
|
|
370
|
+
e.stopPropagation();
|
|
371
|
+
const next = value + 1 > max ? min : value + 1;
|
|
372
|
+
onChange(next);
|
|
373
|
+
this.render();
|
|
374
|
+
};
|
|
375
|
+
const display = document.createElement('input');
|
|
376
|
+
display.className = 'datepicker-time-display';
|
|
377
|
+
display.type = 'text';
|
|
378
|
+
display.inputMode = 'numeric';
|
|
379
|
+
display.value = String(value).padStart(2, '0');
|
|
380
|
+
display.maxLength = 2;
|
|
381
|
+
display.addEventListener('click', (e) => e.stopPropagation());
|
|
382
|
+
display.addEventListener('focus', () => display.select());
|
|
383
|
+
display.addEventListener('change', (e) => {
|
|
384
|
+
e.stopPropagation();
|
|
385
|
+
let parsed = parseInt(display.value, 10);
|
|
386
|
+
if (isNaN(parsed) || parsed < min || parsed > max) {
|
|
387
|
+
display.value = String(value).padStart(2, '0');
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
onChange(parsed);
|
|
391
|
+
this.render();
|
|
392
|
+
});
|
|
393
|
+
display.addEventListener('keydown', (e) => {
|
|
394
|
+
if (e.key === 'ArrowUp') {
|
|
395
|
+
e.preventDefault();
|
|
396
|
+
const next = value + 1 > max ? min : value + 1;
|
|
397
|
+
onChange(next);
|
|
398
|
+
this.render();
|
|
399
|
+
}
|
|
400
|
+
else if (e.key === 'ArrowDown') {
|
|
401
|
+
e.preventDefault();
|
|
402
|
+
const next = value - 1 < min ? max : value - 1;
|
|
403
|
+
onChange(next);
|
|
404
|
+
this.render();
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
const downBtn = document.createElement('button');
|
|
408
|
+
downBtn.className = 'datepicker-time-btn';
|
|
409
|
+
downBtn.innerHTML = '▼';
|
|
410
|
+
downBtn.onclick = (e) => {
|
|
411
|
+
e.stopPropagation();
|
|
412
|
+
const next = value - 1 < min ? max : value - 1;
|
|
413
|
+
onChange(next);
|
|
414
|
+
this.render();
|
|
415
|
+
};
|
|
416
|
+
spinner.appendChild(upBtn);
|
|
417
|
+
spinner.appendChild(display);
|
|
418
|
+
spinner.appendChild(downBtn);
|
|
419
|
+
return spinner;
|
|
420
|
+
}
|
|
421
|
+
applyTimeToSelection() {
|
|
422
|
+
if (this.options.mode === 'single' && this.selectedDate) {
|
|
423
|
+
this.selectedDate.setHours(this.selectedHours, this.selectedMinutes, 0, 0);
|
|
424
|
+
this.updateInput(this.options.format(this.selectedDate));
|
|
425
|
+
this.options.onSelect(this.selectedDate);
|
|
426
|
+
}
|
|
427
|
+
else if (this.options.mode === 'range') {
|
|
428
|
+
if (this.rangeStart) {
|
|
429
|
+
this.rangeStart.setHours(this.selectedHours, this.selectedMinutes, 0, 0);
|
|
430
|
+
}
|
|
431
|
+
if (this.rangeStart && this.rangeEnd) {
|
|
432
|
+
const startDate = this.options.format(this.rangeStart);
|
|
433
|
+
const endDate = this.options.format(this.rangeEnd);
|
|
434
|
+
this.updateInput(`${startDate} - ${endDate}`);
|
|
435
|
+
}
|
|
436
|
+
else if (this.rangeStart) {
|
|
437
|
+
this.updateInput(this.options.format(this.rangeStart) + ' - ...');
|
|
438
|
+
}
|
|
439
|
+
this.options.onSelect({ start: this.rangeStart, end: this.rangeEnd });
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
changeMonth(delta) {
|
|
443
|
+
this.viewMonth += delta;
|
|
444
|
+
if (this.viewMonth > 11) {
|
|
445
|
+
this.viewMonth = 0;
|
|
446
|
+
this.viewYear++;
|
|
447
|
+
}
|
|
448
|
+
else if (this.viewMonth < 0) {
|
|
449
|
+
this.viewMonth = 11;
|
|
450
|
+
this.viewYear--;
|
|
451
|
+
}
|
|
452
|
+
this.render();
|
|
453
|
+
}
|
|
454
|
+
handleDateClick(date) {
|
|
455
|
+
if (this.options.timePicker) {
|
|
456
|
+
date.setHours(this.selectedHours, this.selectedMinutes, 0, 0);
|
|
457
|
+
}
|
|
458
|
+
else {
|
|
459
|
+
date.setHours(0, 0, 0, 0);
|
|
460
|
+
}
|
|
461
|
+
if (this.options.mode === 'single') {
|
|
462
|
+
this.selectedDate = date;
|
|
463
|
+
this.updateInput(this.options.format(this.selectedDate));
|
|
464
|
+
this.options.onSelect(this.selectedDate);
|
|
465
|
+
if (!this.options.timePicker) {
|
|
466
|
+
this.hide();
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
else {
|
|
470
|
+
if (!this.rangeStart || (this.rangeStart && this.rangeEnd)) {
|
|
471
|
+
this.rangeStart = date;
|
|
472
|
+
this.rangeEnd = null;
|
|
473
|
+
this.updateInput(this.options.format(this.rangeStart) + ' - ...');
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
if (date.getTime() < this.rangeStart.getTime()) {
|
|
477
|
+
this.rangeEnd = this.rangeStart;
|
|
478
|
+
this.rangeStart = date;
|
|
479
|
+
}
|
|
480
|
+
else {
|
|
481
|
+
this.rangeEnd = date;
|
|
482
|
+
}
|
|
483
|
+
const startDate = this.options.format(this.rangeStart);
|
|
484
|
+
const endDate = this.options.format(this.rangeEnd);
|
|
485
|
+
if (startDate === endDate) {
|
|
486
|
+
this.updateInput(startDate);
|
|
487
|
+
}
|
|
488
|
+
else {
|
|
489
|
+
this.updateInput(`${startDate} - ${endDate}`);
|
|
490
|
+
}
|
|
491
|
+
if (!this.options.timePicker) {
|
|
492
|
+
this.hide();
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
this.options.onSelect({ start: this.rangeStart, end: this.rangeEnd });
|
|
496
|
+
}
|
|
497
|
+
this.render();
|
|
498
|
+
}
|
|
499
|
+
updateInput(value) {
|
|
500
|
+
if (this.input) {
|
|
501
|
+
this.input.value = value;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
export { DatePicker };
|