survey-analytics 2.2.4 → 2.2.5

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.
Files changed (37) hide show
  1. package/fesm/shared.mjs +2 -1
  2. package/fesm/shared.mjs.map +1 -1
  3. package/fesm/shared2.mjs +108 -102
  4. package/fesm/shared2.mjs.map +1 -1
  5. package/fesm/survey.analytics.core.mjs +2 -2
  6. package/fesm/survey.analytics.mjs +16 -26
  7. package/fesm/survey.analytics.mjs.map +1 -1
  8. package/fesm/survey.analytics.tabulator.mjs +16 -4
  9. package/fesm/survey.analytics.tabulator.mjs.map +1 -1
  10. package/package.json +6 -5
  11. package/survey-analytics-tabulator.types/analytics-localization/english.d.ts +1 -0
  12. package/survey-analytics-tabulator.types/localizationManager.d.ts +1 -0
  13. package/survey-analytics-tabulator.types/tables/extensions/tableextensions.d.ts +1 -0
  14. package/survey-analytics.types/analytics-localization/english.d.ts +1 -0
  15. package/survey-analytics.types/localizationManager.d.ts +1 -0
  16. package/survey-analytics.types/plotly/chart-adapter.d.ts +9 -0
  17. package/survey-analytics.types/statisticCalculators.d.ts +4 -0
  18. package/survey-analytics.types/visualizationManager.d.ts +1 -0
  19. package/survey-analytics.types/visualizerBase.d.ts +1 -3
  20. package/survey.analytics.core.css +1 -1
  21. package/survey.analytics.core.js +179 -130
  22. package/survey.analytics.core.js.map +1 -1
  23. package/survey.analytics.core.min.css +1 -1
  24. package/survey.analytics.core.min.js +1 -1
  25. package/survey.analytics.core.min.js.LICENSE.txt +1 -1
  26. package/survey.analytics.css +1 -1
  27. package/survey.analytics.js +198 -157
  28. package/survey.analytics.js.map +1 -1
  29. package/survey.analytics.min.css +1 -1
  30. package/survey.analytics.min.js +1 -1
  31. package/survey.analytics.min.js.LICENSE.txt +1 -1
  32. package/survey.analytics.tabulator.css +1 -1
  33. package/survey.analytics.tabulator.js +39 -5
  34. package/survey.analytics.tabulator.js.map +1 -1
  35. package/survey.analytics.tabulator.min.css +1 -1
  36. package/survey.analytics.tabulator.min.js +1 -1
  37. package/survey.analytics.tabulator.min.js.LICENSE.txt +1 -1
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.2.4
2
+ * surveyjs - SurveyJS Dashboard library v2.2.5
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
  */
6
6
 
7
7
  export { D as DocumentHelper, l as localization, s as surveyStrings } from './shared.mjs';
8
- export { A as AlternativeVisualizersWrapper, B as BooleanModel, D as DataProvider, H as HistogramModel, M as Matrix, n as NpsAdapter, o as NpsVisualizer, m as NpsVisualizerWidget, N as NumberModel, p as PivotModel, P as PostponeHelper, R as RankingModel, S as SelectBase, l as StatisticsTable, k as StatisticsTableAdapter, j as Text, T as TextTableAdapter, b as VisualizationManager, g as VisualizationMatrixDropdown, f as VisualizationMatrixDynamic, c as VisualizationPanel, e as VisualizationPanelDynamic, a as VisualizerBase, V as VisualizerFactory, i as WordCloud, W as WordCloudAdapter, d as defaultStatisticsCalculator, h as hideEmptyAnswersInData, t as textHelper } from './shared2.mjs';
8
+ export { A as AlternativeVisualizersWrapper, B as BooleanModel, D as DataProvider, H as HistogramModel, M as Matrix, m as NpsAdapter, n as NpsVisualizer, l as NpsVisualizerWidget, N as NumberModel, o as PivotModel, P as PostponeHelper, R as RankingModel, S as SelectBase, k as StatisticsTable, j as StatisticsTableAdapter, i as Text, T as TextTableAdapter, b as VisualizationManager, f as VisualizationMatrixDropdown, e as VisualizationMatrixDynamic, c as VisualizationPanel, d as VisualizationPanelDynamic, a as VisualizerBase, V as VisualizerFactory, g as WordCloud, W as WordCloudAdapter, h as hideEmptyAnswersInData, t as textHelper } from './shared2.mjs';
9
9
  import 'survey-core';
10
10
  //# sourceMappingURL=survey.analytics.core.mjs.map
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.2.4
2
+ * surveyjs - SurveyJS Dashboard library v2.2.5
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
  */
@@ -7,8 +7,8 @@
7
7
  import { Event, ItemValue } from 'survey-core';
8
8
  import { l as localization, a as DataHelper } from './shared.mjs';
9
9
  export { D as DocumentHelper, s as surveyStrings } from './shared.mjs';
