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

angular-gridster2

Package Overview
Dependencies
Maintainers
2
Versions
245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-gridster2 - npm Package Compare versions

Comparing version 13.2.1 to 13.3.0

21

lib/gridster.component.d.ts
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
import { Subject } from 'rxjs';
import { GridsterComponentInterface } from './gridster.interface';

@@ -15,3 +16,2 @@ import { GridsterCompact } from './gridsterCompact.service';

options: GridsterConfig;
calculateLayoutDebounce: () => void;
movingItem: GridsterItem | null;

@@ -36,2 +36,5 @@ el: HTMLElement;

previewStyle$: EventEmitter<GridsterItem | null>;
calculateLayout$: Subject<void>;
private resize$;
private destroy$;
constructor(el: ElementRef, renderer: Renderer2, cdRef: ChangeDetectorRef, zone: NgZone);

@@ -42,7 +45,7 @@ static checkCollisionTwoItemsForSwaping(item: GridsterItem, item2: GridsterItem): boolean;

ngOnChanges(changes: SimpleChanges): void;
resize(): void;
private resize;
setOptions(): void;
optionsChanged(): void;
optionsChanged: () => void;
ngOnDestroy(): void;
onResize(): void;
onResize: () => void;
checkIfToResize(): boolean;

@@ -52,3 +55,3 @@ checkIfMobile(): boolean;

setGridDimensions(): void;
calculateLayout(): void;
private calculateLayout;
updateGrid(): void;

@@ -62,8 +65,8 @@ addItem(itemComponent: GridsterItemComponentInterface): void;

autoPositionItem(itemComponent: GridsterItemComponentInterface): void;
getNextPossiblePosition(newItem: GridsterItem, startingFrom?: {
getNextPossiblePosition: (newItem: GridsterItem, startingFrom?: {
y?: number;
x?: number;
}): boolean;
getFirstPossiblePosition(item: GridsterItem): GridsterItem;
getLastPossiblePosition(item: GridsterItem): GridsterItem;
}) => boolean;
getFirstPossiblePosition: (item: GridsterItem) => GridsterItem;
getLastPossiblePosition: (item: GridsterItem) => GridsterItem;
pixelsToPositionX(x: number, roundingMethod: (x: number) => number, noLimit?: boolean): number;

@@ -70,0 +73,0 @@ pixelsToPositionY(y: number, roundingMethod: (x: number) => number, noLimit?: boolean): number;

import { GridsterConfigS } from './gridsterConfigS.interface';
import { ChangeDetectorRef, NgZone, Renderer2 } from '@angular/core';
import { Subject } from 'rxjs';
import { GridsterEmptyCell } from './gridsterEmptyCell.service';

@@ -27,3 +28,3 @@ import { GridsterCompact } from './gridsterCompact.service';

options: GridsterConfig;
calculateLayoutDebounce: () => void;
calculateLayout$: Subject<void>;
updateGrid: () => void;

@@ -30,0 +31,0 @@ movingItem: GridsterItem | null;

@@ -100,2 +100,3 @@ import { GridsterComponentInterface } from './gridster.interface';

disableScrollVertical?: boolean;
enableBoundaryControl?: boolean;
enableEmptyCellClick?: boolean;

@@ -102,0 +103,0 @@ enableEmptyCellContextMenu?: boolean;

@@ -58,2 +58,3 @@ import { GridsterComponentInterface } from './gridster.interface';

disableScrollVertical?: boolean;
enableBoundaryControl?: boolean;
enableEmptyCellClick: boolean;

@@ -60,0 +61,0 @@ enableEmptyCellContextMenu: boolean;

@@ -6,3 +6,2 @@ import { NgZone } from '@angular/core';

import { GridsterSwap } from './gridsterSwap.service';
import { MouseEvent2 } from './gridsterResizeEventType.interface';
export declare class GridsterDraggable {

@@ -52,11 +51,16 @@ private zone;

dragMove: (e: MouseEvent) => void;
calculateItemPositionFromMousePosition(e: MouseEvent): void;
calculateItemPositionFromMousePosition: (e: MouseEvent) => void;
calculateItemPositionWithScale(e: MouseEvent, scale: number): void;
calculateItemPositionWithoutScale(e: MouseEvent): void;
dragStop: (e: MouseEvent) => void;
cancelDrag(): void;
makeDrag(): void;
cancelDrag: () => void;
makeDrag: () => void;
calculateItemPosition(): void;
toggle(): void;
dragStartDelay: (e: MouseEvent2) => void;
dragStartDelay: (e: MouseEvent) => void;
/**
* Returns the list of directions for given mouse event
* @param e Mouse event
* */
private getDirections;
}

