react-autoql 3.4.8 → 3.4.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/dist/autoql.esm.css +2385 -2385
- package/dist/autoql.esm.js +6 -9
- package/package.json +1 -1
package/dist/autoql.esm.js
CHANGED
|
@@ -925,7 +925,6 @@ var formatChartLabel = function formatChartLabel(_ref) {
|
|
|
925
925
|
{
|
|
926
926
|
if (Number(d)) {
|
|
927
927
|
var p = Number(d) / 100;
|
|
928
|
-
console.log(p);
|
|
929
928
|
formattedLabel = Numbro(p).format({
|
|
930
929
|
output: 'percent',
|
|
931
930
|
mantissa: 0
|
|
@@ -1215,7 +1214,7 @@ var supportsPieChart = function supportsPieChart(columns, chartData) {
|
|
|
1215
1214
|
|
|
1216
1215
|
return true;
|
|
1217
1216
|
};
|
|
1218
|
-
var getSupportedDisplayTypes = function getSupportedDisplayTypes(response, chartData) {
|
|
1217
|
+
var getSupportedDisplayTypes = function getSupportedDisplayTypes(response, chartData, shouldExcludePieChart) {
|
|
1219
1218
|
try {
|
|
1220
1219
|
if (!_get(response, 'data.data.display_type')) {
|
|
1221
1220
|
return [];
|
|
@@ -1252,7 +1251,7 @@ var getSupportedDisplayTypes = function getSupportedDisplayTypes(response, chart
|
|
|
1252
1251
|
// column, we should be able to chart anything
|
|
1253
1252
|
var _supportedDisplayTypes = ['table', 'column', 'bar', 'line'];
|
|
1254
1253
|
|
|
1255
|
-
if (supportsPieChart(columns, chartData)) {
|
|
1254
|
+
if (supportsPieChart(columns, chartData) && !shouldExcludePieChart) {
|
|
1256
1255
|
_supportedDisplayTypes.push('pie');
|
|
1257
1256
|
} // create pivot based on month and year
|
|
1258
1257
|
|
|
@@ -12942,8 +12941,8 @@ var NotificationItem = /*#__PURE__*/function (_React$Component) {
|
|
|
12942
12941
|
var queryResponse = {
|
|
12943
12942
|
data: _this.props.activeNotificationData
|
|
12944
12943
|
};
|
|
12945
|
-
_this.supportedDisplayTypes = getSupportedDisplayTypes(queryResponse);
|
|
12946
|
-
var displayType = _this.supportedDisplayTypes.includes('column') ? 'column' : getDefaultDisplayType(queryResponse, _this.props.autoChartAggregations);
|
|
12944
|
+
_this.supportedDisplayTypes = getSupportedDisplayTypes(queryResponse, undefined, true);
|
|
12945
|
+
var displayType = _this.props.autoChartAggregations && _this.supportedDisplayTypes.includes('column') ? 'column' : getDefaultDisplayType(queryResponse, _this.props.autoChartAggregations);
|
|
12947
12946
|
|
|
12948
12947
|
_this.setState({
|
|
12949
12948
|
displayType: displayType
|
|
@@ -13272,7 +13271,7 @@ _defineProperty(NotificationItem, "defaultProps", {
|
|
|
13272
13271
|
themeConfig: themeConfigDefault,
|
|
13273
13272
|
activeNotificationData: undefined,
|
|
13274
13273
|
showNotificationDetails: true,
|
|
13275
|
-
autoChartAggregations:
|
|
13274
|
+
autoChartAggregations: false,
|
|
13276
13275
|
onRuleFetchCallback: function onRuleFetchCallback() {},
|
|
13277
13276
|
onExpandCallback: function onExpandCallback() {},
|
|
13278
13277
|
onDismissCallback: function onDismissCallback() {},
|
|
@@ -14904,7 +14903,7 @@ _defineProperty(NotificationFeed, "defaultProps", {
|
|
|
14904
14903
|
themeConfig: themeConfigDefault,
|
|
14905
14904
|
activeNotificationData: undefined,
|
|
14906
14905
|
showNotificationDetails: true,
|
|
14907
|
-
autoChartAggregations:
|
|
14906
|
+
autoChartAggregations: false,
|
|
14908
14907
|
showCreateAlertBtn: false,
|
|
14909
14908
|
onCollapseCallback: function onCollapseCallback() {},
|
|
14910
14909
|
onExpandCallback: function onExpandCallback() {},
|
|
@@ -19769,8 +19768,6 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
|
|
|
19769
19768
|
})) : /*#__PURE__*/React.createElement("span", null)), /*#__PURE__*/React.createElement(Popover, {
|
|
19770
19769
|
isOpen: _this.state.isOptionsDropdownOpen,
|
|
19771
19770
|
onClickOutside: function onClickOutside() {
|
|
19772
|
-
console.log(_this.state.isOptionsDropdownOpen);
|
|
19773
|
-
|
|
19774
19771
|
_this.setState({
|
|
19775
19772
|
isOptionsDropdownOpen: false
|
|
19776
19773
|
});
|