survey-analytics 2.2.4 → 2.2.6

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 (38) hide show
  1. package/fesm/shared.mjs +2 -1
  2. package/fesm/shared.mjs.map +1 -1
  3. package/fesm/shared2.mjs +126 -105
  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/visualizationMatrixDropdown.d.ts +1 -0
  20. package/survey-analytics.types/visualizerBase.d.ts +1 -3
  21. package/survey.analytics.core.css +1 -1
  22. package/survey.analytics.core.js +210 -144
  23. package/survey.analytics.core.js.map +1 -1
  24. package/survey.analytics.core.min.css +1 -1
  25. package/survey.analytics.core.min.js +1 -1
  26. package/survey.analytics.core.min.js.LICENSE.txt +1 -1
  27. package/survey.analytics.css +1 -1
  28. package/survey.analytics.js +229 -171
  29. package/survey.analytics.js.map +1 -1
  30. package/survey.analytics.min.css +1 -1
  31. package/survey.analytics.min.js +1 -1
  32. package/survey.analytics.min.js.LICENSE.txt +1 -1
  33. package/survey.analytics.tabulator.css +1 -1
  34. package/survey.analytics.tabulator.js +39 -5
  35. package/survey.analytics.tabulator.js.map +1 -1
  36. package/survey.analytics.tabulator.min.css +1 -1
  37. package/survey.analytics.tabulator.min.js +1 -1
  38. package/survey.analytics.tabulator.min.js.LICENSE.txt +1 -1
package/package.json CHANGED
@@ -15,9 +15,10 @@
15
15
  "build:types:summary": "tsc --p tsconfig.summary.json && echo \"export * from './survey-analytics.types/entries/summary';\" >> build/survey.analytics.d.ts",
16
16
  "build:types:tabulator": "tsc --p tsconfig.tabulator.json && echo \"export * from './survey-analytics-tabulator.types/entries/tabulator';\" >> build/survey.analytics.tabulator.d.ts",
17
17
  "lint": "eslint ./src --quiet",
18
- "pre-push-check": "npm run lint && npm run test"
18
+ "pre-push-check": "npm run lint && npm run test",
19
+ "postinstall": "playwright install chromium"
19
20
  },
20
- "version": "2.2.4",
21
+ "version": "2.2.6",
21
22
  "name": "survey-analytics",
22
23
  "description": "SurveyJS analytics Library.",
23
24
  "main": "survey.analytics.js",
@@ -45,7 +46,7 @@
45
46
  "tabulator-tables": "^6.2.5"
46
47
  },
