@syncfusion/ej2-lists 29.1.34 → 29.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-lists.min.js +2 -2
- package/dist/ej2-lists.umd.min.js +2 -2
- package/dist/ej2-lists.umd.min.js.map +1 -1
- package/dist/es6/ej2-lists.es2015.js +9 -2
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +9 -2
- package/dist/es6/ej2-lists.es5.js.map +1 -1
- package/dist/global/ej2-lists.min.js +2 -2
- package/dist/global/ej2-lists.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +20 -16
- package/src/sortable/sortable-model.d.ts +1 -1
- package/src/sortable/sortable.js +9 -2
- package/styles/bootstrap5.3-lite.css +4 -0
- package/styles/bootstrap5.3.css +4 -0
- package/styles/list-view/_theme.scss +1 -1
- package/styles/list-view/bootstrap5.3.css +4 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isNullOrUndefined, getValue, extend, SanitizeHtmlHelper, prepend, merge, addClass, isVisible, attributes, append, compile, Property, ChildProperty, detach, removeClass, formatUnit, animationMode, Animation, closest, EventHandler, Touch, remove, rippleEffect, Complex, Event, NotifyPropertyChanges, Component, select,
|
|
1
|
+
import { isNullOrUndefined, getValue, extend, SanitizeHtmlHelper, prepend, merge, addClass, isVisible, attributes, append, compile, Property, ChildProperty, detach, removeClass, formatUnit, animationMode, Animation, closest, EventHandler, Touch, remove, rippleEffect, Complex, Event, NotifyPropertyChanges, Component, select, Browser, getComponent, isBlazor, getUniqueID, Draggable, compareElementParent, Base } from '@syncfusion/ej2-base';
|
|
2
2
|
import { Query, DataManager } from '@syncfusion/ej2-data';
|
|
3
3
|
import { createCheckBox } from '@syncfusion/ej2-buttons';
|
|
4
4
|
|
|
@@ -4266,6 +4266,11 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
|
|
|
4266
4266
|
};
|
|
4267
4267
|
_this.onDragStart = function (e) {
|
|
4268
4268
|
_this.target = _this.getSortableElement(e.target);
|
|
4269
|
+
if (isNullOrUndefined(_this.target) && closest(_this.element, '.e-listbox-container') && Browser.isDevice) {
|
|
4270
|
+
detach(e.dragElement);
|
|
4271
|
+
getComponent(_this.element, 'draggable').intDestroy(e.event);
|
|
4272
|
+
return;
|
|
4273
|
+
}
|
|
4269
4274
|
var cancelDrag = false;
|
|
4270
4275
|
_this.target.classList.add('e-grabbed');
|
|
4271
4276
|
_this.curTarget = _this.target;
|
|
@@ -4315,7 +4320,9 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
|
|
|
4315
4320
|
}
|
|
4316
4321
|
dropInst.element.insertBefore(_this.target, dropInst.placeHolderElement);
|
|
4317
4322
|
var curIdx_2 = _this.getIndex(_this.target, dropInst);
|
|
4318
|
-
|
|
4323
|
+
if (observedArgs.currentIndex > observedArgs.previousIndex) {
|
|
4324
|
+
prevIdx = _this === dropInst && (prevIdx - curIdx_2) >= 1 ? prevIdx - 1 : prevIdx;
|
|
4325
|
+
}
|
|
4319
4326
|
_this.trigger('drop', {
|
|
4320
4327
|
event: e.event, element: dropInst.element, previousIndex: prevIdx, currentIndex: curIdx_2,
|
|
4321
4328
|
target: e.target, helper: e.helper, droppedElement: _this.target, scopeName: _this.scope, handled: handled
|