@syncfusion/ej2-calendars 31.1.17 → 31.1.19

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 (54) hide show
  1. package/aceconfig.js +17 -0
  2. package/dist/ej2-calendars.min.js +2 -2
  3. package/dist/ej2-calendars.umd.min.js +2 -2
  4. package/dist/ej2-calendars.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-calendars.es2015.js +36 -13
  6. package/dist/es6/ej2-calendars.es2015.js.map +1 -1
  7. package/dist/es6/ej2-calendars.es5.js +36 -13
  8. package/dist/es6/ej2-calendars.es5.js.map +1 -1
  9. package/dist/global/ej2-calendars.min.js +2 -2
  10. package/dist/global/ej2-calendars.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +11 -54
  13. package/src/datepicker/datepicker.js +28 -13
  14. package/src/daterangepicker/daterangepicker.js +8 -0
  15. package/dist/ts/calendar/calendar-model.d.ts +0 -340
  16. package/dist/ts/calendar/calendar.d.ts +0 -733
  17. package/dist/ts/calendar/calendar.ts +0 -3009
  18. package/dist/ts/calendar/index.d.ts +0 -6
  19. package/dist/ts/calendar/index.ts +0 -6
  20. package/dist/ts/calendar/islamic.d.ts +0 -28
  21. package/dist/ts/calendar/islamic.ts +0 -597
  22. package/dist/ts/common/index.d.ts +0 -5
  23. package/dist/ts/common/index.ts +0 -5
  24. package/dist/ts/common/maskplaceholder-model.d.ts +0 -57
  25. package/dist/ts/common/maskplaceholder.d.ts +0 -45
  26. package/dist/ts/common/maskplaceholder.ts +0 -54
  27. package/dist/ts/datepicker/datepicker-model.d.ts +0 -364
  28. package/dist/ts/datepicker/datepicker.d.ts +0 -583
  29. package/dist/ts/datepicker/datepicker.ts +0 -2528
  30. package/dist/ts/datepicker/index.d.ts +0 -5
  31. package/dist/ts/datepicker/index.ts +0 -5
  32. package/dist/ts/daterangepicker/daterangepicker-model.d.ts +0 -496
  33. package/dist/ts/daterangepicker/daterangepicker.d.ts +0 -857
  34. package/dist/ts/daterangepicker/daterangepicker.ts +0 -5096
  35. package/dist/ts/daterangepicker/index.d.ts +0 -5
  36. package/dist/ts/daterangepicker/index.ts +0 -5
  37. package/dist/ts/datetimepicker/datetimepicker-model.d.ts +0 -479
  38. package/dist/ts/datetimepicker/datetimepicker.d.ts +0 -626
  39. package/dist/ts/datetimepicker/datetimepicker.ts +0 -2212
  40. package/dist/ts/datetimepicker/index.d.ts +0 -5
  41. package/dist/ts/datetimepicker/index.ts +0 -5
  42. package/dist/ts/index.d.ts +0 -9
  43. package/dist/ts/index.ts +0 -9
  44. package/dist/ts/maskbase/index.d.ts +0 -5
  45. package/dist/ts/maskbase/index.ts +0 -5
  46. package/dist/ts/maskbase/interface.d.ts +0 -28
  47. package/dist/ts/maskbase/interface.ts +0 -29
  48. package/dist/ts/maskbase/masked-date-time.d.ts +0 -77
  49. package/dist/ts/maskbase/masked-date-time.ts +0 -1013
  50. package/dist/ts/timepicker/index.d.ts +0 -5
  51. package/dist/ts/timepicker/index.ts +0 -5
  52. package/dist/ts/timepicker/timepicker-model.d.ts +0 -393
  53. package/dist/ts/timepicker/timepicker.d.ts +0 -681
  54. package/dist/ts/timepicker/timepicker.ts +0 -2944
