survey-analytics 2.5.10 → 2.5.11

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/fesm/shared.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.5.10
2
+ * surveyjs - SurveyJS Dashboard library v2.5.11
3
3
  * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -229,7 +229,9 @@ class DocumentHelper {
229
229
  }
230
230
  static createElement(tagName, className = "", attrs) {
231
231
  var el = document.createElement(tagName);
232
- el.className = className;
232
+ if (!!className) {
233
+ el.className = className;
234
+ }
233
235
  if (!!attrs) {
234
236
  Object.keys(attrs).forEach(function (key) {
235
237
  el[key] = attrs[key];
@@ -362,12 +364,15 @@ class DataHelper {
362
364
  }
363
365
  function createLinksContainer(links) {
364
366
  const linksContainer = DocumentHelper.createElement("div");
365
- links.forEach((link) => {
367
+ links.forEach((link, index) => {
366
368
  linksContainer.appendChild(DocumentHelper.createElement("a", "", {
367
369
  innerText: link.name,
368
370
  download: link.name,
369
371
  href: link.content,
370
372
  }));
373
+ if (index < links.length - 1) {
374
+ linksContainer.appendChild(DocumentHelper.createElement("br"));
375
+ }
371
376
  });
372
377
  return linksContainer;
373
378
  }