Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-schedule

Package Overview
Dependencies
Maintainers
3
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-schedule - npm Package Compare versions

Comparing version 25.2.3 to 25.2.4

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 25.2.3
* version : 25.2.4
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"_from": "@syncfusion/ej2-schedule@*",
"_id": "@syncfusion/ej2-schedule@25.1.41",
"_id": "@syncfusion/ej2-schedule@25.2.3",
"_inBundle": false,
"_integrity": "sha512-x3Khw66fTcmx7VXjVMNa2WbK4NWN/OqnZgN1Lo+nm5cRYkvhws5hzOzO8hXNrnSntgtsoK76wgd8Dkrh0JuStw==",
"_integrity": "sha512-MWSpBfzIs0mW4kqATTjlmMeFZ1Mm2+LylE8fjjZ0fM79QH8/EetEh/0tW/JijPCx3onoD6QIq2VBGoY56/UiYg==",
"_location": "/@syncfusion/ej2-schedule",

@@ -26,4 +26,4 @@ "_phantomChildren": {},

],
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-25.1.41.tgz",
"_shasum": "95bd07234dfcb99dc0b971588cc75a1a1c8254a3",
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-25.2.3.tgz",
"_shasum": "a6028db684557182b950796fcabf473dc847dadd",
"_spec": "@syncfusion/ej2-schedule@*",

@@ -40,11 +40,11 @@ "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",

"@syncfusion/ej2-base": "~25.2.3",
"@syncfusion/ej2-buttons": "~25.2.3",
"@syncfusion/ej2-calendars": "~25.2.3",
"@syncfusion/ej2-buttons": "~25.2.4",
"@syncfusion/ej2-calendars": "~25.2.4",
"@syncfusion/ej2-data": "~25.2.3",
"@syncfusion/ej2-dropdowns": "~25.2.3",
"@syncfusion/ej2-dropdowns": "~25.2.4",
"@syncfusion/ej2-excel-export": "~25.2.3",
"@syncfusion/ej2-inputs": "~25.2.3",
"@syncfusion/ej2-lists": "~25.2.3",
"@syncfusion/ej2-navigations": "~25.2.3",
"@syncfusion/ej2-popups": "~25.2.3"
"@syncfusion/ej2-navigations": "~25.2.4",
"@syncfusion/ej2-popups": "~25.2.4"
},

@@ -78,4 +78,4 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "25.2.3",
"version": "25.2.4",
"sideEffects": false
}

@@ -8,3 +8,3 @@ import { ActionBase } from '../actions/action-base';

private resizeHelper;
private resizeStart;
resizeStart(e: MouseEvent & TouchEvent): void;
private resizing;

@@ -11,0 +11,0 @@ updateResizingDirection(e: MouseEvent & TouchEvent): void;

