@deephaven/console 0.5.2-matplotlib.2 → 0.6.0

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.
Files changed (114) hide show
  1. package/dist/Console.d.ts +3 -0
  2. package/dist/Console.d.ts.map +1 -1
  3. package/dist/Console.js +807 -871
  4. package/dist/Console.js.map +1 -1
  5. package/dist/ConsoleInput.d.ts +1 -38
  6. package/dist/ConsoleInput.d.ts.map +1 -1
  7. package/dist/ConsoleInput.js +331 -436
  8. package/dist/ConsoleInput.js.map +1 -1
  9. package/dist/ConsoleMenu.js +159 -215
  10. package/dist/ConsoleMenu.js.map +1 -1
  11. package/dist/ConsolePropTypes.js +1 -1
  12. package/dist/ConsolePropTypes.js.map +1 -1
  13. package/dist/ConsoleShortcuts.js +2 -2
  14. package/dist/ConsoleShortcuts.js.map +1 -1
  15. package/dist/ConsoleStatusBar.js +85 -125
  16. package/dist/ConsoleStatusBar.js.map +1 -1
  17. package/dist/StoragePropTypes.js +2 -2
  18. package/dist/StoragePropTypes.js.map +1 -1
  19. package/dist/command-history/CommandHistory.css +5 -2
  20. package/dist/command-history/CommandHistory.css.map +1 -1
  21. package/dist/command-history/CommandHistory.d.ts +5 -0
  22. package/dist/command-history/CommandHistory.d.ts.map +1 -1
  23. package/dist/command-history/CommandHistory.js +303 -391
  24. package/dist/command-history/CommandHistory.js.map +1 -1
  25. package/dist/command-history/CommandHistoryActions.css +4 -0
  26. package/dist/command-history/CommandHistoryActions.css.map +1 -1
  27. package/dist/command-history/CommandHistoryActions.d.ts.map +1 -1
  28. package/dist/command-history/CommandHistoryActions.js +40 -79
  29. package/dist/command-history/CommandHistoryActions.js.map +1 -1
  30. package/dist/command-history/CommandHistoryItem.css +1 -1
  31. package/dist/command-history/CommandHistoryItem.d.ts +5 -0
  32. package/dist/command-history/CommandHistoryItem.d.ts.map +1 -1
  33. package/dist/command-history/CommandHistoryItem.js +15 -9
  34. package/dist/command-history/CommandHistoryItem.js.map +1 -1
  35. package/dist/command-history/CommandHistoryItemTooltip.d.ts +1 -40
  36. package/dist/command-history/CommandHistoryItemTooltip.d.ts.map +1 -1
  37. package/dist/command-history/CommandHistoryItemTooltip.js +139 -189
  38. package/dist/command-history/CommandHistoryItemTooltip.js.map +1 -1
  39. package/dist/command-history/CommandHistoryViewportUpdater.js +30 -35
  40. package/dist/command-history/CommandHistoryViewportUpdater.js.map +1 -1
  41. package/dist/command-history/index.js +5 -5
  42. package/dist/command-history/index.js.map +1 -1
  43. package/dist/common/Code.js +34 -70
  44. package/dist/common/Code.js.map +1 -1
  45. package/dist/common/ConsoleConstants.js +3 -24
  46. package/dist/common/ConsoleConstants.js.map +1 -1
  47. package/dist/common/ConsoleUtils.d.ts +1 -3
  48. package/dist/common/ConsoleUtils.d.ts.map +1 -1
  49. package/dist/common/ConsoleUtils.js +60 -94
  50. package/dist/common/ConsoleUtils.js.map +1 -1
  51. package/dist/common/ObjectIcon.js +4 -2
  52. package/dist/common/ObjectIcon.js.map +1 -1
  53. package/dist/common/index.d.js +1 -34
  54. package/dist/common/index.d.js.map +1 -1
  55. package/dist/common/index.js +4 -4
  56. package/dist/common/index.js.map +1 -1
  57. package/dist/console-history/ConsoleHistory.js +27 -63
  58. package/dist/console-history/ConsoleHistory.js.map +1 -1
  59. package/dist/console-history/ConsoleHistoryItem.js +116 -154
  60. package/dist/console-history/ConsoleHistoryItem.js.map +1 -1
  61. package/dist/console-history/ConsoleHistoryItemResult.js +4 -2
  62. package/dist/console-history/ConsoleHistoryItemResult.js.map +1 -1
  63. package/dist/console-history/ConsoleHistoryResultErrorMessage.js +94 -132
  64. package/dist/console-history/ConsoleHistoryResultErrorMessage.js.map +1 -1
  65. package/dist/console-history/ConsoleHistoryResultInProgress.js +42 -76
  66. package/dist/console-history/ConsoleHistoryResultInProgress.js.map +1 -1
  67. package/dist/console-history/index.js +5 -5
  68. package/dist/console-history/index.js.map +1 -1
  69. package/dist/csv/CsvFormats.js +14 -28
  70. package/dist/csv/CsvFormats.js.map +1 -1
  71. package/dist/csv/CsvInputBar.css +25 -23
  72. package/dist/csv/CsvInputBar.css.map +1 -1
  73. package/dist/csv/CsvInputBar.d.ts +2 -45
  74. package/dist/csv/CsvInputBar.d.ts.map +1 -1
  75. package/dist/csv/CsvInputBar.js +298 -372
  76. package/dist/csv/CsvInputBar.js.map +1 -1
  77. package/dist/csv/CsvOverlay.js +197 -243
  78. package/dist/csv/CsvOverlay.js.map +1 -1
  79. package/dist/csv/CsvParser.js +186 -209
  80. package/dist/csv/CsvParser.js.map +1 -1
  81. package/dist/csv/CsvTypeParser.js +185 -210
  82. package/dist/csv/CsvTypeParser.js.map +1 -1
  83. package/dist/csv/NewTableColumnTypes.js +1 -5
  84. package/dist/csv/NewTableColumnTypes.js.map +1 -1
  85. package/dist/index.js +14 -14
  86. package/dist/index.js.map +1 -1
  87. package/dist/log/LogLevelMenuItem.js +24 -58
  88. package/dist/log/LogLevelMenuItem.js.map +1 -1
  89. package/dist/log/LogView.js +429 -484
  90. package/dist/log/LogView.js.map +1 -1
  91. package/dist/monaco/MonacoCompletionProvider.js +92 -124
  92. package/dist/monaco/MonacoCompletionProvider.js.map +1 -1
  93. package/dist/monaco/MonacoUtils.js +315 -331
  94. package/dist/monaco/MonacoUtils.js.map +1 -1
  95. package/dist/monaco/index.js +2 -2
  96. package/dist/monaco/index.js.map +1 -1
  97. package/dist/monaco/lang/db.js +3 -3
  98. package/dist/monaco/lang/db.js.map +1 -1
  99. package/dist/monaco/lang/groovy.js +3 -3
  100. package/dist/monaco/lang/groovy.js.map +1 -1
  101. package/dist/monaco/lang/log.js +3 -3
  102. package/dist/monaco/lang/log.js.map +1 -1
  103. package/dist/monaco/lang/python.js +3 -3
  104. package/dist/monaco/lang/python.js.map +1 -1
  105. package/dist/monaco/lang/scala.js +5 -5
  106. package/dist/monaco/lang/scala.js.map +1 -1
  107. package/dist/notebook/Editor.js +101 -141
  108. package/dist/notebook/Editor.js.map +1 -1
  109. package/dist/notebook/ScriptEditor.js +261 -301
  110. package/dist/notebook/ScriptEditor.js.map +1 -1
  111. package/dist/notebook/ScriptEditorUtils.js +26 -42
  112. package/dist/notebook/ScriptEditorUtils.js.map +1 -1
  113. package/dist/tsconfig.tsbuildinfo +1 -1
  114. package/package.json +17 -22
@@ -1,84 +1,48 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
2
-
3
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
-
5
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
6
-
7
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8
-
9
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
10
-
11
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
-
13
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
-
15
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
16
-
17
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
18
-
19
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
20
-
21
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
22
-
23
1
  import React, { Component } from 'react';
24
2
  import PropTypes from 'prop-types';
25
3
  import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
26
4
 