47
48
  "devDependencies": {
48
- "@playwright/test": "^1.53.1",
49
+ "@playwright/test": "1.53.1",
49
50
  "@rollup/plugin-commonjs": "^28.0.2",
50
51
  "@rollup/plugin-node-resolve": "^16.0.0",
51
52
  "@rollup/plugin-replace": "^6.0.2",
@@ -67,7 +68,7 @@
67
68
  "jest-junit": "^16.0.0",
68
69
  "mini-css-extract-plugin": "^2.9.0",
69
70
  "node-uuid": "1.4.7",
70
- "playwright": "^1.53.1",
71
+ "playwright": "1.53.1",
71
72
  "puppeteer": "22.13.1",
72
73
  "replace-in-file": "^6.3.2",
73
74
  "rollup": "^4.34.8",
@@ -89,7 +90,7 @@
89
90
  "peerDependencies": {
90
91
  "@types/plotly.js-dist-min": "^2.3.0",
91
92
  "@types/tabulator-tables": "^6.2.3",
92
- "survey-core": "2.2.4"
93
+ "survey-core": "2.2.6"
93
94
  },
94
95
  "husky": {
95
96
  "hooks": {
@@ -41,6 +41,7 @@ export declare var englishStrings: {
41
41
  ascOrder: string;
42
42
  descOrder: string;
43
43
  showMinorColumns: string;
44
+ actionsColumn: string;
44
45
  otherCommentTitle: string;
45
46
  showPercentages: string;
46
47
  hidePercentages: string;
@@ -56,6 +56,7 @@ export declare var surveyStrings: {
56
56
  ascOrder: string;
57
57
  descOrder: string;
58
58
  showMinorColumns: string;
59
+ actionsColumn: string;
59
60
  otherCommentTitle: string;
60
61
  showPercentages: string;
61
62
  hidePercentages: string;
@@ -17,5 +17,6 @@ export declare class TableExtensions {
17
17
  private static removeExtension;
18
18
  static unregisterExtension(location: string, actionName: string): void;
19
19
  static findExtension(location: string, actionName: string): ITableExtension;
20
+ static getExtensions(location: string): Array<ITableExtension>;
20
21
  private sortExtensions;
21
22
  }
@@ -41,6 +41,7 @@ export declare var englishStrings: {
41
41
  ascOrder: string;
42
42
  descOrder: string;
43
43
  showMinorColumns: string;
44
+ actionsColumn: string;
44
45
  otherCommentTitle: string;
45
46
  showPercentages: string;
46
47
  hidePercentages: string;
@@ -56,6 +56,7 @@ export declare var surveyStrings: {
56
56
  ascOrder: string;
57
57
  descOrder: string;
58
58
  showMinorColumns: string;
59
+ actionsColumn: string;
59
60
  otherCommentTitle: string;
60
61
  showPercentages: string;
61
62
  hidePercentages: string;
@@ -1,5 +1,14 @@
1
1
  import { SelectBase } from "../selectBase";
2
2
  import { VisualizerBase, IChartAdapter } from "../visualizerBase";
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
+ };
3
12
  export declare class PlotlyChartAdapter implements IChartAdapter {
4
13
  protected model: SelectBase | VisualizerBase;
5
14
  private _chart;
@@ -0,0 +1,4 @@
1
+ import { IDataInfo } from "./visualizerBase";
2
+ export declare function defaultStatisticsCalculator(data: Array<any>, dataInfo: IDataInfo): Array<any>;
3
+ export declare function histogramStatisticsCalculator(data: any, intervals: any, seriesValues: Array<string>): Array<any>;
4
+ export declare function mathStatisticsCalculator(data: Array<any>, dataName: string): number[];
@@ -8,6 +8,7 @@ declare type VisualizerConstructor = new (question: Question, data: Array<{
8
8
  * [View Demo](https://surveyjs.io/dashboard/examples/custom-survey-data-visualizer/ (linkStyle))
9
9
  */
10
10
  export declare class VisualizationManager {
11
+ static defaultVisualizer: any;
11
12
  static alternativesVisualizer: any;
12
13
  static pivotVisualizer: any;
13
14
  static vizualizers: {
@@ -8,6 +8,7 @@ export declare class VisualizationMatrixDropdown extends VisualizerBase {
8
8
  }>, options?: {
9
9
  [index: string]: any;
10
10
  }, name?: string);
11
+ get canGroupColumns(): boolean;
11
12
  protected setLocale(newLocale: string): void;
12
13
  get matrixDropdownVisualizer(): VisualizerBase;
13
14
  private onPanelAfterRenderCallback;
@@ -1,6 +1,5 @@
1
- import { Question } from "survey-core";
1
+ import { Question, Event } from "survey-core";
2
2
  import { DataProvider, GetDataFn } from "./dataProvider";
3
- import { Event } from "survey-core";
4
3
  import "./visualizerBase.scss";
5
4
  export interface IChartAdapter {
6
5
  getChartTypes(): string[];
@@ -336,4 +335,3 @@ export declare class VisualizerBase implements IDataInfo {
336
335
  set locale(newLocale: string);
337
336
  protected setLocale(newLocale: string): void;
338
337
  }
339
- export declare function defaultStatisticsCalculator(data: Array<any>, dataInfo: IDataInfo): Array<any>;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.2.4
2
+ * surveyjs - SurveyJS Dashboard library v2.2.6
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
  */