@syncfusion/ej2-lists
Advanced tools
Comparing version 17.2.28-beta to 17.2.29-beta
@@ -1,10 +0,1 @@ | ||
/*! | ||
* filename: index.d.ts | ||
* version : 17.2.28-beta | ||
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved. | ||
* Use of this code is subject to the terms of our license. | ||
* A copy of the current license can be obtained at any time by e-mailing | ||
* licensing@syncfusion.com. Any infringement will be prosecuted under | ||
* applicable laws. | ||
*/ | ||
import * as _lists from '@syncfusion/ej2-lists'; | ||
@@ -11,0 +2,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"_inBundle": false, | ||
"_integrity": "sha512-QNaoXyAhjeugw7IGgutSM8TGlfO+sBCRvrpLoa+Hq/gYXDYFc+czFw5TVNT/hTtsQ/e5Q41J9zRX9fdxvm8g2A==", | ||
"_integrity": "sha512-nrSLlaUMAm1oxJmqw1iF0bopmBxtrhY/1WI5DuIVZK2zJSK1AtVEYgPC0QfX1pPSKJ1X8DdsggmYt97qn5lehQ==", | ||
"_location": "/@syncfusion/ej2-lists", | ||
@@ -37,4 +37,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-lists/-/ej2-lists-17.1.1.tgz", | ||
"_shasum": "7804b136c07abaf921183757ba568432832205a4", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-production/@syncfusion/ej2-lists/-/ej2-lists-17.1.1.tgz", | ||
"_shasum": "9e5b84aa3cf40c2180ce363d1b68fa37428dde06", | ||
"_spec": "@syncfusion/ej2-lists@*", | ||
@@ -47,5 +47,5 @@ "_where": "/jenkins/workspace/ation_hotfix_16.4.0.42_Vol4-CJVRBFC7Z7RSISPRJNEMNQSRMCB6XTG67IJD6R2DVNXFIKQEITTQ/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~17.2.28-beta", | ||
"@syncfusion/ej2-buttons": "~17.2.28-beta", | ||
"@syncfusion/ej2-data": "~17.2.28-beta" | ||
"@syncfusion/ej2-base": "17.2.29-beta", | ||
"@syncfusion/ej2-buttons": "17.2.29-beta", | ||
"@syncfusion/ej2-data": "17.2.29-beta" | ||
}, | ||
@@ -89,4 +89,5 @@ "deprecated": false, | ||
}, | ||
"version": "17.2.28-beta", | ||
"typings": "index.d.ts", | ||
"version": "17.2.29-beta", | ||
"sideEffects": false | ||
} |
@@ -270,2 +270,6 @@ import { Query } from '@syncfusion/ej2-data'; | ||
groupTemplateID?: string; | ||
/** | ||
* Force template compiler to compile as string template | ||
*/ | ||
isStringTemplate?: string; | ||
} | ||
@@ -272,0 +276,0 @@ /** |
@@ -487,3 +487,3 @@ import { extend, merge, isNullOrUndefined, getValue } from '@syncfusion/ej2-base'; | ||
var currentID = isHeader ? curOpt.groupTemplateID : curOpt.templateID; | ||
append(compiledString(curItem, null, null, currentID), li); | ||
append(compiledString(curItem, null, null, currentID, !!curOpt.isStringTemplate), li); | ||
li.setAttribute('data-value', value); | ||
@@ -526,3 +526,3 @@ li.setAttribute('role', 'option'); | ||
header.innerHTML = ''; | ||
append(compiledString(headerData, null, null, curOpt.groupTemplateID), header); | ||
append(compiledString(headerData, null, null, curOpt.groupTemplateID, !!curOpt.isStringTemplate), header); | ||
} | ||
@@ -667,7 +667,7 @@ return headerItems; | ||
var compiledString = compile(options.groupTemplate); | ||
append(compiledString(item, null, null, curOpt.groupTemplateID), li); | ||
append(compiledString(item, null, null, curOpt.groupTemplateID, !!curOpt.isStringTemplate), li); | ||
} | ||
else if (!grpLI && options && options.template) { | ||
var compiledString = compile(options.template); | ||
append(compiledString(item, null, null, curOpt.templateID), li); | ||
append(compiledString(item, null, null, curOpt.templateID, !!curOpt.isStringTemplate), li); | ||
} | ||
@@ -674,0 +674,0 @@ else { |
@@ -1,2 +0,2 @@ | ||
import { Virtualization } from './virtualization';import { merge, formatUnit, isNullOrUndefined, append, detach, ModuleDeclaration } from '@syncfusion/ej2-base';import { attributes, addClass, removeClass, prepend, closest, remove } from '@syncfusion/ej2-base';import { Component, EventHandler, BaseEventArgs, Property, Complex, Event } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty } from '@syncfusion/ej2-base';import { KeyboardEventArgs, EmitType, compile } from '@syncfusion/ej2-base';import { Animation, AnimationOptions, Effect, rippleEffect, Touch, SwipeEventArgs } from '@syncfusion/ej2-base';import { DataManager, Query } from '@syncfusion/ej2-data';import { createCheckBox } from '@syncfusion/ej2-buttons';import { ListBase, ListBaseOptions, SortOrder, getFieldValues, FieldsMapping } from '../common/list-base';import { updateBlazorTemplate, resetBlazorTemplate } from '@syncfusion/ej2-base'; | ||
import { Virtualization } from './virtualization';import { merge, formatUnit, isNullOrUndefined, append, detach, ModuleDeclaration, isBlazor } from '@syncfusion/ej2-base';import { attributes, addClass, removeClass, prepend, closest, remove } from '@syncfusion/ej2-base';import { Component, EventHandler, BaseEventArgs, Property, Complex, Event } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty } from '@syncfusion/ej2-base';import { KeyboardEventArgs, EmitType, compile } from '@syncfusion/ej2-base';import { Animation, AnimationOptions, Effect, rippleEffect, Touch, SwipeEventArgs } from '@syncfusion/ej2-base';import { DataManager, Query } from '@syncfusion/ej2-data';import { createCheckBox } from '@syncfusion/ej2-buttons';import { ListBase, ListBaseOptions, SortOrder, getFieldValues, FieldsMapping } from '../common/list-base';import { updateBlazorTemplate, resetBlazorTemplate } from '@syncfusion/ej2-base'; | ||
import {AnimationSettings,checkBoxPosition,SelectEventArgs} from "./list-view"; | ||
@@ -114,3 +114,3 @@ import {ComponentModel} from '@syncfusion/ej2-base'; | ||
* with the fields of ListView. | ||
* | ||
* @isGenericType true | ||
* {% codeBlock src="listview/datasource-api/index.ts" %}{% endcodeBlock %} | ||
@@ -117,0 +117,0 @@ * @default [] |
@@ -179,3 +179,3 @@ import { Virtualization } from './virtualization'; | ||
* with the fields of ListView. | ||
* | ||
* @isGenericType true | ||
* {% codeBlock src="listview/datasource-api/index.ts" %}{% endcodeBlock %} | ||
@@ -319,2 +319,5 @@ * @default [] | ||
constructor(options?: ListViewModel, element?: string | HTMLElement); | ||
/** | ||
* @private | ||
*/ | ||
onPropertyChanged(newProp: ListViewModel, oldProp: ListViewModel): void; | ||
@@ -424,7 +427,11 @@ private setHTMLAttribute; | ||
* item details from the list items. | ||
* @blazorType ListSelectedItem<TValue> | ||
*/ | ||
getSelectedItems(): SelectedItem | SelectedCollection | UISelectedItem | NestedListData; | ||
private blazorGetSelectedItems; | ||
private convertItemsToArray; | ||
/** | ||
* It is used to find out an item details from the current list. | ||
* @param {Fields | HTMLElement | Element} obj - We can pass element Object or Fields as Object with ID and Text fields. | ||
* @blazorType TValue | ||
*/ | ||
@@ -514,2 +521,24 @@ findItem(obj: Fields | HTMLElement | Element): SelectedItem; | ||
} | ||
export interface ListSelectedItem { | ||
/** | ||
* Selected Item dataSource collection. | ||
* @isGenericType true | ||
* @blazorType List<T> | ||
*/ | ||
data?: object[]; | ||
/** | ||
* Selected Item text collection. | ||
*/ | ||
text?: string[]; | ||
/** | ||
* Index of the selected element. | ||
* Available only in virtualization. | ||
*/ | ||
index?: number[]; | ||
/** | ||
* Hierarchical Parent Id collection of the current view. | ||
* Available only in nested list with Checkbox enabled. | ||
*/ | ||
parentId?: string[]; | ||
} | ||
export interface SelectedItem { | ||
@@ -526,2 +555,3 @@ /** | ||
* It denotes the Selected Item dataSource JSON object. | ||
* @isGenericType true | ||
*/ | ||
@@ -543,2 +573,3 @@ data: { | ||
* It denotes the Selected Item dataSource JSON object or object collection. | ||
* @isGenericType true | ||
*/ | ||
@@ -562,2 +593,3 @@ data: { | ||
* It denotes the Selected Item dataSource JSON object or object collection. | ||
* @isGenericType true | ||
*/ | ||
@@ -581,2 +613,3 @@ data: { | ||
* It denotes the Selected Item dataSource JSON object or object collection. | ||
* @isGenericType true | ||
*/ | ||
@@ -583,0 +616,0 @@ data: { |
import { classNames } from './list-view'; | ||
import { EventHandler, append, isNullOrUndefined, detach, removeClass, addClass, compile } from '@syncfusion/ej2-base'; | ||
import { ListBase } from '../common/list-base'; | ||
import { DataManager } from '@syncfusion/ej2-data'; | ||
var Virtualization = /** @class */ (function () { | ||
@@ -331,2 +332,4 @@ function Virtualization(instance) { | ||
}); | ||
var dataSource_1 = this.listViewInstance.dataSource instanceof DataManager | ||
? curViewDS_2 : this.listViewInstance.dataSource; | ||
return { | ||
@@ -336,3 +339,3 @@ text: textCollection_1, | ||
index: this.uiIndices.activeIndices.map(function (index) { | ||
return (_this.listViewInstance.dataSource).indexOf(curViewDS_2[index]); | ||
return dataSource_1.indexOf(curViewDS_2[index]); | ||
}) | ||
@@ -342,6 +345,8 @@ }; | ||
else { | ||
var dataSource = this.listViewInstance.dataSource instanceof DataManager | ||
? curViewDS_2 : this.listViewInstance.dataSource; | ||
return { | ||
text: curViewDS_2[this.activeIndex][this.listViewInstance.fields.text], | ||
data: curViewDS_2[this.activeIndex], | ||
index: this.listViewInstance.dataSource.indexOf(curViewDS_2[this.activeIndex]) | ||
index: dataSource.indexOf(curViewDS_2[this.activeIndex]) | ||
}; | ||
@@ -692,2 +697,3 @@ } | ||
template.innerHTML = this.listViewInstance.template || commonTemplate; | ||
// tslint:disable-next-line:no-any | ||
var templateElements = template.getElementsByTagName('*'); | ||
@@ -698,2 +704,3 @@ var groupTemplate = this.listViewInstance.createElement('div'); | ||
} | ||
// tslint:disable-next-line:no-any | ||
var groupTemplateElements = groupTemplate.getElementsByTagName('*'); | ||
@@ -922,7 +929,6 @@ if (args.curData.isHeader) { | ||
this.listViewInstance.preRender(); | ||
this.listViewInstance.localData = this.listViewInstance.dataSource; | ||
// resetting the dom count to 0, to avoid edge case of dataSource suddenly becoming zero | ||
// and then manually adding item using addItem API | ||
this.domItemCount = 0; | ||
this.listViewInstance.renderList(); | ||
this.listViewInstance.setLocalData(); | ||
}; | ||
@@ -929,0 +935,0 @@ Virtualization.prototype.updateUI = function (element, index, targetElement) { |
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
2209543
21088
+ Added@syncfusion/ej2-base@17.2.29-beta(transitive)
+ Added@syncfusion/ej2-buttons@17.2.29-beta(transitive)
+ Added@syncfusion/ej2-data@17.2.29-beta(transitive)
+ Added@syncfusion/ej2-icons@17.2.29-beta(transitive)
- Removed@syncfusion/ej2-base@17.2.49(transitive)
- Removed@syncfusion/ej2-buttons@17.2.47(transitive)
- Removed@syncfusion/ej2-data@17.2.47(transitive)
- Removed@syncfusion/ej2-icons@17.2.47(transitive)