fancytree 2.38.0

This commit is contained in:
zadam 2021-02-09 21:33:55 +01:00
parent 7dd19c0366
commit bf231d31a2
6 changed files with 209 additions and 99 deletions

View File

@ -1,6 +1,6 @@
/*! jQuery Fancytree Plugin - 2.37.0 - 2020-09-11T18:58:08Z /*! jQuery Fancytree Plugin - 2.38.0 - 2021-02-09T20:03:49Z
* https://github.com/mar10/fancytree * https://github.com/mar10/fancytree
* Copyright (c) 2020 Martin Wendt; Licensed MIT * Copyright (c) 2021 Martin Wendt; Licensed MIT
*/ */
/*! jQuery UI - v1.12.1 - 2018-05-20 /*! jQuery UI - v1.12.1 - 2018-05-20
* http://jqueryui.com * http://jqueryui.com
@ -1361,12 +1361,12 @@ var uniqueId = $.fn.extend( {
* Tree view control with support for lazy loading and much more. * Tree view control with support for lazy loading and much more.
* https://github.com/mar10/fancytree/ * https://github.com/mar10/fancytree/
* *
* Copyright (c) 2008-2020, Martin Wendt (https://wwWendt.de) * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
* Released under the MIT license * Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo * https://github.com/mar10/fancytree/wiki/LicenseInfo
* *
* @version 2.37.0 * @version 2.38.0
* @date 2020-09-11T18:58:08Z * @date 2021-02-09T20:03:49Z
*/ */
/** Core Fancytree module. /** Core Fancytree module.
@ -1530,8 +1530,16 @@ var uniqueId = $.fn.extend( {
// TODO: see qunit.js extractStacktrace() // TODO: see qunit.js extractStacktrace()
if (!cond) { if (!cond) {
msg = msg ? ": " + msg : ""; msg = msg ? ": " + msg : "";
msg = "Fancytree assertion failed" + msg;
// consoleApply("assert", [!!cond, msg]); // consoleApply("assert", [!!cond, msg]);
$.error("Fancytree assertion failed" + msg);
// #1041: Raised exceptions may not be visible in the browser
// console if inside promise chains, so we also print directly:
$.ui.fancytree.error(msg);
// Throw exception:
$.error(msg);
} }
} }
@ -5259,6 +5267,13 @@ var uniqueId = $.fn.extend( {
// visit siblings // visit siblings
siblings = parent.children; siblings = parent.children;
nextIdx = siblings.indexOf(node) + siblingOfs; nextIdx = siblings.indexOf(node) + siblingOfs;
_assert(
nextIdx >= 0,
"Could not find " +
node +
" in parent's children: " +
parent
);
for (i = nextIdx; i < siblings.length; i++) { for (i = nextIdx; i < siblings.length; i++) {
node = siblings[i]; node = siblings[i];
@ -6660,7 +6675,17 @@ var uniqueId = $.fn.extend( {
if (isActive === flag) { if (isActive === flag) {
// Nothing to do // Nothing to do
return _getResolvedPromise(node); return _getResolvedPromise(node);
} else if ( }
// #1042: don't scroll between mousedown/-up when clicking an embedded link
if (
scroll &&
ctx.originalEvent &&
$(ctx.originalEvent.target).is("a,:checkbox")
) {
node.info("Not scrolling while clicking an embedded link.");
scroll = false;
}
if (
flag && flag &&
!noEvents && !noEvents &&
this._triggerNodeEvent( this._triggerNodeEvent(
@ -8070,7 +8095,7 @@ var uniqueId = $.fn.extend( {
{ {
/** Version number `"MAJOR.MINOR.PATCH"` /** Version number `"MAJOR.MINOR.PATCH"`
* @type {string} */ * @type {string} */
version: "2.37.0", // Set to semver by 'grunt release' version: "2.38.0", // Set to semver by 'grunt release'
/** @type {string} /** @type {string}
* @description `"production" for release builds` */ * @description `"production" for release builds` */
buildType: "production", // Set to 'production' by 'grunt build' buildType: "production", // Set to 'production' by 'grunt build'
@ -8700,13 +8725,13 @@ var uniqueId = $.fn.extend( {
* Add a child counter bubble to tree nodes. * Add a child counter bubble to tree nodes.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/) * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
* *
* Copyright (c) 2008-2020, Martin Wendt (https://wwWendt.de) * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
* *
* Released under the MIT license * Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo * https://github.com/mar10/fancytree/wiki/LicenseInfo
* *
* @version 2.37.0 * @version 2.38.0
* @date 2020-09-11T18:58:08Z * @date 2021-02-09T20:03:49Z
*/ */
// To keep the global namespace clean, we wrap everything in a closure. // To keep the global namespace clean, we wrap everything in a closure.
@ -8825,7 +8850,7 @@ var uniqueId = $.fn.extend( {
// Every extension must be registered by a unique name. // Every extension must be registered by a unique name.
name: "childcounter", name: "childcounter",
// Version information should be compliant with [semver](http://semver.org) // Version information should be compliant with [semver](http://semver.org)
version: "2.37.0", version: "2.38.0",
// Extension specific options and their defaults. // Extension specific options and their defaults.
// This options will be available as `tree.options.childcounter.hideExpanded` // This options will be available as `tree.options.childcounter.hideExpanded`
@ -8931,13 +8956,13 @@ var uniqueId = $.fn.extend( {
* Support faster lookup of nodes by key and shared ref-ids. * Support faster lookup of nodes by key and shared ref-ids.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/) * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
* *
* Copyright (c) 2008-2020, Martin Wendt (https://wwWendt.de) * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
* *
* Released under the MIT license * Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo * https://github.com/mar10/fancytree/wiki/LicenseInfo
* *
* @version 2.37.0 * @version 2.38.0
* @date 2020-09-11T18:58:08Z * @date 2021-02-09T20:03:49Z
*/ */
(function(factory) { (function(factory) {
@ -8958,13 +8983,8 @@ var uniqueId = $.fn.extend( {
/******************************************************************************* /*******************************************************************************
* Private functions and variables * Private functions and variables
*/ */
function _assert(cond, msg) {
// TODO: see qunit.js extractStacktrace() var _assert = $.ui.fancytree.assert;
if (!cond) {
msg = msg ? ": " + msg : "";
$.error("Assertion failed" + msg);
}
}
/* Return first occurrence of member from array. */ /* Return first occurrence of member from array. */
function _removeArrayMember(arr, elem) { function _removeArrayMember(arr, elem) {
@ -9295,7 +9315,7 @@ var uniqueId = $.fn.extend( {
*/ */
$.ui.fancytree.registerExtension({ $.ui.fancytree.registerExtension({
name: "clones", name: "clones",
version: "2.37.0", version: "2.38.0",
// Default options for this extension. // Default options for this extension.
options: { options: {
highlightActiveClones: true, // set 'fancytree-active-clone' on active clones and all peers highlightActiveClones: true, // set 'fancytree-active-clone' on active clones and all peers
@ -9452,13 +9472,13 @@ var uniqueId = $.fn.extend( {
* Drag-and-drop support (native HTML5). * Drag-and-drop support (native HTML5).
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/) * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
* *
* Copyright (c) 2008-2020, Martin Wendt (https://wwWendt.de) * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
* *
* Released under the MIT license * Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo * https://github.com/mar10/fancytree/wiki/LicenseInfo
* *
* @version 2.37.0 * @version 2.38.0
* @date 2020-09-11T18:58:08Z * @date 2021-02-09T20:03:49Z
*/ */
/* /*
@ -10056,7 +10076,7 @@ var uniqueId = $.fn.extend( {
// data store list of items representing dragged data can be // data store list of items representing dragged data can be
// enumerated, but the data itself is unavailable and no new // enumerated, but the data itself is unavailable and no new
// data can be added. // data can be added.
var nodeData = node.toDict(); var nodeData = node.toDict(true, dndOpts.sourceCopyHook);
nodeData.treeId = node.tree._id; nodeData.treeId = node.tree._id;
json = JSON.stringify(nodeData); json = JSON.stringify(nodeData);
try { try {
@ -10476,7 +10496,7 @@ var uniqueId = $.fn.extend( {
$.ui.fancytree.registerExtension({ $.ui.fancytree.registerExtension({
name: "dnd5", name: "dnd5",
version: "2.37.0", version: "2.38.0",
// Default options for this extension. // Default options for this extension.
options: { options: {
autoExpandMS: 1500, // Expand nodes after n milliseconds of hovering autoExpandMS: 1500, // Expand nodes after n milliseconds of hovering
@ -10498,6 +10518,7 @@ var uniqueId = $.fn.extend( {
scrollSensitivity: 20, // Active top/bottom margin in pixel scrollSensitivity: 20, // Active top/bottom margin in pixel
scrollSpeed: 5, // Pixel per event scrollSpeed: 5, // Pixel per event
setTextTypeJson: false, // Allow dragging of nodes to different IE windows setTextTypeJson: false, // Allow dragging of nodes to different IE windows
sourceCopyHook: null, // Optional callback passed to `toDict` on dragStart @since 2.38
// Events (drag support) // Events (drag support)
dragStart: null, // Callback(sourceNode, data), return true, to enable dnd drag dragStart: null, // Callback(sourceNode, data), return true, to enable dnd drag
dragDrag: $.noop, // Callback(sourceNode, data) dragDrag: $.noop, // Callback(sourceNode, data)
@ -10607,13 +10628,13 @@ var uniqueId = $.fn.extend( {
* Make node titles editable. * Make node titles editable.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/) * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
* *
* Copyright (c) 2008-2020, Martin Wendt (https://wwWendt.de) * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
* *
* Released under the MIT license * Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo * https://github.com/mar10/fancytree/wiki/LicenseInfo
* *
* @version 2.37.0 * @version 2.38.0
* @date 2020-09-11T18:58:08Z * @date 2021-02-09T20:03:49Z
*/ */
(function(factory) { (function(factory) {
@ -10905,7 +10926,7 @@ var uniqueId = $.fn.extend( {
*/ */
$.ui.fancytree.registerExtension({ $.ui.fancytree.registerExtension({
name: "edit", name: "edit",
version: "2.37.0", version: "2.38.0",
// Default options for this extension. // Default options for this extension.
options: { options: {
adjustWidthOfs: 4, // null: don't adjust input size to content adjustWidthOfs: 4, // null: don't adjust input size to content
@ -11011,13 +11032,13 @@ var uniqueId = $.fn.extend( {
* Remove or highlight tree nodes, based on a filter. * Remove or highlight tree nodes, based on a filter.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/) * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
* *
* Copyright (c) 2008-2020, Martin Wendt (https://wwWendt.de) * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
* *
* Released under the MIT license * Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo * https://github.com/mar10/fancytree/wiki/LicenseInfo
* *
* @version 2.37.0 * @version 2.38.0
* @date 2020-09-11T18:58:08Z * @date 2021-02-09T20:03:49Z
*/ */
(function(factory) { (function(factory) {
@ -11040,8 +11061,9 @@ var uniqueId = $.fn.extend( {
*/ */
var KeyNoData = "__not_found__", var KeyNoData = "__not_found__",
escapeHtml = $.ui.fancytree.escapeHtml; escapeHtml = $.ui.fancytree.escapeHtml,
exoticStartChar = "\uFFF7",
exoticEndChar = "\uFFF8";
function _escapeRegex(str) { function _escapeRegex(str) {
return (str + "").replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1"); return (str + "").replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1");
} }
@ -11055,6 +11077,47 @@ var uniqueId = $.fn.extend( {
return s; return s;
} }
/**
* @description Marks the matching charecters of `text` either by `mark` or
* by exotic*Chars (if `escapeTitles` is `true`) based on `regexMatchArray`
* which is an array of matching groups.
* @param {string} text
* @param {RegExpMatchArray} regexMatchArray
*/
function _markFuzzyMatchedChars(text, regexMatchArray, escapeTitles) {
// It is extremely infuriating that we can not use `let` or `const` or arrow functions.
// Damn you IE!!!
var matchingIndices = [];
// get the indices of matched characters (Iterate through `RegExpMatchArray`)
for (
var _matchingArrIdx = 1;
_matchingArrIdx < regexMatchArray.length;
_matchingArrIdx++
) {
var _mIdx =
// get matching char index by cumulatively adding
// the matched group length
regexMatchArray[_matchingArrIdx].length +
(_matchingArrIdx === 1 ? 0 : 1) +
(matchingIndices[matchingIndices.length - 1] || 0);
matchingIndices.push(_mIdx);
}
// Map each `text` char to its position and store in `textPoses`.
var textPoses = text.split("");
if (escapeTitles) {
// If escaping the title, then wrap the matchng char within exotic chars
matchingIndices.forEach(function(v) {
textPoses[v] = exoticStartChar + textPoses[v] + exoticEndChar;
});
} else {
// Otherwise, Wrap the matching chars within `mark`.
matchingIndices.forEach(function(v) {
textPoses[v] = "<mark>" + textPoses[v] + "</mark>";
});
}
// Join back the modified `textPoses` to create final highlight markup.
return textPoses.join("");
}
$.ui.fancytree._FancytreeClass.prototype._applyFilterImpl = function( $.ui.fancytree._FancytreeClass.prototype._applyFilterImpl = function(
filter, filter,
branchMode, branchMode,
@ -11064,6 +11127,8 @@ var uniqueId = $.fn.extend( {
statusNode, statusNode,
re, re,
reHighlight, reHighlight,
reExoticStartChar,
reExoticEndChar,
temp, temp,
prevEnableUpdate, prevEnableUpdate,
count = 0, count = 0,
@ -11087,14 +11152,29 @@ var uniqueId = $.fn.extend( {
// See https://codereview.stackexchange.com/questions/23899/faster-javascript-fuzzy-string-matching-function/23905#23905 // See https://codereview.stackexchange.com/questions/23899/faster-javascript-fuzzy-string-matching-function/23905#23905
// and http://www.quora.com/How-is-the-fuzzy-search-algorithm-in-Sublime-Text-designed // and http://www.quora.com/How-is-the-fuzzy-search-algorithm-in-Sublime-Text-designed
// and http://www.dustindiaz.com/autocomplete-fuzzy-matching // and http://www.dustindiaz.com/autocomplete-fuzzy-matching
match = filter.split("").reduce(function(a, b) { match = filter
return a + "[^" + b + "]*" + b; .split("")
}); // Escaping the `filter` will not work because,
// it gets further split into individual characters. So,
// escape each character after splitting
.map(_escapeRegex)
.reduce(function(a, b) {
// create capture groups for parts that comes before
// the character
return a + "([^" + b + "]*)" + b;
}, "");
} else { } else {
match = _escapeRegex(filter); // make sure a '.' is treated literally match = _escapeRegex(filter); // make sure a '.' is treated literally
} }
re = new RegExp(".*" + match + ".*", "i"); re = new RegExp(match, "i");
reHighlight = new RegExp(_escapeRegex(filter), "gi"); reHighlight = new RegExp(_escapeRegex(filter), "gi");
if (escapeTitles) {
reExoticStartChar = new RegExp(
_escapeRegex(exoticStartChar),
"g"
);
reExoticEndChar = new RegExp(_escapeRegex(exoticEndChar), "g");
}
filter = function(node) { filter = function(node) {
if (!node.title) { if (!node.title) {
return false; return false;
@ -11102,31 +11182,46 @@ var uniqueId = $.fn.extend( {
var text = escapeTitles var text = escapeTitles
? node.title ? node.title
: extractHtmlText(node.title), : extractHtmlText(node.title),
res = !!re.test(text); // `.match` instead of `.test` to get the capture groups
res = text.match(re);
if (res && opts.highlight) { if (res && opts.highlight) {
if (escapeTitles) { if (escapeTitles) {
// #740: we must not apply the marks to escaped entity names, e.g. `&quot;` if (opts.fuzzy) {
// Use some exotic characters to mark matches: temp = _markFuzzyMatchedChars(
temp = text.replace(reHighlight, function(s) { text,
return "\uFFF7" + s + "\uFFF8"; res,
}); escapeTitles
);
} else {
// #740: we must not apply the marks to escaped entity names, e.g. `&quot;`
// Use some exotic characters to mark matches:
temp = text.replace(reHighlight, function(s) {
return exoticStartChar + s + exoticEndChar;
});
}
// now we can escape the title... // now we can escape the title...
node.titleWithHighlight = escapeHtml(temp) node.titleWithHighlight = escapeHtml(temp)
// ... and finally insert the desired `<mark>` tags // ... and finally insert the desired `<mark>` tags
.replace(/\uFFF7/g, "<mark>") .replace(reExoticStartChar, "<mark>")
.replace(/\uFFF8/g, "</mark>"); .replace(reExoticEndChar, "</mark>");
} else { } else {
node.titleWithHighlight = text.replace( if (opts.fuzzy) {
reHighlight, node.titleWithHighlight = _markFuzzyMatchedChars(
function(s) { text,
return "<mark>" + s + "</mark>"; res
} );
); } else {
node.titleWithHighlight = text.replace(
reHighlight,
function(s) {
return "<mark>" + s + "</mark>";
}
);
}
} }
// node.debug("filter", escapeTitles, text, node.titleWithHighlight); // node.debug("filter", escapeTitles, text, node.titleWithHighlight);
} }
return res; return !!res;
}; };
} }
@ -11264,6 +11359,26 @@ var uniqueId = $.fn.extend( {
return this._applyFilterImpl(filter, true, opts); return this._applyFilterImpl(filter, true, opts);
}; };
/**
* [ext-filter] Re-apply current filter.
*
* @returns {integer} count
* @alias Fancytree#updateFilter
* @requires jquery.fancytree.filter.js
* @since 2.38
*/
$.ui.fancytree._FancytreeClass.prototype.updateFilter = function() {
if (
this.enableFilter &&
this.lastFilterArgs &&
this.options.filter.autoApply
) {
this._applyFilterImpl.apply(this, this.lastFilterArgs);
} else {
this.warn("updateFilter(): no filter active.");
}
};
/** /**
* [ext-filter] Reset the filter. * [ext-filter] Reset the filter.
* *
@ -11355,7 +11470,7 @@ var uniqueId = $.fn.extend( {
*/ */
$.ui.fancytree.registerExtension({ $.ui.fancytree.registerExtension({
name: "filter", name: "filter",
version: "2.37.0", version: "2.38.0",
// Default options for this extension. // Default options for this extension.
options: { options: {
autoApply: true, // Re-apply last filter if lazy data is loaded autoApply: true, // Re-apply last filter if lazy data is loaded
@ -11470,13 +11585,13 @@ var uniqueId = $.fn.extend( {
* Use glyph-fonts, ligature-fonts, or SVG icons instead of icon sprites. * Use glyph-fonts, ligature-fonts, or SVG icons instead of icon sprites.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/) * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
* *
* Copyright (c) 2008-2020, Martin Wendt (https://wwWendt.de) * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
* *
* Released under the MIT license * Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo * https://github.com/mar10/fancytree/wiki/LicenseInfo
* *
* @version 2.37.0 * @version 2.38.0
* @date 2020-09-11T18:58:08Z * @date 2021-02-09T20:03:49Z
*/ */
(function(factory) { (function(factory) {
@ -11678,7 +11793,7 @@ var uniqueId = $.fn.extend( {
$.ui.fancytree.registerExtension({ $.ui.fancytree.registerExtension({
name: "glyph", name: "glyph",
version: "2.37.0", version: "2.38.0",
// Default options for this extension. // Default options for this extension.
options: { options: {
preset: null, // 'awesome3', 'awesome4', 'bootstrap3', 'material' preset: null, // 'awesome3', 'awesome4', 'bootstrap3', 'material'
@ -11828,13 +11943,13 @@ var uniqueId = $.fn.extend( {
* Support keyboard navigation for trees with embedded input controls. * Support keyboard navigation for trees with embedded input controls.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/) * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
* *
* Copyright (c) 2008-2020, Martin Wendt (https://wwWendt.de) * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
* *
* Released under the MIT license * Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo * https://github.com/mar10/fancytree/wiki/LicenseInfo
* *
* @version 2.37.0 * @version 2.38.0
* @date 2020-09-11T18:58:08Z * @date 2021-02-09T20:03:49Z
*/ */
(function(factory) { (function(factory) {
@ -11951,7 +12066,7 @@ var uniqueId = $.fn.extend( {
*/ */
$.ui.fancytree.registerExtension({ $.ui.fancytree.registerExtension({
name: "gridnav", name: "gridnav",
version: "2.37.0", version: "2.38.0",
// Default options for this extension. // Default options for this extension.
options: { options: {
autofocusInput: false, // Focus first embedded input if node gets activated autofocusInput: false, // Focus first embedded input if node gets activated
@ -12053,13 +12168,13 @@ var uniqueId = $.fn.extend( {
* Allow multiple selection of nodes by mouse or keyboard. * Allow multiple selection of nodes by mouse or keyboard.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/) * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
* *
* Copyright (c) 2008-2020, Martin Wendt (https://wwWendt.de) * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
* *
* Released under the MIT license * Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo * https://github.com/mar10/fancytree/wiki/LicenseInfo
* *
* @version 2.37.0 * @version 2.38.0
* @date 2020-09-11T18:58:08Z * @date 2021-02-09T20:03:49Z
*/ */
(function(factory) { (function(factory) {
@ -12088,7 +12203,7 @@ var uniqueId = $.fn.extend( {
*/ */
$.ui.fancytree.registerExtension({ $.ui.fancytree.registerExtension({
name: "multi", name: "multi",
version: "2.37.0", version: "2.38.0",
// Default options for this extension. // Default options for this extension.
options: { options: {
allowNoSelect: false, // allowNoSelect: false, //
@ -12185,13 +12300,13 @@ var uniqueId = $.fn.extend( {
* *
* @depends: js-cookie or jquery-cookie * @depends: js-cookie or jquery-cookie
* *
* Copyright (c) 2008-2020, Martin Wendt (https://wwWendt.de) * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
* *
* Released under the MIT license * Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo * https://github.com/mar10/fancytree/wiki/LicenseInfo
* *
* @version 2.37.0 * @version 2.38.0
* @date 2020-09-11T18:58:08Z * @date 2021-02-09T20:03:49Z
*/ */
(function(factory) { (function(factory) {
@ -12402,7 +12517,7 @@ var uniqueId = $.fn.extend( {
*/ */
$.ui.fancytree.registerExtension({ $.ui.fancytree.registerExtension({
name: "persist", name: "persist",
version: "2.37.0", version: "2.38.0",
// Default options for this extension. // Default options for this extension.
options: { options: {
cookieDelimiter: "~", cookieDelimiter: "~",
@ -12690,13 +12805,13 @@ var uniqueId = $.fn.extend( {
* Render tree as table (aka 'tree grid', 'table tree'). * Render tree as table (aka 'tree grid', 'table tree').
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/) * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
* *
* Copyright (c) 2008-2020, Martin Wendt (https://wwWendt.de) * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
* *
* Released under the MIT license * Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo * https://github.com/mar10/fancytree/wiki/LicenseInfo
* *
* @version 2.37.0 * @version 2.38.0
* @date 2020-09-11T18:58:08Z * @date 2021-02-09T20:03:49Z
*/ */
(function(factory) { (function(factory) {
@ -12717,12 +12832,7 @@ var uniqueId = $.fn.extend( {
/****************************************************************************** /******************************************************************************
* Private functions and variables * Private functions and variables
*/ */
function _assert(cond, msg) { var _assert = $.ui.fancytree.assert;
msg = msg || "";
if (!cond) {
$.error("Assertion failed " + msg);
}
}
function insertFirstChild(referenceNode, newNode) { function insertFirstChild(referenceNode, newNode) {
referenceNode.insertBefore(newNode, referenceNode.firstChild); referenceNode.insertBefore(newNode, referenceNode.firstChild);
@ -12779,7 +12889,7 @@ var uniqueId = $.fn.extend( {
$.ui.fancytree.registerExtension({ $.ui.fancytree.registerExtension({
name: "table", name: "table",
version: "2.37.0", version: "2.38.0",
// Default options for this extension. // Default options for this extension.
options: { options: {
checkboxColumnIdx: null, // render the checkboxes into the this column index (default: nodeColumnIdx) checkboxColumnIdx: null, // render the checkboxes into the this column index (default: nodeColumnIdx)
@ -13240,13 +13350,13 @@ var uniqueId = $.fn.extend( {
* *
* @see http://jqueryui.com/themeroller/ * @see http://jqueryui.com/themeroller/
* *
* Copyright (c) 2008-2020, Martin Wendt (https://wwWendt.de) * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
* *
* Released under the MIT license * Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo * https://github.com/mar10/fancytree/wiki/LicenseInfo
* *
* @version 2.37.0 * @version 2.38.0
* @date 2020-09-11T18:58:08Z * @date 2021-02-09T20:03:49Z
*/ */
(function(factory) { (function(factory) {
@ -13269,7 +13379,7 @@ var uniqueId = $.fn.extend( {
*/ */
$.ui.fancytree.registerExtension({ $.ui.fancytree.registerExtension({
name: "themeroller", name: "themeroller",
version: "2.37.0", version: "2.38.0",
// Default options for this extension. // Default options for this extension.
options: { options: {
activeClass: "ui-state-active", // Class added to active node activeClass: "ui-state-active", // Class added to active node
@ -13360,13 +13470,13 @@ var uniqueId = $.fn.extend( {
* Support for 100% wide selection bars. * Support for 100% wide selection bars.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/) * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
* *
* Copyright (c) 2008-2020, Martin Wendt (https://wwWendt.de) * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
* *
* Released under the MIT license * Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo * https://github.com/mar10/fancytree/wiki/LicenseInfo
* *
* @version 2.37.0 * @version 2.38.0
* @date 2020-09-11T18:58:08Z * @date 2021-02-09T20:03:49Z
*/ */
(function(factory) { (function(factory) {
@ -13496,7 +13606,7 @@ var uniqueId = $.fn.extend( {
*/ */
$.ui.fancytree.registerExtension({ $.ui.fancytree.registerExtension({
name: "wide", name: "wide",
version: "2.37.0", version: "2.38.0",
// Default options for this extension. // Default options for this extension.
options: { options: {
iconWidth: null, // Adjust this if @fancy-icon-width != "16px" iconWidth: null, // Adjust this if @fancy-icon-width != "16px"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -9,12 +9,12 @@
* *
* This section is automatically generated from the `skin-common.less` template. * This section is automatically generated from the `skin-common.less` template.
* *
* Copyright (c) 2008-2020, Martin Wendt (https://wwWendt.de) * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
* Released under the MIT license * Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo * https://github.com/mar10/fancytree/wiki/LicenseInfo
* *
* @version 2.37.0 * @version 2.38.0
* @date 2020-09-11T18:58:08Z * @date 2021-02-09T20:03:49Z
******************************************************************************/ ******************************************************************************/
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
* Helpers * Helpers

View File

@ -65,7 +65,7 @@
<script src="libraries/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="libraries/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Include Fancytree skin and library --> <!-- Include Fancytree skin and library -->
<link href="libraries/fancytree/skin-win8/ui.fancytree.css" rel="stylesheet"> <link href="libraries/fancytree/skin-win8/ui.fancytree.min.css" rel="stylesheet">
<script src="libraries/fancytree/jquery.fancytree-all-deps.min.js"></script> <script src="libraries/fancytree/jquery.fancytree-all-deps.min.js"></script>
<script src="libraries/jquery.hotkeys.js"></script> <script src="libraries/jquery.hotkeys.js"></script>

View File

@ -122,7 +122,7 @@
<script src="libraries/dayjs.min.js"></script> <script src="libraries/dayjs.min.js"></script>
<link href="libraries/fancytree/skin-win8/ui.fancytree.css" rel="stylesheet"> <link href="libraries/fancytree/skin-win8/ui.fancytree.min.css" rel="stylesheet">
<script src="libraries/fancytree/jquery.fancytree-all-deps.min.js"></script> <script src="libraries/fancytree/jquery.fancytree-all-deps.min.js"></script>
<link href="libraries/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="libraries/bootstrap/css/bootstrap.min.css" rel="stylesheet">