survey-analytics 1.9.136 → 1.9.138
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 +3 -3
- package/survey-analytics-datatables.types/tables/extensions/headerextensions.d.ts +1 -1
- package/survey-analytics-tabulator.types/tables/extensions/headerextensions.d.ts +1 -1
- package/survey-analytics.types/visualizationPanel.d.ts +1 -0
- package/survey-analytics.types/visualizerBase.d.ts +27 -6
- package/survey.analytics.css +1 -1
- package/survey.analytics.datatables.css +1 -1
- package/survey.analytics.datatables.js +6 -4
- package/survey.analytics.datatables.min.css +1 -1
- package/survey.analytics.datatables.min.js +2 -2
- package/survey.analytics.js +30 -8
- package/survey.analytics.min.css +1 -1
- package/survey.analytics.min.js +1 -1
- package/survey.analytics.tabulator.css +1 -1
- package/survey.analytics.tabulator.js +6 -4
- package/survey.analytics.tabulator.min.css +1 -1
- package/survey.analytics.tabulator.min.js +2 -2
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.
|
|
23
|
+
"version": "1.9.138",
|
|
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.
|
|
61
|
+
"survey-core": "1.9.138",
|
|
62
62
|
"tabulator-tables": "4.8.4",
|
|
63
63
|
"wordcloud": "^1.2.2"
|
|
64
64
|
},
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"val-loader": "0.5.0",
|
|
103
103
|
"webpack": "^4.46.0",
|
|
104
104
|
"webpack-cli": "^3.3.11",
|
|
105
|
-
"webpack-dev-server": "~
|
|
105
|
+
"webpack-dev-server": "~5",
|
|
106
106
|
"webpack-svgstore-plugin": "^4.1.0"
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare var HeaderExtensions: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare var HeaderExtensions: any;
|
|
@@ -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);
|
|
@@ -12,14 +12,16 @@ import { Event } from "survey-core";
|
|
|
12
12
|
* Survey results.
|
|
13
13
|
* - `options`\
|
|
14
14
|
* An object with the following properties:
|
|
15
|
+
* - `dataProvider`: `DataProvider`\
|
|
16
|
+
* A data provider for this visualizer.
|
|
17
|
+
* - `renderContent`: `(contentContainer: HTMLElement, visualizer: VisualizerBase) => void`\
|
|
18
|
+
* A function that renders the visualizer's HTML markup. Append the markup to `contentContainer`.
|
|
19
|
+
* - `survey`: [`SurveyModel`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model)\
|
|
20
|
+
* Pass a `SurveyModel` instance if you want to use locales from the survey JSON schema.
|
|
15
21
|
* - `seriesValues`: `Array<string>`\
|
|
16
22
|
* Series values used to group data.
|
|
17
23
|
* - `seriesLabels`: `Array<string>`\
|
|
18
24
|
* Series labels to display. If this property is not set, `seriesValues` are used as labels.
|
|
19
|
-
* - `survey`: [`SurveyModel`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model)\
|
|
20
|
-
* Pass a `SurveyModel` instance if you want to use locales from the survey JSON schema.
|
|
21
|
-
* - `dataProvider`: `DataProvider`\
|
|
22
|
-
* A data provider for this visualizer.
|
|
23
25
|
* - `type`: `string`\
|
|
24
26
|
* *(Optional)* The visualizer's type.
|
|
25
27
|
*
|
|
@@ -72,6 +74,23 @@ export declare class VisualizerBase implements IDataInfo {
|
|
|
72
74
|
onLocaleChanged: Event<(sender: VisualizerBase, options: {
|
|
73
75
|
locale: string;
|
|
74
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
|
+
*/
|
|
75
94
|
onStateChanged: Event<(sender: VisualizerBase, options: any) => any, VisualizerBase, any>;
|
|
76
95
|
protected stateChanged(name: string, value: any): void;
|
|
77
96
|
protected toolbarItemCreators: {
|
|
@@ -254,15 +273,17 @@ export declare class VisualizerBase implements IDataInfo {
|
|
|
254
273
|
/**
|
|
255
274
|
* Returns an object with properties that describe a current visualizer state. The properties are different for each individual visualizer.
|
|
256
275
|
*
|
|
257
|
-
* > This method is overriden in descendant
|
|
276
|
+
* > This method is overriden in classes descendant from `VisualizerBase`.
|
|
258
277
|
* @see setState
|
|
278
|
+
* @see onStateChanged
|
|
259
279
|
*/
|
|
260
280
|
getState(): any;
|
|
261
281
|
/**
|
|
262
282
|
* Sets the visualizer's state.
|
|
263
283
|
*
|
|
264
|
-
* > This method is overriden in descendant
|
|
284
|
+
* > This method is overriden in classes descendant from `VisualizerBase`.
|
|
265
285
|
* @see getState
|
|
286
|
+
* @see onStateChanged
|
|
266
287
|
*/
|
|
267
288
|
setState(state: any): void;
|
|
268
289
|
/**
|
package/survey.analytics.css
CHANGED