survey-analytics 1.11.14 → 1.12.2
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 +27 -15
- 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.2",
|
|
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.2"
|
|
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.2
|
|
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
|
*/
|
|
@@ -8906,11 +8906,15 @@ var MuuriLayoutEngine = /** @class */ (function (_super) {
|
|
|
8906
8906
|
};
|
|
8907
8907
|
MuuriLayoutEngine.prototype.updateCore = function () {
|
|
8908
8908
|
var _this = this;
|
|
8909
|
+
if (!this._muuri)
|
|
8910
|
+
return;
|
|
8909
8911
|
if (this._layoutingTimer !== undefined) {
|
|
8910
8912
|
clearTimeout(this._layoutingTimer);
|
|
8911
8913
|
}
|
|
8912
8914
|
this._layoutingTimer = setTimeout(function () {
|
|
8913
8915
|
_this._layoutingTimer = undefined;
|
|
8916
|
+
if (!_this._muuri)
|
|
8917
|
+
return;
|
|
8914
8918
|
_this._muuri.refreshItems();
|
|
8915
8919
|
_this._muuri.layout();
|
|
8916
8920
|
}, 10);
|
|
@@ -9674,11 +9678,11 @@ var HistogramPlotly = /** @class */ (function (_super) {
|
|
|
9674
9678
|
switch (_a.label) {
|
|
9675
9679
|
case 0:
|
|
9676
9680
|
chartNode = _utils__WEBPACK_IMPORTED_MODULE_4__.DocumentHelper.createElement("div");
|
|
9681
|
+
container.innerHTML = "";
|
|
9682
|
+
container.appendChild(chartNode);
|
|
9677
9683
|
return [4 /*yield*/, this._chartAdapter.create(chartNode)];
|
|
9678
9684
|
case 1:
|
|
9679
9685
|
_a.sent();
|
|
9680
|
-
container.innerHTML = "";
|
|
9681
|
-
container.appendChild(chartNode);
|
|
9682
9686
|
return [2 /*return*/, container];
|
|
9683
9687
|
}
|
|
9684
9688
|
});
|
|
@@ -9794,11 +9798,11 @@ var MatrixPlotly = /** @class */ (function (_super) {
|
|
|
9794
9798
|
switch (_a.label) {
|
|
9795
9799
|
case 0:
|
|
9796
9800
|
chartNode = _utils__WEBPACK_IMPORTED_MODULE_4__.DocumentHelper.createElement("div");
|
|
9801
|
+
container.innerHTML = "";
|
|
9802
|
+
container.appendChild(chartNode);
|
|
9797
9803
|
return [4 /*yield*/, this._chartAdapter.create(chartNode)];
|
|
9798
9804
|
case 1:
|
|
9799
9805
|
_a.sent();
|
|
9800
|
-
container.innerHTML = "";
|
|
9801
|
-
container.appendChild(chartNode);
|
|
9802
9806
|
return [2 /*return*/, container];
|
|
9803
9807
|
}
|
|
9804
9808
|
});
|
|
@@ -9854,11 +9858,11 @@ var MatrixDropdownGroupedPlotly = /** @class */ (function (_super) {
|
|
|
9854
9858
|
switch (_a.label) {
|
|
9855
9859
|
case 0:
|
|
9856
9860
|
chartNode = _utils__WEBPACK_IMPORTED_MODULE_4__.DocumentHelper.createElement("div");
|
|
9861
|
+
container.innerHTML = "";
|
|
9862
|
+
container.appendChild(chartNode);
|
|
9857
9863
|
return [4 /*yield*/, this._chartAdapter.create(chartNode)];
|
|
9858
9864
|
case 1:
|
|
9859
9865
|
_a.sent();
|
|
9860
|
-
container.innerHTML = "";
|
|
9861
|
-
container.appendChild(chartNode);
|
|
9862
9866
|
return [2 /*return*/, container];
|
|
9863
9867
|
}
|
|
9864
9868
|
});
|
|
@@ -9974,7 +9978,7 @@ var PlotlyGaugeAdapter = /** @class */ (function () {
|
|
|
9974
9978
|
});
|
|
9975
9979
|
PlotlyGaugeAdapter.prototype.create = function (chartNode) {
|
|
9976
9980
|
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;
|
|
9981
|
+
var question, _a, level, minValue, maxValue, rateValues, colors, data, chartMargin, layout, config, options, plot;
|
|
9978
9982
|
var _this = this;
|
|
9979
9983
|
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__generator)(this, function (_b) {
|
|
9980
9984
|
switch (_b.label) {
|
|
@@ -10055,13 +10059,17 @@ var PlotlyGaugeAdapter = /** @class */ (function () {
|
|
|
10055
10059
|
config: config,
|
|
10056
10060
|
};
|
|
10057
10061
|
_setup__WEBPACK_IMPORTED_MODULE_5__.PlotlySetup.onPlotCreating.fire(this.model, options);
|
|
10058
|
-
|
|
10062
|
+
plot = plotly_js_dist_min__WEBPACK_IMPORTED_MODULE_6___default().newPlot(chartNode, options.data, options.layout, options.config);
|
|
10063
|
+
// setTimeout(() => Plotly.Plots.resize(chartNode), 10);
|
|
10064
|
+
return [2 /*return*/, plot];
|
|
10059
10065
|
}
|
|
10060
10066
|
});
|
|
10061
10067
|
});
|
|
10062
10068
|
};
|
|
10063
10069
|
PlotlyGaugeAdapter.prototype.destroy = function (node) {
|
|
10064
|
-
|
|
10070
|
+
if (!!node) {
|
|
10071
|
+
plotly_js_dist_min__WEBPACK_IMPORTED_MODULE_6___default().purge(node);
|
|
10072
|
+
}
|
|
10065
10073
|
this._chart = undefined;
|
|
10066
10074
|
};
|
|
10067
10075
|
return PlotlyGaugeAdapter;
|
|
@@ -10087,11 +10095,11 @@ var GaugePlotly = /** @class */ (function (_super) {
|
|
|
10087
10095
|
switch (_a.label) {
|
|
10088
10096
|
case 0:
|
|
10089
10097
|
chartNode = _utils_index__WEBPACK_IMPORTED_MODULE_3__.DocumentHelper.createElement("div");
|
|
10098
|
+
container.innerHTML = "";
|
|
10099
|
+
container.appendChild(chartNode);
|
|
10090
10100
|
return [4 /*yield*/, this._chartAdapter.create(chartNode)];
|
|
10091
10101
|
case 1:
|
|
10092
10102
|
_a.sent();
|
|
10093
|
-
container.innerHTML = "";
|
|
10094
|
-
container.appendChild(chartNode);
|
|
10095
10103
|
return [2 /*return*/, container];
|
|
10096
10104
|
}
|
|
10097
10105
|
});
|
|
@@ -10237,6 +10245,7 @@ var PlotlyChartAdapter = /** @class */ (function () {
|
|
|
10237
10245
|
var dragLayer = getDragLayer();
|
|
10238
10246
|
dragLayer && (dragLayer.style.cursor = "");
|
|
10239
10247
|
});
|
|
10248
|
+
// setTimeout(() => Plotly.Plots.resize(chartNode), 10);
|
|
10240
10249
|
this._chart = plot;
|
|
10241
10250
|
return [2 /*return*/, plot];
|
|
10242
10251
|
}
|
|
@@ -10244,7 +10253,9 @@ var PlotlyChartAdapter = /** @class */ (function () {
|
|
|
10244
10253
|
});
|
|
10245
10254
|
};
|
|
10246
10255
|
PlotlyChartAdapter.prototype.destroy = function (node) {
|
|
10247
|
-
|
|
10256
|
+
if (!!node) {
|
|
10257
|
+
plotly_js_dist_min__WEBPACK_IMPORTED_MODULE_6___default().purge(node);
|
|
10258
|
+
}
|
|
10248
10259
|
this._chart = undefined;
|
|
10249
10260
|
};
|
|
10250
10261
|
return PlotlyChartAdapter;
|
|
@@ -10280,11 +10291,11 @@ var SelectBasePlotly = /** @class */ (function (_super) {
|
|
|
10280
10291
|
switch (_a.label) {
|
|
10281
10292
|
case 0:
|
|
10282
10293
|
chartNode = _utils__WEBPACK_IMPORTED_MODULE_4__.DocumentHelper.createElement("div");
|
|
10294
|
+
container.innerHTML = "";
|
|
10295
|
+
container.appendChild(chartNode);
|
|
10283
10296
|
return [4 /*yield*/, this._chartAdapter.create(chartNode)];
|
|
10284
10297
|
case 1:
|
|
10285
10298
|
_a.sent();
|
|
10286
|
-
container.innerHTML = "";
|
|
10287
|
-
container.appendChild(chartNode);
|
|
10288
10299
|
return [2 /*return*/, container];
|
|
10289
10300
|
}
|
|
10290
10301
|
});
|
|
@@ -10593,6 +10604,7 @@ var PlotlySetup = /** @class */ (function () {
|
|
|
10593
10604
|
}
|
|
10594
10605
|
if (!model.getValueType || model.getValueType() != "date") {
|
|
10595
10606
|
layout.xaxis = {
|
|
10607
|
+
automargin: true,
|
|
10596
10608
|
type: "category",
|
|
10597
10609
|
};
|
|
10598
10610
|
}
|