@syncfusion/ej2-calendars 30.1.37 → 31.1.17

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.
Files changed (53) hide show
  1. package/.eslintrc.json +263 -0
  2. package/dist/ej2-calendars.min.js +1 -1
  3. package/dist/ej2-calendars.umd.min.js +1 -1
  4. package/dist/global/ej2-calendars.min.js +1 -1
  5. package/dist/global/index.d.ts +1 -1
  6. package/dist/ts/calendar/calendar-model.d.ts +340 -0
  7. package/dist/ts/calendar/calendar.d.ts +733 -0
  8. package/dist/ts/calendar/calendar.ts +3009 -0
  9. package/dist/ts/calendar/index.d.ts +6 -0
  10. package/dist/ts/calendar/index.ts +6 -0
  11. package/dist/ts/calendar/islamic.d.ts +28 -0
  12. package/dist/ts/calendar/islamic.ts +597 -0
  13. package/dist/ts/common/index.d.ts +5 -0
  14. package/dist/ts/common/index.ts +5 -0
  15. package/dist/ts/common/maskplaceholder-model.d.ts +57 -0
  16. package/dist/ts/common/maskplaceholder.d.ts +45 -0
  17. package/dist/ts/common/maskplaceholder.ts +54 -0
  18. package/dist/ts/datepicker/datepicker-model.d.ts +364 -0
  19. package/dist/ts/datepicker/datepicker.d.ts +583 -0
  20. package/dist/ts/datepicker/datepicker.ts +2528 -0
  21. package/dist/ts/datepicker/index.d.ts +5 -0
  22. package/dist/ts/datepicker/index.ts +5 -0
  23. package/dist/ts/daterangepicker/daterangepicker-model.d.ts +496 -0
  24. package/dist/ts/daterangepicker/daterangepicker.d.ts +857 -0
  25. package/dist/ts/daterangepicker/daterangepicker.ts +5096 -0
  26. package/dist/ts/daterangepicker/index.d.ts +5 -0
  27. package/dist/ts/daterangepicker/index.ts +5 -0
  28. package/dist/ts/datetimepicker/datetimepicker-model.d.ts +479 -0
  29. package/dist/ts/datetimepicker/datetimepicker.d.ts +626 -0
  30. package/dist/ts/datetimepicker/datetimepicker.ts +2212 -0
  31. package/dist/ts/datetimepicker/index.d.ts +5 -0
  32. package/dist/ts/datetimepicker/index.ts +5 -0
  33. package/dist/ts/index.d.ts +9 -0
  34. package/dist/ts/index.ts +9 -0
  35. package/dist/ts/maskbase/index.d.ts +5 -0
  36. package/dist/ts/maskbase/index.ts +5 -0
  37. package/dist/ts/maskbase/interface.d.ts +28 -0
  38. package/dist/ts/maskbase/interface.ts +29 -0
  39. package/dist/ts/maskbase/masked-date-time.d.ts +77 -0
  40. package/dist/ts/maskbase/masked-date-time.ts +1013 -0
  41. package/dist/ts/timepicker/index.d.ts +5 -0
  42. package/dist/ts/timepicker/index.ts +5 -0
  43. package/dist/ts/timepicker/timepicker-model.d.ts +393 -0
  44. package/dist/ts/timepicker/timepicker.d.ts +681 -0
  45. package/dist/ts/timepicker/timepicker.ts +2944 -0
  46. package/package.json +59 -16
  47. package/styles/daterangepicker/_fluent2-definition.scss +2 -1
  48. package/styles/daterangepicker/fluent2.css +2 -1
  49. package/styles/datetimepicker/_fluent2-definition.scss +1 -1
  50. package/styles/datetimepicker/fluent2.css +1 -1
  51. package/styles/fluent2-lite.css +3 -2
  52. package/styles/fluent2.css +3 -2
  53. package/tslint.json +111 -0
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Datepicker modules
3
+ */
4
+ export * from './datepicker';
5
+ export * from './datepicker-model';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Datepicker modules
3
+ */
4
+ export * from './datepicker';
5
+ export * from './datepicker-model';
@@ -0,0 +1,496 @@
1
+ import { Property, EventHandler, Internationalization, NotifyPropertyChanges, detach, getUniqueID } from '@syncfusion/ej2-base';import { KeyboardEvents, BaseEventArgs, KeyboardEventArgs, Event, EmitType, Browser, L10n, ChildProperty } from '@syncfusion/ej2-base';import { addClass, createElement, remove, closest, select, prepend, removeClass, attributes, Collection } from '@syncfusion/ej2-base';import { isNullOrUndefined, isUndefined, formatUnit, setValue, rippleEffect, merge, extend, Touch, SwipeEventArgs } from '@syncfusion/ej2-base';import { CalendarView, CalendarBase, NavigatedEventArgs, RenderDayCellEventArgs, CalendarType } from '../calendar/calendar';import { Popup } from '@syncfusion/ej2-popups';import { Button } from '@syncfusion/ej2-buttons';import { BlurEventArgs, FocusEventArgs, ClearedEventArgs } from '../calendar/calendar';import { Input, InputObject, FloatLabelType } from '@syncfusion/ej2-inputs';import { ListBase} from '@syncfusion/ej2-lists';
2
+ import {DateRange,RangeEventArgs,RangeFormatObject} from "./daterangepicker";
3
+ import {CalendarBaseModel} from "../calendar/calendar-model";
4
+
5
+ /**
6
+ * Interface for a class Presets
7
+ */
8
+ export interface PresetsModel {
9
+
10
+ /**
11
+ * Defines the label string of the preset range.
12
+ */
13
+ label?: string;
14
+
15
+ /**
16
+ * Defines the start date of the preset range.
17
+ */
18
+ start?: Date;
19
+
20
+ /**
21
+ * Defines the end date of the preset range
22
+ */
23
+ end?: Date;
24
+
25
+ }
26
+
27
+ /**
28
+ * Interface for a class DateRangePicker
29
+ */
30
+ export interface DateRangePickerModel extends CalendarBaseModel{
31
+
32
+ /**
33
+ * Gets or sets the start and end date of the Calendar.
34
+ * {% codeBlock src='daterangepicker/value/index.md' %}{% endcodeBlock %}
35
+ *
36
+ * @default null
37
+ */
38
+ value?: Date[] | DateRange;
39
+
40
+ /**
41
+      * Enable or disable the persisting component's state between the page reloads. If enabled, following list of states will be persisted.
42
+ * 1. startDate
43
+ * 2. endDate
44
+ * 3. value
45
+ *
46
+      * @default false
47
+      */
48
+ enablePersistence?: boolean;
49
+
50
+ /**
51
+ * Gets or sets the minimum date that can be selected in the calendar-popup.
52
+ *
53
+ * @default new Date(1900, 00, 01)
54
+ */
55
+ min?: Date;
56
+
57
+ /**
58
+ * Gets or sets the maximum date that can be selected in the calendar-popup.
59
+ *
60
+ * @default new Date(2099, 11, 31)
61
+ */
62
+ max?: Date;
63
+
64
+ /**
65
+ * Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
66
+ *
67
+ * @default 'en-US'
68
+ */
69
+ locale?: string;
70
+
71
+ /**
72
+ * Gets or sets the Calendar's first day of the week. By default, the first day of the week will be based on the current culture.
73
+ * > For more details about firstDayOfWeek refer to
74
+ * [`First day of week`](../../daterangepicker/customization#first-day-of-week) documentation.
75
+ *
76
+ * @default null
77
+ */
78
+ firstDayOfWeek?: number;
79
+
80
+ /**
81
+ * Determines whether the week number of the Calendar is to be displayed or not.
82
+ * The week number is displayed in every week row.
83
+ * > For more details about weekNumber refer to
84
+ * [`Calendar with week number`](../../calendar/how-to/render-the-calendar-with-week-numbers)documentation.
85
+ *
86
+ * @default false
87
+ */
88
+ weekNumber?: boolean;
89
+
90
+ /**
91
+ * Gets or sets the Calendar's Type like gregorian or islamic.
92
+ *
93
+ * @default Gregorian
94
+ * @private
95
+ */
96
+ calendarMode?: CalendarType;
97
+
98
+ /**
99
+ * By default, the popup opens while clicking on the daterangepicker icon.
100
+ * If you want to open the popup while focusing the daterange input then specify its value as true.
101
+ *
102
+ * @default false
103
+ */
104
+ openOnFocus?: boolean;
105
+
106
+ /**
107
+ * Specifies the component popup display full screen in mobile devices.
108
+ *
109
+ * @default false
110
+ */
111
+ fullScreenMode?: boolean;
112
+
113
+ /**
114
+ * Triggers when Calendar is created.
115
+ *
116
+ * @event created
117
+ */
118
+ created?: EmitType<Object>;
119
+
120
+ /**
121
+      * Triggers when Calendar is destroyed.
122
+ *
123
+      * @event destroyed
124
+      */
125
+ destroyed?: EmitType<Object>;
126
+
127
+ /**
128
+ * Triggers when the Calendar value is changed.
129
+ *
130
+ * @event change
131
+ */
132
+ change?: EmitType<RangeEventArgs>;
133
+
134
+ /**
135
+ * Triggers when daterangepicker value is cleared using clear button.
136
+ *
137
+ * @event cleared
138
+ */
139
+ cleared?: EmitType<ClearedEventArgs>;
140
+
141
+ /**
142
+ * Triggers when the Calendar is navigated to another view or within the same level of view.
143
+ *
144
+ * @event navigated
145
+ */
146
+ navigated?: EmitType<NavigatedEventArgs>;
147
+
148
+ /**
149
+ * Triggers when each day cell of the Calendar is rendered.
150
+ *
151
+ * @event renderDayCell
152
+ */
153
+
154
+ renderDayCell?: EmitType<RenderDayCellEventArgs>;
155
+
156
+ /**
157
+ * Gets or sets the start date of the date range selection.
158
+ *
159
+ * @default null
160
+ */
161
+ startDate?: Date;
162
+
163
+ /**
164
+ * Gets or sets the end date of the date range selection.
165
+ *
166
+ * @default null
167
+ */
168
+ endDate?: Date;
169
+
170
+ /**
171
+ * Set the predefined ranges which let the user pick required range easily in a component.
172
+ * > For more details refer to
173
+ * [`Preset Ranges`](../../daterangepicker/customization#preset-ranges) documentation.
174
+ * {% codeBlock src='daterangepicker/presets/index.md' %}{% endcodeBlock %}
175
+ *
176
+ * @default null
177
+ */
178
+ presets?: PresetsModel[];
179
+
180
+ /**
181
+ * Specifies the width of the DateRangePicker component.
182
+ *
183
+ * @default ''
184
+ */
185
+ width?: number | string;
186
+
187
+ /**
188
+ * specifies the z-index value of the dateRangePicker popup element.
189
+ *
190
+ * @default 1000
191
+ * @aspType int
192
+ */
193
+ zIndex?: number;
194
+
195
+ /**
196
+ * Specifies whether to show or hide the clear icon
197
+ *
198
+ * @default true
199
+ */
200
+ showClearButton?: boolean;
201
+
202
+ /**
203
+      * Specifies whether the today button is to be displayed or not.
204
+ *
205
+      * @default true
206
+ * @hidden
207
+      */
208
+ showTodayButton?: boolean;
209
+
210
+ /**
211
+ * Specifies the initial view of the Calendar when it is opened.
212
+ * With the help of this property, initial view can be changed to year or decade view.
213
+ *
214
+ * @default Month
215
+ */
216
+ start?: CalendarView;
217
+
218
+ /**
219
+ * Sets the maximum level of view (month, year, decade) in the Calendar.
220
+ * Depth view should be smaller than the start view to restrict its view navigation.
221
+ *
222
+ * @default Month
223
+ */
224
+ depth?: CalendarView;
225
+
226
+ /**
227
+ * Sets the root CSS class to the DateRangePicker which allows you to customize the appearance.
228
+ *
229
+ * @default ''
230
+ */
231
+ cssClass?: string;
232
+
233
+ /**
234
+ * Sets or gets the string that used between the start and end date string.
235
+ *
236
+ * @default '-'
237
+ */
238
+ separator?: string;
239
+
240
+ /**
241
+ * Specifies the minimum span of days that can be allowed in date range selection.
242
+ * > For more details refer to
243
+ * [`Range Span`](../../daterangepicker/range-restriction/#range-span) documentation.
244
+ *
245
+ * @default null
246
+ * @aspType int
247
+ */
248
+ minDays?: number;
249
+
250
+ /**
251
+ * Specifies the maximum span of days that can be allowed in a date range selection.
252
+ * > For more details refer to
253
+ * [`Range Span`](../../daterangepicker/range-restriction/#range-span) documentation.
254
+ *
255
+ * @default null
256
+ * @aspType int
257
+ */
258
+ maxDays?: number;
259
+
260
+ /**
261
+ * Specifies the component to act as strict which allows entering only a valid date range in a DateRangePicker.
262
+ * > For more details refer to
263
+ * [`Strict Mode`](../../daterangepicker/range-restriction#strict-mode)documentation.
264
+ *
265
+ * @default false
266
+ */
267
+ strictMode?: boolean;
268
+
269
+ /**
270
+ * Customizes the key actions in DateRangePicker.
271
+ * For example, when using German keyboard, the key actions can be customized using these shortcuts.
272
+ *
273
+ *
274
+ * Input Navigation
275
+ * <table>
276
+ * <tr>
277
+ * <td colSpan=1 rowSpan=1>
278
+ * Key action<br/></td><td colSpan=1 rowSpan=1>
279
+ * Key<br/></td></tr>
280
+ * <tr>
281
+ * <td colSpan=1 rowSpan=1>
282
+ * altUpArrow<br/></td><td colSpan=1 rowSpan=1>
283
+ * alt+uparrow<br/></td></tr>
284
+ * <tr>
285
+ * <td colSpan=1 rowSpan=1>
286
+ * altDownArrow<br/></td><td colSpan=1 rowSpan=1>
287
+ * alt+downarrow<br/></td></tr>
288
+ * <tr>
289
+ * <td colSpan=1 rowSpan=1>
290
+ * escape<br/></td><td colSpan=1 rowSpan=1>
291
+ * escape<br/></td></tr>
292
+ * </table>
293
+ *
294
+ * Calendar Navigation (Use the following list of keys to navigate the currently focused Calendar after the popup has opened).
295
+ * <table>
296
+ * <tr>
297
+ * <td colSpan=1 rowSpan=1>
298
+ * Key action<br/></td><td colSpan=1 rowSpan=1>
299
+ * Key<br/></td></tr>
300
+ * <tr>
301
+ * <td colSpan=1 rowSpan=1>
302
+ * controlUp<br/></td><td colSpan=1 rowSpan=1>
303
+ * ctrl+38<br/></td></tr>
304
+ * <tr>
305
+ * <td colSpan=1 rowSpan=1>
306
+ * controlDown<br/></td><td colSpan=1 rowSpan=1>
307
+ * ctrl+40<br/></td></tr>
308
+ * <tr>
309
+ * <td colSpan=1 rowSpan=1>
310
+ * moveDown<br/></td><td colSpan=1 rowSpan=1>
311
+ * downarrow<br/></td></tr>
312
+ * <td colSpan=1 rowSpan=1>
313
+ * pageUp<br/></td><td colSpan=1 rowSpan=1>
314
+ * pageup<br/></td></tr>
315
+ * <tr>
316
+ * <td colSpan=1 rowSpan=1>
317
+ * pageDown<br/></td><td colSpan=1 rowSpan=1>
318
+ * pagedown<br/></td></tr>
319
+ * <tr>
320
+ * <td colSpan=1 rowSpan=1>
321
+ * shiftPageUp<br/></td><td colSpan=1 rowSpan=1>
322
+ * shift+pageup<br/></td></tr>
323
+ * <tr>
324
+ * <td colSpan=1 rowSpan=1>
325
+ * shiftPageDown<br/></td><td colSpan=1 rowSpan=1>
326
+ * shift+pagedown<br/></td></tr>
327
+ * <tr>
328
+ * <td colSpan=1 rowSpan=1>
329
+ * moveUp<br/></td><td colSpan=1 rowSpan=1>
330
+ * uparrow<br/></td></tr>
331
+ * <tr>
332
+ * <td colSpan=1 rowSpan=1>
333
+ * moveLeft<br/></td><td colSpan=1 rowSpan=1>
334
+ * leftarrow<br/></td></tr>
335
+ * <tr>
336
+ * <td colSpan=1 rowSpan=1>
337
+ * moveRight<br/></td><td colSpan=1 rowSpan=1>
338
+ * rightarrow<br/></td></tr>
339
+ * <tr>
340
+ * <td colSpan=1 rowSpan=1>
341
+ * select<br/></td><td colSpan=1 rowSpan=1>
342
+ * enter<br/></td></tr>
343
+ * <tr>
344
+ * <td colSpan=1 rowSpan=1>
345
+ * home<br/></td><td colSpan=1 rowSpan=1>
346
+ * home<br/></td></tr>
347
+ * <tr>
348
+ * <td colSpan=1 rowSpan=1>
349
+ * end<br/></td><td colSpan=1 rowSpan=1>
350
+ * end<br/></td></tr>
351
+ * <tr>
352
+ * <tr>
353
+ * <td colSpan=1 rowSpan=1>
354
+ * controlHome<br/></td><td colSpan=1 rowSpan=1>
355
+ * ctrl+home<br/></td></tr>
356
+ * <tr>
357
+ * <td colSpan=1 rowSpan=1>
358
+ * controlEnd<br/></td><td colSpan=1 rowSpan=1>
359
+ * ctrl+end<br/></td></tr>
360
+ * <tr>
361
+ * <td colSpan=1 rowSpan=1>
362
+ * altUpArrow<br/></td><td colSpan=1 rowSpan=1>
363
+ * alt+uparrow<br/></td></tr>
364
+ * <tr>
365
+ * <td colSpan=1 rowSpan=1>
366
+ * spacebar<br/></td><td colSpan=1 rowSpan=1>
367
+ * space<br/></td></tr>
368
+ * <tr>
369
+ * <td colSpan=1 rowSpan=1>
370
+ * enter<br/></td><td colSpan=1 rowSpan=1>
371
+ * enter<br/></td></tr>
372
+ * <tr>
373
+ * <td colSpan=1 rowSpan=1>
374
+ * altRightArrow<br/></td><td colSpan=1 rowSpan=1>
375
+ * alt+rightarrow<br/></td></tr>
376
+ * <tr>
377
+ * <td colSpan=1 rowSpan=1>
378
+ * altLeftArrow<br/></td><td colSpan=1 rowSpan=1>
379
+ * alt+leftarrow<br/></td></tr>
380
+ * </table>
381
+ *
382
+ * {% codeBlock src='daterangepicker/keyConfigs/index.md' %}{% endcodeBlock %}
383
+ *
384
+ * @default null
385
+ */
386
+ keyConfigs?: { [key: string]: string };
387
+
388
+ /**
389
+ * Sets or gets the required date format to the start and end date string.
390
+ * > For more details refer to
391
+ * [`Format`](https://ej2.syncfusion.com/demos/#/material/daterangepicker/format.html)sample.
392
+ *
393
+ * @aspType string
394
+ * {% codeBlock src='daterangepicker/format/index.md' %}{% endcodeBlock %}
395
+ * @default null
396
+ */
397
+ format?: string | RangeFormatObject;
398
+
399
+ /**
400
+ * Specifies an array of acceptable date input formats for parsing user input.
401
+ *
402
+ * @default null
403
+ * @aspType string[]
404
+ */
405
+ inputFormats?: string[] | RangeFormatObject[];
406
+
407
+ /**
408
+ * Specifies the component to be disabled which prevents the DateRangePicker from user interactions.
409
+ *
410
+ * @default true
411
+ */
412
+ enabled?: boolean;
413
+
414
+ /**
415
+ * Denies the editing the ranges in the DateRangePicker component.
416
+ *
417
+ * @default false
418
+ */
419
+ readonly?: boolean;
420
+
421
+ /**
422
+ * > Support for `allowEdit` has been provided from
423
+ * [`v16.2.46`](https://ej2.syncfusion.com/angular/documentation/release-notes/16.2.46/#daterangepicker).
424
+ *
425
+ * Specifies whether the input textbox is editable or not. Here the user can select the value from the
426
+ * popup and cannot edit in the input textbox.
427
+ *
428
+ * @default true
429
+ */
430
+ allowEdit?: boolean;
431
+
432
+ /**
433
+ * Specifies the placeholder text to be floated.
434
+ * Possible values are:
435
+ * Never: The label will never float in the input when the placeholder is available.
436
+ * Always: The floating label will always float above the input.
437
+ * Auto: The floating label will float above the input after focusing or entering a value in the input.
438
+ *
439
+ * @default Syncfusion.EJ2.Inputs.FloatLabelType.Never
440
+ * @aspType Syncfusion.EJ2.Inputs.FloatLabelType
441
+ * @isEnumeration true
442
+ */
443
+ floatLabelType?: FloatLabelType | string;
444
+
445
+ /**
446
+ * Specifies the placeholder text that need to be displayed in the DateRangePicker component.
447
+ *
448
+ * @default null
449
+ */
450
+ placeholder?: string;
451
+
452
+ /**
453
+ * You can add the additional html attributes such as disabled, value etc., to the element.
454
+ * If you configured both property and equivalent html attribute then the component considers the property value.
455
+ * {% codeBlock src='daterangepicker/htmlAttributes/index.md' %}{% endcodeBlock %}
456
+ *
457
+ * @default {}
458
+ */
459
+ htmlAttributes?: { [key: string]: string };
460
+
461
+ /**
462
+ * Triggers when the DateRangePicker is opened.
463
+ *
464
+ * @event open
465
+ */
466
+ open?: EmitType<Object>;
467
+
468
+ /**
469
+      * Triggers when the DateRangePicker is closed.
470
+ *
471
+      * @event close
472
+      */
473
+ close?: EmitType<Object>;
474
+
475
+ /**
476
+      * Triggers on selecting the start and end date.
477
+ *
478
+      * @event select
479
+      */
480
+ select?: EmitType<Object>;
481
+
482
+ /**
483
+      * Triggers when the control gets focus.
484
+ *
485
+      * @event focus
486
+      */
487
+ focus?: EmitType<FocusEventArgs>;
488
+
489
+ /**
490
+      * Triggers when the control loses the focus.
491
+ *
492
+      * @event blur
493
+      */
494
+ blur?: EmitType<BlurEventArgs>;
495
+
496
+ }