@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.
- package/aceconfig.js +17 -0
- package/dist/ej2-calendars.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js.map +1 -1
- package/dist/es6/ej2-calendars.es2015.js +36 -13
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +36 -13
- package/dist/es6/ej2-calendars.es5.js.map +1 -1
- package/dist/global/ej2-calendars.min.js +2 -2
- package/dist/global/ej2-calendars.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +11 -54
- package/src/datepicker/datepicker.js +28 -13
- package/src/daterangepicker/daterangepicker.js +8 -0
- package/dist/ts/calendar/calendar-model.d.ts +0 -340
- package/dist/ts/calendar/calendar.d.ts +0 -733
- package/dist/ts/calendar/calendar.ts +0 -3009
- package/dist/ts/calendar/index.d.ts +0 -6
- package/dist/ts/calendar/index.ts +0 -6
- package/dist/ts/calendar/islamic.d.ts +0 -28
- package/dist/ts/calendar/islamic.ts +0 -597
- package/dist/ts/common/index.d.ts +0 -5
- package/dist/ts/common/index.ts +0 -5
- package/dist/ts/common/maskplaceholder-model.d.ts +0 -57
- package/dist/ts/common/maskplaceholder.d.ts +0 -45
- package/dist/ts/common/maskplaceholder.ts +0 -54
- package/dist/ts/datepicker/datepicker-model.d.ts +0 -364
- package/dist/ts/datepicker/datepicker.d.ts +0 -583
- package/dist/ts/datepicker/datepicker.ts +0 -2528
- package/dist/ts/datepicker/index.d.ts +0 -5
- package/dist/ts/datepicker/index.ts +0 -5
- package/dist/ts/daterangepicker/daterangepicker-model.d.ts +0 -496
- package/dist/ts/daterangepicker/daterangepicker.d.ts +0 -857
- package/dist/ts/daterangepicker/daterangepicker.ts +0 -5096
- package/dist/ts/daterangepicker/index.d.ts +0 -5
- package/dist/ts/daterangepicker/index.ts +0 -5
- package/dist/ts/datetimepicker/datetimepicker-model.d.ts +0 -479
- package/dist/ts/datetimepicker/datetimepicker.d.ts +0 -626
- package/dist/ts/datetimepicker/datetimepicker.ts +0 -2212
- package/dist/ts/datetimepicker/index.d.ts +0 -5
- package/dist/ts/datetimepicker/index.ts +0 -5
- package/dist/ts/index.d.ts +0 -9
- package/dist/ts/index.ts +0 -9
- package/dist/ts/maskbase/index.d.ts +0 -5
- package/dist/ts/maskbase/index.ts +0 -5
- package/dist/ts/maskbase/interface.d.ts +0 -28
- package/dist/ts/maskbase/interface.ts +0 -29
- package/dist/ts/maskbase/masked-date-time.d.ts +0 -77
- package/dist/ts/maskbase/masked-date-time.ts +0 -1013
- package/dist/ts/timepicker/index.d.ts +0 -5
- package/dist/ts/timepicker/index.ts +0 -5
- package/dist/ts/timepicker/timepicker-model.d.ts +0 -393
- package/dist/ts/timepicker/timepicker.d.ts +0 -681
- package/dist/ts/timepicker/timepicker.ts +0 -2944
|
@@ -1,857 +0,0 @@
|
|
|
1
|
-
/// <reference path="../calendar/calendar-model.d.ts" />
|
|
2
|
-
import { KeyboardEvents, BaseEventArgs, KeyboardEventArgs, EmitType, ChildProperty } from '@syncfusion/ej2-base';
|
|
3
|
-
import { Touch } from '@syncfusion/ej2-base';
|
|
4
|
-
import { CalendarView, CalendarBase, NavigatedEventArgs, RenderDayCellEventArgs, CalendarType } from '../calendar/calendar';
|
|
5
|
-
import { Popup } from '@syncfusion/ej2-popups';
|
|
6
|
-
import { BlurEventArgs, FocusEventArgs, ClearedEventArgs } from '../calendar/calendar';
|
|
7
|
-
import { FloatLabelType } from '@syncfusion/ej2-inputs';
|
|
8
|
-
import { PresetsModel, DateRangePickerModel } from './daterangepicker-model';
|
|
9
|
-
export declare class Presets extends ChildProperty<Presets> {
|
|
10
|
-
/**
|
|
11
|
-
* Defines the label string of the preset range.
|
|
12
|
-
*/
|
|
13
|
-
label: string;
|
|
14
|
-
/**
|
|
15
|
-
* Defines the start date of the preset range.
|
|
16
|
-
*/
|
|
17
|
-
start: Date;
|
|
18
|
-
/**
|
|
19
|
-
* Defines the end date of the preset range
|
|
20
|
-
*/
|
|
21
|
-
end: Date;
|
|
22
|
-
}
|
|
23
|
-
export interface DateRange {
|
|
24
|
-
/** Defines the start date */
|
|
25
|
-
start?: Date;
|
|
26
|
-
/** Defines the end date */
|
|
27
|
-
end?: Date;
|
|
28
|
-
}
|
|
29
|
-
export interface RangeEventArgs extends BaseEventArgs {
|
|
30
|
-
/**
|
|
31
|
-
* Defines the value
|
|
32
|
-
*/
|
|
33
|
-
value?: Date[] | DateRange;
|
|
34
|
-
/** Defines the value string in the input element */
|
|
35
|
-
text?: string;
|
|
36
|
-
/** Defines the start date */
|
|
37
|
-
startDate?: Date;
|
|
38
|
-
/** Defines the end date */
|
|
39
|
-
endDate?: Date;
|
|
40
|
-
/** Defines the day span between the range */
|
|
41
|
-
daySpan?: number;
|
|
42
|
-
/** Specifies the element. */
|
|
43
|
-
element?: HTMLElement | HTMLInputElement;
|
|
44
|
-
/**
|
|
45
|
-
* Specifies the original event arguments.
|
|
46
|
-
*/
|
|
47
|
-
event?: MouseEvent | KeyboardEvent | TouchEvent | Event;
|
|
48
|
-
/**
|
|
49
|
-
* If the event is triggered by interaction, it returns true. Otherwise, it returns false.
|
|
50
|
-
*/
|
|
51
|
-
isInteracted?: boolean;
|
|
52
|
-
}
|
|
53
|
-
export interface RangePopupEventArgs {
|
|
54
|
-
/** Defines the range string in the input element */
|
|
55
|
-
date: string;
|
|
56
|
-
/** Defines the DateRangePicker model */
|
|
57
|
-
model: DateRangePickerModel;
|
|
58
|
-
/**
|
|
59
|
-
* Illustrates whether the current action needs to be prevented or not.
|
|
60
|
-
*/
|
|
61
|
-
cancel?: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Defines the DateRangePicker popup object.
|
|
64
|
-
*
|
|
65
|
-
* @deprecated
|
|
66
|
-
*/
|
|
67
|
-
popup?: Popup;
|
|
68
|
-
/**
|
|
69
|
-
* Specifies the original event arguments.
|
|
70
|
-
*/
|
|
71
|
-
event?: MouseEvent | KeyboardEvent | Event;
|
|
72
|
-
/**
|
|
73
|
-
* Specifies the node to which the popup element to be appended.
|
|
74
|
-
*/
|
|
75
|
-
appendTo?: HTMLElement;
|
|
76
|
-
}
|
|
77
|
-
export interface RangeFormatObject {
|
|
78
|
-
/**
|
|
79
|
-
* Specifies the format in which the date format will process
|
|
80
|
-
*/
|
|
81
|
-
skeleton?: string;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Represents the DateRangePicker component that allows user to select the date range from the calendar
|
|
85
|
-
* or entering the range through the input element.
|
|
86
|
-
* ```html
|
|
87
|
-
* <input id="daterangepicker"/>
|
|
88
|
-
* ```
|
|
89
|
-
* ```typescript
|
|
90
|
-
* <script>
|
|
91
|
-
* var dateRangePickerObj = new DateRangePicker({ startDate: new Date("05/07/2017"), endDate: new Date("10/07/2017") });
|
|
92
|
-
* dateRangePickerObj.appendTo("#daterangepicker");
|
|
93
|
-
* </script>
|
|
94
|
-
* ```
|
|
95
|
-
*/
|
|
96
|
-
export declare class DateRangePicker extends CalendarBase {
|
|
97
|
-
private popupObj;
|
|
98
|
-
private inputWrapper;
|
|
99
|
-
private popupWrapper;
|
|
100
|
-
private rightCalendar;
|
|
101
|
-
private leftCalendar;
|
|
102
|
-
private deviceCalendar;
|
|
103
|
-
private leftCalCurrentDate;
|
|
104
|
-
private initStartDate;
|
|
105
|
-
private initEndDate;
|
|
106
|
-
private startValue;
|
|
107
|
-
private endValue;
|
|
108
|
-
private modelValue;
|
|
109
|
-
private rightCalCurrentDate;
|
|
110
|
-
private leftCalPrevIcon;
|
|
111
|
-
private leftCalNextIcon;
|
|
112
|
-
private leftTitle;
|
|
113
|
-
private rightTitle;
|
|
114
|
-
private rightCalPrevIcon;
|
|
115
|
-
private rightCalNextIcon;
|
|
116
|
-
private inputKeyboardModule;
|
|
117
|
-
protected leftKeyboardModule: KeyboardEvents;
|
|
118
|
-
protected rightKeyboardModule: KeyboardEvents;
|
|
119
|
-
private previousStartValue;
|
|
120
|
-
private previousEndValue;
|
|
121
|
-
private applyButton;
|
|
122
|
-
private cancelButton;
|
|
123
|
-
private startButton;
|
|
124
|
-
private endButton;
|
|
125
|
-
private cloneElement;
|
|
126
|
-
private l10n;
|
|
127
|
-
private isCustomRange;
|
|
128
|
-
private isCustomWindow;
|
|
129
|
-
private presetsItem;
|
|
130
|
-
private liCollections;
|
|
131
|
-
private activeIndex;
|
|
132
|
-
private presetElement;
|
|
133
|
-
private previousEleValue;
|
|
134
|
-
private targetElement;
|
|
135
|
-
private disabledDayCnt;
|
|
136
|
-
private angularTag;
|
|
137
|
-
private inputElement;
|
|
138
|
-
private modal;
|
|
139
|
-
private firstHiddenChild;
|
|
140
|
-
private secondHiddenChild;
|
|
141
|
-
private isKeyPopup;
|
|
142
|
-
private dateDisabled;
|
|
143
|
-
private navNextFunction;
|
|
144
|
-
private navPrevFunction;
|
|
145
|
-
private deviceNavNextFunction;
|
|
146
|
-
private deviceNavPrevFunction;
|
|
147
|
-
private isRangeIconClicked;
|
|
148
|
-
private isMaxDaysClicked;
|
|
149
|
-
private popupKeyboardModule;
|
|
150
|
-
private presetKeyboardModule;
|
|
151
|
-
private btnKeyboardModule;
|
|
152
|
-
private virtualRenderCellArgs;
|
|
153
|
-
private disabledDays;
|
|
154
|
-
private isMobile;
|
|
155
|
-
private keyInputConfigs;
|
|
156
|
-
private defaultConstant;
|
|
157
|
-
private preventBlur;
|
|
158
|
-
private preventFocus;
|
|
159
|
-
private valueType;
|
|
160
|
-
private closeEventArgs;
|
|
161
|
-
private openEventArgs;
|
|
162
|
-
private controlDown;
|
|
163
|
-
private startCopy;
|
|
164
|
-
private endCopy;
|
|
165
|
-
private formElement;
|
|
166
|
-
private formatString;
|
|
167
|
-
private inputFormatsString;
|
|
168
|
-
protected tabIndex: string;
|
|
169
|
-
private invalidValueString;
|
|
170
|
-
private dateRangeOptions;
|
|
171
|
-
private mobileRangePopupWrap;
|
|
172
|
-
protected preventChange: boolean;
|
|
173
|
-
protected touchRangeModule: Touch;
|
|
174
|
-
protected touchRangeStart: boolean;
|
|
175
|
-
protected iconRangeRight: string;
|
|
176
|
-
protected clearButton: HTMLElement;
|
|
177
|
-
/**
|
|
178
|
-
* Gets or sets the start and end date of the Calendar.
|
|
179
|
-
* {% codeBlock src='daterangepicker/value/index.md' %}{% endcodeBlock %}
|
|
180
|
-
*
|
|
181
|
-
* @default null
|
|
182
|
-
*/
|
|
183
|
-
value: Date[] | DateRange;
|
|
184
|
-
/**
|
|
185
|
-
* Enable or disable the persisting component's state between the page reloads. If enabled, following list of states will be persisted.
|
|
186
|
-
* 1. startDate
|
|
187
|
-
* 2. endDate
|
|
188
|
-
* 3. value
|
|
189
|
-
*
|
|
190
|
-
* @default false
|
|
191
|
-
*/
|
|
192
|
-
enablePersistence: boolean;
|
|
193
|
-
/**
|
|
194
|
-
* Gets or sets the minimum date that can be selected in the calendar-popup.
|
|
195
|
-
*
|
|
196
|
-
* @default new Date(1900, 00, 01)
|
|
197
|
-
*/
|
|
198
|
-
min: Date;
|
|
199
|
-
/**
|
|
200
|
-
* Gets or sets the maximum date that can be selected in the calendar-popup.
|
|
201
|
-
*
|
|
202
|
-
* @default new Date(2099, 11, 31)
|
|
203
|
-
*/
|
|
204
|
-
max: Date;
|
|
205
|
-
/**
|
|
206
|
-
* Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
|
|
207
|
-
*
|
|
208
|
-
* @default 'en-US'
|
|
209
|
-
*/
|
|
210
|
-
locale: string;
|
|
211
|
-
/**
|
|
212
|
-
* 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.
|
|
213
|
-
* > For more details about firstDayOfWeek refer to
|
|
214
|
-
* [`First day of week`](../../daterangepicker/customization#first-day-of-week) documentation.
|
|
215
|
-
*
|
|
216
|
-
* @default null
|
|
217
|
-
*/
|
|
218
|
-
firstDayOfWeek: number;
|
|
219
|
-
/**
|
|
220
|
-
* Determines whether the week number of the Calendar is to be displayed or not.
|
|
221
|
-
* The week number is displayed in every week row.
|
|
222
|
-
* > For more details about weekNumber refer to
|
|
223
|
-
* [`Calendar with week number`](../../calendar/how-to/render-the-calendar-with-week-numbers)documentation.
|
|
224
|
-
*
|
|
225
|
-
* @default false
|
|
226
|
-
*/
|
|
227
|
-
weekNumber: boolean;
|
|
228
|
-
/**
|
|
229
|
-
* Gets or sets the Calendar's Type like gregorian or islamic.
|
|
230
|
-
*
|
|
231
|
-
* @default Gregorian
|
|
232
|
-
* @private
|
|
233
|
-
*/
|
|
234
|
-
calendarMode: CalendarType;
|
|
235
|
-
/**
|
|
236
|
-
* By default, the popup opens while clicking on the daterangepicker icon.
|
|
237
|
-
* If you want to open the popup while focusing the daterange input then specify its value as true.
|
|
238
|
-
*
|
|
239
|
-
* @default false
|
|
240
|
-
*/
|
|
241
|
-
openOnFocus: boolean;
|
|
242
|
-
/**
|
|
243
|
-
* Specifies the component popup display full screen in mobile devices.
|
|
244
|
-
*
|
|
245
|
-
* @default false
|
|
246
|
-
*/
|
|
247
|
-
fullScreenMode: boolean;
|
|
248
|
-
/**
|
|
249
|
-
* Triggers when Calendar is created.
|
|
250
|
-
*
|
|
251
|
-
* @event created
|
|
252
|
-
*/
|
|
253
|
-
created: EmitType<Object>;
|
|
254
|
-
/**
|
|
255
|
-
* Triggers when Calendar is destroyed.
|
|
256
|
-
*
|
|
257
|
-
* @event destroyed
|
|
258
|
-
*/
|
|
259
|
-
destroyed: EmitType<Object>;
|
|
260
|
-
/**
|
|
261
|
-
* Triggers when the Calendar value is changed.
|
|
262
|
-
*
|
|
263
|
-
* @event change
|
|
264
|
-
*/
|
|
265
|
-
change: EmitType<RangeEventArgs>;
|
|
266
|
-
/**
|
|
267
|
-
* Triggers when daterangepicker value is cleared using clear button.
|
|
268
|
-
*
|
|
269
|
-
* @event cleared
|
|
270
|
-
*/
|
|
271
|
-
cleared: EmitType<ClearedEventArgs>;
|
|
272
|
-
/**
|
|
273
|
-
* Triggers when the Calendar is navigated to another view or within the same level of view.
|
|
274
|
-
*
|
|
275
|
-
* @event navigated
|
|
276
|
-
*/
|
|
277
|
-
navigated: EmitType<NavigatedEventArgs>;
|
|
278
|
-
/**
|
|
279
|
-
* Triggers when each day cell of the Calendar is rendered.
|
|
280
|
-
*
|
|
281
|
-
* @event renderDayCell
|
|
282
|
-
*/
|
|
283
|
-
renderDayCell: EmitType<RenderDayCellEventArgs>;
|
|
284
|
-
/**
|
|
285
|
-
* Gets or sets the start date of the date range selection.
|
|
286
|
-
*
|
|
287
|
-
* @default null
|
|
288
|
-
*/
|
|
289
|
-
startDate: Date;
|
|
290
|
-
/**
|
|
291
|
-
* Gets or sets the end date of the date range selection.
|
|
292
|
-
*
|
|
293
|
-
* @default null
|
|
294
|
-
*/
|
|
295
|
-
endDate: Date;
|
|
296
|
-
/**
|
|
297
|
-
* Set the predefined ranges which let the user pick required range easily in a component.
|
|
298
|
-
* > For more details refer to
|
|
299
|
-
* [`Preset Ranges`](../../daterangepicker/customization#preset-ranges) documentation.
|
|
300
|
-
* {% codeBlock src='daterangepicker/presets/index.md' %}{% endcodeBlock %}
|
|
301
|
-
*
|
|
302
|
-
* @default null
|
|
303
|
-
*/
|
|
304
|
-
presets: PresetsModel[];
|
|
305
|
-
/**
|
|
306
|
-
* Specifies the width of the DateRangePicker component.
|
|
307
|
-
*
|
|
308
|
-
* @default ''
|
|
309
|
-
*/
|
|
310
|
-
width: number | string;
|
|
311
|
-
/**
|
|
312
|
-
* specifies the z-index value of the dateRangePicker popup element.
|
|
313
|
-
*
|
|
314
|
-
* @default 1000
|
|
315
|
-
* @aspType int
|
|
316
|
-
*/
|
|
317
|
-
zIndex: number;
|
|
318
|
-
/**
|
|
319
|
-
* Specifies whether to show or hide the clear icon
|
|
320
|
-
*
|
|
321
|
-
* @default true
|
|
322
|
-
*/
|
|
323
|
-
showClearButton: boolean;
|
|
324
|
-
/**
|
|
325
|
-
* Specifies whether the today button is to be displayed or not.
|
|
326
|
-
*
|
|
327
|
-
* @default true
|
|
328
|
-
* @hidden
|
|
329
|
-
*/
|
|
330
|
-
showTodayButton: boolean;
|
|
331
|
-
/**
|
|
332
|
-
* Specifies the initial view of the Calendar when it is opened.
|
|
333
|
-
* With the help of this property, initial view can be changed to year or decade view.
|
|
334
|
-
*
|
|
335
|
-
* @default Month
|
|
336
|
-
*/
|
|
337
|
-
start: CalendarView;
|
|
338
|
-
/**
|
|
339
|
-
* Sets the maximum level of view (month, year, decade) in the Calendar.
|
|
340
|
-
* Depth view should be smaller than the start view to restrict its view navigation.
|
|
341
|
-
*
|
|
342
|
-
* @default Month
|
|
343
|
-
*/
|
|
344
|
-
depth: CalendarView;
|
|
345
|
-
/**
|
|
346
|
-
* Sets the root CSS class to the DateRangePicker which allows you to customize the appearance.
|
|
347
|
-
*
|
|
348
|
-
* @default ''
|
|
349
|
-
*/
|
|
350
|
-
cssClass: string;
|
|
351
|
-
/**
|
|
352
|
-
* Sets or gets the string that used between the start and end date string.
|
|
353
|
-
*
|
|
354
|
-
* @default '-'
|
|
355
|
-
*/
|
|
356
|
-
separator: string;
|
|
357
|
-
/**
|
|
358
|
-
* Specifies the minimum span of days that can be allowed in date range selection.
|
|
359
|
-
* > For more details refer to
|
|
360
|
-
* [`Range Span`](../../daterangepicker/range-restriction/#range-span) documentation.
|
|
361
|
-
*
|
|
362
|
-
* @default null
|
|
363
|
-
* @aspType int
|
|
364
|
-
*/
|
|
365
|
-
minDays: number;
|
|
366
|
-
/**
|
|
367
|
-
* Specifies the maximum span of days that can be allowed in a date range selection.
|
|
368
|
-
* > For more details refer to
|
|
369
|
-
* [`Range Span`](../../daterangepicker/range-restriction/#range-span) documentation.
|
|
370
|
-
*
|
|
371
|
-
* @default null
|
|
372
|
-
* @aspType int
|
|
373
|
-
*/
|
|
374
|
-
maxDays: number;
|
|
375
|
-
/**
|
|
376
|
-
* Specifies the component to act as strict which allows entering only a valid date range in a DateRangePicker.
|
|
377
|
-
* > For more details refer to
|
|
378
|
-
* [`Strict Mode`](../../daterangepicker/range-restriction#strict-mode)documentation.
|
|
379
|
-
*
|
|
380
|
-
* @default false
|
|
381
|
-
*/
|
|
382
|
-
strictMode: boolean;
|
|
383
|
-
/**
|
|
384
|
-
* Customizes the key actions in DateRangePicker.
|
|
385
|
-
* For example, when using German keyboard, the key actions can be customized using these shortcuts.
|
|
386
|
-
*
|
|
387
|
-
*
|
|
388
|
-
* Input Navigation
|
|
389
|
-
* <table>
|
|
390
|
-
* <tr>
|
|
391
|
-
* <td colSpan=1 rowSpan=1>
|
|
392
|
-
* Key action<br/></td><td colSpan=1 rowSpan=1>
|
|
393
|
-
* Key<br/></td></tr>
|
|
394
|
-
* <tr>
|
|
395
|
-
* <td colSpan=1 rowSpan=1>
|
|
396
|
-
* altUpArrow<br/></td><td colSpan=1 rowSpan=1>
|
|
397
|
-
* alt+uparrow<br/></td></tr>
|
|
398
|
-
* <tr>
|
|
399
|
-
* <td colSpan=1 rowSpan=1>
|
|
400
|
-
* altDownArrow<br/></td><td colSpan=1 rowSpan=1>
|
|
401
|
-
* alt+downarrow<br/></td></tr>
|
|
402
|
-
* <tr>
|
|
403
|
-
* <td colSpan=1 rowSpan=1>
|
|
404
|
-
* escape<br/></td><td colSpan=1 rowSpan=1>
|
|
405
|
-
* escape<br/></td></tr>
|
|
406
|
-
* </table>
|
|
407
|
-
*
|
|
408
|
-
* Calendar Navigation (Use the following list of keys to navigate the currently focused Calendar after the popup has opened).
|
|
409
|
-
* <table>
|
|
410
|
-
* <tr>
|
|
411
|
-
* <td colSpan=1 rowSpan=1>
|
|
412
|
-
* Key action<br/></td><td colSpan=1 rowSpan=1>
|
|
413
|
-
* Key<br/></td></tr>
|
|
414
|
-
* <tr>
|
|
415
|
-
* <td colSpan=1 rowSpan=1>
|
|
416
|
-
* controlUp<br/></td><td colSpan=1 rowSpan=1>
|
|
417
|
-
* ctrl+38<br/></td></tr>
|
|
418
|
-
* <tr>
|
|
419
|
-
* <td colSpan=1 rowSpan=1>
|
|
420
|
-
* controlDown<br/></td><td colSpan=1 rowSpan=1>
|
|
421
|
-
* ctrl+40<br/></td></tr>
|
|
422
|
-
* <tr>
|
|
423
|
-
* <td colSpan=1 rowSpan=1>
|
|
424
|
-
* moveDown<br/></td><td colSpan=1 rowSpan=1>
|
|
425
|
-
* downarrow<br/></td></tr>
|
|
426
|
-
* <td colSpan=1 rowSpan=1>
|
|
427
|
-
* pageUp<br/></td><td colSpan=1 rowSpan=1>
|
|
428
|
-
* pageup<br/></td></tr>
|
|
429
|
-
* <tr>
|
|
430
|
-
* <td colSpan=1 rowSpan=1>
|
|
431
|
-
* pageDown<br/></td><td colSpan=1 rowSpan=1>
|
|
432
|
-
* pagedown<br/></td></tr>
|
|
433
|
-
* <tr>
|
|
434
|
-
* <td colSpan=1 rowSpan=1>
|
|
435
|
-
* shiftPageUp<br/></td><td colSpan=1 rowSpan=1>
|
|
436
|
-
* shift+pageup<br/></td></tr>
|
|
437
|
-
* <tr>
|
|
438
|
-
* <td colSpan=1 rowSpan=1>
|
|
439
|
-
* shiftPageDown<br/></td><td colSpan=1 rowSpan=1>
|
|
440
|
-
* shift+pagedown<br/></td></tr>
|
|
441
|
-
* <tr>
|
|
442
|
-
* <td colSpan=1 rowSpan=1>
|
|
443
|
-
* moveUp<br/></td><td colSpan=1 rowSpan=1>
|
|
444
|
-
* uparrow<br/></td></tr>
|
|
445
|
-
* <tr>
|
|
446
|
-
* <td colSpan=1 rowSpan=1>
|
|
447
|
-
* moveLeft<br/></td><td colSpan=1 rowSpan=1>
|
|
448
|
-
* leftarrow<br/></td></tr>
|
|
449
|
-
* <tr>
|
|
450
|
-
* <td colSpan=1 rowSpan=1>
|
|
451
|
-
* moveRight<br/></td><td colSpan=1 rowSpan=1>
|
|
452
|
-
* rightarrow<br/></td></tr>
|
|
453
|
-
* <tr>
|
|
454
|
-
* <td colSpan=1 rowSpan=1>
|
|
455
|
-
* select<br/></td><td colSpan=1 rowSpan=1>
|
|
456
|
-
* enter<br/></td></tr>
|
|
457
|
-
* <tr>
|
|
458
|
-
* <td colSpan=1 rowSpan=1>
|
|
459
|
-
* home<br/></td><td colSpan=1 rowSpan=1>
|
|
460
|
-
* home<br/></td></tr>
|
|
461
|
-
* <tr>
|
|
462
|
-
* <td colSpan=1 rowSpan=1>
|
|
463
|
-
* end<br/></td><td colSpan=1 rowSpan=1>
|
|
464
|
-
* end<br/></td></tr>
|
|
465
|
-
* <tr>
|
|
466
|
-
* <tr>
|
|
467
|
-
* <td colSpan=1 rowSpan=1>
|
|
468
|
-
* controlHome<br/></td><td colSpan=1 rowSpan=1>
|
|
469
|
-
* ctrl+home<br/></td></tr>
|
|
470
|
-
* <tr>
|
|
471
|
-
* <td colSpan=1 rowSpan=1>
|
|
472
|
-
* controlEnd<br/></td><td colSpan=1 rowSpan=1>
|
|
473
|
-
* ctrl+end<br/></td></tr>
|
|
474
|
-
* <tr>
|
|
475
|
-
* <td colSpan=1 rowSpan=1>
|
|
476
|
-
* altUpArrow<br/></td><td colSpan=1 rowSpan=1>
|
|
477
|
-
* alt+uparrow<br/></td></tr>
|
|
478
|
-
* <tr>
|
|
479
|
-
* <td colSpan=1 rowSpan=1>
|
|
480
|
-
* spacebar<br/></td><td colSpan=1 rowSpan=1>
|
|
481
|
-
* space<br/></td></tr>
|
|
482
|
-
* <tr>
|
|
483
|
-
* <td colSpan=1 rowSpan=1>
|
|
484
|
-
* enter<br/></td><td colSpan=1 rowSpan=1>
|
|
485
|
-
* enter<br/></td></tr>
|
|
486
|
-
* <tr>
|
|
487
|
-
* <td colSpan=1 rowSpan=1>
|
|
488
|
-
* altRightArrow<br/></td><td colSpan=1 rowSpan=1>
|
|
489
|
-
* alt+rightarrow<br/></td></tr>
|
|
490
|
-
* <tr>
|
|
491
|
-
* <td colSpan=1 rowSpan=1>
|
|
492
|
-
* altLeftArrow<br/></td><td colSpan=1 rowSpan=1>
|
|
493
|
-
* alt+leftarrow<br/></td></tr>
|
|
494
|
-
* </table>
|
|
495
|
-
*
|
|
496
|
-
* {% codeBlock src='daterangepicker/keyConfigs/index.md' %}{% endcodeBlock %}
|
|
497
|
-
*
|
|
498
|
-
* @default null
|
|
499
|
-
*/
|
|
500
|
-
keyConfigs: {
|
|
501
|
-
[key: string]: string;
|
|
502
|
-
};
|
|
503
|
-
/**
|
|
504
|
-
* Sets or gets the required date format to the start and end date string.
|
|
505
|
-
* > For more details refer to
|
|
506
|
-
* [`Format`](https://ej2.syncfusion.com/demos/#/material/daterangepicker/format.html)sample.
|
|
507
|
-
*
|
|
508
|
-
* @aspType string
|
|
509
|
-
* {% codeBlock src='daterangepicker/format/index.md' %}{% endcodeBlock %}
|
|
510
|
-
* @default null
|
|
511
|
-
*/
|
|
512
|
-
format: string | RangeFormatObject;
|
|
513
|
-
/**
|
|
514
|
-
* Specifies an array of acceptable date input formats for parsing user input.
|
|
515
|
-
*
|
|
516
|
-
* @default null
|
|
517
|
-
* @aspType string[]
|
|
518
|
-
*/
|
|
519
|
-
inputFormats: string[] | RangeFormatObject[];
|
|
520
|
-
/**
|
|
521
|
-
* Specifies the component to be disabled which prevents the DateRangePicker from user interactions.
|
|
522
|
-
*
|
|
523
|
-
* @default true
|
|
524
|
-
*/
|
|
525
|
-
enabled: boolean;
|
|
526
|
-
/**
|
|
527
|
-
* Denies the editing the ranges in the DateRangePicker component.
|
|
528
|
-
*
|
|
529
|
-
* @default false
|
|
530
|
-
*/
|
|
531
|
-
readonly: boolean;
|
|
532
|
-
/**
|
|
533
|
-
* > Support for `allowEdit` has been provided from
|
|
534
|
-
* [`v16.2.46`](https://ej2.syncfusion.com/angular/documentation/release-notes/16.2.46/#daterangepicker).
|
|
535
|
-
*
|
|
536
|
-
* Specifies whether the input textbox is editable or not. Here the user can select the value from the
|
|
537
|
-
* popup and cannot edit in the input textbox.
|
|
538
|
-
*
|
|
539
|
-
* @default true
|
|
540
|
-
*/
|
|
541
|
-
allowEdit: boolean;
|
|
542
|
-
/**
|
|
543
|
-
* Specifies the placeholder text to be floated.
|
|
544
|
-
* Possible values are:
|
|
545
|
-
* Never: The label will never float in the input when the placeholder is available.
|
|
546
|
-
* Always: The floating label will always float above the input.
|
|
547
|
-
* Auto: The floating label will float above the input after focusing or entering a value in the input.
|
|
548
|
-
*
|
|
549
|
-
* @default Syncfusion.EJ2.Inputs.FloatLabelType.Never
|
|
550
|
-
* @aspType Syncfusion.EJ2.Inputs.FloatLabelType
|
|
551
|
-
* @isEnumeration true
|
|
552
|
-
*/
|
|
553
|
-
floatLabelType: FloatLabelType | string;
|
|
554
|
-
/**
|
|
555
|
-
* Specifies the placeholder text that need to be displayed in the DateRangePicker component.
|
|
556
|
-
*
|
|
557
|
-
* @default null
|
|
558
|
-
*/
|
|
559
|
-
placeholder: string;
|
|
560
|
-
/**
|
|
561
|
-
* You can add the additional html attributes such as disabled, value etc., to the element.
|
|
562
|
-
* If you configured both property and equivalent html attribute then the component considers the property value.
|
|
563
|
-
* {% codeBlock src='daterangepicker/htmlAttributes/index.md' %}{% endcodeBlock %}
|
|
564
|
-
*
|
|
565
|
-
* @default {}
|
|
566
|
-
*/
|
|
567
|
-
htmlAttributes: {
|
|
568
|
-
[key: string]: string;
|
|
569
|
-
};
|
|
570
|
-
/**
|
|
571
|
-
* Triggers when the DateRangePicker is opened.
|
|
572
|
-
*
|
|
573
|
-
* @event open
|
|
574
|
-
*/
|
|
575
|
-
open: EmitType<Object>;
|
|
576
|
-
/**
|
|
577
|
-
* Triggers when the DateRangePicker is closed.
|
|
578
|
-
*
|
|
579
|
-
* @event close
|
|
580
|
-
*/
|
|
581
|
-
close: EmitType<Object>;
|
|
582
|
-
/**
|
|
583
|
-
* Triggers on selecting the start and end date.
|
|
584
|
-
*
|
|
585
|
-
* @event select
|
|
586
|
-
*/
|
|
587
|
-
select: EmitType<Object>;
|
|
588
|
-
/**
|
|
589
|
-
* Triggers when the control gets focus.
|
|
590
|
-
*
|
|
591
|
-
* @event focus
|
|
592
|
-
*/
|
|
593
|
-
focus: EmitType<FocusEventArgs>;
|
|
594
|
-
/**
|
|
595
|
-
* Triggers when the control loses the focus.
|
|
596
|
-
*
|
|
597
|
-
* @event blur
|
|
598
|
-
*/
|
|
599
|
-
blur: EmitType<BlurEventArgs>;
|
|
600
|
-
/**
|
|
601
|
-
* Constructor for creating the widget
|
|
602
|
-
*
|
|
603
|
-
* @param {DateRangePickerModel} options - Specifies the DateRangePicker model.
|
|
604
|
-
* @param {string | HTMLInputElement} element - Specifies the element to render as component.
|
|
605
|
-
* @private
|
|
606
|
-
*/
|
|
607
|
-
constructor(options?: DateRangePickerModel, element?: string | HTMLInputElement);
|
|
608
|
-
/**
|
|
609
|
-
* To Initialize the control rendering.
|
|
610
|
-
*
|
|
611
|
-
* @returns {void}
|
|
612
|
-
* @private
|
|
613
|
-
*/
|
|
614
|
-
protected render(): void;
|
|
615
|
-
/**
|
|
616
|
-
* Initialize the event handler
|
|
617
|
-
*
|
|
618
|
-
* @returns {void}
|
|
619
|
-
* @private
|
|
620
|
-
*/
|
|
621
|
-
protected preRender(): void;
|
|
622
|
-
private updateValue;
|
|
623
|
-
private initProperty;
|
|
624
|
-
protected checkFormat(): void;
|
|
625
|
-
protected checkInputFormats(): void;
|
|
626
|
-
private initialize;
|
|
627
|
-
private setDataAttribute;
|
|
628
|
-
private setRangeAllowEdit;
|
|
629
|
-
private updateClearIconState;
|
|
630
|
-
protected validationAttribute(element: HTMLElement, input: Element): void;
|
|
631
|
-
private updateHtmlAttributeToWrapper;
|
|
632
|
-
private updateHtmlAttributeToElement;
|
|
633
|
-
private updateCssClass;
|
|
634
|
-
private processPresets;
|
|
635
|
-
protected bindEvents(): void;
|
|
636
|
-
private unBindEvents;
|
|
637
|
-
private updateHiddenInput;
|
|
638
|
-
private inputChangeHandler;
|
|
639
|
-
private bindClearEvent;
|
|
640
|
-
protected resetHandler(e: MouseEvent): void;
|
|
641
|
-
private restoreValue;
|
|
642
|
-
protected formResetHandler(e: MouseEvent): void;
|
|
643
|
-
private clear;
|
|
644
|
-
private rangeIconHandler;
|
|
645
|
-
private checkHtmlAttributes;
|
|
646
|
-
private createPopup;
|
|
647
|
-
private renderControl;
|
|
648
|
-
private clearCalendarEvents;
|
|
649
|
-
private updateNavIcons;
|
|
650
|
-
private calendarIconEvent;
|
|
651
|
-
private bindCalendarEvents;
|
|
652
|
-
private calendarIconRipple;
|
|
653
|
-
private deviceCalendarEvent;
|
|
654
|
-
private deviceNavNext;
|
|
655
|
-
private deviceNavPrevious;
|
|
656
|
-
private updateDeviceCalendar;
|
|
657
|
-
private deviceHeaderClick;
|
|
658
|
-
private inputFocusHandler;
|
|
659
|
-
private inputBlurHandler;
|
|
660
|
-
private getStartEndDate;
|
|
661
|
-
private clearRange;
|
|
662
|
-
private errorClass;
|
|
663
|
-
private keyCalendarUpdate;
|
|
664
|
-
private navInCalendar;
|
|
665
|
-
private firstCellToFocus;
|
|
666
|
-
private keyInputHandler;
|
|
667
|
-
private tabKeyValidation;
|
|
668
|
-
private keyNavigation;
|
|
669
|
-
private inputHandler;
|
|
670
|
-
private bindCalendarCellEvents;
|
|
671
|
-
private removeFocusedDate;
|
|
672
|
-
private hoverSelection;
|
|
673
|
-
private isSameStartEnd;
|
|
674
|
-
private updateRange;
|
|
675
|
-
private checkMinMaxDays;
|
|
676
|
-
private rangeArgs;
|
|
677
|
-
private otherMonthSelect;
|
|
678
|
-
private selectRange;
|
|
679
|
-
private selectableDates;
|
|
680
|
-
private updateMinMaxDays;
|
|
681
|
-
private removeTimeValueFromDate;
|
|
682
|
-
private removeClassDisabled;
|
|
683
|
-
private updateHeader;
|
|
684
|
-
private removeSelection;
|
|
685
|
-
private addSelectedAttributes;
|
|
686
|
-
private removeSelectedAttributes;
|
|
687
|
-
private updateCalendarElement;
|
|
688
|
-
private navPrevMonth;
|
|
689
|
-
private deviceNavigation;
|
|
690
|
-
private updateControl;
|
|
691
|
-
private navNextMonth;
|
|
692
|
-
private isPopupOpen;
|
|
693
|
-
protected createRangeHeader(): HTMLElement;
|
|
694
|
-
private disableInput;
|
|
695
|
-
private validateMinMax;
|
|
696
|
-
private validateRangeStrict;
|
|
697
|
-
private validateRange;
|
|
698
|
-
private validateMinMaxDays;
|
|
699
|
-
private renderCalendar;
|
|
700
|
-
private isSameMonth;
|
|
701
|
-
private isSameYear;
|
|
702
|
-
private isSameDecade;
|
|
703
|
-
private startMonthCurrentDate;
|
|
704
|
-
private selectNextMonth;
|
|
705
|
-
private selectNextYear;
|
|
706
|
-
private selectNextDecade;
|
|
707
|
-
private selectStartMonth;
|
|
708
|
-
private createCalendar;
|
|
709
|
-
private leftNavTitle;
|
|
710
|
-
private calendarNavigation;
|
|
711
|
-
private rightNavTitle;
|
|
712
|
-
protected clickEventEmitter(e: MouseEvent): void;
|
|
713
|
-
/**
|
|
714
|
-
* Gets the current view of the Calendar.
|
|
715
|
-
*
|
|
716
|
-
* @returns {string}
|
|
717
|
-
* @private
|
|
718
|
-
* @hidden
|
|
719
|
-
*/
|
|
720
|
-
currentView(): string;
|
|
721
|
-
protected getCalendarView(view: string): CalendarView;
|
|
722
|
-
protected navigatedEvent(e: MouseEvent): void;
|
|
723
|
-
private createControl;
|
|
724
|
-
private modelRangeCloseHandler;
|
|
725
|
-
private cancelFunction;
|
|
726
|
-
private deviceHeaderUpdate;
|
|
727
|
-
private applyFunction;
|
|
728
|
-
private onMouseClick;
|
|
729
|
-
private onMouseOver;
|
|
730
|
-
private onMouseLeave;
|
|
731
|
-
private setListSelection;
|
|
732
|
-
private removeListSelection;
|
|
733
|
-
private setValue;
|
|
734
|
-
private applyPresetRange;
|
|
735
|
-
private showPopup;
|
|
736
|
-
private renderCustomPopup;
|
|
737
|
-
private listRippleEffect;
|
|
738
|
-
private createPresets;
|
|
739
|
-
private wireListEvents;
|
|
740
|
-
private unWireListEvents;
|
|
741
|
-
private renderPopup;
|
|
742
|
-
private dateRangeSwipeHandler;
|
|
743
|
-
private touchStartRangeHandler;
|
|
744
|
-
protected popupCloseHandler(e: KeyboardEventArgs): void;
|
|
745
|
-
private calendarFocus;
|
|
746
|
-
private presetHeight;
|
|
747
|
-
private presetKeyActionHandler;
|
|
748
|
-
private listMoveDown;
|
|
749
|
-
private listMoveUp;
|
|
750
|
-
private getHoverLI;
|
|
751
|
-
private getActiveLI;
|
|
752
|
-
private popupKeyBoardHandler;
|
|
753
|
-
private setScrollPosition;
|
|
754
|
-
private popupKeyActionHandle;
|
|
755
|
-
private documentHandler;
|
|
756
|
-
private createInput;
|
|
757
|
-
private setEleWidth;
|
|
758
|
-
private adjustLongHeaderWidth;
|
|
759
|
-
private refreshControl;
|
|
760
|
-
private updateInput;
|
|
761
|
-
protected checkInvalidRange(value: string | DateRange | Date[]): void;
|
|
762
|
-
private getstringvalue;
|
|
763
|
-
private checkInvalidValue;
|
|
764
|
-
private isDateDisabled;
|
|
765
|
-
private disabledDateRender;
|
|
766
|
-
private virtualRenderCellEvent;
|
|
767
|
-
private disabledDates;
|
|
768
|
-
private setModelValue;
|
|
769
|
-
/**
|
|
770
|
-
* To dispatch the event manually
|
|
771
|
-
*
|
|
772
|
-
* @param {HTMLElement} element - Specifies the element to dispatch the event.
|
|
773
|
-
* @param {string} type - Specifies the name of the event.
|
|
774
|
-
* @returns {void}
|
|
775
|
-
*/
|
|
776
|
-
protected dispatchEvent(element: HTMLElement, type: string): void;
|
|
777
|
-
private changeTrigger;
|
|
778
|
-
/**
|
|
779
|
-
* This method is used to navigate to the month/year/decade view of the Calendar.
|
|
780
|
-
*
|
|
781
|
-
* @param {string} view - Specifies the view of the Calendar.
|
|
782
|
-
* @param {Date} date - Specifies the focused date in a view.
|
|
783
|
-
* @returns {void}
|
|
784
|
-
* @hidden
|
|
785
|
-
*/
|
|
786
|
-
navigateTo(view: CalendarView, date: Date): void;
|
|
787
|
-
private navigate;
|
|
788
|
-
/**
|
|
789
|
-
* Sets the focus to widget for interaction.
|
|
790
|
-
*
|
|
791
|
-
* @returns {void}
|
|
792
|
-
*/
|
|
793
|
-
focusIn(): void;
|
|
794
|
-
/**
|
|
795
|
-
* Remove the focus from widget, if the widget is in focus state.
|
|
796
|
-
*
|
|
797
|
-
* @returns {void}
|
|
798
|
-
*/
|
|
799
|
-
focusOut(): void;
|
|
800
|
-
/**
|
|
801
|
-
* To destroy the widget.
|
|
802
|
-
*
|
|
803
|
-
* @returns {void}
|
|
804
|
-
*/
|
|
805
|
-
destroy(): void;
|
|
806
|
-
protected ensureInputAttribute(): void;
|
|
807
|
-
/**
|
|
808
|
-
* To get component name
|
|
809
|
-
*
|
|
810
|
-
* @returns {string} Returns the component name.
|
|
811
|
-
* @private
|
|
812
|
-
*/
|
|
813
|
-
protected getModuleName(): string;
|
|
814
|
-
/**
|
|
815
|
-
* Return the properties that are maintained upon browser refresh.
|
|
816
|
-
*
|
|
817
|
-
* @returns {string}
|
|
818
|
-
*/
|
|
819
|
-
getPersistData(): string;
|
|
820
|
-
/**
|
|
821
|
-
* Return the selected range and day span in the DateRangePicker.
|
|
822
|
-
*
|
|
823
|
-
* @returns {Object}
|
|
824
|
-
*/
|
|
825
|
-
getSelectedRange(): Object;
|
|
826
|
-
/**
|
|
827
|
-
* To open the Popup container in the DateRangePicker component.
|
|
828
|
-
*
|
|
829
|
-
* @param {HTMLElement} element - Specifies element.
|
|
830
|
-
* @returns {void}
|
|
831
|
-
*/
|
|
832
|
-
show(element?: HTMLElement, event?: MouseEvent | KeyboardEventArgs | Event): void;
|
|
833
|
-
/**
|
|
834
|
-
* To close the Popup container in the DateRangePicker component.
|
|
835
|
-
*
|
|
836
|
-
* @returns {void}
|
|
837
|
-
*/
|
|
838
|
-
hide(event?: KeyboardEventArgs | MouseEvent | Event): void;
|
|
839
|
-
private setLocale;
|
|
840
|
-
private refreshChange;
|
|
841
|
-
private setDate;
|
|
842
|
-
private enableInput;
|
|
843
|
-
private clearModelvalue;
|
|
844
|
-
private createHiddenInput;
|
|
845
|
-
private setMinMaxDays;
|
|
846
|
-
private getAmPmValue;
|
|
847
|
-
private getStartEndValue;
|
|
848
|
-
/**
|
|
849
|
-
* Called internally if any of the property value changed.
|
|
850
|
-
*
|
|
851
|
-
* @param {DateRangePickerModel} newProp - Returns the dynamic property value of the component.
|
|
852
|
-
* @param {DateRangePickerModel} oldProp - Returns the previous property value of the component.
|
|
853
|
-
* @returns {void}
|
|
854
|
-
* @private
|
|
855
|
-
*/
|
|
856
|
-
onPropertyChanged(newProp: DateRangePickerModel, oldProp: DateRangePickerModel): void;
|
|
857
|
-
}
|