From 354caceec99e5f497b04a3bf57794d0c18f5aef2 Mon Sep 17 00:00:00 2001 From: Martin Wendt Date: Tue, 29 Oct 2019 09:00:19 +0100 Subject: [PATCH] Bump version to 2.33.0 --- bower.json | 2 +- dist/jquery.fancytree-all-deps.js | 154 +++++++++-------- dist/jquery.fancytree-all-deps.min.js | 2 +- dist/jquery.fancytree-all-deps.min.js.map | 2 +- dist/jquery.fancytree-all.js | 158 ++++++++++-------- dist/jquery.fancytree-all.min.js | 30 ++-- dist/jquery.fancytree.min.js | 2 +- dist/modules/jquery.fancytree.ariagrid.js | 6 +- dist/modules/jquery.fancytree.childcounter.js | 6 +- dist/modules/jquery.fancytree.clones.js | 6 +- dist/modules/jquery.fancytree.columnview.js | 6 +- dist/modules/jquery.fancytree.dnd.js | 6 +- dist/modules/jquery.fancytree.dnd5.js | 7 +- dist/modules/jquery.fancytree.edit.js | 6 +- dist/modules/jquery.fancytree.filter.js | 10 +- dist/modules/jquery.fancytree.fixed.js | 4 +- dist/modules/jquery.fancytree.glyph.js | 6 +- dist/modules/jquery.fancytree.grid.js | 23 ++- dist/modules/jquery.fancytree.gridnav.js | 6 +- dist/modules/jquery.fancytree.js | 75 +++++---- dist/modules/jquery.fancytree.logger.js | 8 +- dist/modules/jquery.fancytree.menu.js | 6 +- dist/modules/jquery.fancytree.multi.js | 6 +- dist/modules/jquery.fancytree.persist.js | 6 +- dist/modules/jquery.fancytree.table.js | 6 +- dist/modules/jquery.fancytree.themeroller.js | 6 +- dist/modules/jquery.fancytree.wide.js | 6 +- dist/skin-awesome/ui.fancytree.css | 5 +- dist/skin-awesome/ui.fancytree.min.css | 2 +- dist/skin-bootstrap-n/ui.fancytree.css | 5 +- dist/skin-bootstrap-n/ui.fancytree.min.css | 2 +- dist/skin-bootstrap/ui.fancytree.css | 5 +- dist/skin-bootstrap/ui.fancytree.min.css | 2 +- dist/skin-common.less | 6 +- dist/skin-lion/ui.fancytree.css | 5 +- dist/skin-lion/ui.fancytree.min.css | 2 +- dist/skin-material/ui.fancytree.css | 5 +- dist/skin-material/ui.fancytree.min.css | 2 +- dist/skin-themeroller/ui.fancytree.css | 5 +- dist/skin-themeroller/ui.fancytree.min.css | 2 +- dist/skin-vista/ui.fancytree.css | 5 +- dist/skin-vista/ui.fancytree.min.css | 2 +- dist/skin-win7/ui.fancytree.css | 5 +- dist/skin-win7/ui.fancytree.min.css | 2 +- dist/skin-win8-n/ui.fancytree.css | 5 +- dist/skin-win8-n/ui.fancytree.min.css | 2 +- dist/skin-win8-xxl/ui.fancytree.css | 5 +- dist/skin-win8-xxl/ui.fancytree.min.css | 2 +- dist/skin-win8/ui.fancytree.css | 5 +- dist/skin-win8/ui.fancytree.min.css | 2 +- dist/skin-xp/ui.fancytree.css | 5 +- dist/skin-xp/ui.fancytree.min.css | 2 +- package.json | 4 +- 53 files changed, 356 insertions(+), 299 deletions(-) diff --git a/bower.json b/bower.json index ad4d863d..8b0ddf81 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "jquery.fancytree", "description": "JavaScript tree view / tree grid plugin with support for keyboard, inline editing, filtering, checkboxes, drag'n'drop, and lazy loading", - "version": "2.32.1-0", + "version": "2.33.0", "main": [ "dist/jquery.fancytree-all-deps.min.js" ], diff --git a/dist/jquery.fancytree-all-deps.js b/dist/jquery.fancytree-all-deps.js index 0bc45dac..37e47013 100644 --- a/dist/jquery.fancytree-all-deps.js +++ b/dist/jquery.fancytree-all-deps.js @@ -1,4 +1,4 @@ -/*! jQuery Fancytree Plugin - 2.32.0 - 2019-09-10T07:42:12Z +/*! jQuery Fancytree Plugin - 2.33.0 - 2019-10-29T08:00:07Z * https://github.com/mar10/fancytree * Copyright (c) 2019 Martin Wendt; Licensed MIT */ @@ -1365,8 +1365,8 @@ var uniqueId = $.fn.extend( { * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * - * @version 2.32.0 - * @date 2019-09-10T07:42:12Z + * @version 2.33.0 + * @date 2019-10-29T08:00:07Z */ /** Core Fancytree module. @@ -2947,15 +2947,7 @@ var uniqueId = $.fn.extend( { // i.e. return false for nodes (but not parents) that are hidden // by a filter if (hasFilter && !this.match && !this.subMatchCount) { - this.debug( - "isVisible: HIDDEN (" + - hasFilter + - ", " + - this.match + - ", " + - this.match + - ")" - ); + // this.debug( "isVisible: HIDDEN (" + hasFilter + ", " + this.match + ", " + this.match + ")" ); return false; } @@ -2963,7 +2955,7 @@ var uniqueId = $.fn.extend( { n = parents[i]; if (!n.expanded) { - this.debug("isVisible: HIDDEN (parent collapsed)"); + // this.debug("isVisible: HIDDEN (parent collapsed)"); return false; } // if (hasFilter && !n.match && !n.subMatchCount) { @@ -2971,7 +2963,7 @@ var uniqueId = $.fn.extend( { // return false; // } } - this.debug("isVisible: VISIBLE"); + // this.debug("isVisible: VISIBLE"); return true; }, /** Deprecated. @@ -4788,6 +4780,10 @@ var uniqueId = $.fn.extend( { }, /** * Return an array of selected nodes. + * + * Note: you cannot send this result via Ajax directly. Instead the + * node object need to be converted to plain objects, for example + * by using `$.map()` and `node.toDict()`. * @param {boolean} [stopOnParents=false] only return the topmost selected * node (useful with selectMode 3) * @returns {FancytreeNode[]} @@ -6714,7 +6710,13 @@ var uniqueId = $.fn.extend( { dfd.done(function() { var lastChild = node.getLastChild(); - if (flag && opts.autoScroll && !noAnimation && lastChild) { + if ( + flag && + opts.autoScroll && + !noAnimation && + lastChild && + tree._enableUpdate + ) { // Scroll down to last child, but keep current node visible lastChild .scrollIntoView(true, { topNode: node }) @@ -6773,9 +6775,7 @@ var uniqueId = $.fn.extend( { $(node.li).addClass(cn.animating); // #717 if ($.isFunction($(node.ul)[effect.effect])) { - tree.debug( - "use jquery." + effect.effect + " method" - ); + // tree.debug( "use jquery." + effect.effect + " method" ); $(node.ul)[effect.effect]({ duration: effect.duration, always: function() { @@ -7263,16 +7263,30 @@ var uniqueId = $.fn.extend( { type = $container.data("type") || "html"; switch (type) { case "html": - $ul = $container.find(">ul").first(); - $ul.addClass( - "ui-fancytree-source fancytree-helper-hidden" - ); - source = $.ui.fancytree.parseHtml($ul); - // allow to init tree.data.foo from