survey-analytics 1.9.92 → 1.9.94

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/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.9.92",
23
+ "version": "1.9.94",
24
24
  "name": "survey-analytics",
25
25
  "description": "SurveyJS analytics Library.",
26
26
  "main": "survey.analytics.js",
@@ -58,7 +58,7 @@
58
58
  "jquery": "3.5.0",
59
59
  "muuri": "^0.8.0",
60
60
  "plotly.js-dist-min": "^2.11.1",
61
- "survey-core": "1.9.92",
61
+ "survey-core": "1.9.94",
62
62
  "tabulator-tables": "4.8.4",
63
63
  "wordcloud": "^1.2.2"
64
64
  },
@@ -79,7 +79,7 @@
79
79
  "github-api": "^3.4.0",
80
80
  "html-loader": "^0.4.4",
81
81
  "http-server": "^0.12.3",
82
- "husky": "^4.3.8",
82
+ "husky": "^8.0.3",
83
83
  "jest": "^26.6.3",
84
84
  "jest-canvas-mock": "^2.3.1",
85
85
  "live-server": "^1.2.1",
@@ -37,5 +37,19 @@ export declare class AlternativeVisualizersWrapper extends VisualizerBase implem
37
37
  get selection(): any;
38
38
  protected renderContent(container: HTMLElement): void;
39
39
  protected setBackgroundColorCore(color: string): void;
40
+ /**
41
+ * Returns an object with properties that describe a current visualizer state. The properties are different for each individual visualizer.
42
+ *
43
+ * > This method is overriden in descendant classes.
44
+ * @see setState
45
+ */
46
+ getState(): any;
47
+ /**
48
+ * Sets the visualizer's state.
49
+ *
50
+ * > This method is overriden in descendant classes.
51
+ * @see getState
52
+ */
53
+ setState(state: any): void;
40
54
  destroy(): void;
41
55
  }
@@ -23,9 +23,38 @@ export interface IVisualizerPanelElement {
23
23
  */
24
24
  isVisible: boolean;
25
25
  isPublic: boolean;
26
+ /**
27
+ * Indicates the selected chart type.
28
+ *
29
+ * Possible values:
30
+ *
31
+ * - `"bar"`
32
+ * - `"vbar"`
33
+ * - `"stackedbar"`
34
+ * - `"pie"`
35
+ * - `"doughnut"`
36
+ * - `"scatter"`
37
+ * - `"gauge"`
38
+ * - `"bullet"`
39
+ */
26
40
  chartType?: string;
41
+ /**
42
+ * Indicates the answer order in bar and scatter charts.
43
+ *
44
+ * Possible values:
45
+ *
46
+ * - `"default"` - Answers retain the initial sort order.
47
+ * - `"asc"` - Answers are sorted by ascending answer count.
48
+ * - `"desc"` - Answers are sorted by descending answer count.
49
+ */
27
50
  answersOrder?: string;
51
+ /**
52
+ * Indicates whether answers with zero count are hidden in bar and scatter charts.
53
+ */
28
54
  hideEmptyAnswers?: boolean;
55
+ /**
56
+ * Indicates whether the visualization item displays top 5, 10, or 20 answers by answer count. This property equals -1 if the Top N Answers feature is disabled.
57
+ */
29
58
  topN?: number;
30
59
  }
31
60
  export interface IState {
@@ -135,6 +135,7 @@ export interface IVisualizationPanelOptions {
135
135
  allowChangeAnswersOrder?: boolean;
136
136
  /**
137
137
  * Specifies how to sort answers in bar and scatter charts.
138
+ *
138
139
  * Accepted values:
139
140
  *
140
141
  * - `"default"` (default) - Do not sort answers.
@@ -374,10 +375,10 @@ export declare class VisualizationPanel extends VisualizerBase {
374
375
  * @see IVisualizationPanelOptions.allowSelection
375
376
  */
376
377
  setFilter(questionName: string, selectedValue: any): void;
377
- get state(): IState;
378
378
  /**
379
- * Sets vizualization panel state.
379
+ * The state of `VisualizationPanel`. Includes information about the visualized elements and current locale.
380
380
  */
381
+ get state(): IState;
381
382
  set state(newState: IState);
382
383
  get permissions(): IPermission[];
383
384
  set permissions(permissions: IPermission[]);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v1.9.92
2
+ * surveyjs - SurveyJS Dashboard library v1.9.94
3
3
  * Copyright (c) 2015-2023 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 v1.9.92
2
+ * surveyjs - SurveyJS Dashboard library v1.9.94
3
3
  * Copyright (c) 2015-2023 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 v1.9.92
2
+ * surveyjs - SurveyJS Dashboard library v1.9.94
3
3
  * Copyright (c) 2015-2023 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 v1.9.92
2
+ * surveyjs - SurveyJS Dashboard library v1.9.94
3
3
  * Copyright (c) 2015-2023 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 v1.9.92
2
+ * surveyjs - SurveyJS Dashboard library v1.9.94
3
3
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */