survey-analytics 1.12.54 → 1.12.55
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 +479 -15
- package/fesm/shared.mjs.map +1 -1
- package/fesm/shared2.mjs +783 -247
- package/fesm/shared2.mjs.map +1 -1
- package/fesm/survey.analytics.core.mjs +2 -2
- package/fesm/survey.analytics.mjs +27 -8
- package/fesm/survey.analytics.mjs.map +1 -1
- package/fesm/survey.analytics.mongo.mjs +221 -0
- package/fesm/survey.analytics.mongo.mjs.map +1 -0
- package/fesm/survey.analytics.tabulator.mjs +68 -26
- package/fesm/survey.analytics.tabulator.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-analytics-tabulator.types/analytics-localization/finnish.d.ts +16 -0
- package/survey-analytics-tabulator.types/analytics-localization/swedish.d.ts +16 -0
- package/survey-analytics.types/analytics-localization/finnish.d.ts +16 -0
- package/survey-analytics.types/analytics-localization/swedish.d.ts +16 -0
- package/survey-analytics.types/entries/mongo.d.ts +1 -0
- package/survey-analytics.types/entries/summary.core.d.ts +1 -0
- package/survey-analytics.types/mongo/index.d.ts +16 -0
- package/survey-analytics.types/mongo/pipelines.d.ts +1 -0
- package/survey-analytics.types/mongo/result-transformers.d.ts +35 -0
- package/survey-analytics.types/statisticCalculators.d.ts +12 -2
- package/survey-analytics.types/visualizationComposite.d.ts +8 -0
- package/survey.analytics.core.css +1 -1
- package/survey.analytics.core.d.ts +1 -0
- package/survey.analytics.core.js +1365 -271
- 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.datatables.css +1 -1
- package/survey.analytics.datatables.js +1 -1
- package/survey.analytics.datatables.min.css +1 -1
- package/survey.analytics.datatables.min.js.LICENSE.txt +1 -1
- package/survey.analytics.js +1 -1
- package/survey.analytics.min.css +1 -1
- package/survey.analytics.min.js.LICENSE.txt +1 -1
- package/survey.analytics.mongo.d.ts +1 -0
- package/survey.analytics.mongo.js +359 -0
- package/survey.analytics.mongo.js.map +1 -0
- package/survey.analytics.mongo.min.js +2 -0
- package/survey.analytics.mongo.min.js.LICENSE.txt +5 -0
- package/survey.analytics.tabulator.css +1 -1
- package/survey.analytics.tabulator.js +1 -1
- package/survey.analytics.tabulator.min.css +1 -1
- package/survey.analytics.tabulator.min.js.LICENSE.txt +1 -1
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.12.
|
|
23
|
+
"version": "1.12.55",
|
|
24
24
|
"name": "survey-analytics",
|
|
25
25
|
"description": "SurveyJS analytics Library.",
|
|
26
26
|
"main": "survey.analytics.js",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
104
|
"@types/plotly.js-dist-min": "^2.3.0",
|
|
105
|
-
"survey-core": "1.12.
|
|
105
|
+
"survey-core": "1.12.55"
|
|
106
106
|
},
|
|
107
107
|
"husky": {
|
|
108
108
|
"hooks": {
|
|
@@ -81,4 +81,20 @@ export declare var finnishStrings: {
|
|
|
81
81
|
axisXAlternativeSelectorTitle: string;
|
|
82
82
|
axisYAlternativeSelectorTitle: string;
|
|
83
83
|
notSelected: string;
|
|
84
|
+
intervalMode_default: string;
|
|
85
|
+
intervalMode_decades: string;
|
|
86
|
+
intervalMode_years: string;
|
|
87
|
+
intervalMode_quarters: string;
|
|
88
|
+
intervalMode_months: string;
|
|
89
|
+
intervalMode_days: string;
|
|
90
|
+
intervalMode_custom: string;
|
|
91
|
+
intervalMode_auto: string;
|
|
92
|
+
intervalModeTitle: string;
|
|
93
|
+
noRunningTotals: string;
|
|
94
|
+
runningTotals: string;
|
|
95
|
+
groupDateSeries: string;
|
|
96
|
+
ungroupDateSeries: string;
|
|
97
|
+
noneAggregateText: string;
|
|
98
|
+
selectAggregateText: string;
|
|
99
|
+
groupedYearsAxisTitle: string;
|
|
84
100
|
};
|
|
@@ -81,4 +81,20 @@ export declare var swedishStrings: {
|
|
|
81
81
|
axisXAlternativeSelectorTitle: string;
|
|
82
82
|
axisYAlternativeSelectorTitle: string;
|
|
83
83
|
notSelected: string;
|
|
84
|
+
intervalMode_default: string;
|
|
85
|
+
intervalMode_decades: string;
|
|
86
|
+
intervalMode_years: string;
|
|
87
|
+
intervalMode_quarters: string;
|
|
88
|
+
intervalMode_months: string;
|
|
89
|
+
intervalMode_days: string;
|
|
90
|
+
intervalMode_custom: string;
|
|
91
|
+
intervalMode_auto: string;
|
|
92
|
+
intervalModeTitle: string;
|
|
93
|
+
noRunningTotals: string;
|
|
94
|
+
runningTotals: string;
|
|
95
|
+
groupDateSeries: string;
|
|
96
|
+
ungroupDateSeries: string;
|
|
97
|
+
noneAggregateText: string;
|
|
98
|
+
selectAggregateText: string;
|
|
99
|
+
groupedYearsAxisTitle: string;
|
|
84
100
|
};
|
|
@@ -81,4 +81,20 @@ export declare var finnishStrings: {
|
|
|
81
81
|
axisXAlternativeSelectorTitle: string;
|
|
82
82
|
axisYAlternativeSelectorTitle: string;
|
|
83
83
|
notSelected: string;
|
|
84
|
+
intervalMode_default: string;
|
|
85
|
+
intervalMode_decades: string;
|
|
86
|
+
intervalMode_years: string;
|
|
87
|
+
intervalMode_quarters: string;
|
|
88
|
+
intervalMode_months: string;
|
|
89
|
+
intervalMode_days: string;
|
|
90
|
+
intervalMode_custom: string;
|
|
91
|
+
intervalMode_auto: string;
|
|
92
|
+
intervalModeTitle: string;
|
|
93
|
+
noRunningTotals: string;
|
|
94
|
+
runningTotals: string;
|
|
95
|
+
groupDateSeries: string;
|
|
96
|
+
ungroupDateSeries: string;
|
|
97
|
+
noneAggregateText: string;
|
|
98
|
+
selectAggregateText: string;
|
|
99
|
+
groupedYearsAxisTitle: string;
|
|
84
100
|
};
|
|
@@ -81,4 +81,20 @@ export declare var swedishStrings: {
|
|
|
81
81
|
axisXAlternativeSelectorTitle: string;
|
|
82
82
|
axisYAlternativeSelectorTitle: string;
|
|
83
83
|
notSelected: string;
|
|
84
|
+
intervalMode_default: string;
|
|
85
|
+
intervalMode_decades: string;
|
|
86
|
+
intervalMode_years: string;
|
|
87
|
+
intervalMode_quarters: string;
|
|
88
|
+
intervalMode_months: string;
|
|
89
|
+
intervalMode_days: string;
|
|
90
|
+
intervalMode_custom: string;
|
|
91
|
+
intervalMode_auto: string;
|
|
92
|
+
intervalModeTitle: string;
|
|
93
|
+
noRunningTotals: string;
|
|
94
|
+
runningTotals: string;
|
|
95
|
+
groupDateSeries: string;
|
|
96
|
+
ungroupDateSeries: string;
|
|
97
|
+
noneAggregateText: string;
|
|
98
|
+
selectAggregateText: string;
|
|
99
|
+
groupedYearsAxisTitle: string;
|
|
84
100
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../mongo";
|
|
@@ -27,6 +27,7 @@ export * from "../visualizationPanelDynamic";
|
|
|
27
27
|
export * from "../visualizationMatrixDynamic";
|
|
28
28
|
export * from "../visualizationMatrixDropdown";
|
|
29
29
|
export * from "../alternativeVizualizersWrapper";
|
|
30
|
+
export * from "../visualizationComposite";
|
|
30
31
|
export * from "../wordcloud/wordcloud";
|
|
31
32
|
export * from "../wordcloud/stopwords/index";
|
|
32
33
|
export * from "../text";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Db } from "mongodb";
|
|
2
|
+
export interface IFilterItem {
|
|
3
|
+
field: string;
|
|
4
|
+
value: any;
|
|
5
|
+
}
|
|
6
|
+
export declare class MongoDbAdapter {
|
|
7
|
+
private db;
|
|
8
|
+
private getId;
|
|
9
|
+
constructor(db: Db, getId: () => string);
|
|
10
|
+
create(collectionName: string, object: any): Promise<unknown>;
|
|
11
|
+
retrieve(collectionName: string, filter: Array<IFilterItem>): Promise<unknown>;
|
|
12
|
+
update(collectionName: string, object: any): Promise<unknown>;
|
|
13
|
+
delete(collectionName: string, id: any): Promise<unknown>;
|
|
14
|
+
retrievePaginated(collectionName: string, filter: any, order: any, offset: number, limit: number): Promise<unknown>;
|
|
15
|
+
retrieveSummary(collectionName: string, surveyId: string, questionId: string, questionType: string, visualizerType: string, filter: Array<IFilterItem>): Promise<unknown>;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createPipeline(surveyId: string, questionId: string, visualizerType: string, questionType: string): any[];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare function choiceTransformationPipeline(result: any): {
|
|
2
|
+
data: {};
|
|
3
|
+
totalCount: number;
|
|
4
|
+
};
|
|
5
|
+
declare function numberTransformationPipeline(result: any): {
|
|
6
|
+
value: number;
|
|
7
|
+
minValue: number;
|
|
8
|
+
maxValue: number;
|
|
9
|
+
data?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
data: {
|
|
12
|
+
value: any;
|
|
13
|
+
minValue: any;
|
|
14
|
+
maxValue: any;
|
|
15
|
+
};
|
|
16
|
+
value?: undefined;
|
|
17
|
+
minValue?: undefined;
|
|
18
|
+
maxValue?: undefined;
|
|
19
|
+
};
|
|
20
|
+
declare function histogramTransformationPipeline(result: any): {
|
|
21
|
+
data: any[];
|
|
22
|
+
intervals: any;
|
|
23
|
+
totalCount: number;
|
|
24
|
+
};
|
|
25
|
+
export declare const transformers: {
|
|
26
|
+
boolean: typeof choiceTransformationPipeline;
|
|
27
|
+
radiogroup: typeof choiceTransformationPipeline;
|
|
28
|
+
dropdown: typeof choiceTransformationPipeline;
|
|
29
|
+
checkbox: typeof choiceTransformationPipeline;
|
|
30
|
+
tagbox: typeof choiceTransformationPipeline;
|
|
31
|
+
number: typeof numberTransformationPipeline;
|
|
32
|
+
rating: typeof numberTransformationPipeline;
|
|
33
|
+
histogram: typeof histogramTransformationPipeline;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { IDataInfo } from "./visualizerBase";
|
|
2
2
|
export declare function defaultStatisticsCalculator(data: Array<any>, dataInfo: IDataInfo): Array<any>;
|
|
3
|
-
export declare function histogramStatisticsCalculator(data:
|
|
4
|
-
|
|
3
|
+
export declare function histogramStatisticsCalculator(data: {
|
|
4
|
+
[series: string]: Array<{
|
|
5
|
+
continuous: number;
|
|
6
|
+
row: any;
|
|
7
|
+
}>;
|
|
8
|
+
}, intervals: Array<{
|
|
9
|
+
start: number;
|
|
10
|
+
end: number;
|
|
11
|
+
label: string;
|
|
12
|
+
}>, dataInfo: IDataInfo, aggregateDataNames?: any[]): Array<any>;
|
|
13
|
+
export declare function mathStatisticsCalculator(data: Array<any>, dataInfo: IDataInfo): number[];
|
|
14
|
+
export declare function getNestedDataRows(dataRow: any, dataInfo: IDataInfo): Array<any>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Question } from "survey-core";
|
|
2
|
+
import { VisualizationPanelDynamic } from "./visualizationPanelDynamic";
|
|
3
|
+
export declare class VisualizationComposite extends VisualizationPanelDynamic {
|
|
4
|
+
constructor(question: Question, data: Array<{
|
|
5
|
+
[index: string]: any;
|
|
6
|
+
}>, options?: Object, name?: string);
|
|
7
|
+
getQuestions(): Array<Question>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './survey-analytics.types/entries/summary.core';
|