Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@syncfusion/ej2-lists

Package Overview
Dependencies
Maintainers
2
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 16.2.50 to 16.3.17

src/component.d.ts

6

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

### ListView
#### New Features
- Provided multi-line text support in combination with [Avatar](https://ej2.syncfusion.com/documentation/avatar/getting-started.html?lang=typescript) and [Badge](https://ej2.syncfusion.com/documentation/badge/getting-started.html?lang=typescript).
## 16.2.49 (2018-08-21)

@@ -7,0 +13,0 @@

8

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 16.2.50
* version : 16.3.17
* Copyright Syncfusion Inc. 2001 - 2018. All rights reserved.

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

import * as _lists from '@syncfusion/ej2-lists';
import * as _base from '@syncfusion/ej2-base';
import * as _data from '@syncfusion/ej2-data';
import * as _buttons from '@syncfusion/ej2-buttons';
export declare namespace ej {
const lists: typeof _lists;
const base: typeof _base;
const data: typeof _data;
const buttons: typeof _buttons;
}
{
"name": "@syncfusion/ej2-lists",
"version": "16.2.50",
"description": "Displays data in a list-like interface with built-in support for templating, sorting, grouping and many more.",
"version": "16.3.17",
"description": "Essential JS 2 List Components",
"author": "Syncfusion Inc.",

@@ -11,5 +11,5 @@ "license": "SEE LICENSE IN license",

"dependencies": {
"@syncfusion/ej2-base": "~16.2.50",
"@syncfusion/ej2-data": "~16.2.50",
"@syncfusion/ej2-buttons": "~16.2.50"
"@syncfusion/ej2-base": "~16.3.17",
"@syncfusion/ej2-data": "~16.3.17",
"@syncfusion/ej2-buttons": "~16.3.17"
},

@@ -50,4 +50,3 @@ "devDependencies": {

"url": "https://github.com/syncfusion/ej2-lists"
},
"homepage": "https://www.syncfusion.com/products/javascript/listview"
}
}

@@ -41,3 +41,3 @@ import { Query } from '@syncfusion/ej2-data';

