@syncfusion/ej2-schedule 29.1.38 → 29.2.4

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 (86) hide show
  1. package/dist/ej2-schedule.min.js +2 -2
  2. package/dist/ej2-schedule.umd.min.js +2 -2
  3. package/dist/ej2-schedule.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-schedule.es2015.js +26 -4
  5. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  6. package/dist/es6/ej2-schedule.es5.js +25 -4
  7. package/dist/es6/ej2-schedule.es5.js.map +1 -1
  8. package/dist/global/ej2-schedule.min.js +2 -2
  9. package/dist/global/ej2-schedule.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +15 -15
  12. package/src/recurrence-editor/recurrence-editor.js +3 -0
  13. package/src/schedule/actions/keyboard.js +4 -0
  14. package/src/schedule/popups/event-window.js +5 -2
  15. package/src/schedule/popups/quick-popups.js +5 -2
  16. package/src/schedule/renderer/agenda.js +1 -0
  17. package/src/schedule/renderer/month.js +1 -0
  18. package/src/schedule/renderer/timeline-month.js +1 -0
  19. package/src/schedule/renderer/timeline-view.js +1 -0
  20. package/src/schedule/renderer/vertical-view.js +1 -0
  21. package/src/schedule/renderer/view-base.js +2 -0
  22. package/src/schedule/renderer/year.js +1 -0
  23. package/styles/bds-lite.css +4 -0
  24. package/styles/bds.css +4 -0
  25. package/styles/bootstrap-dark-lite.css +4 -0
  26. package/styles/bootstrap-dark.css +4 -0
  27. package/styles/bootstrap-lite.css +4 -0
  28. package/styles/bootstrap.css +4 -0
  29. package/styles/bootstrap4-lite.css +4 -0
  30. package/styles/bootstrap4.css +4 -0
  31. package/styles/bootstrap5-dark-lite.css +4 -0
  32. package/styles/bootstrap5-dark.css +4 -0
  33. package/styles/bootstrap5-lite.css +4 -0
  34. package/styles/bootstrap5.3-lite.css +4 -0
  35. package/styles/bootstrap5.3.css +4 -0
  36. package/styles/bootstrap5.css +4 -0
  37. package/styles/fabric-dark-lite.css +4 -0
  38. package/styles/fabric-dark.css +4 -0
  39. package/styles/fabric-lite.css +4 -0
  40. package/styles/fabric.css +4 -0
  41. package/styles/fluent-dark-lite.css +4 -0
  42. package/styles/fluent-dark.css +4 -0
  43. package/styles/fluent-lite.css +4 -0
  44. package/styles/fluent.css +4 -0
  45. package/styles/fluent2-lite.css +4 -0
  46. package/styles/fluent2.css +4 -0
  47. package/styles/highcontrast-light-lite.css +4 -0
  48. package/styles/highcontrast-light.css +4 -0
  49. package/styles/highcontrast-lite.css +4 -0
  50. package/styles/highcontrast.css +4 -0
  51. package/styles/material-dark-lite.css +4 -0
  52. package/styles/material-dark.css +4 -0
  53. package/styles/material-lite.css +13 -0
  54. package/styles/material.css +13 -0
  55. package/styles/material3-dark-lite.css +4 -0
  56. package/styles/material3-dark.css +4 -0
  57. package/styles/material3-lite.css +4 -0
  58. package/styles/material3.css +4 -0
  59. package/styles/schedule/_layout.scss +5 -0
  60. package/styles/schedule/bds.css +4 -0
  61. package/styles/schedule/bootstrap-dark.css +4 -0
  62. package/styles/schedule/bootstrap.css +4 -0
  63. package/styles/schedule/bootstrap4.css +4 -0
  64. package/styles/schedule/bootstrap5-dark.css +4 -0
  65. package/styles/schedule/bootstrap5.3.css +4 -0
  66. package/styles/schedule/bootstrap5.css +4 -0
  67. package/styles/schedule/fabric-dark.css +4 -0
  68. package/styles/schedule/fabric.css +4 -0
  69. package/styles/schedule/fluent-dark.css +4 -0
  70. package/styles/schedule/fluent.css +4 -0
  71. package/styles/schedule/fluent2.css +4 -0
  72. package/styles/schedule/highcontrast-light.css +4 -0
  73. package/styles/schedule/highcontrast.css +4 -0
  74. package/styles/schedule/material-dark.css +4 -0
  75. package/styles/schedule/material.css +13 -0
  76. package/styles/schedule/material3-dark.css +4 -0
  77. package/styles/schedule/material3.css +4 -0
  78. package/styles/schedule/tailwind-dark.css +4 -0
  79. package/styles/schedule/tailwind.css +4 -0
  80. package/styles/schedule/tailwind3.css +4 -0
  81. package/styles/tailwind-dark-lite.css +4 -0
  82. package/styles/tailwind-dark.css +4 -0
  83. package/styles/tailwind-lite.css +4 -0
  84. package/styles/tailwind.css +4 -0
  85. package/styles/tailwind3-lite.css +4 -0
  86. package/styles/tailwind3.css +4 -0
@@ -2151,6 +2151,10 @@ class KeyboardInteraction {
2151
2151
  this.createClipboardElement();
2152
2152
  }
2153
2153
  keyActionHandler(e) {
2154
+ const target = e.target;
2155
+ if (e.action === 'home' && target && ['INPUT', 'TEXTAREA', 'SELECT'].indexOf(target.tagName) > -1 && target.closest('.e-quick-popup-wrapper')) {
2156
+ return;
2157
+ }
2154
2158
  switch (e.action) {
2155
2159
  case 'downArrow':
2156
2160
  case 'shiftDownArrow':
@@ -10308,8 +10312,8 @@ class QuickPopups {
10308
10312
  switch (type) {
10309
10313
  case 'Cell':
10310
10314
  cellDetails = this.getFormattedString(data);
10311
- content = `<table class="${POPUP_TABLE_CLASS}"><tbody><tr><td><form class="${FORM_CLASS}" onsubmit=` +
10312
- `"return false;"><input class="${SUBJECT_CLASS} ${EVENT_FIELD}" type="text" name=` +
10315
+ content = `<table class="${POPUP_TABLE_CLASS}"><tbody><tr><td><form class="${FORM_CLASS}">
10316
+ <input class="${SUBJECT_CLASS} ${EVENT_FIELD}" type="text" name=` +
10313
10317
  `"${this.parent.eventFields.subject}" /></form></td></tr><tr><td><div class="${DATE_TIME_CLASS}">` +
10314
10318
  `<div class="${DATE_TIME_ICON_CLASS} ${ICON}"></div><div class="${DATE_TIME_DETAILS_CLASS} ` +
10315
10319
  `${TEXT_ELLIPSIS}">${cellDetails.details}</div></div>` +
@@ -10347,6 +10351,10 @@ class QuickPopups {
10347
10351
  break;
10348
10352
  }
10349
10353
  const templateWrapper = createElement('div', { innerHTML: content });
10354
+ const form = templateWrapper.querySelector('form');
10355
+ if (form) {
10356
+ form.onsubmit = () => { return false; };
10357
+ }
10350
10358
  if (data[this.parent.eventFields.location]) {
10351
10359
  const locationDetails = templateWrapper.querySelector('.' + LOCATION_DETAILS_CLASS);
10352
10360
  if (!isNullOrUndefined(locationDetails)) {
@@ -11499,6 +11507,9 @@ let RecurrenceEditor = class RecurrenceEditor extends Component {
11499
11507
  }
11500
11508
  initialize() {
11501
11509
  addClass([this.element], 'e-' + this.getModuleName());
11510
+ if (typeof this.startDate === 'string') {
11511
+ this.setProperties({ startDate: new Date(this.startDate) }, false);
11512
+ }
11502
11513
  this.renderComponent();
11503
11514
  if (!isNullOrUndefined(this.value) && this.value !== '') {
11504
11515
  this.setRecurrenceRule(this.value);
@@ -12745,9 +12756,9 @@ class EventWindow {
12745
12756
  const container = createElement('div', { className: FORM_CONTAINER_CLASS });
12746
12757
  const form = createElement('form', {
12747
12758
  id: this.parent.element.id + 'EditForm',
12748
- className: FORM_CLASS,
12749
- attrs: { onsubmit: 'return false;' }
12759
+ className: FORM_CLASS
12750
12760
  });
12761
+ form.onsubmit = () => { return false; };
12751
12762
  this.renderFormElements(form);
12752
12763
  container.appendChild(form);
12753
12764
  return container;
@@ -13502,6 +13513,9 @@ class EventWindow {
13502
13513
  updateDateTime(allDayStatus, startObj, endObj) {
13503
13514
  let startDate;
13504
13515
  let endDate;
13516
+ if (isNullOrUndefined(this.eventWindowTime.startTime) && isNullOrUndefined(this.eventWindowTime.endTime)) {
13517
+ return;
13518
+ }
13505
13519
  if (allDayStatus) {
13506
13520
  startDate = resetTime(new Date(this.eventWindowTime.startTime.getTime()));
13507
13521
  if (this.parent.activeCellsData.isAllDay) {
@@ -23750,6 +23764,8 @@ class ViewBase {
23750
23764
  if (this.parent.activeView && !isNullOrUndefined(element) && !isNullOrUndefined(data)
23751
23765
  && parseInt(element.getAttribute('data-group-index'), 10) === data.groupIndex) {
23752
23766
  this.parent.activeView.setResourceHeaderContent(element, data, RESOURCE_TEXT_CLASS);
23767
+ const eventArgs = { element: element, elementType: 'resourceHeader', groupIndex: data.groupIndex };
23768
+ this.parent.trigger(renderCell, eventArgs);
23753
23769
  }
23754
23770
  }
23755
23771
  }
@@ -25181,6 +25197,7 @@ class VerticalView extends ViewBase {
25181
25197
  }
25182
25198
  destroy() {
25183
25199
  if (!this.parent || this.parent && this.parent.isDestroyed) {
25200
+ this.parent = null;
25184
25201
  return;
25185
25202
  }
25186
25203
  this.clearCurrentTimeIndicatorTimer();
@@ -25968,6 +25985,7 @@ class Month extends ViewBase {
25968
25985
  }
25969
25986
  destroy() {
25970
25987
  if (!this.parent || this.parent && this.parent.isDestroyed) {
25988
+ this.parent = null;
25971
25989
  return;
25972
25990
  }
25973
25991
  if (this.element) {
@@ -26390,6 +26408,7 @@ class Year extends ViewBase {
26390
26408
  }
26391
26409
  destroy() {
26392
26410
  if (!this.parent || this.parent && this.parent.isDestroyed) {
26411
+ this.parent = null;
26393
26412
  return;
26394
26413
  }
26395
26414
  if (this.element) {
@@ -27275,6 +27294,7 @@ class Agenda extends AgendaBase {
27275
27294
  }
27276
27295
  destroy() {
27277
27296
  if (!this.parent || this.parent && this.parent.isDestroyed) {
27297
+ this.parent = null;
27278
27298
  return;
27279
27299
  }
27280
27300
  if (this.element) {
@@ -27668,6 +27688,7 @@ class TimelineViews extends VerticalView {
27668
27688
  }
27669
27689
  changeCurrentTimePosition() {
27670
27690
  if (!this.parent || this.parent && this.parent.isDestroyed) {
27691
+ this.parent = null;
27671
27692
  return;
27672
27693
  }
27673
27694
  this.removeCurrentTimeIndicatorElements();
@@ -27986,6 +28007,7 @@ class TimelineMonth extends Month {
27986
28007
  }
27987
28008
  destroy() {
27988
28009
  if (!this.parent || this.parent && this.parent.isDestroyed) {
28010
+ this.parent = null;
27989
28011
  return;
27990
28012
  }
27991
28013
  if (this.element) {