10
- import { N as NumberModel, b as VisualizationManager, S as SelectBase, d as defaultStatisticsCalculator, B as BooleanModel, H as HistogramModel, M as Matrix, p as PivotModel, R as RankingModel, a as VisualizerBase, _ as __awaiter } from './shared2.mjs';
11
- export { A as AlternativeVisualizersWrapper, D as DataProvider, n as NpsAdapter, o as NpsVisualizer, m as NpsVisualizerWidget, P as PostponeHelper, l as StatisticsTable, k as StatisticsTableAdapter, j as Text, T as TextTableAdapter, g as VisualizationMatrixDropdown, f as VisualizationMatrixDynamic, c as VisualizationPanel, e as VisualizationPanelDynamic, V as VisualizerFactory, i as WordCloud, W as WordCloudAdapter, h as hideEmptyAnswersInData, t as textHelper } from './shared2.mjs';
10
+ import { N as NumberModel, b as VisualizationManager, S as SelectBase, p as defaultStatisticsCalculator, B as BooleanModel, H as HistogramModel, M as Matrix, o as PivotModel, R as RankingModel, a as VisualizerBase, _ as __awaiter } from './shared2.mjs';
11
+ export { A as AlternativeVisualizersWrapper, D as DataProvider, m as NpsAdapter, n as NpsVisualizer, l as NpsVisualizerWidget, P as PostponeHelper, k as StatisticsTable, j as StatisticsTableAdapter, i as Text, T as TextTableAdapter, f as VisualizationMatrixDropdown, e as VisualizationMatrixDynamic, c as VisualizationPanel, d as VisualizationPanelDynamic, V as VisualizerFactory, g as WordCloud, W as WordCloudAdapter, h as hideEmptyAnswersInData, t as textHelper } from './shared2.mjs';
12
12
  import Plotly from 'plotly.js-dist-min';
13
13
 
14
14
  class PlotlySetup {
@@ -519,6 +519,15 @@ GaugePlotly.types = ["gauge", "bullet"];
519
519
  class RankingPlotly extends RankingModel {
520
520
  }
521
521
 
522
+ const plotlyChartTypes = {
523
+ "boolean": BooleanPlotly.types,
524
+ "number": GaugePlotly.types,
525
+ "selectBase": SelectBasePlotly.types,
526
+ "histogram": HistogramPlotly.types,
527
+ "matrix": MatrixPlotly.types,
528
+ "matrixDropdownGrouped": MatrixDropdownGroupedPlotly.types,
529
+ "pivot": PivotPlotly.types,
530
+ };
522
531
  class PlotlyChartAdapter {
523
532
  constructor(model) {
524
533
  this.model = model;
@@ -555,28 +564,8 @@ class PlotlyChartAdapter {
555
564
  }
556
565
  getChartTypes() {
557
566
  const visualizerType = this.model.type;
558
- if (visualizerType === "boolean") {
559
- return BooleanPlotly.types;
560
- }
561
- else if (visualizerType === "number") {
562
- return GaugePlotly.types;
563
- }
564
- else if (visualizerType === "selectBase") {
565
- return SelectBasePlotly.types;
566
- }
567
- else if (visualizerType === "histogram") {
568
- return HistogramPlotly.types;
569
- }
570
- else if (visualizerType === "matrix") {
571
- return MatrixPlotly.types;
572
- }
573
- else if (visualizerType === "matrixDropdownGrouped") {
574
- return MatrixDropdownGroupedPlotly.types;
575
- }
576
- else if (visualizerType === "pivot") {
577
- return PivotPlotly.types;
578
- }
579
- return [];
567
+ const chartCtypes = plotlyChartTypes[visualizerType];
568
+ return chartCtypes || [];
580
569
  }
581
570
  create(chartNode) {
582
571
  return __awaiter(this, void 0, void 0, function* () {
@@ -661,6 +650,7 @@ class PlotlyChartAdapter {
661
650
  let options = {
662
651
  traces: plotlyOptions.traces,
663
652
  layout: plotlyOptions.layout,
653
+ data: answersData,
664
654
  config: config,
665
655
  };
666
656
  PlotlySetup.onPlotCreating.fire(this.model, options);
@@ -677,5 +667,5 @@ class PlotlyChartAdapter {
677
667
  }
678
668
  VisualizerBase.chartAdapterType = PlotlyChartAdapter;
679
669
 
680
- export { BooleanModel, BooleanPlotly, GaugePlotly, HistogramModel, HistogramPlotly, Matrix, MatrixDropdownGroupedPlotly, MatrixPlotly, NumberModel, PivotModel, PivotPlotly, PlotlyChartAdapter, PlotlySetup, RankingModel, RankingPlotly, SelectBase, SelectBasePlotly, VisualizationManager, VisualizerBase, defaultStatisticsCalculator, localization };
670
+ export { BooleanModel, BooleanPlotly, GaugePlotly, HistogramModel, HistogramPlotly, Matrix, MatrixDropdownGroupedPlotly, MatrixPlotly, NumberModel, PivotModel, PivotPlotly, PlotlyChartAdapter, PlotlySetup, RankingModel, RankingPlotly, SelectBase, SelectBasePlotly, VisualizationManager, VisualizerBase, localization, plotlyChartTypes };
681
671
  //# sourceMappingURL=survey.analytics.mjs.map