@syncfusion/ej2-lists 19.3.45 → 19.4.48
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/.github/PULL_REQUEST_TEMPLATE/Bug.md +68 -0
- package/.github/PULL_REQUEST_TEMPLATE/Changelog.md +25 -0
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +31 -0
- package/CHANGELOG.md +1 -7
- package/README.md +1 -1
- package/dist/ej2-lists.umd.min.js +2 -2
- package/dist/ej2-lists.umd.min.js.map +1 -1
- package/dist/es6/ej2-lists.es2015.js +7 -6
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +7 -6
- package/dist/es6/ej2-lists.es5.js.map +1 -1
- package/dist/global/ej2-lists.min.js +2 -2
- package/dist/global/ej2-lists.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/common/list-base.js +7 -6
- package/styles/list-view/_fluent-definition.scss +134 -0
- package/styles/list-view/_layout.scss +69 -5
- package/styles/list-view/_theme.scss +15 -5
- package/styles/list-view/icons/_fluent.scss +8 -0
|
@@ -213,7 +213,8 @@ var ListBase;
|
|
|
213
213
|
options, level, isSingleLevel, componentInstance) {
|
|
214
214
|
var curOpt = extend({}, defaultListBaseOptions, options);
|
|
215
215
|
cssClass = getModuleClass(curOpt.moduleName);
|
|
216
|
-
var fields =
|
|
216
|
+
var fields = (componentInstance &&
|
|
217
|
+
(componentInstance.getModuleName() == "listview" || componentInstance.getModuleName() == "multiselect")) ? curOpt.fields : extend({}, ListBase.defaultMappedFields, curOpt.fields);
|
|
217
218
|
var ariaAttributes = extend({}, defaultAriaAttributes, curOpt.ariaAttributes);
|
|
218
219
|
var id;
|
|
219
220
|
var checkboxElement = [];
|
|
@@ -635,7 +636,7 @@ var ListBase;
|
|
|
635
636
|
else {
|
|
636
637
|
var currentID = isHeader ? curOpt.groupTemplateID : curOpt.templateID;
|
|
637
638
|
if (isHeader) {
|
|
638
|
-
if (componentInstance && componentInstance.getModuleName()
|
|
639
|
+
if (componentInstance && componentInstance.getModuleName() != "listview") {
|
|
639
640
|
// eslint-disable-next-line
|
|
640
641
|
var compiledElement = compiledString(curItem, componentInstance, 'headerTemplate', currentID, !!curOpt.isStringTemplate, null, li);
|
|
641
642
|
if (compiledElement) {
|
|
@@ -647,7 +648,7 @@ var ListBase;
|
|
|
647
648
|
}
|
|
648
649
|
}
|
|
649
650
|
else {
|
|
650
|
-
if (componentInstance && componentInstance.getModuleName()
|
|
651
|
+
if (componentInstance && componentInstance.getModuleName() != "listview") {
|
|
651
652
|
// eslint-disable-next-line
|
|
652
653
|
var compiledElement = compiledString(curItem, componentInstance, 'template', currentID, !!curOpt.isStringTemplate, null, li);
|
|
653
654
|
if (compiledElement) {
|
|
@@ -703,7 +704,7 @@ var ListBase;
|
|
|
703
704
|
var headerData = {};
|
|
704
705
|
headerData[category] = header.textContent;
|
|
705
706
|
header.innerHTML = '';
|
|
706
|
-
if (componentInstance && componentInstance.getModuleName()
|
|
707
|
+
if (componentInstance && componentInstance.getModuleName() != "listview") {
|
|
707
708
|
// eslint-disable-next-line
|
|
708
709
|
var compiledElement = compiledString(headerData, componentInstance, 'groupTemplate', curOpt.groupTemplateID, !!curOpt.isStringTemplate, null, header);
|
|
709
710
|
if (compiledElement) {
|
|
@@ -887,7 +888,7 @@ var ListBase;
|
|
|
887
888
|
if (grpLI && options && options.groupTemplate) {
|
|
888
889
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
889
890
|
var compiledString = compileTemplate(options.groupTemplate);
|
|
890
|
-
if (componentInstance && componentInstance.getModuleName()
|
|
891
|
+
if (componentInstance && componentInstance.getModuleName() != "listview") {
|
|
891
892
|
// eslint-disable-next-line
|
|
892
893
|
var compiledElement = compiledString(item, componentInstance, 'groupTemplate', curOpt.groupTemplateID, !!curOpt.isStringTemplate, null, li);
|
|
893
894
|
if (compiledElement) {
|
|
@@ -901,7 +902,7 @@ var ListBase;
|
|
|
901
902
|
else if (!grpLI && options && options.template) {
|
|
902
903
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
903
904
|
var compiledString = compileTemplate(options.template);
|
|
904
|
-
if (componentInstance && componentInstance.getModuleName()
|
|
905
|
+
if (componentInstance && componentInstance.getModuleName() != "listview") {
|
|
905
906
|
// eslint-disable-next-line
|
|
906
907
|
var compiledElement = compiledString(item, componentInstance, 'template', curOpt.templateID, !!curOpt.isStringTemplate, null, li);
|
|
907
908
|
if (compiledElement) {
|