@@ -56,2 +56,6 @@ var __extends = (this && this.__extends) || (function () {

var _this = this;
if (e && e.type === 'touchstart' && (!this.parent.uiStateValues.isTapHold ||
!closest(e.target, '.' + cls.APPOINTMENT_BORDER))) {
return;
}
this.actionObj.action = 'resize';

@@ -121,2 +125,5 @@ this.actionObj.slotInterval = this.parent.activeViewOptions.timeScale.interval / this.parent.activeViewOptions.timeScale.slotCount;

Resize.prototype.resizing = function (e) {
if (e && e.type === 'touchmove') {
e.preventDefault();
}
if (this.parent.quickPopup) {

@@ -317,3 +324,3 @@ this.parent.quickPopup.quickPopupHide();

this.actionClass('removeClass');
this.parent.uiStateValues.action = false;
this.parent.uiStateValues.action = this.parent.uiStateValues.isTapHold = false;
var resizeArgs = { cancel: false, data: this.getChangedData(), element: this.actionObj.element, event: e };

@@ -320,0 +327,0 @@ this.parent.trigger(event.resizeStop, resizeArgs, function (resizeEventArgs) {

@@ -20,2 +20,3 @@ import { Schedule } from '../base/schedule';

private tapHoldHandler;
private preventEventClick;
private renderPanel;

@@ -22,0 +23,0 @@ private swapPanels;

@@ -24,6 +24,7 @@ import { addClass, removeClass, Touch, remove, EventHandler, Browser } from '@syncfusion/ej2-base';

ScheduleTouch.prototype.scrollHandler = function (e) {
if (this.parent.currentView === 'Agenda' || this.parent.uiStateValues.action || !this.parent.allowSwiping ||
(e.originalEvent && e.originalEvent.target &&
(e.originalEvent.target.classList.contains(cls.APPOINTMENT_CLASS) ||
closest(e.originalEvent.target, '.' + cls.APPOINTMENT_CLASS)) && !this.parent.isAdaptive)) {
var blockSwipe = !this.parent.isAdaptive && e.originalEvent && e.originalEvent.target &&
!isNullOrUndefined(closest(e.originalEvent.target, '.' + cls.APPOINTMENT_CLASS));
this.parent.uiStateValues.isTouchScroll = blockSwipe && e.originalEvent.type === 'touchmove' && !this.parent.uiStateValues.action;
if (blockSwipe || this.parent.currentView === 'Agenda' || this.parent.uiStateValues.action || !this.parent.allowSwiping ||
this.parent.uiStateValues.isTapHold) {
return;

@@ -85,3 +86,4 @@ }

ScheduleTouch.prototype.swipeHandler = function (e) {
if (!this.isScrollTriggered || this.parent.uiStateValues.action || !this.parent.allowSwiping) {
if (!this.isScrollTriggered || this.parent.uiStateValues.action || !this.parent.allowSwiping ||
this.parent.uiStateValues.isTapHold) {
return;

@@ -116,7 +118,23 @@ }

var target = closest(e.originalEvent.target, '.' + cls.APPOINTMENT_CLASS);
if (!isNullOrUndefined(target) && this.parent.isAdaptive) {
this.parent.quickPopup.tapHoldEventPopup(e.originalEvent);
return;
if (!isNullOrUndefined(target)) {
this.parent.uiStateValues.isTapHold = true;
if (this.parent.isAdaptive) {
if (Browser.isIos) {
EventHandler.add(this.element, 'touchend', this.preventEventClick, this);
}
this.parent.quickPopup.tapHoldEventPopup(e.originalEvent);
}
else if (['Agenda', 'MonthAgenda', 'Year'].indexOf(this.parent.currentView) < 0) {
this.parent.selectedElements = [];
this.parent.eventBase.getSelectedEventElements(target);
if (this.parent.resizeModule && closest(e.originalEvent.target, '.' + cls.EVENT_RESIZE_CLASS)) {
this.parent.resizeModule.resizeStart(e.originalEvent);
}
}
}
};
ScheduleTouch.prototype.preventEventClick = function (e) {
e.preventDefault();
EventHandler.remove(this.element, 'touchend', this.preventEventClick);
};
ScheduleTouch.prototype.renderPanel = function (clsName, nextPrevType) {

@@ -123,0 +141,0 @@ if (!this.currentPanel) {

@@ -33,2 +33,9 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

}
var isWorkCell = target.classList.contains(cls.WORK_CELLS_CLASS) ||
target.classList.contains(cls.ALLDAY_CELLS_CLASS);
if (this.parent.uiStateValues.isTapHold && !this.parent.uiStateValues.action && isWorkCell) {
this.parent.uiStateValues.isTapHold = false;
this.parent.eventBase.removeSelectedAppointmentClass();
this.parent.selectedElements = [];
}
var navigateEle = closest(e.target, '.' + cls.NAVIGATE_CLASS);

@@ -49,5 +56,3 @@ var navigateView = this.parent.getNavigateView();

}
var isWorkCell_1 = target.classList.contains(cls.WORK_CELLS_CLASS) ||
target.classList.contains(cls.ALLDAY_CELLS_CLASS);
if (isWorkCell_1 && e.shiftKey && e.which === 1 && this.parent.keyboardInteractionModule) {
if (isWorkCell && e.shiftKey && e.which === 1 && this.parent.keyboardInteractionModule) {
this.parent.keyboardInteractionModule.onMouseSelection(e);

@@ -60,3 +65,3 @@ return;

if (!clickArgs.cancel) {
if (isWorkCell_1) {
if (isWorkCell) {
_this.parent.selectCell(target);

@@ -131,3 +136,3 @@ }

target = closest(e.target, '.' + cls.HEADER_CELLS_CLASS);
if (this.parent.activeView.isTimelineView() && !isNullOrUndefined(target)) {
if (this.parent.activeView && this.parent.activeView.isTimelineView() && !isNullOrUndefined(target)) {
return true;

@@ -134,0 +139,0 @@ }

@@ -526,2 +526,4 @@ import { BaseEventArgs } from '@syncfusion/ej2-base';

scheduleHeight?: number;
isTapHold?: boolean;
isTouchScroll?: boolean;
}

@@ -528,0 +530,0 @@ /**

@@ -899,4 +899,5 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

var resourceDates = [].concat.apply([], this.lastResourceLevel.map(function (e) { return e.renderDates; }));
var time = resourceDates.map(function (dateObj) { return dateObj.getTime(); });
var removeDuplicateDates = function (dateColl) { return dateColl.filter(function (date, index, dates) {
return dates.map(function (dateObj) { return dateObj.getTime(); }).indexOf(date.getTime()) === index;
return time.indexOf(date.getTime()) === index;
}); };

@@ -1081,3 +1082,4 @@ var renderDates = removeDuplicateDates(resourceDates);

}
var offsetTarget = this.parent.element.querySelector("." + cls.HEADER_ROW_CLASS + ":nth-child(" + (levelIndex + 1) + ")");
var offsetTarget = this.parent.currentView === 'Month' ? this.parent.element.querySelector("." + cls.DATE_HEADER_WRAP_CLASS + " tbody tr:nth-child(" + (levelIndex + 1) + ")")
: this.parent.element.querySelector("." + cls.HEADER_ROW_CLASS + ":nth-child(" + (levelIndex + 1) + ")");
var offset = [].slice.call(offsetTarget.children).map(function (node) { return node.offsetLeft; });

@@ -1084,0 +1086,0 @@ scrollElement.scrollLeft = offset[parseInt(index.toString(), 10)];

@@ -408,3 +408,3 @@ var __extends = (this && this.__extends) || (function () {

var templateId = scheduleId + viewName + 'eventTemplate';
var eventTemplate = 'eventTemplate' + (this.isResourceEventTemplate ? '_' + resIndex : '');
var eventTemplate = this.isResourceEventTemplate ? this.parent.getEventTemplateName(resIndex) : 'eventTemplate';
templateElement = this.parent.getAppointmentTemplate()(eventObj, this.parent, eventTemplate, templateId, false);

@@ -411,0 +411,0 @@ }

@@ -362,3 +362,3 @@ var __extends = (this && this.__extends) || (function () {

var resIndex = this.parent.uiStateValues.isGroupAdaptive ? this.parent.uiStateValues.groupIndex : resource;
var templateName = 'eventTemplate' + (this.isResourceEventTemplate ? '_' + resIndex : '');
var templateName = this.isResourceEventTemplate ? this.parent.getEventTemplateName(resIndex) : 'eventTemplate';
templateElement = this.parent.getAppointmentTemplate()(record, this.parent, templateName, templateId, false);

@@ -365,0 +365,0 @@ }

@@ -227,2 +227,6 @@ var __extends = (this && this.__extends) || (function () {

this.parent.notify(event.contentReady, {});
var dateHeader = this.element.querySelector('.' + cls.DATE_HEADER_WRAP_CLASS);
if (dateHeader) {
dateHeader.scrollLeft = this.parent.uiStateValues.left;
}
};

@@ -229,0 +233,0 @@ Month.prototype.wireCellEvents = function (element) {

@@ -22,6 +22,13 @@ import { isNullOrUndefined, addClass, removeClass } from '@syncfusion/ej2-base';

var templates = [
'cellTemplate', 'eventTemplate', 'tooltipTemplate', 'majorSlotTemplate', 'minorSlotTemplate',
'cellTemplate', 'tooltipTemplate', 'majorSlotTemplate', 'minorSlotTemplate',
'headerTooltipTemplate', 'dateHeaderTemplate', 'dayHeaderTemplate', 'monthHeaderTemplate',
'headerIndentTemplate', 'resourceHeaderTemplate', 'cellHeaderTemplate', 'dateRangeTemplate'
];
if (this.parent.activeEventTemplates.length > 0) {
templates = templates.concat(this.parent.activeEventTemplates);
this.parent.activeEventTemplates = [];
}
else {
templates.push('eventTemplate');
}
this.parent.resetTemplates(templates);

@@ -28,0 +35,0 @@ this.parent.activeView.removeEventListener();

@@ -64,3 +64,3 @@ var __extends = (this && this.__extends) || (function () {

this.parent.uiStateValues.left = target.scrollLeft;
if (!isNullOrUndefined(this.parent.quickPopup)) {
if (!isNullOrUndefined(this.parent.quickPopup) && !this.parent.uiStateValues.isTapHold) {
this.parent.quickPopup.quickPopupHide();

@@ -434,2 +434,6 @@ }

this.parent.notify(event.contentReady, {});
var dateHeader = this.element.querySelector('.' + cls.DATE_HEADER_WRAP_CLASS);
if (dateHeader) {
dateHeader.scrollLeft = this.parent.uiStateValues.left;
}
};

@@ -436,0 +440,0 @@ VerticalView.prototype.renderLayout = function (type) {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc