react-autoql 3.4.4 → 3.4.8
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 +1952 -1952
- package/dist/autoql.esm.js +95 -96
- 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,9 @@ var formatChartLabel = function formatChartLabel(_ref) {
|
|
|
923
924
|
case 'PERCENT':
|
|
924
925
|
{
|
|
925
926
|
if (Number(d)) {
|
|
926
|
-
|
|
927
|
+
var p = Number(d) / 100;
|
|
928
|
+
console.log(p);
|
|
929
|
+
formattedLabel = Numbro(p).format({
|
|
927
930
|
output: 'percent',
|
|
928
931
|
mantissa: 0
|
|
929
932
|
});
|
|
@@ -1050,7 +1053,8 @@ var formatElement = function formatElement(_ref2) {
|
|
|
1050
1053
|
case 'PERCENT':
|
|
1051
1054
|
{
|
|
1052
1055
|
if (Number(element)) {
|
|
1053
|
-
|
|
1056
|
+
var p = Number(element) / 100;
|
|
1057
|
+
formattedElement = Numbro(p).format('0.00%');
|
|
1054
1058
|
|
|
1055
1059
|
if (htmlElement) {
|
|
1056
1060
|
htmlElement.classList.add("comparison-value-".concat(element < 0 ? 'negative' : 'positive'));
|
|
@@ -2514,6 +2518,12 @@ var Icon = /*#__PURE__*/function (_React$Component) {
|
|
|
2514
2518
|
break;
|
|
2515
2519
|
}
|
|
2516
2520
|
|
|
2521
|
+
case 'unlock':
|
|
2522
|
+
{
|
|
2523
|
+
icon = /*#__PURE__*/React.createElement(MdLockOpen, null);
|
|
2524
|
+
break;
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2517
2527
|
case 'warning':
|
|
2518
2528
|
{
|
|
2519
2529
|
icon = /*#__PURE__*/React.createElement(MdError, null);
|
|
@@ -2715,7 +2725,7 @@ var runQueryOnly = function runQueryOnly() {
|
|
|
2715
2725
|
source = _ref4.source,
|
|
2716
2726
|
AutoAEId = _ref4.AutoAEId;
|
|
2717
2727
|
|
|
2718
|
-
var url = "".concat(domain, "/autoql/api/
|
|
2728
|
+
var url = "".concat(domain, "/autoql/api/v1/query?key=").concat(apiKey);
|
|
2719
2729
|
var finalUserSelection = transformUserSelection(userSelection);
|
|
2720
2730
|
var data = {
|
|
2721
2731
|
text: query,
|
|
@@ -3856,19 +3866,12 @@ var QueryInput = /*#__PURE__*/function (_React$Component) {
|
|
|
3856
3866
|
type: "react-autoql-bubbles-outlined"
|
|
3857
3867
|
})), _this.props.showLoadingDots && _this.state.isQueryRunning && /*#__PURE__*/React.createElement("div", {
|
|
3858
3868
|
className: "input-response-loading-container"
|
|
3859
|
-
}, /*#__PURE__*/React.createElement(LoadingDots, null)), _this.props.enableVoiceRecord && /*#__PURE__*/React.createElement(
|
|
3869
|
+
}, /*#__PURE__*/React.createElement(LoadingDots, null)), _this.props.enableVoiceRecord && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SpeechToTextButtonBrowser, {
|
|
3860
3870
|
onTranscriptChange: _this.onTranscriptChange,
|
|
3861
3871
|
onFinalTranscript: _this.onFinalTranscript,
|
|
3862
3872
|
themeConfig: _this.props.themeConfig,
|
|
3863
3873
|
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
|
-
));
|
|
3874
|
+
}))));
|
|
3872
3875
|
});
|
|
3873
3876
|
|
|
3874
3877
|
return _this;
|
|
@@ -7517,6 +7520,7 @@ var Button = /*#__PURE__*/function (_React$Component) {
|
|
|
7517
7520
|
return /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement("button", {
|
|
7518
7521
|
className: "react-autoql-btn\n ".concat(_this.props.className || '', "\n ").concat(type, "\n ").concat(size, "\n ").concat(isDisabled ? ' disabled' : ''),
|
|
7519
7522
|
"data-test": "react-autoql-btn",
|
|
7523
|
+
"data-multiline": _this.props.multiline,
|
|
7520
7524
|
style: _objectSpread2({}, _this.props.style),
|
|
7521
7525
|
onClick: _this.props.onClick,
|
|
7522
7526
|
"data-tip": _this.props.tooltip,
|
|
@@ -7544,6 +7548,7 @@ _defineProperty(Button, "propTypes", {
|
|
|
7544
7548
|
onClick: PropTypes.func,
|
|
7545
7549
|
loading: PropTypes.bool,
|
|
7546
7550
|
disabled: PropTypes.bool,
|
|
7551
|
+
multiline: PropTypes.bool,
|
|
7547
7552
|
tooltip: PropTypes.string
|
|
7548
7553
|
});
|
|
7549
7554
|
|
|
@@ -7552,6 +7557,7 @@ _defineProperty(Button, "defaultProps", {
|
|
|
7552
7557
|
loading: false,
|
|
7553
7558
|
size: 'large',
|
|
7554
7559
|
disabled: false,
|
|
7560
|
+
multiline: false,
|
|
7555
7561
|
tooltip: undefined,
|
|
7556
7562
|
onClick: function onClick() {}
|
|
7557
7563
|
});
|
|
@@ -10261,11 +10267,22 @@ var QueryOutput = /*#__PURE__*/function (_React$Component) {
|
|
|
10261
10267
|
}
|
|
10262
10268
|
|
|
10263
10269
|
var formattedColumns = columns.map(function (col, i) {
|
|
10270
|
+
/**
|
|
10271
|
+
* EDIT:
|
|
10272
|
+
* We no longer want to default to one over the other. Howeever,
|
|
10273
|
+
* I would like to hang onto this code for now incase we do want to
|
|
10274
|
+
* include either/or in some cases in the future
|
|
10275
|
+
*/
|
|
10264
10276
|
// Regardless of the BE response, we want to default to percent
|
|
10265
|
-
if (
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10277
|
+
// if (
|
|
10278
|
+
// (col.type === 'RATIO' || col.type === 'NUMBER') &&
|
|
10279
|
+
// _get(
|
|
10280
|
+
// getDataFormatting(this.props.dataFormatting),
|
|
10281
|
+
// 'comparisonDisplay'
|
|
10282
|
+
// ) === 'PERCENT'
|
|
10283
|
+
// ) {
|
|
10284
|
+
// col.type = 'PERCENT'
|
|
10285
|
+
// }
|
|
10269
10286
|
col.field = "".concat(i);
|
|
10270
10287
|
col.title = col.display_name;
|
|
10271
10288
|
col.id = uuid.v4();
|
|
@@ -14364,7 +14381,7 @@ var DataAlertModal = /*#__PURE__*/function (_React$Component) {
|
|
|
14364
14381
|
isConfirmDeleteModalVisible: false
|
|
14365
14382
|
});
|
|
14366
14383
|
|
|
14367
|
-
_this.props.onDelete();
|
|
14384
|
+
_this.props.onDelete(dataAlertId);
|
|
14368
14385
|
|
|
14369
14386
|
_this.props.onClose(false);
|
|
14370
14387
|
}).catch(function (error) {
|
|
@@ -14941,7 +14958,7 @@ var DataAlerts = /*#__PURE__*/function (_React$Component) {
|
|
|
14941
14958
|
_this.getDataAlerts();
|
|
14942
14959
|
}
|
|
14943
14960
|
|
|
14944
|
-
if (!_isEqual(_this.state.projectAlertsList, prevState.projectAlertsList)) {
|
|
14961
|
+
if (!_isEqual(_this.state.projectAlertsList, prevState.projectAlertsList) || !_isEqual(_this.state.customAlertsList, prevState.customAlertsList)) {
|
|
14945
14962
|
_this.getDataAlerts();
|
|
14946
14963
|
}
|
|
14947
14964
|
});
|
|
@@ -15174,14 +15191,19 @@ var DataAlerts = /*#__PURE__*/function (_React$Component) {
|
|
|
15174
15191
|
type: "hour-glass"
|
|
15175
15192
|
}), _this.hasError(notification) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
15176
15193
|
type: "primary",
|
|
15194
|
+
tooltip: "This Alert is no longer active. <br /> Click to re-initialze it.",
|
|
15195
|
+
multiline: true,
|
|
15177
15196
|
className: "react-autoql-re-initialize-btn",
|
|
15178
|
-
tooltip: "Please re-initialize data alert",
|
|
15179
15197
|
onClick: function onClick() {
|
|
15180
|
-
|
|
15198
|
+
_this.props.onAlertInitializationCallback(notification, _this.props.selectedDemoProjectId, _this.props.authentication);
|
|
15199
|
+
|
|
15200
|
+
_this.getDataAlerts();
|
|
15181
15201
|
}
|
|
15182
15202
|
}, /*#__PURE__*/React.createElement("span", {
|
|
15183
15203
|
className: "react-autoql-re-initialize-btn-text"
|
|
15184
|
-
},
|
|
15204
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
15205
|
+
type: "warning-triangle"
|
|
15206
|
+
}), ' ', " Resend")), /*#__PURE__*/React.createElement(Checkbox, {
|
|
15185
15207
|
themeConfig: getThemeConfig(_this.props.themeConfig),
|
|
15186
15208
|
type: "switch",
|
|
15187
15209
|
className: "react-autoql-notification-disable-checkbox"
|
|
@@ -15268,7 +15290,8 @@ _defineProperty(DataAlerts, "defaultProps", {
|
|
|
15268
15290
|
authentication: authenticationDefault,
|
|
15269
15291
|
themeConfig: themeConfigDefault,
|
|
15270
15292
|
showCreateAlertBtn: false,
|
|
15271
|
-
onErrorCallback: function onErrorCallback() {}
|
|
15293
|
+
onErrorCallback: function onErrorCallback() {},
|
|
15294
|
+
onAlertInitializationCallback: function onAlertInitializationCallback() {}
|
|
15272
15295
|
});
|
|
15273
15296
|
|
|
15274
15297
|
var getInitialStateData$2 = function getInitialStateData(initialData) {
|
|
@@ -17885,30 +17908,21 @@ var Input = /*#__PURE__*/function (_React$Component) {
|
|
|
17885
17908
|
});
|
|
17886
17909
|
|
|
17887
17910
|
_defineProperty(_assertThisInitialized(_this), "renderToolbar", function () {
|
|
17911
|
+
var _shouldShowButton;
|
|
17912
|
+
|
|
17888
17913
|
var displayType = _get(_this.props.responseRef, 'state.displayType');
|
|
17889
17914
|
|
|
17890
17915
|
var response = _get(_this.props.responseRef, 'props.queryResponse');
|
|
17891
17916
|
|
|
17892
17917
|
var isDataResponse = _get(response, 'data.data.display_type') === 'data';
|
|
17893
|
-
var shouldShowButton = {
|
|
17918
|
+
var shouldShowButton = (_shouldShowButton = {
|
|
17894
17919
|
showFilterButton: isTableResponse(response, displayType) && !_this.areAllColumnsHidden() && _get(response, 'data.data.rows.length') > 1,
|
|
17895
17920
|
showCopyButton: isTableResponse(response, displayType) && !_this.areAllColumnsHidden() && !!_get(response, 'data.data.rows.length'),
|
|
17896
17921
|
showSaveAsCSVButton: isTableResponse(response, displayType) && !_this.areAllColumnsHidden() && !!_get(response, 'data.data.rows.length'),
|
|
17897
17922
|
showSaveAsPNGButton: CHART_TYPES.includes(displayType),
|
|
17898
17923
|
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
|
-
};
|
|
17924
|
+
showSQLButton: isDataResponse && getAutoQLConfig$1(_this.props.autoQLConfig).debug
|
|
17925
|
+
}, _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
17926
|
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
17927
|
|
|
17914
17928
|
if (!Object.values(shouldShowButton).find(function (showButton) {
|
|
@@ -19130,12 +19144,13 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
|
|
|
19130
19144
|
hasError: true
|
|
19131
19145
|
});
|
|
19132
19146
|
} // WIP
|
|
19133
|
-
// fetchConditions({ ...getAuthentication(this.props.authentication) }).then(
|
|
19134
|
-
// (response) => {
|
|
19135
|
-
// this.setState({ conditions: _get(response, 'data.data.data') })
|
|
19136
|
-
// }
|
|
19137
|
-
// )
|
|
19138
19147
|
|
|
19148
|
+
|
|
19149
|
+
fetchConditions(_objectSpread2({}, getAuthentication(_this.props.authentication))).then(function (response) {
|
|
19150
|
+
_this.setState({
|
|
19151
|
+
conditions: _get(response, 'data.data.data')
|
|
19152
|
+
});
|
|
19153
|
+
});
|
|
19139
19154
|
});
|
|
19140
19155
|
|
|
19141
19156
|
_defineProperty(_assertThisInitialized(_this), "componentDidUpdate", function (prevProps, prevState) {
|
|
@@ -19732,10 +19747,31 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
|
|
|
19732
19747
|
|
|
19733
19748
|
_defineProperty(_assertThisInitialized(_this), "renderOptionsDropdown", function () {
|
|
19734
19749
|
if (_this.state.activePage === 'data-messenger') {
|
|
19735
|
-
return /*#__PURE__*/React.createElement(
|
|
19750
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
19751
|
+
id: "condition-dropdown",
|
|
19752
|
+
style: {
|
|
19753
|
+
justifyContent: 'left',
|
|
19754
|
+
position: 'absolute',
|
|
19755
|
+
right: 30
|
|
19756
|
+
}
|
|
19757
|
+
}, window.location.href.includes('localhost') || window.location.href.includes('chata-ai-test-page') ? /*#__PURE__*/React.createElement("button", {
|
|
19758
|
+
id: "condition-dropdown",
|
|
19759
|
+
onClick: function onClick() {
|
|
19760
|
+
_this.setState({
|
|
19761
|
+
isConditionLockingMenuOpen: !_this.state.isConditionLockingMenuOpen
|
|
19762
|
+
});
|
|
19763
|
+
},
|
|
19764
|
+
className: "react-autoql-drawer-header-btn clear-all",
|
|
19765
|
+
"data-tip": lang.dataMessengerOptions,
|
|
19766
|
+
"data-for": "react-autoql-header-tooltip"
|
|
19767
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
19768
|
+
type: _get(_this.state.conditions, 'length') > 0 ? "lock" : "unlock"
|
|
19769
|
+
})) : /*#__PURE__*/React.createElement("span", null)), /*#__PURE__*/React.createElement(Popover, {
|
|
19736
19770
|
isOpen: _this.state.isOptionsDropdownOpen,
|
|
19737
19771
|
onClickOutside: function onClickOutside() {
|
|
19738
|
-
|
|
19772
|
+
console.log(_this.state.isOptionsDropdownOpen);
|
|
19773
|
+
|
|
19774
|
+
_this.setState({
|
|
19739
19775
|
isOptionsDropdownOpen: false
|
|
19740
19776
|
});
|
|
19741
19777
|
},
|
|
@@ -19743,22 +19779,6 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
|
|
|
19743
19779
|
,
|
|
19744
19780
|
content: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
19745
19781
|
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", {
|
|
19761
|
-
className: "clear-messages-confirm-popover"
|
|
19762
19782
|
}, /*#__PURE__*/React.createElement("div", {
|
|
19763
19783
|
className: "react-autoql-menu-text",
|
|
19764
19784
|
onClick: _this.handleClearQueriesDropdown
|
|
@@ -19798,8 +19818,8 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
|
|
|
19798
19818
|
"data-tip": lang.dataMessengerOptions,
|
|
19799
19819
|
"data-for": "react-autoql-header-tooltip"
|
|
19800
19820
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
19801
|
-
type: "
|
|
19802
|
-
})));
|
|
19821
|
+
type: "trash"
|
|
19822
|
+
}))));
|
|
19803
19823
|
}
|
|
19804
19824
|
});
|
|
19805
19825
|
|
|
@@ -19836,11 +19856,11 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
|
|
|
19836
19856
|
className: "react-autoql-header-left-container"
|
|
19837
19857
|
}, /*#__PURE__*/React.createElement("button", {
|
|
19838
19858
|
onClick: function onClick() {
|
|
19839
|
-
_this.props.onHandleClick();
|
|
19840
|
-
|
|
19841
19859
|
_this.setState({
|
|
19842
19860
|
isConditionLockingMenuOpen: false
|
|
19843
19861
|
});
|
|
19862
|
+
|
|
19863
|
+
_this.props.onHandleClick();
|
|
19844
19864
|
},
|
|
19845
19865
|
className: "react-autoql-drawer-header-btn close",
|
|
19846
19866
|
"data-tip": lang.closeDataMessenger,
|
|
@@ -19850,17 +19870,15 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
|
|
|
19850
19870
|
}))), /*#__PURE__*/React.createElement(Popover, {
|
|
19851
19871
|
containerStyle: _this.getConditionMenuPosition(),
|
|
19852
19872
|
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
19873
|
position: "bottom",
|
|
19861
19874
|
padding: 2,
|
|
19862
19875
|
align: "center",
|
|
19863
|
-
content: /*#__PURE__*/React.createElement(
|
|
19876
|
+
content: /*#__PURE__*/React.createElement("div", {
|
|
19877
|
+
id: "condition-menu-dropdown",
|
|
19878
|
+
style: {
|
|
19879
|
+
display: 'block'
|
|
19880
|
+
}
|
|
19881
|
+
}, /*#__PURE__*/React.createElement(ConditionLockMenu, {
|
|
19864
19882
|
authentication: getAuthentication(getAuthentication(_this.props.authentication)),
|
|
19865
19883
|
containerWidth: _this.getDrawerWidth(),
|
|
19866
19884
|
isOpen: _this.state.isConditionLockingMenuOpen,
|
|
@@ -19877,7 +19895,7 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
|
|
|
19877
19895
|
isConditionLockingMenuOpen: false
|
|
19878
19896
|
});
|
|
19879
19897
|
}
|
|
19880
|
-
})
|
|
19898
|
+
}))
|
|
19881
19899
|
}, /*#__PURE__*/React.createElement("div", {
|
|
19882
19900
|
className: "react-autoql-header-center-container"
|
|
19883
19901
|
}, _this.renderHeaderTitle(), _this.renderShowSuccessMessage())), /*#__PURE__*/React.createElement("div", {
|
|
@@ -19971,26 +19989,7 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
|
|
|
19971
19989
|
className: "response-loading"
|
|
19972
19990
|
}, /*#__PURE__*/React.createElement("div", null), /*#__PURE__*/React.createElement("div", null), /*#__PURE__*/React.createElement("div", null), /*#__PURE__*/React.createElement("div", null))), /*#__PURE__*/React.createElement("div", {
|
|
19973
19991
|
className: "chat-bar-container"
|
|
19974
|
-
},
|
|
19975
|
-
id: "conditionListContent",
|
|
19976
|
-
className: "condition-list-display"
|
|
19977
|
-
}, /*#__PURE__*/React.createElement("h5", null, "Content:"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "thing 1"), /*#__PURE__*/React.createElement("li", null, "thing 2"))), /*#__PURE__*/React.createElement("span", {
|
|
19978
|
-
className: "condition-list-container",
|
|
19979
|
-
onMouseEnter: function onMouseEnter() {
|
|
19980
|
-
return document.getElementById('conditionListContent').style.display = 'block';
|
|
19981
|
-
},
|
|
19982
|
-
onMouseLeave: function onMouseLeave() {
|
|
19983
|
-
return document.getElementById('conditionListContent').style.display = 'none';
|
|
19984
|
-
},
|
|
19985
|
-
onClick: function onClick() {
|
|
19986
|
-
_this.setState({
|
|
19987
|
-
isConditionLockingMenuOpen: true,
|
|
19988
|
-
isOptionsDropdownOpen: false
|
|
19989
|
-
});
|
|
19990
|
-
}
|
|
19991
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
19992
|
-
type: "lock"
|
|
19993
|
-
}), " Conditions")), /*#__PURE__*/React.createElement("div", {
|
|
19992
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
19994
19993
|
className: "watermark"
|
|
19995
19994
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
19996
19995
|
type: "react-autoql-bubbles-outlined"
|