@syncfusion/ej2-calendars 24.2.3 → 24.2.8

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.
Files changed (58) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/ej2-calendars.min.js +2 -2
  3. package/dist/ej2-calendars.umd.min.js +2 -2
  4. package/dist/ej2-calendars.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-calendars.es2015.js +103 -40
  6. package/dist/es6/ej2-calendars.es2015.js.map +1 -1
  7. package/dist/es6/ej2-calendars.es5.js +103 -40
  8. package/dist/es6/ej2-calendars.es5.js.map +1 -1
  9. package/dist/global/ej2-calendars.min.js +2 -2
  10. package/dist/global/ej2-calendars.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +10 -10
  13. package/src/calendar/calendar.d.ts +2 -0
  14. package/src/calendar/calendar.js +86 -21
  15. package/src/datepicker/datepicker.js +7 -3
  16. package/src/daterangepicker/daterangepicker.d.ts +0 -2
  17. package/src/daterangepicker/daterangepicker.js +8 -12
  18. package/src/maskbase/masked-date-time.js +2 -4
  19. package/styles/bootstrap-dark.css +2 -2
  20. package/styles/bootstrap.css +1 -1
  21. package/styles/bootstrap4.css +2 -2
  22. package/styles/bootstrap5-dark.css +1 -1
  23. package/styles/bootstrap5.css +1 -1
  24. package/styles/calendar/_bootstrap-dark-definition.scss +2 -2
  25. package/styles/calendar/_bootstrap4-definition.scss +2 -2
  26. package/styles/calendar/_material-dark-definition.scss +1 -1
  27. package/styles/calendar/_material-definition.scss +1 -1
  28. package/styles/calendar/_material3-definition.scss +1 -1
  29. package/styles/calendar/_theme.scss +1 -1
  30. package/styles/calendar/bootstrap-dark.css +2 -2
  31. package/styles/calendar/bootstrap.css +1 -1
  32. package/styles/calendar/bootstrap4.css +2 -2
  33. package/styles/calendar/bootstrap5-dark.css +1 -1
  34. package/styles/calendar/bootstrap5.css +1 -1
  35. package/styles/calendar/fabric-dark.css +1 -1
  36. package/styles/calendar/fabric.css +1 -1
  37. package/styles/calendar/fluent-dark.css +1 -1
  38. package/styles/calendar/fluent.css +1 -1
  39. package/styles/calendar/highcontrast-light.css +1 -1
  40. package/styles/calendar/highcontrast.css +1 -1
  41. package/styles/calendar/material-dark.css +10 -10
  42. package/styles/calendar/material.css +10 -10
  43. package/styles/calendar/material3-dark.css +10 -10
  44. package/styles/calendar/material3.css +10 -10
  45. package/styles/calendar/tailwind-dark.css +1 -1
  46. package/styles/calendar/tailwind.css +1 -1
  47. package/styles/fabric-dark.css +1 -1
  48. package/styles/fabric.css +1 -1
  49. package/styles/fluent-dark.css +1 -1
  50. package/styles/fluent.css +1 -1
  51. package/styles/highcontrast-light.css +1 -1
  52. package/styles/highcontrast.css +1 -1
  53. package/styles/material-dark.css +10 -10
  54. package/styles/material.css +10 -10
  55. package/styles/material3-dark.css +10 -10
  56. package/styles/material3.css +10 -10
  57. package/styles/tailwind-dark.css +1 -1
  58. package/styles/tailwind.css +1 -1
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 24.2.3
3
+ * version : 24.2.8
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@24.1.47",
3
+ "_id": "@syncfusion/ej2-calendars@24.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-FvBECaMLbb4sI890M0ApgyZLCQmpbpFXd9JyUYgrQp7Gbx7HI1FZ7IhgG44iL1lMLoS01HcXhVuJnsxhT8KMdw==",
5
+ "_integrity": "sha512-TubAKr00yybjqjVfWRk1NKgc93KY3Ispr7+QY158f2EOmKrI5EOb+nqjvVZw9GH4rjpjQfS2qZtrF0fCfwUmgg==",
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.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-24.1.47.tgz",
35
- "_shasum": "1dadc83cca6f8b8bb1a22f38031b42f252a621b8",
34
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-24.2.5.tgz",
35
+ "_shasum": "e61c5b6e682851df791464d6ce8893e44c7cde65",
36
36
  "_spec": "@syncfusion/ej2-calendars@*",
37
37
  "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
38
38
  "author": {
@@ -43,11 +43,11 @@
43
43
  },
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
- "@syncfusion/ej2-base": "~24.2.3",
47
- "@syncfusion/ej2-buttons": "~24.2.3",
48
- "@syncfusion/ej2-inputs": "~24.2.3",
49
- "@syncfusion/ej2-lists": "~24.2.3",
50
- "@syncfusion/ej2-popups": "~24.2.3"
46
+ "@syncfusion/ej2-base": "~24.2.7",
47
+ "@syncfusion/ej2-buttons": "~24.2.7",
48
+ "@syncfusion/ej2-inputs": "~24.2.7",
49
+ "@syncfusion/ej2-lists": "~24.2.8",
50
+ "@syncfusion/ej2-popups": "~24.2.8"
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": "24.2.3",
83
+ "version": "24.2.8",
84
84
  "sideEffects": false
85
85
  }
@@ -362,6 +362,8 @@ export declare class CalendarBase extends Component<HTMLElement> implements INot
362
362
  protected minMaxUpdate(value?: Date): void;
363
363
  protected createHeader(): void;
364
364
  protected createContent(): void;
365
+ private addContentFocus;
366
+ private removeContentFocus;
365
367
  protected getCultureValues(): string[];
366
368
  protected toCapitalize(text: string): string;
367
369
  protected createContentHeader(): void;
@@ -33,6 +33,7 @@ var DEVICE = 'e-device';
33
33
  var HEADER = 'e-header';
34
34
  var RTL = 'e-rtl';
35
35
  var CONTENT = 'e-content';
36
+ var CONTENTTABLE = 'e-calandar-content-table';
36
37
  var YEAR = 'e-year';
37
38
  var MONTH = 'e-month';
38
39
  var DECADE = 'e-decade';
@@ -48,6 +49,7 @@ var WEEKEND = 'e-weekend';
48
49
  var WEEKNUMBER = 'e-week-number';
49
50
  var SELECTED = 'e-selected';
50
51
  var FOCUSEDDATE = 'e-focused-date';
52
+ var FOCUSEDCELL = 'e-focused-cell';
51
53
  var OTHERMONTHROW = 'e-month-hide';
52
54
  var TODAY = 'e-today';
53
55
  var TITLE = 'e-title';
