@syncfusion/ej2-calendars 27.2.2 → 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 +21 -0
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +21 -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 +6 -6
- package/src/datepicker/datepicker.js +6 -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.2.
|
|
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": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@syncfusion/ej2-base": "~27.2.2",
|
|
47
47
|
"@syncfusion/ej2-buttons": "~27.2.2",
|
|
48
48
|
"@syncfusion/ej2-inputs": "~27.2.2",
|
|
49
|
-
"@syncfusion/ej2-lists": "~27.2.
|
|
49
|
+
"@syncfusion/ej2-lists": "~27.2.3",
|
|
50
50
|
"@syncfusion/ej2-popups": "~27.2.2"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
@@ -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.2.
|
|
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)) {
|
|
@@ -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) {
|