@@ -1,5 +0,0 @@
1
- /**
2
- * DateRangePicker modules
3
- */
4
- export * from './daterangepicker';
5
- export * from './daterangepicker-model';
@@ -1,5 +0,0 @@
1
- /**
2
- * DateRangePicker modules
3
- */
4
- export * from './daterangepicker';
5
- export * from './daterangepicker-model';
@@ -1,479 +0,0 @@
1
- import { EventHandler, Internationalization, Property, NotifyPropertyChanges, Browser, RippleOptions } from '@syncfusion/ej2-base';import { Animation, EmitType, Event, AnimationModel, cldrData, getDefaultDateObject, detach } from '@syncfusion/ej2-base';import { createElement, remove, addClass, L10n, removeClass, closest, append, attributes } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, isNullOrUndefined, formatUnit, getValue, rippleEffect } from '@syncfusion/ej2-base';import { ModuleDeclaration, extend, Touch, SwipeEventArgs } from '@syncfusion/ej2-base';import { Popup } from '@syncfusion/ej2-popups';import { Input } from '@syncfusion/ej2-inputs';import { BlurEventArgs, ClearedEventArgs, CalendarType, CalendarView, DayHeaderFormats } from '../calendar/calendar';import { DatePicker, PopupObjectArgs } from '../datepicker/datepicker';import { TimePickerBase } from '../timepicker/timepicker';import {MaskPlaceholderModel} from '../common/maskplaceholder-model';
2
- import {DatePickerModel} from "../datepicker/datepicker-model";
3
-
4
- /**
5
- * Interface for a class DateTimePicker
6
- */
7
- export interface DateTimePickerModel extends DatePickerModel{
8
-
9
- /**
10
- * Specifies the format of the time value that to be displayed in time popup list.
11
- *
12
- * @default null
13
- */
14
- timeFormat?: string;
15
-
16
- /**
17
- * Specifies the time interval between the two adjacent time values in the time popup list .
18
- *
19
- * @default 30
20
- */
21
- step?: number;
22
-
23
- /**
24
- * Specifies the scroll bar position if there is no value is selected in the timepicker popup list or
25
- * the given value is not present in the timepicker popup list.
26
- * {% codeBlock src='datetimepicker/scrollTo/index.md' %}{% endcodeBlock %}
27
- *
28
- * @default null
29
- */
30
- scrollTo?: Date;
31
-
32
- /**
33
- * specifies the z-index value of the popup element.
34
- *
35
- * @default 1000
36
- * @aspType int
37
- */
38
- zIndex?: number;
39
-
40
- /**
41
- * Gets or sets the selected date of the Calendar.
42
- *
43
- * @default null
44
- * @isGenericType true
45
- */
46
- value?: Date;
47
-
48
- /**
49
- * Customizes the key actions in DateTimePicker.
50
- * For example, when using German keyboard, the key actions can be customized using these shortcuts.
51
- *
52
- *
53
- * Input Navigation
54
- * <table>
55
- * <tr>
56
- * <td colSpan=1 rowSpan=1>
57
- * Key action<br/></td><td colSpan=1 rowSpan=1>
58
- * Key<br/></td></tr>
59
- * <tr>
60
- * <td colSpan=1 rowSpan=1>
61
- * altUpArrow<br/></td><td colSpan=1 rowSpan=1>
62
- * alt+uparrow<br/></td></tr>
63
- * <tr>
64
- * <td colSpan=1 rowSpan=1>
65
- * altDownArrow<br/></td><td colSpan=1 rowSpan=1>
66
- * alt+downarrow<br/></td></tr>
67
- * <tr>
68
- * <td colSpan=1 rowSpan=1>
69
- * escape<br/></td><td colSpan=1 rowSpan=1>
70
- * escape<br/></td></tr>
71
- * </table>
72
- *
73
- * Calendar Navigation (Use the following list of keys to navigate the currently focused Calendar after the popup has opened).
74
- * <table>
75
- * <tr>
76
- * <td colSpan=1 rowSpan=1>
77
- * Key action<br/></td><td colSpan=1 rowSpan=1>
78
- * Key<br/></td></tr>
79
- * <tr>
80
- * <td colSpan=1 rowSpan=1>
81
- * controlUp<br/></td><td colSpan=1 rowSpan=1>
82
- * ctrl+38<br/></td></tr>
83
- * <tr>
84
- * <td colSpan=1 rowSpan=1>
85
- * controlDown<br/></td><td colSpan=1 rowSpan=1>
86
- * ctrl+40<br/></td></tr>
87
- * <tr>
88
- * <td colSpan=1 rowSpan=1>
89
- * moveDown<br/></td><td colSpan=1 rowSpan=1>
90
- * downarrow<br/></td></tr>
91
- * <tr>
92
- * <td colSpan=1 rowSpan=1>
93
- * moveUp<br/></td><td colSpan=1 rowSpan=1>
94
- * uparrow<br/></td></tr>
95
- * <tr>
96
- * <td colSpan=1 rowSpan=1>
97
- * moveLeft<br/></td><td colSpan=1 rowSpan=1>
98
- * leftarrow<br/></td></tr>
99
- * <tr>
100
- * <td colSpan=1 rowSpan=1>
101
- * moveRight<br/></td><td colSpan=1 rowSpan=1>
102
- * rightarrow<br/></td></tr>
103
- * <tr>
104
- * <td colSpan=1 rowSpan=1>
105
- * select<br/></td><td colSpan=1 rowSpan=1>
106
- * enter<br/></td></tr>
107
- * <tr>
108
- * <td colSpan=1 rowSpan=1>
109
- * home<br/></td><td colSpan=1 rowSpan=1>
110
- * home<br/></td></tr>
111
- * <tr>
112
- * <td colSpan=1 rowSpan=1>
113
- * end<br/></td><td colSpan=1 rowSpan=1>
114
- * end<br/></td></tr>
115
- * <tr>
116
- * <td colSpan=1 rowSpan=1>
117
- * pageUp<br/></td><td colSpan=1 rowSpan=1>
118
- * pageup<br/></td></tr>
119
- * <tr>
120
- * <td colSpan=1 rowSpan=1>
121
- * pageDown<br/></td><td colSpan=1 rowSpan=1>
122
- * pagedown<br/></td></tr>
123
- * <tr>
124
- * <td colSpan=1 rowSpan=1>
125
- * shiftPageUp<br/></td><td colSpan=1 rowSpan=1>
126
- * shift+pageup<br/></td></tr>
127
- * <tr>
128
- * <td colSpan=1 rowSpan=1>
129
- * shiftPageDown<br/></td><td colSpan=1 rowSpan=1>
130
- * shift+pagedown<br/></td></tr>
131
- * <tr>
132
- * <td colSpan=1 rowSpan=1>
133
- * controlHome<br/></td><td colSpan=1 rowSpan=1>
134
- * ctrl+home<br/></td></tr>
135
- * <tr>
136
- * <td colSpan=1 rowSpan=1>
137
- * controlEnd<br/></td><td colSpan=1 rowSpan=1>
138
- * ctrl+end<br/></td></tr>
139
- * <tr>
140
- * <td colSpan=1 rowSpan=1>
141
- * altUpArrow<br/></td><td colSpan=1 rowSpan=1>
142
- * alt+uparrow<br/></td></tr>
143
- * <tr>
144
- * <td colSpan=1 rowSpan=1>
145
- * spacebar<br/></td><td colSpan=1 rowSpan=1>
146
- * space<br/></td></tr>
147
- * <tr>
148
- * <td colSpan=1 rowSpan=1>
149
- * altRightArrow<br/></td><td colSpan=1 rowSpan=1>
150
- * alt+rightarrow<br/></td></tr>
151
- * <tr>
152
- * <td colSpan=1 rowSpan=1>
153
- * altLeftArrow<br/></td><td colSpan=1 rowSpan=1>
154
- * alt+leftarrow<br/></td></tr>
155
- * </table>
156
- *
157
- * TimePicker Navigation (Use the below list of shortcut keys to interact with the TimePicker after the TimePicker Popup has opened).
158
- * <table>
159
- * <tr>
160
- * <td colSpan=1 rowSpan=1>
161
- * Key action<br/></td><td colSpan=1 rowSpan=1>
162
- * Key<br/></td></tr>
163
- * <tr>
164
- * <td colSpan=1 rowSpan=1>
165
- * down<br/></td><td colSpan=1 rowSpan=1>
166
- * downarrow<br/></td></tr>
167
- * <tr>
168
- * <td colSpan=1 rowSpan=1>
169
- * up<br/></td><td colSpan=1 rowSpan=1>
170
- * uparrow<br/></td></tr>
171
- * <tr>
172
- * <td colSpan=1 rowSpan=1>
173
- * left<br/></td><td colSpan=1 rowSpan=1>
174
- * leftarrow<br/></td></tr>
175
- * <tr>
176
- * <td colSpan=1 rowSpan=1>
177
- * right<br/></td><td colSpan=1 rowSpan=1>
178
- * rightarrow<br/></td></tr>
179
- * </table>
180
- *
181
- * {% codeBlock src='datetimepicker/keyConfigs/index.md' %}{% endcodeBlock %}
182
- *
183
- * @default null
184
- */
185
- keyConfigs?: { [key: string]: string };
186
-
187
- /**
188
- * You can add the additional html attributes such as disabled, value etc., to the element.
189
- * If you configured both property and equivalent html attribute then the component considers the property value.
190
- * {% codeBlock src='datetimepicker/htmlAttributes/index.md' %}{% endcodeBlock %}
191
- *
192
- * @default {}
193
- */
194
- htmlAttributes?: { [key: string]: string };
195
-
196
- /**
197
-      * Enable or disable persisting component's state between page reloads. If enabled, following list of states will be persisted.
198
- * 1. value
199
- *
200
-      * @default false
201
-      */
202
- enablePersistence?: boolean;
203
-
204
- /**
205
- * > Support for `allowEdit` has been provided from
206
- * [`v16.2.46`](https://ej2.syncfusion.com/angular/documentation/release-notes/16.2.46/#datetimepicker).
207
- *
208
- * Specifies whether the input textbox is editable or not. Here the user can select the value from the
209
- * popup and cannot edit in the input textbox.
210
- *
211
- * @default true
212
- */
213
- allowEdit?: boolean;
214
-
215
- /**
216
- * Specifies the option to enable the multiple dates selection of the calendar.
217
- *
218
- * @default false
219
- * @private
220
- */
221
- isMultiSelection?: boolean;
222
-
223
- /**
224
- * Gets or sets multiple selected dates of the calendar.
225
- *
226
- * @default null
227
- * @private
228
- */
229
- values?: Date[];
230
-
231
- /**
232
- * Specifies whether to show or hide the clear icon in textbox.
233
- *
234
- * @default true
235
- */
236
- showClearButton?: boolean;
237
-
238
- /**
239
- * Specifies the placeholder text that to be is displayed in textbox.
240
- *
241
- * @default null
242
- */
243
- placeholder?: string;
244
-
245
- /**
246
- * Specifies the component to act as strict. So that, it allows to enter only a valid
247
- * date and time value within a specified range or else it
248
- * will resets to previous value. By default, strictMode is in false.
249
- * it allows invalid or out-of-range value with highlighted error class.
250
- *
251
- * @default false
252
- * > For more details refer to
253
- * [`Strict Mode`](../../datetimepicker/strict-mode/) documentation.
254
- */
255
- strictMode?: boolean;
256
-
257
- /**
258
- * Specifies the component popup display full screen in mobile devices.
259
- *
260
- * @default false
261
- */
262
- fullScreenMode?: boolean;
263
-
264
- /**
265
- * By default, the date value will be processed based on system time zone.
266
- * If you want to process the initial date value using server time zone
267
- * then specify the time zone value to `serverTimezoneOffset` property.
268
- *
269
- * @default null
270
- */
271
- serverTimezoneOffset?: number;
272
-
273
- /**
274
- * Gets or sets the minimum date that can be selected in the DateTimePicker.
275
- *
276
- * @default new Date(1900, 00, 01)
277
- */
278
- min?: Date;
279
-
280
- /**
281
- * Gets or sets the maximum date that can be selected in the DateTimePicker.
282
- *
283
- * @default new Date(2099, 11, 31)
284
- */
285
- max?: Date;
286
-
287
- /**
288
- * Gets or sets the minimum time that can be selected in the time popup of the DateTimePicker.
289
- *
290
- * @default null
291
- */
292
- minTime?: Date;
293
-
294
- /**
295
- * Gets or sets the maximum time that can be selected in the time popup of the DateTimePicker.
296
- *
297
- * @default null
298
- */
299
- maxTime?: Date;
300
-
301
- /**
302
- * 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.
303
- *
304
- * @default 0
305
- * @aspType int
306
- * > For more details about firstDayOfWeek refer to
307
- * [`First day of week`](../../calendar/how-to/first-day-of-week#change-the-first-day-of-the-week) documentation.
308
- */
309
- firstDayOfWeek?: number;
310
-
311
- /**
312
- * Gets or sets the Calendar's Type like gregorian or islamic.
313
- *
314
- * @default Gregorian
315
- */
316
- calendarMode?: CalendarType;
317
-
318
- /**
319
- * Specifies the initial view of the Calendar when it is opened.
320
- * With the help of this property, initial view can be changed to year or decade view.
321
- *
322
- * @default Month
323
- *
324
- * <table>
325
- * <tr>
326
- * <td colSpan=1 rowSpan=1>
327
- * View<br/></td><td colSpan=1 rowSpan=1>
328
- * Description<br/></td></tr>
329
- * <tr>
330
- * <td colSpan=1 rowSpan=1>
331
- * Month<br/></td><td colSpan=1 rowSpan=1>
332
- * Calendar view shows the days of the month.<br/></td></tr>
333
- * <tr>
334
- * <td colSpan=1 rowSpan=1>
335
- * Year<br/></td><td colSpan=1 rowSpan=1>
336
- * Calendar view shows the months of the year.<br/></td></tr>
337
- * <tr>
338
- * <td colSpan=1 rowSpan=1>
339
- * Decade<br/></td><td colSpan=1 rowSpan=1>
340
- * Calendar view shows the years of the decade.<br/></td></tr>
341
- * </table>
342
- *
343
- * > For more details about start refer to
344
- * [`calendarView`](../../calendar/calendar-views#view-restriction)documentation.
345
- */
346
- start?: CalendarView;
347
-
348
- /**
349
- * Sets the maximum level of view such as month, year, and decade in the Calendar.
350
- * Depth view should be smaller than the start view to restrict its view navigation.
351
- *
352
- * @default Month
353
- *
354
- * <table>
355
- * <tr>
356
- * <td colSpan=1 rowSpan=1>
357
- * view<br/></td><td colSpan=1 rowSpan=1>
358
- * Description<br/></td></tr>
359
- * <tr>
360
- * <td colSpan=1 rowSpan=1>
361
- * Month<br/></td><td colSpan=1 rowSpan=1>
362
- * Calendar view shows up to the days of the month.<br/></td></tr>
363
- * <tr>
364
- * <td colSpan=1 rowSpan=1>
365
- * Year<br/></td><td colSpan=1 rowSpan=1>
366
- * Calendar view shows up to the months of the year.<br/></td></tr>
367
- * <tr>
368
- * <td colSpan=1 rowSpan=1>
369
- * Decade<br/></td><td colSpan=1 rowSpan=1>
370
- * Calendar view shows up to the years of the decade.<br/></td></tr>
371
- * </table>
372
- *
373
- * > For more details about depth refer to
374
- * [`calendarView`](../../calendar/calendar-views#view-restriction)documentation.
375
- */
376
- depth?: CalendarView;
377
-
378
- /**
379
- * Determines whether the week number of the year is to be displayed in the calendar or not.
380
- *
381
- * @default false
382
- * > For more details about weekNumber refer to
383
- * [`Calendar with week number`](../../calendar/how-to/render-the-calendar-with-week-numbers)documentation.
384
- */
385
- weekNumber?: boolean;
386
-
387
- /**
388
-      * Specifies whether the today button is to be displayed or not.
389
- *
390
-      * @default true
391
-      */
392
- showTodayButton?: boolean;
393
-
394
- /**
395
- * Specifies the format of the day that to be displayed in header. By default, the format is ‘short’.
396
- * Possible formats are:
397
- * * `Short` - Sets the short format of day name (like Su ) in day header.
398
- * * `Narrow` - Sets the single character of day name (like S ) in day header.
399
- * * `Abbreviated` - Sets the min format of day name (like Sun ) in day header.
400
- * * `Wide` - Sets the long format of day name (like Sunday ) in day header.
401
- *
402
- * @default Short
403
- */
404
- dayHeaderFormat?: DayHeaderFormats;
405
-
406
- /**
407
- * By default, the popup opens while clicking on the datetimepicker icon.
408
- * If you want to open the popup while focusing the datetime input then specify its value as true.
409
- *
410
- * @default false
411
- */
412
- openOnFocus?: boolean;
413
-
414
- /**
415
- * Specifies whether it is a masked datetimepicker or not.
416
- * By default the datetimepicker component render without masked input.
417
- * If you need masked datetimepicker input then specify it as true.
418
- *
419
- * @default false
420
- */
421
- enableMask?: boolean;
422
-
423
- /**
424
- * Specifies the mask placeholder to be displayed on masked datetimepicker.
425
- *
426
- * @default {day:'day' , month:'month', year: 'year', hour:'hour',minute:'minute',second:'second',dayOfTheWeek: 'day of the week'}
427
- */
428
- maskPlaceholder?: MaskPlaceholderModel;
429
-
430
- /**
431
- * Triggers when popup is opened.
432
- *
433
- * @event open
434
- */
435
- open?: EmitType<Object>;
436
-
437
- /**
438
- * Triggers when popup is closed.
439
- *
440
- * @event close
441
- */
442
- close?: EmitType<Object>;
443
-
444
- /**
445
- * Triggers when datetimepicker value is cleared using clear button.
446
- *
447
- * @event cleared
448
- */
449
- cleared?: EmitType<ClearedEventArgs>;
450
-
451
- /**
452
- * Triggers when input loses the focus.
453
- *
454
- * @event blur
455
- */
456
- blur?: EmitType<Object>;
457
-
458
- /**
459
- * Triggers when input gets focus.
460
- *
461
- * @event focus
462
- */
463
- focus?: EmitType<Object>;
464
-
465
- /**
466
- * Triggers when DateTimePicker is created.
467
- *
468
- * @event created
469
- */
470
- created?: EmitType<Object>;
471
-
472
- /**
473
-      * Triggers when DateTimePicker is destroyed.
474
- *
475
-      * @event destroyed
476
-      */
477
- destroyed?: EmitType<Object>;
478
-
479
- }