@@ -228,6 +230,7 @@ var CalendarBase = /** @class */ (function (_super) {
228
230
  var ariaTitleAttrs = {
229
231
  'aria-atomic': 'true', 'aria-live': 'assertive', 'aria-label': 'title'
230
232
  };
233
+ var tabIndexAttr = { 'tabindex': '0' };
231
234
  this.headerElement = this.createElement('div', { className: HEADER });
232
235
  var iconContainer = this.createElement('div', { className: ICONCONTAINER });
233
236
  this.previousIcon = this.createElement('button', { className: '' + PREVICON, attrs: { type: 'button' } });
@@ -237,6 +240,7 @@ var CalendarBase = /** @class */ (function (_super) {
237
240
  isCenterRipple: true
238
241
  });
239
242
  attributes(this.previousIcon, ariaPrevAttrs);
243
+ attributes(this.previousIcon, tabIndexAttr);
240
244
  this.nextIcon = this.createElement('button', { className: '' + NEXTICON, attrs: { type: 'button' } });
241
245
  rippleEffect(this.nextIcon, {
242
246
  selector: '.e-next',
@@ -248,8 +252,10 @@ var CalendarBase = /** @class */ (function (_super) {
248
252
  attributes(this.nextIcon, { tabIndex: '-1' });
249
253
  }
250
254
  attributes(this.nextIcon, ariaNextAttrs);
255
+ attributes(this.nextIcon, tabIndexAttr);
251
256
  this.headerTitleElement = this.createElement('div', { className: '' + LINK + ' ' + TITLE });
252
257
  attributes(this.headerTitleElement, ariaTitleAttrs);
258
+ attributes(this.headerTitleElement, tabIndexAttr);
253
259
  this.headerElement.appendChild(this.headerTitleElement);
254
260
  this.previousIcon.appendChild(this.createElement('span', { className: '' + PREVSPAN + ' ' + ICON }));
255
261
  this.nextIcon.appendChild(this.createElement('span', { className: '' + NEXTSPAN + ' ' + ICON }));
@@ -266,7 +272,7 @@ var CalendarBase = /** @class */ (function (_super) {
266
272
  };
267
273
  CalendarBase.prototype.createContent = function () {
268
274
  this.contentElement = this.createElement('div', { className: CONTENT });
269
- this.table = this.createElement('table', { attrs: { tabIndex: '0', 'role': 'grid', 'aria-activedescendant': '', 'aria-labelledby': this.element.id } });
275
+ this.table = this.createElement('table', { attrs: { 'class': CONTENTTABLE, 'tabIndex': '0', 'role': 'grid', 'aria-activedescendant': '', 'aria-labelledby': this.element.id } });
270
276
  if (this.getModuleName() === 'calendar') {
271
277
  this.element.appendChild(this.contentElement);
272
278
  }
@@ -279,6 +285,30 @@ var CalendarBase = /** @class */ (function (_super) {
279
285
  if (this.showTodayButton) {
280
286
  this.createContentFooter();
281
287
  }
288
+ if (this.getModuleName() != 'daterangepicker') {
289
+ EventHandler.add(this.table, 'focus', this.addContentFocus, this);
290
+ EventHandler.add(this.table, 'blur', this.removeContentFocus, this);
291
+ }
292
+ };
293
+ CalendarBase.prototype.addContentFocus = function (args) {
294
+ var focusedDate = this.tableBodyElement.querySelector('tr td.e-focused-date');
295
+ var selectedDate = this.tableBodyElement.querySelector('tr td.e-selected');
296
+ if (!isNullOrUndefined(selectedDate)) {
297
+ selectedDate.classList.add(FOCUSEDCELL);
298
+ }
299
+ else if (!isNullOrUndefined(focusedDate)) {
300
+ focusedDate.classList.add(FOCUSEDCELL);
301
+ }
302
+ };
303
+ CalendarBase.prototype.removeContentFocus = function (args) {
304
+ var focusedDate = this.tableBodyElement.querySelector('tr td.e-focused-date');
305
+ var selectedDate = this.tableBodyElement.querySelector('tr td.e-selected');
306
+ if (!isNullOrUndefined(selectedDate)) {
307
+ selectedDate.classList.remove(FOCUSEDCELL);
308
+ }
309
+ else if (!isNullOrUndefined(focusedDate)) {
310
+ focusedDate.classList.remove(FOCUSEDCELL);
311
+ }
282
312
  };
283
313
  CalendarBase.prototype.getCultureValues = function () {
284
314
  var culShortNames = [];
@@ -363,6 +393,7 @@ var CalendarBase = /** @class */ (function (_super) {
363
393
  CalendarBase.prototype.updateFooter = function () {
364
394
  this.todayElement.textContent = this.l10.getConstant('today');
365
395
  this.todayElement.setAttribute('aria-label', this.l10.getConstant('today'));
396
+ this.todayElement.setAttribute('tabindex', '0');
366
397
  };
367
398
  CalendarBase.prototype.createContentFooter = function () {
368
399
  if (this.showTodayButton) {
@@ -467,34 +498,54 @@ var CalendarBase = /** @class */ (function (_super) {
467
498
  this.effect = '';
468
499
  switch (e.action) {
469
500
  case 'moveLeft':
470
- this.keyboardNavigate(-1, view, e, this.max, this.min);
471
- e.preventDefault();
501
+ if (this.getModuleName() != 'daterangepicker' && !isNullOrUndefined(e.target) && e.target.classList.length > 0 && e.target.classList.contains(CONTENTTABLE)) {
502
+ this.keyboardNavigate(-1, view, e, this.max, this.min);
503
+ e.preventDefault();
504
+ }
472
505
  break;
473
506
  case 'moveRight':
474
- this.keyboardNavigate(1, view, e, this.max, this.min);
475
- e.preventDefault();
507
+ if (this.getModuleName() != 'daterangepicker' && !isNullOrUndefined(e.target) && e.target.classList.length > 0 && e.target.classList.contains(CONTENTTABLE)) {
508
+ this.keyboardNavigate(1, view, e, this.max, this.min);
509
+ e.preventDefault();
510
+ }
476
511
  break;
477
512
  case 'moveUp':
478
- if (view === 0) {
479
- this.keyboardNavigate(-7, view, e, this.max, this.min); // move the current date to the previous seven days.
480
- }
481
- else {
482
- this.keyboardNavigate(-4, view, e, this.max, this.min); // move the current year to the previous four days.
513
+ if (this.getModuleName() != 'daterangepicker' && !isNullOrUndefined(e.target) && e.target.classList.length > 0 && e.target.classList.contains(CONTENTTABLE)) {
514
+ if (view === 0) {
515
+ this.keyboardNavigate(-7, view, e, this.max, this.min); // move the current date to the previous seven days.
516
+ }
517
+ else {
518
+ this.keyboardNavigate(-4, view, e, this.max, this.min); // move the current year to the previous four days.
519
+ }
520
+ e.preventDefault();
483
521
  }
484
- e.preventDefault();
485
522
  break;
486
523
  case 'moveDown':
487
- if (view === 0) {
488
- this.keyboardNavigate(7, view, e, this.max, this.min);
489
- }
490
- else {
491
- this.keyboardNavigate(4, view, e, this.max, this.min);
524
+ if (this.getModuleName() != 'daterangepicker' && !isNullOrUndefined(e.target) && e.target.classList.length > 0 && e.target.classList.contains(CONTENTTABLE)) {
525
+ if (view === 0) {
526
+ this.keyboardNavigate(7, view, e, this.max, this.min);
527
+ }
528
+ else {
529
+ this.keyboardNavigate(4, view, e, this.max, this.min);
530
+ }
531
+ e.preventDefault();
492
532
  }
493
- e.preventDefault();
494
533
  break;
495
534
  case 'select':
496
- if (e.target === this.todayElement) {
535
+ if (e.target === this.headerTitleElement) {
536
+ this.navigateTitle(e);
537
+ }
538
+ else if (e.target === this.previousIcon) {
539
+ this.navigatePrevious(e);
540
+ }
541
+ else if (e.target === this.nextIcon) {
542
+ this.navigateNext(e);
543
+ }
544
+ else if (e.target === this.todayElement) {
497
545
  this.todayButtonClick(e, value);
546
+ if (this.getModuleName() === 'datepicker' || this.getModuleName() === 'datetimepicker') {
547
+ this.element.focus();
548
+ }
498
549
  }
499
550
  else {
500
551
  var element = !isNullOrUndefined(focusedDate) ? focusedDate : selectedDate;
@@ -507,6 +558,9 @@ var CalendarBase = /** @class */ (function (_super) {
507
558
  else {
508
559
  this.contentClick(null, --view, (element), value);
509
560
  }
561
+ if (this.getModuleName() === 'datepicker' || this.getModuleName() === 'datetimepicker') {
562
+ this.element.focus();
563
+ }
510
564
  }
511
565
  }
512
566
  break;
@@ -576,9 +630,20 @@ var CalendarBase = /** @class */ (function (_super) {
576
630
  this.navigateTo('Month', new Date(this.currentDate.getFullYear(), 11, 31));
577
631
  e.preventDefault();
578
632
  break;
579
- }
580
- if (this.getModuleName() === 'calendar') {
581
- this.table.focus();
633
+ case 'tab':
634
+ if ((this.getModuleName() === 'datepicker' || this.getModuleName() === 'datetimepicker') && e.target === this.todayElement) {
635
+ e.preventDefault();
636
+ this.element.focus();
637
+ this.hide();
638
+ }
639
+ break;
640
+ case 'shiftTab':
641
+ if ((this.getModuleName() === 'datepicker' || this.getModuleName() === 'datetimepicker') && e.target === this.headerTitleElement) {
642
+ e.preventDefault();
643
+ this.element.focus();
644
+ this.hide();
645
+ }
646
+ break;
582
647
  }
583
648
  };
584
649
  CalendarBase.prototype.keyboardNavigate = function (number, currentView, e, max, min) {
@@ -672,8 +672,6 @@ var DatePicker = /** @class */ (function (_super) {
672
672
  this.inputElement.focus();
673
673
  }
674
674
  break;
675
- case 'tab':
676
- this.hide(e);
677
675
  }
678
676
  };
679
677
  DatePicker.prototype.inputFocusHandler = function () {
@@ -835,7 +833,13 @@ var DatePicker = /** @class */ (function (_super) {
835
833
  this.inputElement.selectionStart = start;
836
834
  this.inputElement.selectionEnd = end;
837
835
  }
838
- this.hide(e);
836
+ if (e.action === 'tab' && e.target === this.inputElement && this.isCalendar() && document.activeElement === this.inputElement) {
837
+ e.preventDefault();
838
+ this.headerTitleElement.focus();
839
+ }
840
+ if (e.action === 'shiftTab' && e.target === this.inputElement && this.isCalendar() && document.activeElement === this.inputElement) {
841
+ this.hide(e);
842
+ }
839
843
  break;
840
844
  }
841
845
  default:
@@ -173,7 +173,6 @@ export declare class DateRangePicker extends CalendarBase {
173
173
  protected touchRangeModule: Touch;
174
174
  protected touchRangeStart: boolean;
175
175
  protected iconRangeRight: string;
176
- private isKeyPressed;
177
176
  /**
178
177
  * Gets or sets the start and end date of the Calendar.
179
178
  * {% codeBlock src='daterangepicker/value/index.md' %}{% endcodeBlock %}
@@ -716,7 +715,6 @@ export declare class DateRangePicker extends CalendarBase {
716
715
  private modelRangeCloseHandler;
717
716
  private cancelFunction;
718
717
  private deviceHeaderUpdate;
719
- private keyupHandler;
720
718
  private applyFunction;
721
719
  private onMouseClick;
722
720
  private onMouseOver;
@@ -147,7 +147,6 @@ var DateRangePicker = /** @class */ (function (_super) {
147
147
  _this.invalidValueString = null;
148
148
  _this.isAngular = false;
149
149
  _this.preventChange = false;
150
- _this.isKeyPressed = false;
151
150
  _this.dateRangeOptions = options;
152
151
  return _this;
153
152
  }
@@ -503,7 +502,6 @@ var DateRangePicker = /** @class */ (function (_super) {
503
502
  EventHandler.add(this.inputElement, 'focus', this.inputFocusHandler, this);
504
503
  EventHandler.add(this.inputElement, 'blur', this.inputBlurHandler, this);
505
504
  EventHandler.add(this.inputElement, 'change', this.inputChangeHandler, this);
506
- EventHandler.add(this.inputElement, 'keyup', this.keyupHandler, this);
507
505
  if (this.showClearButton && this.inputWrapper.clearButton) {
508
506
  EventHandler.add(this.inputWrapper.clearButton, 'mousedown', this.resetHandler, this);
509
507
  }
@@ -530,7 +528,6 @@ var DateRangePicker = /** @class */ (function (_super) {
530
528
  EventHandler.remove(this.inputElement, 'blur', this.inputBlurHandler);
531
529
  EventHandler.remove(this.inputElement, 'focus', this.inputFocusHandler);
532
530
  EventHandler.remove(this.inputElement, 'change', this.inputChangeHandler);
533
- EventHandler.remove(this.inputElement, 'keyup', this.keyupHandler);
534
531
  if (this.showClearButton && this.inputWrapper.clearButton) {
535
532
  EventHandler.remove(this.inputWrapper.clearButton, 'mousedown touchstart', this.resetHandler);
536
533
  }
@@ -785,8 +782,8 @@ var DateRangePicker = /** @class */ (function (_super) {
785
782
  var startDate = this.presetsItem[i].start;
786
783
  var endDate = this.presetsItem[i].end;
787
784
  if (this.startValue && this.endValue) {
788
- if ((+new Date(startDate.setHours(0, 0, 0, 0)) === +new Date(this.startValue.setHours(0, 0, 0, 0))) &&
789
- (+new Date(endDate.setHours(0, 0, 0, 0)) === +new Date(this.endValue.setHours(0, 0, 0, 0)))) {
785
+ if (startDate.getDate() == this.startValue.getDate() && startDate.getMonth() == this.startValue.getMonth() && startDate.getFullYear() == this.startValue.getFullYear()
786
+ && endDate.getDate() == this.endValue.getDate() && endDate.getMonth() == this.endValue.getMonth() && endDate.getFullYear() == this.endValue.getFullYear()) {
790
787
  this.activeIndex = i;
791
788
  this.isCustomRange = false;
792
789
  }
@@ -2765,9 +2762,6 @@ var DateRangePicker = /** @class */ (function (_super) {
2765
2762
  this.startButton.element.classList.add(ACTIVE);
2766
2763
  }
2767
2764
  };
2768
- DateRangePicker.prototype.keyupHandler = function (e) {
2769
- this.isKeyPressed = (this.inputElement.value !== this.previousEleValue) ? true : false;
2770
- };
2771
2765
  DateRangePicker.prototype.applyFunction = function (eve) {
2772
2766
  var isValueChanged = false;
2773
2767
  if (eve.type !== 'touchstart') {
@@ -2790,13 +2784,15 @@ var DateRangePicker = /** @class */ (function (_super) {
2790
2784
  eve.preventDefault();
2791
2785
  }
2792
2786
  if (!isNullOrUndefined(this.startValue) && !isNullOrUndefined(this.endValue)) {
2787
+ if (!(this.previousStartValue && this.previousEndValue && this.startValue.getDate() == this.previousStartValue.getDate() && this.startValue.getMonth() == this.previousStartValue.getMonth() &&
2788
+ this.startValue.getFullYear() == this.previousStartValue.getFullYear()
2789
+ && this.endValue.getDate() == this.previousEndValue.getDate() && this.endValue.getMonth() == this.previousEndValue.getMonth()
2790
+ && this.endValue.getFullYear() == this.previousEndValue.getFullYear())) {
2791
+ Input.setValue(this.rangeArgs(eve).text, this.inputElement, this.floatLabelType, this.showClearButton);
2792
+ }
2793
2793
  this.previousStartValue = new Date(+this.startValue);
2794
2794
  this.previousEndValue = new Date(+this.endValue);
2795
2795
  this.previousEleValue = this.inputElement.value;
2796
- if (!this.isKeyPressed) {
2797
- Input.setValue(this.rangeArgs(eve).text, this.inputElement, this.floatLabelType, this.showClearButton);
2798
- }
2799
- this.isKeyPressed = false;
2800
2796
  if (+this.initStartDate !== +this.startValue || +this.initEndDate !== +this.endValue) {
2801
2797
  isValueChanged = true;
2802
2798
  }
@@ -345,6 +345,7 @@ var MaskedDateTime = /** @class */ (function () {
345
345
  {
346
346
  var year = (this.isYearPart && (newDateValue.getFullYear().toString().length < 4
347
347
  && !this.isShortYear) ? newDateValue.getFullYear() * 10 : 0) + parseInt(newVal[start - 1], 10);
348
+ var yearValue = (this.dateformat.match(/y/g) || []).length;
348
349
  this.isShortYear = false;
349
350
  this.isYearZero = (newVal[start - 1] === '0');
350
351
  if (isNaN(year)) {
@@ -358,7 +359,7 @@ var MaskedDateTime = /** @class */ (function () {
358
359
  }
359
360
  else {
360
361
  newDateValue.setFullYear(year);
361
- if (year.toString().length === 4) {
362
+ if (year.toString().length === yearValue) {
362
363
  this.isNavigate = true;
363
364
  }
364
365
  this.previousDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth(), newDateValue.getDate());
@@ -533,9 +534,6 @@ var MaskedDateTime = /** @class */ (function () {
533
534
  case 'yy':
534
535
  result = proxy.isYearPart ? proxy.roundOff(proxy.maskDateValue.getFullYear() % 100, 2) : proxy.defaultConstant['year'].toString();
535
536
  result = proxy.zeroCheck(proxy.isYearZero, proxy.isYearPart, result);
536
- if (proxy.isYearPart) {
537
- proxy.isNavigate = proxy.isShortYear = (proxy.maskDateValue.getFullYear() % 100).toString().length === 2;
538
- }
539
537
  break;
540
538
  case 'y':
541
539
  case 'yyyy':
@@ -603,7 +603,7 @@ ejs-calendar {
603
603
  .e-calendar .e-header .e-title:active,
604
604
  .e-bigger.e-small .e-calendar .e-header .e-title:active {
605
605
  box-shadow: none;
606
- background: #f0f0f0;
606
+ background: transparent;
607
607
  text-decoration: none;
608
608
  }
609
609
  .e-calendar .e-header .e-prev:hover > span, .e-calendar .e-header .e-next:hover > span,
@@ -842,7 +842,7 @@ ejs-calendar {
842
842
  transform: scale(1);
843
843
  }
844
844
  }
845
- .e-calendar .e-cell.e-focused-cell {
845
+ .e-calendar .e-content-table .e-cell.e-focused-cell span.e-day {
846
846
  box-shadow: 0 0 0 1px #fff;
847
847
  border-radius: 4px;
848
848
  }
@@ -843,7 +843,7 @@ ejs-calendar {
843
843
  transform: scale(1);
844
844
  }
845
845
  }
846
- .e-calendar .e-cell.e-focused-cell {
846
+ .e-calendar .e-content-table .e-cell.e-focused-cell span.e-day {
847
847
  box-shadow: 0 0 0 1px #000;
848
848
  border-radius: 4px;
849
849
  }
@@ -604,7 +604,7 @@ ejs-calendar {
604
604
  .e-calendar .e-header .e-title:active,
605
605
  .e-bigger.e-small .e-calendar .e-header .e-title:active {
606
606
  box-shadow: none;
607
- background: #212529;
607
+ background: transparent;
608
608
  text-decoration: none;
609
609
  }
610
610
  .e-calendar .e-header .e-prev:hover > span, .e-calendar .e-header .e-next:hover > span,
@@ -843,7 +843,7 @@ ejs-calendar {
843
843
  transform: scale(1);
844
844
  }
845
845
  }
846
- .e-calendar .e-cell.e-focused-cell {
846
+ .e-calendar .e-content-table .e-cell.e-focused-cell span.e-day {
847
847
  box-shadow: 0 0 0 1px #212529;
848
848
  border-radius: 4px;
849
849
  }
@@ -913,7 +913,7 @@ ejs-calendar {
913
913
  color: rgba(255, 255, 255, 0.65);
914
914
  }
915
915
 
916
- .e-calendar .e-cell.e-focused-cell {
916
+ .e-calendar .e-content-table .e-cell.e-focused-cell span.e-day {
917
917
  box-shadow: 0 0 0 1px #7b848d;
918
918
  border-radius: 4px;
919
919
  }
@@ -913,7 +913,7 @@ ejs-calendar {
913
913
  color: rgba(255, 255, 255, 0.65);
914
914
  }
915
915
 
916
- .e-calendar .e-cell.e-focused-cell {
916
+ .e-calendar .e-content-table .e-cell.e-focused-cell span.e-day {
917
917
  box-shadow: 0 0 0 1px #6c757d;
918
918
  border-radius: 4px;
919
919
  }
@@ -27,10 +27,10 @@ $calendar-title-font-weight-style: 600 !default;
27
27
  $calendar-title-decoration-style: none !default;
28
28
  $calendar-header-title-padding: 0 5px !default;
29
29
 
30
- // Focus related styles
30
+ //Focus related styles
31
31
  $calendar-title-focus-box-shadow: 0 0 0 1px $grey-light-font !default;
32
32
  $calendar-title-focus-background: none !default;
33
- $calendar-title-active-background: $grey-dark-font !default;
33
+ $calendar-title-active-background: transparent !default;
34
34
  $calendar-icon-focus-box-shadow: 0 0 0 1px $grey-light-font !default;
35
35
  $calendar-title-border-radius: 4px !default;
36
36
  $calendar-title-hover-bg-color: none !default;
@@ -29,10 +29,10 @@ $calendar-title-font-weight-style: 600 !default;
29
29
  $calendar-title-decoration-style: none !default;
30
30
  $calendar-header-title-padding: 0 5px !default;
31
31
 
32
- // Focus related styles
32
+ //Focus related styles
33
33
  $calendar-title-focus-box-shadow: 0 0 0 1px $gray-900 !default;
34
34
  $calendar-title-focus-background: none !default;
35
- $calendar-title-active-background: $gray-900 !default;
35
+ $calendar-title-active-background: transparent !default;
36
36
  $calendar-icon-focus-box-shadow: 0 0 0 1px $gray-900 !default;
37
37
  $calendar-title-border-radius: 4px !default;
38
38
  $calendar-title-hover-bg-color: none !default;
@@ -65,7 +65,7 @@ $calendar-normal-year-decade-height: 45px !default;
65
65
  $calendar-normal-header-height: 40px !default;
66
66
  $calendar-normal-icon-size: 36px !default;
67
67
  $calendar-normal-today-button-height: 36px !default;
68
- $calendar-border-radius: 4px !default;
68
+ $calendar-border-radius: 50% !default;
69
69
  $calendar-pointer-events: none !default;
70
70
  $calendar-float-right-style: right !default;
71
71
  $calendar-icon-padding-top: 0 !default;
@@ -68,7 +68,7 @@ $calendar-normal-year-decade-height: 45px !default;
68
68
  $calendar-normal-header-height: 40px !default;
69
69
  $calendar-normal-icon-size: 36px !default;
70
70
  $calendar-normal-today-button-height: 36px !default;
71
- $calendar-border-radius: 4px !default;
71
+ $calendar-border-radius: 50% !default;
72
72
  $calendar-pointer-events: none !default;
73
73
  $calendar-float-right-style: right !default;
74
74
  $calendar-icon-padding-top: 0 !default;
@@ -71,7 +71,7 @@ $calendar-normal-year-decade-height: 56px !default;
71
71
  $calendar-normal-header-height: 40px !default;
72
72
  $calendar-normal-icon-size: 36px !default;
73
73
  $calendar-normal-today-button-height: 36px !default;
74
- $calendar-border-radius: 4px !default;
74
+ $calendar-border-radius: 32px !default;
75
75
  $calendar-pointer-events: initial !default;
76
76
  $calendar-float-right-style: right !default;
77
77
  $calendar-icon-padding-top: 0 !default;
@@ -548,7 +548,7 @@
548
548
  color: $calendar-today-disabled-color;
549
549
  }
550
550
  }
551
- .e-calendar .e-cell.e-focused-cell {
551
+ .e-calendar .e-content-table .e-cell.e-focused-cell span.e-day {
552
552
  box-shadow: $calendar-focused-cell-box-shadow;
553
553
  border-radius: $calendar-border-radius;
554
554
  }
@@ -603,7 +603,7 @@ ejs-calendar {
603
603
  .e-calendar .e-header .e-title:active,
604
604
  .e-bigger.e-small .e-calendar .e-header .e-title:active {
605
605
  box-shadow: none;
606
- background: #f0f0f0;
606
+ background: transparent;
607
607
  text-decoration: none;
608
608
  }
609
609
  .e-calendar .e-header .e-prev:hover > span, .e-calendar .e-header .e-next:hover > span,
@@ -842,7 +842,7 @@ ejs-calendar {
842
842
  transform: scale(1);
843
843
  }
844
844
  }
845
- .e-calendar .e-cell.e-focused-cell {
845
+ .e-calendar .e-content-table .e-cell.e-focused-cell span.e-day {
846
846
  box-shadow: 0 0 0 1px #fff;
847
847
  border-radius: 4px;
848
848
  }
@@ -843,7 +843,7 @@ ejs-calendar {
843
843
  transform: scale(1);
844
844
  }
845
845
  }
846
- .e-calendar .e-cell.e-focused-cell {
846
+ .e-calendar .e-content-table .e-cell.e-focused-cell span.e-day {
847
847
  box-shadow: 0 0 0 1px #000;
848
848
  border-radius: 4px;
849
849
  }
@@ -604,7 +604,7 @@ ejs-calendar {
604
604
  .e-calendar .e-header .e-title:active,
605
605
  .e-bigger.e-small .e-calendar .e-header .e-title:active {
606
606
  box-shadow: none;
607
- background: #212529;
607
+ background: transparent;
608
608
  text-decoration: none;
609
609
  }
610
610
  .e-calendar .e-header .e-prev:hover > span, .e-calendar .e-header .e-next:hover > span,
@@ -843,7 +843,7 @@ ejs-calendar {
843
843
  transform: scale(1);
844
844
  }
845
845
  }
846
- .e-calendar .e-cell.e-focused-cell {
846
+ .e-calendar .e-content-table .e-cell.e-focused-cell span.e-day {
847
847
  box-shadow: 0 0 0 1px #212529;
848
848
  border-radius: 4px;
849
849
  }
@@ -913,7 +913,7 @@ ejs-calendar {
913
913
  color: rgba(255, 255, 255, 0.65);
914
914
  }
915
915
 
916
- .e-calendar .e-cell.e-focused-cell {
916
+ .e-calendar .e-content-table .e-cell.e-focused-cell span.e-day {
917
917
  box-shadow: 0 0 0 1px #7b848d;
918
918
  border-radius: 4px;
919
919
  }
@@ -913,7 +913,7 @@ ejs-calendar {
913
913
  color: rgba(255, 255, 255, 0.65);
914
914
  }
915
915
 
916
- .e-calendar .e-cell.e-focused-cell {
916
+ .e-calendar .e-content-table .e-cell.e-focused-cell span.e-day {
917
917
  box-shadow: 0 0 0 1px #6c757d;
918
918
  border-radius: 4px;
919
919
  }
@@ -848,7 +848,7 @@ ejs-calendar {
848
848
  transform: scale(1);
849
849
  }
850
850
  }
851
- .e-calendar .e-cell.e-focused-cell {
851
+ .e-calendar .e-content-table .e-cell.e-focused-cell span.e-day {
852
852
  box-shadow: 0 0 0 1px #333232;
853
853
  border-radius: 0;
854
854
  }
@@ -853,7 +853,7 @@ ejs-calendar {
853
853
  transform: scale(1);
854
854
  }
855
855
  }
856
- .e-calendar .e-cell.e-focused-cell {
856
+ .e-calendar .e-content-table .e-cell.e-focused-cell span.e-day {
857
857
  box-shadow: 0 0 0 1px #000;
858
858
  border-radius: 0;
859
859
  }
@@ -1019,7 +1019,7 @@ ejs-calendar {
1019
1019
  color: #484644;
1020
1020
  }
1021
1021
 
1022
- .e-calendar .e-cell.e-focused-cell {
1022
+ .e-calendar .e-content-table .e-cell.e-focused-cell span.e-day {
1023
1023
  box-shadow: 0 0 0 1px #a19f9d;
1024
1024
  border-radius: 2px;
1025
1025
  }
@@ -1019,7 +1019,7 @@ ejs-calendar {
1019
1019
  color: #a19f9d;
1020
1020
  }
1021
1021
 
1022
- .e-calendar .e-cell.e-focused-cell {
1022
+ .e-calendar .e-content-table .e-cell.e-focused-cell span.e-day {
1023
1023
  box-shadow: 0 0 0 1px #605e5c;
1024
1024
  border-radius: 2px;
1025
1025
  }