@syncfusion/ej2-calendars 19.3.55 → 19.3.56

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.3.55
3
+ * version : 19.3.56
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.3.53",
3
+ "_id": "@syncfusion/ej2-calendars@19.3.55",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-9m1bWEXO2RdNDWIPAaVduGQFbIBwV9uh3oV0DcnW6kjJlctI5roPf2+B4wlszi5PFj6eiAIiljROMkdTS4ZU5g==",
5
+ "_integrity": "sha512-PjIfcNqIA0VkYukwdA7OeqWW5Yj6gxqjzwXhmjDznTev1+Ql+NLWXXY8lFWk8qABfwVg0/pJFU4J9MEoM124wg==",
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/@syncfusion/ej2-calendars/-/ej2-calendars-19.3.53.tgz",
36
- "_shasum": "75c5015e6d79451b809bd83fe9ccfa924828b4f1",
35
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-19.3.55.tgz",
36
+ "_shasum": "1750f67bf33354bd284066a12dc23208e39af06c",
37
37
  "_spec": "@syncfusion/ej2-calendars@*",
38
38
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
39
39
  "author": {
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "bundleDependencies": false,
46
46
  "dependencies": {
47
- "@syncfusion/ej2-base": "~19.3.54",
47
+ "@syncfusion/ej2-base": "~19.3.56",
48
48
  "@syncfusion/ej2-buttons": "~19.3.53",
49
49
  "@syncfusion/ej2-inputs": "~19.3.53",
50
50
  "@syncfusion/ej2-lists": "~19.3.53",
@@ -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.3.55",
84
+ "version": "19.3.56",
85
85
  "sideEffects": false
86
86
  }
@@ -35,6 +35,9 @@ export declare class MaskedDateTime {
35
35
  private isYearZero;
36
36
  private dayTypeCount;
37
37
  private monthTypeCount;
38
+ private hourTypeCount;
39
+ private minuteTypeCount;
40
+ private secondTypeCount;
38
41
  constructor(parent?: IMaskedDateTime);
39
42
  getModuleName(): string;
40
43
  addEventListener(): void;
@@ -42,6 +42,9 @@ var MaskedDateTime = /** @class */ (function () {
42
42
  this.isYearZero = false;
43
43
  this.dayTypeCount = 0;
44
44
  this.monthTypeCount = 0;
45
+ this.hourTypeCount = 0;
46
+ this.minuteTypeCount = 0;
47
+ this.secondTypeCount = 0;
45
48
  this.parent = parent;
46
49
  this.dateformat = this.getCulturedFormat();
47
50
  this.maskDateValue = this.parent.value != null ? new Date(+this.parent.value) : new Date();
@@ -314,6 +317,7 @@ var MaskedDateTime = /** @class */ (function () {
314
317
  newDateValue.setHours(Math.floor(newDateValue.getHours() / 12) * 12 + (this.hour % 12));
315
318
  this.isNavigate = this.hour.toString().length === 2;
316
319
  this.isHourPart = true;
320
+ this.hourTypeCount = this.hourTypeCount + 1;
317
321
  break;
318
322
  case 'H':
319
323
  this.hour = (this.isHourPart && newDateValue.getHours().toString().length < 2 ? newDateValue.getHours() * 10 : 0) + parseInt(newVal[start - 1], 10);
@@ -326,6 +330,7 @@ var MaskedDateTime = /** @class */ (function () {
326
330
  newDateValue.setHours(this.hour);
327
331
  this.isNavigate = this.hour.toString().length === 2;
328
332
  this.isHourPart = true;
333
+ this.hourTypeCount = this.hourTypeCount + 1;
329
334
  break;
330
335
  case 'm':
331
336
  var minutes = (this.isMinutePart && newDateValue.getMinutes().toString().length < 2 ? newDateValue.getMinutes() * 10 : 0) + parseInt(newVal[start - 1], 10);
@@ -338,6 +343,7 @@ var MaskedDateTime = /** @class */ (function () {
338
343
  newDateValue.setMinutes(minutes);
339
344
  this.isNavigate = minutes.toString().length === 2;
340
345
  this.isMinutePart = true;
346
+ this.minuteTypeCount = this.minuteTypeCount + 1;
341
347
  break;
342
348
  case 's':
343
349
  var seconds = (this.isSecondsPart && newDateValue.getSeconds().toString().length < 2 ? newDateValue.getSeconds() * 10 : 0) + parseInt(newVal[start - 1], 10);
@@ -350,6 +356,7 @@ var MaskedDateTime = /** @class */ (function () {
350
356
  newDateValue.setSeconds(seconds);
351
357
  this.isNavigate = seconds.toString().length === 2;
352
358
  this.isSecondsPart = true;
359
+ this.secondTypeCount = this.secondTypeCount + 1;
353
360
  break;
354
361
  case 'a':
355
362
  this.periodCharacter += newVal[start - 1].toLowerCase();
@@ -449,24 +456,40 @@ var MaskedDateTime = /** @class */ (function () {
449
456
  break;
450
457
  case 'hh':
451
458
  result = proxy.isHourPart ? proxy.roundOff(proxy.maskDateValue.getHours() % 12 || 12, 2) : proxy.defaultConstant['hour'].toString();
459
+ if (proxy.hourTypeCount == 2) {
460
+ proxy.isNavigate = true;
461
+ proxy.hourTypeCount = 0;
462
+ }
452
463
  break;
453
464
  case 'H':
454
465
  result = proxy.isHourPart ? proxy.maskDateValue.getHours().toString() : proxy.defaultConstant['hour'].toString();
455
466
  break;
456
467
  case 'HH':
457
468
  result = proxy.isHourPart ? proxy.roundOff(proxy.maskDateValue.getHours(), 2) : proxy.defaultConstant['hour'].toString();
469
+ if (proxy.hourTypeCount == 2) {
470
+ proxy.isNavigate = true;
471
+ proxy.hourTypeCount = 0;
472
+ }
458
473
  break;
459
474
  case 'm':
460
475
  result = proxy.isMinutePart ? proxy.maskDateValue.getMinutes().toString() : proxy.defaultConstant['minute'].toString();
461
476
  break;
462
477
  case 'mm':
463
478
  result = proxy.isMinutePart ? proxy.roundOff(proxy.maskDateValue.getMinutes(), 2) : proxy.defaultConstant['minute'].toString();
479
+ if (proxy.minuteTypeCount == 2) {
480
+ proxy.isNavigate = true;
481
+ proxy.minuteTypeCount = 0;
482
+ }
464
483
  break;
465
484
  case 's':
466
485
  result = proxy.isSecondsPart ? proxy.maskDateValue.getSeconds().toString() : proxy.defaultConstant['second'].toString();
467
486
  break;
468
487
  case 'ss':
469
488
  result = proxy.isSecondsPart ? proxy.roundOff(proxy.maskDateValue.getSeconds(), 2) : proxy.defaultConstant['second'].toString();
489
+ if (proxy.secondTypeCount == 2) {
490
+ proxy.isNavigate = true;
491
+ proxy.secondTypeCount = 0;
492
+ }
470
493
  break;
471
494
  case 'f':
472
495
  result = Math.floor(proxy.maskDateValue.getMilliseconds() / 100).toString();
@@ -1483,7 +1483,12 @@ var TimePicker = /** @class */ (function (_super) {
1483
1483
  if (!inputVal) {
1484
1484
  this.updateInputValue(this.maskedDateValue);
1485
1485
  }
1486
- this.createMask();
1486
+ if (isNullOrUndefined(val) && value != this.maskedDateValue) {
1487
+ this.createMask();
1488
+ }
1489
+ if (isNullOrUndefined(val) && value == this.maskedDateValue) {
1490
+ this.updateInputValue(this.maskedDateValue);
1491
+ }
1487
1492
  }
1488
1493
  }
1489
1494
  }
@@ -1556,7 +1561,12 @@ var TimePicker = /** @class */ (function (_super) {
1556
1561
  if (time == '') {
1557
1562
  this.updateInputValue(this.maskedDateValue);
1558
1563
  }
1559
- this.createMask();
1564
+ if (isNullOrUndefined(time) && value != this.maskedDateValue) {
1565
+ this.createMask();
1566
+ }
1567
+ if (isNullOrUndefined(time) && value == this.maskedDateValue) {
1568
+ this.updateInputValue(this.maskedDateValue);
1569
+ }
1560
1570
  }
1561
1571
  }
1562
1572
  return time;