Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-lists

Package Overview
Dependencies
Maintainers
3
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-lists - npm Package Compare versions

Comparing version 23.1.42 to 23.1.43

8

CHANGELOG.md

@@ -7,2 +7,10 @@ # Changelog

#### Bug Fixes
- `#I494960` - Provided support to add list item in corresponding index position of ListView without adjusting scroll current position.
## 23.1.36 (2023-09-15)
### ListView
#### Breaking Changes

@@ -9,0 +17,0 @@

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 23.1.42
* version : 23.1.43
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"_from": "@syncfusion/ej2-lists@*",
"_id": "@syncfusion/ej2-lists@22.1.1",
"_id": "@syncfusion/ej2-lists@23.1.42",
"_inBundle": false,
"_integrity": "sha512-jBtRRqzsH1qGVl/Y8NGkBIY04wOvQy2grGsN748ycD+JdOddlO14d9S0QA1CemMOcuBm1vLMEqi1gR1XWpFdVw==",
"_integrity": "sha512-nZFJBFNTfPXcXNgmiWTzjFhbzstuh0DCafgXcxewrTOPehNusCu3P6oEk+UoPTCzWSXsyKHUaxOP4KkQsCS8CA==",
"_location": "/@syncfusion/ej2-lists",

@@ -38,4 +38,4 @@ "_phantomChildren": {},

],
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-22.1.1.tgz",
"_shasum": "8e9b20d503a0da30682fe271bdb2d35a3923a978",
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-23.1.42.tgz",
"_shasum": "833c31a436d2afa9f6963225d61dddbc7166bb6d",
"_spec": "@syncfusion/ej2-lists@*",

@@ -49,4 +49,4 @@ "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",

"@syncfusion/ej2-base": "~23.1.41",
"@syncfusion/ej2-buttons": "~23.1.42",
"@syncfusion/ej2-data": "~23.1.36"
"@syncfusion/ej2-buttons": "~23.1.43",
"@syncfusion/ej2-data": "~23.1.43"
},

@@ -91,5 +91,5 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "23.1.42",
"version": "23.1.43",
"sideEffects": false,
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
}

@@ -559,7 +559,9 @@ import { Virtualization } from './virtualization';

*
* @param {number} index - Indicates the index where the data to be added.
*/
addItem(data: {
[key: string]: Object;
}[], fields?: Fields): void;
}[], fields?: Fields, index?: number): void;
private addItemInternally;
private addItemAtIndex;
private addItemInNestedList;

@@ -566,0 +568,0 @@ private addItemIntoDom;

@@ -80,3 +80,3 @@ import { ListView, ItemCreatedArgs, Fields, UISelectedItem } from './list-view';

private changeUiIndices;
addItem(data: DataSource[], fields: Fields, dataSource: DataSource[]): void;
addItem(data: DataSource[], fields: Fields, dataSource: DataSource[], index: number): void;
private createAndInjectNewItem;

@@ -83,0 +83,0 @@ createUIItem(args: ItemCreatedArgs): void;

@@ -709,7 +709,7 @@ import { classNames } from './list-view';

};
Virtualization.prototype.addItem = function (data, fields, dataSource) {
Virtualization.prototype.addItem = function (data, fields, dataSource, index) {
for (var i = 0; i < data.length; i++) {
var currentItem = data[i];
// push the given data to main data array
dataSource.push(currentItem);
dataSource = this.listViewInstance.addItemAtIndex(index, dataSource, currentItem);
// recalculate all the group data or other datasource related things

@@ -732,12 +732,12 @@ this.listViewInstance.setViewDataSource(dataSource);

if (this.listViewInstance.ulElement) {
var index = this.listViewInstance.curViewDS.indexOf(currentItem);
var index_1 = this.listViewInstance.curViewDS.indexOf(currentItem);
// inject new list item into DOM
this.createAndInjectNewItem(currentItem, index);
this.createAndInjectNewItem(currentItem, index_1);
// check for group header item
var curViewDS = this.listViewInstance.curViewDS[index - 1];
var curViewDS = this.listViewInstance.curViewDS[index_1 - 1];
if (curViewDS && curViewDS.isHeader && curViewDS.items.length === 1) {
// target group item index in datasource
--index;
--index_1;
// inject new group header into DOM for previously created list item
this.createAndInjectNewItem(curViewDS, index);
this.createAndInjectNewItem(curViewDS, index_1);
}

@@ -752,9 +752,9 @@ }

// eslint-disable-next-line
var index = this.listViewInstance.curViewDS.indexOf(currentItem);
var index_2 = this.listViewInstance.curViewDS.indexOf(currentItem);
// virtually new add list item based on the scollbar position
this.addUiItem(index);
this.addUiItem(index_2);
// check for group header item needs to be added
var curViewDS = this.listViewInstance.curViewDS[index - 1];
var curViewDS = this.listViewInstance.curViewDS[index_2 - 1];
if (curViewDS && curViewDS.isHeader && curViewDS.items.length === 1) {
this.addUiItem(index - 1);
this.addUiItem(index_2 - 1);
}

@@ -761,0 +761,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc