survey-analytics 2.3.3 → 2.3.5
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/fesm/shared.mjs +59 -1
- package/fesm/shared.mjs.map +1 -1
- package/fesm/shared2.mjs +169 -64
- package/fesm/shared2.mjs.map +1 -1
- package/fesm/survey.analytics.core.mjs +2 -2
- package/fesm/survey.analytics.mjs +4 -4
- package/fesm/survey.analytics.mjs.map +1 -1
- package/fesm/survey.analytics.tabulator.mjs +25 -12
- package/fesm/survey.analytics.tabulator.mjs.map +1 -1
- package/package.json +3 -2
- package/survey-analytics-tabulator.types/analytics-localization/arabic.d.ts +2 -0
- package/survey-analytics-tabulator.types/analytics-localization/dutch.d.ts +2 -0
- package/survey-analytics-tabulator.types/analytics-localization/english.d.ts +2 -0
- package/survey-analytics-tabulator.types/analytics-localization/farsi.d.ts +2 -0
- package/survey-analytics-tabulator.types/analytics-localization/finnish.d.ts +2 -0
- package/survey-analytics-tabulator.types/analytics-localization/french.d.ts +2 -0
- package/survey-analytics-tabulator.types/analytics-localization/german.d.ts +2 -0
- package/survey-analytics-tabulator.types/analytics-localization/italian.d.ts +2 -0
- package/survey-analytics-tabulator.types/analytics-localization/japanese.d.ts +2 -0
- package/survey-analytics-tabulator.types/analytics-localization/norwegian.d.ts +2 -0
- package/survey-analytics-tabulator.types/analytics-localization/polish.d.ts +2 -0
- package/survey-analytics-tabulator.types/analytics-localization/portuguese.d.ts +2 -0
- package/survey-analytics-tabulator.types/analytics-localization/russian.d.ts +2 -0
- package/survey-analytics-tabulator.types/analytics-localization/spanish.d.ts +2 -0
- package/survey-analytics-tabulator.types/analytics-localization/swedish.d.ts +2 -0
- package/survey-analytics-tabulator.types/localizationManager.d.ts +2 -0
- package/survey-analytics-tabulator.types/tables/table.d.ts +6 -2
- package/survey-analytics.types/alternativeVizualizersWrapper.d.ts +9 -1
- package/survey-analytics.types/analytics-localization/arabic.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/dutch.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/english.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/farsi.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/finnish.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/french.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/german.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/italian.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/japanese.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/norwegian.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/polish.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/portuguese.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/russian.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/spanish.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/swedish.d.ts +2 -0
- package/survey-analytics.types/localizationManager.d.ts +2 -0
- package/survey-analytics.types/pivot.d.ts +3 -1
- package/survey-analytics.types/selectBase.d.ts +1 -1
- package/survey-analytics.types/statistics-table.d.ts +11 -1
- package/survey-analytics.types/visualizationPanel.d.ts +3 -3
- package/survey-analytics.types/visualizerBase.d.ts +16 -0
- package/survey.analytics.core.css +1 -1
- package/survey.analytics.core.js +258 -73
- package/survey.analytics.core.js.map +1 -1
- package/survey.analytics.core.min.css +1 -1
- package/survey.analytics.core.min.js +1 -1
- package/survey.analytics.core.min.js.LICENSE.txt +1 -1
- package/survey.analytics.css +1 -1
- package/survey.analytics.js +260 -74
- package/survey.analytics.js.map +1 -1
- package/survey.analytics.min.css +1 -1
- package/survey.analytics.min.js +1 -1
- package/survey.analytics.min.js.LICENSE.txt +1 -1
- package/survey.analytics.tabulator.css +5 -1
- package/survey.analytics.tabulator.css.map +1 -1
- package/survey.analytics.tabulator.js +82 -11
- package/survey.analytics.tabulator.js.map +1 -1
- package/survey.analytics.tabulator.min.css +2 -2
- package/survey.analytics.tabulator.min.js +1 -1
- package/survey.analytics.tabulator.min.js.LICENSE.txt +1 -1
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"pre-push-check": "npm run lint && npm run test",
|
|
19
19
|
"pwinst": "playwright install chromium"
|
|
20
20
|
},
|
|
21
|
-
"version": "2.3.
|
|
21
|
+
"version": "2.3.5",
|
|
22
22
|
"name": "survey-analytics",
|
|
23
23
|
"description": "SurveyJS analytics Library.",
|
|
24
24
|
"main": "survey.analytics.js",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"concurrently": "^5.3.0",
|
|
60
60
|
"css-loader": "^7.1.2",
|
|
61
61
|
"eslint": "^7.32.0",
|
|
62
|
+
"eslint-plugin-i18n": "^2.4.0",
|
|
62
63
|
"html-loader": "^5.0.0",
|
|
63
64
|
"http-server": "^14.1.1",
|
|
64
65
|
"husky": "^8.0.3",
|
|
@@ -90,7 +91,7 @@
|
|
|
90
91
|
"peerDependencies": {
|
|
91
92
|
"@types/plotly.js-dist-min": "^2.3.0",
|
|
92
93
|
"@types/tabulator-tables": "^6.2.3",
|
|
93
|
-
"survey-core": "2.3.
|
|
94
|
+
"survey-core": "2.3.5"
|
|
94
95
|
},
|
|
95
96
|
"husky": {
|
|
96
97
|
"hooks": {
|
|
@@ -129,13 +129,17 @@ export declare abstract class Table {
|
|
|
129
129
|
destroy(): void;
|
|
130
130
|
get isRendered(): boolean;
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
132
|
+
* Table state getter.
|
|
133
133
|
*/
|
|
134
134
|
get state(): ITableState;
|
|
135
135
|
/**
|
|
136
|
-
*
|
|
136
|
+
* Table state setter.
|
|
137
137
|
*/
|
|
138
138
|
set state(newState: ITableState);
|
|
139
|
+
/**
|
|
140
|
+
* Resets table state.
|
|
141
|
+
*/
|
|
142
|
+
resetState(): void;
|
|
139
143
|
private updateColumnsFromData;
|
|
140
144
|
/**
|
|
141
145
|
* Fires when table state changed.
|
|
@@ -44,15 +44,23 @@ export declare class AlternativeVisualizersWrapper extends VisualizerBase implem
|
|
|
44
44
|
*
|
|
45
45
|
* > This method is overriden in descendant classes.
|
|
46
46
|
* @see setState
|
|
47
|
+
* @see resetState
|
|
47
48
|
*/
|
|
48
49
|
getState(): any;
|
|
49
50
|
/**
|
|
50
51
|
* Sets the visualizer's state.
|
|
51
52
|
*
|
|
52
|
-
* > This method is overriden in descendant classes.
|
|
53
53
|
* @see getState
|
|
54
|
+
* @see resetState
|
|
54
55
|
*/
|
|
55
56
|
setState(state: any): void;
|
|
57
|
+
/**
|
|
58
|
+
* Resets the visualizer's state.
|
|
59
|
+
*
|
|
60
|
+
* @see getState
|
|
61
|
+
* @see setState
|
|
62
|
+
*/
|
|
63
|
+
resetState(): void;
|
|
56
64
|
getValues(): Array<any>;
|
|
57
65
|
getLabels(): Array<string>;
|
|
58
66
|
getCalculatedValues(): Promise<Array<Object>>;
|
|
@@ -2,6 +2,7 @@ import { ItemValue, Question } from "survey-core";
|
|
|
2
2
|
import { SelectBase } from "./selectBase";
|
|
3
3
|
export declare class PivotModel extends SelectBase {
|
|
4
4
|
private questions;
|
|
5
|
+
private isRoot;
|
|
5
6
|
protected valueType: "enum" | "date" | "number";
|
|
6
7
|
private _cachedValues;
|
|
7
8
|
private _continuousData;
|
|
@@ -16,7 +17,7 @@ export declare class PivotModel extends SelectBase {
|
|
|
16
17
|
static UseIntervalsFrom: number;
|
|
17
18
|
constructor(questions: Array<Question>, data: Array<{
|
|
18
19
|
[index: string]: any;
|
|
19
|
-
}>, options?: Object, name?: string);
|
|
20
|
+
}>, options?: Object, name?: string, isRoot?: boolean);
|
|
20
21
|
private createYSelecterGenerator;
|
|
21
22
|
setAxisQuestions(...axisQuestionNames: string[]): void;
|
|
22
23
|
onAxisYSelectorChanged(index: number, value: any): void;
|
|
@@ -64,4 +65,5 @@ export declare class PivotModel extends SelectBase {
|
|
|
64
65
|
protected getCalculatedValuesCore(): Array<any>;
|
|
65
66
|
getValueType(): "enum" | "date" | "number";
|
|
66
67
|
protected isSupportSoftUpdateContent(): boolean;
|
|
68
|
+
protected renderToolbar(container: HTMLElement): void;
|
|
67
69
|
}
|
|
@@ -24,7 +24,6 @@ export declare class SelectBase extends VisualizerBase implements IVisualizerWit
|
|
|
24
24
|
private _showOnlyPercentages;
|
|
25
25
|
private _percentagePrecision;
|
|
26
26
|
protected _answersOrder: string;
|
|
27
|
-
protected _supportSelection: boolean;
|
|
28
27
|
private _hideEmptyAnswers;
|
|
29
28
|
private _topN;
|
|
30
29
|
static topNValuesDefaults: number[];
|
|
@@ -113,4 +112,5 @@ export declare class SelectBase extends VisualizerBase implements IVisualizerWit
|
|
|
113
112
|
private static _stateProperties;
|
|
114
113
|
getState(): any;
|
|
115
114
|
setState(state: any): void;
|
|
115
|
+
resetState(): void;
|
|
116
116
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Question } from "survey-core";
|
|
2
2
|
import { SelectBase } from "./selectBase";
|
|
3
|
+
import { BooleanModel } from "./boolean";
|
|
3
4
|
import "./statistics-table.scss";
|
|
4
5
|
export declare class StatisticsTableAdapter {
|
|
5
6
|
private model;
|
|
6
|
-
constructor(model:
|
|
7
|
+
constructor(model: SelectBase);
|
|
7
8
|
create(container: HTMLElement): Promise<void>;
|
|
8
9
|
destroy(node: HTMLElement): void;
|
|
9
10
|
}
|
|
@@ -16,3 +17,12 @@ export declare class StatisticsTable extends SelectBase {
|
|
|
16
17
|
protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
|
|
17
18
|
destroy(): void;
|
|
18
19
|
}
|
|
20
|
+
export declare class StatisticsTableBoolean extends BooleanModel {
|
|
21
|
+
private _statisticsTableAdapter;
|
|
22
|
+
constructor(question: Question, data: Array<{
|
|
23
|
+
[index: string]: any;
|
|
24
|
+
}>, options?: Object, name?: string);
|
|
25
|
+
protected destroyContent(container: HTMLElement): void;
|
|
26
|
+
protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
|
|
27
|
+
destroy(): void;
|
|
28
|
+
}
|
|
@@ -254,13 +254,12 @@ export interface IVisualizationPanelOptions {
|
|
|
254
254
|
export declare class VisualizationPanel extends VisualizerBase {
|
|
255
255
|
protected questions: Array<any>;
|
|
256
256
|
private _elements;
|
|
257
|
-
|
|
257
|
+
private isRoot;
|
|
258
258
|
visualizers: Array<VisualizerBase>;
|
|
259
|
-
private haveCommercialLicense;
|
|
260
259
|
private renderedQuestionsCount;
|
|
261
260
|
constructor(questions: Array<any>, data: Array<{
|
|
262
261
|
[index: string]: any;
|
|
263
|
-
}>, options?: IVisualizationPanelOptions, _elements?: Array<IVisualizerPanelRenderedElement
|
|
262
|
+
}>, options?: IVisualizationPanelOptions, _elements?: Array<IVisualizerPanelRenderedElement>, isRoot?: boolean);
|
|
264
263
|
reorderVisibleElements(order: string[]): void;
|
|
265
264
|
private onAfterRenderQuestionCallback;
|
|
266
265
|
private onStateChangedCallback;
|
|
@@ -433,6 +432,7 @@ export declare class VisualizationPanel extends VisualizerBase {
|
|
|
433
432
|
*/
|
|
434
433
|
get state(): IState;
|
|
435
434
|
set state(newState: IState);
|
|
435
|
+
resetState(): void;
|
|
436
436
|
get permissions(): IPermission[];
|
|
437
437
|
set permissions(permissions: IPermission[]);
|
|
438
438
|
protected getCalculatedValuesCore(): Array<any>;
|
|
@@ -57,6 +57,7 @@ export declare class VisualizerBase implements IDataInfo {
|
|
|
57
57
|
[index: string]: any;
|
|
58
58
|
};
|
|
59
59
|
private _type?;
|
|
60
|
+
static haveCommercialLicense: boolean;
|
|
60
61
|
static suppressVisualizerStubRendering: boolean;
|
|
61
62
|
static chartAdapterType: any;
|
|
62
63
|
private _showToolbar;
|
|
@@ -64,6 +65,7 @@ export declare class VisualizerBase implements IDataInfo {
|
|
|
64
65
|
private _dataProvider;
|
|
65
66
|
private _getDataCore;
|
|
66
67
|
labelTruncateLength: number;
|
|
68
|
+
protected haveCommercialLicense: boolean;
|
|
67
69
|
protected renderResult: HTMLElement;
|
|
68
70
|
protected toolbarContainer: HTMLElement;
|
|
69
71
|
protected headerContainer: HTMLElement;
|
|
@@ -72,6 +74,7 @@ export declare class VisualizerBase implements IDataInfo {
|
|
|
72
74
|
protected _supportSelection: boolean;
|
|
73
75
|
protected _chartAdapter: IChartAdapter;
|
|
74
76
|
static otherCommentCollapsed: boolean;
|
|
77
|
+
protected _footerIsCollapsed: boolean;
|
|
75
78
|
/**
|
|
76
79
|
* An event that is raised after the visualizer's content is rendered.
|
|
77
80
|
*
|
|
@@ -261,6 +264,8 @@ export declare class VisualizerBase implements IDataInfo {
|
|
|
261
264
|
protected ensureQuestionIsReady(): Promise<void>;
|
|
262
265
|
protected renderContent(container: HTMLElement): void;
|
|
263
266
|
protected destroyFooter(container: HTMLElement): void;
|
|
267
|
+
get isFooterCollapsed(): boolean;
|
|
268
|
+
set isFooterCollapsed(newVal: boolean);
|
|
264
269
|
protected renderFooter(container: HTMLElement): void;
|
|
265
270
|
/**
|
|
266
271
|
* Renders the visualizer in a specified container.
|
|
@@ -314,6 +319,7 @@ export declare class VisualizerBase implements IDataInfo {
|
|
|
314
319
|
*
|
|
315
320
|
* > This method is overriden in classes descendant from `VisualizerBase`.
|
|
316
321
|
* @see setState
|
|
322
|
+
* @see resetState
|
|
317
323
|
* @see onStateChanged
|
|
318
324
|
*/
|
|
319
325
|
getState(): any;
|
|
@@ -324,9 +330,19 @@ export declare class VisualizerBase implements IDataInfo {
|
|
|
324
330
|
*
|
|
325
331
|
* > This method is overriden in classes descendant from `VisualizerBase`.
|
|
326
332
|
* @see getState
|
|
333
|
+
* @see resetState
|
|
327
334
|
* @see onStateChanged
|
|
328
335
|
*/
|
|
329
336
|
setState(state: any): void;
|
|
337
|
+
/**
|
|
338
|
+
* Resets the visualizer's state.
|
|
339
|
+
*
|
|
340
|
+
* > This method is overriden in classes descendant from `VisualizerBase`.
|
|
341
|
+
* @see getState
|
|
342
|
+
* @see setState
|
|
343
|
+
* @see onStateChanged
|
|
344
|
+
*/
|
|
345
|
+
resetState(): void;
|
|
330
346
|
/**
|
|
331
347
|
* Gets or sets the current locale.
|
|
332
348
|
*
|