- improved dynamic containers recognition
- improved addContainers, removeContainers methods
- improved example of nested containers
- fixing gulp tasks
- fixed npm audit vulnerabilities #173
- with "copy:'events'" option dragular clone element including event handlers binded on element (request #165)
- added helpers methods into drake for easier dynamic add/removal of containers of drake initialised earlier
- isContainer docs augmentation
- fixed bug in getTargetCtx
- fixed #161 previous target context used if the last before drop was not accepted target
- fixes #154 - both scopes should be notified about events (source and also target scope)
- adding main gulp tasks to standard npm tasks, to get better orented quickly
- renamed CHANGELOG and README to UPPERCASE so they can be more easily to find visually
- throwing error if trying same container to register twice
- new example of nested ng-repeats combined with custom directive
- fixed #148 - model not updated on spill
- fixed #138 - dynamic model via directive doesn't work properly
- fixed #136 - Items can be moved to the end of container even if options.accepts returns false
- isContainerAccepts - acceptation function for isContainer containers
- some docs improvements
- fixed #132 - not working isContainer with models
- merged forgotten changes from master PRs
- fixed #131 drags mixed with scrolling (caused by chrome update)
- fixed #129 drag stucks on no-container release
- fixed #128 canBeAccepted did not work in combination with isContainer
- added options object as second argument to onInit (requested in #65)
- fixed #120 isContainer example not working
- fixed dynamic (function)
options.containersModel
for target containers models
- added new options for
options.containersModel
, it accepts also string from now
- fixing #108 - Webpack and strict mode
- fixed #87 - problem in example "NestedNgRepeat", input field doesnt work
- fixed #107 - IE dragging issue, drag did not start
- fixed #104 - drop index undefined in dragulardrop event listeners
- fixed #102
- transit class added after mirror rendering #101
- original DOM events passed as new parameter to angular listeners #97
- UMD compatible #79
- options.onInit, on init callback function, closes #65
- Fixed examples #83 (Filtered model in nested ng-repeat)
- IE bug fixes #68
- compileItemOnDrop fixes #71
- possibility to use it as a CommonJS module #62
- jQuery enviroment fixes #63
- [Braking change!] options object reference is now live, so can be changed on the fly with instant effect, this feature can be disabled by 'options.copyOptions = true' flag so dragular then make copy of options object. It also means than provided options object will be extended with default value where option property is undefined.
- [Braking change!] flag 'options.ignoreInputTextSelection' default value is 'true'! Meaning that selecting text in input elements is not considered as drag, now by default!
- all boolean type options can be functions returning boolean
- options.containersModel can be function returning model
- new directive attribute dragular-name-space for better readability of views
- new options flag
options.dynamicModelAttribute
, if true dragular will react on model changes - new options flag
options.dontCopyModel
, dont make copy of model when coping item (#61)
- Fixed an issue that prevented
dragular
from execution early in the document load life-cycle - Fixed issues in touch-enabled browsers such as Windows Phone 10
- support filtered ng-repeats
- the 'shared' object is truly shared between service instances as it was originally intended
- many code refactors for better readability (to be continued..)
- event names can be now customized for each drake
- fix touches
- some code refactors
- introducing codeclimate
- Sending target index on dragulardrop event
- Fix css property typo
- Fix for applyAsync typo and multiple executions of startBecauseMouseMoved
- Touchstart and Touchend Support
- Introduced support for
contentEditable
DOM attribute - Switched from
.parentElement
to.parentNode
avoiding bugs when hovering over<svg>
elements - Fixed a bug where mobile devices wouldn't be able to drag elements
- Fix for applyAsync typo and multiple executions of startBecauseMouseMoved #45
- Fixed a bug where
<select>
inputs couldn't be focused - Fixed a bug when determining the mouse button being pressed
- Fixed a bug when determining the element behind the mouse cursor when
ignoreInputTextSelection
was enabled - Added a feature where users are able to select text ranges with their mouse in inputs within a dragular container
- Fixed a bug where text in inputs inside containers assigned to
dragula
couldn't be selected - Fixed a bug where
out
would be emitted with anundefined
container - Fixed a fringe bug (#207) where the click handler wouldn't work
- Fixed a bug where
drop
events would sometimes not receive the current sibling
- added
dragular-model
atribute as new optional way of provideng model when using dragular directive - fixed gh-pages missed prefixes in Events example
- You can now use
options.copySortSource
to enable sorting incopy
-source containers - The
options.moves
callback now receives a fourth parameter, thesibling
found afterel
- Fixed drop event firing before models updated
- Fixed shared.item undefined in grab fn in some cases
- [Braking change!] scope events are renamed (drop => dragulardrop, shadow => dragularshadow, etc..)
- [Braking change!] options.accepts is splited into two methods options.accepts applied with target container options and options.canBeAccepted applied with source container options
- if options.isContainer is used model can be provided via function options.isContainerModel(containerElm)
- [Braking change!] removed dragOverClasses (dragOver events can be used instead);
- share containers between instances, so no need to nameSpace if containers are initialised separately (CAUTION: in case of nested containers you need to use nameSpace for each group/level_of_nesting)
- example with containers which has different options each
- [Braking change!] Now all non-nameSpaced continers are in same domain
- [Braking change!] Models are not updated until drag ends
- css selectors supportet in service
containers
parameter - removed npm workflow
- You can now set
options.copy
to a method. It'll be invoked once per drag to ask whether the element being dragged should be treated as a copy or not - Fixed a bug where starting a drag programatically while an element was being dragged resulted in an exception
- Fixed a bug where
mousedown
would be prevented and focusing draggable inputs wouldn't be possible - Fixed a historical bug, where click on anchors would be ignored within dragula containers in mobile
- Fixed a bug where events wouldn't be gracefully removed if drake were destroyed during a drag event
- Now emits dragend after out to preserve consistency (because drag is emitted before over)
- Fixed another old bug where attempting to remove elements using removeOnSpill on mobile would fail
- Fixed a bug in mobile, caused by 3.0.0, where scrolling would be impossible
- Fixed a bug where dragging would cause text selection in IE8
- [Braking change!] Removed addContainer method, which was previously deprecated
- [Braking change!] Removed removeContainer method, which was previously deprecated
- [Braking change!] Removed delay option in favor of using mousemove
- Drag events now start on the first occurrence of a mousemove event
- If mousemove never fires, then the drag machinery won't start, either
- Changed default value for invalid, now always returns false by default
- Added mirrorContainer option to determine where the mirror gets appended to (defaults to document.body)
- fixing makeArray internal function which causes reversed arrays and so unexpected behaviour
- fixing release (unminidied files had still 2.1.0 version)
- fixing drake.destroy()
- fixed scrolling while drag #14
- added new events fired on elements behind cursor while dragging (dragularenter, dragularleave), could be used to add/remove classes
- added new scope event 'release' when mouse button is released whatever ending it has (drop, cancel, revert..)
- fixed forgoten lint errors
- ngRepeat can be synced with provided model
- gulp workflow (thanks to @alferov)
- gh-pages refactored
- Fixed a bug where
shadow
would trigger multiple times while dragging an element over the same spot - Fixed a bug where adding and removing classes might've caused issues on elements that had foreign CSS classes
- Added an argument to
cloned
event that specifies the kind of clone. Possible values includemirror
andcopy
at the moment - Added
over
event that fires whenever an element is dragged over a container (or whenever a drag event starts) - Added
out
event that fires whenever an element is dragged out of a container (or whenever a drag event ends) - Fixed a bug caused in
2.0.6
where anything would be regarded as adrake
container - Fixed a bug where
isContainer
would be called with ael=null
in some situations - Set
gu-transit
after a drag event has fully started - Fixed a bug where using
.cancel
would throw an exception - Fixed a bug where dragging a copy back to origin after hovering over another container would still result in a copy being made if you never spilled the item
- Deprecated addContainer method
- Deprecated removeContainer method
- Exposed dragula.containers collection
- Introduced dynamic isContainer method
- Can now omit containers argument to dragula(containers, options)
- Can now pass containers as an option
- Differentiate between drag and click using delay option
- Ability to specify which event targets are invalid drag triggers
- mousedown handlers moved from document to containers, due to bugs in namespacing-multiple-instances enviroment
- fixes #6
- changes of dragula 2.0.3 against 1.6.1 implemented
- usage description augmented (#5)
- forgot to build.. sorry
- feat(directive): accept options as JSON string
- fix(directive): minify-safe syntax added to directive, closes #3
- started correctly using Semantic Versioning 2.0.0 http://semver.org/
- avoiding angular.merge, so polyfill part was removed
- boundingBox (dragging element can me moved only in specific area)
- lockX/Y (dragging element can me moved only in specific direction)
- readded feature: automatic direction
- allowing share of containers groups
- custom classes via option.classes;
- accepting arraylike objects as containers array;
- Initial Public Release (dragula 1.6.1, angular 1.4.1);