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.1.37 to 25.1.39

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 25.1.37
* version : 25.1.39
* 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.35",
"_id": "@syncfusion/ej2-schedule@25.1.37",
"_inBundle": false,
"_integrity": "sha512-C5bGDJaFwqPz1Wq+Z8zpeJVuVORM+lbciSAfEMADI0Y4RxFMazNh7QeO+TmJob7HNwweDSMqndt8PekrkE+/iw==",
"_integrity": "sha512-flwr+93nCa0OS6J4KbFw5HBmUmNW4HFDJfV9KGRqIT9OhErmQTpp8ImOzZBuUohD27V/3dQ+MdOf9kD9rZlKcw==",
"_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.35.tgz",
"_shasum": "dcc2a86f99921e8b4a2578498d701159a470ecec",
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-25.1.37.tgz",
"_shasum": "5d67d711e5b35889656ed5b772293682a3d896cb",
"_spec": "@syncfusion/ej2-schedule@*",

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

"@syncfusion/ej2-base": "~25.1.35",
"@syncfusion/ej2-buttons": "~25.1.35",
"@syncfusion/ej2-calendars": "~25.1.37",
"@syncfusion/ej2-buttons": "~25.1.39",
"@syncfusion/ej2-calendars": "~25.1.39",
"@syncfusion/ej2-data": "~25.1.35",
"@syncfusion/ej2-dropdowns": "~25.1.37",
"@syncfusion/ej2-dropdowns": "~25.1.39",
"@syncfusion/ej2-excel-export": "~25.1.35",
"@syncfusion/ej2-inputs": "~25.1.37",
"@syncfusion/ej2-lists": "~25.1.35",
"@syncfusion/ej2-navigations": "~25.1.37",
"@syncfusion/ej2-popups": "~25.1.35"
"@syncfusion/ej2-inputs": "~25.1.38",
"@syncfusion/ej2-lists": "~25.1.39",
"@syncfusion/ej2-navigations": "~25.1.39",
"@syncfusion/ej2-popups": "~25.1.39"
},

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

"typings": "index.d.ts",
"version": "25.1.37",
"version": "25.1.39",
"sideEffects": false
}

@@ -17,2 +17,3 @@ import { TdData } from '../base/interface';

isHorizontalScroll: boolean;
isRemoteRefresh: boolean;
private startIndex;

@@ -27,2 +28,3 @@ constructor(parent: Schedule);

setItemSize(): void;
refreshLayout(): void;
private renderEvents;

@@ -29,0 +31,0 @@ virtualScrolling(): void;

@@ -95,2 +95,23 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

};
VirtualScroll.prototype.refreshLayout = function () {
var initialHeight = this.parent.uiStateValues.scheduleHeight;
this.parent.uiStateValues.scheduleHeight = this.parent.element.offsetHeight;
var preRenderedLength = this.renderedLength;
if (this.parent.uiStateValues.scheduleHeight !== initialHeight) {
if (preRenderedLength < this.getRenderedCount()) {
this.isRemoteRefresh = true;
}
var resWrap = this.parent.element.querySelector('.' + cls.RESOURCE_COLUMN_WRAP_CLASS);
var conWrap = this.parent.element.querySelector('.' + cls.CONTENT_WRAP_CLASS);
var eventWrap = this.parent.element.querySelector('.' + cls.EVENT_TABLE_CLASS);
var firstTDIndex = parseInt(resWrap.querySelector('tbody td').getAttribute('data-group-index'), 10);
var endIndex = (firstTDIndex + this.renderedLength);
firstTDIndex = (endIndex > this.parent.resourceBase.expandedResources.length) ?
(this.parent.resourceBase.expandedResources.length - this.renderedLength) : firstTDIndex;
this.parent.resourceBase.renderedResources = this.parent.resourceBase.expandedResources.slice(firstTDIndex, endIndex);
if (this.parent.resourceBase.renderedResources.length > 0) {
this.updateContent(resWrap, conWrap, eventWrap, this.parent.resourceBase.renderedResources);
}
}
};
VirtualScroll.prototype.renderEvents = function () {

@@ -131,3 +152,5 @@ this.setTabIndex();

var conTable = this.parent.element.querySelector('.' + cls.CONTENT_TABLE_CLASS);
addClass([conWrap], 'e-transition');
if (!this.parent.rowAutoHeight) {
addClass([conWrap, resWrap], 'e-transition');
}
this.renderedLength = resWrap.querySelector('tbody').children.length;

@@ -134,0 +157,0 @@ var firstTDIndex = parseInt(resWrap.querySelector('tbody td').getAttribute('data-group-index'), 10);

@@ -11,2 +11,4 @@ /**

/** @private */
export declare const ADAPTIVE_CLASS: string;
/** @private */
export declare const MULTI_DRAG: string;

@@ -13,0 +15,0 @@ /** @private */

@@ -11,2 +11,4 @@ /**

/** @private */
export var ADAPTIVE_CLASS = 'e-adaptive';
/** @private */
export var MULTI_DRAG = 'e-multi-drag';

@@ -13,0 +15,0 @@ /** @private */

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

isPreventEventRefresh?: boolean;
scheduleHeight?: number;
}

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

@@ -496,2 +496,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

};
_this.parent.adaptiveGroupIndex = _this.parent.uiStateValues.groupIndex;
_this.parent.trigger(events.actionComplete, args);

@@ -498,0 +499,0 @@ }

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

'tabindex': '0',
'aria-label': this.parent.globalize.formatNumber(count) + '&nbsp;'
+ (this.parent.isAdaptive ? '' : this.parent.localeObj.getConstant('more')),
'aria-label': this.parent.globalize.formatNumber(count) + ' ' + this.parent.localeObj.getConstant('moreEvents'),
'data-count': count.toString(),

@@ -683,0 +682,0 @@ 'data-start-date': startDate.getTime().toString(),

@@ -93,7 +93,14 @@ var __extends = (this && this.__extends) || (function () {

var appointments = [];
for (var _i = 0, appointmentsCollection_1 = appointmentsCollection; _i < appointmentsCollection_1.length; _i++) {
var app = appointmentsCollection_1[_i];
if (this.renderType === 'day') {
if ((util.resetTime(app[this.fields.startTime]).getTime() <= util.resetTime(new Date(startDate.getTime())).getTime()) &&
(util.resetTime(app[this.fields.endTime]).getTime() >= util.resetTime(new Date(startDate.getTime())).getTime())) {
var _loop_1 = function (app) {
if (this_1.renderType === 'day') {
var start_1 = util.resetTime(startDate).getTime();
var end_1 = util.resetTime(endDate).getTime();
var appStart_1 = util.resetTime(app[this_1.fields.startTime]).getTime();
var appEnd_1 = util.resetTime(app[this_1.fields.endTime]).getTime();
var isEndOverlap = function () {
var endTime = (end_1 - (util.getDateInMs(endDate) <= 0 ? util.MS_PER_DAY : 0));
endTime = start_1 > endTime ? start_1 : endTime;
return appEnd_1 >= endTime && appStart_1 <= endTime;
};
if (appStart_1 <= start_1 && appEnd_1 >= start_1 || isEndOverlap() || appStart_1 > start_1 && appEnd_1 < end_1) {
appointments.push(app);

@@ -109,2 +116,7 @@ }

}
};
var this_1 = this;
for (var _i = 0, appointmentsCollection_1 = appointmentsCollection; _i < appointmentsCollection_1.length; _i++) {
var app = appointmentsCollection_1[_i];
_loop_1(app);
}

@@ -111,0 +123,0 @@ return appointments;

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

/* eslint-disable @typescript-eslint/no-explicit-any */
import { append, createElement, extend, EventHandler, Animation, formatUnit } from '@syncfusion/ej2-base';
import { append, createElement, extend, EventHandler, Animation, formatUnit, closest } from '@syncfusion/ej2-base';
import { isNullOrUndefined, setStyleAttribute, remove, removeClass, addClass } from '@syncfusion/ej2-base';

@@ -59,2 +59,10 @@ import { EventBase } from './event-base';

var isDragging = (this.parent.crudModule && this.parent.crudModule.crudObj.isCrudAction) ? true : false;
var hideWrapper = function (wrapper) {
if (_this.parent.isReact && !isNullOrUndefined(_this.parent.activeViewOptions.eventTemplate)) {
var appWrapper = closest(wrapper, '.' + cls.DAY_WRAPPER_CLASS + ',.' + cls.ALLDAY_APPOINTMENT_WRAPPER_CLASS);
if (appWrapper && !appWrapper.classList.contains(cls.APPOINTMENT_WRAPPER_HIDDEN_CLASS)) {
addClass([appWrapper], cls.APPOINTMENT_WRAPPER_HIDDEN_CLASS);
}
}
};
for (var _i = 0, wrapperElements_1 = wrapperElements; _i < wrapperElements_1.length; _i++) {

@@ -68,2 +76,3 @@ var wrapper = wrapperElements_1[_i];

groupIndex === this.parent.crudModule.crudObj.targetEvent[parseInt(j.toString(), 10)].groupIndex) {
hideWrapper(wrapper);
remove(wrapper);

@@ -74,2 +83,3 @@ }

else {
hideWrapper(wrapper);
remove(wrapper);

@@ -76,0 +86,0 @@ }

@@ -89,2 +89,3 @@ var __assign = (this && this.__assign) || function () {

_this.toolbarObj.appendTo(_this.parent.element.querySelector('.' + cls.HEADER_TOOLBAR));
_this.toolbarObj.element.setAttribute('aria-label', 'Scheduler');
var prevNavEle = _this.toolbarObj.element.querySelector('.e-prev');

@@ -277,3 +278,3 @@ if (prevNavEle) {

tbItem = {
showAlwaysInPopup: (this.parent.isAdaptive || this.parent.enableAdaptiveUI), prefixIcon: 'e-icon-day',
showAlwaysInPopup: (this.parent.isAdaptive || this.parent.enableAdaptiveUI), prefixIcon: 'e-icon-today',
text: this.l10n.getConstant('today'), cssClass: 'e-today', overflow: 'Show'

@@ -365,3 +366,3 @@ };

items.push({
align: 'Right', showAlwaysInPopup: (this.parent.isAdaptive || this.parent.enableAdaptiveUI), prefixIcon: 'e-icon-day',
align: 'Right', showAlwaysInPopup: (this.parent.isAdaptive || this.parent.enableAdaptiveUI), prefixIcon: 'e-icon-today',
text: this.l10n.getConstant('today'), cssClass: 'e-today', overflow: 'Show'

@@ -368,0 +369,0 @@ });

@@ -91,2 +91,3 @@ import { isNullOrUndefined, addClass, removeClass } from '@syncfusion/ej2-base';

}
this.parent.uiStateValues.scheduleHeight = this.parent.element.offsetHeight;
this.parent.activeView.viewIndex = this.parent.viewIndex;

@@ -93,0 +94,0 @@ this.updateLabelText(viewName);

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

}
var startDateText = this.parent.globalize.formatDate(date, { type: 'dateTime', skeleton: 'full', calendar: this.parent.getCalendarMode() });
var endDateText = this.parent.globalize.formatDate(this.parent.calendarUtil.getMonthEndDate(new Date(monthDate.getTime())), { type: 'dateTime', skeleton: 'full', calendar: this.parent.getCalendarMode() });
var td = createElement('td', {

@@ -393,3 +395,4 @@ className: cls.WORK_CELLS_CLASS,

'aria-selected': 'false',
'data-date': date.getTime().toString()
'data-date': date.getTime().toString(),
'aria-label': startDateText + ' ' + this.parent.localeObj.getConstant('endAt') + ' ' + endDateText
}

@@ -396,0 +399,0 @@ });

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

ntd.setAttribute('data-date', cellDate.getTime().toString());
var skeleton = 'full';
if (!this.parent.activeViewOptions.timeScale.enable) {
var announcementText = this.parent.globalize.formatDate(tdData.date, { skeleton: skeleton, calendar: this.parent.getCalendarMode() });
ntd.setAttribute('aria-label', announcementText);
}
else {
var startDateText = this.parent.globalize.formatDate(cellDate, {
type: 'dateTime', skeleton: skeleton, calendar: this.parent.getCalendarMode()
});
var endDateText = this.parent.globalize.formatDate(this.getEndDateFromStartDate(cellDate), {
type: 'dateTime', skeleton: skeleton, calendar: this.parent.getCalendarMode()
});
ntd.setAttribute('aria-label', startDateText + ' ' + this.parent.localeObj.getConstant('endAt') + ' ' + endDateText);
}
if (!isNullOrUndefined(tdData.groupIndex) || this.parent.uiStateValues.isGroupAdaptive) {

@@ -718,0 +732,0 @@ var groupIndex = this.parent.uiStateValues.isGroupAdaptive ? this.parent.uiStateValues.groupIndex :

@@ -455,3 +455,3 @@ import { createElement, append, prepend, isNullOrUndefined, getValue, getDefaultDateObject, cldrData, addClass, setStyleAttribute, formatUnit, EventHandler, remove } from '@syncfusion/ej2-base';

var resourceColumn = this.parent.element.querySelector('.' + cls.RESOURCE_COLUMN_WRAP_CLASS);
if (!isNullOrUndefined(resourceColumn)) {
if (!isNullOrUndefined(resourceColumn) && resourceColumn.offsetHeight !== content.clientHeight) {
setStyleAttribute(resourceColumn, { 'height': formatUnit(content.clientHeight) });

@@ -458,0 +458,0 @@ }

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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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