@syncfusion/ej2-schedule 19.3.48 → 19.3.53

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.
@@ -2999,7 +2999,6 @@ var Islamic = /** @__PURE__ @class */ (function () {
2999
2999
  return Islamic;
3000
3000
  }());
3001
3001
 
3002
- /* eslint-disable @typescript-eslint/no-explicit-any */
3003
3002
  /**
3004
3003
  * Time zone
3005
3004
  */
@@ -5561,7 +5560,7 @@ var EventBase = /** @__PURE__ @class */ (function () {
5561
5560
  var isAllDay = event[fieldMapping.isAllDay];
5562
5561
  var isFullDay = ((event[fieldMapping.endTime].getTime() - event[fieldMapping.startTime].getTime())
5563
5562
  / MS_PER_DAY) >= 1;
5564
- return (isAllDay || (!(this.parent.eventSettings.spannedEventPlacement == 'TimeSlot') && isFullDay)) ? true : false;
5563
+ return (isAllDay || (this.parent.eventSettings.spannedEventPlacement !== 'TimeSlot' && isFullDay)) ? true : false;
5565
5564
  };
5566
5565
  EventBase.prototype.addEventListener = function () {
5567
5566
  this.parent.on(documentClick, this.appointmentBorderRemove, this);
@@ -8459,7 +8458,7 @@ var FieldValidator = /** @__PURE__ @class */ (function () {
8459
8458
  this.createTooltip(inputElement, error, id, '');
8460
8459
  }
8461
8460
  if (!isNullOrUndefined(elem)) {
8462
- elem.querySelector(".e-error").innerHTML = error.innerHTML;
8461
+ elem.querySelector('.e-error').innerHTML = error.innerHTML;
8463
8462
  }
8464
8463
  };
8465
8464
  FieldValidator.prototype.createTooltip = function (element, error, name, display) {
@@ -11122,7 +11121,6 @@ var EventWindow = /** @__PURE__ @class */ (function () {
11122
11121
  this.parent = parent;
11123
11122
  this.l10n = this.parent.localeObj;
11124
11123
  this.fields = this.parent.eventFields;
11125
- this.timezoneData = this.parent.tzModule.timezoneData;
11126
11124
  this.eventWindowTime = { startTime: new Date(), endTime: new Date() };
11127
11125
  this.renderEventWindow();
11128
11126
  }
@@ -11560,14 +11558,15 @@ var EventWindow = /** @__PURE__ @class */ (function () {
11560
11558
  allowFiltering: true,
11561
11559
  change: this.onTimezoneChange.bind(this),
11562
11560
  cssClass: this.parent.cssClass || '',
11563
- dataSource: this.timezoneData,
11561
+ dataSource: this.parent.timezoneDataSource,
11564
11562
  enableRtl: this.parent.enableRtl,
11565
11563
  fields: { text: 'Text', value: 'Value' },
11566
- filterBarPlaceholder: 'Search Timezone',
11564
+ filterBarPlaceholder: this.parent.localeObj.getConstant('searchTimezone'),
11565
+ noRecordsTemplate: this.parent.localeObj.getConstant('noRecords'),
11567
11566
  filtering: function (e) {
11568
11567
  var query = new Query();
11569
11568
  query = (e.text !== '') ? query.where('Text', 'contains', e.text, true) : query;
11570
- e.updateData(_this.timezoneData, query);
11569
+ e.updateData(_this.parent.timezoneDataSource, query);
11571
11570
  },
11572
11571
  htmlAttributes: { 'title': this.getFieldLabel(value), 'name': fieldName },
11573
11572
  floatLabelType: 'Always',
@@ -12893,7 +12892,6 @@ var EventWindow = /** @__PURE__ @class */ (function () {
12893
12892
  this.fields = null;
12894
12893
  this.buttonObj = null;
12895
12894
  this.repeatStatus = null;
12896
- this.timezoneData = null;
12897
12895
  this.eventWindowTime = null;
12898
12896
  }
12899
12897
  };
@@ -16293,7 +16291,9 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
16293
16291
  beginFrom: 'Begin From',
16294
16292
  endAt: 'Ends At',
16295
16293
  expandAllDaySection: 'Expand-all-day-section',
16296
- collapseAllDaySection: 'Collapse-all-day-section'
16294
+ collapseAllDaySection: 'Collapse-all-day-section',
16295
+ searchTimezone: 'Search Timezone',
16296
+ noRecords: 'No records found'
16297
16297
  };
16298
16298
  };
16299
16299
  Schedule.prototype.wireEvents = function () {
@@ -17012,6 +17012,11 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
17012
17012
  this.keyboardInteractionModule = new KeyboardInteraction(this);
17013
17013
  }
17014
17014
  break;
17015
+ case 'timezoneDataSource':
17016
+ if (this.eventWindow) {
17017
+ this.eventWindow.refresh();
17018
+ }
17019
+ break;
17015
17020
  case 'editorTemplate':
17016
17021
  if (!isNullOrUndefined(this.editorTemplate)) {
17017
17022
  this.editorTemplateFn = this.templateParser(this.editorTemplate);
@@ -18183,6 +18188,9 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
18183
18188
  __decorate([
18184
18189
  Complex({}, EventSettings)
18185
18190
  ], Schedule.prototype, "eventSettings", void 0);
18191
+ __decorate([
18192
+ Property(timezoneData)
18193
+ ], Schedule.prototype, "timezoneDataSource", void 0);
18186
18194
  __decorate([
18187
18195
  Property()
18188
18196
  ], Schedule.prototype, "resourceHeaderTemplate", void 0);
@@ -20585,7 +20593,8 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
20585
20593
  // eslint-disable-next-line max-len
20586
20594
  this.parent.getDateFromElement(isNullOrUndefined(index) ? this.actionObj.target : this.targetTd)));
20587
20595
  var splitEvents = this.splitEvent(event);
20588
- var events_1 = this.parent.eventBase.isAllDayAppointment(event) || splitEvents.length > 2 || !(this.parent.eventSettings.spannedEventPlacement == 'TimeSlot') ? [event] : splitEvents;
20596
+ var events_1 = this.parent.eventBase.isAllDayAppointment(event) || splitEvents.length > 2 ||
20597
+ this.parent.eventSettings.spannedEventPlacement !== 'TimeSlot' ? [event] : splitEvents;
20589
20598
  for (var i = 0; i < events_1.length; i++) {
20590
20599
  if (i > 0) {
20591
20600
  var filterQuery = ".e-day-wrapper[data-date=\"" + resetTime(events_1[i][this.parent.eventFields.startTime]).getTime() + "\"]";