@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.
- package/.eslintrc.json +263 -0
- package/dist/ej2-calendars.min.js +1 -1
- package/dist/ej2-calendars.umd.min.js +1 -1
- package/dist/global/ej2-calendars.min.js +1 -1
- package/dist/global/index.d.ts +1 -1
- package/dist/ts/calendar/calendar-model.d.ts +340 -0
- package/dist/ts/calendar/calendar.d.ts +733 -0
- package/dist/ts/calendar/calendar.ts +3009 -0
- package/dist/ts/calendar/index.d.ts +6 -0
- package/dist/ts/calendar/index.ts +6 -0
- package/dist/ts/calendar/islamic.d.ts +28 -0
- package/dist/ts/calendar/islamic.ts +597 -0
- package/dist/ts/common/index.d.ts +5 -0
- package/dist/ts/common/index.ts +5 -0
- package/dist/ts/common/maskplaceholder-model.d.ts +57 -0
- package/dist/ts/common/maskplaceholder.d.ts +45 -0
- package/dist/ts/common/maskplaceholder.ts +54 -0
- package/dist/ts/datepicker/datepicker-model.d.ts +364 -0
- package/dist/ts/datepicker/datepicker.d.ts +583 -0
- package/dist/ts/datepicker/datepicker.ts +2528 -0
- package/dist/ts/datepicker/index.d.ts +5 -0
- package/dist/ts/datepicker/index.ts +5 -0
- package/dist/ts/daterangepicker/daterangepicker-model.d.ts +496 -0
- package/dist/ts/daterangepicker/daterangepicker.d.ts +857 -0
- package/dist/ts/daterangepicker/daterangepicker.ts +5096 -0
- package/dist/ts/daterangepicker/index.d.ts +5 -0
- package/dist/ts/daterangepicker/index.ts +5 -0
- package/dist/ts/datetimepicker/datetimepicker-model.d.ts +479 -0
- package/dist/ts/datetimepicker/datetimepicker.d.ts +626 -0
- package/dist/ts/datetimepicker/datetimepicker.ts +2212 -0
- package/dist/ts/datetimepicker/index.d.ts +5 -0
- package/dist/ts/datetimepicker/index.ts +5 -0
- package/dist/ts/index.d.ts +9 -0
- package/dist/ts/index.ts +9 -0
- package/dist/ts/maskbase/index.d.ts +5 -0
- package/dist/ts/maskbase/index.ts +5 -0
- package/dist/ts/maskbase/interface.d.ts +28 -0
- package/dist/ts/maskbase/interface.ts +29 -0
- package/dist/ts/maskbase/masked-date-time.d.ts +77 -0
- package/dist/ts/maskbase/masked-date-time.ts +1013 -0
- package/dist/ts/timepicker/index.d.ts +5 -0
- package/dist/ts/timepicker/index.ts +5 -0
- package/dist/ts/timepicker/timepicker-model.d.ts +393 -0
- package/dist/ts/timepicker/timepicker.d.ts +681 -0
- package/dist/ts/timepicker/timepicker.ts +2944 -0
- package/package.json +59 -16
- package/styles/daterangepicker/_fluent2-definition.scss +2 -1
- package/styles/daterangepicker/fluent2.css +2 -1
- package/styles/datetimepicker/_fluent2-definition.scss +1 -1
- package/styles/datetimepicker/fluent2.css +1 -1
- package/styles/fluent2-lite.css +3 -2
- package/styles/fluent2.css +3 -2
- package/tslint.json +111 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class MaskPlaceholder
|
|
5
|
+
*/
|
|
6
|
+
export interface MaskPlaceholderModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the mask placeholder value for day section.
|
|
10
|
+
*
|
|
11
|
+
* @default 'day'
|
|
12
|
+
*/
|
|
13
|
+
day?: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the mask placeholder value for month section.
|
|
17
|
+
*
|
|
18
|
+
* @default 'month'
|
|
19
|
+
*/
|
|
20
|
+
month?: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Specifies the mask placeholder value for year section.
|
|
24
|
+
*
|
|
25
|
+
* @default 'year'
|
|
26
|
+
*/
|
|
27
|
+
year?: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the mask placeholder value for day of the week section.
|
|
31
|
+
*
|
|
32
|
+
* @default 'day of the week'
|
|
33
|
+
*/
|
|
34
|
+
dayOfTheWeek?: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Specifies the mask placeholder value for hour section.
|
|
38
|
+
*
|
|
39
|
+
* @default 'hour'
|
|
40
|
+
*/
|
|
41
|
+
hour?: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the mask placeholder value for minute section.
|
|
45
|
+
*
|
|
46
|
+
* @default 'minute'
|
|
47
|
+
*/
|
|
48
|
+
minute?: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Specifies the mask placeholder value for second section.
|
|
52
|
+
*
|
|
53
|
+
* @default 'second'
|
|
54
|
+
*/
|
|
55
|
+
second?: string;
|
|
56
|
+
|
|
57
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
+
export declare class MaskPlaceholder extends ChildProperty<MaskPlaceholder> {
|
|
3
|
+
/**
|
|
4
|
+
* Specifies the mask placeholder value for day section.
|
|
5
|
+
*
|
|
6
|
+
* @default 'day'
|
|
7
|
+
*/
|
|
8
|
+
day: string;
|
|
9
|
+
/**
|
|
10
|
+
* Specifies the mask placeholder value for month section.
|
|
11
|
+
*
|
|
12
|
+
* @default 'month'
|
|
13
|
+
*/
|
|
14
|
+
month: string;
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the mask placeholder value for year section.
|
|
17
|
+
*
|
|
18
|
+
* @default 'year'
|
|
19
|
+
*/
|
|
20
|
+
year: string;
|
|
21
|
+
/**
|
|
22
|
+
* Specifies the mask placeholder value for day of the week section.
|
|
23
|
+
*
|
|
24
|
+
* @default 'day of the week'
|
|
25
|
+
*/
|
|
26
|
+
dayOfTheWeek: string;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the mask placeholder value for hour section.
|
|
29
|
+
*
|
|
30
|
+
* @default 'hour'
|
|
31
|
+
*/
|
|
32
|
+
hour: string;
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the mask placeholder value for minute section.
|
|
35
|
+
*
|
|
36
|
+
* @default 'minute'
|
|
37
|
+
*/
|
|
38
|
+
minute: string;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the mask placeholder value for second section.
|
|
41
|
+
*
|
|
42
|
+
* @default 'second'
|
|
43
|
+
*/
|
|
44
|
+
second: string;
|
|
45
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
+
|
|
3
|
+
export class MaskPlaceholder extends ChildProperty<MaskPlaceholder> {
|
|
4
|
+
/**
|
|
5
|
+
* Specifies the mask placeholder value for day section.
|
|
6
|
+
*
|
|
7
|
+
* @default 'day'
|
|
8
|
+
*/
|
|
9
|
+
@Property('day')
|
|
10
|
+
public day: string;
|
|
11
|
+
/**
|
|
12
|
+
* Specifies the mask placeholder value for month section.
|
|
13
|
+
*
|
|
14
|
+
* @default 'month'
|
|
15
|
+
*/
|
|
16
|
+
@Property('month')
|
|
17
|
+
public month: string;
|
|
18
|
+
/**
|
|
19
|
+
* Specifies the mask placeholder value for year section.
|
|
20
|
+
*
|
|
21
|
+
* @default 'year'
|
|
22
|
+
*/
|
|
23
|
+
@Property('year')
|
|
24
|
+
public year: string;
|
|
25
|
+
/**
|
|
26
|
+
* Specifies the mask placeholder value for day of the week section.
|
|
27
|
+
*
|
|
28
|
+
* @default 'day of the week'
|
|
29
|
+
*/
|
|
30
|
+
@Property('day of the week')
|
|
31
|
+
public dayOfTheWeek: string;
|
|
32
|
+
/**
|
|
33
|
+
* Specifies the mask placeholder value for hour section.
|
|
34
|
+
*
|
|
35
|
+
* @default 'hour'
|
|
36
|
+
*/
|
|
37
|
+
@Property('hour')
|
|
38
|
+
public hour: string;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the mask placeholder value for minute section.
|
|
41
|
+
*
|
|
42
|
+
* @default 'minute'
|
|
43
|
+
*/
|
|
44
|
+
@Property('minute')
|
|
45
|
+
public minute: string;
|
|
46
|
+
/**
|
|
47
|
+
* Specifies the mask placeholder value for second section.
|
|
48
|
+
*
|
|
49
|
+
* @default 'second'
|
|
50
|
+
*/
|
|
51
|
+
@Property('second')
|
|
52
|
+
public second: string;
|
|
53
|
+
|
|
54
|
+
}
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
import { EventHandler, Property, Internationalization, NotifyPropertyChanges, DateFormatOptions } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, Animation, EmitType, Event, extend, L10n, Browser, formatUnit } from '@syncfusion/ej2-base';import { detach, addClass, removeClass, closest, attributes, Touch, SwipeEventArgs } from '@syncfusion/ej2-base';import { isNullOrUndefined, setValue, getUniqueID, ModuleDeclaration } from '@syncfusion/ej2-base';import { Popup } from '@syncfusion/ej2-popups';import { Input, InputObject, IInput, FloatLabelType } from '@syncfusion/ej2-inputs';import { ChangedEventArgs, CalendarView, Calendar, BlurEventArgs, FocusEventArgs, ClearedEventArgs } from '../calendar/calendar';import { MaskPlaceholderModel } from '../common/maskplaceholder-model';
|
|
2
|
+
import {FormatObject,PopupObjectArgs,PreventableEventArgs} from "./datepicker";
|
|
3
|
+
import {CalendarModel} from "../calendar/calendar-model";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Interface for a class DatePicker
|
|
7
|
+
*/
|
|
8
|
+
export interface DatePickerModel extends CalendarModel{
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the width of the DatePicker component.
|
|
12
|
+
*
|
|
13
|
+
* @default null
|
|
14
|
+
*/
|
|
15
|
+
width?: number | string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Gets or sets the selected date of the Calendar.
|
|
19
|
+
*
|
|
20
|
+
* @default null
|
|
21
|
+
* @isGenericType true
|
|
22
|
+
* @deprecated
|
|
23
|
+
*/
|
|
24
|
+
value?: Date;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the root CSS class of the DatePicker that allows to
|
|
28
|
+
* customize the appearance by overriding the styles.
|
|
29
|
+
*
|
|
30
|
+
* @default null
|
|
31
|
+
*/
|
|
32
|
+
cssClass?: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Specifies the component to act as strict. So that, it allows to enter only a valid date value within a specified range or else it
|
|
36
|
+
* will resets to previous value. By default, strictMode is in false.
|
|
37
|
+
* it allows invalid or out-of-range date value with highlighted error class.
|
|
38
|
+
*
|
|
39
|
+
* @default false
|
|
40
|
+
* > For more details refer to
|
|
41
|
+
* [`Strict Mode`](../../datepicker/strict-mode/) documentation.
|
|
42
|
+
*/
|
|
43
|
+
strictMode?: boolean;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Specifies the format of the value that to be displayed in component. By default, the format is based on the culture. You can set
|
|
47
|
+
* the format to "format:'dd/MM/yyyy hh:mm'" or "format:{skeleton:'medium'}" either in string or object.
|
|
48
|
+
* > To know more about the date format standards, refer to the Internationalization Date Format
|
|
49
|
+
* [`Internationalization`](../../common/internationalization/#custom-formats) section.
|
|
50
|
+
*
|
|
51
|
+
* @default null
|
|
52
|
+
* @aspType string
|
|
53
|
+
*/
|
|
54
|
+
format?: string | FormatObject;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Specifies an array of acceptable date input formats for parsing user input.
|
|
58
|
+
*
|
|
59
|
+
* @default null
|
|
60
|
+
* @aspType string[]
|
|
61
|
+
*/
|
|
62
|
+
inputFormats?: string[] | FormatObject[];
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Specifies the component to be disabled or not.
|
|
66
|
+
*
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
69
|
+
enabled?: boolean;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Specifies the component popup display full screen in mobile devices.
|
|
73
|
+
*
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
fullScreenMode?: boolean;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* You can add the additional html attributes such as disabled, value etc., to the element.
|
|
80
|
+
* If you configured both property and equivalent html attribute then the component considers the property value.
|
|
81
|
+
* {% codeBlock src='datepicker/htmlAttributes/index.md' %}{% endcodeBlock %}
|
|
82
|
+
*
|
|
83
|
+
* @default {}
|
|
84
|
+
*/
|
|
85
|
+
htmlAttributes?: { [key: string]: string };
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Gets or sets multiple selected dates of the calendar.
|
|
89
|
+
*
|
|
90
|
+
* @default null
|
|
91
|
+
* @private
|
|
92
|
+
*/
|
|
93
|
+
values?: Date[];
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Specifies the option to enable the multiple dates selection of the calendar.
|
|
97
|
+
*
|
|
98
|
+
* @default false
|
|
99
|
+
* @private
|
|
100
|
+
*/
|
|
101
|
+
isMultiSelection?: boolean;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Specifies whether to show or hide the clear icon in textbox.
|
|
105
|
+
*
|
|
106
|
+
* @default true
|
|
107
|
+
*/
|
|
108
|
+
showClearButton?: boolean;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* > Support for `allowEdit` has been provided from
|
|
112
|
+
* [`v16.2.46`](https://ej2.syncfusion.com/angular/documentation/release-notes/16.2.46/#datepicker).
|
|
113
|
+
*
|
|
114
|
+
* Specifies whether the input textbox is editable or not. Here the user can select the value from the
|
|
115
|
+
* popup and cannot edit in the input textbox.
|
|
116
|
+
*
|
|
117
|
+
* @default true
|
|
118
|
+
*/
|
|
119
|
+
allowEdit?: boolean;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Customizes the key actions in DatePicker.
|
|
123
|
+
* For example, when using German keyboard, the key actions can be customized using these shortcuts.
|
|
124
|
+
*
|
|
125
|
+
*
|
|
126
|
+
* Input Navigation
|
|
127
|
+
* <table>
|
|
128
|
+
* <tr>
|
|
129
|
+
* <td colSpan=1 rowSpan=1>
|
|
130
|
+
* Key action<br/></td><td colSpan=1 rowSpan=1>
|
|
131
|
+
* Key<br/></td></tr>
|
|
132
|
+
* <tr>
|
|
133
|
+
* <td colSpan=1 rowSpan=1>
|
|
134
|
+
* altUpArrow<br/></td><td colSpan=1 rowSpan=1>
|
|
135
|
+
* alt+uparrow<br/></td></tr>
|
|
136
|
+
* <tr>
|
|
137
|
+
* <td colSpan=1 rowSpan=1>
|
|
138
|
+
* altDownArrow<br/></td><td colSpan=1 rowSpan=1>
|
|
139
|
+
* alt+downarrow<br/></td></tr>
|
|
140
|
+
* <tr>
|
|
141
|
+
* <td colSpan=1 rowSpan=1>
|
|
142
|
+
* escape<br/></td><td colSpan=1 rowSpan=1>
|
|
143
|
+
* escape<br/></td></tr>
|
|
144
|
+
* </table>
|
|
145
|
+
*
|
|
146
|
+
* Calendar Navigation
|
|
147
|
+
* <table>
|
|
148
|
+
* <tr>
|
|
149
|
+
* <td colSpan=1 rowSpan=1>
|
|
150
|
+
* Key action<br/></td><td colSpan=1 rowSpan=1>
|
|
151
|
+
* Key<br/></td></tr>
|
|
152
|
+
* <tr>
|
|
153
|
+
* <td colSpan=1 rowSpan=1>
|
|
154
|
+
* controlUp<br/></td><td colSpan=1 rowSpan=1>
|
|
155
|
+
* ctrl+38<br/></td></tr>
|
|
156
|
+
* <tr>
|
|
157
|
+
* <td colSpan=1 rowSpan=1>
|
|
158
|
+
* controlDown<br/></td><td colSpan=1 rowSpan=1>
|
|
159
|
+
* ctrl+40<br/></td></tr>
|
|
160
|
+
* <tr>
|
|
161
|
+
* <td colSpan=1 rowSpan=1>
|
|
162
|
+
* moveDown<br/></td><td colSpan=1 rowSpan=1>
|
|
163
|
+
* downarrow<br/></td></tr>
|
|
164
|
+
* <tr>
|
|
165
|
+
* <td colSpan=1 rowSpan=1>
|
|
166
|
+
* moveUp<br/></td><td colSpan=1 rowSpan=1>
|
|
167
|
+
* uparrow<br/></td></tr>
|
|
168
|
+
* <tr>
|
|
169
|
+
* <td colSpan=1 rowSpan=1>
|
|
170
|
+
* moveLeft<br/></td><td colSpan=1 rowSpan=1>
|
|
171
|
+
* leftarrow<br/></td></tr>
|
|
172
|
+
* <tr>
|
|
173
|
+
* <td colSpan=1 rowSpan=1>
|
|
174
|
+
* moveRight<br/></td><td colSpan=1 rowSpan=1>
|
|
175
|
+
* rightarrow<br/></td></tr>
|
|
176
|
+
* <tr>
|
|
177
|
+
* <td colSpan=1 rowSpan=1>
|
|
178
|
+
* shiftPageUp<br/></td><td colSpan=1 rowSpan=1>
|
|
179
|
+
* shift+pageup<br/></td></tr>
|
|
180
|
+
* <tr>
|
|
181
|
+
* <td colSpan=1 rowSpan=1>
|
|
182
|
+
* shiftPageDown<br/></td><td colSpan=1 rowSpan=1>
|
|
183
|
+
* shift+pagedown<br/></td></tr>
|
|
184
|
+
* <tr>
|
|
185
|
+
* <tr>
|
|
186
|
+
* <td colSpan=1 rowSpan=1>
|
|
187
|
+
* select<br/></td><td colSpan=1 rowSpan=1>
|
|
188
|
+
* enter<br/></td></tr>
|
|
189
|
+
* <tr>
|
|
190
|
+
* <td colSpan=1 rowSpan=1>
|
|
191
|
+
* home<br/></td><td colSpan=1 rowSpan=1>
|
|
192
|
+
* home<br/></td></tr>
|
|
193
|
+
* <tr>
|
|
194
|
+
* <td colSpan=1 rowSpan=1>
|
|
195
|
+
* end<br/></td><td colSpan=1 rowSpan=1>
|
|
196
|
+
* end<br/></td></tr>
|
|
197
|
+
* <tr>
|
|
198
|
+
* <td colSpan=1 rowSpan=1>
|
|
199
|
+
* pageUp<br/></td><td colSpan=1 rowSpan=1>
|
|
200
|
+
* pageup<br/></td></tr>
|
|
201
|
+
* <tr>
|
|
202
|
+
* <td colSpan=1 rowSpan=1>
|
|
203
|
+
* pageDown<br/></td><td colSpan=1 rowSpan=1>
|
|
204
|
+
* pagedown<br/></td></tr>
|
|
205
|
+
* <td colSpan=1 rowSpan=1>
|
|
206
|
+
* controlHome<br/></td><td colSpan=1 rowSpan=1>
|
|
207
|
+
* ctrl+home<br/></td></tr>
|
|
208
|
+
* <tr>
|
|
209
|
+
* <td colSpan=1 rowSpan=1>
|
|
210
|
+
* controlEnd<br/></td><td colSpan=1 rowSpan=1>
|
|
211
|
+
* ctrl+end<br/></td></tr>
|
|
212
|
+
* <tr>
|
|
213
|
+
* <td colSpan=1 rowSpan=1>
|
|
214
|
+
* altUpArrow<br/></td><td colSpan=1 rowSpan=1>
|
|
215
|
+
* alt+uparrow<br/></td></tr>
|
|
216
|
+
* <tr>
|
|
217
|
+
* <td colSpan=1 rowSpan=1>
|
|
218
|
+
* spacebar<br/></td><td colSpan=1 rowSpan=1>
|
|
219
|
+
* space<br/></td></tr>
|
|
220
|
+
* <tr>
|
|
221
|
+
* <td colSpan=1 rowSpan=1>
|
|
222
|
+
* altRightArrow<br/></td><td colSpan=1 rowSpan=1>
|
|
223
|
+
* alt+rightarrow<br/></td></tr>
|
|
224
|
+
* <tr>
|
|
225
|
+
* <td colSpan=1 rowSpan=1>
|
|
226
|
+
* altLeftArrow<br/></td><td colSpan=1 rowSpan=1>
|
|
227
|
+
* alt+leftarrow<br/></td></tr>
|
|
228
|
+
* </table>
|
|
229
|
+
*
|
|
230
|
+
* {% codeBlock src='datepicker/keyConfigs/index.md' %}{% endcodeBlock %}
|
|
231
|
+
*
|
|
232
|
+
* @default null
|
|
233
|
+
* @deprecated
|
|
234
|
+
*/
|
|
235
|
+
keyConfigs?: { [key: string]: string };
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Enable or disable persisting component's state between page reloads. If enabled, following list of states will be persisted.
|
|
239
|
+
* 1. value
|
|
240
|
+
*
|
|
241
|
+
* @default false
|
|
242
|
+
* @deprecated
|
|
243
|
+
*/
|
|
244
|
+
enablePersistence?: boolean;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* specifies the z-index value of the datePicker popup element.
|
|
248
|
+
*
|
|
249
|
+
* @default 1000
|
|
250
|
+
* @aspType int
|
|
251
|
+
*/
|
|
252
|
+
zIndex?: number;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Specifies the component in readonly state. When the Component is readonly it does not allow user input.
|
|
256
|
+
*
|
|
257
|
+
* @default false
|
|
258
|
+
*/
|
|
259
|
+
readonly?: boolean;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Specifies the placeholder text that displayed in textbox.
|
|
263
|
+
*
|
|
264
|
+
* @default null
|
|
265
|
+
*/
|
|
266
|
+
placeholder?: string;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Specifies the placeholder text to be floated.
|
|
270
|
+
* Possible values are:
|
|
271
|
+
* Never: The label will never float in the input when the placeholder is available.
|
|
272
|
+
* Always: The floating label will always float above the input.
|
|
273
|
+
* Auto: The floating label will float above the input after focusing or entering a value in the input.
|
|
274
|
+
*
|
|
275
|
+
* @default Syncfusion.EJ2.Inputs.FloatLabelType.Never
|
|
276
|
+
* @aspType Syncfusion.EJ2.Inputs.FloatLabelType
|
|
277
|
+
* @isEnumeration true
|
|
278
|
+
*/
|
|
279
|
+
floatLabelType?: FloatLabelType | string;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* By default, the date value will be processed based on system time zone.
|
|
283
|
+
* If you want to process the initial date value using server time zone
|
|
284
|
+
* then specify the time zone value to `serverTimezoneOffset` property.
|
|
285
|
+
*
|
|
286
|
+
* @default null
|
|
287
|
+
* @deprecated
|
|
288
|
+
*/
|
|
289
|
+
serverTimezoneOffset?: number;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* By default, the popup opens while clicking on the datepicker icon.
|
|
293
|
+
* If you want to open the popup while focusing the date input then specify its value as true.
|
|
294
|
+
*
|
|
295
|
+
* @default false
|
|
296
|
+
*/
|
|
297
|
+
openOnFocus?: boolean;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Specifies whether it is a masked datepicker or not.
|
|
301
|
+
* By default the datepicker component render without masked input.
|
|
302
|
+
* If you need masked datepicker input then specify it as true.
|
|
303
|
+
*
|
|
304
|
+
* @default false
|
|
305
|
+
*/
|
|
306
|
+
enableMask?: boolean;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Specifies the mask placeholder to be displayed on masked datepicker.
|
|
310
|
+
*
|
|
311
|
+
* @default {day:'day' , month:'month', year: 'year', hour:'hour',minute:'minute',second:'second',dayOfTheWeek: 'day of the week'}
|
|
312
|
+
*/
|
|
313
|
+
maskPlaceholder?: MaskPlaceholderModel;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Triggers when the popup is opened.
|
|
317
|
+
*
|
|
318
|
+
* @event open
|
|
319
|
+
*/
|
|
320
|
+
open?: EmitType<PreventableEventArgs | PopupObjectArgs>;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Triggers when datepicker value is cleared using clear button.
|
|
324
|
+
*
|
|
325
|
+
* @event cleared
|
|
326
|
+
*/
|
|
327
|
+
cleared?: EmitType<ClearedEventArgs>;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Triggers when the popup is closed.
|
|
331
|
+
*
|
|
332
|
+
* @event close
|
|
333
|
+
*/
|
|
334
|
+
close?: EmitType<PreventableEventArgs | PopupObjectArgs>;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Triggers when the input loses the focus.
|
|
338
|
+
*
|
|
339
|
+
* @event blur
|
|
340
|
+
*/
|
|
341
|
+
blur?: EmitType<BlurEventArgs>;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Triggers when the input gets focus.
|
|
345
|
+
*
|
|
346
|
+
* @event focus
|
|
347
|
+
*/
|
|
348
|
+
focus?: EmitType<FocusEventArgs>;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Triggers when the component is created.
|
|
352
|
+
*
|
|
353
|
+
* @event created
|
|
354
|
+
*/
|
|
355
|
+
created?: EmitType<Object>;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Triggers when the component is destroyed.
|
|
359
|
+
*
|
|
360
|
+
* @event destroyed
|
|
361
|
+
*/
|
|
362
|
+
destroyed?: EmitType<Object>;
|
|
363
|
+
|
|
364
|
+
}
|