@syncfusion/ej2-angular-calendars 31.2.18-ngcc → 31.2.18
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/CHANGELOG.md +1419 -0
- package/README.md +12 -5
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/src/calendar/calendar-all.module.mjs +29 -0
- package/esm2020/src/calendar/calendar.component.mjs +91 -0
- package/esm2020/src/calendar/calendar.module.mjs +25 -0
- package/esm2020/src/datepicker/datepicker-all.module.mjs +29 -0
- package/esm2020/src/datepicker/datepicker.component.mjs +99 -0
- package/esm2020/src/datepicker/datepicker.module.mjs +25 -0
- package/esm2020/src/daterangepicker/daterangepicker-all.module.mjs +23 -0
- package/esm2020/src/daterangepicker/daterangepicker.component.mjs +103 -0
- package/esm2020/src/daterangepicker/daterangepicker.module.mjs +34 -0
- package/esm2020/src/daterangepicker/presets.directive.mjs +58 -0
- package/esm2020/src/datetimepicker/datetimepicker-all.module.mjs +23 -0
- package/esm2020/src/datetimepicker/datetimepicker.component.mjs +99 -0
- package/esm2020/src/datetimepicker/datetimepicker.module.mjs +25 -0
- package/esm2020/src/index.mjs +18 -0
- package/esm2020/src/timepicker/timepicker-all.module.mjs +23 -0
- package/esm2020/src/timepicker/timepicker.component.mjs +92 -0
- package/esm2020/src/timepicker/timepicker.module.mjs +25 -0
- package/esm2020/syncfusion-ej2-angular-calendars.mjs +5 -0
- package/fesm2015/syncfusion-ej2-angular-calendars.mjs +735 -0
- package/fesm2015/syncfusion-ej2-angular-calendars.mjs.map +1 -0
- package/fesm2020/syncfusion-ej2-angular-calendars.mjs +735 -0
- package/fesm2020/syncfusion-ej2-angular-calendars.mjs.map +1 -0
- package/package.json +20 -7
- package/public_api.d.ts +1 -1
- package/src/calendar/calendar-all.module.d.ts +13 -7
- package/src/calendar/calendar.component.d.ts +45 -42
- package/src/calendar/calendar.module.d.ts +11 -5
- package/src/datepicker/datepicker-all.module.d.ts +13 -7
- package/src/datepicker/datepicker.component.d.ts +48 -45
- package/src/datepicker/datepicker.module.d.ts +11 -5
- package/src/daterangepicker/daterangepicker-all.module.d.ts +11 -5
- package/src/daterangepicker/daterangepicker.component.d.ts +60 -57
- package/src/daterangepicker/daterangepicker.module.d.ts +12 -5
- package/src/daterangepicker/presets.directive.d.ts +43 -38
- package/src/datetimepicker/datetimepicker-all.module.d.ts +11 -5
- package/src/datetimepicker/datetimepicker.component.d.ts +48 -45
- package/src/datetimepicker/datetimepicker.module.d.ts +11 -5
- package/src/index.d.ts +17 -17
- package/src/timepicker/timepicker-all.module.d.ts +11 -5
- package/src/timepicker/timepicker.component.d.ts +47 -44
- package/src/timepicker/timepicker.module.d.ts +11 -5
- package/syncfusion-ej2-angular-calendars.d.ts +5 -0
- package/@syncfusion/ej2-angular-calendars.es5.js +0 -1048
- package/@syncfusion/ej2-angular-calendars.es5.js.map +0 -1
- package/@syncfusion/ej2-angular-calendars.js +0 -981
- package/@syncfusion/ej2-angular-calendars.js.map +0 -1
- package/LICENSE +0 -10
- package/dist/ej2-angular-calendars.umd.js +0 -1093
- package/dist/ej2-angular-calendars.umd.js.map +0 -1
- package/dist/ej2-angular-calendars.umd.min.js +0 -11
- package/dist/ej2-angular-calendars.umd.min.js.map +0 -1
- package/ej2-angular-calendars.d.ts +0 -9
- package/ej2-angular-calendars.metadata.json +0 -1
|
@@ -0,0 +1,735 @@
|
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { forwardRef, Component, ChangeDetectionStrategy, NgModule, Directive, ContentChildren, ContentChild } from '@angular/core';
|
|
4
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
|
+
import { setValue, FormBase, ComponentBase, ComponentMixins, ComplexBase, ArrayBase, Template } from '@syncfusion/ej2-angular-base';
|
|
6
|
+
import { Calendar, Islamic, DatePicker, MaskedDateTime, TimePicker, DateRangePicker, DateTimePicker } from '@syncfusion/ej2-calendars';
|
|
7
|
+
export * from '@syncfusion/ej2-calendars';
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
9
|
+
|
|
10
|
+
var CalendarComponent_1;
|
|
11
|
+
const inputs$4 = ['calendarMode', 'cssClass', 'dayHeaderFormat', 'depth', 'enablePersistence', 'enableRtl', 'enabled', 'firstDayOfWeek', 'isMultiSelection', 'keyConfigs', 'locale', 'max', 'min', 'serverTimezoneOffset', 'showTodayButton', 'start', 'value', 'values', 'weekNumber', 'weekRule'];
|
|
12
|
+
const outputs$5 = ['focus', 'blur', 'change', 'created', 'destroyed', 'navigated', 'renderDayCell', 'valueChange', 'valuesChange'];
|
|
13
|
+
const twoWays$4 = ['value', 'values'];
|
|
14
|
+
/**
|
|
15
|
+
* Represents the Essential JS 2 Angular Calendar Component.
|
|
16
|
+
* ```html
|
|
17
|
+
* <ejs-calendar [value]='date'></ejs-calendar>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
let CalendarComponent = CalendarComponent_1 = class CalendarComponent extends Calendar {
|
|
21
|
+
constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
22
|
+
super();
|
|
23
|
+
this.ngEle = ngEle;
|
|
24
|
+
this.srenderer = srenderer;
|
|
25
|
+
this.viewContainerRef = viewContainerRef;
|
|
26
|
+
this.injector = injector;
|
|
27
|
+
this.cdr = cdr;
|
|
28
|
+
this.element = this.ngEle.nativeElement;
|
|
29
|
+
this.injectedModules = this.injectedModules || [];
|
|
30
|
+
try {
|
|
31
|
+
let mod = this.injector.get('CalendarsIslamic');
|
|
32
|
+
if (this.injectedModules.indexOf(mod) === -1) {
|
|
33
|
+
this.injectedModules.push(mod);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
catch { }
|
|
37
|
+
this.registerEvents(outputs$5);
|
|
38
|
+
this.addTwoWay.call(this, twoWays$4);
|
|
39
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
40
|
+
this.formContext = new FormBase();
|
|
41
|
+
this.formCompContext = new ComponentBase();
|
|
42
|
+
}
|
|
43
|
+
registerOnChange(registerFunction) {
|
|
44
|
+
}
|
|
45
|
+
registerOnTouched(registerFunction) {
|
|
46
|
+
}
|
|
47
|
+
writeValue(value) {
|
|
48
|
+
}
|
|
49
|
+
setDisabledState(disabled) {
|
|
50
|
+
}
|
|
51
|
+
ngOnInit() {
|
|
52
|
+
this.formCompContext.ngOnInit(this);
|
|
53
|
+
}
|
|
54
|
+
ngAfterViewInit() {
|
|
55
|
+
this.formContext.ngAfterViewInit(this);
|
|
56
|
+
}
|
|
57
|
+
ngOnDestroy() {
|
|
58
|
+
this.formCompContext.ngOnDestroy(this);
|
|
59
|
+
}
|
|
60
|
+
ngAfterContentChecked() {
|
|
61
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
CalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CalendarComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
65
|
+
CalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: CalendarComponent, selector: "ejs-calendar", inputs: { calendarMode: "calendarMode", cssClass: "cssClass", dayHeaderFormat: "dayHeaderFormat", depth: "depth", enablePersistence: "enablePersistence", enableRtl: "enableRtl", enabled: "enabled", firstDayOfWeek: "firstDayOfWeek", isMultiSelection: "isMultiSelection", keyConfigs: "keyConfigs", locale: "locale", max: "max", min: "min", serverTimezoneOffset: "serverTimezoneOffset", showTodayButton: "showTodayButton", start: "start", value: "value", values: "values", weekNumber: "weekNumber", weekRule: "weekRule" }, outputs: { focus: "focus", blur: "blur", change: "change", created: "created", destroyed: "destroyed", navigated: "navigated", renderDayCell: "renderDayCell", valueChange: "valueChange", valuesChange: "valuesChange" }, providers: [
|
|
66
|
+
{
|
|
67
|
+
provide: NG_VALUE_ACCESSOR,
|
|
68
|
+
useExisting: forwardRef(() => CalendarComponent_1),
|
|
69
|
+
multi: true
|
|
70
|
+
}
|
|
71
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
72
|
+
CalendarComponent = CalendarComponent_1 = __decorate([
|
|
73
|
+
ComponentMixins([ComponentBase, FormBase])
|
|
74
|
+
], CalendarComponent);
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CalendarComponent, decorators: [{
|
|
76
|
+
type: Component,
|
|
77
|
+
args: [{
|
|
78
|
+
selector: 'ejs-calendar',
|
|
79
|
+
inputs: inputs$4,
|
|
80
|
+
outputs: outputs$5,
|
|
81
|
+
template: '',
|
|
82
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
83
|
+
providers: [
|
|
84
|
+
{
|
|
85
|
+
provide: NG_VALUE_ACCESSOR,
|
|
86
|
+
useExisting: forwardRef(() => CalendarComponent),
|
|
87
|
+
multi: true
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
queries: {}
|
|
91
|
+
}]
|
|
92
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }]; } });
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* NgModule definition for the Calendar component.
|
|
96
|
+
*/
|
|
97
|
+
class CalendarModule {
|
|
98
|
+
}
|
|
99
|
+
CalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
100
|
+
CalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CalendarModule, declarations: [CalendarComponent], imports: [CommonModule], exports: [CalendarComponent] });
|
|
101
|
+
CalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CalendarModule, imports: [[CommonModule]] });
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CalendarModule, decorators: [{
|
|
103
|
+
type: NgModule,
|
|
104
|
+
args: [{
|
|
105
|
+
imports: [CommonModule],
|
|
106
|
+
declarations: [
|
|
107
|
+
CalendarComponent
|
|
108
|
+
],
|
|
109
|
+
exports: [
|
|
110
|
+
CalendarComponent
|
|
111
|
+
]
|
|
112
|
+
}]
|
|
113
|
+
}] });
|
|
114
|
+
|
|
115
|
+
const IslamicService = { provide: 'CalendarsIslamic', useValue: Islamic };
|
|
116
|
+
/**
|
|
117
|
+
* NgModule definition for the Calendar component with providers.
|
|
118
|
+
*/
|
|
119
|
+
class CalendarAllModule {
|
|
120
|
+
}
|
|
121
|
+
CalendarAllModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CalendarAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
122
|
+
CalendarAllModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CalendarAllModule, imports: [CommonModule, CalendarModule], exports: [CalendarModule] });
|
|
123
|
+
CalendarAllModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CalendarAllModule, providers: [
|
|
124
|
+
IslamicService
|
|
125
|
+
], imports: [[CommonModule, CalendarModule], CalendarModule] });
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CalendarAllModule, decorators: [{
|
|
127
|
+
type: NgModule,
|
|
128
|
+
args: [{
|
|
129
|
+
imports: [CommonModule, CalendarModule],
|
|
130
|
+
exports: [
|
|
131
|
+
CalendarModule
|
|
132
|
+
],
|
|
133
|
+
providers: [
|
|
134
|
+
IslamicService
|
|
135
|
+
]
|
|
136
|
+
}]
|
|
137
|
+
}] });
|
|
138
|
+
|
|
139
|
+
var DatePickerComponent_1;
|
|
140
|
+
const inputs$3 = ['allowEdit', 'calendarMode', 'cssClass', 'dayHeaderFormat', 'depth', 'enableMask', 'enablePersistence', 'enableRtl', 'enabled', 'firstDayOfWeek', 'floatLabelType', 'format', 'fullScreenMode', 'htmlAttributes', 'inputFormats', 'isMultiSelection', 'keyConfigs', 'locale', 'maskPlaceholder', 'max', 'min', 'openOnFocus', 'placeholder', 'readonly', 'serverTimezoneOffset', 'showClearButton', 'showTodayButton', 'start', 'strictMode', 'value', 'values', 'weekNumber', 'weekRule', 'width', 'zIndex'];
|
|
141
|
+
const outputs$4 = ['blur', 'change', 'cleared', 'close', 'created', 'destroyed', 'focus', 'navigated', 'open', 'renderDayCell', 'valueChange'];
|
|
142
|
+
const twoWays$3 = ['value'];
|
|
143
|
+
/**
|
|
144
|
+
* Represents the Essential JS 2 Angular DatePicker Component.
|
|
145
|
+
* ```html
|
|
146
|
+
* <ejs-datepicker [value]='date'></ejs-datepicker>
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
let DatePickerComponent = DatePickerComponent_1 = class DatePickerComponent extends DatePicker {
|
|
150
|
+
constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
151
|
+
super();
|
|
152
|
+
this.ngEle = ngEle;
|
|
153
|
+
this.srenderer = srenderer;
|
|
154
|
+
this.viewContainerRef = viewContainerRef;
|
|
155
|
+
this.injector = injector;
|
|
156
|
+
this.cdr = cdr;
|
|
157
|
+
this.skipFromEvent = true;
|
|
158
|
+
this.element = this.ngEle.nativeElement;
|
|
159
|
+
this.injectedModules = this.injectedModules || [];
|
|
160
|
+
try {
|
|
161
|
+
let mod = this.injector.get('CalendarsIslamic');
|
|
162
|
+
if (this.injectedModules.indexOf(mod) === -1) {
|
|
163
|
+
this.injectedModules.push(mod);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
catch { }
|
|
167
|
+
try {
|
|
168
|
+
let mod = this.injector.get('CalendarsMaskedDateTime');
|
|
169
|
+
if (this.injectedModules.indexOf(mod) === -1) {
|
|
170
|
+
this.injectedModules.push(mod);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
catch { }
|
|
174
|
+
this.registerEvents(outputs$4);
|
|
175
|
+
this.addTwoWay.call(this, twoWays$3);
|
|
176
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
177
|
+
this.formContext = new FormBase();
|
|
178
|
+
this.formCompContext = new ComponentBase();
|
|
179
|
+
}
|
|
180
|
+
registerOnChange(registerFunction) {
|
|
181
|
+
}
|
|
182
|
+
registerOnTouched(registerFunction) {
|
|
183
|
+
}
|
|
184
|
+
writeValue(value) {
|
|
185
|
+
}
|
|
186
|
+
setDisabledState(disabled) {
|
|
187
|
+
}
|
|
188
|
+
ngOnInit() {
|
|
189
|
+
this.formCompContext.ngOnInit(this);
|
|
190
|
+
}
|
|
191
|
+
ngAfterViewInit() {
|
|
192
|
+
this.formContext.ngAfterViewInit(this);
|
|
193
|
+
}
|
|
194
|
+
ngOnDestroy() {
|
|
195
|
+
this.formCompContext.ngOnDestroy(this);
|
|
196
|
+
}
|
|
197
|
+
ngAfterContentChecked() {
|
|
198
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
DatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DatePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
202
|
+
DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: DatePickerComponent, selector: "ejs-datepicker", inputs: { allowEdit: "allowEdit", calendarMode: "calendarMode", cssClass: "cssClass", dayHeaderFormat: "dayHeaderFormat", depth: "depth", enableMask: "enableMask", enablePersistence: "enablePersistence", enableRtl: "enableRtl", enabled: "enabled", firstDayOfWeek: "firstDayOfWeek", floatLabelType: "floatLabelType", format: "format", fullScreenMode: "fullScreenMode", htmlAttributes: "htmlAttributes", inputFormats: "inputFormats", isMultiSelection: "isMultiSelection", keyConfigs: "keyConfigs", locale: "locale", maskPlaceholder: "maskPlaceholder", max: "max", min: "min", openOnFocus: "openOnFocus", placeholder: "placeholder", readonly: "readonly", serverTimezoneOffset: "serverTimezoneOffset", showClearButton: "showClearButton", showTodayButton: "showTodayButton", start: "start", strictMode: "strictMode", value: "value", values: "values", weekNumber: "weekNumber", weekRule: "weekRule", width: "width", zIndex: "zIndex" }, outputs: { blur: "blur", change: "change", cleared: "cleared", close: "close", created: "created", destroyed: "destroyed", focus: "focus", navigated: "navigated", open: "open", renderDayCell: "renderDayCell", valueChange: "valueChange" }, providers: [
|
|
203
|
+
{
|
|
204
|
+
provide: NG_VALUE_ACCESSOR,
|
|
205
|
+
useExisting: forwardRef(() => DatePickerComponent_1),
|
|
206
|
+
multi: true
|
|
207
|
+
}
|
|
208
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
209
|
+
DatePickerComponent = DatePickerComponent_1 = __decorate([
|
|
210
|
+
ComponentMixins([ComponentBase, FormBase])
|
|
211
|
+
], DatePickerComponent);
|
|
212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DatePickerComponent, decorators: [{
|
|
213
|
+
type: Component,
|
|
214
|
+
args: [{
|
|
215
|
+
selector: 'ejs-datepicker',
|
|
216
|
+
inputs: inputs$3,
|
|
217
|
+
outputs: outputs$4,
|
|
218
|
+
template: '',
|
|
219
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
220
|
+
providers: [
|
|
221
|
+
{
|
|
222
|
+
provide: NG_VALUE_ACCESSOR,
|
|
223
|
+
useExisting: forwardRef(() => DatePickerComponent),
|
|
224
|
+
multi: true
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
queries: {}
|
|
228
|
+
}]
|
|
229
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }]; } });
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* NgModule definition for the DatePicker component.
|
|
233
|
+
*/
|
|
234
|
+
class DatePickerModule {
|
|
235
|
+
}
|
|
236
|
+
DatePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
237
|
+
DatePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DatePickerModule, declarations: [DatePickerComponent], imports: [CommonModule], exports: [DatePickerComponent] });
|
|
238
|
+
DatePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DatePickerModule, imports: [[CommonModule]] });
|
|
239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DatePickerModule, decorators: [{
|
|
240
|
+
type: NgModule,
|
|
241
|
+
args: [{
|
|
242
|
+
imports: [CommonModule],
|
|
243
|
+
declarations: [
|
|
244
|
+
DatePickerComponent
|
|
245
|
+
],
|
|
246
|
+
exports: [
|
|
247
|
+
DatePickerComponent
|
|
248
|
+
]
|
|
249
|
+
}]
|
|
250
|
+
}] });
|
|
251
|
+
|
|
252
|
+
const MaskedDateTimeService = { provide: 'CalendarsMaskedDateTime', useValue: MaskedDateTime };
|
|
253
|
+
/**
|
|
254
|
+
* NgModule definition for the DatePicker component with providers.
|
|
255
|
+
*/
|
|
256
|
+
class DatePickerAllModule {
|
|
257
|
+
}
|
|
258
|
+
DatePickerAllModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DatePickerAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
259
|
+
DatePickerAllModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DatePickerAllModule, imports: [CommonModule, DatePickerModule], exports: [DatePickerModule] });
|
|
260
|
+
DatePickerAllModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DatePickerAllModule, providers: [
|
|
261
|
+
MaskedDateTimeService
|
|
262
|
+
], imports: [[CommonModule, DatePickerModule], DatePickerModule] });
|
|
263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DatePickerAllModule, decorators: [{
|
|
264
|
+
type: NgModule,
|
|
265
|
+
args: [{
|
|
266
|
+
imports: [CommonModule, DatePickerModule],
|
|
267
|
+
exports: [
|
|
268
|
+
DatePickerModule
|
|
269
|
+
],
|
|
270
|
+
providers: [
|
|
271
|
+
MaskedDateTimeService
|
|
272
|
+
]
|
|
273
|
+
}]
|
|
274
|
+
}] });
|
|
275
|
+
|
|
276
|
+
var TimePickerComponent_1;
|
|
277
|
+
const inputs$2 = ['allowEdit', 'cssClass', 'enableMask', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'format', 'fullScreenMode', 'htmlAttributes', 'keyConfigs', 'locale', 'maskPlaceholder', 'max', 'min', 'openOnFocus', 'placeholder', 'readonly', 'scrollTo', 'serverTimezoneOffset', 'showClearButton', 'step', 'strictMode', 'value', 'width', 'zIndex'];
|
|
278
|
+
const outputs$3 = ['blur', 'change', 'cleared', 'close', 'created', 'destroyed', 'focus', 'itemRender', 'open', 'valueChange'];
|
|
279
|
+
const twoWays$2 = ['value'];
|
|
280
|
+
/**
|
|
281
|
+
* Represents the Essential JS 2 Angular TimePicker Component.
|
|
282
|
+
* ```html
|
|
283
|
+
* <ejs-timepicker [value]='dateTime'></ejs-timepicker>
|
|
284
|
+
* ```
|
|
285
|
+
*/
|
|
286
|
+
let TimePickerComponent = TimePickerComponent_1 = class TimePickerComponent extends TimePicker {
|
|
287
|
+
constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
288
|
+
super();
|
|
289
|
+
this.ngEle = ngEle;
|
|
290
|
+
this.srenderer = srenderer;
|
|
291
|
+
this.viewContainerRef = viewContainerRef;
|
|
292
|
+
this.injector = injector;
|
|
293
|
+
this.cdr = cdr;
|
|
294
|
+
this.skipFromEvent = true;
|
|
295
|
+
this.element = this.ngEle.nativeElement;
|
|
296
|
+
this.injectedModules = this.injectedModules || [];
|
|
297
|
+
try {
|
|
298
|
+
let mod = this.injector.get('CalendarsMaskedDateTime');
|
|
299
|
+
if (this.injectedModules.indexOf(mod) === -1) {
|
|
300
|
+
this.injectedModules.push(mod);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
catch { }
|
|
304
|
+
this.registerEvents(outputs$3);
|
|
305
|
+
this.addTwoWay.call(this, twoWays$2);
|
|
306
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
307
|
+
this.formContext = new FormBase();
|
|
308
|
+
this.formCompContext = new ComponentBase();
|
|
309
|
+
}
|
|
310
|
+
registerOnChange(registerFunction) {
|
|
311
|
+
}
|
|
312
|
+
registerOnTouched(registerFunction) {
|
|
313
|
+
}
|
|
314
|
+
writeValue(value) {
|
|
315
|
+
}
|
|
316
|
+
setDisabledState(disabled) {
|
|
317
|
+
}
|
|
318
|
+
ngOnInit() {
|
|
319
|
+
this.formCompContext.ngOnInit(this);
|
|
320
|
+
}
|
|
321
|
+
ngAfterViewInit() {
|
|
322
|
+
this.formContext.ngAfterViewInit(this);
|
|
323
|
+
}
|
|
324
|
+
ngOnDestroy() {
|
|
325
|
+
this.formCompContext.ngOnDestroy(this);
|
|
326
|
+
}
|
|
327
|
+
ngAfterContentChecked() {
|
|
328
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
TimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TimePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
332
|
+
TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: TimePickerComponent, selector: "ejs-timepicker", inputs: { allowEdit: "allowEdit", cssClass: "cssClass", enableMask: "enableMask", enablePersistence: "enablePersistence", enableRtl: "enableRtl", enabled: "enabled", floatLabelType: "floatLabelType", format: "format", fullScreenMode: "fullScreenMode", htmlAttributes: "htmlAttributes", keyConfigs: "keyConfigs", locale: "locale", maskPlaceholder: "maskPlaceholder", max: "max", min: "min", openOnFocus: "openOnFocus", placeholder: "placeholder", readonly: "readonly", scrollTo: "scrollTo", serverTimezoneOffset: "serverTimezoneOffset", showClearButton: "showClearButton", step: "step", strictMode: "strictMode", value: "value", width: "width", zIndex: "zIndex" }, outputs: { blur: "blur", change: "change", cleared: "cleared", close: "close", created: "created", destroyed: "destroyed", focus: "focus", itemRender: "itemRender", open: "open", valueChange: "valueChange" }, providers: [
|
|
333
|
+
{
|
|
334
|
+
provide: NG_VALUE_ACCESSOR,
|
|
335
|
+
useExisting: forwardRef(() => TimePickerComponent_1),
|
|
336
|
+
multi: true
|
|
337
|
+
}
|
|
338
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
339
|
+
TimePickerComponent = TimePickerComponent_1 = __decorate([
|
|
340
|
+
ComponentMixins([ComponentBase, FormBase])
|
|
341
|
+
], TimePickerComponent);
|
|
342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TimePickerComponent, decorators: [{
|
|
343
|
+
type: Component,
|
|
344
|
+
args: [{
|
|
345
|
+
selector: 'ejs-timepicker',
|
|
346
|
+
inputs: inputs$2,
|
|
347
|
+
outputs: outputs$3,
|
|
348
|
+
template: '',
|
|
349
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
350
|
+
providers: [
|
|
351
|
+
{
|
|
352
|
+
provide: NG_VALUE_ACCESSOR,
|
|
353
|
+
useExisting: forwardRef(() => TimePickerComponent),
|
|
354
|
+
multi: true
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
queries: {}
|
|
358
|
+
}]
|
|
359
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }]; } });
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* NgModule definition for the TimePicker component.
|
|
363
|
+
*/
|
|
364
|
+
class TimePickerModule {
|
|
365
|
+
}
|
|
366
|
+
TimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
367
|
+
TimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TimePickerModule, declarations: [TimePickerComponent], imports: [CommonModule], exports: [TimePickerComponent] });
|
|
368
|
+
TimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TimePickerModule, imports: [[CommonModule]] });
|
|
369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TimePickerModule, decorators: [{
|
|
370
|
+
type: NgModule,
|
|
371
|
+
args: [{
|
|
372
|
+
imports: [CommonModule],
|
|
373
|
+
declarations: [
|
|
374
|
+
TimePickerComponent
|
|
375
|
+
],
|
|
376
|
+
exports: [
|
|
377
|
+
TimePickerComponent
|
|
378
|
+
]
|
|
379
|
+
}]
|
|
380
|
+
}] });
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* NgModule definition for the TimePicker component with providers.
|
|
384
|
+
*/
|
|
385
|
+
class TimePickerAllModule {
|
|
386
|
+
}
|
|
387
|
+
TimePickerAllModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TimePickerAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
388
|
+
TimePickerAllModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TimePickerAllModule, imports: [CommonModule, TimePickerModule], exports: [TimePickerModule] });
|
|
389
|
+
TimePickerAllModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TimePickerAllModule, providers: [], imports: [[CommonModule, TimePickerModule], TimePickerModule] });
|
|
390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: TimePickerAllModule, decorators: [{
|
|
391
|
+
type: NgModule,
|
|
392
|
+
args: [{
|
|
393
|
+
imports: [CommonModule, TimePickerModule],
|
|
394
|
+
exports: [
|
|
395
|
+
TimePickerModule
|
|
396
|
+
],
|
|
397
|
+
providers: []
|
|
398
|
+
}]
|
|
399
|
+
}] });
|
|
400
|
+
|
|
401
|
+
let input = ['end', 'label', 'start'];
|
|
402
|
+
let outputs$2 = [];
|
|
403
|
+
/**
|
|
404
|
+
* 'e-presets' directive represent a presets of angular daterangepicker
|
|
405
|
+
* It must be contained in a daterangepicker component(`ej-daterangepicker`).
|
|
406
|
+
* ```html
|
|
407
|
+
* <ejs-daterangepicker id='range'>
|
|
408
|
+
* <e-presets>
|
|
409
|
+
* <e-preset label='Last Week' [start]=new Date('06/07/2018') [end]= new Date('06/01/2018')></e-preset>
|
|
410
|
+
* <e-preset label='Last Month' [start]=new Date('06/07/2018') [end]= new Date('05/07/2018')></e-preset>
|
|
411
|
+
* </e-presets>
|
|
412
|
+
* </ejs-daterangepicker>
|
|
413
|
+
* ```
|
|
414
|
+
*/
|
|
415
|
+
class PresetDirective extends ComplexBase {
|
|
416
|
+
constructor(viewContainerRef) {
|
|
417
|
+
super();
|
|
418
|
+
this.viewContainerRef = viewContainerRef;
|
|
419
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
420
|
+
this.registerEvents(outputs$2);
|
|
421
|
+
this.directivePropList = input;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
PresetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: PresetDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
425
|
+
PresetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.3", type: PresetDirective, selector: "e-presets>e-preset", inputs: { end: "end", label: "label", start: "start" }, usesInheritance: true, ngImport: i0 });
|
|
426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: PresetDirective, decorators: [{
|
|
427
|
+
type: Directive,
|
|
428
|
+
args: [{
|
|
429
|
+
selector: 'e-presets>e-preset',
|
|
430
|
+
inputs: input,
|
|
431
|
+
outputs: outputs$2,
|
|
432
|
+
queries: {}
|
|
433
|
+
}]
|
|
434
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; } });
|
|
435
|
+
/**
|
|
436
|
+
* Preset Array Directive
|
|
437
|
+
* @private
|
|
438
|
+
*/
|
|
439
|
+
class PresetsDirective extends ArrayBase {
|
|
440
|
+
constructor() {
|
|
441
|
+
super('presets');
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
PresetsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: PresetsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
445
|
+
PresetsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.3", type: PresetsDirective, selector: "ejs-daterangepicker>e-presets", queries: [{ propertyName: "children", predicate: PresetDirective }], usesInheritance: true, ngImport: i0 });
|
|
446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: PresetsDirective, decorators: [{
|
|
447
|
+
type: Directive,
|
|
448
|
+
args: [{
|
|
449
|
+
selector: 'ejs-daterangepicker>e-presets',
|
|
450
|
+
queries: {
|
|
451
|
+
children: new ContentChildren(PresetDirective)
|
|
452
|
+
},
|
|
453
|
+
}]
|
|
454
|
+
}], ctorParameters: function () { return []; } });
|
|
455
|
+
|
|
456
|
+
var DateRangePickerComponent_1;
|
|
457
|
+
const inputs$1 = ['allowEdit', 'calendarMode', 'cssClass', 'dayHeaderFormat', 'depth', 'enablePersistence', 'enableRtl', 'enabled', 'endDate', 'firstDayOfWeek', 'floatLabelType', 'format', 'fullScreenMode', 'htmlAttributes', 'inputFormats', 'keyConfigs', 'locale', 'max', 'maxDays', 'min', 'minDays', 'openOnFocus', 'placeholder', 'presets', 'readonly', 'separator', 'serverTimezoneOffset', 'showClearButton', 'start', 'startDate', 'strictMode', 'value', 'weekNumber', 'weekRule', 'width', 'zIndex'];
|
|
458
|
+
const outputs$1 = ['blur', 'change', 'cleared', 'close', 'created', 'destroyed', 'focus', 'navigated', 'open', 'renderDayCell', 'select', 'startDateChange', 'endDateChange', 'valueChange'];
|
|
459
|
+
const twoWays$1 = ['startDate', 'endDate', 'value'];
|
|
460
|
+
/**
|
|
461
|
+
* Represents the Essential JS 2 Angular DateRangePicker Component.
|
|
462
|
+
* ```html
|
|
463
|
+
* <ejs-daterangepicker [startDate]='date' [endDate]='date'></ejs-daterangepicker>
|
|
464
|
+
* ```
|
|
465
|
+
*/
|
|
466
|
+
let DateRangePickerComponent = DateRangePickerComponent_1 = class DateRangePickerComponent extends DateRangePicker {
|
|
467
|
+
constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
468
|
+
super();
|
|
469
|
+
this.ngEle = ngEle;
|
|
470
|
+
this.srenderer = srenderer;
|
|
471
|
+
this.viewContainerRef = viewContainerRef;
|
|
472
|
+
this.injector = injector;
|
|
473
|
+
this.cdr = cdr;
|
|
474
|
+
this.tags = ['presets'];
|
|
475
|
+
this.skipFromEvent = true;
|
|
476
|
+
this.element = this.ngEle.nativeElement;
|
|
477
|
+
this.injectedModules = this.injectedModules || [];
|
|
478
|
+
this.registerEvents(outputs$1);
|
|
479
|
+
this.addTwoWay.call(this, twoWays$1);
|
|
480
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
481
|
+
this.formContext = new FormBase();
|
|
482
|
+
this.formCompContext = new ComponentBase();
|
|
483
|
+
}
|
|
484
|
+
registerOnChange(registerFunction) {
|
|
485
|
+
}
|
|
486
|
+
registerOnTouched(registerFunction) {
|
|
487
|
+
}
|
|
488
|
+
writeValue(value) {
|
|
489
|
+
}
|
|
490
|
+
setDisabledState(disabled) {
|
|
491
|
+
}
|
|
492
|
+
ngOnInit() {
|
|
493
|
+
this.formCompContext.ngOnInit(this);
|
|
494
|
+
}
|
|
495
|
+
ngAfterViewInit() {
|
|
496
|
+
this.formContext.ngAfterViewInit(this);
|
|
497
|
+
}
|
|
498
|
+
ngOnDestroy() {
|
|
499
|
+
this.formCompContext.ngOnDestroy(this);
|
|
500
|
+
}
|
|
501
|
+
ngAfterContentChecked() {
|
|
502
|
+
this.tagObjects[0].instance = this.childPresets;
|
|
503
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
DateRangePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateRangePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
507
|
+
DateRangePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: DateRangePickerComponent, selector: "ejs-daterangepicker", inputs: { allowEdit: "allowEdit", calendarMode: "calendarMode", cssClass: "cssClass", dayHeaderFormat: "dayHeaderFormat", depth: "depth", enablePersistence: "enablePersistence", enableRtl: "enableRtl", enabled: "enabled", endDate: "endDate", firstDayOfWeek: "firstDayOfWeek", floatLabelType: "floatLabelType", format: "format", fullScreenMode: "fullScreenMode", htmlAttributes: "htmlAttributes", inputFormats: "inputFormats", keyConfigs: "keyConfigs", locale: "locale", max: "max", maxDays: "maxDays", min: "min", minDays: "minDays", openOnFocus: "openOnFocus", placeholder: "placeholder", presets: "presets", readonly: "readonly", separator: "separator", serverTimezoneOffset: "serverTimezoneOffset", showClearButton: "showClearButton", start: "start", startDate: "startDate", strictMode: "strictMode", value: "value", weekNumber: "weekNumber", weekRule: "weekRule", width: "width", zIndex: "zIndex" }, outputs: { blur: "blur", change: "change", cleared: "cleared", close: "close", created: "created", destroyed: "destroyed", focus: "focus", navigated: "navigated", open: "open", renderDayCell: "renderDayCell", select: "select", startDateChange: "startDateChange", endDateChange: "endDateChange", valueChange: "valueChange" }, providers: [
|
|
508
|
+
{
|
|
509
|
+
provide: NG_VALUE_ACCESSOR,
|
|
510
|
+
useExisting: forwardRef(() => DateRangePickerComponent_1),
|
|
511
|
+
multi: true
|
|
512
|
+
}
|
|
513
|
+
], queries: [{ propertyName: "start", first: true, predicate: ["start"], descendants: true }, { propertyName: "end", first: true, predicate: ["end"], descendants: true }, { propertyName: "childPresets", first: true, predicate: PresetsDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
514
|
+
__decorate([
|
|
515
|
+
Template()
|
|
516
|
+
], DateRangePickerComponent.prototype, "start", void 0);
|
|
517
|
+
__decorate([
|
|
518
|
+
Template()
|
|
519
|
+
], DateRangePickerComponent.prototype, "end", void 0);
|
|
520
|
+
DateRangePickerComponent = DateRangePickerComponent_1 = __decorate([
|
|
521
|
+
ComponentMixins([ComponentBase, FormBase])
|
|
522
|
+
], DateRangePickerComponent);
|
|
523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateRangePickerComponent, decorators: [{
|
|
524
|
+
type: Component,
|
|
525
|
+
args: [{
|
|
526
|
+
selector: 'ejs-daterangepicker',
|
|
527
|
+
inputs: inputs$1,
|
|
528
|
+
outputs: outputs$1,
|
|
529
|
+
template: '',
|
|
530
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
531
|
+
providers: [
|
|
532
|
+
{
|
|
533
|
+
provide: NG_VALUE_ACCESSOR,
|
|
534
|
+
useExisting: forwardRef(() => DateRangePickerComponent),
|
|
535
|
+
multi: true
|
|
536
|
+
}
|
|
537
|
+
],
|
|
538
|
+
queries: {
|
|
539
|
+
childPresets: new ContentChild(PresetsDirective)
|
|
540
|
+
}
|
|
541
|
+
}]
|
|
542
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { start: [{
|
|
543
|
+
type: ContentChild,
|
|
544
|
+
args: ['start']
|
|
545
|
+
}], end: [{
|
|
546
|
+
type: ContentChild,
|
|
547
|
+
args: ['end']
|
|
548
|
+
}] } });
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* NgModule definition for the DateRangePicker component.
|
|
552
|
+
*/
|
|
553
|
+
class DateRangePickerModule {
|
|
554
|
+
}
|
|
555
|
+
DateRangePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateRangePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
556
|
+
DateRangePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateRangePickerModule, declarations: [DateRangePickerComponent,
|
|
557
|
+
PresetDirective,
|
|
558
|
+
PresetsDirective], imports: [CommonModule], exports: [DateRangePickerComponent,
|
|
559
|
+
PresetDirective,
|
|
560
|
+
PresetsDirective] });
|
|
561
|
+
DateRangePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateRangePickerModule, imports: [[CommonModule]] });
|
|
562
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateRangePickerModule, decorators: [{
|
|
563
|
+
type: NgModule,
|
|
564
|
+
args: [{
|
|
565
|
+
imports: [CommonModule],
|
|
566
|
+
declarations: [
|
|
567
|
+
DateRangePickerComponent,
|
|
568
|
+
PresetDirective,
|
|
569
|
+
PresetsDirective
|
|
570
|
+
],
|
|
571
|
+
exports: [
|
|
572
|
+
DateRangePickerComponent,
|
|
573
|
+
PresetDirective,
|
|
574
|
+
PresetsDirective
|
|
575
|
+
]
|
|
576
|
+
}]
|
|
577
|
+
}] });
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* NgModule definition for the DateRangePicker component with providers.
|
|
581
|
+
*/
|
|
582
|
+
class DateRangePickerAllModule {
|
|
583
|
+
}
|
|
584
|
+
DateRangePickerAllModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateRangePickerAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
585
|
+
DateRangePickerAllModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateRangePickerAllModule, imports: [CommonModule, DateRangePickerModule], exports: [DateRangePickerModule] });
|
|
586
|
+
DateRangePickerAllModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateRangePickerAllModule, providers: [], imports: [[CommonModule, DateRangePickerModule], DateRangePickerModule] });
|
|
587
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateRangePickerAllModule, decorators: [{
|
|
588
|
+
type: NgModule,
|
|
589
|
+
args: [{
|
|
590
|
+
imports: [CommonModule, DateRangePickerModule],
|
|
591
|
+
exports: [
|
|
592
|
+
DateRangePickerModule
|
|
593
|
+
],
|
|
594
|
+
providers: []
|
|
595
|
+
}]
|
|
596
|
+
}] });
|
|
597
|
+
|
|
598
|
+
var DateTimePickerComponent_1;
|
|
599
|
+
const inputs = ['allowEdit', 'calendarMode', 'cssClass', 'dayHeaderFormat', 'depth', 'enableMask', 'enablePersistence', 'enableRtl', 'enabled', 'firstDayOfWeek', 'floatLabelType', 'format', 'fullScreenMode', 'htmlAttributes', 'inputFormats', 'isMultiSelection', 'keyConfigs', 'locale', 'maskPlaceholder', 'max', 'maxTime', 'min', 'minTime', 'openOnFocus', 'placeholder', 'readonly', 'scrollTo', 'serverTimezoneOffset', 'showClearButton', 'showTodayButton', 'start', 'step', 'strictMode', 'timeFormat', 'value', 'values', 'weekNumber', 'weekRule', 'width', 'zIndex'];
|
|
600
|
+
const outputs = ['blur', 'change', 'cleared', 'close', 'created', 'destroyed', 'focus', 'navigated', 'open', 'renderDayCell', 'valueChange'];
|
|
601
|
+
const twoWays = ['value'];
|
|
602
|
+
/**
|
|
603
|
+
* Represents the Essential JS 2 Angular DateTimePicker Component.
|
|
604
|
+
* ```html
|
|
605
|
+
* <ejs-datetimepicker [value]='dateTime'></ejs-datetimepicker>
|
|
606
|
+
* ```
|
|
607
|
+
*/
|
|
608
|
+
let DateTimePickerComponent = DateTimePickerComponent_1 = class DateTimePickerComponent extends DateTimePicker {
|
|
609
|
+
constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
610
|
+
super();
|
|
611
|
+
this.ngEle = ngEle;
|
|
612
|
+
this.srenderer = srenderer;
|
|
613
|
+
this.viewContainerRef = viewContainerRef;
|
|
614
|
+
this.injector = injector;
|
|
615
|
+
this.cdr = cdr;
|
|
616
|
+
this.skipFromEvent = true;
|
|
617
|
+
this.element = this.ngEle.nativeElement;
|
|
618
|
+
this.injectedModules = this.injectedModules || [];
|
|
619
|
+
try {
|
|
620
|
+
let mod = this.injector.get('CalendarsIslamic');
|
|
621
|
+
if (this.injectedModules.indexOf(mod) === -1) {
|
|
622
|
+
this.injectedModules.push(mod);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
catch { }
|
|
626
|
+
try {
|
|
627
|
+
let mod = this.injector.get('CalendarsMaskedDateTime');
|
|
628
|
+
if (this.injectedModules.indexOf(mod) === -1) {
|
|
629
|
+
this.injectedModules.push(mod);
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
catch { }
|
|
633
|
+
this.registerEvents(outputs);
|
|
634
|
+
this.addTwoWay.call(this, twoWays);
|
|
635
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
636
|
+
this.formContext = new FormBase();
|
|
637
|
+
this.formCompContext = new ComponentBase();
|
|
638
|
+
}
|
|
639
|
+
registerOnChange(registerFunction) {
|
|
640
|
+
}
|
|
641
|
+
registerOnTouched(registerFunction) {
|
|
642
|
+
}
|
|
643
|
+
writeValue(value) {
|
|
644
|
+
}
|
|
645
|
+
setDisabledState(disabled) {
|
|
646
|
+
}
|
|
647
|
+
ngOnInit() {
|
|
648
|
+
this.formCompContext.ngOnInit(this);
|
|
649
|
+
}
|
|
650
|
+
ngAfterViewInit() {
|
|
651
|
+
this.formContext.ngAfterViewInit(this);
|
|
652
|
+
}
|
|
653
|
+
ngOnDestroy() {
|
|
654
|
+
this.formCompContext.ngOnDestroy(this);
|
|
655
|
+
}
|
|
656
|
+
ngAfterContentChecked() {
|
|
657
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
658
|
+
}
|
|
659
|
+
};
|
|
660
|
+
DateTimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateTimePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
661
|
+
DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: DateTimePickerComponent, selector: "ejs-datetimepicker", inputs: { allowEdit: "allowEdit", calendarMode: "calendarMode", cssClass: "cssClass", dayHeaderFormat: "dayHeaderFormat", depth: "depth", enableMask: "enableMask", enablePersistence: "enablePersistence", enableRtl: "enableRtl", enabled: "enabled", firstDayOfWeek: "firstDayOfWeek", floatLabelType: "floatLabelType", format: "format", fullScreenMode: "fullScreenMode", htmlAttributes: "htmlAttributes", inputFormats: "inputFormats", isMultiSelection: "isMultiSelection", keyConfigs: "keyConfigs", locale: "locale", maskPlaceholder: "maskPlaceholder", max: "max", maxTime: "maxTime", min: "min", minTime: "minTime", openOnFocus: "openOnFocus", placeholder: "placeholder", readonly: "readonly", scrollTo: "scrollTo", serverTimezoneOffset: "serverTimezoneOffset", showClearButton: "showClearButton", showTodayButton: "showTodayButton", start: "start", step: "step", strictMode: "strictMode", timeFormat: "timeFormat", value: "value", values: "values", weekNumber: "weekNumber", weekRule: "weekRule", width: "width", zIndex: "zIndex" }, outputs: { blur: "blur", change: "change", cleared: "cleared", close: "close", created: "created", destroyed: "destroyed", focus: "focus", navigated: "navigated", open: "open", renderDayCell: "renderDayCell", valueChange: "valueChange" }, providers: [
|
|
662
|
+
{
|
|
663
|
+
provide: NG_VALUE_ACCESSOR,
|
|
664
|
+
useExisting: forwardRef(() => DateTimePickerComponent_1),
|
|
665
|
+
multi: true
|
|
666
|
+
}
|
|
667
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
668
|
+
DateTimePickerComponent = DateTimePickerComponent_1 = __decorate([
|
|
669
|
+
ComponentMixins([ComponentBase, FormBase])
|
|
670
|
+
], DateTimePickerComponent);
|
|
671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateTimePickerComponent, decorators: [{
|
|
672
|
+
type: Component,
|
|
673
|
+
args: [{
|
|
674
|
+
selector: 'ejs-datetimepicker',
|
|
675
|
+
inputs: inputs,
|
|
676
|
+
outputs: outputs,
|
|
677
|
+
template: '',
|
|
678
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
679
|
+
providers: [
|
|
680
|
+
{
|
|
681
|
+
provide: NG_VALUE_ACCESSOR,
|
|
682
|
+
useExisting: forwardRef(() => DateTimePickerComponent),
|
|
683
|
+
multi: true
|
|
684
|
+
}
|
|
685
|
+
],
|
|
686
|
+
queries: {}
|
|
687
|
+
}]
|
|
688
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }]; } });
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* NgModule definition for the DateTimePicker component.
|
|
692
|
+
*/
|
|
693
|
+
class DateTimePickerModule {
|
|
694
|
+
}
|
|
695
|
+
DateTimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
696
|
+
DateTimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateTimePickerModule, declarations: [DateTimePickerComponent], imports: [CommonModule], exports: [DateTimePickerComponent] });
|
|
697
|
+
DateTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateTimePickerModule, imports: [[CommonModule]] });
|
|
698
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateTimePickerModule, decorators: [{
|
|
699
|
+
type: NgModule,
|
|
700
|
+
args: [{
|
|
701
|
+
imports: [CommonModule],
|
|
702
|
+
declarations: [
|
|
703
|
+
DateTimePickerComponent
|
|
704
|
+
],
|
|
705
|
+
exports: [
|
|
706
|
+
DateTimePickerComponent
|
|
707
|
+
]
|
|
708
|
+
}]
|
|
709
|
+
}] });
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* NgModule definition for the DateTimePicker component with providers.
|
|
713
|
+
*/
|
|
714
|
+
class DateTimePickerAllModule {
|
|
715
|
+
}
|
|
716
|
+
DateTimePickerAllModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateTimePickerAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
717
|
+
DateTimePickerAllModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateTimePickerAllModule, imports: [CommonModule, DateTimePickerModule], exports: [DateTimePickerModule] });
|
|
718
|
+
DateTimePickerAllModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateTimePickerAllModule, providers: [], imports: [[CommonModule, DateTimePickerModule], DateTimePickerModule] });
|
|
719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DateTimePickerAllModule, decorators: [{
|
|
720
|
+
type: NgModule,
|
|
721
|
+
args: [{
|
|
722
|
+
imports: [CommonModule, DateTimePickerModule],
|
|
723
|
+
exports: [
|
|
724
|
+
DateTimePickerModule
|
|
725
|
+
],
|
|
726
|
+
providers: []
|
|
727
|
+
}]
|
|
728
|
+
}] });
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Generated bundle index. Do not edit.
|
|
732
|
+
*/
|
|
733
|
+
|
|
734
|
+
export { CalendarAllModule, CalendarComponent, CalendarModule, DatePickerAllModule, DatePickerComponent, DatePickerModule, DateRangePickerAllModule, DateRangePickerComponent, DateRangePickerModule, DateTimePickerAllModule, DateTimePickerComponent, DateTimePickerModule, IslamicService, MaskedDateTimeService, PresetDirective, PresetsDirective, TimePickerAllModule, TimePickerComponent, TimePickerModule };
|
|
735
|
+
//# sourceMappingURL=syncfusion-ej2-angular-calendars.mjs.map
|