survey-analytics 1.12.43 → 1.12.45

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 (35) hide show
  1. package/fesm/shared.mjs +2 -1
  2. package/fesm/shared.mjs.map +1 -1
  3. package/fesm/shared2.mjs +379 -268
  4. package/fesm/shared2.mjs.map +1 -1
  5. package/fesm/survey.analytics.core.mjs +2 -2
  6. package/fesm/survey.analytics.mjs +177 -418
  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 +2 -2
  11. package/survey-analytics.types/entries/summary.core.d.ts +2 -1
  12. package/survey-analytics.types/pivot.d.ts +2 -0
  13. package/survey-analytics.types/plotly/chart-adapter.d.ts +22 -0
  14. package/survey-analytics.types/plotly/legacy.d.ts +33 -0
  15. package/survey-analytics.types/ranking.d.ts +7 -0
  16. package/survey-analytics.types/statisticCalculators.d.ts +4 -0
  17. package/survey.analytics.core.css +1 -1
  18. package/survey.analytics.core.js +355 -151
  19. package/survey.analytics.core.js.map +1 -1
  20. package/survey.analytics.core.min.css +1 -1
  21. package/survey.analytics.core.min.js +1 -1
  22. package/survey.analytics.core.min.js.LICENSE.txt +1 -1
  23. package/survey.analytics.css +1 -1
  24. package/survey.analytics.datatables.css +1 -1
  25. package/survey.analytics.datatables.js +1 -1
  26. package/survey.analytics.datatables.min.css +1 -1
  27. package/survey.analytics.datatables.min.js.LICENSE.txt +1 -1
  28. package/survey.analytics.js +1 -1
  29. package/survey.analytics.min.css +1 -1
  30. package/survey.analytics.min.js.LICENSE.txt +1 -1
  31. package/survey.analytics.tabulator.css +1 -1
  32. package/survey.analytics.tabulator.js +1 -1
  33. package/survey.analytics.tabulator.min.css +1 -1
  34. package/survey.analytics.tabulator.min.js.LICENSE.txt +1 -1
  35. package/survey-analytics.types/plotly/pivot.d.ts +0 -12
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "lint": "eslint ./src --quiet",
21
21
  "pre-push-check": "npm run lint && npm run test"
22
22
  },
23
- "version": "1.12.43",
23
+ "version": "1.12.45",
24
24
  "name": "survey-analytics",
25
25
  "description": "SurveyJS analytics Library.",
26
26
  "main": "survey.analytics.js",
@@ -102,7 +102,7 @@
102
102
  },
103
103
  "peerDependencies": {
104
104
  "@types/plotly.js-dist-min": "^2.3.0",
105
- "survey-core": "1.12.43"
105
+ "survey-core": "1.12.45"
106
106
  },
107
107
  "husky": {
108
108
  "hooks": {
@@ -14,11 +14,11 @@ import "../analytics-localization/polish";
14
14
  import "../analytics-localization/finnish";
15
15
  export * from "../dataProvider";
16
16
  export * from "../visualizerFactory";
17
- export * from "../number";
18
17
  export * from "../selectBase";
19
18
  export * from "../matrix";
20
19
  export * from "../boolean";
21
20
  export * from "../histogram";
21
+ export * from "../number";
22
22
  export * from "../visualizerBase";
23
23
  export * from "../visualizationManager";
24
24
  export * from "../visualizationPanel";
@@ -31,5 +31,6 @@ export * from "../wordcloud/stopwords/index";
31
31
  export * from "../text";
32
32
  export * from "../statistics-table";
33
33
  export * from "../nps";
34
+ export * from "../ranking";
34
35
  export * from "../pivot";
35
36
  export { DocumentHelper } from "../utils/index";
@@ -59,4 +59,6 @@ export declare class PivotModel extends SelectBase {
59
59
  [index: string]: number;
60
60
  }): void;
61
61
  protected getCalculatedValuesCore(): Array<any>;
62
+ getValueType(): "enum" | "date" | "number";
63
+ protected isSupportSoftUpdateContent(): boolean;
62
64
  }
@@ -0,0 +1,22 @@
1
+ import { SelectBase } from "../selectBase";
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
+ };
12
+ export declare class PlotlyChartAdapter implements IChartAdapter {
13
+ protected model: SelectBase | VisualizerBase;
14
+ private _chart;
15
+ constructor(model: SelectBase | VisualizerBase);
16
+ protected patchConfigParameters(chartNode: object, traces: Array<object>, layout: object, config: any): void;
17
+ get chart(): Promise<Plotly.PlotlyHTMLElement>;
18
+ getChartTypes(): string[];
19
+ create(chartNode: HTMLElement): Promise<any>;
20
+ update(chartNode: HTMLElement): Promise<any>;
21
+ destroy(node: HTMLElement): void;
22
+ }
@@ -0,0 +1,33 @@
1
+ import { BooleanModel } from "../boolean";
2
+ import { SelectBase } from "../selectBase";
3
+ import { HistogramModel } from "../histogram";
4
+ import { Matrix } from "../matrix";
5
+ import { MatrixDropdownGrouped } from "../matrixDropdownGrouped";
6
+ import { PivotModel } from "../pivot";
7
+ import { NumberModel } from "../number";
8
+ import { RankingModel } from "../ranking";
9
+ export declare class SelectBasePlotly extends SelectBase {
10
+ static types: string[];
11
+ static displayModeBar: any;
12
+ }
13
+ export declare class BooleanPlotly extends BooleanModel {
14
+ static types: string[];
15
+ }
16
+ export declare class HistogramPlotly extends HistogramModel {
17
+ static types: string[];
18
+ }
19
+ export declare class MatrixPlotly extends Matrix {
20
+ static types: string[];
21
+ }
22
+ export declare class MatrixDropdownGroupedPlotly extends MatrixDropdownGrouped {
23
+ static types: string[];
24
+ }
25
+ export declare class PivotPlotly extends PivotModel {
26
+ static types: string[];
27
+ }
28
+ export declare class GaugePlotly extends NumberModel {
29
+ static displayModeBar: any;
30
+ static types: string[];
31
+ }
32
+ export declare class RankingPlotly extends RankingModel {
33
+ }
@@ -0,0 +1,7 @@
1
+ import { SelectBase } from "./selectBase";
2
+ export declare class RankingModel extends SelectBase {
3
+ getQuestionResults(): any[];
4
+ getEmptyData(): any;
5
+ protected getCalculatedValuesCore(): Array<any>;
6
+ applyResultToPlotlyData(result: any[], plotlyData: any, choices: any): void;
7
+ }
@@ -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[];
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.2.3
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
  */