react-autoql 3.4.5 → 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 +1351 -1351
- package/dist/autoql.esm.js +95 -80
- package/package.json +1 -1
package/dist/autoql.esm.js
CHANGED
|
@@ -11,7 +11,7 @@ import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
|
11
11
|
import PropTypes, { shape, string, number, bool, oneOf, arrayOf, func, instanceOf, oneOfType, array } from 'prop-types';
|
|
12
12
|
import { BsArrowBarDown, BsArrowBarUp } from 'react-icons/bs';
|
|
13
13
|
import { BiLineChart } from 'react-icons/bi';
|
|
14
|
-
import { MdError, MdPlayCircleOutline, MdLock, MdInfoOutline, MdContentCopy, MdClose } from 'react-icons/md';
|
|
14
|
+
import { MdError, MdLockOpen, MdPlayCircleOutline, MdLock, MdInfoOutline, MdContentCopy, MdClose } from 'react-icons/md';
|
|
15
15
|
import { FiAlertTriangle, FiTrash2, FiSettings, FiSend, FiPlus, FiPauseCircle, FiBellOff, FiBell, FiMoreHorizontal, FiMoreVertical, FiFilter, FiEye, FiDownload, FiDatabase, FiCheck, FiCalendar, FiArrowLeft } from 'react-icons/fi';
|
|
16
16
|
import { IoIosSearch, IoIosHourglass, IoIosGlobe, IoIosCloseCircleOutline } from 'react-icons/io';
|
|
17
17
|
import { TiSortNumerically } from 'react-icons/ti';
|
|
@@ -34,7 +34,7 @@ import disableScroll from 'disable-scroll';
|
|
|
34
34
|
import HTMLRenderer from 'react-html-renderer';
|
|
35
35
|
import { scaleOrdinal, scaleBand, scaleLinear } from 'd3-scale';
|
|
36
36
|
import Autosuggest from 'react-autosuggest';
|
|
37
|
-
import
|
|
37
|
+
import SpeechRecognition from 'react-speech-recognition';
|
|
38
38
|
import { ReactTabulator } from 'react-tabulator';
|
|
39
39
|
import 'react-tabulator/lib/styles.css';
|
|
40
40
|
import 'react-tabulator/css/bootstrap/tabulator_bootstrap.min.css';
|
|
@@ -57,7 +57,7 @@ import RGL, { WidthProvider } from 'react-grid-layout';
|
|
|
57
57
|
import SplitterLayout from 'react-splitter-layout';
|
|
58
58
|
import 'react-grid-layout/css/styles.css';
|
|
59
59
|
import 'react-splitter-layout/lib/index.css';
|
|
60
|
-
import
|
|
60
|
+
import RecordRTC, { StereoAudioRecorder } from 'recordrtc';
|
|
61
61
|
|
|
62
62
|
function ownKeys(object, enumerableOnly) {
|
|
63
63
|
var keys = Object.keys(object);
|
|
@@ -479,7 +479,8 @@ var autoQLConfigDefault = {
|
|
|
479
479
|
enableDrilldowns: true,
|
|
480
480
|
enableNotifications: false,
|
|
481
481
|
enableSlackSharing: true,
|
|
482
|
-
enableTeamsSharing: true
|
|
482
|
+
enableTeamsSharing: true,
|
|
483
|
+
enableCSVDownload: false
|
|
483
484
|
};
|
|
484
485
|
var themeConfigDefault = {
|
|
485
486
|
theme: 'light',
|
|
@@ -923,7 +924,8 @@ var formatChartLabel = function formatChartLabel(_ref) {
|
|
|
923
924
|
case 'PERCENT':
|
|
924
925
|
{
|
|
925
926
|
if (Number(d)) {
|
|
926
|
-
|
|
927
|
+
var p = Number(d) / 100;
|
|
928
|
+
formattedLabel = Numbro(p).format({
|
|
927
929
|
output: 'percent',
|
|
928
930
|
mantissa: 0
|
|
929
931
|
});
|
|
@@ -1050,7 +1052,8 @@ var formatElement = function formatElement(_ref2) {
|
|
|
1050
1052
|
case 'PERCENT':
|
|
1051
1053
|
{
|
|
1052
1054
|
if (Number(element)) {
|
|
1053
|
-
|
|
1055
|
+
var p = Number(element) / 100;
|
|
1056
|
+
formattedElement = Numbro(p).format('0.00%');
|
|
1054
1057
|
|
|
1055
1058
|
if (htmlElement) {
|
|
1056
1059
|
htmlElement.classList.add("comparison-value-".concat(element < 0 ? 'negative' : 'positive'));
|
|
@@ -1211,7 +1214,7 @@ var supportsPieChart = function supportsPieChart(columns, chartData) {
|
|
|
1211
1214
|
|
|
1212
1215
|
return true;
|
|
1213
1216
|
};
|
|
1214
|
-
var getSupportedDisplayTypes = function getSupportedDisplayTypes(response, chartData) {
|
|
1217
|
+
var getSupportedDisplayTypes = function getSupportedDisplayTypes(response, chartData, shouldExcludePieChart) {
|
|
1215
1218
|
try {
|
|
1216
1219
|
if (!_get(response, 'data.data.display_type')) {
|
|
1217
1220
|
return [];
|
|
@@ -1248,7 +1251,7 @@ var getSupportedDisplayTypes = function getSupportedDisplayTypes(response, chart
|
|
|
1248
1251
|
// column, we should be able to chart anything
|
|
1249
1252
|
var _supportedDisplayTypes = ['table', 'column', 'bar', 'line'];
|
|
1250
1253
|
|
|
1251
|
-
if (supportsPieChart(columns, chartData)) {
|
|
1254
|
+
if (supportsPieChart(columns, chartData) && !shouldExcludePieChart) {
|
|
1252
1255
|
_supportedDisplayTypes.push('pie');
|
|
1253
1256
|
} // create pivot based on month and year
|
|
1254
1257
|
|
|
@@ -2514,6 +2517,12 @@ var Icon = /*#__PURE__*/function (_React$Component) {
|
|
|
2514
2517
|
break;
|
|
2515
2518
|
}
|
|
2516
2519
|
|
|
2520
|
+
case 'unlock':
|
|
2521
|
+
{
|
|
2522
|
+
icon = /*#__PURE__*/React.createElement(MdLockOpen, null);
|
|
2523
|
+
break;
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2517
2526
|
case 'warning':
|
|
2518
2527
|
{
|
|
2519
2528
|
icon = /*#__PURE__*/React.createElement(MdError, null);
|
|
@@ -2715,7 +2724,7 @@ var runQueryOnly = function runQueryOnly() {
|
|
|
2715
2724
|
source = _ref4.source,
|
|
2716
2725
|
AutoAEId = _ref4.AutoAEId;
|
|
2717
2726
|
|
|
2718
|
-
var url = "".concat(domain, "/autoql/api/
|
|
2727
|
+
var url = "".concat(domain, "/autoql/api/v1/query?key=").concat(apiKey);
|
|
2719
2728
|
var finalUserSelection = transformUserSelection(userSelection);
|
|
2720
2729
|
var data = {
|
|
2721
2730
|
text: query,
|
|
@@ -3856,19 +3865,12 @@ var QueryInput = /*#__PURE__*/function (_React$Component) {
|
|
|
3856
3865
|
type: "react-autoql-bubbles-outlined"
|
|
3857
3866
|
})), _this.props.showLoadingDots && _this.state.isQueryRunning && /*#__PURE__*/React.createElement("div", {
|
|
3858
3867
|
className: "input-response-loading-container"
|
|
3859
|
-
}, /*#__PURE__*/React.createElement(LoadingDots, null)), _this.props.enableVoiceRecord && /*#__PURE__*/React.createElement(
|
|
3868
|
+
}, /*#__PURE__*/React.createElement(LoadingDots, null)), _this.props.enableVoiceRecord && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SpeechToTextButtonBrowser, {
|
|
3860
3869
|
onTranscriptChange: _this.onTranscriptChange,
|
|
3861
3870
|
onFinalTranscript: _this.onFinalTranscript,
|
|
3862
3871
|
themeConfig: _this.props.themeConfig,
|
|
3863
3872
|
authentication: getAuthentication(_this.props.authentication)
|
|
3864
|
-
})
|
|
3865
|
-
// <SpeechToTextButtonBrowser
|
|
3866
|
-
// onTranscriptChange={this.onTranscriptChange}
|
|
3867
|
-
// onFinalTranscript={this.onFinalTranscript}
|
|
3868
|
-
// themeConfig={this.props.themeConfig}
|
|
3869
|
-
// authentication={getAuthentication(this.props.authentication)}
|
|
3870
|
-
// />
|
|
3871
|
-
));
|
|
3873
|
+
}))));
|
|
3872
3874
|
});
|
|
3873
3875
|
|
|
3874
3876
|
return _this;
|
|
@@ -7517,6 +7519,7 @@ var Button = /*#__PURE__*/function (_React$Component) {
|
|
|
7517
7519
|
return /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement("button", {
|
|
7518
7520
|
className: "react-autoql-btn\n ".concat(_this.props.className || '', "\n ").concat(type, "\n ").concat(size, "\n ").concat(isDisabled ? ' disabled' : ''),
|
|
7519
7521
|
"data-test": "react-autoql-btn",
|
|
7522
|
+
"data-multiline": _this.props.multiline,
|
|
7520
7523
|
style: _objectSpread2({}, _this.props.style),
|
|
7521
7524
|
onClick: _this.props.onClick,
|
|
7522
7525
|
"data-tip": _this.props.tooltip,
|
|
@@ -7544,6 +7547,7 @@ _defineProperty(Button, "propTypes", {
|
|
|
7544
7547
|
onClick: PropTypes.func,
|
|
7545
7548
|
loading: PropTypes.bool,
|
|
7546
7549
|
disabled: PropTypes.bool,
|
|
7550
|
+
multiline: PropTypes.bool,
|
|
7547
7551
|
tooltip: PropTypes.string
|
|
7548
7552
|
});
|
|
7549
7553
|
|
|
@@ -7552,6 +7556,7 @@ _defineProperty(Button, "defaultProps", {
|
|
|
7552
7556
|
loading: false,
|
|
7553
7557
|
size: 'large',
|
|
7554
7558
|
disabled: false,
|
|
7559
|
+
multiline: false,
|
|
7555
7560
|
tooltip: undefined,
|
|
7556
7561
|
onClick: function onClick() {}
|
|
7557
7562
|
});
|
|
@@ -10261,11 +10266,22 @@ var QueryOutput = /*#__PURE__*/function (_React$Component) {
|
|
|
10261
10266
|
}
|
|
10262
10267
|
|
|
10263
10268
|
var formattedColumns = columns.map(function (col, i) {
|
|
10269
|
+
/**
|
|
10270
|
+
* EDIT:
|
|
10271
|
+
* We no longer want to default to one over the other. Howeever,
|
|
10272
|
+
* I would like to hang onto this code for now incase we do want to
|
|
10273
|
+
* include either/or in some cases in the future
|
|
10274
|
+
*/
|
|
10264
10275
|
// Regardless of the BE response, we want to default to percent
|
|
10265
|
-
if (
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10276
|
+
// if (
|
|
10277
|
+
// (col.type === 'RATIO' || col.type === 'NUMBER') &&
|
|
10278
|
+
// _get(
|
|
10279
|
+
// getDataFormatting(this.props.dataFormatting),
|
|
10280
|
+
// 'comparisonDisplay'
|
|
10281
|
+
// ) === 'PERCENT'
|
|
10282
|
+
// ) {
|
|
10283
|
+
// col.type = 'PERCENT'
|
|
10284
|
+
// }
|
|
10269
10285
|
col.field = "".concat(i);
|
|
10270
10286
|
col.title = col.display_name;
|
|
10271
10287
|
col.id = uuid.v4();
|
|
@@ -12925,8 +12941,8 @@ var NotificationItem = /*#__PURE__*/function (_React$Component) {
|
|
|
12925
12941
|
var queryResponse = {
|
|
12926
12942
|
data: _this.props.activeNotificationData
|
|
12927
12943
|
};
|
|
12928
|
-
_this.supportedDisplayTypes = getSupportedDisplayTypes(queryResponse);
|
|
12929
|
-
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);
|
|
12930
12946
|
|
|
12931
12947
|
_this.setState({
|
|
12932
12948
|
displayType: displayType
|
|
@@ -13255,7 +13271,7 @@ _defineProperty(NotificationItem, "defaultProps", {
|
|
|
13255
13271
|
themeConfig: themeConfigDefault,
|
|
13256
13272
|
activeNotificationData: undefined,
|
|
13257
13273
|
showNotificationDetails: true,
|
|
13258
|
-
autoChartAggregations:
|
|
13274
|
+
autoChartAggregations: false,
|
|
13259
13275
|
onRuleFetchCallback: function onRuleFetchCallback() {},
|
|
13260
13276
|
onExpandCallback: function onExpandCallback() {},
|
|
13261
13277
|
onDismissCallback: function onDismissCallback() {},
|
|
@@ -14887,7 +14903,7 @@ _defineProperty(NotificationFeed, "defaultProps", {
|
|
|
14887
14903
|
themeConfig: themeConfigDefault,
|
|
14888
14904
|
activeNotificationData: undefined,
|
|
14889
14905
|
showNotificationDetails: true,
|
|
14890
|
-
autoChartAggregations:
|
|
14906
|
+
autoChartAggregations: false,
|
|
14891
14907
|
showCreateAlertBtn: false,
|
|
14892
14908
|
onCollapseCallback: function onCollapseCallback() {},
|
|
14893
14909
|
onExpandCallback: function onExpandCallback() {},
|
|
@@ -15174,14 +15190,19 @@ var DataAlerts = /*#__PURE__*/function (_React$Component) {
|
|
|
15174
15190
|
type: "hour-glass"
|
|
15175
15191
|
}), _this.hasError(notification) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
15176
15192
|
type: "primary",
|
|
15193
|
+
tooltip: "This Alert is no longer active. <br /> Click to re-initialze it.",
|
|
15194
|
+
multiline: true,
|
|
15177
15195
|
className: "react-autoql-re-initialize-btn",
|
|
15178
|
-
tooltip: "Please re-initialize data alert",
|
|
15179
15196
|
onClick: function onClick() {
|
|
15180
|
-
|
|
15197
|
+
_this.props.onAlertInitializationCallback(notification, _this.props.selectedDemoProjectId, _this.props.authentication);
|
|
15198
|
+
|
|
15199
|
+
_this.getDataAlerts();
|
|
15181
15200
|
}
|
|
15182
15201
|
}, /*#__PURE__*/React.createElement("span", {
|
|
15183
15202
|
className: "react-autoql-re-initialize-btn-text"
|
|
15184
|
-
},
|
|
15203
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
15204
|
+
type: "warning-triangle"
|
|
15205
|
+
}), ' ', " Resend")), /*#__PURE__*/React.createElement(Checkbox, {
|
|
15185
15206
|
themeConfig: getThemeConfig(_this.props.themeConfig),
|
|
15186
15207
|
type: "switch",
|
|
15187
15208
|
className: "react-autoql-notification-disable-checkbox"
|
|
@@ -15268,7 +15289,8 @@ _defineProperty(DataAlerts, "defaultProps", {
|
|
|
15268
15289
|
authentication: authenticationDefault,
|
|
15269
15290
|
themeConfig: themeConfigDefault,
|
|
15270
15291
|
showCreateAlertBtn: false,
|
|
15271
|
-
onErrorCallback: function onErrorCallback() {}
|
|
15292
|
+
onErrorCallback: function onErrorCallback() {},
|
|
15293
|
+
onAlertInitializationCallback: function onAlertInitializationCallback() {}
|
|
15272
15294
|
});
|
|
15273
15295
|
|
|
15274
15296
|
var getInitialStateData$2 = function getInitialStateData(initialData) {
|
|
@@ -17885,30 +17907,21 @@ var Input = /*#__PURE__*/function (_React$Component) {
|
|
|
17885
17907
|
});
|
|
17886
17908
|
|
|
17887
17909
|
_defineProperty(_assertThisInitialized(_this), "renderToolbar", function () {
|
|
17910
|
+
var _shouldShowButton;
|
|
17911
|
+
|
|
17888
17912
|
var displayType = _get(_this.props.responseRef, 'state.displayType');
|
|
17889
17913
|
|
|
17890
17914
|
var response = _get(_this.props.responseRef, 'props.queryResponse');
|
|
17891
17915
|
|
|
17892
17916
|
var isDataResponse = _get(response, 'data.data.display_type') === 'data';
|
|
17893
|
-
var shouldShowButton = {
|
|
17917
|
+
var shouldShowButton = (_shouldShowButton = {
|
|
17894
17918
|
showFilterButton: isTableResponse(response, displayType) && !_this.areAllColumnsHidden() && _get(response, 'data.data.rows.length') > 1,
|
|
17895
17919
|
showCopyButton: isTableResponse(response, displayType) && !_this.areAllColumnsHidden() && !!_get(response, 'data.data.rows.length'),
|
|
17896
17920
|
showSaveAsCSVButton: isTableResponse(response, displayType) && !_this.areAllColumnsHidden() && !!_get(response, 'data.data.rows.length'),
|
|
17897
17921
|
showSaveAsPNGButton: CHART_TYPES.includes(displayType),
|
|
17898
17922
|
showHideColumnsButton: getAutoQLConfig$1(_this.props.autoQLConfig).enableColumnVisibilityManager && isTableResponse(response, displayType) && displayType !== 'pivot_table' && _get(response, 'data.data.columns.length') > 0,
|
|
17899
|
-
showSQLButton: isDataResponse && getAutoQLConfig$1(_this.props.autoQLConfig).debug
|
|
17900
|
-
|
|
17901
|
-
showReportProblemButton: !!_get(response, 'data.data.query_id'),
|
|
17902
|
-
showCreateNotificationIcon: isDataResponse && getAutoQLConfig$1(_this.props.autoQLConfig).enableNotifications && !_this.isDrilldownResponse(),
|
|
17903
|
-
showShareToSlackButton: false,
|
|
17904
|
-
// This feature is disabled indefinitely
|
|
17905
|
-
// isDataResponse &&
|
|
17906
|
-
// getAutoQLConfig(this.props.autoQLConfig).enableSlackSharing,
|
|
17907
|
-
showShareToTeamsButton: false // This feature is disabled indefinitely
|
|
17908
|
-
// isDataResponse &&
|
|
17909
|
-
// getAutoQLConfig(this.props.autoQLConfig).enableTeamsSharing,
|
|
17910
|
-
|
|
17911
|
-
};
|
|
17923
|
+
showSQLButton: isDataResponse && getAutoQLConfig$1(_this.props.autoQLConfig).debug
|
|
17924
|
+
}, _defineProperty(_shouldShowButton, "showSaveAsCSVButton", isDataResponse && getAutoQLConfig$1(_this.props.autoQLConfig).enableCSVDownload), _defineProperty(_shouldShowButton, "showDeleteButton", _this.props.enableDeleteBtn), _defineProperty(_shouldShowButton, "showReportProblemButton", !!_get(response, 'data.data.query_id')), _defineProperty(_shouldShowButton, "showCreateNotificationIcon", isDataResponse && getAutoQLConfig$1(_this.props.autoQLConfig).enableNotifications && !_this.isDrilldownResponse()), _defineProperty(_shouldShowButton, "showShareToSlackButton", false), _defineProperty(_shouldShowButton, "showShareToTeamsButton", false), _shouldShowButton);
|
|
17912
17925
|
shouldShowButton.showMoreOptionsButton = shouldShowButton.showCopyButton || shouldShowButton.showSQLButton || shouldShowButton.showCreateNotificationIcon || shouldShowButton.showSaveAsCSVButton || shouldShowButton.showSaveAsPNGButton || shouldShowButton.showShareToSlackButton || shouldShowButton.showShareToTeamsButton; // If there is nothing to put in the toolbar, don't render it
|
|
17913
17926
|
|
|
17914
17927
|
if (!Object.values(shouldShowButton).find(function (showButton) {
|
|
@@ -19130,12 +19143,13 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
|
|
|
19130
19143
|
hasError: true
|
|
19131
19144
|
});
|
|
19132
19145
|
} // WIP
|
|
19133
|
-
// fetchConditions({ ...getAuthentication(this.props.authentication) }).then(
|
|
19134
|
-
// (response) => {
|
|
19135
|
-
// this.setState({ conditions: _get(response, 'data.data.data') })
|
|
19136
|
-
// }
|
|
19137
|
-
// )
|
|
19138
19146
|
|
|
19147
|
+
|
|
19148
|
+
fetchConditions(_objectSpread2({}, getAuthentication(_this.props.authentication))).then(function (response) {
|
|
19149
|
+
_this.setState({
|
|
19150
|
+
conditions: _get(response, 'data.data.data')
|
|
19151
|
+
});
|
|
19152
|
+
});
|
|
19139
19153
|
});
|
|
19140
19154
|
|
|
19141
19155
|
_defineProperty(_assertThisInitialized(_this), "componentDidUpdate", function (prevProps, prevState) {
|
|
@@ -19732,32 +19746,35 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
|
|
|
19732
19746
|
|
|
19733
19747
|
_defineProperty(_assertThisInitialized(_this), "renderOptionsDropdown", function () {
|
|
19734
19748
|
if (_this.state.activePage === 'data-messenger') {
|
|
19735
|
-
return /*#__PURE__*/React.createElement(
|
|
19749
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
19750
|
+
id: "condition-dropdown",
|
|
19751
|
+
style: {
|
|
19752
|
+
justifyContent: 'left',
|
|
19753
|
+
position: 'absolute',
|
|
19754
|
+
right: 30
|
|
19755
|
+
}
|
|
19756
|
+
}, window.location.href.includes('localhost') || window.location.href.includes('chata-ai-test-page') ? /*#__PURE__*/React.createElement("button", {
|
|
19757
|
+
id: "condition-dropdown",
|
|
19758
|
+
onClick: function onClick() {
|
|
19759
|
+
_this.setState({
|
|
19760
|
+
isConditionLockingMenuOpen: !_this.state.isConditionLockingMenuOpen
|
|
19761
|
+
});
|
|
19762
|
+
},
|
|
19763
|
+
className: "react-autoql-drawer-header-btn clear-all",
|
|
19764
|
+
"data-tip": lang.dataMessengerOptions,
|
|
19765
|
+
"data-for": "react-autoql-header-tooltip"
|
|
19766
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
19767
|
+
type: _get(_this.state.conditions, 'length') > 0 ? "lock" : "unlock"
|
|
19768
|
+
})) : /*#__PURE__*/React.createElement("span", null)), /*#__PURE__*/React.createElement(Popover, {
|
|
19736
19769
|
isOpen: _this.state.isOptionsDropdownOpen,
|
|
19737
19770
|
onClickOutside: function onClickOutside() {
|
|
19738
|
-
|
|
19771
|
+
_this.setState({
|
|
19739
19772
|
isOptionsDropdownOpen: false
|
|
19740
19773
|
});
|
|
19741
19774
|
},
|
|
19742
19775
|
position: "bottom" // preferred position
|
|
19743
19776
|
,
|
|
19744
|
-
content: /*#__PURE__*/React.createElement("div", null,
|
|
19745
|
-
className: "clear-messages-confirm-popover"
|
|
19746
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
19747
|
-
className: "react-autoql-menu-text",
|
|
19748
|
-
onClick: function onClick() {
|
|
19749
|
-
_this.setState({
|
|
19750
|
-
isConditionLockingMenuOpen: true,
|
|
19751
|
-
isOptionsDropdownOpen: false
|
|
19752
|
-
});
|
|
19753
|
-
}
|
|
19754
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
19755
|
-
type: "lock"
|
|
19756
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
19757
|
-
style: {
|
|
19758
|
-
marginLeft: 5
|
|
19759
|
-
}
|
|
19760
|
-
}, lang.openConditionLocking))), /*#__PURE__*/React.createElement("div", {
|
|
19777
|
+
content: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
19761
19778
|
className: "clear-messages-confirm-popover"
|
|
19762
19779
|
}, /*#__PURE__*/React.createElement("div", {
|
|
19763
19780
|
className: "react-autoql-menu-text",
|
|
@@ -19799,7 +19816,7 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
|
|
|
19799
19816
|
"data-for": "react-autoql-header-tooltip"
|
|
19800
19817
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
19801
19818
|
type: "trash"
|
|
19802
|
-
})));
|
|
19819
|
+
}))));
|
|
19803
19820
|
}
|
|
19804
19821
|
});
|
|
19805
19822
|
|
|
@@ -19836,11 +19853,11 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
|
|
|
19836
19853
|
className: "react-autoql-header-left-container"
|
|
19837
19854
|
}, /*#__PURE__*/React.createElement("button", {
|
|
19838
19855
|
onClick: function onClick() {
|
|
19839
|
-
_this.props.onHandleClick();
|
|
19840
|
-
|
|
19841
19856
|
_this.setState({
|
|
19842
19857
|
isConditionLockingMenuOpen: false
|
|
19843
19858
|
});
|
|
19859
|
+
|
|
19860
|
+
_this.props.onHandleClick();
|
|
19844
19861
|
},
|
|
19845
19862
|
className: "react-autoql-drawer-header-btn close",
|
|
19846
19863
|
"data-tip": lang.closeDataMessenger,
|
|
@@ -19850,17 +19867,15 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
|
|
|
19850
19867
|
}))), /*#__PURE__*/React.createElement(Popover, {
|
|
19851
19868
|
containerStyle: _this.getConditionMenuPosition(),
|
|
19852
19869
|
isOpen: _this.state.isConditionLockingMenuOpen,
|
|
19853
|
-
onClickOutside: function onClickOutside(e) {
|
|
19854
|
-
if (_get(e, 'target.innerText') !== lang.openConditionLocking && !_includes(_get(e, 'target.className'), 'react-autosuggest__suggestion') && !_includes(_get(e, 'target.className'), 'condition-list-container')) {
|
|
19855
|
-
_this.setState({
|
|
19856
|
-
isConditionLockingMenuOpen: false
|
|
19857
|
-
});
|
|
19858
|
-
}
|
|
19859
|
-
},
|
|
19860
19870
|
position: "bottom",
|
|
19861
19871
|
padding: 2,
|
|
19862
19872
|
align: "center",
|
|
19863
|
-
content: /*#__PURE__*/React.createElement(
|
|
19873
|
+
content: /*#__PURE__*/React.createElement("div", {
|
|
19874
|
+
id: "condition-menu-dropdown",
|
|
19875
|
+
style: {
|
|
19876
|
+
display: 'block'
|
|
19877
|
+
}
|
|
19878
|
+
}, /*#__PURE__*/React.createElement(ConditionLockMenu, {
|
|
19864
19879
|
authentication: getAuthentication(getAuthentication(_this.props.authentication)),
|
|
19865
19880
|
containerWidth: _this.getDrawerWidth(),
|
|
19866
19881
|
isOpen: _this.state.isConditionLockingMenuOpen,
|
|
@@ -19877,7 +19892,7 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
|
|
|
19877
19892
|
isConditionLockingMenuOpen: false
|
|
19878
19893
|
});
|
|
19879
19894
|
}
|
|
19880
|
-
})
|
|
19895
|
+
}))
|
|
19881
19896
|
}, /*#__PURE__*/React.createElement("div", {
|
|
19882
19897
|
className: "react-autoql-header-center-container"
|
|
19883
19898
|
}, _this.renderHeaderTitle(), _this.renderShowSuccessMessage())), /*#__PURE__*/React.createElement("div", {
|