forked from syncfusion/ej2-react-ui-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathej2-react-calendars.es2015.js
148 lines (141 loc) · 4.63 KB
/
ej2-react-calendars.es2015.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
import { PureComponent, createElement } from 'react';
import { Calendar, DatePicker, DateRangePicker, DateTimePicker, TimePicker } from '@syncfusion/ej2-calendars';
import { ComplexBase, ComponentBase, applyMixins } from '@syncfusion/ej2-react-base';
/**
* Represents the Essential JS 2 React Calendar Component.
* ```ts
* <CalendarComponent value={date}></CalendarComponent>
* ```
*/
class CalendarComponent extends Calendar {
constructor(props) {
super(props);
this.initRenderCalled = false;
this.checkInjectedModules = false;
}
render() {
if ((this.element && !this.initRenderCalled) || this.refreshing) {
super.render();
this.initRenderCalled = true;
}
else {
return createElement('div', this.getDefaultAttributes(), this.props.children);
}
}
}
applyMixins(CalendarComponent, [ComponentBase, PureComponent]);
/**
* Represents the Essential JS 2 React DatePicker Component.
* ```ts
* <DatePickerComponent value={date}></DatePickerComponent>
* ```
*/
class DatePickerComponent extends DatePicker {
constructor(props) {
super(props);
this.initRenderCalled = false;
this.checkInjectedModules = false;
}
render() {
if ((this.element && !this.initRenderCalled) || this.refreshing) {
super.render();
this.initRenderCalled = true;
}
else {
return createElement('input', this.getDefaultAttributes());
}
}
}
applyMixins(DatePickerComponent, [ComponentBase, PureComponent]);
/**
* Represents the Essential JS 2 React TimePicker Component.
* ```html
* <TimePickerComponent value={value}></TimePickerComponent>
* ```
*/
class TimePickerComponent extends TimePicker {
constructor(props) {
super(props);
this.initRenderCalled = false;
this.checkInjectedModules = false;
}
render() {
if ((this.element && !this.initRenderCalled) || this.refreshing) {
super.render();
this.initRenderCalled = true;
}
else {
return createElement('input', this.getDefaultAttributes());
}
}
}
applyMixins(TimePickerComponent, [ComponentBase, PureComponent]);
/**
* `PresetsDirective` represent a presets of the react daterangepicker.
* It must be contained in a daterangepicker component(`DateRangePickerComponent`).
* ```tsx
* <DateRangePickerComponent id='range'>
* <PresetsDirective>
* <PresetDirective label='Last Week' start={new Date('06/07/2018')} end= {new Date('06/01/2018')}></PresetDirective>
* <PresetDirective label='Last Month' start={new Date('06/07/2018')} end= {new Date('05/07/2018')]></PresetDirective>
* </PresetsDirective>
* </DateRangePickerComponent>
* ```
*/
class PresetDirective extends ComplexBase {
}
PresetDirective.moduleName = 'preset';
class PresetsDirective extends ComplexBase {
}
PresetsDirective.propertyName = 'presets';
PresetsDirective.moduleName = 'presets';
/**
* Represents the Essential JS 2 React DateRangePicker Component.
* ```ts
* <DateRangePickerComponent startDate={date} endDate={date}></DateRangePickerComponent>
* ```
*/
class DateRangePickerComponent extends DateRangePicker {
constructor(props) {
super(props);
this.initRenderCalled = false;
this.checkInjectedModules = false;
this.directivekeys = { 'presets': 'preset' };
}
render() {
if ((this.element && !this.initRenderCalled) || this.refreshing) {
super.render();
this.initRenderCalled = true;
}
else {
return createElement('input', this.getDefaultAttributes());
}
}
}
applyMixins(DateRangePickerComponent, [ComponentBase, PureComponent]);
/**
* Represents the Essential JS 2 React DateTimePicker Component.
* ```ts
* <DateTimePickerComponent value={dateTime}></DateTimePickerComponent>
* ```
*/
class DateTimePickerComponent extends DateTimePicker {
constructor(props) {
super(props);
this.initRenderCalled = false;
this.checkInjectedModules = false;
}
render() {
if ((this.element && !this.initRenderCalled) || this.refreshing) {
super.render();
this.initRenderCalled = true;
}
else {
return createElement('input', this.getDefaultAttributes());
}
}
}
applyMixins(DateTimePickerComponent, [ComponentBase, PureComponent]);
export { CalendarComponent, DatePickerComponent, TimePickerComponent, PresetDirective, PresetsDirective, DateRangePickerComponent, DateTimePickerComponent };
export * from '@syncfusion/ej2-calendars';
//# sourceMappingURL=ej2-react-calendars.es2015.js.map