@syncfusion/ej2-calendars 19.4.48 → 19.4.54
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/common.d.ts +4 -0
- package/common.js +4 -0
- 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 +4 -27
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +4 -32
- 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 +10 -10
- package/src/calendar/calendar-model.d.ts +0 -56
- package/src/calendar/calendar.d.ts +0 -45
- package/src/calendar/calendar.js +1 -30
- package/src/common/index.d.ts +5 -0
- package/src/common/index.js +4 -0
- package/src/common/maskplaceholder-model.d.ts +57 -0
- package/src/common/maskplaceholder.d.ts +45 -0
- package/src/common/maskplaceholder.js +49 -0
- package/src/datepicker/datepicker-model.d.ts +1 -1
- package/src/datepicker/datepicker.d.ts +1 -1
- package/src/datepicker/datepicker.js +1 -1
- package/src/datetimepicker/datetimepicker-model.d.ts +1 -1
- package/src/datetimepicker/datetimepicker.d.ts +1 -1
- package/src/datetimepicker/datetimepicker.js +1 -1
- package/src/maskbase/masked-date-time.js +1 -1
- package/src/timepicker/timepicker-model.d.ts +9 -8
- package/src/timepicker/timepicker.d.ts +8 -7
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.4.
|
|
3
|
+
* version : 19.4.54
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-calendars@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-calendars@19.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-calendars@19.4.52",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-pBZgdLfYWu9KvposW/yjpzyTijnnTN02TR9zxqddqcL6Hr26U1EVmYBgJRjrhMXzDT3aDv8Ttm9k1EoUACnQ3g==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-calendars",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"/@syncfusion/ej2-schedule",
|
|
33
33
|
"/@syncfusion/ej2-vue-calendars"
|
|
34
34
|
],
|
|
35
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-19.4.
|
|
36
|
-
"_shasum": "
|
|
35
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-19.4.52.tgz",
|
|
36
|
+
"_shasum": "99b2a028381eb4d446b36299c754bb2735b714c8",
|
|
37
37
|
"_spec": "@syncfusion/ej2-calendars@*",
|
|
38
38
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
39
39
|
"author": {
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
},
|
|
45
45
|
"bundleDependencies": false,
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@syncfusion/ej2-base": "~19.4.
|
|
48
|
-
"@syncfusion/ej2-buttons": "~19.4.
|
|
49
|
-
"@syncfusion/ej2-inputs": "~19.4.
|
|
50
|
-
"@syncfusion/ej2-lists": "~19.4.
|
|
51
|
-
"@syncfusion/ej2-popups": "~19.4.
|
|
47
|
+
"@syncfusion/ej2-base": "~19.4.52",
|
|
48
|
+
"@syncfusion/ej2-buttons": "~19.4.53",
|
|
49
|
+
"@syncfusion/ej2-inputs": "~19.4.52",
|
|
50
|
+
"@syncfusion/ej2-lists": "~19.4.52",
|
|
51
|
+
"@syncfusion/ej2-popups": "~19.4.53"
|
|
52
52
|
},
|
|
53
53
|
"deprecated": false,
|
|
54
54
|
"description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization.",
|
|
@@ -81,6 +81,6 @@
|
|
|
81
81
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
82
82
|
},
|
|
83
83
|
"typings": "index.d.ts",
|
|
84
|
-
"version": "19.4.
|
|
84
|
+
"version": "19.4.54",
|
|
85
85
|
"sideEffects": false
|
|
86
86
|
}
|
|
@@ -2,62 +2,6 @@
|
|
|
2
2
|
import {CalendarType,CalendarView,WeekRule,DayHeaderFormats,NavigatedEventArgs,RenderDayCellEventArgs,ChangedEventArgs} from "./calendar";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Interface for a class MaskPlaceholder
|
|
7
|
-
*/
|
|
8
|
-
export interface MaskPlaceholderModel {
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Specifies the mask placeholder value for day section.
|
|
12
|
-
*
|
|
13
|
-
* @default 'day'
|
|
14
|
-
*/
|
|
15
|
-
day?: string;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Specifies the mask placeholder value for month section.
|
|
19
|
-
*
|
|
20
|
-
* @default 'month'
|
|
21
|
-
*/
|
|
22
|
-
month?: string;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Specifies the mask placeholder value for year section.
|
|
26
|
-
*
|
|
27
|
-
* @default 'year'
|
|
28
|
-
*/
|
|
29
|
-
year?: string;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Specifies the mask placeholder value for hour section.
|
|
33
|
-
*
|
|
34
|
-
* @default 'hour'
|
|
35
|
-
*/
|
|
36
|
-
hour?: string;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Specifies the mask placeholder value for minute section.
|
|
40
|
-
*
|
|
41
|
-
* @default 'minute'
|
|
42
|
-
*/
|
|
43
|
-
minute?: string;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Specifies the mask placeholder value for second section.
|
|
47
|
-
*
|
|
48
|
-
* @default 'second'
|
|
49
|
-
*/
|
|
50
|
-
second?: string;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Specifies the mask placeholder value for day of the week section.
|
|
54
|
-
*
|
|
55
|
-
* @default 'day of the week'
|
|
56
|
-
*/
|
|
57
|
-
dayOfTheWeek?: string;
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
5
|
/**
|
|
62
6
|
* Interface for a class CalendarBase
|
|
63
7
|
* @private
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Component, Internationalization, ModuleDeclaration } from '@syncfusion/ej2-base';
|
|
2
2
|
import { INotifyPropertyChanged, KeyboardEvents, L10n } from '@syncfusion/ej2-base';
|
|
3
3
|
import { KeyboardEventArgs, BaseEventArgs } from '@syncfusion/ej2-base';
|
|
4
|
-
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
5
4
|
import { EmitType } from '@syncfusion/ej2-base';
|
|
6
5
|
import { CalendarModel, CalendarBaseModel } from './calendar-model';
|
|
7
6
|
import { Islamic } from './index';
|
|
@@ -15,50 +14,6 @@ export declare type DayHeaderFormats = 'Short' | 'Narrow' | 'Abbreviated' | 'Wid
|
|
|
15
14
|
* Specifies the rule for defining the first week of the year.
|
|
16
15
|
*/
|
|
17
16
|
export declare type WeekRule = 'FirstDay' | 'FirstFullWeek' | 'FirstFourDayWeek';
|
|
18
|
-
export declare class MaskPlaceholder extends ChildProperty<MaskPlaceholder> {
|
|
19
|
-
/**
|
|
20
|
-
* Specifies the mask placeholder value for day section.
|
|
21
|
-
*
|
|
22
|
-
* @default 'day'
|
|
23
|
-
*/
|
|
24
|
-
day: string;
|
|
25
|
-
/**
|
|
26
|
-
* Specifies the mask placeholder value for month section.
|
|
27
|
-
*
|
|
28
|
-
* @default 'month'
|
|
29
|
-
*/
|
|
30
|
-
month: string;
|
|
31
|
-
/**
|
|
32
|
-
* Specifies the mask placeholder value for year section.
|
|
33
|
-
*
|
|
34
|
-
* @default 'year'
|
|
35
|
-
*/
|
|
36
|
-
year: string;
|
|
37
|
-
/**
|
|
38
|
-
* Specifies the mask placeholder value for hour section.
|
|
39
|
-
*
|
|
40
|
-
* @default 'hour'
|
|
41
|
-
*/
|
|
42
|
-
hour: string;
|
|
43
|
-
/**
|
|
44
|
-
* Specifies the mask placeholder value for minute section.
|
|
45
|
-
*
|
|
46
|
-
* @default 'minute'
|
|
47
|
-
*/
|
|
48
|
-
minute: string;
|
|
49
|
-
/**
|
|
50
|
-
* Specifies the mask placeholder value for second section.
|
|
51
|
-
*
|
|
52
|
-
* @default 'second'
|
|
53
|
-
*/
|
|
54
|
-
second: string;
|
|
55
|
-
/**
|
|
56
|
-
* Specifies the mask placeholder value for day of the week section.
|
|
57
|
-
*
|
|
58
|
-
* @default 'day of the week'
|
|
59
|
-
*/
|
|
60
|
-
dayOfTheWeek: string;
|
|
61
|
-
}
|
|
62
17
|
/**
|
|
63
18
|
*
|
|
64
19
|
* @private
|
package/src/calendar/calendar.js
CHANGED
|
@@ -22,7 +22,7 @@ import { KeyboardEvents, L10n } from '@syncfusion/ej2-base';
|
|
|
22
22
|
import { NotifyPropertyChanges } from '@syncfusion/ej2-base';
|
|
23
23
|
import { cldrData, getDefaultDateObject, rippleEffect } from '@syncfusion/ej2-base';
|
|
24
24
|
import { removeClass, detach, closest, addClass, attributes } from '@syncfusion/ej2-base';
|
|
25
|
-
import { getValue, getUniqueID, extend, Browser
|
|
25
|
+
import { getValue, getUniqueID, extend, Browser } from '@syncfusion/ej2-base';
|
|
26
26
|
import { Property, Event, isNullOrUndefined, throwError } from '@syncfusion/ej2-base';
|
|
27
27
|
//class constant defination.
|
|
28
28
|
var OTHERMONTH = 'e-other-month';
|
|
@@ -62,35 +62,6 @@ var PRIMARY = 'e-primary';
|
|
|
62
62
|
var DAYHEADERLONG = 'e-calendar-day-header-lg';
|
|
63
63
|
var dayMilliSeconds = 86400000;
|
|
64
64
|
var minutesMilliSeconds = 60000;
|
|
65
|
-
var MaskPlaceholder = /** @class */ (function (_super) {
|
|
66
|
-
__extends(MaskPlaceholder, _super);
|
|
67
|
-
function MaskPlaceholder() {
|
|
68
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
69
|
-
}
|
|
70
|
-
__decorate([
|
|
71
|
-
Property('day')
|
|
72
|
-
], MaskPlaceholder.prototype, "day", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
Property('month')
|
|
75
|
-
], MaskPlaceholder.prototype, "month", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
Property('year')
|
|
78
|
-
], MaskPlaceholder.prototype, "year", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
Property('hour')
|
|
81
|
-
], MaskPlaceholder.prototype, "hour", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
Property('minute')
|
|
84
|
-
], MaskPlaceholder.prototype, "minute", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
Property('second')
|
|
87
|
-
], MaskPlaceholder.prototype, "second", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
Property('day of the week')
|
|
90
|
-
], MaskPlaceholder.prototype, "dayOfTheWeek", void 0);
|
|
91
|
-
return MaskPlaceholder;
|
|
92
|
-
}(ChildProperty));
|
|
93
|
-
export { MaskPlaceholder };
|
|
94
65
|
/**
|
|
95
66
|
*
|
|
96
67
|
* @private
|
|
@@ -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,49 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
21
|
+
var MaskPlaceholder = /** @class */ (function (_super) {
|
|
22
|
+
__extends(MaskPlaceholder, _super);
|
|
23
|
+
function MaskPlaceholder() {
|
|
24
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
+
}
|
|
26
|
+
__decorate([
|
|
27
|
+
Property('day')
|
|
28
|
+
], MaskPlaceholder.prototype, "day", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
Property('month')
|
|
31
|
+
], MaskPlaceholder.prototype, "month", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
Property('year')
|
|
34
|
+
], MaskPlaceholder.prototype, "year", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Property('day of the week')
|
|
37
|
+
], MaskPlaceholder.prototype, "dayOfTheWeek", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Property('hour')
|
|
40
|
+
], MaskPlaceholder.prototype, "hour", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
Property('minute')
|
|
43
|
+
], MaskPlaceholder.prototype, "minute", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Property('second')
|
|
46
|
+
], MaskPlaceholder.prototype, "second", void 0);
|
|
47
|
+
return MaskPlaceholder;
|
|
48
|
+
}(ChildProperty));
|
|
49
|
+
export { MaskPlaceholder };
|
|
@@ -1,4 +1,4 @@
|
|
|
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, select } 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, DayHeaderFormats} from '../calendar/calendar';import { MaskPlaceholderModel } from '../
|
|
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, select } 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, DayHeaderFormats} from '../calendar/calendar';import { MaskPlaceholderModel } from '../common/maskplaceholder-model'
|
|
2
2
|
import {FormatObject,PopupObjectArgs,PreventableEventArgs} from "./datepicker";
|
|
3
3
|
import {CalendarModel} from "../calendar/calendar-model";
|
|
4
4
|
|
|
@@ -4,7 +4,7 @@ import { ModuleDeclaration } from '@syncfusion/ej2-base';
|
|
|
4
4
|
import { Popup } from '@syncfusion/ej2-popups';
|
|
5
5
|
import { InputObject, IInput, FloatLabelType } from '@syncfusion/ej2-inputs';
|
|
6
6
|
import { ChangedEventArgs, CalendarView, Calendar, BlurEventArgs, FocusEventArgs, ClearedEventArgs } from '../calendar/calendar';
|
|
7
|
-
import { MaskPlaceholderModel } from '../
|
|
7
|
+
import { MaskPlaceholderModel } from '../common/maskplaceholder-model';
|
|
8
8
|
import { DatePickerModel } from './datepicker-model';
|
|
9
9
|
export interface FormatObject {
|
|
10
10
|
/**
|
|
@@ -140,12 +140,12 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
DatePicker.prototype.initialize = function () {
|
|
143
|
+
this.checkInvalidValue(this.value);
|
|
143
144
|
if (this.enableMask) {
|
|
144
145
|
this.notify("createMask", {
|
|
145
146
|
module: "MaskedDateTime",
|
|
146
147
|
});
|
|
147
148
|
}
|
|
148
|
-
this.checkInvalidValue(this.value);
|
|
149
149
|
this.createInput();
|
|
150
150
|
this.updateHtmlAttributeToWrapper();
|
|
151
151
|
this.setAllowEdit();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventHandler, Internationalization, Property, NotifyPropertyChanges, Browser, RippleOptions } from '@syncfusion/ej2-base';import { Animation, EmitType, Event, AnimationModel, cldrData, getDefaultDateObject, detach } from '@syncfusion/ej2-base';import { createElement, remove, addClass, L10n, removeClass, closest, append, attributes } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, isNullOrUndefined, formatUnit, getValue, rippleEffect } from '@syncfusion/ej2-base';import { ModuleDeclaration, extend } from '@syncfusion/ej2-base';import { Popup } from '@syncfusion/ej2-popups';import { Input } from '@syncfusion/ej2-inputs';import { BlurEventArgs, ClearedEventArgs, CalendarType, CalendarView, DayHeaderFormats } from '../calendar/calendar';import { DatePicker, PopupObjectArgs } from '../datepicker/datepicker';import { TimePickerBase } from '../timepicker/timepicker';import {MaskPlaceholderModel} from '../
|
|
1
|
+
import { EventHandler, Internationalization, Property, NotifyPropertyChanges, Browser, RippleOptions } from '@syncfusion/ej2-base';import { Animation, EmitType, Event, AnimationModel, cldrData, getDefaultDateObject, detach } from '@syncfusion/ej2-base';import { createElement, remove, addClass, L10n, removeClass, closest, append, attributes } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, isNullOrUndefined, formatUnit, getValue, rippleEffect } from '@syncfusion/ej2-base';import { ModuleDeclaration, extend } from '@syncfusion/ej2-base';import { Popup } from '@syncfusion/ej2-popups';import { Input } from '@syncfusion/ej2-inputs';import { BlurEventArgs, ClearedEventArgs, CalendarType, CalendarView, DayHeaderFormats } from '../calendar/calendar';import { DatePicker, PopupObjectArgs } from '../datepicker/datepicker';import { TimePickerBase } from '../timepicker/timepicker';import {MaskPlaceholderModel} from '../common/maskplaceholder-model'
|
|
2
2
|
import {DatePickerModel} from "../datepicker/datepicker-model";
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -6,7 +6,7 @@ import { ModuleDeclaration } from '@syncfusion/ej2-base';
|
|
|
6
6
|
import { ClearedEventArgs, CalendarType, CalendarView, DayHeaderFormats } from '../calendar/calendar';
|
|
7
7
|
import { DatePicker, PopupObjectArgs } from '../datepicker/datepicker';
|
|
8
8
|
import { DateTimePickerModel } from './datetimepicker-model';
|
|
9
|
-
import { MaskPlaceholderModel } from '../
|
|
9
|
+
import { MaskPlaceholderModel } from '../common/maskplaceholder-model';
|
|
10
10
|
/**
|
|
11
11
|
* Represents the DateTimePicker component that allows user to select
|
|
12
12
|
* or enter a date time value.
|
|
@@ -719,7 +719,7 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
719
719
|
};
|
|
720
720
|
this.addTimeSelection();
|
|
721
721
|
this.trigger('change', this.changedArgs);
|
|
722
|
-
this.previousDateTime = this.value;
|
|
722
|
+
this.previousDateTime = this.previousDate = this.value;
|
|
723
723
|
}
|
|
724
724
|
};
|
|
725
725
|
DateTimePicker.prototype.setTimeScrollPosition = function () {
|
|
@@ -190,7 +190,7 @@ var MaskedDateTime = /** @class */ (function () {
|
|
|
190
190
|
var inputValue = this.parent.inputElement.value;
|
|
191
191
|
var previousVal = this.previousValue.substring(0, start + this.previousValue.length - inputValue.length);
|
|
192
192
|
var newVal = inputValue.substring(0, start);
|
|
193
|
-
var newDateValue = this.maskDateValue;
|
|
193
|
+
var newDateValue = new Date(+this.maskDateValue);
|
|
194
194
|
var maxDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth() + 1, 0).getDate();
|
|
195
195
|
if (previousVal.indexOf(newVal) === 0 && (newVal.length === 0 || this.previousHiddenMask[newVal.length - 1] !== this.previousHiddenMask[newVal.length])) {
|
|
196
196
|
for (var i = newVal.length; i < previousVal.length; i++) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventHandler, Property, Internationalization, NotifyPropertyChanges } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, Animation, AnimationModel, Browser, BaseEventArgs } from '@syncfusion/ej2-base';import { EmitType, cldrData, L10n, Component, getDefaultDateObject, rippleEffect, RippleOptions, Event } from '@syncfusion/ej2-base';import { remove, addClass, detach, removeClass, closest, append, attributes, setStyleAttribute } from '@syncfusion/ej2-base';import { isNullOrUndefined, formatUnit, getValue, extend, getUniqueID, ModuleDeclaration, ChildProperty } from '@syncfusion/ej2-base';import { Popup } from '@syncfusion/ej2-popups';import { FocusEventArgs, BlurEventArgs, ClearedEventArgs } from '../calendar/calendar';import { Input, InputObject, IInput, FloatLabelType } from '@syncfusion/ej2-inputs';import { ListBase, ListBaseOptions, createElementParams } from '@syncfusion/ej2-lists';
|
|
1
|
+
import { EventHandler, Property, Internationalization, NotifyPropertyChanges } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, Animation, AnimationModel, Browser, BaseEventArgs } from '@syncfusion/ej2-base';import { EmitType, cldrData, L10n, Component, getDefaultDateObject, rippleEffect, RippleOptions, Event } from '@syncfusion/ej2-base';import { remove, addClass, detach, removeClass, closest, append, attributes, setStyleAttribute } from '@syncfusion/ej2-base';import { isNullOrUndefined, formatUnit, getValue, extend, getUniqueID, ModuleDeclaration, ChildProperty } from '@syncfusion/ej2-base';import { Popup } from '@syncfusion/ej2-popups';import { FocusEventArgs, BlurEventArgs, ClearedEventArgs } from '../calendar/calendar';import { Input, InputObject, IInput, FloatLabelType } from '@syncfusion/ej2-inputs';import { ListBase, ListBaseOptions, createElementParams } from '@syncfusion/ej2-lists';import {MaskPlaceholderModel} from '../common/maskplaceholder-model';import { MaskPlaceholder } from '../common/maskplaceholder';
|
|
2
2
|
import {TimeFormatObject,ChangeEventArgs,PopupEventArgs,ItemEventArgs} from "./timepicker";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -8,49 +8,49 @@ import {ComponentModel} from '@syncfusion/ej2-base';
|
|
|
8
8
|
export interface TimeMaskPlaceholderModel {
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Specifies the mask placeholder value for day
|
|
11
|
+
* Specifies the mask placeholder value for day property.
|
|
12
12
|
*
|
|
13
13
|
* @default 'day'
|
|
14
14
|
*/
|
|
15
15
|
day?: string;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Specifies the mask placeholder value for month
|
|
18
|
+
* Specifies the mask placeholder value for month property.
|
|
19
19
|
*
|
|
20
20
|
* @default 'month'
|
|
21
21
|
*/
|
|
22
22
|
month?: string;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* Specifies the mask placeholder value for year
|
|
25
|
+
* Specifies the mask placeholder value for year property.
|
|
26
26
|
*
|
|
27
27
|
* @default 'year'
|
|
28
28
|
*/
|
|
29
29
|
year?: string;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* Specifies the mask placeholder value for day of the week
|
|
32
|
+
* Specifies the mask placeholder value for day of the week property.
|
|
33
33
|
*
|
|
34
34
|
* @default 'day of the week'
|
|
35
35
|
*/
|
|
36
36
|
dayOfTheWeek?: string;
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Specifies the mask placeholder value for hour
|
|
39
|
+
* Specifies the mask placeholder value for hour property.
|
|
40
40
|
*
|
|
41
41
|
* @default 'hour'
|
|
42
42
|
*/
|
|
43
43
|
hour?: string;
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Specifies the mask placeholder value for minute
|
|
46
|
+
* Specifies the mask placeholder value for minute property.
|
|
47
47
|
*
|
|
48
48
|
* @default 'minute'
|
|
49
49
|
*/
|
|
50
50
|
minute?: string;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* Specifies the mask placeholder value for second
|
|
53
|
+
* Specifies the mask placeholder value for second property.
|
|
54
54
|
*
|
|
55
55
|
* @default 'second'
|
|
56
56
|
*/
|
|
@@ -306,6 +306,7 @@ export interface TimePickerModel extends ComponentModel{
|
|
|
306
306
|
* Specifies the mask placeholder to be displayed on masked timepicker.
|
|
307
307
|
*
|
|
308
308
|
* @default {day:'day' , month:'month', year: 'year', hour:'hour',minute:'minute',second:'second',dayOfTheWeek: 'day of the week'}
|
|
309
|
+
* @aspType TimePickerMaskPlaceholder
|
|
309
310
|
*/
|
|
310
311
|
maskPlaceholder?: TimeMaskPlaceholderModel;
|
|
311
312
|
|
|
@@ -86,43 +86,43 @@ export declare namespace TimePickerBase {
|
|
|
86
86
|
}
|
|
87
87
|
export declare class TimeMaskPlaceholder extends ChildProperty<TimeMaskPlaceholder> {
|
|
88
88
|
/**
|
|
89
|
-
* Specifies the mask placeholder value for day
|
|
89
|
+
* Specifies the mask placeholder value for day property.
|
|
90
90
|
*
|
|
91
91
|
* @default 'day'
|
|
92
92
|
*/
|
|
93
93
|
day: string;
|
|
94
94
|
/**
|
|
95
|
-
* Specifies the mask placeholder value for month
|
|
95
|
+
* Specifies the mask placeholder value for month property.
|
|
96
96
|
*
|
|
97
97
|
* @default 'month'
|
|
98
98
|
*/
|
|
99
99
|
month: string;
|
|
100
100
|
/**
|
|
101
|
-
* Specifies the mask placeholder value for year
|
|
101
|
+
* Specifies the mask placeholder value for year property.
|
|
102
102
|
*
|
|
103
103
|
* @default 'year'
|
|
104
104
|
*/
|
|
105
105
|
year: string;
|
|
106
106
|
/**
|
|
107
|
-
* Specifies the mask placeholder value for day of the week
|
|
107
|
+
* Specifies the mask placeholder value for day of the week property.
|
|
108
108
|
*
|
|
109
109
|
* @default 'day of the week'
|
|
110
110
|
*/
|
|
111
111
|
dayOfTheWeek: string;
|
|
112
112
|
/**
|
|
113
|
-
* Specifies the mask placeholder value for hour
|
|
113
|
+
* Specifies the mask placeholder value for hour property.
|
|
114
114
|
*
|
|
115
115
|
* @default 'hour'
|
|
116
116
|
*/
|
|
117
117
|
hour: string;
|
|
118
118
|
/**
|
|
119
|
-
* Specifies the mask placeholder value for minute
|
|
119
|
+
* Specifies the mask placeholder value for minute property.
|
|
120
120
|
*
|
|
121
121
|
* @default 'minute'
|
|
122
122
|
*/
|
|
123
123
|
minute: string;
|
|
124
124
|
/**
|
|
125
|
-
* Specifies the mask placeholder value for second
|
|
125
|
+
* Specifies the mask placeholder value for second property.
|
|
126
126
|
*
|
|
127
127
|
* @default 'second'
|
|
128
128
|
*/
|
|
@@ -413,6 +413,7 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
|
|
|
413
413
|
* Specifies the mask placeholder to be displayed on masked timepicker.
|
|
414
414
|
*
|
|
415
415
|
* @default {day:'day' , month:'month', year: 'year', hour:'hour',minute:'minute',second:'second',dayOfTheWeek: 'day of the week'}
|
|
416
|
+
* @aspType TimePickerMaskPlaceholder
|
|
416
417
|
*/
|
|
417
418
|
maskPlaceholder: TimeMaskPlaceholderModel;
|
|
418
419
|
/**
|