@syncfusion/ej2-schedule 21.1.35 → 21.1.37

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 : 21.1.35
3
+ * version : 21.1.37
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-schedule@*",
3
- "_id": "@syncfusion/ej2-schedule@20.9.3",
3
+ "_id": "@syncfusion/ej2-schedule@21.1.35",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-K6UC0wZI336AFlzdF5eDnjkWDciLjVvVuDLhr0wN61M48p8SPo799ZQRb6fF5zmhIRbaJNRe9TZ9ZeeAqUt8Aw==",
5
+ "_integrity": "sha512-cu0+Yb4W4QdCR1k/uA6LvJ08ZEVMa7dywB0Xi5RTFvLNZ/1p7r07a6adKCitcKvBxFfdajEa11c8OM0z3/KGhQ==",
6
6
  "_location": "/@syncfusion/ej2-schedule",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-schedule",
24
24
  "/@syncfusion/ej2-vue-schedule"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-schedule/-/ej2-schedule-20.9.3.tgz",
27
- "_shasum": "e7705d82f1d75f19054bc4259b54f526b84d464d",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-21.1.35.tgz",
27
+ "_shasum": "a23988578cbeeca76962a0b80a03e90bbd878c77",
28
28
  "_spec": "@syncfusion/ej2-schedule@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
30
30
  "author": {
@@ -35,16 +35,16 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~21.1.35",
39
- "@syncfusion/ej2-buttons": "~21.1.35",
40
- "@syncfusion/ej2-calendars": "~21.1.35",
41
- "@syncfusion/ej2-data": "~21.1.35",
42
- "@syncfusion/ej2-dropdowns": "~21.1.35",
43
- "@syncfusion/ej2-excel-export": "~21.1.35",
44
- "@syncfusion/ej2-inputs": "~21.1.35",
45
- "@syncfusion/ej2-lists": "~21.1.35",
46
- "@syncfusion/ej2-navigations": "~21.1.35",
47
- "@syncfusion/ej2-popups": "~21.1.35"
38
+ "@syncfusion/ej2-base": "~21.1.37",
39
+ "@syncfusion/ej2-buttons": "~21.1.37",
40
+ "@syncfusion/ej2-calendars": "~21.1.37",
41
+ "@syncfusion/ej2-data": "~21.1.37",
42
+ "@syncfusion/ej2-dropdowns": "~21.1.37",
43
+ "@syncfusion/ej2-excel-export": "~21.1.37",
44
+ "@syncfusion/ej2-inputs": "~21.1.37",
45
+ "@syncfusion/ej2-lists": "~21.1.37",
46
+ "@syncfusion/ej2-navigations": "~21.1.37",
47
+ "@syncfusion/ej2-popups": "~21.1.37"
48
48
  },
49
49
  "deprecated": false,
50
50
  "description": "Flexible scheduling library with more built-in features and enhanced customization options similar to outlook and google calendar, allowing the users to plan and manage their appointments with efficient data-binding support.",
@@ -73,6 +73,6 @@
73
73
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
74
74
  },
75
75
  "typings": "index.d.ts",
76
- "version": "21.1.35",
76
+ "version": "21.1.37",
77
77
  "sideEffects": false
78
78
  }
