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

schema-based-json-editor

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

schema-based-json-editor - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

3

dist/angular/array-editor.component.d.ts
/// <reference types="dragula" />
import { EventEmitter, ElementRef } from "@angular/core";
import * as common from "../common";
import * as dragula from "dragula";
export declare class ArrayEditorComponent {

@@ -23,3 +24,3 @@ schema: common.ArraySchema;

value?: common.ValueType[];
drak: common.dragula.Drake;
drak: dragula.Drake;
errorMessage: string;

@@ -26,0 +27,0 @@ buttonGroupStyleString: string;

"use strict";
var core_1 = require("@angular/core");
var common = require("../common");
var dragula = require("dragula");
var ArrayEditorComponent = (function () {

@@ -39,3 +40,3 @@ function ArrayEditorComponent() {

var container = this.drakContainer.nativeElement;
this.drak = common.dragula([container]);
this.drak = dragula([container]);
this.drak.on("drop", function (el, target, source, sibling) {

@@ -42,0 +43,0 @@ if (_this.value) {

@@ -6,4 +6,2 @@ import "tslib";

export { toNumber, toInteger, debounce };
import * as dragula from "dragula";
export { dragula };
export declare type CommonSchema = {

@@ -119,2 +117,3 @@ $schema?: string;

}
export declare function isSame(value1: ValueType, value2: ValueType): boolean;
export declare function switchItem(value: any[], el: HTMLElement, sibling: HTMLElement | null): void;

@@ -121,0 +120,0 @@ export declare function getErrorMessageOfArray(value: any[] | undefined, schema: ArraySchema, locale: Locale): string;

@@ -10,4 +10,2 @@ "use strict";

var isObject = require("lodash/isObject");
var dragula = require("dragula");
exports.dragula = dragula;
exports.themes = {

@@ -257,3 +255,3 @@ "bootstrap3": {

for (var i = 0; i < value1.length; i++) {
if (!isSame(value1, value2)) {
if (!isSame(value1[i], value2[i])) {
return false;

@@ -279,2 +277,3 @@ }

}
exports.isSame = isSame;
function switchItem(value, el, sibling) {

@@ -281,0 +280,0 @@ var fromIndex = +el.dataset["index"];

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

var icon_1 = require("./icon");
var dragula = require("dragula");
var ArrayEditor = (function (_super) {

@@ -33,3 +34,3 @@ __extends(ArrayEditor, _super);

var container = ReactDOM.findDOMNode(this).childNodes[this.props.required ? 2 : 3];
this.drak = common.dragula([container]);
this.drak = dragula([container]);
this.drak.on("drop", function (el, target, source, sibling) {

@@ -36,0 +37,0 @@ if (_this.value) {

/// <reference types="dragula" />
import * as common from "../common";
import * as dragula from "dragula";
export declare const arrayEditor: {

@@ -33,3 +34,3 @@ template: string;

export declare type This = {
drak: common.dragula.Drake;
drak: dragula.Drake;
$emit: (event: string, args: common.ValidityValue<common.ValueType[] | undefined>) => void;

@@ -36,0 +37,0 @@ required: boolean;

"use strict";
var common = require("../common");
var dragula = require("dragula");
/* tslint:disable:only-arrow-functions */

@@ -38,3 +39,3 @@ /* tslint:disable:no-unused-new */

var container = this.$el.childNodes[6];
this.drak = common.dragula([container]);
this.drak = dragula([container]);
this.drak.on("drop", function (el, target, source, sibling) {

@@ -41,0 +42,0 @@ if (_this.value) {

{
"name": "schema-based-json-editor",
"version": "2.0.0",
"version": "2.0.1",
"description": "",
"main": "index.js",
"scripts": {
"test": "npm run build && tsc -p demo && webpack",
"build": "tsc -p src",
"build": "npm run tsc && tsc -p demo && webpack",
"tsc": "tsc -p src",
"lint": "tslint \"src/**/*.tsx\" \"demo/**/*.tsx\" \"src/**/*.ts\" \"demo/**/*.ts\"",
"static": "mkdir ./demo/css && cp -r ./node_modules/bootstrap/dist/css/bootstrap.min.css ./demo/css/ && cp -r ./node_modules/font-awesome/css/font-awesome.min.css ./demo/css/ && cp -r ./node_modules/dragula/dist/dragula.min.css ./demo/css/ && cp -r ./node_modules/font-awesome/fonts/. ./demo/fonts"
"static": "mkdir ./demo/css && cp -r ./node_modules/bootstrap/dist/css/bootstrap.min.css ./demo/css/ && cp -r ./node_modules/font-awesome/css/font-awesome.min.css ./demo/css/ && cp -r ./node_modules/dragula/dist/dragula.min.css ./demo/css/ && cp -r ./node_modules/font-awesome/fonts/. ./demo/fonts",
"test": "tsc -p spec && jasmine"
},

@@ -38,2 +39,3 @@ "repository": {

"@types/dragula": "^2.1.29",
"@types/jasmine": "^2.5.38",
"@types/lodash": "^4.14.38",

@@ -46,2 +48,3 @@ "@types/react": "^0.14.41",

"font-awesome": "^4.6.3",
"jasmine": "^2.5.2",
"react": "^15.3.2",

@@ -48,0 +51,0 @@ "react-dom": "^15.3.2",

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