🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

wunderbaum

Package Overview
Dependencies
Maintainers
0
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wunderbaum - npm Package Compare versions

Comparing version

to
0.11.1

12

package.json
{
"name": "wunderbaum",
"version": "0.11.0",
"version": "0.11.1",
"title": "A treegrid control.",

@@ -63,3 +63,3 @@ "description": "JavaScript tree/grid/treegrid control.",

"grunt-contrib-connect": "^3.0.0",
"grunt-contrib-qunit": "^7.0.0",
"grunt-contrib-qunit": "^10.1.1",
"grunt-contrib-watch": "^1.1.0",

@@ -74,3 +74,3 @@ "grunt-exec": "^3.0.0",

"pretty-quick": "^3.1.3",
"puppeteer": "^20.5.0",
"puppeteer": "^23.10.0",
"qunit": "^2.19.4",

@@ -85,3 +85,4 @@ "rollup": "^3.23.0",

"typedoc": "^0.25.2",
"typescript": "^5.2.2"
"typescript": "^5.2.2",
"yarn-audit-fix": "^10.1.1"
},

@@ -137,3 +138,4 @@ "nodemonConfig": {

}
]
],
"packageManager": "yarn@4.4.1+sha512.f825273d0689cc9ead3259c14998037662f1dcd06912637b21a450e8da7cfeb4b1965bbee73d16927baa1201054126bc385c6f43ff4aa705c8631d26e12460f1"
}

@@ -10,9 +10,8 @@ # ![](docs/assets/tree_logo_32.png) wunderbaum

<!-- [![Build Status](https://travis-ci.com/mar10/wunderbaum.svg?branch=main)](https://travis-ci.com/github/mar10/wunderbaum) -->
> A modern tree/treegrid control for the web. <br>
> Potential successor of [Fancytree](https://github.com/mar10/fancytree).
> Designated successor of [Fancytree](https://github.com/mar10/fancytree).
>
> Status _beta_:<br>
> API, Markup, Stylesheet, etc. are still subject to change.
**Status _beta_:<br>API, Markup, Stylesheet, etc. are still subject to change.**
[![Demo](https://mar10.github.io/wunderbaum/assets/teaser_2.png)](https://mar10.github.io/wunderbaum/demo/)

@@ -19,0 +18,0 @@

@@ -15,3 +15,3 @@ /*!

*/
export const ROW_HEIGHT = 22;
export const DEFAULT_ROW_HEIGHT = 22;
/**

@@ -18,0 +18,0 @@ * Fixed width of node icons in pixel. Must match the SCSS variable `$icon-outer-width`.

@@ -122,3 +122,3 @@ /*!

icon?: IconOption;
iconTooltip?: boolean | string;
iconTooltip?: TooltipOption;
key?: string;

@@ -132,3 +132,3 @@ lazy?: boolean;

title: string;
tooltip?: boolean | string;
tooltip?: TooltipOption;
type?: string;

@@ -340,4 +340,4 @@ unselectable?: boolean;

icon?: IconOption;
/** Default icon for matching nodes. */
iconTooltip?: string | boolean;
/** Default icon tooltip for matching nodes. */
iconTooltip?: TooltipOption;
// and more

@@ -344,0 +344,0 @@ [key: string]: unknown;

@@ -817,2 +817,14 @@ /*!

/**
* Return `val` unless `val` is a number in which case we convert to boolean.
* This is useful when a boolean value is stored as a 0/1 (e.g. in JSON) and
* we still want to maintain string values. null and undefined are returned as
* is. E.g. `checkbox` may be boolean or 'radio'.
*/
export function intToBool(
val: boolean | number | string | undefined
): boolean | string | undefined {
return typeof val === "number" ? !!val : val;
}
// /** Check if a string is contained in an Array or Set. */

@@ -819,0 +831,0 @@ // export function isAnyOf(s: string, items: Array<string>|Set<string>): boolean {

@@ -17,3 +17,2 @@ /*!

} from "./types";
import { ROW_HEIGHT } from "./common";
import { DebouncedFunction, throttle } from "./debounce";

@@ -139,2 +138,3 @@

): DropRegionType | false {
const rowHeight = this.tree.options.rowHeightPx!;
const dy = e.offsetY;

@@ -145,5 +145,5 @@

} else if (allowed.size === 3) {
return dy < 0.25 * ROW_HEIGHT
return dy < 0.25 * rowHeight
? "before"
: dy > 0.75 * ROW_HEIGHT
: dy > 0.75 * rowHeight
? "after"

@@ -155,3 +155,3 @@ : "over";

// Only 'before' and 'after':
return dy > ROW_HEIGHT / 2 ? "after" : "before";
return dy > rowHeight / 2 ? "after" : "before";
}

@@ -459,3 +459,8 @@ // return "over";

this.lastDropEffect = dt.dropEffect;
const region = this._calcDropRegion(e, this.lastAllowedDropRegions);
targetNode.setClass("wb-drop-target");
targetNode.setClass("wb-drop-over", region === "over");
targetNode.setClass("wb-drop-before", region === "before");
targetNode.setClass("wb-drop-after", region === "after");

@@ -462,0 +467,0 @@ e.preventDefault(); // Allow drop (Drop operation is denied by default)

@@ -216,2 +216,6 @@ /*!

}
if (node.isStatusNode()) {
node.logWarn("Cannot edit status node.");
return;
}
this.tree.logDebug(`startEditTitle(node=${node})`);

@@ -218,0 +222,0 @@ let inputHtml = node._callEvent("edit.beforeEdit");

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display