survey-analytics 2.0.5 → 2.0.7

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.0.5
2
+ * surveyjs - SurveyJS Dashboard library v2.0.7
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
@@ -17,7 +17,7 @@
17
17
  "lint": "eslint ./src --quiet",
18
18
  "pre-push-check": "npm run lint && npm run test"
19
19
  },
20
- "version": "2.0.5",
20
+ "version": "2.0.7",
21
21
  "name": "survey-analytics",
22
22
  "description": "SurveyJS analytics Library.",
23
23
  "main": "survey.analytics.js",
@@ -88,7 +88,7 @@
88
88
  "peerDependencies": {
89
89
  "@types/plotly.js-dist-min": "^2.3.0",
90
90
  "@types/tabulator-tables": "^6.2.3",
91
- "survey-core": "2.0.5"
91
+ "survey-core": "2.0.7"
92
92
  },
93
93
  "husky": {
94
94
  "hooks": {
@@ -5,7 +5,7 @@ declare type VisualizerConstructor = new (question: Question, data: Array<{
5
5
  /**
6
6
  * An object with methods used to register and unregister visualizers for individual question types.
7
7
  *
8
- * [View Demo](https://surveyjs.io/dashboard/examples/visualize-answers-from-text-entry-fields-with-charts/ (linkStyle))
8
+ * [View Demo](https://surveyjs.io/dashboard/examples/custom-survey-data-visualizer/ (linkStyle))
9
9
  */
10
10
  export declare class VisualizationManager {
11
11
  static alternativesVisualizer: any;
@@ -18,7 +18,7 @@ export declare class VisualizationManager {
18
18
  /**
19
19
  * Registers a visualizer for a specified question type.
20
20
  *
21
- * [View Demo](https://surveyjs.io/dashboard/examples/visualize-answers-from-text-entry-fields-with-charts/ (linkStyle))
21
+ * [View Demo](https://surveyjs.io/dashboard/examples/custom-survey-data-visualizer/ (linkStyle))
22
22
  * @param questionType A question [type](https://surveyjs.io/form-library/documentation/api-reference/question#getType).
23
23
  * @param constructor A function that returns a visualizer constructor to register.
24
24
  * @param index A zero-based index that specifies the visualizer's position in the visualizer list for the specified question type. Pass `0` to insert the visualizer at the beginning of the list and use it by default. If `index` is not specified, the visualizer is added to the end of the list.
@@ -20,6 +20,8 @@ export interface IVisualizerPanelRenderedElement extends IVisualizerPanelElement
20
20
  * vizPanelOptions
21
21
  * );
22
22
  * ```
23
+ *
24
+ * [View Demo](https://surveyjs.io/dashboard/examples/interactive-survey-data-dashboard/ (linkStyle))
23
25
  */
24
26
  export interface IVisualizationPanelOptions {
25
27
  /**
@@ -36,6 +38,8 @@ export interface IVisualizationPanelOptions {
36
38
  useValuesAsLabels?: boolean;
37
39
  /**
38
40
  * Pass a survey instance to use survey locales in the Visualization Panel.
41
+ *
42
+ * [View Demo](https://surveyjs.io/dashboard/examples/localize-survey-data-dashboard-ui/ (linkStyle))
39
43
  */
40
44
  survey?: SurveyModel;
41
45
  /**
@@ -421,6 +425,8 @@ export declare class VisualizationPanel extends VisualizerBase {
421
425
  getState(): IState;
422
426
  /**
423
427
  * The state of `VisualizationPanel`. Includes information about the visualized elements and current locale.
428
+ *
429
+ * [View Demo](https://surveyjs.io/dashboard/examples/save-dashboard-state-to-local-storage/ (linkStyle))
424
430
  * @see onStateChanged
425
431
  */
426
432
  get state(): IState;
@@ -102,7 +102,7 @@ export declare class VisualizerBase implements IDataInfo {
102
102
  * - `state`: `any`\
103
103
  * A new state of the visualizer. Includes information about the visualized elements and current locale.
104
104
  *
105
- * [View Demo](/dashboard/examples/save-dashboard-state-to-local-storage/ (linkStyle))
105
+ * [View Demo](https://surveyjs.io/dashboard/examples/save-dashboard-state-to-local-storage/ (linkStyle))
106
106
  * @see getState
107
107
  * @see setState
108
108
  */
@@ -302,6 +302,8 @@ export declare class VisualizerBase implements IDataInfo {
302
302
  /**
303
303
  * Sets the visualizer's state.
304
304
  *
305
+ * [View Demo](https://surveyjs.io/dashboard/examples/save-dashboard-state-to-local-storage/ (linkStyle))
306
+ *
305
307
  * > This method is overriden in classes descendant from `VisualizerBase`.
306
308
  * @see getState
307
309
  * @see onStateChanged
@@ -313,6 +315,8 @@ export declare class VisualizerBase implements IDataInfo {
313
315
  * If you want to inherit the locale from a visualized survey, assign a [`SurveyModel`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model) instance to the [`survey`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions#survey) property of the `IVisualizationPanelOptions` object in the [`VisualizationPanel`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel) constructor.
314
316
  *
315
317
  * If the survey is [translated into more than one language](https://surveyjs.io/form-library/examples/survey-localization/), the toolbar displays a language selection drop-down menu.
318
+ *
319
+ * [View Demo](https://surveyjs.io/dashboard/examples/localize-survey-data-dashboard-ui/ (linkStyle))
316
320
  * @see onLocaleChanged
317
321
  */
318
322
  get locale(): string;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.0.5
2
+ * surveyjs - SurveyJS Dashboard library v2.0.7
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.0.5
2
+ * surveyjs - SurveyJS Dashboard library v2.0.7
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
  */
@@ -12343,7 +12343,7 @@ __webpack_require__.r(__webpack_exports__);
12343
12343
  /**
12344
12344
  * An object with methods used to register and unregister visualizers for individual question types.
12345
12345
  *
12346
- * [View Demo](https://surveyjs.io/dashboard/examples/visualize-answers-from-text-entry-fields-with-charts/ (linkStyle))
12346
+ * [View Demo](https://surveyjs.io/dashboard/examples/custom-survey-data-visualizer/ (linkStyle))
12347
12347
  */
12348
12348
  var VisualizationManager = /** @class */ (function () {
12349
12349
  function VisualizationManager() {
@@ -12351,7 +12351,7 @@ var VisualizationManager = /** @class */ (function () {
12351
12351
  /**
12352
12352
  * Registers a visualizer for a specified question type.
12353
12353
  *
12354
- * [View Demo](https://surveyjs.io/dashboard/examples/visualize-answers-from-text-entry-fields-with-charts/ (linkStyle))
12354
+ * [View Demo](https://surveyjs.io/dashboard/examples/custom-survey-data-visualizer/ (linkStyle))
12355
12355
  * @param questionType A question [type](https://surveyjs.io/form-library/documentation/api-reference/question#getType).
12356
12356
  * @param constructor A function that returns a visualizer constructor to register.
12357
12357
  * @param index A zero-based index that specifies the visualizer's position in the visualizer list for the specified question type. Pass `0` to insert the visualizer at the beginning of the list and use it by default. If `index` is not specified, the visualizer is added to the end of the list.
@@ -13305,6 +13305,8 @@ var VisualizationPanel = /** @class */ (function (_super) {
13305
13305
  Object.defineProperty(VisualizationPanel.prototype, "state", {
13306
13306
  /**
13307
13307
  * The state of `VisualizationPanel`. Includes information about the visualized elements and current locale.
13308
+ *
13309
+ * [View Demo](https://surveyjs.io/dashboard/examples/save-dashboard-state-to-local-storage/ (linkStyle))
13308
13310
  * @see onStateChanged
13309
13311
  */
13310
13312
  get: function () {
@@ -13609,7 +13611,7 @@ var VisualizerBase = /** @class */ (function () {
13609
13611
  * - `state`: `any`\
13610
13612
  * A new state of the visualizer. Includes information about the visualized elements and current locale.
13611
13613
  *
13612
- * [View Demo](/dashboard/examples/save-dashboard-state-to-local-storage/ (linkStyle))
13614
+ * [View Demo](https://surveyjs.io/dashboard/examples/save-dashboard-state-to-local-storage/ (linkStyle))
13613
13615
  * @see getState
13614
13616
  * @see setState
13615
13617
  */
@@ -14194,6 +14196,8 @@ var VisualizerBase = /** @class */ (function () {
14194
14196
  /**
14195
14197
  * Sets the visualizer's state.
14196
14198
  *
14199
+ * [View Demo](https://surveyjs.io/dashboard/examples/save-dashboard-state-to-local-storage/ (linkStyle))
14200
+ *
14197
14201
  * > This method is overriden in classes descendant from `VisualizerBase`.
14198
14202
  * @see getState
14199
14203
  * @see onStateChanged
@@ -14207,6 +14211,8 @@ var VisualizerBase = /** @class */ (function () {
14207
14211
  * If you want to inherit the locale from a visualized survey, assign a [`SurveyModel`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model) instance to the [`survey`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions#survey) property of the `IVisualizationPanelOptions` object in the [`VisualizationPanel`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel) constructor.
14208
14212
  *
14209
14213
  * If the survey is [translated into more than one language](https://surveyjs.io/form-library/examples/survey-localization/), the toolbar displays a language selection drop-down menu.
14214
+ *
14215
+ * [View Demo](https://surveyjs.io/dashboard/examples/localize-survey-data-dashboard-ui/ (linkStyle))
14210
14216
  * @see onLocaleChanged
14211
14217
  */
14212
14218
  get: function () {