survey-analytics 1.9.137 → 1.9.139

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.137",
23
+ "version": "1.9.139",
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.28.0",
61
- "survey-core": "1.9.137",
61
+ "survey-core": "1.9.139",
62
62
  "tabulator-tables": "4.8.4",
63
63
  "wordcloud": "^1.2.2"
64
64
  },
@@ -415,6 +415,7 @@ export declare class VisualizationPanel extends VisualizerBase {
415
415
  getState(): IState;
416
416
  /**
417
417
  * The state of `VisualizationPanel`. Includes information about the visualized elements and current locale.
418
+ * @see onStateChanged
418
419
  */
419
420
  get state(): IState;
420
421
  set state(newState: IState);
@@ -74,6 +74,23 @@ export declare class VisualizerBase implements IDataInfo {
74
74
  onLocaleChanged: Event<(sender: VisualizerBase, options: {
75
75
  locale: string;
76
76
  }) => any, VisualizerBase, any>;
77
+ /**
78
+ * An event that is raised when the visualizer's state has changed.
79
+ *
80
+ * The state includes selected chart types, chart layout, sorting, filtering, and other customizations that a user has made while using the dashboard. Handle the `onStateChanged` event to save these customizations, for example, in `localStorage` and restore them when the user reloads the page.
81
+ *
82
+ * Parameters:
83
+ *
84
+ * - `sender`: `VisualizerBase`\
85
+ * A `VisualizerBase` instance that raised the event.
86
+ *
87
+ * - `state`: `any`\
88
+ * A new state of the visualizer. Includes information about the visualized elements and current locale.
89
+ *
90
+ * [View Demo](/dashboard/examples/save-dashboard-state-to-local-storage/ (linkStyle))
91
+ * @see getState
92
+ * @see setState
93
+ */
77
94
  onStateChanged: Event<(sender: VisualizerBase, options: any) => any, VisualizerBase, any>;
78
95
  protected stateChanged(name: string, value: any): void;
79
96
  protected toolbarItemCreators: {
@@ -256,15 +273,17 @@ export declare class VisualizerBase implements IDataInfo {
256
273
  /**
257
274
  * Returns an object with properties that describe a current visualizer state. The properties are different for each individual visualizer.
258
275
  *
259
- * > This method is overriden in descendant classes.
276
+ * > This method is overriden in classes descendant from `VisualizerBase`.
260
277
  * @see setState
278
+ * @see onStateChanged
261
279
  */
262
280
  getState(): any;
263
281
  /**
264
282
  * Sets the visualizer's state.
265
283
  *
266
- * > This method is overriden in descendant classes.
284
+ * > This method is overriden in classes descendant from `VisualizerBase`.
267
285
  * @see getState
286
+ * @see onStateChanged
268
287
  */
269
288
  setState(state: any): void;
270
289
  /**
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v1.9.137
2
+ * surveyjs - SurveyJS Dashboard library v1.9.139
3
3
  * Copyright (c) 2015-2024 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.137
2
+ * surveyjs - SurveyJS Dashboard library v1.9.139
3
3
  * Copyright (c) 2015-2024 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.137
2
+ * surveyjs - SurveyJS Dashboard library v1.9.139
3
3
  * Copyright (c) 2015-2024 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.137
2
+ * surveyjs - SurveyJS Dashboard library v1.9.139
3
3
  * Copyright (c) 2015-2024 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.137
2
+ * surveyjs - SurveyJS Dashboard library v1.9.139
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */