survey-analytics 2.3.14 → 2.3.15

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.3.14
2
+ * surveyjs - SurveyJS Dashboard library v2.3.15
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.15
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/package.json CHANGED
@@ -10,6 +10,7 @@
10
10
  "doc:gen": "node doc_generator/lib_docgenerator.js src/index.ts",
11
11
  "doc:update": "chmod +x ./docupdate_npm.sh && ./docupdate_npm.sh",
12
12
  "watch:dev": "concurrently \"webpack --env buildType=dev --env emitStyles\" \"rollup -c -w\" ",
13
+ "build:all": "npm run build",
13
14
  "build": "webpack --env buildType=dev --env emitNonSourceFiles --env emitStyles && webpack --env buildType=prod --env emitStyles && rollup -c && npm run build:types",
14
15
  "build:types": "npm run build:types:core && npm run build:types:summary && npm run build:types:tabulator && npm run build:types:mongo",
15
16
  "build:types:core": "tsc --p tsconfig.summary.core.json && echo \"export * from './survey-analytics.types/entries/summary.core';\" >> build/survey.analytics.core.d.ts",
@@ -20,7 +21,7 @@
20
21
  "pre-push-check": "npm run lint && npm run test",
21
22
  "pwinst": "playwright install chromium"
22
23
  },
23
- "version": "2.3.14",
24
+ "version": "2.3.15",
24
25
  "name": "survey-analytics",
25
26
  "description": "SurveyJS analytics Library.",
26
27
  "main": "survey.analytics.js",
@@ -96,7 +97,7 @@
96
97
  "@types/mongodb": "^4.0.6",
97
98
  "@types/plotly.js-dist-min": "^2.3.0",
98
99
  "@types/tabulator-tables": "^6.2.3",
99
- "survey-core": "2.3.14"
100
+ "survey-core": "2.3.15"
100
101
  },
101
102
  "husky": {
102
103
  "hooks": {
@@ -1,14 +1,7 @@
1
1
  import { SelectBase } from "../selectBase";
2
2
  import { VisualizerBase, IChartAdapter } from "../visualizerBase";
3
3
  export declare const plotlyChartTypes: {
4
- boolean: string[];
5
- number: string[];
6
- selectBase: string[];
7
- histogram: string[];
8
- matrix: string[];
9
- matrixDropdownGrouped: string[];
10
- pivot: string[];
11
- ranking: any[];
4
+ [key: string]: () => Array<string>;
12
5
  };
13
6
  export declare class PlotlyChartAdapter implements IChartAdapter {
14
7
  protected model: SelectBase | VisualizerBase;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.3.14
2
+ * surveyjs - SurveyJS Dashboard library v2.3.15
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.15
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.15
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.15
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.15
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.15
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
  */
@@ -12738,14 +12738,14 @@ __webpack_require__.r(__webpack_exports__);
12738
12738
 
12739
12739
 
12740
12740
  var plotlyChartTypes = {
12741
- "boolean": _legacy__WEBPACK_IMPORTED_MODULE_8__.BooleanPlotly.types,
12742
- "number": _legacy__WEBPACK_IMPORTED_MODULE_8__.GaugePlotly.types,
12743
- "selectBase": _legacy__WEBPACK_IMPORTED_MODULE_8__.SelectBasePlotly.types,
12744
- "histogram": _legacy__WEBPACK_IMPORTED_MODULE_8__.HistogramPlotly.types,
12745
- "matrix": _legacy__WEBPACK_IMPORTED_MODULE_8__.MatrixPlotly.types,
12746
- "matrixDropdownGrouped": _legacy__WEBPACK_IMPORTED_MODULE_8__.MatrixDropdownGroupedPlotly.types,
12747
- "pivot": _legacy__WEBPACK_IMPORTED_MODULE_8__.PivotPlotly.types,
12748
- "ranking": [].concat(_legacy__WEBPACK_IMPORTED_MODULE_8__.SelectBasePlotly.types).concat(["radar"]),
12741
+ "boolean": function () { return _legacy__WEBPACK_IMPORTED_MODULE_8__.BooleanPlotly.types; },
12742
+ "number": function () { return _legacy__WEBPACK_IMPORTED_MODULE_8__.GaugePlotly.types; },
12743
+ "selectBase": function () { return _legacy__WEBPACK_IMPORTED_MODULE_8__.SelectBasePlotly.types; },
12744
+ "histogram": function () { return _legacy__WEBPACK_IMPORTED_MODULE_8__.HistogramPlotly.types; },
12745
+ "matrix": function () { return _legacy__WEBPACK_IMPORTED_MODULE_8__.MatrixPlotly.types; },
12746
+ "matrixDropdownGrouped": function () { return _legacy__WEBPACK_IMPORTED_MODULE_8__.MatrixDropdownGroupedPlotly.types; },
12747
+ "pivot": function () { return _legacy__WEBPACK_IMPORTED_MODULE_8__.PivotPlotly.types; },
12748
+ "ranking": function () { return [].concat(_legacy__WEBPACK_IMPORTED_MODULE_8__.SelectBasePlotly.types).concat(["radar"]); },
12749
12749
  };
12750
12750
  var PlotlyChartAdapter = /** @class */ (function () {
12751
12751
  function PlotlyChartAdapter(model) {
@@ -12795,8 +12795,11 @@ var PlotlyChartAdapter = /** @class */ (function () {
12795
12795
  });
12796
12796
  PlotlyChartAdapter.prototype.getChartTypes = function () {
12797
12797
  var visualizerType = this.model.type;
12798
- var chartCtypes = plotlyChartTypes[visualizerType];
12799
- return chartCtypes || [];
12798
+ var chartCtypes = [];
12799
+ if (plotlyChartTypes[visualizerType]) {
12800
+ chartCtypes = plotlyChartTypes[visualizerType]();
12801
+ }
12802
+ return chartCtypes;
12800
12803
  };
12801
12804
  PlotlyChartAdapter.prototype.create = function (chartNode) {
12802
12805
  return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function () {