@@ -6,3 +6,3 @@ import { NgZone } from '@angular/core';

import { GridsterPushResize } from './gridsterPushResize.service';
import { GridsterResizeEventType, MouseEvent2 } from './gridsterResizeEventType.interface';
import { GridsterResizeEventType } from './gridsterResizeEventType.interface';
export declare class GridsterResizable {

@@ -18,8 +18,8 @@ private zone;

resizeEventScrollType: GridsterResizeEventType;
directionFunction: (e: {
clientX: number;
clientY: number;
}) => void;
dragFunction: (event: MouseEvent) => void;
dragStopFunction: (event: MouseEvent2) => void;
/**
* The direction function may reference any of the `GridsterResizable` class methods, that are
* responsible for gridster resize when the `dragmove` event is being handled. E.g. it may reference
* the `handleNorth` method when the north handle is pressed and moved by a mouse.
*/
private directionFunction;
resizeEnabled: boolean;

@@ -55,15 +55,15 @@ mousemove: () => void;

destroy(): void;
dragStart(e: MouseEvent2): void;
dragMove(e: MouseEvent): void;
dragStop(e: MouseEvent): void;
cancelResize(): void;
makeResize(): void;
handleN(e: MouseEvent): void;
handleW(e: MouseEvent): void;
handleS(e: MouseEvent): void;
handleE(e: MouseEvent): void;
handleNW(e: MouseEvent): void;
handleNE(e: MouseEvent): void;
handleSW(e: MouseEvent): void;
handleSE(e: MouseEvent): void;
dragStart(e: MouseEvent): void;
dragMove: (e: MouseEvent) => void;
dragStop: (e: MouseEvent) => void;
cancelResize: () => void;
makeResize: () => void;
private handleNorth;
private handleWest;
private handleSouth;
private handleEast;
private handleNorthWest;
private handleNorthEast;
private handleSouthWest;
private handleSouthEast;
toggle(): void;

@@ -70,0 +70,0 @@ dragStartDelay(e: MouseEvent | TouchEvent): void;

export interface GridsterResizeEventType {
n: boolean;
s: boolean;
w: boolean;
e: boolean;
north: boolean;
south: boolean;
west: boolean;
east: boolean;
}
export interface EventTarget2 extends EventTarget {
hasAttribute: (attribute: string) => boolean;
getAttribute: (attribute: string) => string;
}
export interface MouseEvent2 extends MouseEvent {
target: EventTarget2;
}
import { GridsterResizeEventType } from './gridsterResizeEventType.interface';
import { GridsterComponentInterface } from './gridster.interface';
interface Position {
clientX: number;
clientY: number;
}
declare type Position = Pick<MouseEvent, 'clientX' | 'clientY'>;
declare type CalculatePosition = (position: Position) => void;
export declare function scroll(gridster: GridsterComponentInterface, left: number, top: number, width: number, height: number, e: MouseEvent, lastMouse: Position, calculateItemPosition: CalculatePosition, resize?: boolean, resizeEventScrollType?: GridsterResizeEventType): void;
export declare function scroll(gridster: GridsterComponentInterface, left: number, top: number, width: number, height: number, event: MouseEvent, lastMouse: Position, calculateItemPosition: CalculatePosition, resize?: boolean, resizeEventScrollType?: GridsterResizeEventType): void;
export declare function cancelScroll(): void;
export {};
import { GridsterComponentInterface } from './gridster.interface';
export declare class GridsterUtils {
static merge(obj1: any, obj2: any, properties: any): any;
static debounce(func: () => void, wait: number): () => void;
static checkTouchEvent(e: any): void;

@@ -6,0 +5,0 @@ static checkContentClassForEvent(gridster: GridsterComponentInterface, e: MouseEvent): boolean;

{
"name": "angular-gridster2",
"version": "13.2.1",
"version": "13.3.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "sideEffects": false,

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