@syncfusion/ej2-lists
Advanced tools
Comparing version 16.3.27 to 16.3.29
@@ -5,2 +5,4 @@ # Changelog | ||
## 16.3.27 (2018-10-23) | ||
### ListView | ||
@@ -7,0 +9,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 16.3.27 | ||
* version : 16.3.29 | ||
* 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.3.27", | ||
"version": "16.3.29", | ||
"description": "Essential JS 2 List Components", | ||
@@ -11,5 +11,5 @@ "author": "Syncfusion Inc.", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~16.3.24", | ||
"@syncfusion/ej2-data": "~16.3.27", | ||
"@syncfusion/ej2-buttons": "~16.3.25" | ||
"@syncfusion/ej2-base": "~16.3.29", | ||
"@syncfusion/ej2-data": "~16.3.29", | ||
"@syncfusion/ej2-buttons": "~16.3.29" | ||
}, | ||
@@ -16,0 +16,0 @@ "devDependencies": { |
@@ -394,4 +394,10 @@ import { extend, merge, isNullOrUndefined, getValue } from '@syncfusion/ej2-base'; | ||
} | ||
json[fields.id] = generateId(); | ||
var attributes_1 = getAllAttributes(li); | ||
if (attributes_1.id) { | ||
json[fields.id] = attributes_1.id; | ||
delete attributes_1.id; | ||
} | ||
else { | ||
json[fields.id] = generateId(); | ||
} | ||
if (Object.keys(attributes_1).length) { | ||
@@ -530,3 +536,3 @@ json[fields.htmlAttributes] = attributes_1; | ||
function processSubChild(createElement, fieldData, fields, ds, options, element, level) { | ||
// Get SubList | ||
// Get SubList | ||
var subDS = fieldData[fields.child] || []; | ||
@@ -592,3 +598,4 @@ var hasChildren = fieldData[fields.hasChildren]; | ||
} | ||
if (dataSource && fieldData.hasOwnProperty(fields.url) && fieldData[fields.url]) { | ||
if (dataSource && (fieldData[fields.url] || (fieldData[fields.urlAttributes] && | ||
fieldData[fields.urlAttributes].href))) { | ||
li.appendChild(anchorTag(createElement, dataSource, fields, text)); | ||
@@ -629,2 +636,4 @@ } | ||
merge(attr, fieldData[fields.urlAttributes]); | ||
attr.href = fieldData[fields.url] ? fieldData[fields.url] : | ||
fieldData[fields.urlAttributes].href; | ||
} | ||
@@ -669,3 +678,4 @@ var anchorTag = createElement('a', { className: cssClass.text + ' ' + cssClass.url, innerHTML: text }); | ||
}); | ||
if (dataSource && fieldData.hasOwnProperty(fields.url) && fieldData[fields.url]) { | ||
if (dataSource && (fieldData[fields.url] || (fieldData[fields.urlAttributes] && | ||
fieldData[fields.urlAttributes].href))) { | ||
innerDiv.appendChild(anchorTag(createElement, dataSource, fields, text)); | ||
@@ -672,0 +682,0 @@ } |
@@ -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'; |
@@ -312,14 +312,14 @@ import { Virtualization } from './virtualization'; | ||
onPropertyChanged(newProp: ListViewModel, oldProp: ListViewModel): void; | ||
private setHTMLAttribute(); | ||
private setCSSClass(oldCSSClass?); | ||
private setSize(); | ||
private setEnable(); | ||
private setEnableRTL(); | ||
private enableElement(element, isEnabled?); | ||
private header(text?, showBack?); | ||
private switchView(fromView, toView, reverse?); | ||
private setHTMLAttribute; | ||
private setCSSClass; | ||
private setSize; | ||
private setEnable; | ||
private setEnableRTL; | ||
private enableElement; | ||
private header; | ||
private switchView; | ||
protected preRender(): void; | ||
private initialization(); | ||
private renderCheckbox(args); | ||
private checkInternally(args, checkboxElement); | ||
private initialization; | ||
private renderCheckbox; | ||
private checkInternally; | ||
/** | ||
@@ -330,3 +330,3 @@ * It is used to check the checkbox of an item. | ||
checkItem(item: Fields | HTMLElement | Element): void; | ||
private toggleCheckBase(item, checked); | ||
private toggleCheckBase; | ||
/** | ||
@@ -345,42 +345,42 @@ * It is used to uncheck the checkbox of an item. | ||
uncheckAllItems(): void; | ||
private toggleAllCheckBase(checked); | ||
private setCheckbox(); | ||
private clickHandler(e); | ||
private removeElement(element); | ||
private hoverHandler(e); | ||
private leaveHandler(e); | ||
private homeKeyHandler(e, end?); | ||
private onArrowKeyDown(e, prev); | ||
private arrowKeyHandler(e, prev?); | ||
private enterKeyHandler(e); | ||
private spaceKeyHandler(e); | ||
private keyActionHandler(e); | ||
private swipeActionHandler(e); | ||
private focusout(); | ||
private wireEvents(); | ||
private unWireEvents(); | ||
private tabFocus(e); | ||
private removeFocus(); | ||
private removeHover(); | ||
private removeSelect(li?); | ||
private isValidLI(li); | ||
private setCheckboxLI(li, e?); | ||
private selectEventData(li, e?); | ||
private setSelectedItemData(li); | ||
private setSelectLI(li, e?); | ||
private setHoverLI(li); | ||
private getSubDS(); | ||
private getItemData(li); | ||
private findItemFromDS(dataSource, fields, parent?); | ||
private getQuery(); | ||
private setViewDataSource(dataSource?); | ||
private isInAnimation(); | ||
private setLocalData(); | ||
private reRender(); | ||
private resetCurrentList(); | ||
private createList(); | ||
private renderSubList(li); | ||
private renderIntoDom(ele); | ||
private renderList(data?); | ||
private getElementUID(obj); | ||
private toggleAllCheckBase; | ||
private setCheckbox; | ||
private clickHandler; | ||
private removeElement; | ||
private hoverHandler; | ||
private leaveHandler; | ||
private homeKeyHandler; | ||
private onArrowKeyDown; | ||
private arrowKeyHandler; | ||
private enterKeyHandler; | ||
private spaceKeyHandler; | ||
private keyActionHandler; | ||
private swipeActionHandler; | ||
private focusout; | ||
private wireEvents; | ||
private unWireEvents; | ||
private tabFocus; | ||
private removeFocus; | ||
private removeHover; | ||
private removeSelect; | ||
private isValidLI; | ||
private setCheckboxLI; | ||
private selectEventData; | ||
private setSelectedItemData; | ||
private setSelectLI; | ||
private setHoverLI; | ||
private getSubDS; | ||
private getItemData; | ||
private findItemFromDS; | ||
private getQuery; | ||
private setViewDataSource; | ||
private isInAnimation; | ||
private setLocalData; | ||
private reRender; | ||
private resetCurrentList; | ||
private createList; | ||
private renderSubList; | ||
private renderIntoDom; | ||
private renderList; | ||
private getElementUID; | ||
/** | ||
@@ -403,3 +403,3 @@ * It is used to Initialize the control rendering. | ||
selectItem(obj: Fields | HTMLElement | Element): void; | ||
private getLiFromObjOrElement(obj); | ||
private getLiFromObjOrElement; | ||
/** | ||
@@ -410,3 +410,3 @@ * It is used to select multiple list item from the ListView. | ||
selectMultipleItems(obj: Fields[] | HTMLElement[] | Element[]): void; | ||
private getParentId(); | ||
private getParentId; | ||
/** | ||
@@ -432,3 +432,3 @@ * It is used to get the currently [here](./api-selectedItem.html) | ||
disableItem(obj: Fields | HTMLElement | Element): void; | ||
private setItemState(obj, isEnable); | ||
private setItemState; | ||
/** | ||
@@ -444,3 +444,3 @@ * It is used to show an list item from the ListView. | ||
hideItem(obj: Fields | HTMLElement | Element): void; | ||
private showHideItem(obj, isHide, display); | ||
private showHideItem; | ||
/** | ||
@@ -456,3 +456,3 @@ * It adds new item to current ListView. | ||
}[], fields?: Fields): void; | ||
private addListItem(dataSource, index); | ||
private addListItem; | ||
/** | ||
@@ -463,3 +463,3 @@ * A function that removes the item from data source based on passed element like fields: { text: 'Name', tooltip: 'Name', id:'id'} | ||
removeItem(obj: Fields | HTMLElement | Element): void; | ||
private removeItemFromList(obj); | ||
private removeItemFromList; | ||
/** | ||
@@ -466,0 +466,0 @@ * A function that removes multiple item from list view based on given input. |
@@ -36,11 +36,11 @@ import { ListView, ItemCreatedArgs, Fields, UISelectedItem } from './list-view'; | ||
wireScrollEvent(destroy: boolean): void; | ||
private ValidateItemCount(dataSourceLength); | ||
private uiIndicesInitialization(); | ||
private getscrollerHeight(); | ||
private onVirtualUiScroll(); | ||
private onLongScroll(listDiff, isScrollingDown); | ||
private onNormalScroll(listDiff, isScrollingDown); | ||
private updateUiContent(element, index); | ||
private changeElementAttributes(element, index); | ||
private findDSAndIndexFromId(ds, fields); | ||
private ValidateItemCount; | ||
private uiIndicesInitialization; | ||
private getscrollerHeight; | ||
private onVirtualUiScroll; | ||
private onLongScroll; | ||
private onNormalScroll; | ||
private updateUiContent; | ||
private changeElementAttributes; | ||
private findDSAndIndexFromId; | ||
getSelectedItems(): UISelectedItem; | ||
@@ -56,5 +56,5 @@ selectItem(obj: Fields | HTMLElement | Element): void; | ||
checkedItem(checked: boolean): void; | ||
private addUiItem(index); | ||
private removeUiItem(index); | ||
private changeUiIndices(index, increment); | ||
private addUiItem; | ||
private removeUiItem; | ||
private changeUiIndices; | ||
addItem(data: { | ||
@@ -64,13 +64,13 @@ [key: string]: Object; | ||
createUIItem(args: ItemCreatedArgs): void; | ||
private compileTemplate(element, item, isHeader); | ||
private onChange(newData, listElement); | ||
private updateContextData(listElement, node, isHeader); | ||
private classProperty(element, listElement, isHeader); | ||
private attributeProperty(element, listElement, isHeader); | ||
private textProperty(element, listElement, isHeader); | ||
private compileTemplate; | ||
private onChange; | ||
private updateContextData; | ||
private classProperty; | ||
private attributeProperty; | ||
private textProperty; | ||
reRenderUiVirtualization(): void; | ||
private updateUI(element, index, targetElement?); | ||
private onNgChange(newData, listElement); | ||
private updateUI; | ||
private onNgChange; | ||
getModuleName(): string; | ||
destroy(): void; | ||
} |
@@ -87,2 +87,3 @@ import { classNames } from './list-view'; | ||
Virtualization.prototype.onVirtualUiScroll = function () { | ||
var _a; | ||
if (isNullOrUndefined(this.startingHeight)) { | ||
@@ -130,3 +131,2 @@ if (this.listViewInstance.isWindow) { | ||
this.scrollPosition = scroll; | ||
var _a; | ||
}; | ||
@@ -133,0 +133,0 @@ Virtualization.prototype.onLongScroll = function (listDiff, isScrollingDown) { |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1777947
14800