survey-analytics 1.11.14 → 1.12.1
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 +2 -2
- 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 +17 -13
- 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 +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.
|
|
23
|
+
"version": "1.12.1",
|
|
24
24
|
"name": "survey-analytics",
|
|
25
25
|
"description": "SurveyJS analytics Library.",
|
|
26
26
|
"main": "survey.analytics.js",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
|
103
103
|
"@types/plotly.js-dist-min": "^2.3.0",
|
|
104
|
-
"survey-core": "1.
|
|
104
|
+
"survey-core": "1.12.1"
|
|
105
105
|
},
|
|
106
106
|
"husky": {
|
|
107
107
|
"hooks": {
|
package/survey.analytics.css
CHANGED
package/survey.analytics.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - SurveyJS Dashboard library v1.
|
|
2
|
+
* surveyjs - SurveyJS Dashboard library v1.12.1
|
|
3
3
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -9674,11 +9674,11 @@ var HistogramPlotly = /** @class */ (function (_super) {
|
|
|
9674
9674
|
switch (_a.label) {
|
|
9675
9675
|
case 0:
|
|
9676
9676
|
chartNode = _utils__WEBPACK_IMPORTED_MODULE_4__.DocumentHelper.createElement("div");
|
|
9677
|
+
container.innerHTML = "";
|
|
9678
|
+
container.appendChild(chartNode);
|
|
9677
9679
|
return [4 /*yield*/, this._chartAdapter.create(chartNode)];
|
|
9678
9680
|
case 1:
|
|
9679
9681
|
_a.sent();
|
|
9680
|
-
container.innerHTML = "";
|
|
9681
|
-
container.appendChild(chartNode);
|
|
9682
9682
|
return [2 /*return*/, container];
|
|
9683
9683
|
}
|
|
9684
9684
|
});
|
|
@@ -9794,11 +9794,11 @@ var MatrixPlotly = /** @class */ (function (_super) {
|
|
|
9794
9794
|
switch (_a.label) {
|
|
9795
9795
|
case 0:
|
|
9796
9796
|
chartNode = _utils__WEBPACK_IMPORTED_MODULE_4__.DocumentHelper.createElement("div");
|
|
9797
|
+
container.innerHTML = "";
|
|
9798
|
+
container.appendChild(chartNode);
|
|
9797
9799
|
return [4 /*yield*/, this._chartAdapter.create(chartNode)];
|
|
9798
9800
|
case 1:
|
|
9799
9801
|
_a.sent();
|
|
9800
|
-
container.innerHTML = "";
|
|
9801
|
-
container.appendChild(chartNode);
|
|
9802
9802
|
return [2 /*return*/, container];
|
|
9803
9803
|
}
|
|
9804
9804
|
});
|
|
@@ -9854,11 +9854,11 @@ var MatrixDropdownGroupedPlotly = /** @class */ (function (_super) {
|
|
|
9854
9854
|
switch (_a.label) {
|
|
9855
9855
|
case 0:
|
|
9856
9856
|
chartNode = _utils__WEBPACK_IMPORTED_MODULE_4__.DocumentHelper.createElement("div");
|
|
9857
|
+
container.innerHTML = "";
|
|
9858
|
+
container.appendChild(chartNode);
|
|
9857
9859
|
return [4 /*yield*/, this._chartAdapter.create(chartNode)];
|
|
9858
9860
|
case 1:
|
|
9859
9861
|
_a.sent();
|
|
9860
|
-
container.innerHTML = "";
|
|
9861
|
-
container.appendChild(chartNode);
|
|
9862
9862
|
return [2 /*return*/, container];
|
|
9863
9863
|
}
|
|
9864
9864
|
});
|
|
@@ -9974,7 +9974,7 @@ var PlotlyGaugeAdapter = /** @class */ (function () {
|
|
|
9974
9974
|
});
|
|
9975
9975
|
PlotlyGaugeAdapter.prototype.create = function (chartNode) {
|
|
9976
9976
|
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function () {
|
|
9977
|
-
var question, _a, level, minValue, maxValue, rateValues, colors, data, chartMargin, layout, config, options;
|
|
9977
|
+
var question, _a, level, minValue, maxValue, rateValues, colors, data, chartMargin, layout, config, options, plot;
|
|
9978
9978
|
var _this = this;
|
|
9979
9979
|
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__generator)(this, function (_b) {
|
|
9980
9980
|
switch (_b.label) {
|
|
@@ -10055,7 +10055,9 @@ var PlotlyGaugeAdapter = /** @class */ (function () {
|
|
|
10055
10055
|
config: config,
|
|
10056
10056
|
};
|
|
10057
10057
|
_setup__WEBPACK_IMPORTED_MODULE_5__.PlotlySetup.onPlotCreating.fire(this.model, options);
|
|
10058
|
-
|
|
10058
|
+
plot = plotly_js_dist_min__WEBPACK_IMPORTED_MODULE_6___default().newPlot(chartNode, options.data, options.layout, options.config);
|
|
10059
|
+
// setTimeout(() => Plotly.Plots.resize(chartNode), 10);
|
|
10060
|
+
return [2 /*return*/, plot];
|
|
10059
10061
|
}
|
|
10060
10062
|
});
|
|
10061
10063
|
});
|
|
@@ -10087,11 +10089,11 @@ var GaugePlotly = /** @class */ (function (_super) {
|
|
|
10087
10089
|
switch (_a.label) {
|
|
10088
10090
|
case 0:
|
|
10089
10091
|
chartNode = _utils_index__WEBPACK_IMPORTED_MODULE_3__.DocumentHelper.createElement("div");
|
|
10092
|
+
container.innerHTML = "";
|
|
10093
|
+
container.appendChild(chartNode);
|
|
10090
10094
|
return [4 /*yield*/, this._chartAdapter.create(chartNode)];
|
|
10091
10095
|
case 1:
|
|
10092
10096
|
_a.sent();
|
|
10093
|
-
container.innerHTML = "";
|
|
10094
|
-
container.appendChild(chartNode);
|
|
10095
10097
|
return [2 /*return*/, container];
|
|
10096
10098
|
}
|
|
10097
10099
|
});
|
|
@@ -10237,6 +10239,7 @@ var PlotlyChartAdapter = /** @class */ (function () {
|
|
|
10237
10239
|
var dragLayer = getDragLayer();
|
|
10238
10240
|
dragLayer && (dragLayer.style.cursor = "");
|
|
10239
10241
|
});
|
|
10242
|
+
// setTimeout(() => Plotly.Plots.resize(chartNode), 10);
|
|
10240
10243
|
this._chart = plot;
|
|
10241
10244
|
return [2 /*return*/, plot];
|
|
10242
10245
|
}
|
|
@@ -10280,11 +10283,11 @@ var SelectBasePlotly = /** @class */ (function (_super) {
|
|
|
10280
10283
|
switch (_a.label) {
|
|
10281
10284
|
case 0:
|
|
10282
10285
|
chartNode = _utils__WEBPACK_IMPORTED_MODULE_4__.DocumentHelper.createElement("div");
|
|
10286
|
+
container.innerHTML = "";
|
|
10287
|
+
container.appendChild(chartNode);
|
|
10283
10288
|
return [4 /*yield*/, this._chartAdapter.create(chartNode)];
|
|
10284
10289
|
case 1:
|
|
10285
10290
|
_a.sent();
|
|
10286
|
-
container.innerHTML = "";
|
|
10287
|
-
container.appendChild(chartNode);
|
|
10288
10291
|
return [2 /*return*/, container];
|
|
10289
10292
|
}
|
|
10290
10293
|
});
|
|
@@ -10593,6 +10596,7 @@ var PlotlySetup = /** @class */ (function () {
|
|
|
10593
10596
|
}
|
|
10594
10597
|
if (!model.getValueType || model.getValueType() != "date") {
|
|
10595
10598
|
layout.xaxis = {
|
|
10599
|
+
automargin: true,
|
|
10596
10600
|
type: "category",
|
|
10597
10601
|
};
|
|
10598
10602
|
}
|