survey-analytics 1.12.59 → 1.12.60

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.7
2
+ * surveyjs - SurveyJS Dashboard library v2.5.14
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
  }
@@ -2932,7 +2937,7 @@ var finnishStrings = {
2932
2937
  // [Auto-translated] "Chart"
2933
2938
  visualizer_boolean: "Kaavio",
2934
2939
  // [Auto-translated] "Table"
2935
- visualizer_options: "Pöytä",
2940
+ visualizer_options: "Taulukko",
2936
2941
  // "NPS"
2937
2942
  npsScore: "NPS",
2938
2943
  // "Promoters"
@@ -3216,5 +3221,5 @@ function getIconSymbolTemplate(iconId, iconSvg) {
3216
3221
  const iconsHtml = Object.keys(iconsData).map(iconId => getIconSymbolTemplate(iconId, iconsData[iconId]));
3217
3222
  const svgTemplate = `<svg style="display:none;">${iconsHtml}<svg>`;
3218
3223
 
3219
- export { DocumentHelper as D, setupLocale as a, DataHelper as b, createImagesContainer as c, createLinksContainer as d, createCommercialLicenseLink as e, svgTemplate as f, createLoadingIndicator as g, localization as l, surveyStrings as s, toPrecision as t };
3224
+ export { DocumentHelper as D, surveyStrings as a, DataHelper as b, createImagesContainer as c, createLinksContainer as d, createCommercialLicenseLink as e, svgTemplate as f, createLoadingIndicator as g, localization as l, setupLocale as s, toPrecision as t };
3220
3225
  //# sourceMappingURL=shared.mjs.map