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

ng-sidebar

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-sidebar - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

2

lib/close.directive.d.ts

@@ -5,2 +5,4 @@ import { SidebarService } from './sidebar.service';

constructor(_sidebarService: SidebarService);
/** @internal */
_onClick(): void;
}

@@ -1,7 +0,10 @@

import { AfterContentInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
import { AfterContentInit, ChangeDetectorRef, OnDestroy, QueryList } from '@angular/core';
import { Sidebar } from './sidebar.component';
export declare class SidebarContainer implements AfterContentInit, OnDestroy {
private _ref;
backdropClass: string;
private _sidebars;
private _showBackdrop;
/** @internal */
_showBackdrop: boolean;
/** @internal */
_sidebars: QueryList<Sidebar>;
constructor(_ref: ChangeDetectorRef);

@@ -11,2 +14,10 @@ ngAfterContentInit(): void;

/**
* @internal
*
* Computes `margin` value to push page contents to accommodate open sidebars as needed.
*
* @return {CSSStyleDeclaration} margin styles for the page content.
*/
_getStyles(): CSSStyleDeclaration;
/**
* Subscribes from all sidebar events to react properly.

@@ -13,0 +24,0 @@ */

@@ -17,2 +17,3 @@ "use strict";

this._ref = _ref;
/** @internal */
this._showBackdrop = false;

@@ -19,0 +20,0 @@ }

@@ -1,2 +0,2 @@

import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
import { ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
import { SidebarService } from './sidebar.service';

@@ -26,3 +26,4 @@ export declare class Sidebar implements OnChanges, OnDestroy {

onPositionChange: EventEmitter<string>;
private _elSidebar;
/** @internal */
_elSidebar: ElementRef;
private _openSub;

@@ -47,2 +48,17 @@ private _closeSub;

/**
* @internal
*
* Computes the transform styles for the sidebar template.
*
* @return {CSSStyleDeclaration} The transform styles, with the WebKit-prefixed version as well.
*/
_getTransformStyle(): CSSStyleDeclaration;
/**
* @internal
*
* Handles the `transitionend` event on the sidebar to emit the onOpened/onClosed events after
* the transform transition is completed.
*/
_onTransitionEnd(e: TransitionEvent): void;
/**
* Returns whether focus should be trapped within the sidebar.

@@ -100,2 +116,20 @@ *

/**
* @internal
*
* Returns the rendered height of the sidebar (or the docked size).
* This is used in the sidebar container.
*
* @return {number} Height of sidebar.
*/
readonly _height: number;
/**
* @internal
*
* Returns the rendered width of the sidebar (or the docked size).
* This is used in the sidebar container.
*
* @return {number} Width of sidebar.
*/
readonly _width: number;
/**
* Returns whether the page is in LTR mode. Defaults to `true` if it can't be computed.

@@ -102,0 +136,0 @@ *

18

package.json
{
"name": "ng-sidebar",
"version": "3.2.0",
"version": "3.2.1",
"description": "Angular 2+ sidebar component.",

@@ -38,11 +38,11 @@ "repository": {

"peerDependencies": {
"@angular/core": "^2.0.0",
"@angular/common": "^2.0.0"
"@angular/core": "^2.3.0",
"@angular/common": "^2.3.0"
},
"devDependencies": {
"@angular/common": "^2.4.3",
"@angular/compiler": "^2.4.3",
"@angular/compiler-cli": "^2.4.3",
"@angular/core": "^2.4.3",
"@angular/platform-browser": "^2.4.3",
"@angular/common": "^2.4.4",
"@angular/compiler": "^2.4.4",
"@angular/compiler-cli": "^2.4.4",
"@angular/core": "^2.4.4",
"@angular/platform-browser": "^2.4.4",
"rimraf": "^2.5.4",

@@ -52,4 +52,4 @@ "rxjs": "5.0.3",

"typescript": "^2.1.5",
"zone.js": "^0.7.4"
"zone.js": "^0.7.6"
}
}

@@ -61,7 +61,9 @@ import {

/** @internal */
_showBackdrop: boolean = false;
/** @internal */
@ContentChildren(Sidebar)
private _sidebars: QueryList<Sidebar>;
_sidebars: QueryList<Sidebar>;
private _showBackdrop: boolean = false;
constructor(private _ref: ChangeDetectorRef) {}

@@ -68,0 +70,0 @@

@@ -111,4 +111,5 @@ import {

/** @internal */
@ViewChild('sidebar')
private _elSidebar: ElementRef;
_elSidebar: ElementRef;

@@ -115,0 +116,0 @@ private _openSub: Subscription;

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