@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.
@@ -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 = extend({}, ListBase.defaultMappedFields, curOpt.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() !== 'listview') {
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() !== 'listview') {
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() !== 'listview') {
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() !== 'listview') {
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() !== 'listview') {
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) {