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

angular-sortablejs

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-sortablejs - npm Package Compare versions

Comparing version 2.0.0-1 to 2.0.0

dist/src/sortablejs.service.d.ts

4

dist/src/sortablejs.directive.d.ts
import { ElementRef, OnInit, OnChanges, OnDestroy, NgZone, SimpleChanges } from '@angular/core';
import { SortablejsOptions } from './sortablejs-options';
import { SortablejsService } from './sortablejs.service';
export declare class SortablejsDirective implements OnInit, OnChanges, OnDestroy {
private sortablejsService;
private element;

@@ -10,3 +12,3 @@ private zone;

runInsideAngular: boolean;
constructor(element: ElementRef, zone: NgZone);
constructor(sortablejsService: SortablejsService, element: ElementRef, zone: NgZone);
ngOnInit(): void;

@@ -13,0 +15,0 @@ ngOnChanges(changes: SimpleChanges): void;

import { Directive, ElementRef, Input, NgZone } from '@angular/core';
import { SortablejsService } from './sortablejs.service';
import { SortablejsModule } from './sortablejs.module';

@@ -11,3 +12,4 @@ import * as Sortable from 'sortablejs/Sortable.min';

var SortablejsDirective = (function () {
function SortablejsDirective(element, zone) {
function SortablejsDirective(sortablejsService, element, zone) {
this.sortablejsService = sortablejsService;
this.element = element;

@@ -83,3 +85,3 @@ this.zone = zone;

if (_this.bindingEnabled) {
onremove = function (item) {
_this.sortablejsService.onremove = function (item) {
if (_this.isItemsFormArray) {

@@ -105,4 +107,4 @@ _this.items.insert(event.newIndex, item);

}
onremove(item);
onremove = null;
_this.sortablejsService.onremove(item);
_this.sortablejsService.onremove = null;
}

@@ -139,2 +141,3 @@ _this.proxyEvent('onRemove', event);

SortablejsDirective.ctorParameters = function () { return [
{ type: SortablejsService, },
{ type: ElementRef, },

@@ -141,0 +144,0 @@ { type: NgZone, },

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

[{"__symbolic":"module","version":3,"metadata":{"SortablejsDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[sortablejs]"}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["sortablejs"]}]}],"inputOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["sortablejsOptions"]}]}],"runInsideAngular":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"proxyEvent":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SortablejsDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[sortablejs]"}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["sortablejs"]}]}],"inputOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["sortablejsOptions"]}]}],"runInsideAngular":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"proxyEvent":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":3,"metadata":{"SortablejsDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[sortablejs]"}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["sortablejs"]}]}],"inputOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["sortablejsOptions"]}]}],"runInsideAngular":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./sortablejs.service","name":"SortablejsService"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"proxyEvent":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SortablejsDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[sortablejs]"}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["sortablejs"]}]}],"inputOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["sortablejsOptions"]}]}],"runInsideAngular":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./sortablejs.service","name":"SortablejsService"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"proxyEvent":[{"__symbolic":"method"}]}}}}]

@@ -0,5 +1,6 @@

import { ModuleWithProviders } from '@angular/core';
import { SortablejsOptions } from './sortablejs-options';
export declare class SortablejsModule {
static _globalOptions: SortablejsOptions;
static forRoot(globalOptions: SortablejsOptions): typeof SortablejsModule;
static forRoot(globalOptions: SortablejsOptions): ModuleWithProviders;
}
import { NgModule } from '@angular/core';
import { SortablejsDirective } from './sortablejs.directive';
import { SortablejsService } from './sortablejs.service';
var SortablejsModule = (function () {

@@ -8,3 +9,8 @@ function SortablejsModule() {

SortablejsModule._globalOptions = globalOptions;
return SortablejsModule;
return {
ngModule: SortablejsModule,
providers: [
SortablejsService
]
};
};

@@ -18,3 +24,4 @@ return SortablejsModule;

declarations: [SortablejsDirective],
exports: [SortablejsDirective]
exports: [SortablejsDirective],
providers: [SortablejsService]
},] },

@@ -21,0 +28,0 @@ ];

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

[{"__symbolic":"module","version":3,"metadata":{"SortablejsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./sortablejs.directive","name":"SortablejsDirective"}],"exports":[{"__symbolic":"reference","module":"./sortablejs.directive","name":"SortablejsDirective"}]}]}],"statics":{"_globalOptions":{}}}}},{"__symbolic":"module","version":1,"metadata":{"SortablejsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./sortablejs.directive","name":"SortablejsDirective"}],"exports":[{"__symbolic":"reference","module":"./sortablejs.directive","name":"SortablejsDirective"}]}]}],"statics":{"_globalOptions":{}}}}}]
[{"__symbolic":"module","version":3,"metadata":{"SortablejsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./sortablejs.directive","name":"SortablejsDirective"}],"exports":[{"__symbolic":"reference","module":"./sortablejs.directive","name":"SortablejsDirective"}],"providers":[{"__symbolic":"reference","module":"./sortablejs.service","name":"SortablejsService"}]}]}],"statics":{"_globalOptions":{}}}}},{"__symbolic":"module","version":1,"metadata":{"SortablejsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./sortablejs.directive","name":"SortablejsDirective"}],"exports":[{"__symbolic":"reference","module":"./sortablejs.directive","name":"SortablejsDirective"}],"providers":[{"__symbolic":"reference","module":"./sortablejs.service","name":"SortablejsService"}]}]}],"statics":{"_globalOptions":{}}}}}]
{
"name": "angular-sortablejs",
"version": "2.0.0-1",
"version": "2.0.0",
"description": "SortableJS for Angular",

@@ -47,3 +47,3 @@ "main": "./dist/index.js",

"rxjs": "5.3.0",
"tslint": "5.0.0",
"tslint": "5.1.0",
"typescript": "2.2.2"

@@ -50,0 +50,0 @@ },

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