@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
  const curOpt = extend({}, defaultListBaseOptions, options);
215
215
  cssClass = getModuleClass(curOpt.moduleName);
216
- const fields = extend({}, ListBase.defaultMappedFields, curOpt.fields);
216
+ const fields = (componentInstance &&
217
+ (componentInstance.getModuleName() == "listview" || componentInstance.getModuleName() == "multiselect")) ? curOpt.fields : extend({}, ListBase.defaultMappedFields, curOpt.fields);
217
218
  const ariaAttributes = extend({}, defaultAriaAttributes, curOpt.ariaAttributes);
218
219
  let id;
219
220
  let checkboxElement = [];
@@ -633,7 +634,7 @@ var ListBase;
633
634
  else {
634
635
  const currentID = isHeader ? curOpt.groupTemplateID : curOpt.templateID;
635
636
  if (isHeader) {
636
- if (componentInstance && componentInstance.getModuleName() !== 'listview') {
637
+ if (componentInstance && componentInstance.getModuleName() != "listview") {
637
638
  // eslint-disable-next-line
638
639
  const compiledElement = compiledString(curItem, componentInstance, 'headerTemplate', currentID, !!curOpt.isStringTemplate, null, li);
639
640
  if (compiledElement) {
@@ -645,7 +646,7 @@ var ListBase;
645
646
  }
646
647
  }
647
648
  else {
648
- if (componentInstance && componentInstance.getModuleName() !== 'listview') {
649
+ if (componentInstance && componentInstance.getModuleName() != "listview") {
649
650
  // eslint-disable-next-line
650
651
  const compiledElement = compiledString(curItem, componentInstance, 'template', currentID, !!curOpt.isStringTemplate, null, li);
651
652
  if (compiledElement) {
@@ -700,7 +701,7 @@ var ListBase;
700
701
  const headerData = {};
701
702
  headerData[category] = header.textContent;
702
703
  header.innerHTML = '';
703
- if (componentInstance && componentInstance.getModuleName() !== 'listview') {
704
+ if (componentInstance && componentInstance.getModuleName() != "listview") {
704
705
  // eslint-disable-next-line
705
706
  const compiledElement = compiledString(headerData, componentInstance, 'groupTemplate', curOpt.groupTemplateID, !!curOpt.isStringTemplate, null, header);
706
707
  if (compiledElement) {
@@ -884,7 +885,7 @@ var ListBase;
884
885
  if (grpLI && options && options.groupTemplate) {
885
886
  // eslint-disable-next-line @typescript-eslint/ban-types
886
887
  const compiledString = compileTemplate(options.groupTemplate);
887
- if (componentInstance && componentInstance.getModuleName() !== 'listview') {
888
+ if (componentInstance && componentInstance.getModuleName() != "listview") {
888
889
  // eslint-disable-next-line
889
890
  const compiledElement = compiledString(item, componentInstance, 'groupTemplate', curOpt.groupTemplateID, !!curOpt.isStringTemplate, null, li);
890
891
  if (compiledElement) {
@@ -898,7 +899,7 @@ var ListBase;
898
899
  else if (!grpLI && options && options.template) {
899
900
  // eslint-disable-next-line @typescript-eslint/ban-types
900
901
  const compiledString = compileTemplate(options.template);
901
- if (componentInstance && componentInstance.getModuleName() !== 'listview') {
902
+ if (componentInstance && componentInstance.getModuleName() != "listview") {
902
903
  // eslint-disable-next-line
903
904
  const compiledElement = compiledString(item, componentInstance, 'template', curOpt.templateID, !!curOpt.isStringTemplate, null, li);
904
905
  if (compiledElement) {