Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ionic2-calendar

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ionic2-calendar - npm Package Compare versions

Comparing version 0.3.12 to 0.3.13

2

dayview.d.ts

@@ -71,5 +71,5 @@ import { Slides } from 'ionic-angular';

calculatePosition(events: IDisplayEvent[]): void;
private static calculateWidth(orderedEvents, size);
private static calculateWidth(orderedEvents, size, hourParts);
eventSelected(event: IEvent): void;
setScrollPosition(scrollPosition: number): void;
}

@@ -301,3 +301,3 @@ import { DatePipe } from '@angular/common';

this.calculatePosition(orderedEvents);
DayViewComponent.calculateWidth(orderedEvents, this.hourRange);
DayViewComponent.calculateWidth(orderedEvents, this.hourRange, this.hourParts);
};

@@ -349,8 +349,8 @@ DayViewComponent.prototype.placeAllDayEvents = function (orderedEvents) {

};
DayViewComponent.calculateWidth = function (orderedEvents, size) {
var cells = new Array(size);
DayViewComponent.calculateWidth = function (orderedEvents, size, hourParts) {
var totalSize = size * hourParts, cells = new Array(totalSize);
orderedEvents.sort(function (eventA, eventB) {
return eventB.position - eventA.position;
});
for (var i_1 = 0; i_1 < size; i_1 += 1) {
for (var i_1 = 0; i_1 < totalSize; i_1 += 1) {
cells[i_1] = {

@@ -364,4 +364,4 @@ calculated: false,

var event_2 = orderedEvents[i_2];
var index = event_2.startIndex;
while (index < event_2.endIndex) {
var index = event_2.startIndex * hourParts + event_2.startOffset;
while (index < event_2.endIndex * hourParts - event_2.endOffset) {
cells[index].events.push(event_2);

@@ -379,4 +379,4 @@ index += 1;

while ((event_3 = eventQueue.shift())) {
var index = event_3.startIndex;
while (index < event_3.endIndex) {
var index = event_3.startIndex * hourParts + event_3.startOffset;
while (index < event_3.endIndex * hourParts - event_3.endOffset) {
if (!cells[index].calculated) {

@@ -383,0 +383,0 @@ cells[index].calculated = true;

{
"name": "ionic2-calendar",
"version": "0.3.12",
"version": "0.3.13",
"description": "Ionic2 calendar component",

@@ -10,3 +10,3 @@ "keywords": [

"author": {
"name": "twinsbc"
"name": "twinssbc"
},

@@ -13,0 +13,0 @@ "license": "MIT",

@@ -72,5 +72,5 @@ import { Slides } from 'ionic-angular';

calculatePosition(events: IDisplayEvent[]): void;
private static calculateWidth(orderedEvents, size);
private static calculateWidth(orderedEvents, size, hourParts);
eventSelected(event: IEvent): void;
setScrollPosition(scrollPosition: number): void;
}

@@ -402,3 +402,3 @@ import { DatePipe } from '@angular/common';

this.calculatePosition(orderedEvents);
WeekViewComponent.calculateWidth(orderedEvents, this.hourRange);
WeekViewComponent.calculateWidth(orderedEvents, this.hourRange, this.hourParts);
};

@@ -451,8 +451,8 @@ WeekViewComponent.prototype.placeAllDayEvents = function (orderedEvents) {

};
WeekViewComponent.calculateWidth = function (orderedEvents, size) {
var cells = new Array(size);
WeekViewComponent.calculateWidth = function (orderedEvents, size, hourParts) {
var totalSize = size * hourParts, cells = new Array(totalSize);
orderedEvents.sort(function (eventA, eventB) {
return eventB.position - eventA.position;
});
for (var i_1 = 0; i_1 < size; i_1 += 1) {
for (var i_1 = 0; i_1 < totalSize; i_1 += 1) {
cells[i_1] = {

@@ -466,4 +466,4 @@ calculated: false,

var event_2 = orderedEvents[i_2];
var index = event_2.startIndex;
while (index < event_2.endIndex) {
var index = event_2.startIndex * hourParts + event_2.startOffset;
while (index < event_2.endIndex * hourParts - event_2.endOffset) {
cells[index].events.push(event_2);

@@ -481,4 +481,4 @@ index += 1;

while ((event_3 = eventQueue.shift())) {
var index = event_3.startIndex;
while (index < event_3.endIndex) {
var index = event_3.startIndex * hourParts + event_3.startOffset;
while (index < event_3.endIndex * hourParts - event_3.endOffset) {
if (!cells[index].calculated) {

@@ -485,0 +485,0 @@ cells[index].calculated = true;

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