Releases: mar10/fancytree
Releases · mar10/fancytree
v2.33.0
- [Added] event
preInit
(fired before nodes are loaded). - [Changed] jQuery is now a peerDependency (>=1.9), so users can install or re-use their own version.
- [Changed] ext-grid:
updateViewport
event is now also triggered for 'renumber' (i.e. expand, collapse) - [Fixed] #963: tree.setExpanded() fails when autoScroll is enabled
- [Fixed] #964: handle case when
source
is not passed and no<ul>
is embedded. - [Fixed] #966: Ext-dnd5: bug in function onDropEvent (case 'dragover')
- [Fixed] ext-filter: sub-match counter is one too high.
v2.32.0
- [Added]
node.hasClass(className)
- [Added]
tree.applyCommand()
andnode.applyCommand()
(experimental!) - [Added]
tree.isLoading()
- [Added]
tree.toDict(includeRoot, callback)
andnode.toDict(recursive, callback)
:
callback can now returnfalse
or"skip"
to skip nodes. - [Fixed] #951 Hover issue in unselectable radio
- ext-dnd5: allow autoExpand even if dropping is prevented
- [Fixed] ext-filter: tree.rootNode.subMatchCount is now set correctly
- [Fixed] #955 node.navigate($.ui.keyCode.DOWN, false) does not return promise
- Stop testing with jQuery UI 1.10 and 1.11 (only jQuery UI 1.12 remains)
v2.31.0
- New extension ext-grid (experimental)
This is a variant ofext-table
that introduces viewport support, which
allows to maintain huge data models while only rendering as many DOM elements as necessary.
Main changes:- A viewport is defined by the number of visible rows (
tree.viewport.count
) and the index of the first visible row (.start
) - When scrolling, rows are not hidden, but removed and replaced. (This implies that the contents of embedded input fields should be written into the model immediately.)
- A viewport is defined by the number of visible rows (
- Refactored ext-dnd5
Some breaking changes were made, mainly to improve handling of the dropEffect
(note that ext-dnd5 was and still is experimental and in progress).- Remove
dnd5.dropEffect
callback option (setdata.dropEffect
instead) - Remove
dnd5.dragImage
callback option (calldata.dataTransfer.setDragImage()
- and set
data.useDefaultImage = false
instead) - Rename
dnd5.preventRecursiveMoves
todnd5.preventRecursion
dnd5.preventVoidMoves
now only aplies to 'move' operations, so we can copy before self- [Added]
dnd5.preventSameParent
option
- Remove
- [Added] hook
treeStructureChanged
- [Added] methods
tree.findRelatedNode()
,node.findRelatedNode()
- [Added] method
node.getPath()
- [Added] methods
$.ui.fancytree.getDragNode()
,$.ui.fancytree.getDragNodeList()
- [Added] event
updateViewport
- [Added] tree option
.checkboxAutoHide
to hide checkboxes unless selected or hovered. - [Added] tree option
.treeId
to prevent generation of a new sequence if the tree is re-initialized on a page. - [Changed]
.getTree()
now also accepts the tree id string - [Changed] #939: Keep a
partsel
flag that was explicitly set on a lazy node - [Changed] ext-clones: make default key generation more robust against collisions
- [DEPRECATED] loaderror and lazyload options now throw an error instead of falling back to the correct loadError and lazyLoad
- [DEPRECATED]
tree.applyFilter
was removed - [Fixed] #918 SVG font awesome 5 glyphs remove badge counter when parent node is collapsed
- [Fixed] #921 ext-edit respectively focus handling: Internet Explorer scrolls briefly
to the top/left of the tree container element after editing a node title if the
tree container is partially outside the viewport - [Fixed] #931 Selecting grandparent selects all nodes of radiogroup in selectMode=3
- [Fixed] #946 dnd5 - Counter badge shows up, although the drag was cancelled from dragStart callback
- [Fixed] #947 dnd5 - dragEnd is fired only when re-ordering nodes within the same parent
- [Fixed] missing tree.error() and broken node.error()
- [Fixed] a bug in ext-logger
- Optimized performance of
expandAll()
andext-filter
- Replace jshint/jscs with eslint
- Now testing on Puppeteer/Chromium instead of PhantonJS
- Use LF on Windows when checking out from git (added .gitattributes)
- Update to jQuery 3.4
v2.30.2
- Stop testing on IE 8 (no longer available on Saucelabs)
- [Fixed] #910 ext-dnd5 throws error for draggable column headers
- [Fixed] overrideMethod()'s calling context
- [Fixed] #912 ext-dnd5 + ext-glyph awesome5 does not show the icons when dragging an item
- [Fixed] #919 ext-multi: JavaScript error (event is not defined) in nodeKeydown
- [Fixed] #922 scrollIntoView for plain trees that don't have a scrollbar
- [Fixed] #924 ext-edit: Fix caret position for mouse-click in input
- [Fixed] #928 ext-dnd5: Fix
preventNonNodes
option - [Fixed] #929 Fix
.getTree()
for jQuery 3 - [Fixed] #930 ext-dnd5: If drag does not start, no drag data should be stored
v2.30.1
- [Changed] Apply and enforce 'prettier' codestyle
- [Changed] #897 Set font for table extension
- [Fixed] #883: Font Awesome 4 animation spinner stays visible
- [Fixed] #894: Fancytree assertion failed: scrollParent should be a simple element or
window
, not document or body. - [Fixed] #896 _requireExtension: order managment
- [Fixed] #899 Creating duplicate icon when removing node using extension columnview
- [Fixed] #900 ColumnView Extension - Toggle between parent and children not working
- [Fixed] #909 With quicksearch enabled, does not search for non-Latin character
v2.30.0
- [Changed] ext-edit trigger 'clickActive' now only triggers if no modifier keys
(shift, meta, control, ...) are pressed.
Trigger 'shift+click' now only triggers if no other modifier key (control, ...)
is pressed. - [Changed] #879 Rename ext-debug to ext-logger
(jquery.fancytree.debug.js => jquery.fancytree.logger.js) - [Added] ext-multi is now deployed with jquery.fancytree-all.js (still experimental)
- [Added] tree.activateKey(key, opts) now has an
opts
argument - [Added]
nodata
option (bool, string, or callback) - [Added] ext-table
mergeStatusColumns
option - [Added] new method
tree.enable(flag)
- [Added] new method
tree.expandAll(flag, opts)
- [Added] new methods
tree.setOption(name, value)
andtree.getOption(name)
- [Fixed] ES6 import dependency on jquery for jquery.fancytree.ui-deps.js
- [Fixed] #863 setActive() sometimes does not scroll node into view
- [Fixed] #877 postProcess may now also return the object form
{..., children: []}
- [Fixed] #884 ReferenceError: jQuery is not defined at _simpleDeepMerge
- [Fixed] autoScroll, node.scrollIntoView(), and .makeVisible() now work for tables as well.
v2.29.1
- [Fixed] ES6 import dependency on jquery for jquery.fancytree.ui-deps.js
- [Fixed] #848 Drag End Error with dnd5 extension (again):
fancytree-drag-remove class not removed on drop/dragend - [Fixed] #875 ext-dnd5: Unwanted expanding of folder node when a node is dragged
before/after it - [Fixed] #876
triggerStart: []
does not override the default settings.
NOTE: Options of typeArray
will now override the default option.
Before, arrays were merged with the default. - [Fixed] ext-ariagrid default actions
v2.29.0
- [Changed]
toggleEffect
now also accepts "toggle" or "slideToggle" to use jQuery effects instead of jQueryUI.
toggleEffect: { effect: "slideToggle", duration: 200 }
is now the default.
'effects' component was removed from the bundled jquery.fancytree.ui-deps.js - [Fixed] #746 Animation bug when expanding/collapsing nodes
- [Fixed] #848 Drag End Error with dnd5 extension
- [Fixed] #850 ext-childcounter doesn't work with custom icons
- [Fixed] #859 Fix log level configuration problem
- [Fixed] #865 toggleEffect animation (effect: blind) sometimes got stuck.
- Stop testing jQuery UI 1.9
- Update to jQuery 3.3.1
v2.28.1
v2.28.0
- [Added] New extension ext-multi (experimental).
- [Added] ext-dnd5 support for dragging multiple selected nodes.
- [Added] #830 support for Font Awesome 5 (ext-glyph preset).
- [Added] ext-glyph supports SVG icons.
- [Added]
icon
option supports{html: "..."}
content (also available for glyph-ext mapping). - [Added] New method tree.visitRows()
- [Added] New method tree.selectAll()
- [Added] New method node.isBelowOf()
- [Added] New extension ext-fixed (experimental).
- [Changed] Re-rename clearData() to clearPersistData()
- [Changed] #828 Re-scale debugLevel from 0:quiet to 4:verbose, allowing to suppress warnings
and even errors. - [Added] CSS helper classes:
.fancytree-helper-disabled
.fancytree-helper-hidden
(replacesui-helper-hidden
)
.fancytree-helper-indeterminate-cb
fancytree-helper-spin
for icon animations (replacesglyphicon-spin
) - [Fixed] #819: ext-filter: Handle nodes without title.
- [Fixed] #835: ext-dnd5: Accept drop externals after drag.