survey-analytics 2.3.14 → 2.3.16

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/README.md CHANGED
@@ -5,8 +5,8 @@
5
5
 
6
6
 
7
7
  [![Build Status](https://dev.azure.com/SurveyJS/SurveyJS%20Integration%20Tests/_apis/build/status/SurveyJS%20Library?branchName=master)](https://dev.azure.com/SurveyJS/SurveyJS%20Integration%20Tests/_build/latest?definitionId=7&branchName=master)
8
- <a href="https://github.com/DevExpress/testcafe">
9
- <img alt="Tested with TestCafe" src="https://img.shields.io/badge/tested%20with-TestCafe-2fa4cf.svg">
8
+ <a href="https://github.com/microsoft/playwright">
9
+ <img alt="Tested with Playwright" src="https://img.shields.io/badge/tested%20with-Playwright-2fa4cf.svg">
10
10
  </a>
11
11
  <a href="https://github.com/surveyjs/survey-analytics/issues">
12
12
  <img alt="Open Issues" title="Open Issues" src="https://img.shields.io/github/issues/surveyjs/survey-analytics.svg">
package/fesm/shared.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.3.14
2
+ * surveyjs - SurveyJS Dashboard library v2.3.16
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/fesm/shared2.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.3.14
2
+ * surveyjs - SurveyJS Dashboard library v2.3.16
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.3.14
2
+ * surveyjs - SurveyJS Dashboard library v2.3.16
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.3.14
2
+ * surveyjs - SurveyJS Dashboard library v2.3.16
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -598,14 +598,14 @@ class RankingPlotly extends RankingModel {
598
598
  }
599
599
 
600
600
  const plotlyChartTypes = {
601
- "boolean": BooleanPlotly.types,
602
- "number": GaugePlotly.types,
603
- "selectBase": SelectBasePlotly.types,
604
- "histogram": HistogramPlotly.types,
605
- "matrix": MatrixPlotly.types,
606
- "matrixDropdownGrouped": MatrixDropdownGroupedPlotly.types,
607
- "pivot": PivotPlotly.types,
608
- "ranking": [].concat(SelectBasePlotly.types).concat(["radar"]),
601
+ "boolean": () => BooleanPlotly.types,
602
+ "number": () => GaugePlotly.types,
603
+ "selectBase": () => SelectBasePlotly.types,
604
+ "histogram": () => HistogramPlotly.types,
605
+ "matrix": () => MatrixPlotly.types,
606
+ "matrixDropdownGrouped": () => MatrixDropdownGroupedPlotly.types,
607
+ "pivot": () => PivotPlotly.types,
608
+ "ranking": () => [].concat(SelectBasePlotly.types).concat(["radar"]),
609
609
  };
610
610
  class PlotlyChartAdapter {
611
611
  constructor(model) {
@@ -651,8 +651,11 @@ class PlotlyChartAdapter {
651
651
  }
652
652
  getChartTypes() {
653
653
  const visualizerType = this.model.type;
654
- const chartCtypes = plotlyChartTypes[visualizerType];
655
- return chartCtypes || [];
654
+ let chartCtypes = [];
655
+ if (plotlyChartTypes[visualizerType]) {
656
+ chartCtypes = plotlyChartTypes[visualizerType]();
657
+ }
658
+ return chartCtypes;
656
659
  }
657
660
  create(chartNode) {
658
661
  return __awaiter(this, void 0, void 0, function* () {