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.
@@ -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: SEE LICENSE IN LICENSE
5
5
  */
@@ -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: SEE LICENSE IN LICENSE
5
5
  */
@@ -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: SEE LICENSE IN LICENSE
5
5
  */
@@ -15256,7 +15256,9 @@ var DocumentHelper = /** @class */ (function () {
15256
15256
  DocumentHelper.createElement = function (tagName, className, attrs) {
15257
15257
  if (className === void 0) { className = ""; }
15258
15258
  var el = document.createElement(tagName);
15259
- el.className = className;
15259
+ if (!!className) {
15260
+ el.className = className;
15261
+ }
15260
15262
  if (!!attrs) {
15261
15263
  Object.keys(attrs).forEach(function (key) {
15262
15264
  el[key] = attrs[key];
@@ -15401,12 +15403,15 @@ var DataHelper = /** @class */ (function () {
15401
15403
 
15402
15404
  function createLinksContainer(links) {
15403
15405
  var linksContainer = DocumentHelper.createElement("div");
15404
- links.forEach(function (link) {
15406
+ links.forEach(function (link, index) {
15405
15407
  linksContainer.appendChild(DocumentHelper.createElement("a", "", {
15406
15408
  innerText: link.name,
15407
15409
  download: link.name,
15408
15410
  href: link.content,
15409
15411
  }));
15412
+ if (index < links.length - 1) {
15413
+ linksContainer.appendChild(DocumentHelper.createElement("br"));
15414
+ }
15410
15415
  });
15411
15416
  return linksContainer;
15412
15417
  }
@@ -15608,6 +15613,8 @@ __webpack_require__.r(__webpack_exports__);
15608
15613
 
15609
15614
 
15610
15615
  function isChoicesArraysEqual(choices1, choices2) {
15616
+ if (choices1 === undefined || choices2 === undefined)
15617
+ return false;
15611
15618
  if (choices1.length !== choices2.length)
15612
15619
  return false;
15613
15620
  for (var i = 0; i < choices1.length; i++) {