@syncfusion/ej2-lists 27.2.5 → 28.1.33
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/README.md +3 -3
- package/dist/ej2-lists.min.js +3 -3
- package/dist/ej2-lists.umd.min.js +3 -3
- package/dist/ej2-lists.umd.min.js.map +1 -1
- package/dist/es6/ej2-lists.es2015.js +3 -25
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +3 -25
- package/dist/es6/ej2-lists.es5.js.map +1 -1
- package/dist/global/ej2-lists.min.js +3 -3
- package/dist/global/ej2-lists.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +10 -10
- package/src/sortable/sortable.d.ts +0 -1
- package/src/sortable/sortable.js +3 -25
- package/styles/bds-lite.css +450 -0
- package/styles/bds-lite.scss +7 -0
- package/styles/bds.css +606 -0
- package/styles/bds.scss +8 -0
- package/styles/bootstrap-dark-lite.css +11 -0
- package/styles/bootstrap-dark.css +11 -0
- package/styles/bootstrap-lite.css +11 -0
- package/styles/bootstrap.css +11 -0
- package/styles/bootstrap4-lite.css +11 -0
- package/styles/bootstrap4.css +11 -0
- package/styles/bootstrap5-dark-lite.css +11 -0
- package/styles/bootstrap5-dark.css +11 -0
- package/styles/bootstrap5-lite.css +11 -0
- package/styles/bootstrap5.3-lite.css +11 -0
- package/styles/bootstrap5.3.css +11 -0
- package/styles/bootstrap5.css +11 -0
- package/styles/fabric-dark-lite.css +11 -0
- package/styles/fabric-dark.css +11 -0
- package/styles/fabric-lite.css +11 -0
- package/styles/fabric.css +11 -0
- package/styles/fluent-dark-lite.css +11 -0
- package/styles/fluent-dark.css +11 -0
- package/styles/fluent-lite.css +11 -0
- package/styles/fluent.css +11 -0
- package/styles/fluent2-lite.css +12 -1
- package/styles/fluent2.css +12 -1
- package/styles/highcontrast-light-lite.css +11 -0
- package/styles/highcontrast-light.css +11 -0
- package/styles/highcontrast-lite.css +11 -0
- package/styles/highcontrast.css +11 -0
- package/styles/list-view/_bigger.scss +70 -1
- package/styles/list-view/_layout.scss +27 -1
- package/styles/list-view/_tailwind3-definition.scss +137 -0
- package/styles/list-view/_theme.scss +11 -3
- package/styles/list-view/bds.css +577 -0
- package/styles/list-view/bds.scss +6 -0
- package/styles/list-view/bootstrap-dark.css +11 -0
- package/styles/list-view/bootstrap.css +11 -0
- package/styles/list-view/bootstrap4.css +11 -0
- package/styles/list-view/bootstrap5-dark.css +11 -0
- package/styles/list-view/bootstrap5.3.css +11 -0
- package/styles/list-view/bootstrap5.css +11 -0
- package/styles/list-view/fabric-dark.css +11 -0
- package/styles/list-view/fabric.css +11 -0
- package/styles/list-view/fluent-dark.css +11 -0
- package/styles/list-view/fluent.css +11 -0
- package/styles/list-view/fluent2.css +12 -1
- package/styles/list-view/highcontrast-light.css +11 -0
- package/styles/list-view/highcontrast.css +11 -0
- package/styles/list-view/icons/_tailwind3.scss +8 -0
- package/styles/list-view/material-dark.css +11 -0
- package/styles/list-view/material.css +11 -0
- package/styles/list-view/material3-dark.css +11 -0
- package/styles/list-view/material3.css +11 -0
- package/styles/list-view/tailwind-dark.css +11 -0
- package/styles/list-view/tailwind.css +11 -0
- package/styles/list-view/tailwind3.css +509 -0
- package/styles/list-view/tailwind3.scss +6 -0
- package/styles/material-dark-lite.css +11 -0
- package/styles/material-dark.css +11 -0
- package/styles/material-lite.css +11 -0
- package/styles/material.css +11 -0
- package/styles/material3-dark-lite.css +11 -0
- package/styles/material3-dark.css +11 -0
- package/styles/material3-lite.css +11 -0
- package/styles/material3.css +11 -0
- package/styles/sortable/_tailwind3-definition.scss +1 -0
- package/styles/sortable/bds.css +32 -0
- package/styles/sortable/bds.scss +3 -0
- package/styles/sortable/tailwind3.css +32 -0
- package/styles/sortable/tailwind3.scss +3 -0
- package/styles/tailwind-dark-lite.css +11 -0
- package/styles/tailwind-dark.css +11 -0
- package/styles/tailwind-lite.css +11 -0
- package/styles/tailwind.css +11 -0
- package/styles/tailwind3-lite.css +428 -0
- package/styles/tailwind3-lite.scss +7 -0
- package/styles/tailwind3.css +538 -0
- package/styles/tailwind3.scss +8 -0
|
@@ -4202,7 +4202,7 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
|
|
|
4202
4202
|
return;
|
|
4203
4203
|
}
|
|
4204
4204
|
if (isPlaceHolderPresent) {
|
|
4205
|
-
|
|
4205
|
+
_this.removePlaceHolder(newInst);
|
|
4206
4206
|
}
|
|
4207
4207
|
newInst.placeHolderElement = placeHolder;
|
|
4208
4208
|
if (e.target && typeof e.target.className === 'string' && e.target.className.indexOf('e-list-group-item') > -1) {
|
|
@@ -4214,7 +4214,6 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
|
|
|
4214
4214
|
else {
|
|
4215
4215
|
newInst.element.insertBefore(newInst.placeHolderElement, newInst.element.children[newIdx]);
|
|
4216
4216
|
}
|
|
4217
|
-
_this.refreshDisabled(oldIdx, newIdx, newInst);
|
|
4218
4217
|
}
|
|
4219
4218
|
else {
|
|
4220
4219
|
oldIdx = isNullOrUndefined(oldIdx) ? _this.getIndex(_this.target) :
|
|
@@ -4223,7 +4222,6 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
|
|
|
4223
4222
|
var idx = newInst.element !== _this.element ? newIdx : oldIdx < newIdx ? newIdx + 1 : newIdx;
|
|
4224
4223
|
_this.updateItemClass(newInst);
|
|
4225
4224
|
newInst.element.insertBefore(_this.target, newInst.element.children[idx]);
|
|
4226
|
-
_this.refreshDisabled(oldIdx, newIdx, newInst);
|
|
4227
4225
|
_this.curTarget = _this.target;
|
|
4228
4226
|
_this.trigger('drop', {
|
|
4229
4227
|
droppedElement: _this.target, element: newInst.element, previousIndex: oldIdx, currentIndex: newIdx,
|
|
@@ -4232,7 +4230,7 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
|
|
|
4232
4230
|
}
|
|
4233
4231
|
}
|
|
4234
4232
|
else if (_this.curTarget !== _this.target && _this.scope && _this.curTarget !== target && !isNullOrUndefined(newInst.placeHolder)) {
|
|
4235
|
-
|
|
4233
|
+
_this.removePlaceHolder(_this.getSortableInstance(_this.curTarget));
|
|
4236
4234
|
_this.curTarget = _this.target;
|
|
4237
4235
|
}
|
|
4238
4236
|
newInst = _this.getSortableInstance(_this.curTarget);
|
|
@@ -4308,7 +4306,7 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
|
|
|
4308
4306
|
target: e.target, helper: e.helper, droppedElement: _this.target, scopeName: _this.scope, handled: handled
|
|
4309
4307
|
});
|
|
4310
4308
|
}
|
|
4311
|
-
|
|
4309
|
+
_this.removePlaceHolder(dropInst);
|
|
4312
4310
|
});
|
|
4313
4311
|
}
|
|
4314
4312
|
dropInst = _this.getSortableInstance(e.target);
|
|
@@ -4427,26 +4425,6 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
|
|
|
4427
4425
|
return this;
|
|
4428
4426
|
}
|
|
4429
4427
|
};
|
|
4430
|
-
Sortable.prototype.refreshDisabled = function (oldIdx, newIdx, instance) {
|
|
4431
|
-
if (instance === this) {
|
|
4432
|
-
var element = void 0;
|
|
4433
|
-
var increased = oldIdx < newIdx;
|
|
4434
|
-
var disabledIdx = void 0;
|
|
4435
|
-
var start = increased ? oldIdx : newIdx;
|
|
4436
|
-
var end = increased ? newIdx : oldIdx;
|
|
4437
|
-
while (start <= end) {
|
|
4438
|
-
element = this.element.children[start];
|
|
4439
|
-
if (element.classList.contains('e-disabled')) {
|
|
4440
|
-
disabledIdx = this.getIndex(element);
|
|
4441
|
-
this.element.insertBefore(element, this.element.children[increased ? disabledIdx + 2 : disabledIdx - 1]);
|
|
4442
|
-
start = increased ? disabledIdx + 2 : disabledIdx + 1;
|
|
4443
|
-
}
|
|
4444
|
-
else {
|
|
4445
|
-
start++;
|
|
4446
|
-
}
|
|
4447
|
-
}
|
|
4448
|
-
}
|
|
4449
|
-
};
|
|
4450
4428
|
Sortable.prototype.getIndex = function (target, instance, e) {
|
|
4451
4429
|
if (instance === void 0) { instance = this; }
|
|
4452
4430
|
var idx;
|