@@ -478,7 +478,7 @@ var KeyboardInteraction = /** @class */ (function () {
478
478
  nextAppEle = isReverse ? appointments[appointments.length - 1] : appointments[0];
479
479
  }
480
480
  if (nextAppEle) {
481
- this.parent.eventBase.addSelectedAppointments([nextAppEle]);
481
+ this.parent.eventBase.addSelectedAppointments([nextAppEle], true);
482
482
  nextAppEle.focus();
483
483
  addClass([nextAppEle], cls.AGENDA_SELECTED_CELL);
484
484
  }
@@ -505,7 +505,7 @@ var KeyboardInteraction = /** @class */ (function () {
505
505
  if (filteredElements_1.length > 0) {
506
506
  var selectedElement = isReverse ? filteredElements_1[filteredElements_1.length - 1] : filteredElements_1[0];
507
507
  var focusElements = this.getAppointmentElementsByGuid(selectedElement.getAttribute('data-guid'));
508
- this.parent.eventBase.addSelectedAppointments(focusElements);
508
+ this.parent.eventBase.addSelectedAppointments(focusElements, true);
509
509
  (focusElements[focusElements.length - 1]).focus();
510
510
  }
511
511
  }
@@ -964,7 +964,7 @@ var KeyboardInteraction = /** @class */ (function () {
964
964
  if (appElements.length > 0) {
965
965
  this.parent.eventBase.removeSelectedAppointmentClass();
966
966
  var focusAppointment = isReverse ? appElements.slice(-1)[0] : appElements[0];
967
- this.parent.eventBase.addSelectedAppointments([focusAppointment]);
967
+ this.parent.eventBase.addSelectedAppointments([focusAppointment], true);
968
968
  focusAppointment.focus();
969
969
  e.preventDefault();
970
970
  }
@@ -1066,7 +1066,7 @@ var KeyboardInteraction = /** @class */ (function () {
1066
1066
  var nextAppEle = eventEle[0];
1067
1067
  if (nextAppEle) {
1068
1068
  this.parent.eventBase.removeSelectedAppointmentClass();
1069
- this.parent.eventBase.addSelectedAppointments([nextAppEle]);
1069
+ this.parent.eventBase.addSelectedAppointments([nextAppEle], true);
1070
1070
  nextAppEle.focus();
1071
1071
  }
1072
1072
  }
@@ -1078,7 +1078,7 @@ var KeyboardInteraction = /** @class */ (function () {
1078
1078
  if (appElements.length > 0) {
1079
1079
  this.parent.eventBase.removeSelectedAppointmentClass();
1080
1080
  var focusAppointment = appElements[0];
1081
- this.parent.eventBase.addSelectedAppointments([focusAppointment]);
1081
+ this.parent.eventBase.addSelectedAppointments([focusAppointment], true);
1082
1082
  focusAppointment.focus();
1083
1083
  e.preventDefault();
1084
1084
  }
@@ -586,6 +586,9 @@ var Schedule = /** @class */ (function (_super) {
586
586
  if (_this.headerModule) {
587
587
  _this.headerModule.setCalendarDate(navigationArgs.currentDate);
588
588
  }
589
+ if (_this.currentView === 'MonthAgenda' && _this.monthAgendaModule) {
590
+ _this.monthAgendaModule.monthAgendaDate = new Date('' + _this.selectedDate);
591
+ }
589
592
  _this.initializeView(_this.currentView);
590
593
  _this.animateLayout();
591
594
  args = { requestType: 'dateNavigate', cancel: false, event: event };
@@ -1487,6 +1490,7 @@ var Schedule = /** @class */ (function (_super) {
1487
1490
  this.changeDate(this.selectedDate);
1488
1491
  }
1489
1492
  else if (state.isLayout) {
1493
+ this.activeCellsData = null;
1490
1494
  this.initializeView(this.currentView);
1491
1495
  }
1492
1496
  else if (state.isDataManager && this.crudModule) {
@@ -2537,7 +2541,7 @@ var Schedule = /** @class */ (function (_super) {
2537
2541
  var element = this.element.querySelector('div[data-guid="' + selectEvent.Guid + '"]');
2538
2542
  if (element) {
2539
2543
  this.eventBase.removeSelectedAppointmentClass();
2540
- this.eventBase.addSelectedAppointments([element]);
2544
+ this.eventBase.addSelectedAppointments([element], false);
2541
2545
  this.activeEventData = { event: selectEvent, element: element };
2542
2546
  if (this.currentView === 'Agenda' || this.currentView === 'MonthAgenda') {
2543
2547
  addClass([this.activeEventData.element], cls.AGENDA_SELECTED_CELL);
@@ -38,7 +38,7 @@ export declare class EventBase {
38
38
  getSelectedEventElements(target: Element): Element[];
39
39
  getSelectedEvents(): EventClickArgs;
40
40
  removeSelectedAppointmentClass(): void;
41
- addSelectedAppointments(cells: Element[]): void;
41
+ addSelectedAppointments(cells: Element[], preventFocus?: boolean): void;
42
42
  getSelectedAppointments(): Element[];
43
43
  focusElement(isFocused?: boolean): void;
44
44
  selectWorkCellByTime(eventsData: Record<string, any>[]): Element;
@@ -506,7 +506,7 @@ var EventBase = /** @class */ (function () {
506
506
  }
507
507
  }
508
508
  if (target && this.parent.selectedElements.length > 0) {
509
- this.addSelectedAppointments(this.parent.selectedElements);
509
+ this.addSelectedAppointments(this.parent.selectedElements, false);
510
510
  }
511
511
  return this.parent.selectedElements;
512
512
  };
@@ -536,12 +536,12 @@ var EventBase = /** @class */ (function () {
536
536
  removeClass(selectedAppointments, cls.AGENDA_SELECTED_CELL);
537
537
  }
538
538
  };
539
- EventBase.prototype.addSelectedAppointments = function (cells) {
539
+ EventBase.prototype.addSelectedAppointments = function (cells, preventFocus) {
540
540
  if (this.parent.currentView !== 'MonthAgenda') {
541
541
  this.parent.removeSelectedClass();
542
542
  }
543
543
  addClass(cells, cls.APPOINTMENT_BORDER);
544
- if (cells.length > 0) {
544
+ if (cells.length > 0 && !preventFocus) {
545
545
  cells[cells.length - 1].focus();
546
546
  }
547
547
  };
@@ -565,6 +565,10 @@ var EventBase = /** @class */ (function () {
565
565
  }
566
566
  var selectedAppointments = this.getSelectedAppointments();
567
567
  if (selectedAppointments.length > 0) {
568
+ if (this.parent.activeEventData && this.parent.activeEventData.element && selectedAppointments.indexOf(this.parent.activeEventData.element) > -1) {
569
+ this.parent.activeEventData.element.focus();
570
+ return;
571
+ }
568
572
  selectedAppointments[selectedAppointments.length - 1].focus();
569
573
  return;
570
574
  }
@@ -864,7 +868,7 @@ var EventBase = /** @class */ (function () {
864
868
  var target = closest(eventData.target, '.' + cls.APPOINTMENT_CLASS);
865
869
  var guid = target.getAttribute('data-guid');
866
870
  if (isMultiple) {
867
- this.addSelectedAppointments([].slice.call(this.parent.element.querySelectorAll('div[data-guid="' + guid + '"]')));
871
+ this.addSelectedAppointments([].slice.call(this.parent.element.querySelectorAll('div[data-guid="' + guid + '"]')), true);
868
872
  target.focus();
869
873
  }
870
874
  var eventObject = this.getEventByGuid(guid);
@@ -9,7 +9,7 @@ export declare class MonthAgenda extends Month {
9
9
  dayNameFormat: string;
10
10
  viewClass: string;
11
11
  agendaBase: AgendaBase;
12
- private monthAgendaDate;
12
+ monthAgendaDate: Date;
13
13
  constructor(parent: Schedule);
14
14
  protected getModuleName(): string;
15
15
  renderAppointmentContainer(): void;