survey-analytics 2.3.8 → 2.3.9
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 +1 -1
- package/fesm/shared2.mjs +9 -4
- package/fesm/shared2.mjs.map +1 -1
- package/fesm/survey.analytics.core.mjs +1 -1
- package/fesm/survey.analytics.mjs +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 +37 -2
- package/fesm/survey.analytics.tabulator.mjs.map +1 -1
- package/package.json +11 -2
- package/survey-analytics-tabulator.types/entries/tabulator.d.ts +2 -0
- package/survey-analytics-tabulator.types/tables/columnbuilder.d.ts +3 -0
- package/survey-analytics.types/visualizationComposite.d.ts +1 -1
- package/survey.analytics.core.css +1 -1
- package/survey.analytics.core.js +8 -3
- 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 +8 -3
- 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.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 +80 -5
- package/survey.analytics.tabulator.js.map +1 -1
- package/survey.analytics.tabulator.min.css +1 -1
- package/survey.analytics.tabulator.min.js +1 -1
- package/survey.analytics.tabulator.min.js.LICENSE.txt +1 -1
package/package.json
CHANGED
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
"build:types:core": "tsc --p tsconfig.summary.core.json && echo \"export * from './survey-analytics.types/entries/summary.core';\" >> build/survey.analytics.core.d.ts",
|
|
15
15
|
"build:types:summary": "tsc --p tsconfig.summary.json && echo \"export * from './survey-analytics.types/entries/summary';\" >> build/survey.analytics.d.ts",
|
|
16
16
|
"build:types:tabulator": "tsc --p tsconfig.tabulator.json && echo \"export * from './survey-analytics-tabulator.types/entries/tabulator';\" >> build/survey.analytics.tabulator.d.ts",
|
|
17
|
+
"build:types:mongo": "tsc --p tsconfig.types.mongo.json && echo \"export * from './survey-analytics.types/entries/mongo';\" >> build/survey.analytics.mongo.d.ts",
|
|
17
18
|
"lint": "eslint ./src --quiet",
|
|
18
19
|
"pre-push-check": "npm run lint && npm run test",
|
|
19
20
|
"pwinst": "playwright install chromium"
|
|
20
21
|
},
|
|
21
|
-
"version": "2.3.
|
|
22
|
+
"version": "2.3.9",
|
|
22
23
|
"name": "survey-analytics",
|
|
23
24
|
"description": "SurveyJS analytics Library.",
|
|
24
25
|
"main": "survey.analytics.js",
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"homepage": "https://surveyjs.io/",
|
|
42
43
|
"license": "SEE LICENSE IN LICENSE",
|
|
43
44
|
"dependencies": {
|
|
45
|
+
"mongodb": "^6.20.0",
|
|
44
46
|
"muuri": "^0.8.0",
|
|
45
47
|
"plotly.js-dist-min": "^2.28.0",
|
|
46
48
|
"tabulator-tables": "^6.2.5"
|
|
@@ -68,6 +70,7 @@
|
|
|
68
70
|
"jest-environment-jsdom": "^29.7.0",
|
|
69
71
|
"jest-junit": "^16.0.0",
|
|
70
72
|
"mini-css-extract-plugin": "^2.9.0",
|
|
73
|
+
"mongodb-memory-server": "^10.2.1",
|
|
71
74
|
"node-uuid": "1.4.7",
|
|
72
75
|
"playwright": "1.53.1",
|
|
73
76
|
"puppeteer": "22.13.1",
|
|
@@ -89,9 +92,10 @@
|
|
|
89
92
|
"webpack-merge": "^5.8.0"
|
|
90
93
|
},
|
|
91
94
|
"peerDependencies": {
|
|
95
|
+
"@types/mongodb": "^4.0.6",
|
|
92
96
|
"@types/plotly.js-dist-min": "^2.3.0",
|
|
93
97
|
"@types/tabulator-tables": "^6.2.3",
|
|
94
|
-
"survey-core": "2.3.
|
|
98
|
+
"survey-core": "2.3.9"
|
|
95
99
|
},
|
|
96
100
|
"husky": {
|
|
97
101
|
"hooks": {
|
|
@@ -109,6 +113,11 @@
|
|
|
109
113
|
"import": "./fesm/survey.analytics.core.mjs",
|
|
110
114
|
"require": "./survey.analytics.core.js"
|
|
111
115
|
},
|
|
116
|
+
"./survey.analytics.mongo": {
|
|
117
|
+
"types": "./survey.analytics.mongo.d.ts",
|
|
118
|
+
"import": "./fesm/survey.analytics.mongo.mjs",
|
|
119
|
+
"require": "./survey.analytics.mongo.js"
|
|
120
|
+
},
|
|
112
121
|
"./*.css": "./*.css",
|
|
113
122
|
"./survey.analytics.tabulator": {
|
|
114
123
|
"types": "./survey.analytics.tabulator.d.ts",
|
|
@@ -19,5 +19,7 @@ import "../tables/extensions/columnextensions";
|
|
|
19
19
|
import "../tables/extensions/detailsextensions";
|
|
20
20
|
export * from "../tables/table";
|
|
21
21
|
export * from "../tables/tabulator";
|
|
22
|
+
export * from "../tables/columnbuilder";
|
|
23
|
+
export * from "../tables/columns";
|
|
22
24
|
export { TableExtensions } from "../tables/extensions/tableextensions";
|
|
23
25
|
export { DocumentHelper } from "../utils/index";
|
|
@@ -40,5 +40,8 @@ export declare class CustomColumnsBuilder extends DefaultColumnsBuilder<Question
|
|
|
40
40
|
protected createColumn(question: QuestionCustomModel, table: Table): CustomQuestionColumn;
|
|
41
41
|
}
|
|
42
42
|
export declare class CompositeColumnsBuilder extends DefaultColumnsBuilder<QuestionCompositeModel> {
|
|
43
|
+
static ShowAsSeparateColumns: boolean;
|
|
44
|
+
protected getDisplayName(question: QuestionCompositeModel, table: Table): string;
|
|
45
|
+
protected buildColumnsCore(question: QuestionCompositeModel, table: Table): Array<IColumn>;
|
|
43
46
|
protected createColumn(question: QuestionCompositeModel, table: Table): CompositeQuestionColumn;
|
|
44
47
|
}
|
package/survey.analytics.core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - SurveyJS Dashboard library v2.3.
|
|
2
|
+
* surveyjs - SurveyJS Dashboard library v2.3.9
|
|
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
|
*/
|
|
@@ -11922,6 +11922,11 @@ var SelectBase = /** @class */ (function (_super) {
|
|
|
11922
11922
|
}
|
|
11923
11923
|
};
|
|
11924
11924
|
SelectBase.prototype.getSelectedItemByText = function (itemText) {
|
|
11925
|
+
var _a;
|
|
11926
|
+
if (this.question instanceof survey_core__WEBPACK_IMPORTED_MODULE_1__.QuestionRatingModel) {
|
|
11927
|
+
var rateValues = this.question.rateValues;
|
|
11928
|
+
return (_a = rateValues === null || rateValues === void 0 ? void 0 : rateValues.filter(function (choice) { return choice.text === itemText; })[0]) !== null && _a !== void 0 ? _a : new survey_core__WEBPACK_IMPORTED_MODULE_1__.ItemValue(parseFloat(itemText), itemText);
|
|
11929
|
+
}
|
|
11925
11930
|
var selBase = this.question;
|
|
11926
11931
|
if (this.question.hasOther && itemText == selBase.otherText) {
|
|
11927
11932
|
return selBase.otherItem;
|
|
@@ -13307,9 +13312,9 @@ var VisualizationComposite = /** @class */ (function (_super) {
|
|
|
13307
13312
|
return _super.call(this, question, data, options, name || "composite") || this;
|
|
13308
13313
|
}
|
|
13309
13314
|
VisualizationComposite.prototype.getQuestions = function () {
|
|
13310
|
-
var
|
|
13315
|
+
var questionComposite = this.question;
|
|
13311
13316
|
var innerQuestions = [];
|
|
13312
|
-
|
|
13317
|
+
questionComposite.contentPanel.addQuestionsToList(innerQuestions);
|
|
13313
13318
|
return innerQuestions;
|
|
13314
13319
|
};
|
|
13315
13320
|
return VisualizationComposite;
|