[key: string]: Object;
}[] | string[], options?: ListBaseOptions, isSingleLevel?: boolean): HTMLElement;
}[] | string[] | number[], options?: ListBaseOptions, isSingleLevel?: boolean): HTMLElement;
/**

@@ -47,3 +47,3 @@ * Function helps to created an element list based on string array input .

*/
function createListFromArray(createElement: createElementParams, dataSource: string[], isSingleLevel?: boolean, options?: ListBaseOptions): HTMLElement;
function createListFromArray(createElement: createElementParams, dataSource: string[] | number[], isSingleLevel?: boolean, options?: ListBaseOptions): HTMLElement;
/**

@@ -53,3 +53,3 @@ * Function helps to created an element list based on string array input .

*/
function createListItemFromArray(createElement: createElementParams, dataSource: string[], isSingleLevel?: boolean, options?: ListBaseOptions): HTMLElement[];
function createListItemFromArray(createElement: createElementParams, dataSource: string[] | number[], isSingleLevel?: boolean, options?: ListBaseOptions): HTMLElement[];
/**

@@ -56,0 +56,0 @@ * Function helps to created an element list based on array of JSON input .

@@ -164,3 +164,4 @@ import { extend, merge, isNullOrUndefined, getValue } from '@syncfusion/ej2-base';

var li;
if (dataSource.length && !typeofData(dataSource).item.hasOwnProperty(fields.id)) {
if (dataSource && dataSource.length && !isNullOrUndefined(typeofData(dataSource).item) &&
!typeofData(dataSource).item.hasOwnProperty(fields.id)) {
id = generateId(); // generate id for drop-down-list option.

@@ -195,6 +196,4 @@ }

if (isSingleLevel === true) {
if (curOpt.showIcon && fieldData.hasOwnProperty(fields.iconCss)) {
if (!isNullOrUndefined(fieldData[fields.iconCss])) {
innerEle.push(createElement('span', { className: cssClass.icon + ' ' + fieldData[fields.iconCss] }));
}
if (curOpt.showIcon && fieldData.hasOwnProperty(fields.iconCss) && !isNullOrUndefined(fieldData[fields.iconCss])) {
innerEle.push(createElement('span', { className: cssClass.icon + ' ' + fieldData[fields.iconCss] }));
}

@@ -222,11 +221,8 @@ li = generateSingleLevelLI(createElement, curItem, fieldData, fields, curOpt.itemClass, innerEle, (curItem.hasOwnProperty('isHeader') &&

var attr = { src: fieldData[fields.imageUrl] };
if (fieldData.hasOwnProperty(fields.imageUrl)) {
merge(attr, fieldData[fields.imageAttributes]);
}
merge(attr, fieldData[fields.imageAttributes]);
prepend([createElement('img', { className: cssClass.image, attrs: attr })], li.firstElementChild);
}
if (curOpt.showIcon && fieldData.hasOwnProperty(fields.iconCss) && !curOpt.template) {
if (!isNullOrUndefined(fieldData[fields.iconCss])) {
prepend([createElement('div', { className: cssClass.icon + ' ' + fieldData[fields.iconCss] })], li.firstElementChild);
}
if (curOpt.showIcon && fieldData.hasOwnProperty(fields.iconCss) &&
!isNullOrUndefined(fieldData[fields.iconCss]) && !curOpt.template) {
prepend([createElement('div', { className: cssClass.icon + ' ' + fieldData[fields.iconCss] })], li.firstElementChild);
}

@@ -317,3 +313,4 @@ if (innerEle.length) {

if (sortOrder === void 0) { sortOrder = 'None'; }
var cusQuery = new Query().group(fields.groupBy);
var curFields = extend({}, ListBase.defaultMappedFields, fields);
var cusQuery = new Query().group(curFields.groupBy);
// need to remove once sorting issues fixed in DataManager

@@ -327,3 +324,3 @@ cusQuery = addSorting(sortOrder, 'key', cusQuery);

var hdr = 'isHeader';
grpItem[fields.text] = ds[j].key;
grpItem[curFields.text] = ds[j].key;
grpItem[hdr] = true;

@@ -456,2 +453,3 @@ grpItem.id = 'group-list-item-' + (ds[j].key ?

var curOpt = extend({}, defaultListBaseOptions, options);
var curFields = extend({}, ListBase.defaultMappedFields, fields);
var compiledString = compile(template);

@@ -461,6 +459,6 @@ var liCollection = [];

for (var i = 0; i < dataSource.length; i++) {
var fieldData = getFieldValues(dataSource[i], fields);
var fieldData = getFieldValues(dataSource[i], curFields);
var curItem = dataSource[i];
var isHeader = curItem.isHeader;
var value = (typeof curItem === 'string' || typeof curItem === 'number') ? curItem : fieldData[fields.value];
var value = fieldData[curFields.value];
if (curOpt.itemCreating && typeof curOpt.itemCreating === 'function') {

@@ -472,3 +470,3 @@ var curData = {

options: curOpt,
fields: fields
fields: curFields
};

@@ -478,4 +476,4 @@ curOpt.itemCreating(curData);

if (curOpt.itemCreating && typeof curOpt.itemCreating === 'function') {
fieldData = getFieldValues(dataSource[i], fields);
value = fieldData[fields.value];
fieldData = getFieldValues(dataSource[i], curFields);
value = fieldData[curFields.value];
}

@@ -487,3 +485,3 @@ var li = createElement('li', {

if (isHeader) {
li.innerText = fieldData[fields.text];
li.innerText = fieldData[curFields.text];
}

@@ -502,3 +500,3 @@ else {

options: curOpt,
fields: fields
fields: curFields
};

@@ -522,3 +520,4 @@ curOpt.itemCreated(curData);

var compiledString = compile(groupTemplate);
var category = fields.groupBy;
var curFields = extend({}, ListBase.defaultMappedFields, fields);
var category = curFields.groupBy;
for (var _i = 0, headerItems_1 = headerItems; _i < headerItems_1.length; _i++) {

@@ -555,5 +554,3 @@ var header = headerItems_1[_i];

if (!!options.expandCollapse && hasChildren && !options.template) {
if (element.firstElementChild.classList.contains(cssClass.textContent)) {
element.firstElementChild.classList.add(cssClass.iconWrapper);
}
element.firstElementChild.classList.add(cssClass.iconWrapper);
var expandElement = options.expandIconPosition === 'Left' ? prepend : append;

@@ -560,0 +557,0 @@ expandElement([createElement('div', { className: 'e-icons ' + options.expandIconClass })], element.querySelector('.' + cssClass.textContent));

@@ -1,5 +0,1 @@

import * as lists from './index';
import * as base from '@syncfusion/ej2-base';
import * as data from '@syncfusion/ej2-data';
import * as buttons from '@syncfusion/ej2-buttons';
export { lists, base, data, buttons };
export * from './index';

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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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