@syncfusion/ej2-lists 27.2.3 → 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 +9 -29
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +9 -29
- 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/list-view/virtualization.js +6 -4
- 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
|
@@ -3227,9 +3227,10 @@ class Virtualization {
|
|
|
3227
3227
|
*/
|
|
3228
3228
|
uiVirtualization() {
|
|
3229
3229
|
this.wireScrollEvent(false);
|
|
3230
|
-
const isRendered = this.listViewInstance.isRendered;
|
|
3231
|
-
const firstIndex = isRendered && !isNullOrUndefined(this.uiFirstIndex) ? this.uiFirstIndex : 0;
|
|
3232
3230
|
const curViewDS = this.listViewInstance.curViewDS;
|
|
3231
|
+
const isRendered = this.listViewInstance.isRendered;
|
|
3232
|
+
const firstIndex = isRendered && !isNullOrUndefined(this.uiFirstIndex) && this.uiLastIndex <= Object.keys(curViewDS).length
|
|
3233
|
+
? this.uiFirstIndex : 0;
|
|
3233
3234
|
const firstDs = curViewDS.slice(firstIndex, firstIndex + 1);
|
|
3234
3235
|
this.listViewInstance.ulElement = this.listViewInstance.curUL = ListBase.createList(this.listViewInstance.createElement, firstDs, this.listViewInstance.listBaseOption, null, this.listViewInstance);
|
|
3235
3236
|
this.listViewInstance.contentContainer = this.listViewInstance.createElement('div', { className: classNames.container });
|
|
@@ -3238,7 +3239,8 @@ class Virtualization {
|
|
|
3238
3239
|
this.listItemHeight = this.listViewInstance.ulElement.firstElementChild.getBoundingClientRect().height;
|
|
3239
3240
|
this.expectedDomItemCount = this.ValidateItemCount(10000);
|
|
3240
3241
|
this.updateDOMItemCount();
|
|
3241
|
-
const lastIndex = isRendered && !isNullOrUndefined(this.uiLastIndex)
|
|
3242
|
+
const lastIndex = isRendered && !isNullOrUndefined(this.uiLastIndex) && this.listDiff !== 0
|
|
3243
|
+
? this.uiLastIndex : this.domItemCount - 1;
|
|
3242
3244
|
this.uiFirstIndex = firstIndex;
|
|
3243
3245
|
this.uiLastIndex = lastIndex;
|
|
3244
3246
|
const otherDs = curViewDS.slice(firstIndex + 1, lastIndex + 1);
|
|
@@ -3254,7 +3256,7 @@ class Virtualization {
|
|
|
3254
3256
|
this.bottomElement.style.height = isRendered ? (this.totalHeight - this.topElementHeight) + 'px' : this.totalHeight + 'px';
|
|
3255
3257
|
this.topElementHeight = isRendered ? this.topElementHeight : 0;
|
|
3256
3258
|
this.bottomElementHeight = isRendered ? (this.totalHeight - this.topElementHeight) : this.totalHeight;
|
|
3257
|
-
this.listDiff = isRendered ? this.listDiff : 0;
|
|
3259
|
+
this.listDiff = isRendered && Object.keys(curViewDS).length !== this.domItemCount ? this.listDiff : 0;
|
|
3258
3260
|
if (isRendered) {
|
|
3259
3261
|
this.listViewInstance.element.scrollTop = this.listViewInstance.previousScrollTop;
|
|
3260
3262
|
}
|
|
@@ -4139,7 +4141,7 @@ let Sortable = Sortable_1 = class Sortable extends Base {
|
|
|
4139
4141
|
return;
|
|
4140
4142
|
}
|
|
4141
4143
|
if (isPlaceHolderPresent) {
|
|
4142
|
-
|
|
4144
|
+
this.removePlaceHolder(newInst);
|
|
4143
4145
|
}
|
|
4144
4146
|
newInst.placeHolderElement = placeHolder;
|
|
4145
4147
|
if (e.target && typeof e.target.className === 'string' && e.target.className.indexOf('e-list-group-item') > -1) {
|
|
@@ -4151,7 +4153,6 @@ let Sortable = Sortable_1 = class Sortable extends Base {
|
|
|
4151
4153
|
else {
|
|
4152
4154
|
newInst.element.insertBefore(newInst.placeHolderElement, newInst.element.children[newIdx]);
|
|
4153
4155
|
}
|
|
4154
|
-
this.refreshDisabled(oldIdx, newIdx, newInst);
|
|
4155
4156
|
}
|
|
4156
4157
|
else {
|
|
4157
4158
|
oldIdx = isNullOrUndefined(oldIdx) ? this.getIndex(this.target) :
|
|
@@ -4160,7 +4161,6 @@ let Sortable = Sortable_1 = class Sortable extends Base {
|
|
|
4160
4161
|
const idx = newInst.element !== this.element ? newIdx : oldIdx < newIdx ? newIdx + 1 : newIdx;
|
|
4161
4162
|
this.updateItemClass(newInst);
|
|
4162
4163
|
newInst.element.insertBefore(this.target, newInst.element.children[idx]);
|
|
4163
|
-
this.refreshDisabled(oldIdx, newIdx, newInst);
|
|
4164
4164
|
this.curTarget = this.target;
|
|
4165
4165
|
this.trigger('drop', {
|
|
4166
4166
|
droppedElement: this.target, element: newInst.element, previousIndex: oldIdx, currentIndex: newIdx,
|
|
@@ -4169,7 +4169,7 @@ let Sortable = Sortable_1 = class Sortable extends Base {
|
|
|
4169
4169
|
}
|
|
4170
4170
|
}
|
|
4171
4171
|
else if (this.curTarget !== this.target && this.scope && this.curTarget !== target && !isNullOrUndefined(newInst.placeHolder)) {
|
|
4172
|
-
|
|
4172
|
+
this.removePlaceHolder(this.getSortableInstance(this.curTarget));
|
|
4173
4173
|
this.curTarget = this.target;
|
|
4174
4174
|
}
|
|
4175
4175
|
newInst = this.getSortableInstance(this.curTarget);
|
|
@@ -4245,7 +4245,7 @@ let Sortable = Sortable_1 = class Sortable extends Base {
|
|
|
4245
4245
|
target: e.target, helper: e.helper, droppedElement: this.target, scopeName: this.scope, handled: handled
|
|
4246
4246
|
});
|
|
4247
4247
|
}
|
|
4248
|
-
|
|
4248
|
+
this.removePlaceHolder(dropInst);
|
|
4249
4249
|
});
|
|
4250
4250
|
}
|
|
4251
4251
|
dropInst = this.getSortableInstance(e.target);
|
|
@@ -4362,26 +4362,6 @@ let Sortable = Sortable_1 = class Sortable extends Base {
|
|
|
4362
4362
|
return this;
|
|
4363
4363
|
}
|
|
4364
4364
|
}
|
|
4365
|
-
refreshDisabled(oldIdx, newIdx, instance) {
|
|
4366
|
-
if (instance === this) {
|
|
4367
|
-
let element;
|
|
4368
|
-
const increased = oldIdx < newIdx;
|
|
4369
|
-
let disabledIdx;
|
|
4370
|
-
let start = increased ? oldIdx : newIdx;
|
|
4371
|
-
const end = increased ? newIdx : oldIdx;
|
|
4372
|
-
while (start <= end) {
|
|
4373
|
-
element = this.element.children[start];
|
|
4374
|
-
if (element.classList.contains('e-disabled')) {
|
|
4375
|
-
disabledIdx = this.getIndex(element);
|
|
4376
|
-
this.element.insertBefore(element, this.element.children[increased ? disabledIdx + 2 : disabledIdx - 1]);
|
|
4377
|
-
start = increased ? disabledIdx + 2 : disabledIdx + 1;
|
|
4378
|
-
}
|
|
4379
|
-
else {
|
|
4380
|
-
start++;
|
|
4381
|
-
}
|
|
4382
|
-
}
|
|
4383
|
-
}
|
|
4384
|
-
}
|
|
4385
4365
|
getIndex(target, instance = this, e) {
|
|
4386
4366
|
let idx;
|
|
4387
4367
|
let placeHolderPresent;
|