@deephaven/dashboard-core-plugins 0.46.1-beta.2 → 0.46.1-beta.4
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/LinkerPlugin.js +2 -1
- package/dist/LinkerPlugin.js.map +1 -1
- package/dist/controls/dropdown-filter/DropdownFilter.js +120 -93
- package/dist/controls/dropdown-filter/DropdownFilter.js.map +1 -1
- package/dist/controls/input-filter/InputFilter.js +85 -65
- package/dist/controls/input-filter/InputFilter.js.map +1 -1
- package/dist/controls/markdown/MarkdownContainer.js +15 -9
- package/dist/controls/markdown/MarkdownContainer.js.map +1 -1
- package/dist/controls/markdown/MarkdownEditor.js +24 -16
- package/dist/controls/markdown/MarkdownEditor.js.map +1 -1
- package/dist/controls/markdown/MarkdownStartPage.js +67 -46
- package/dist/controls/markdown/MarkdownStartPage.js.map +1 -1
- package/dist/linker/Linker.js +17 -15
- package/dist/linker/Linker.js.map +1 -1
- package/dist/linker/LinkerLink.js +80 -65
- package/dist/linker/LinkerLink.js.map +1 -1
- package/dist/linker/LinkerOverlayContent.js +75 -65
- package/dist/linker/LinkerOverlayContent.js.map +1 -1
- package/dist/panels/ChartColumnSelectorOverlay.js +25 -19
- package/dist/panels/ChartColumnSelectorOverlay.js.map +1 -1
- package/dist/panels/ChartFilterOverlay.js +50 -33
- package/dist/panels/ChartFilterOverlay.js.map +1 -1
- package/dist/panels/ChartPanel.js +51 -44
- package/dist/panels/ChartPanel.js.map +1 -1
- package/dist/panels/CommandHistoryPanel.js +21 -14
- package/dist/panels/CommandHistoryPanel.js.map +1 -1
- package/dist/panels/ConsolePanel.js +50 -24
- package/dist/panels/ConsolePanel.js.map +1 -1
- package/dist/panels/DropdownFilterPanel.js +25 -22
- package/dist/panels/DropdownFilterPanel.js.map +1 -1
- package/dist/panels/FileExplorerPanel.js +24 -21
- package/dist/panels/FileExplorerPanel.js.map +1 -1
- package/dist/panels/FilterSetManager.js +227 -185
- package/dist/panels/FilterSetManager.js.map +1 -1
- package/dist/panels/FilterSetManagerPanel.js +16 -13
- package/dist/panels/FilterSetManagerPanel.js.map +1 -1
- package/dist/panels/InputFilterPanel.js +12 -10
- package/dist/panels/InputFilterPanel.js.map +1 -1
- package/dist/panels/IrisGridPanel.js +76 -72
- package/dist/panels/IrisGridPanel.js.map +1 -1
- package/dist/panels/IrisGridPanelTooltip.js +18 -9
- package/dist/panels/IrisGridPanelTooltip.js.map +1 -1
- package/dist/panels/LogPanel.js +14 -10
- package/dist/panels/LogPanel.js.map +1 -1
- package/dist/panels/MarkdownNotebook.js +64 -51
- package/dist/panels/MarkdownNotebook.js.map +1 -1
- package/dist/panels/MarkdownPanel.js +21 -18
- package/dist/panels/MarkdownPanel.js.map +1 -1
- package/dist/panels/NotebookPanel.js +126 -108
- package/dist/panels/NotebookPanel.js.map +1 -1
- package/dist/panels/PandasPanel.js +21 -12
- package/dist/panels/PandasPanel.js.map +1 -1
- package/dist/panels/Panel.js +30 -23
- package/dist/panels/Panel.js.map +1 -1
- package/dist/panels/PanelContextMenu.js +2 -1
- package/dist/panels/PanelContextMenu.js.map +1 -1
- package/dist/panels/RenameDialog.js +42 -31
- package/dist/panels/RenameDialog.js.map +1 -1
- package/dist/panels/WidgetPanel.js +9 -6
- package/dist/panels/WidgetPanel.js.map +1 -1
- package/dist/panels/WidgetPanelTooltip.js +31 -19
- package/dist/panels/WidgetPanelTooltip.js.map +1 -1
- package/package.json +22 -22
|
@@ -24,6 +24,9 @@ import { getDashboardSessionWrapper } from "../redux/index.js";
|
|
|
24
24
|
import Panel from "./Panel.js";
|
|
25
25
|
import MarkdownNotebook from "./MarkdownNotebook.js";
|
|
26
26
|
import "./NotebookPanel.css";
|
|
27
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
27
30
|
var log = Log.module('NotebookPanel');
|
|
28
31
|
var DEBOUNCE_PANEL_STATE_UPDATE = 400;
|
|
29
32
|
class NotebookPanel extends Component {
|
|
@@ -1073,114 +1076,129 @@ class NotebookPanel extends Component {
|
|
|
1073
1076
|
order: 20
|
|
1074
1077
|
}];
|
|
1075
1078
|
var portal = tab === null || tab === void 0 ? void 0 : tab.element.find('.lm_title_before').get(0);
|
|
1076
|
-
return /*#__PURE__*/
|
|
1077
|
-
|
|
1078
|
-
'
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1079
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
1080
|
+
children: [portal != null && /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/_jsx("span", {
|
|
1081
|
+
className: classNames('editor-unsaved-indicator', {
|
|
1082
|
+
'is-unsaved': changeCount !== savedChangeCount
|
|
1083
|
+
})
|
|
1084
|
+
}), portal // tab.element is jquery element, we want a dom element
|
|
1085
|
+
), /*#__PURE__*/_jsxs(Panel, {
|
|
1086
|
+
className: "notebook-container",
|
|
1087
|
+
componentPanel: this,
|
|
1088
|
+
glContainer: glContainer,
|
|
1089
|
+
glEventHub: glEventHub,
|
|
1090
|
+
onTab: this.handleTab,
|
|
1091
|
+
onResize: this.handleResize,
|
|
1092
|
+
onShow: this.handleShow,
|
|
1093
|
+
onTabClicked: this.handleTabClick,
|
|
1094
|
+
onTabFocus: this.handleTabFocus,
|
|
1095
|
+
onTabBlur: this.handleTabBlur,
|
|
1096
|
+
onSessionOpen: this.handleSessionOpened,
|
|
1097
|
+
onSessionClose: this.handleSessionClosed,
|
|
1098
|
+
onFocus: this.handleFocus,
|
|
1099
|
+
onBlur: this.handleBlur,
|
|
1100
|
+
additionalActions: additionalActions,
|
|
1101
|
+
renderTabTooltip: () => itemName,
|
|
1102
|
+
children: [!isMarkdown && /*#__PURE__*/_jsxs(_Fragment, {
|
|
1103
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
1104
|
+
className: "notebook-toolbar",
|
|
1105
|
+
children: [/*#__PURE__*/_jsxs("span", {
|
|
1106
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
1107
|
+
kind: "ghost",
|
|
1108
|
+
className: "btn-play",
|
|
1109
|
+
onClick: this.handleRunAll,
|
|
1110
|
+
disabled: runButtonsDisabled,
|
|
1111
|
+
icon: /*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
1112
|
+
icon: vsPlay,
|
|
1113
|
+
transform: "grow-4"
|
|
1114
|
+
}),
|
|
1115
|
+
tooltip: "Run ".concat(SHORTCUTS.NOTEBOOK.RUN.getDisplayText()),
|
|
1116
|
+
"aria-label": "Run"
|
|
1117
|
+
}), disabledRunButtonTooltip != null && /*#__PURE__*/_jsx(Tooltip, {
|
|
1118
|
+
children: disabledRunButtonTooltip
|
|
1119
|
+
})]
|
|
1120
|
+
}), /*#__PURE__*/_jsxs("span", {
|
|
1121
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
1122
|
+
kind: "ghost",
|
|
1123
|
+
className: "btn-play",
|
|
1124
|
+
onClick: this.handleRunSelected,
|
|
1125
|
+
disabled: runButtonsDisabled,
|
|
1126
|
+
icon: /*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
1127
|
+
icon: dhRunSelection,
|
|
1128
|
+
transform: "grow-4"
|
|
1129
|
+
}),
|
|
1130
|
+
tooltip: "Run Selected ".concat(SHORTCUTS.NOTEBOOK.RUN_SELECTED.getDisplayText()),
|
|
1131
|
+
"aria-label": "Run Selected"
|
|
1132
|
+
}), disabledRunSelectedButtonTooltip != null && /*#__PURE__*/_jsx(Tooltip, {
|
|
1133
|
+
children: disabledRunSelectedButtonTooltip
|
|
1134
|
+
})]
|
|
1135
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
1136
|
+
kind: "ghost",
|
|
1137
|
+
className: "mr-auto",
|
|
1138
|
+
disabled: toolbarDisabled,
|
|
1139
|
+
onClick: this.handleSave,
|
|
1140
|
+
icon: vsSave,
|
|
1141
|
+
tooltip: "Save ".concat(GLOBAL_SHORTCUTS.SAVE.getDisplayText()),
|
|
1142
|
+
"aria-label": "Save"
|
|
1143
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
1144
|
+
kind: "ghost",
|
|
1145
|
+
className: "btn-overflow btn-link-icon",
|
|
1146
|
+
disabled: toolbarDisabled,
|
|
1147
|
+
icon: vsKebabVertical,
|
|
1148
|
+
tooltip: "More Actions...",
|
|
1149
|
+
onClick: () => {
|
|
1150
|
+
// no-op: click is handled in `DropdownMenu`
|
|
1151
|
+
},
|
|
1152
|
+
children: /*#__PURE__*/_jsx(DropdownMenu, {
|
|
1153
|
+
actions: this.getDropdownOverflowActions,
|
|
1154
|
+
popperOptions: NotebookPanel.POPPER_OPTIONS
|
|
1155
|
+
})
|
|
1156
|
+
})]
|
|
1157
|
+
}), /*#__PURE__*/_jsx(ScriptEditor, {
|
|
1158
|
+
isLoaded: isLoaded,
|
|
1159
|
+
isLoading: isLoading,
|
|
1160
|
+
error: error,
|
|
1161
|
+
onChange: this.handleEditorChange,
|
|
1162
|
+
onRunCommand: this.handleRunCommand,
|
|
1163
|
+
session: session,
|
|
1164
|
+
sessionLanguage: sessionLanguage,
|
|
1165
|
+
onEditorInitialized: this.handleEditorInitialized,
|
|
1166
|
+
onEditorWillDestroy: this.handleEditorWillDestroy,
|
|
1167
|
+
settings: settings,
|
|
1168
|
+
focusOnMount: focusOnMount,
|
|
1169
|
+
ref: notebook => {
|
|
1170
|
+
this.notebook = notebook;
|
|
1171
|
+
}
|
|
1172
|
+
})]
|
|
1173
|
+
}), isMarkdown && /*#__PURE__*/_jsx(MarkdownNotebook, {
|
|
1174
|
+
content: (_settings$value = settings.value) !== null && _settings$value !== void 0 ? _settings$value : '',
|
|
1175
|
+
onLinkClick: this.handleLinkClick,
|
|
1176
|
+
onRunCode: this.handleRunCommand,
|
|
1177
|
+
transformImageUri: this.handleTransformLinkUri,
|
|
1178
|
+
transformLinkUri: this.handleTransformLinkUri
|
|
1179
|
+
}), /*#__PURE__*/_jsx(NewItemModal, {
|
|
1180
|
+
isOpen: showSaveAsModal,
|
|
1181
|
+
type: "file",
|
|
1182
|
+
defaultValue: itemName,
|
|
1183
|
+
title: isExistingItem ? 'Rename' : 'Save file as',
|
|
1184
|
+
onSubmit: this.handleSaveAsSubmit,
|
|
1185
|
+
onCancel: this.handleSaveAsCancel,
|
|
1186
|
+
notifyOnExtensionChange: true,
|
|
1187
|
+
storage: fileStorage
|
|
1188
|
+
}), /*#__PURE__*/_jsx(BasicModal, {
|
|
1189
|
+
isOpen: showCloseModal,
|
|
1190
|
+
headerText: "Do you want to save the changes you made to ".concat(itemName, "?"),
|
|
1191
|
+
bodyText: "Your changes will be lost if you don't save them.",
|
|
1192
|
+
onCancel: this.handleCloseCancel,
|
|
1193
|
+
onDiscard: this.handleCloseDiscard,
|
|
1194
|
+
onConfirm: this.handleCloseSave,
|
|
1195
|
+
discardButtonText: "Discard Changes",
|
|
1196
|
+
confirmButtonText: "Save"
|
|
1197
|
+
}), /*#__PURE__*/_jsx(ContextActions, {
|
|
1198
|
+
actions: contextActions
|
|
1199
|
+
})]
|
|
1200
|
+
})]
|
|
1201
|
+
});
|
|
1184
1202
|
}
|
|
1185
1203
|
}
|
|
1186
1204
|
_defineProperty(NotebookPanel, "COMPONENT", 'NotebookPanel');
|