27
- var Code = /*#__PURE__*/function (_Component) {
28
- _inherits(Code, _Component);
29
-
30
- var _super = _createSuper(Code);
31
-
32
- function Code(props) {
33
- var _this;
34
-
35
- _classCallCheck(this, Code);
5
+ class Code extends Component {
6
+ constructor(props) {
7
+ super(props);
8
+ this.container = null;
9
+ }
36
10
 
37
- _this = _super.call(this, props);
38
- _this.container = null;
39
- return _this;
11
+ componentDidMount() {
12
+ this.colorize();
40
13
  }
41
14
 
42
- _createClass(Code, [{
43
- key: "componentDidMount",
44
- value: function componentDidMount() {
45
- this.colorize();
46
- }
47
- }, {
48
- key: "colorize",
49
- value: function colorize() {
50
- var children = this.props.children;
15
+ colorize() {
16
+ var {
17
+ children
18
+ } = this.props;
51
19
 
52
- if (this.container && children) {
53
- monaco.editor.colorizeElement(this.container, {
54
- theme: 'dh-dark'
55
- });
56
- }
20
+ if (this.container && children) {
21
+ monaco.editor.colorizeElement(this.container, {
22
+ theme: 'dh-dark'
23
+ });
57
24
  }
58
- }, {
59
- key: "render",
60
- value: function render() {
61
- var _this2 = this;
25
+ }
62
26
 
63
- var _this$props = this.props,
64
- children = _this$props.children,
65
- language = _this$props.language;
66
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
67
- "data-lang": language,
68
- ref: function ref(container) {
69
- _this2.container = container;
70
- } // Add pointerEvents: 'none' has huge benefits on performance with Hit Test testing on large colorized elements.
71
- // You can still select the text event with this set
72
- ,
73
- style: {
74
- pointerEvents: 'none'
75
- }
76
- }, children));
77
- }
78
- }]);
27
+ render() {
28
+ var {
29
+ children,
30
+ language
31
+ } = this.props;
32
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
33
+ "data-lang": language,
34
+ ref: container => {
35
+ this.container = container;
36
+ } // Add pointerEvents: 'none' has huge benefits on performance with Hit Test testing on large colorized elements.
37
+ // You can still select the text event with this set
38
+ ,
39
+ style: {
40
+ pointerEvents: 'none'
41
+ }
42
+ }, children));
43
+ }
79
44
 
80
- return Code;
81
- }(Component);
45
+ }
82
46
 
83
47
  Code.propTypes = {
84
48
  children: PropTypes.node.isRequired,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/common/Code.jsx"],"names":["React","Component","PropTypes","monaco","Code","props","container","colorize","children","editor","colorizeElement","theme","language","pointerEvents","propTypes","node","isRequired","string"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAO,KAAKC,MAAZ,MAAwB,wCAAxB;;IAEMC,I;;;;;AACJ,gBAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AACjB,8BAAMA,KAAN;AAEA,UAAKC,SAAL,GAAiB,IAAjB;AAHiB;AAIlB;;;;WAED,6BAAoB;AAClB,WAAKC,QAAL;AACD;;;WAED,oBAAW;AACT,UAAQC,QAAR,GAAqB,KAAKH,KAA1B,CAAQG,QAAR;;AACA,UAAI,KAAKF,SAAL,IAAkBE,QAAtB,EAAgC;AAC9BL,QAAAA,MAAM,CAACM,MAAP,CAAcC,eAAd,CAA8B,KAAKJ,SAAnC,EAA8C;AAC5CK,UAAAA,KAAK,EAAE;AADqC,SAA9C;AAGD;AACF;;;WAED,kBAAS;AAAA;;AACP,wBAA+B,KAAKN,KAApC;AAAA,UAAQG,QAAR,eAAQA,QAAR;AAAA,UAAkBI,QAAlB,eAAkBA,QAAlB;AACA,0BACE,8CACE;AACE,qBAAWA,QADb;AAEE,QAAA,GAAG,EAAE,aAAAN,SAAS,EAAI;AAChB,UAAA,MAAI,CAACA,SAAL,GAAiBA,SAAjB;AACD,SAJH,CAKE;AACA;AANF;AAOE,QAAA,KAAK,EAAE;AAAEO,UAAAA,aAAa,EAAE;AAAjB;AAPT,SASGL,QATH,CADF,CADF;AAeD;;;;EArCgBP,S;;AAwCnBG,IAAI,CAACU,SAAL,GAAiB;AACfN,EAAAA,QAAQ,EAAEN,SAAS,CAACa,IAAV,CAAeC,UADV;AAEfJ,EAAAA,QAAQ,EAAEV,SAAS,CAACe,MAAV,CAAiBD;AAFZ,CAAjB;AAKA,eAAeZ,IAAf","sourcesContent":["import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport * as monaco from 'monaco-editor/esm/vs/editor/editor.api';\n\nclass Code extends Component {\n constructor(props) {\n super(props);\n\n this.container = null;\n }\n\n componentDidMount() {\n this.colorize();\n }\n\n colorize() {\n const { children } = this.props;\n if (this.container && children) {\n monaco.editor.colorizeElement(this.container, {\n theme: 'dh-dark',\n });\n }\n }\n\n render() {\n const { children, language } = this.props;\n return (\n <div>\n <div\n data-lang={language}\n ref={container => {\n this.container = container;\n }}\n // Add pointerEvents: 'none' has huge benefits on performance with Hit Test testing on large colorized elements.\n // You can still select the text event with this set\n style={{ pointerEvents: 'none' }}\n >\n {children}\n </div>\n </div>\n );\n }\n}\n\nCode.propTypes = {\n children: PropTypes.node.isRequired,\n language: PropTypes.string.isRequired,\n};\n\nexport default Code;\n"],"file":"Code.js"}
1
+ {"version":3,"sources":["../../src/common/Code.jsx"],"names":["React","Component","PropTypes","monaco","Code","constructor","props","container","componentDidMount","colorize","children","editor","colorizeElement","theme","render","language","pointerEvents","propTypes","node","isRequired","string"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAO,KAAKC,MAAZ,MAAwB,wCAAxB;;AAEA,MAAMC,IAAN,SAAmBH,SAAnB,CAA6B;AAC3BI,EAAAA,WAAW,CAACC,KAAD,EAAQ;AACjB,UAAMA,KAAN;AAEA,SAAKC,SAAL,GAAiB,IAAjB;AACD;;AAEDC,EAAAA,iBAAiB,GAAG;AAClB,SAAKC,QAAL;AACD;;AAEDA,EAAAA,QAAQ,GAAG;AACT,QAAM;AAAEC,MAAAA;AAAF,QAAe,KAAKJ,KAA1B;;AACA,QAAI,KAAKC,SAAL,IAAkBG,QAAtB,EAAgC;AAC9BP,MAAAA,MAAM,CAACQ,MAAP,CAAcC,eAAd,CAA8B,KAAKL,SAAnC,EAA8C;AAC5CM,QAAAA,KAAK,EAAE;AADqC,OAA9C;AAGD;AACF;;AAEDC,EAAAA,MAAM,GAAG;AACP,QAAM;AAAEJ,MAAAA,QAAF;AAAYK,MAAAA;AAAZ,QAAyB,KAAKT,KAApC;AACA,wBACE,8CACE;AACE,mBAAWS,QADb;AAEE,MAAA,GAAG,EAAER,SAAS,IAAI;AAChB,aAAKA,SAAL,GAAiBA,SAAjB;AACD,OAJH,CAKE;AACA;AANF;AAOE,MAAA,KAAK,EAAE;AAAES,QAAAA,aAAa,EAAE;AAAjB;AAPT,OASGN,QATH,CADF,CADF;AAeD;;AArC0B;;AAwC7BN,IAAI,CAACa,SAAL,GAAiB;AACfP,EAAAA,QAAQ,EAAER,SAAS,CAACgB,IAAV,CAAeC,UADV;AAEfJ,EAAAA,QAAQ,EAAEb,SAAS,CAACkB,MAAV,CAAiBD;AAFZ,CAAjB;AAKA,eAAef,IAAf","sourcesContent":["import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport * as monaco from 'monaco-editor/esm/vs/editor/editor.api';\n\nclass Code extends Component {\n constructor(props) {\n super(props);\n\n this.container = null;\n }\n\n componentDidMount() {\n this.colorize();\n }\n\n colorize() {\n const { children } = this.props;\n if (this.container && children) {\n monaco.editor.colorizeElement(this.container, {\n theme: 'dh-dark',\n });\n }\n }\n\n render() {\n const { children, language } = this.props;\n return (\n <div>\n <div\n data-lang={language}\n ref={container => {\n this.container = container;\n }}\n // Add pointerEvents: 'none' has huge benefits on performance with Hit Test testing on large colorized elements.\n // You can still select the text event with this set\n style={{ pointerEvents: 'none' }}\n >\n {children}\n </div>\n </div>\n );\n }\n}\n\nCode.propTypes = {\n children: PropTypes.node.isRequired,\n language: PropTypes.string.isRequired,\n};\n\nexport default Code;\n"],"file":"Code.js"}
@@ -1,32 +1,11 @@
1
1
  var _process$env$REACT_AP;
2
2
 
3
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
-
5
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
-
7
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
-
9
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
10
-
11
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
12
-
13
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
-
15
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
-
17
3
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
4
 
19
- var ConsoleConstants = function ConsoleConstants() {
20
- _classCallCheck(this, ConsoleConstants);
21
- };
22
-
23
- _defineProperty(ConsoleConstants, "LANGUAGE_MAP", new Map((_process$env$REACT_AP = process.env.REACT_APP_SESSION_LANGUAGES) === null || _process$env$REACT_AP === void 0 ? void 0 : _process$env$REACT_AP.split(',').map(function (str) {
24
- return str.split('=');
25
- }).map(function (_ref) {
26
- var _ref2 = _slicedToArray(_ref, 2),
27
- language = _ref2[0],
28
- displayName = _ref2[1];
5
+ class ConsoleConstants {}
29
6
 
7
+ _defineProperty(ConsoleConstants, "LANGUAGE_MAP", new Map((_process$env$REACT_AP = process.env.REACT_APP_SESSION_LANGUAGES) === null || _process$env$REACT_AP === void 0 ? void 0 : _process$env$REACT_AP.split(',').map(str => str.split('=')).map((_ref) => {
8
+ var [language, displayName] = _ref;
30
9
  return [language, displayName !== null && displayName !== void 0 ? displayName : language];
31
10
  })));
32
11
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/common/ConsoleConstants.ts"],"names":["ConsoleConstants","Map","process","env","REACT_APP_SESSION_LANGUAGES","split","map","str","language","displayName"],"mappings":";;;;;;;;;;;;;;;;;;IAAMA,gB;;;;gBAAAA,gB,kBAIkB,IAAIC,GAAJ,0BACpBC,OAAO,CAACC,GAAR,CAAYC,2BADQ,0DACpB,sBAAyCC,KAAzC,CAA+C,GAA/C,EACGC,GADH,CACO,UAAAC,GAAG;AAAA,SAAIA,GAAG,CAACF,KAAJ,CAAU,GAAV,CAAJ;AAAA,CADV,EAEGC,GAFH,CAEO;AAAA;AAAA,MAAEE,QAAF;AAAA,MAAYC,WAAZ;;AAAA,SAA6B,CAACD,QAAD,EAAWC,WAAX,aAAWA,WAAX,cAAWA,WAAX,GAA0BD,QAA1B,CAA7B;AAAA,CAFP,CADoB,C;;AAOxB,eAAeR,gBAAf","sourcesContent":["class ConsoleConstants {\n /**\n * Map of language keys to their display names\n */\n static LANGUAGE_MAP = new Map(\n process.env.REACT_APP_SESSION_LANGUAGES?.split(',')\n .map(str => str.split('='))\n .map(([language, displayName]) => [language, displayName ?? language])\n );\n}\n\nexport default ConsoleConstants;\n"],"file":"ConsoleConstants.js"}
1
+ {"version":3,"sources":["../../src/common/ConsoleConstants.ts"],"names":["ConsoleConstants","Map","process","env","REACT_APP_SESSION_LANGUAGES","split","map","str","language","displayName"],"mappings":";;;;AAAA,MAAMA,gBAAN,CAAuB;;gBAAjBA,gB,kBAIkB,IAAIC,GAAJ,0BACpBC,OAAO,CAACC,GAAR,CAAYC,2BADQ,0DACpB,sBAAyCC,KAAzC,CAA+C,GAA/C,EACGC,GADH,CACOC,GAAG,IAAIA,GAAG,CAACF,KAAJ,CAAU,GAAV,CADd,EAEGC,GAFH,CAEO;AAAA,MAAC,CAACE,QAAD,EAAWC,WAAX,CAAD;AAAA,SAA6B,CAACD,QAAD,EAAWC,WAAX,aAAWA,WAAX,cAAWA,WAAX,GAA0BD,QAA1B,CAA7B;AAAA,CAFP,CADoB,C;;AAOxB,eAAeR,gBAAf","sourcesContent":["class ConsoleConstants {\n /**\n * Map of language keys to their display names\n */\n static LANGUAGE_MAP = new Map(\n process.env.REACT_APP_SESSION_LANGUAGES?.split(',')\n .map(str => str.split('='))\n .map(([language, displayName]) => [language, displayName ?? language])\n );\n}\n\nexport default ConsoleConstants;\n"],"file":"ConsoleConstants.js"}
@@ -10,10 +10,8 @@ declare class ConsoleUtils {
10
10
  static defaultHost(): string;
11
11
  static isTableType(type: any): boolean;
12
12
  static isWidgetType(type: any): boolean;
13
- static isDataStringType(type: any): boolean;
14
- static isOpenableType(type: any): any;
13
+ static isOpenableType(type: any): boolean;
15
14
  static isFigureType(type: any): boolean;
16
15
  static isPandas(type: any): boolean;
17
- static isMatPlotLib(type: any): any;
18
16
  }
19
17
  //# sourceMappingURL=ConsoleUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConsoleUtils.d.ts","sourceRoot":"","sources":["../../src/common/ConsoleUtils.js"],"names":[],"mappings":";AAGA;IACE;;;;OAIG;IACH,qCAUC;IAED,iDAWC;IAED,6BASC;IAED,uCAEC;IAED,wCAMC;IAED,4CAEC;IAED,sCAMC;IAED,wCAEC;IAED,oCAEC;IAED,oCAEC;CACF"}
1
+ {"version":3,"file":"ConsoleUtils.d.ts","sourceRoot":"","sources":["../../src/common/ConsoleUtils.js"],"names":[],"mappings":";AAGA;IACE;;;;OAIG;IACH,qCAUC;IAED,iDAWC;IAED,6BASC;IAED,uCAEC;IAED,wCAMC;IAED,0CAEC;IAED,wCAEC;IAED,oCAEC;CACF"}
@@ -1,106 +1,72 @@
1
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1
+ import ShellQuote from 'shell-quote';
2
+ import dh from '@deephaven/jsapi-shim';
2
3
 
3
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
4
+ class ConsoleUtils {
5
+ /**
6
+ * Given the provided text, parse out arguments using shell quoting rules.
7
+ * @param str The text to parse.
8
+ * @return string[] of the arguments. Empty if no arguments found.
9
+ */
10
+ static parseArguments(str) {
11
+ if (!str || !(typeof str === 'string' || str instanceof String)) {
12
+ return [];
13
+ } // Parse can return an object, not just a string. See the `ParseEntry` type def for all types
14
+ // We must map them all to strings. Filter out comments that will not be needed as well.
4
15
 
5
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6
16
 
7
- import ShellQuote from 'shell-quote';
8
- import dh from '@deephaven/jsapi-shim';
17
+ return ShellQuote.parse(str).filter(arg => !arg.comment).map(arg => {
18
+ var _ref, _arg$pattern;
9
19
 
10
- var ConsoleUtils = /*#__PURE__*/function () {
11
- function ConsoleUtils() {
12
- _classCallCheck(this, ConsoleUtils);
20
+ return (_ref = (_arg$pattern = arg.pattern) !== null && _arg$pattern !== void 0 ? _arg$pattern : arg.op) !== null && _ref !== void 0 ? _ref : "".concat(arg);
21
+ });
13
22
  }
14
23
 
15
- _createClass(ConsoleUtils, null, [{
16
- key: "parseArguments",
17
- value:
18
- /**
19
- * Given the provided text, parse out arguments using shell quoting rules.
20
- * @param str The text to parse.
21
- * @return string[] of the arguments. Empty if no arguments found.
22
- */
23
- function parseArguments(str) {
24
- if (!str || !(typeof str === 'string' || str instanceof String)) {
25
- return [];
26
- } // Parse can return an object, not just a string. See the `ParseEntry` type def for all types
27
- // We must map them all to strings. Filter out comments that will not be needed as well.
28
-
29
-
30
- return ShellQuote.parse(str).filter(function (arg) {
31
- return !arg.comment;
32
- }).map(function (arg) {
33
- var _ref, _arg$pattern;
34
-
35
- return (_ref = (_arg$pattern = arg.pattern) !== null && _arg$pattern !== void 0 ? _arg$pattern : arg.op) !== null && _ref !== void 0 ? _ref : "".concat(arg);
36
- });
37
- }
38
- }, {
39
- key: "formatTimestamp",
40
- value: function formatTimestamp(date) {
41
- if (!date || !(date instanceof Date)) {
42
- return null;
43
- }
44
-
45
- var hours = "".concat(date.getHours()).padStart(2, '0');
46
- var minutes = "".concat(date.getMinutes()).padStart(2, '0');
47
- var seconds = "".concat(date.getSeconds()).padStart(2, '0');
48
- var milliseconds = "".concat(date.getMilliseconds()).padStart(3, '0');
49
- return "".concat(hours, ":").concat(minutes, ":").concat(seconds, ".").concat(milliseconds);
50
- }
51
- }, {
52
- key: "defaultHost",
53
- value: function defaultHost() {
54
- var defaultHost = null;
55
-
56
- try {
57
- var url = new URL(process.env.REACT_APP_CORE_API_URL);
58
- defaultHost = url.hostname;
59
- } catch (error) {
60
- defaultHost = window.location.hostname;
61
- }
62
-
63
- return defaultHost;
64
- }
65
- }, {
66
- key: "isTableType",
67
- value: function isTableType(type) {
68
- return type === dh.VariableType.TABLE || type === dh.VariableType.TREETABLE;
24
+ static formatTimestamp(date) {
25
+ if (!date || !(date instanceof Date)) {
26
+ return null;
69
27
  }
70
- }, {
71
- key: "isWidgetType",
72
- value: function isWidgetType(type) {
73
- return type === dh.VariableType.FIGURE || type === dh.VariableType.OTHERWIDGET || type === dh.VariableType.PANDAS;
74
- }
75
- }, {
76
- key: "isDataStringType",
77
- value: function isDataStringType(type) {
78
- return type === dh.VariableType.DATA_STRING;
79
- }
80
- }, {
81
- key: "isOpenableType",
82
- value: function isOpenableType(type) {
83
- return ConsoleUtils.isTableType(type) || ConsoleUtils.isWidgetType(type) || ConsoleUtils.isMatPlotLib(type);
84
- }
85
- }, {
86
- key: "isFigureType",
87
- value: function isFigureType(type) {
88
- return type === dh.VariableType.FIGURE;
89
- }
90
- }, {
91
- key: "isPandas",
92
- value: function isPandas(type) {
93
- return type === dh.VariableType.PANDAS;
94
- }
95
- }, {
96
- key: "isMatPlotLib",
97
- value: function isMatPlotLib(type) {
98
- return type.startsWith('matplotlib');
28
+
29
+ var hours = "".concat(date.getHours()).padStart(2, '0');
30
+ var minutes = "".concat(date.getMinutes()).padStart(2, '0');
31
+ var seconds = "".concat(date.getSeconds()).padStart(2, '0');
32
+ var milliseconds = "".concat(date.getMilliseconds()).padStart(3, '0');
33
+ return "".concat(hours, ":").concat(minutes, ":").concat(seconds, ".").concat(milliseconds);
34
+ }
35
+
36
+ static defaultHost() {
37
+ var defaultHost = null;
38
+
39
+ try {
40
+ var url = new URL(process.env.REACT_APP_CORE_API_URL);
41
+ defaultHost = url.hostname;
42
+ } catch (error) {
43
+ defaultHost = window.location.hostname;
99
44
  }
100
- }]);
101
45
 
102
- return ConsoleUtils;
103
- }();
46
+ return defaultHost;
47
+ }
48
+
49
+ static isTableType(type) {
50
+ return type === dh.VariableType.TABLE || type === dh.VariableType.TREETABLE;
51
+ }
52
+
53
+ static isWidgetType(type) {
54
+ return type === dh.VariableType.FIGURE || type === dh.VariableType.OTHERWIDGET || type === dh.VariableType.PANDAS;
55
+ }
56
+
57
+ static isOpenableType(type) {
58
+ return ConsoleUtils.isTableType(type) || ConsoleUtils.isWidgetType(type);
59
+ }
60
+
61
+ static isFigureType(type) {
62
+ return type === dh.VariableType.FIGURE;
63
+ }
64
+
65
+ static isPandas(type) {
66
+ return type === dh.VariableType.PANDAS;
67
+ }
68
+
69
+ }
104
70
 
105
71
  export default ConsoleUtils;
106
72
  //# sourceMappingURL=ConsoleUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/common/ConsoleUtils.js"],"names":["ShellQuote","dh","ConsoleUtils","str","String","parse","filter","arg","comment","map","pattern","op","date","Date","hours","getHours","padStart","minutes","getMinutes","seconds","getSeconds","milliseconds","getMilliseconds","defaultHost","url","URL","process","env","REACT_APP_CORE_API_URL","hostname","error","window","location","type","VariableType","TABLE","TREETABLE","FIGURE","OTHERWIDGET","PANDAS","DATA_STRING","isTableType","isWidgetType","isMatPlotLib","startsWith"],"mappings":";;;;;;AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,EAAP,MAAe,uBAAf;;IAEMC,Y;;;;;;;;AACJ;AACF;AACA;AACA;AACA;AACE,4BAAsBC,GAAtB,EAA2B;AACzB,UAAI,CAACA,GAAD,IAAQ,EAAE,OAAOA,GAAP,KAAe,QAAf,IAA2BA,GAAG,YAAYC,MAA5C,CAAZ,EAAiE;AAC/D,eAAO,EAAP;AACD,OAHwB,CAKzB;AACA;;;AACA,aAAOJ,UAAU,CAACK,KAAX,CAAiBF,GAAjB,EACJG,MADI,CACG,UAAAC,GAAG;AAAA,eAAI,CAACA,GAAG,CAACC,OAAT;AAAA,OADN,EAEJC,GAFI,CAEA,UAAAF,GAAG;AAAA;;AAAA,uCAAIA,GAAG,CAACG,OAAR,uDAAmBH,GAAG,CAACI,EAAvB,iDAAgCJ,GAAhC;AAAA,OAFH,CAAP;AAGD;;;WAED,yBAAuBK,IAAvB,EAA6B;AAC3B,UAAI,CAACA,IAAD,IAAS,EAAEA,IAAI,YAAYC,IAAlB,CAAb,EAAsC;AACpC,eAAO,IAAP;AACD;;AAED,UAAMC,KAAK,GAAG,UAAGF,IAAI,CAACG,QAAL,EAAH,EAAqBC,QAArB,CAA8B,CAA9B,EAAiC,GAAjC,CAAd;AACA,UAAMC,OAAO,GAAG,UAAGL,IAAI,CAACM,UAAL,EAAH,EAAuBF,QAAvB,CAAgC,CAAhC,EAAmC,GAAnC,CAAhB;AACA,UAAMG,OAAO,GAAG,UAAGP,IAAI,CAACQ,UAAL,EAAH,EAAuBJ,QAAvB,CAAgC,CAAhC,EAAmC,GAAnC,CAAhB;AACA,UAAMK,YAAY,GAAG,UAAGT,IAAI,CAACU,eAAL,EAAH,EAA4BN,QAA5B,CAAqC,CAArC,EAAwC,GAAxC,CAArB;AAEA,uBAAUF,KAAV,cAAmBG,OAAnB,cAA8BE,OAA9B,cAAyCE,YAAzC;AACD;;;WAED,uBAAqB;AACnB,UAAIE,WAAW,GAAG,IAAlB;;AACA,UAAI;AACF,YAAMC,GAAG,GAAG,IAAIC,GAAJ,CAAQC,OAAO,CAACC,GAAR,CAAYC,sBAApB,CAAZ;AACAL,QAAAA,WAAW,GAAGC,GAAG,CAACK,QAAlB;AACD,OAHD,CAGE,OAAOC,KAAP,EAAc;AACdP,QAAAA,WAAW,GAAGQ,MAAM,CAACC,QAAP,CAAgBH,QAA9B;AACD;;AACD,aAAON,WAAP;AACD;;;WAED,qBAAmBU,IAAnB,EAAyB;AACvB,aAAOA,IAAI,KAAKhC,EAAE,CAACiC,YAAH,CAAgBC,KAAzB,IAAkCF,IAAI,KAAKhC,EAAE,CAACiC,YAAH,CAAgBE,SAAlE;AACD;;;WAED,sBAAoBH,IAApB,EAA0B;AACxB,aACEA,IAAI,KAAKhC,EAAE,CAACiC,YAAH,CAAgBG,MAAzB,IACAJ,IAAI,KAAKhC,EAAE,CAACiC,YAAH,CAAgBI,WADzB,IAEAL,IAAI,KAAKhC,EAAE,CAACiC,YAAH,CAAgBK,MAH3B;AAKD;;;WAED,0BAAwBN,IAAxB,EAA8B;AAC5B,aAAOA,IAAI,KAAKhC,EAAE,CAACiC,YAAH,CAAgBM,WAAhC;AACD;;;WAED,wBAAsBP,IAAtB,EAA4B;AAC1B,aACE/B,YAAY,CAACuC,WAAb,CAAyBR,IAAzB,KACA/B,YAAY,CAACwC,YAAb,CAA0BT,IAA1B,CADA,IAEA/B,YAAY,CAACyC,YAAb,CAA0BV,IAA1B,CAHF;AAKD;;;WAED,sBAAoBA,IAApB,EAA0B;AACxB,aAAOA,IAAI,KAAKhC,EAAE,CAACiC,YAAH,CAAgBG,MAAhC;AACD;;;WAED,kBAAgBJ,IAAhB,EAAsB;AACpB,aAAOA,IAAI,KAAKhC,EAAE,CAACiC,YAAH,CAAgBK,MAAhC;AACD;;;WAED,sBAAoBN,IAApB,EAA0B;AACxB,aAAOA,IAAI,CAACW,UAAL,CAAgB,YAAhB,CAAP;AACD;;;;;;AAGH,eAAe1C,YAAf","sourcesContent":["import ShellQuote from 'shell-quote';\nimport dh from '@deephaven/jsapi-shim';\n\nclass ConsoleUtils {\n /**\n * Given the provided text, parse out arguments using shell quoting rules.\n * @param str The text to parse.\n * @return string[] of the arguments. Empty if no arguments found.\n */\n static parseArguments(str) {\n if (!str || !(typeof str === 'string' || str instanceof String)) {\n return [];\n }\n\n // Parse can return an object, not just a string. See the `ParseEntry` type def for all types\n // We must map them all to strings. Filter out comments that will not be needed as well.\n return ShellQuote.parse(str)\n .filter(arg => !arg.comment)\n .map(arg => arg.pattern ?? arg.op ?? `${arg}`);\n }\n\n static formatTimestamp(date) {\n if (!date || !(date instanceof Date)) {\n return null;\n }\n\n const hours = `${date.getHours()}`.padStart(2, '0');\n const minutes = `${date.getMinutes()}`.padStart(2, '0');\n const seconds = `${date.getSeconds()}`.padStart(2, '0');\n const milliseconds = `${date.getMilliseconds()}`.padStart(3, '0');\n\n return `${hours}:${minutes}:${seconds}.${milliseconds}`;\n }\n\n static defaultHost() {\n let defaultHost = null;\n try {\n const url = new URL(process.env.REACT_APP_CORE_API_URL);\n defaultHost = url.hostname;\n } catch (error) {\n defaultHost = window.location.hostname;\n }\n return defaultHost;\n }\n\n static isTableType(type) {\n return type === dh.VariableType.TABLE || type === dh.VariableType.TREETABLE;\n }\n\n static isWidgetType(type) {\n return (\n type === dh.VariableType.FIGURE ||\n type === dh.VariableType.OTHERWIDGET ||\n type === dh.VariableType.PANDAS\n );\n }\n\n static isDataStringType(type) {\n return type === dh.VariableType.DATA_STRING;\n }\n\n static isOpenableType(type) {\n return (\n ConsoleUtils.isTableType(type) ||\n ConsoleUtils.isWidgetType(type) ||\n ConsoleUtils.isMatPlotLib(type)\n );\n }\n\n static isFigureType(type) {\n return type === dh.VariableType.FIGURE;\n }\n\n static isPandas(type) {\n return type === dh.VariableType.PANDAS;\n }\n\n static isMatPlotLib(type) {\n return type.startsWith('matplotlib');\n }\n}\n\nexport default ConsoleUtils;\n"],"file":"ConsoleUtils.js"}
1
+ {"version":3,"sources":["../../src/common/ConsoleUtils.js"],"names":["ShellQuote","dh","ConsoleUtils","parseArguments","str","String","parse","filter","arg","comment","map","pattern","op","formatTimestamp","date","Date","hours","getHours","padStart","minutes","getMinutes","seconds","getSeconds","milliseconds","getMilliseconds","defaultHost","url","URL","process","env","REACT_APP_CORE_API_URL","hostname","error","window","location","isTableType","type","VariableType","TABLE","TREETABLE","isWidgetType","FIGURE","OTHERWIDGET","PANDAS","isOpenableType","isFigureType","isPandas"],"mappings":"AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,EAAP,MAAe,uBAAf;;AAEA,MAAMC,YAAN,CAAmB;AACjB;AACF;AACA;AACA;AACA;AACuB,SAAdC,cAAc,CAACC,GAAD,EAAM;AACzB,QAAI,CAACA,GAAD,IAAQ,EAAE,OAAOA,GAAP,KAAe,QAAf,IAA2BA,GAAG,YAAYC,MAA5C,CAAZ,EAAiE;AAC/D,aAAO,EAAP;AACD,KAHwB,CAKzB;AACA;;;AACA,WAAOL,UAAU,CAACM,KAAX,CAAiBF,GAAjB,EACJG,MADI,CACGC,GAAG,IAAI,CAACA,GAAG,CAACC,OADf,EAEJC,GAFI,CAEAF,GAAG;AAAA;;AAAA,qCAAIA,GAAG,CAACG,OAAR,uDAAmBH,GAAG,CAACI,EAAvB,iDAAgCJ,GAAhC;AAAA,KAFH,CAAP;AAGD;;AAEqB,SAAfK,eAAe,CAACC,IAAD,EAAO;AAC3B,QAAI,CAACA,IAAD,IAAS,EAAEA,IAAI,YAAYC,IAAlB,CAAb,EAAsC;AACpC,aAAO,IAAP;AACD;;AAED,QAAMC,KAAK,GAAG,UAAGF,IAAI,CAACG,QAAL,EAAH,EAAqBC,QAArB,CAA8B,CAA9B,EAAiC,GAAjC,CAAd;AACA,QAAMC,OAAO,GAAG,UAAGL,IAAI,CAACM,UAAL,EAAH,EAAuBF,QAAvB,CAAgC,CAAhC,EAAmC,GAAnC,CAAhB;AACA,QAAMG,OAAO,GAAG,UAAGP,IAAI,CAACQ,UAAL,EAAH,EAAuBJ,QAAvB,CAAgC,CAAhC,EAAmC,GAAnC,CAAhB;AACA,QAAMK,YAAY,GAAG,UAAGT,IAAI,CAACU,eAAL,EAAH,EAA4BN,QAA5B,CAAqC,CAArC,EAAwC,GAAxC,CAArB;AAEA,qBAAUF,KAAV,cAAmBG,OAAnB,cAA8BE,OAA9B,cAAyCE,YAAzC;AACD;;AAEiB,SAAXE,WAAW,GAAG;AACnB,QAAIA,WAAW,GAAG,IAAlB;;AACA,QAAI;AACF,UAAMC,GAAG,GAAG,IAAIC,GAAJ,CAAQC,OAAO,CAACC,GAAR,CAAYC,sBAApB,CAAZ;AACAL,MAAAA,WAAW,GAAGC,GAAG,CAACK,QAAlB;AACD,KAHD,CAGE,OAAOC,KAAP,EAAc;AACdP,MAAAA,WAAW,GAAGQ,MAAM,CAACC,QAAP,CAAgBH,QAA9B;AACD;;AACD,WAAON,WAAP;AACD;;AAEiB,SAAXU,WAAW,CAACC,IAAD,EAAO;AACvB,WAAOA,IAAI,KAAKnC,EAAE,CAACoC,YAAH,CAAgBC,KAAzB,IAAkCF,IAAI,KAAKnC,EAAE,CAACoC,YAAH,CAAgBE,SAAlE;AACD;;AAEkB,SAAZC,YAAY,CAACJ,IAAD,EAAO;AACxB,WACEA,IAAI,KAAKnC,EAAE,CAACoC,YAAH,CAAgBI,MAAzB,IACAL,IAAI,KAAKnC,EAAE,CAACoC,YAAH,CAAgBK,WADzB,IAEAN,IAAI,KAAKnC,EAAE,CAACoC,YAAH,CAAgBM,MAH3B;AAKD;;AAEoB,SAAdC,cAAc,CAACR,IAAD,EAAO;AAC1B,WAAOlC,YAAY,CAACiC,WAAb,CAAyBC,IAAzB,KAAkClC,YAAY,CAACsC,YAAb,CAA0BJ,IAA1B,CAAzC;AACD;;AAEkB,SAAZS,YAAY,CAACT,IAAD,EAAO;AACxB,WAAOA,IAAI,KAAKnC,EAAE,CAACoC,YAAH,CAAgBI,MAAhC;AACD;;AAEc,SAARK,QAAQ,CAACV,IAAD,EAAO;AACpB,WAAOA,IAAI,KAAKnC,EAAE,CAACoC,YAAH,CAAgBM,MAAhC;AACD;;AAhEgB;;AAmEnB,eAAezC,YAAf","sourcesContent":["import ShellQuote from 'shell-quote';\nimport dh from '@deephaven/jsapi-shim';\n\nclass ConsoleUtils {\n /**\n * Given the provided text, parse out arguments using shell quoting rules.\n * @param str The text to parse.\n * @return string[] of the arguments. Empty if no arguments found.\n */\n static parseArguments(str) {\n if (!str || !(typeof str === 'string' || str instanceof String)) {\n return [];\n }\n\n // Parse can return an object, not just a string. See the `ParseEntry` type def for all types\n // We must map them all to strings. Filter out comments that will not be needed as well.\n return ShellQuote.parse(str)\n .filter(arg => !arg.comment)\n .map(arg => arg.pattern ?? arg.op ?? `${arg}`);\n }\n\n static formatTimestamp(date) {\n if (!date || !(date instanceof Date)) {\n return null;\n }\n\n const hours = `${date.getHours()}`.padStart(2, '0');\n const minutes = `${date.getMinutes()}`.padStart(2, '0');\n const seconds = `${date.getSeconds()}`.padStart(2, '0');\n const milliseconds = `${date.getMilliseconds()}`.padStart(3, '0');\n\n return `${hours}:${minutes}:${seconds}.${milliseconds}`;\n }\n\n static defaultHost() {\n let defaultHost = null;\n try {\n const url = new URL(process.env.REACT_APP_CORE_API_URL);\n defaultHost = url.hostname;\n } catch (error) {\n defaultHost = window.location.hostname;\n }\n return defaultHost;\n }\n\n static isTableType(type) {\n return type === dh.VariableType.TABLE || type === dh.VariableType.TREETABLE;\n }\n\n static isWidgetType(type) {\n return (\n type === dh.VariableType.FIGURE ||\n type === dh.VariableType.OTHERWIDGET ||\n type === dh.VariableType.PANDAS\n );\n }\n\n static isOpenableType(type) {\n return ConsoleUtils.isTableType(type) || ConsoleUtils.isWidgetType(type);\n }\n\n static isFigureType(type) {\n return type === dh.VariableType.FIGURE;\n }\n\n static isPandas(type) {\n return type === dh.VariableType.PANDAS;\n }\n}\n\nexport default ConsoleUtils;\n"],"file":"ConsoleUtils.js"}
@@ -3,8 +3,10 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
3
  import { dhTable, vsGraph, vsPreview } from '@deephaven/icons';
4
4
  import dh from '@deephaven/jsapi-shim';
5
5
 
6
- var ObjectIcon = function ObjectIcon(_ref) {
7
- var type = _ref.type;
6
+ var ObjectIcon = (_ref) => {
7
+ var {
8
+ type
9
+ } = _ref;
8
10
 
9
11
  switch (type) {
10
12
  case dh.VariableType.TABLE:
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/common/ObjectIcon.tsx"],"names":["React","FontAwesomeIcon","dhTable","vsGraph","vsPreview","dh","ObjectIcon","type","VariableType","TABLE","TABLEMAP","TREETABLE","FIGURE"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,eAAT,QAAgC,gCAAhC;AACA,SAASC,OAAT,EAAkBC,OAAlB,EAA2BC,SAA3B,QAA4C,kBAA5C;AACA,OAAOC,EAAP,MAAe,uBAAf;;AAMA,IAAMC,UAAU,GAAG,SAAbA,UAAa,OAA4C;AAAA,MAAzCC,IAAyC,QAAzCA,IAAyC;;AAC7D,UAAQA,IAAR;AACE,SAAKF,EAAE,CAACG,YAAH,CAAgBC,KAArB;AACA,SAAKJ,EAAE,CAACG,YAAH,CAAgBE,QAArB;AACA,SAAKL,EAAE,CAACG,YAAH,CAAgBG,SAArB;AACE,0BAAO,oBAAC,eAAD;AAAiB,QAAA,IAAI,EAAET;AAAvB,QAAP;;AACF,SAAKG,EAAE,CAACG,YAAH,CAAgBI,MAArB;AACE,0BAAO,oBAAC,eAAD;AAAiB,QAAA,IAAI,EAAET;AAAvB,QAAP;;AACF;AACE,0BAAO,oBAAC,eAAD;AAAiB,QAAA,IAAI,EAAEC;AAAvB,QAAP;AARJ;AAUD,CAXD;;AAaA,eAAeE,UAAf","sourcesContent":["import React from 'react';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { dhTable, vsGraph, vsPreview } from '@deephaven/icons';\nimport dh from '@deephaven/jsapi-shim';\n\nexport type ObjectIconProps = {\n type: string;\n};\n\nconst ObjectIcon = ({ type }: ObjectIconProps): JSX.Element => {\n switch (type) {\n case dh.VariableType.TABLE:\n case dh.VariableType.TABLEMAP:\n case dh.VariableType.TREETABLE:\n return <FontAwesomeIcon icon={dhTable} />;\n case dh.VariableType.FIGURE:\n return <FontAwesomeIcon icon={vsGraph} />;\n default:\n return <FontAwesomeIcon icon={vsPreview} />;\n }\n};\n\nexport default ObjectIcon;\n"],"file":"ObjectIcon.js"}
1
+ {"version":3,"sources":["../../src/common/ObjectIcon.tsx"],"names":["React","FontAwesomeIcon","dhTable","vsGraph","vsPreview","dh","ObjectIcon","type","VariableType","TABLE","TABLEMAP","TREETABLE","FIGURE"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,eAAT,QAAgC,gCAAhC;AACA,SAASC,OAAT,EAAkBC,OAAlB,EAA2BC,SAA3B,QAA4C,kBAA5C;AACA,OAAOC,EAAP,MAAe,uBAAf;;AAMA,IAAMC,UAAU,GAAG,UAA4C;AAAA,MAA3C;AAAEC,IAAAA;AAAF,GAA2C;;AAC7D,UAAQA,IAAR;AACE,SAAKF,EAAE,CAACG,YAAH,CAAgBC,KAArB;AACA,SAAKJ,EAAE,CAACG,YAAH,CAAgBE,QAArB;AACA,SAAKL,EAAE,CAACG,YAAH,CAAgBG,SAArB;AACE,0BAAO,oBAAC,eAAD;AAAiB,QAAA,IAAI,EAAET;AAAvB,QAAP;;AACF,SAAKG,EAAE,CAACG,YAAH,CAAgBI,MAArB;AACE,0BAAO,oBAAC,eAAD;AAAiB,QAAA,IAAI,EAAET;AAAvB,QAAP;;AACF;AACE,0BAAO,oBAAC,eAAD;AAAiB,QAAA,IAAI,EAAEC;AAAvB,QAAP;AARJ;AAUD,CAXD;;AAaA,eAAeE,UAAf","sourcesContent":["import React from 'react';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { dhTable, vsGraph, vsPreview } from '@deephaven/icons';\nimport dh from '@deephaven/jsapi-shim';\n\nexport type ObjectIconProps = {\n type: string;\n};\n\nconst ObjectIcon = ({ type }: ObjectIconProps): JSX.Element => {\n switch (type) {\n case dh.VariableType.TABLE:\n case dh.VariableType.TABLEMAP:\n case dh.VariableType.TREETABLE:\n return <FontAwesomeIcon icon={dhTable} />;\n case dh.VariableType.FIGURE:\n return <FontAwesomeIcon icon={vsGraph} />;\n default:\n return <FontAwesomeIcon icon={vsPreview} />;\n }\n};\n\nexport default ObjectIcon;\n"],"file":"ObjectIcon.js"}
@@ -1,36 +1,3 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
2
-
3
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
-
5
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
6
-
7
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8
-
9
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
-
11
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12
-
13
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
14
-
15
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
16
-
17
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
18
-
19
1
  import React from 'react';
20
-
21
- var Code = /*#__PURE__*/function (_React$PureComponent) {
22
- _inherits(Code, _React$PureComponent);
23
-
24
- var _super = _createSuper(Code);
25
-
26
- function Code() {
27
- _classCallCheck(this, Code);
28
-
29
- return _super.apply(this, arguments);
30
- }
31
-
32
- return Code;
33
- }(React.PureComponent);
34
-
35
- export { Code as default };
2
+ export default class Code extends React.PureComponent {}
36
3
  //# sourceMappingURL=index.d.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/common/index.d.ts"],"names":["React","Code","PureComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;;IAOqBC,I;;;;;;;;;;;;EAAaD,KAAK,CAACE,a;;SAAnBD,I","sourcesContent":["import React from 'react';\n\ninterface CodeProps {\n children: React.ReactNode;\n language: string;\n}\n\nexport default class Code extends React.PureComponent<CodeProps> {}\n"],"file":"index.d.js"}
1
+ {"version":3,"sources":["../../src/common/index.d.ts"],"names":["React","Code","PureComponent"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAOA,eAAe,MAAMC,IAAN,SAAmBD,KAAK,CAACE,aAAzB,CAAkD","sourcesContent":["import React from 'react';\n\ninterface CodeProps {\n children: React.ReactNode;\n language: string;\n}\n\nexport default class Code extends React.PureComponent<CodeProps> {}\n"],"file":"index.d.js"}
@@ -1,5 +1,5 @@
1
- export { default as ObjectIcon } from './ObjectIcon';
2
- export { default as Code } from './Code';
3
- export { default as ConsoleConstants } from './ConsoleConstants';
4
- export { default as ConsoleUtils } from './ConsoleUtils';
1
+ export { default as ObjectIcon } from "./ObjectIcon.js";
2
+ export { default as Code } from "./Code.js";
3
+ export { default as ConsoleConstants } from "./ConsoleConstants.js";
4
+ export { default as ConsoleUtils } from "./ConsoleUtils.js";
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/common/index.ts"],"names":["default","ObjectIcon","Code","ConsoleConstants","ConsoleUtils"],"mappings":"AAAA,SAASA,OAAO,IAAIC,UAApB,QAAsC,cAAtC;AACA,SAASD,OAAO,IAAIE,IAApB,QAAgC,QAAhC;AACA,SAASF,OAAO,IAAIG,gBAApB,QAA4C,oBAA5C;AACA,SAASH,OAAO,IAAII,YAApB,QAAwC,gBAAxC","sourcesContent":["export { default as ObjectIcon } from './ObjectIcon';\nexport { default as Code } from './Code';\nexport { default as ConsoleConstants } from './ConsoleConstants';\nexport { default as ConsoleUtils } from './ConsoleUtils';\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../src/common/index.ts"],"names":["default","ObjectIcon","Code","ConsoleConstants","ConsoleUtils"],"mappings":"SAASA,OAAO,IAAIC,U;SACXD,OAAO,IAAIE,I;SACXF,OAAO,IAAIG,gB;SACXH,OAAO,IAAII,Y","sourcesContent":["export { default as ObjectIcon } from './ObjectIcon';\nexport { default as Code } from './Code';\nexport { default as ConsoleConstants } from './ConsoleConstants';\nexport { default as ConsoleUtils } from './ConsoleUtils';\n"],"file":"index.js"}
@@ -1,77 +1,41 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
2
-
3
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
-
5
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
6
-
7
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8
-
9
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
10
-
11
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
-
13
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
-
15
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
16
-
17
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
18
-
19
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
20
-
21
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
22
-
23
1
  /**
24
2
  * Console display for use in the Iris environment.
25
3
  */
26
4
  import React, { Component } from 'react';
27
5
  import PropTypes from 'prop-types';
28
- import ConsoleHistoryItem from './ConsoleHistoryItem';
6
+ import ConsoleHistoryItem from "./ConsoleHistoryItem.js";
29
7
  import "./ConsoleHistory.css";
30
8
 
31
- var ConsoleHistory = /*#__PURE__*/function (_Component) {
32
- _inherits(ConsoleHistory, _Component);
33
-
34
- var _super = _createSuper(ConsoleHistory);
35
-
36
- function ConsoleHistory() {
37
- _classCallCheck(this, ConsoleHistory);
38
-
39
- return _super.apply(this, arguments);
9
+ class ConsoleHistory extends Component {
10
+ static itemKey(i, item) {
11
+ return "".concat(i, ".").concat(item.command, ".").concat(item.result && item.result.message, ".").concat(item.result && item.result.error);
40
12
  }
41
13
 
42
- _createClass(ConsoleHistory, [{
43
- key: "render",
44
- value: function render() {
45
- var _this$props = this.props,
46
- items = _this$props.items,
47
- language = _this$props.language,
48
- openObject = _this$props.openObject;
49
- var historyElements = [];
50
-
51
- for (var i = 0; i < items.length; i += 1) {
52
- var item = items[i];
53
- var historyElement = /*#__PURE__*/React.createElement(ConsoleHistoryItem, {
54
- key: ConsoleHistory.itemKey(i, item),
55
- item: item,
56
- openObject: openObject,
57
- language: language
58
- });
59
- historyElements.push(historyElement);
60
- }
61
-
62
- return /*#__PURE__*/React.createElement("div", {
63
- className: "container-fluid console-history"
64
- }, historyElements);
65
- }
66
- }], [{
67
- key: "itemKey",
68
- value: function itemKey(i, item) {
69
- return "".concat(i, ".").concat(item.command, ".").concat(item.result && item.result.message, ".").concat(item.result && item.result.error);
14
+ render() {
15
+ var {
16
+ items,
17
+ language,
18
+ openObject
19
+ } = this.props;
20
+ var historyElements = [];
21
+
22
+ for (var i = 0; i < items.length; i += 1) {
23
+ var item = items[i];
24
+ var historyElement = /*#__PURE__*/React.createElement(ConsoleHistoryItem, {
25
+ key: ConsoleHistory.itemKey(i, item),
26
+ item: item,
27
+ openObject: openObject,
28
+ language: language
29
+ });
30
+ historyElements.push(historyElement);
70
31
  }
71
- }]);
72
32
 
73
- return ConsoleHistory;
74
- }(Component);
33
+ return /*#__PURE__*/React.createElement("div", {
34
+ className: "container-fluid console-history"
35
+ }, historyElements);
36
+ }
37
+
38
+ }
75
39
 
76
40
  ConsoleHistory.propTypes = {
77
41
  items: PropTypes.arrayOf(PropTypes.shape({})).isRequired,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/console-history/ConsoleHistory.jsx"],"names":["React","Component","PropTypes","ConsoleHistoryItem","ConsoleHistory","props","items","language","openObject","historyElements","i","length","item","historyElement","itemKey","push","command","result","message","error","propTypes","arrayOf","shape","isRequired","string","func"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,kBAAP,MAA+B,sBAA/B;AAEA;;IAEMC,c;;;;;;;;;;;;;WAOJ,kBAAS;AACP,wBAAwC,KAAKC,KAA7C;AAAA,UAAQC,KAAR,eAAQA,KAAR;AAAA,UAAeC,QAAf,eAAeA,QAAf;AAAA,UAAyBC,UAAzB,eAAyBA,UAAzB;AACA,UAAMC,eAAe,GAAG,EAAxB;;AACA,WAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGJ,KAAK,CAACK,MAA1B,EAAkCD,CAAC,IAAI,CAAvC,EAA0C;AACxC,YAAME,IAAI,GAAGN,KAAK,CAACI,CAAD,CAAlB;AACA,YAAMG,cAAc,gBAClB,oBAAC,kBAAD;AACE,UAAA,GAAG,EAAET,cAAc,CAACU,OAAf,CAAuBJ,CAAvB,EAA0BE,IAA1B,CADP;AAEE,UAAA,IAAI,EAAEA,IAFR;AAGE,UAAA,UAAU,EAAEJ,UAHd;AAIE,UAAA,QAAQ,EAAED;AAJZ,UADF;AAQAE,QAAAA,eAAe,CAACM,IAAhB,CAAqBF,cAArB;AACD;;AAED,0BACE;AAAK,QAAA,SAAS,EAAC;AAAf,SAAkDJ,eAAlD,CADF;AAGD;;;WAzBD,iBAAeC,CAAf,EAAkBE,IAAlB,EAAwB;AACtB,uBAAUF,CAAV,cAAeE,IAAI,CAACI,OAApB,cAA+BJ,IAAI,CAACK,MAAL,IAAeL,IAAI,CAACK,MAAL,CAAYC,OAA1D,cACEN,IAAI,CAACK,MAAL,IAAeL,IAAI,CAACK,MAAL,CAAYE,KAD7B;AAGD;;;;EAL0BlB,S;;AA6B7BG,cAAc,CAACgB,SAAf,GAA2B;AACzBd,EAAAA,KAAK,EAAEJ,SAAS,CAACmB,OAAV,CAAkBnB,SAAS,CAACoB,KAAV,CAAgB,EAAhB,CAAlB,EAAuCC,UADrB;AAEzBhB,EAAAA,QAAQ,EAAEL,SAAS,CAACsB,MAAV,CAAiBD,UAFF;AAGzBf,EAAAA,UAAU,EAAEN,SAAS,CAACuB,IAAV,CAAeF;AAHF,CAA3B;AAMA,eAAenB,cAAf","sourcesContent":["/**\n * Console display for use in the Iris environment.\n */\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport ConsoleHistoryItem from './ConsoleHistoryItem';\n\nimport './ConsoleHistory.scss';\n\nclass ConsoleHistory extends Component {\n static itemKey(i, item) {\n return `${i}.${item.command}.${item.result && item.result.message}.${\n item.result && item.result.error\n }`;\n }\n\n render() {\n const { items, language, openObject } = this.props;\n const historyElements = [];\n for (let i = 0; i < items.length; i += 1) {\n const item = items[i];\n const historyElement = (\n <ConsoleHistoryItem\n key={ConsoleHistory.itemKey(i, item)}\n item={item}\n openObject={openObject}\n language={language}\n />\n );\n historyElements.push(historyElement);\n }\n\n return (\n <div className=\"container-fluid console-history\">{historyElements}</div>\n );\n }\n}\n\nConsoleHistory.propTypes = {\n items: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n language: PropTypes.string.isRequired,\n openObject: PropTypes.func.isRequired,\n};\n\nexport default ConsoleHistory;\n"],"file":"ConsoleHistory.js"}
1
+ {"version":3,"sources":["../../src/console-history/ConsoleHistory.jsx"],"names":["React","Component","PropTypes","ConsoleHistoryItem","ConsoleHistory","itemKey","i","item","command","result","message","error","render","items","language","openObject","props","historyElements","length","historyElement","push","propTypes","arrayOf","shape","isRequired","string","func"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;OACOC,kB;;;AAIP,MAAMC,cAAN,SAA6BH,SAA7B,CAAuC;AACvB,SAAPI,OAAO,CAACC,CAAD,EAAIC,IAAJ,EAAU;AACtB,qBAAUD,CAAV,cAAeC,IAAI,CAACC,OAApB,cAA+BD,IAAI,CAACE,MAAL,IAAeF,IAAI,CAACE,MAAL,CAAYC,OAA1D,cACEH,IAAI,CAACE,MAAL,IAAeF,IAAI,CAACE,MAAL,CAAYE,KAD7B;AAGD;;AAEDC,EAAAA,MAAM,GAAG;AACP,QAAM;AAAEC,MAAAA,KAAF;AAASC,MAAAA,QAAT;AAAmBC,MAAAA;AAAnB,QAAkC,KAAKC,KAA7C;AACA,QAAMC,eAAe,GAAG,EAAxB;;AACA,SAAK,IAAIX,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGO,KAAK,CAACK,MAA1B,EAAkCZ,CAAC,IAAI,CAAvC,EAA0C;AACxC,UAAMC,IAAI,GAAGM,KAAK,CAACP,CAAD,CAAlB;AACA,UAAMa,cAAc,gBAClB,oBAAC,kBAAD;AACE,QAAA,GAAG,EAAEf,cAAc,CAACC,OAAf,CAAuBC,CAAvB,EAA0BC,IAA1B,CADP;AAEE,QAAA,IAAI,EAAEA,IAFR;AAGE,QAAA,UAAU,EAAEQ,UAHd;AAIE,QAAA,QAAQ,EAAED;AAJZ,QADF;AAQAG,MAAAA,eAAe,CAACG,IAAhB,CAAqBD,cAArB;AACD;;AAED,wBACE;AAAK,MAAA,SAAS,EAAC;AAAf,OAAkDF,eAAlD,CADF;AAGD;;AA1BoC;;AA6BvCb,cAAc,CAACiB,SAAf,GAA2B;AACzBR,EAAAA,KAAK,EAAEX,SAAS,CAACoB,OAAV,CAAkBpB,SAAS,CAACqB,KAAV,CAAgB,EAAhB,CAAlB,EAAuCC,UADrB;AAEzBV,EAAAA,QAAQ,EAAEZ,SAAS,CAACuB,MAAV,CAAiBD,UAFF;AAGzBT,EAAAA,UAAU,EAAEb,SAAS,CAACwB,IAAV,CAAeF;AAHF,CAA3B;AAMA,eAAepB,cAAf","sourcesContent":["/**\n * Console display for use in the Iris environment.\n */\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport ConsoleHistoryItem from './ConsoleHistoryItem';\n\nimport './ConsoleHistory.scss';\n\nclass ConsoleHistory extends Component {\n static itemKey(i, item) {\n return `${i}.${item.command}.${item.result && item.result.message}.${\n item.result && item.result.error\n }`;\n }\n\n render() {\n const { items, language, openObject } = this.props;\n const historyElements = [];\n for (let i = 0; i < items.length; i += 1) {\n const item = items[i];\n const historyElement = (\n <ConsoleHistoryItem\n key={ConsoleHistory.itemKey(i, item)}\n item={item}\n openObject={openObject}\n language={language}\n />\n );\n historyElements.push(historyElement);\n }\n\n return (\n <div className=\"container-fluid console-history\">{historyElements}</div>\n );\n }\n}\n\nConsoleHistory.propTypes = {\n items: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n language: PropTypes.string.isRequired,\n openObject: PropTypes.func.isRequired,\n};\n\nexport default ConsoleHistory;\n"],"file":"ConsoleHistory.js"}