@syncfusion/ej2-calendars 27.1.57 → 27.2.3
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/dist/ej2-calendars.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js.map +1 -1
- package/dist/es6/ej2-calendars.es2015.js +42 -0
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +43 -0
- 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/datepicker/datepicker.js +12 -0
- package/src/daterangepicker/daterangepicker.js +16 -0
- package/src/maskbase/interface.d.ts +2 -0
- package/src/maskbase/masked-date-time.js +3 -0
- package/src/timepicker/timepicker.d.ts +1 -0
- package/src/timepicker/timepicker.js +12 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 27.
|
|
3
|
+
* version : 27.2.3
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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@27.
|
|
3
|
+
"_id": "@syncfusion/ej2-calendars@27.2.2",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-klSNnTs+W8AKLisiIcpnUnyrIjMzpQ43AUKX992TDh9pX1z8xJrQnXUB3d5s0/dSKcXhIuOGlwvYaAexPIysCA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-calendars",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"/@syncfusion/ej2-schedule",
|
|
32
32
|
"/@syncfusion/ej2-vue-calendars"
|
|
33
33
|
],
|
|
34
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-27.
|
|
35
|
-
"_shasum": "
|
|
34
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-27.2.2.tgz",
|
|
35
|
+
"_shasum": "6310d56c8a2483ade7cf54e28667b8c717e53929",
|
|
36
36
|
"_spec": "@syncfusion/ej2-calendars@*",
|
|
37
37
|
"_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
|
|
38
38
|
"author": {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
},
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@syncfusion/ej2-base": "~27.
|
|
47
|
-
"@syncfusion/ej2-buttons": "~27.
|
|
48
|
-
"@syncfusion/ej2-inputs": "~27.
|
|
49
|
-
"@syncfusion/ej2-lists": "~27.
|
|
50
|
-
"@syncfusion/ej2-popups": "~27.
|
|
46
|
+
"@syncfusion/ej2-base": "~27.2.2",
|
|
47
|
+
"@syncfusion/ej2-buttons": "~27.2.2",
|
|
48
|
+
"@syncfusion/ej2-inputs": "~27.2.2",
|
|
49
|
+
"@syncfusion/ej2-lists": "~27.2.3",
|
|
50
|
+
"@syncfusion/ej2-popups": "~27.2.2"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
53
53
|
"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.",
|
|
@@ -80,6 +80,6 @@
|
|
|
80
80
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
81
81
|
},
|
|
82
82
|
"typings": "index.d.ts",
|
|
83
|
-
"version": "27.
|
|
83
|
+
"version": "27.2.3",
|
|
84
84
|
"sideEffects": false
|
|
85
85
|
}
|
|
@@ -689,6 +689,9 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
689
689
|
this.inputElement.selectionEnd = this.inputElement.value.length;
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
|
+
if (this.enableMask && this.showClearButton && this.inputElement && this.inputElement.value === this.maskedDateValue && this.inputWrapper && this.inputWrapper.clearButton && !this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide')) {
|
|
693
|
+
this.inputWrapper.clearButton.classList.add('e-clear-icon-hide');
|
|
694
|
+
}
|
|
692
695
|
var focusArguments = {
|
|
693
696
|
model: this
|
|
694
697
|
};
|
|
@@ -1199,6 +1202,9 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1199
1202
|
};
|
|
1200
1203
|
DatePicker.prototype.keyupHandler = function (e) {
|
|
1201
1204
|
this.isKeyAction = (this.inputElement.value !== this.previousElementValue) ? true : false;
|
|
1205
|
+
if (this.enableMask && this.showClearButton && this.inputElement && this.inputElement.value === this.maskedDateValue && this.inputWrapper && this.inputWrapper.clearButton && !this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide')) {
|
|
1206
|
+
this.inputWrapper.clearButton.classList.add('e-clear-icon-hide');
|
|
1207
|
+
}
|
|
1202
1208
|
};
|
|
1203
1209
|
DatePicker.prototype.changeEvent = function (event) {
|
|
1204
1210
|
if (!this.isIconClicked && !(this.isBlur || this.isKeyAction)) {
|
|
@@ -2040,6 +2046,12 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
2040
2046
|
if (this.calendarElement && this.isCalendar()) {
|
|
2041
2047
|
_super.prototype.onPropertyChanged.call(this, newProp, oldProp);
|
|
2042
2048
|
}
|
|
2049
|
+
if (prop === 'min' && isNullOrUndefined(this.min)) {
|
|
2050
|
+
this.min = new Date(1900, 0, 1);
|
|
2051
|
+
}
|
|
2052
|
+
if (prop === 'max' && isNullOrUndefined(this.max)) {
|
|
2053
|
+
this.max = new Date(2099, 11, 31);
|
|
2054
|
+
}
|
|
2043
2055
|
break;
|
|
2044
2056
|
}
|
|
2045
2057
|
if (!this.isDynamicValueChanged) {
|
|
@@ -2928,10 +2928,26 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
2928
2928
|
}
|
|
2929
2929
|
};
|
|
2930
2930
|
DateRangePicker.prototype.renderCustomPopup = function () {
|
|
2931
|
+
var _this = this;
|
|
2931
2932
|
this.isCustomWindow = true;
|
|
2932
2933
|
this.popupObj.hide();
|
|
2933
2934
|
this.popupWrapper = this.createElement('div', { id: this.element.id + '_popup', className: ROOT + ' ' + POPUP });
|
|
2934
2935
|
this.renderControl();
|
|
2936
|
+
this.openEventArgs = {
|
|
2937
|
+
popup: this.popupObj || null,
|
|
2938
|
+
cancel: false,
|
|
2939
|
+
date: this.inputElement.value,
|
|
2940
|
+
model: this,
|
|
2941
|
+
event: event ? event : null,
|
|
2942
|
+
appendTo: this.isMobile || Browser.isDevice ? this.mobileRangePopupWrap : document.body
|
|
2943
|
+
};
|
|
2944
|
+
var eventArgs = this.openEventArgs;
|
|
2945
|
+
this.trigger('open', eventArgs, function (eventArgs) {
|
|
2946
|
+
_this.openEventArgs = eventArgs;
|
|
2947
|
+
if (_this.openEventArgs.cancel) {
|
|
2948
|
+
return;
|
|
2949
|
+
}
|
|
2950
|
+
});
|
|
2935
2951
|
this.openEventArgs.appendTo.appendChild(this.popupWrapper);
|
|
2936
2952
|
this.showPopup();
|
|
2937
2953
|
this.isCustomRange = true;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component, Internationalization } from '@syncfusion/ej2-base';
|
|
2
2
|
import { CalendarType } from '../calendar/calendar';
|
|
3
|
+
import { InputObject } from '@syncfusion/ej2-inputs';
|
|
3
4
|
/**
|
|
4
5
|
* Specifies mulitselct interfaces.
|
|
5
6
|
*
|
|
@@ -13,6 +14,7 @@ export interface IMaskedDateTime extends Component<HTMLElement> {
|
|
|
13
14
|
maskedDateValue: string;
|
|
14
15
|
locale: string;
|
|
15
16
|
inputElement: HTMLInputElement;
|
|
17
|
+
inputWrapper: InputObject;
|
|
16
18
|
value: Date;
|
|
17
19
|
updateInputValue(value?: string): void;
|
|
18
20
|
dateTimeFormat: string;
|
|
@@ -900,6 +900,9 @@ var MaskedDateTime = /** @class */ (function () {
|
|
|
900
900
|
MaskedDateTime.prototype.clearHandler = function () {
|
|
901
901
|
this.isDayPart = this.isMonthPart = this.isYearPart = this.isHourPart = this.isMinutePart = this.isSecondsPart = false;
|
|
902
902
|
this.updateValue();
|
|
903
|
+
if (this.parent.inputElement && this.parent.inputElement.value === this.parent.maskedDateValue && this.parent.inputWrapper && this.parent.inputWrapper.clearButton && !this.parent.inputWrapper.clearButton.classList.contains('e-clear-icon-hide')) {
|
|
904
|
+
this.parent.inputWrapper.clearButton.classList.add('e-clear-icon-hide');
|
|
905
|
+
}
|
|
903
906
|
};
|
|
904
907
|
MaskedDateTime.prototype.updateValue = function () {
|
|
905
908
|
this.monthCharacter = this.periodCharacter = '';
|
|
@@ -577,6 +577,7 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
|
|
|
577
577
|
protected strictOperation(minimum: Date, maximum: Date, dateVal: Date | string, val: Date): Date | string;
|
|
578
578
|
protected bindEvents(): void;
|
|
579
579
|
private keydownHandler;
|
|
580
|
+
private keyupHandler;
|
|
580
581
|
protected formResetHandler(): void;
|
|
581
582
|
private inputChangeHandler;
|
|
582
583
|
private inputEventHandler;
|
|
@@ -1318,6 +1318,7 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
1318
1318
|
EventHandler.add(this.inputElement, 'input', this.inputEventHandler, this);
|
|
1319
1319
|
if (this.enableMask) {
|
|
1320
1320
|
EventHandler.add(this.inputElement, 'keydown', this.keydownHandler, this);
|
|
1321
|
+
EventHandler.add(this.inputElement, 'keyup', this.keyupHandler, this);
|
|
1321
1322
|
}
|
|
1322
1323
|
if (this.showClearButton && this.inputWrapper.clearButton) {
|
|
1323
1324
|
EventHandler.add(this.inputWrapper.clearButton, 'mousedown', this.clearHandler, this);
|
|
@@ -1351,6 +1352,11 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
1351
1352
|
break;
|
|
1352
1353
|
}
|
|
1353
1354
|
};
|
|
1355
|
+
TimePicker.prototype.keyupHandler = function (e) {
|
|
1356
|
+
if ((e.code === 'Backspace' || e.code === 'Delete') && (this.enableMask && this.showClearButton && this.inputElement && this.inputElement.value === this.maskedDateValue && this.inputWrapper && this.inputWrapper.clearButton && !this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide'))) {
|
|
1357
|
+
this.inputWrapper.clearButton.classList.add('e-clear-icon-hide');
|
|
1358
|
+
}
|
|
1359
|
+
};
|
|
1354
1360
|
TimePicker.prototype.formResetHandler = function () {
|
|
1355
1361
|
if (!this.enabled) {
|
|
1356
1362
|
return;
|
|
@@ -1401,6 +1407,9 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
1401
1407
|
EventHandler.remove(this.inputElement, 'focus', this.inputFocusHandler);
|
|
1402
1408
|
EventHandler.remove(this.inputElement, 'change', this.inputChangeHandler);
|
|
1403
1409
|
EventHandler.remove(this.inputElement, 'input', this.inputEventHandler);
|
|
1410
|
+
if (this.enableMask) {
|
|
1411
|
+
EventHandler.remove(this.inputElement, 'keyup', this.keyupHandler);
|
|
1412
|
+
}
|
|
1404
1413
|
if (this.inputEvent) {
|
|
1405
1414
|
this.inputEvent.destroy();
|
|
1406
1415
|
}
|
|
@@ -2149,6 +2158,9 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
2149
2158
|
this.inputElement.selectionEnd = this.inputElement.value.length;
|
|
2150
2159
|
}
|
|
2151
2160
|
}
|
|
2161
|
+
if (this.enableMask && this.showClearButton && this.inputElement && this.inputElement.value === this.maskedDateValue && this.inputWrapper && this.inputWrapper.clearButton && !this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide')) {
|
|
2162
|
+
this.inputWrapper.clearButton.classList.add('e-clear-icon-hide');
|
|
2163
|
+
}
|
|
2152
2164
|
this.trigger('focus', focusArguments);
|
|
2153
2165
|
this.clearIconState();
|
|
2154
2166
|
if (this.openOnFocus) {
|