@finos/legend-application-repl 0.0.36 → 0.0.38
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/README.md +1 -1
- package/lib/__lib__/LegendREPLEvent.d.ts +1 -1
- package/lib/__lib__/LegendREPLEvent.d.ts.map +1 -1
- package/lib/__lib__/LegendREPLEvent.js +5 -5
- package/lib/__lib__/LegendREPLEvent.js.map +1 -1
- package/lib/__lib__/LegendREPLSetting.d.ts +1 -1
- package/lib/__lib__/LegendREPLSetting.d.ts.map +1 -1
- package/lib/__lib__/LegendREPLSetting.js +4 -4
- package/lib/__lib__/LegendREPLSetting.js.map +1 -1
- package/lib/application/LegendREPL.d.ts +1 -1
- package/lib/application/LegendREPL.d.ts.map +1 -1
- package/lib/application/LegendREPL.js +2 -2
- package/lib/application/LegendREPL.js.map +1 -1
- package/lib/application/LegendREPLDocumentation.d.ts +21 -0
- package/lib/application/LegendREPLDocumentation.d.ts.map +1 -0
- package/lib/application/LegendREPLDocumentation.js +22 -0
- package/lib/application/LegendREPLDocumentation.js.map +1 -0
- package/lib/components/Core_LegendREPLApplicationPlugin.js +2 -2
- package/lib/components/Core_LegendREPLApplicationPlugin.js.map +1 -1
- package/lib/components/LegendREPLApplication.d.ts.map +1 -1
- package/lib/components/LegendREPLApplication.js +3 -2
- package/lib/components/LegendREPLApplication.js.map +1 -1
- package/lib/components/LegendREPLFrameworkProvider.d.ts.map +1 -1
- package/lib/components/LegendREPLFrameworkProvider.js +2 -2
- package/lib/components/LegendREPLFrameworkProvider.js.map +1 -1
- package/lib/components/REPLStoreProvider.d.ts +4 -2
- package/lib/components/REPLStoreProvider.d.ts.map +1 -1
- package/lib/components/REPLStoreProvider.js +13 -7
- package/lib/components/REPLStoreProvider.js.map +1 -1
- package/lib/components/dataCube/DataCube.d.ts.map +1 -1
- package/lib/components/dataCube/DataCube.js +31 -13
- package/lib/components/dataCube/DataCube.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditor.d.ts +1 -3
- package/lib/components/dataCube/editor/DataCubeEditor.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditor.js +18 -20
- package/lib/components/dataCube/editor/DataCubeEditor.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.js +12 -12
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.js +45 -43
- package/lib/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnsPanel.js +4 -4
- package/lib/components/dataCube/editor/DataCubeEditorColumnsPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.js +4 -4
- package/lib/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorFilterPanel.js +4 -4
- package/lib/components/dataCube/editor/DataCubeEditorFilterPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.js +22 -22
- package/lib/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorHorizontalPivotsPanel.js +4 -4
- package/lib/components/dataCube/editor/DataCubeEditorHorizontalPivotsPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorSortsPanel.js +5 -5
- package/lib/components/dataCube/editor/DataCubeEditorSortsPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorVerticalPivotsPanel.js +2 -2
- package/lib/components/dataCube/editor/DataCubeEditorVerticalPivotsPanel.js.map +1 -1
- package/lib/components/dataCube/grid/DataCubeGrid.d.ts.map +1 -1
- package/lib/components/dataCube/grid/DataCubeGrid.js +37 -45
- package/lib/components/dataCube/grid/DataCubeGrid.js.map +1 -1
- package/lib/components/dataCube/grid/DataCubeGridShared.js +2 -2
- package/lib/components/dataCube/grid/DataCubeGridShared.js.map +1 -1
- package/lib/components/repl/Alert.d.ts +23 -0
- package/lib/components/repl/Alert.d.ts.map +1 -0
- package/lib/components/repl/Alert.js +73 -0
- package/lib/components/repl/Alert.js.map +1 -0
- package/lib/components/repl/DocumentationPanel.d.ts +24 -0
- package/lib/components/repl/DocumentationPanel.d.ts.map +1 -0
- package/lib/components/repl/DocumentationPanel.js +56 -0
- package/lib/components/repl/DocumentationPanel.js.map +1 -0
- package/lib/components/{dataCube/editor/DataCubeEditorShared.d.ts → repl/Form.d.ts} +11 -11
- package/lib/components/repl/Form.d.ts.map +1 -0
- package/lib/components/{dataCube/editor/DataCubeEditorShared.js → repl/Form.js} +13 -13
- package/lib/components/repl/Form.js.map +1 -0
- package/lib/components/{REPLWindow.d.ts → repl/LayoutManager.d.ts} +11 -17
- package/lib/components/repl/LayoutManager.d.ts.map +1 -0
- package/lib/components/repl/LayoutManager.js +116 -0
- package/lib/components/repl/LayoutManager.js.map +1 -0
- package/lib/components/{dataCube/editor/DataCubeEditorDeveloperPanel.d.ts → repl/SettingsPanel.d.ts} +2 -2
- package/lib/components/repl/SettingsPanel.d.ts.map +1 -0
- package/lib/components/repl/SettingsPanel.js +47 -0
- package/lib/components/repl/SettingsPanel.js.map +1 -0
- package/lib/index.css +1 -1
- package/lib/package.json +19 -22
- package/lib/server/DataCubeQuery.d.ts.map +1 -0
- package/lib/server/{models/DataCubeQuery.js → DataCubeQuery.js} +6 -6
- package/lib/server/DataCubeQuery.js.map +1 -0
- package/lib/server/{models/DataCubeEngineModels.d.ts → REPLEngine.d.ts} +7 -1
- package/lib/server/REPLEngine.d.ts.map +1 -0
- package/lib/server/{models/DataCubeEngineModels.js → REPLEngine.js} +9 -1
- package/lib/server/REPLEngine.js.map +1 -0
- package/lib/server/REPLServerClient.d.ts +2 -2
- package/lib/server/REPLServerClient.d.ts.map +1 -1
- package/lib/server/REPLServerClient.js +2 -2
- package/lib/server/REPLServerClient.js.map +1 -1
- package/lib/stores/LayoutManagerState.d.ts +62 -0
- package/lib/stores/LayoutManagerState.d.ts.map +1 -0
- package/lib/stores/LayoutManagerState.js +121 -0
- package/lib/stores/LayoutManagerState.js.map +1 -0
- package/lib/stores/LegendREPLApplicationPlugin.d.ts +1 -0
- package/lib/stores/LegendREPLApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendREPLApplicationPlugin.js +8 -0
- package/lib/stores/LegendREPLApplicationPlugin.js.map +1 -1
- package/lib/stores/LegendREPLBaseStore.d.ts +2 -2
- package/lib/stores/LegendREPLBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendREPLBaseStore.js +4 -4
- package/lib/stores/LegendREPLBaseStore.js.map +1 -1
- package/lib/stores/REPLStore.d.ts +12 -4
- package/lib/stores/REPLStore.d.ts.map +1 -1
- package/lib/stores/REPLStore.js +77 -25
- package/lib/stores/REPLStore.js.map +1 -1
- package/lib/stores/dataCube/{DataCubeInfrastructure.d.ts → DataCubeEngine.d.ts} +21 -21
- package/lib/stores/dataCube/DataCubeEngine.d.ts.map +1 -0
- package/lib/stores/dataCube/{DataCubeInfrastructure.js → DataCubeEngine.js} +50 -35
- package/lib/stores/dataCube/DataCubeEngine.js.map +1 -0
- package/lib/stores/dataCube/DataCubeState.d.ts +4 -4
- package/lib/stores/dataCube/DataCubeState.d.ts.map +1 -1
- package/lib/stores/dataCube/DataCubeState.js +13 -8
- package/lib/stores/dataCube/DataCubeState.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeCoreState.d.ts +1 -1
- package/lib/stores/dataCube/core/DataCubeCoreState.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQueryEngine.d.ts +2 -2
- package/lib/stores/dataCube/core/DataCubeQueryEngine.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQueryEngine.js +2 -2
- package/lib/stores/dataCube/core/DataCubeQueryEngine.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.d.ts +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotManager.d.ts +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotManager.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.js +4 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.js.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorCodePanelState.js +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorCodePanelState.js.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts +5 -8
- package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorState.js +19 -29
- package/lib/stores/dataCube/editor/DataCubeEditorState.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.d.ts +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js +31 -28
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientExportEngine.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientExportEngine.js +7 -2
- package/lib/stores/dataCube/grid/DataCubeGridClientExportEngine.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridConfigurationBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridConfigurationBuilder.js +9 -8
- package/lib/stores/dataCube/grid/DataCubeGridConfigurationBuilder.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridMenuBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridMenuBuilder.js +2 -6
- package/lib/stores/dataCube/grid/DataCubeGridMenuBuilder.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.js +0 -2
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridState.d.ts +0 -2
- package/lib/stores/dataCube/grid/DataCubeGridState.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridState.js +1 -7
- package/lib/stores/dataCube/grid/DataCubeGridState.js.map +1 -1
- package/package.json +25 -28
- package/src/__lib__/LegendREPLEvent.ts +1 -1
- package/src/__lib__/LegendREPLSetting.ts +1 -1
- package/src/application/LegendREPL.tsx +2 -2
- package/{lib/grammar/parser.d.ts → src/application/LegendREPLDocumentation.ts} +6 -1
- package/src/components/Core_LegendREPLApplicationPlugin.tsx +2 -2
- package/src/components/LegendREPLApplication.tsx +2 -0
- package/src/components/LegendREPLFrameworkProvider.tsx +2 -4
- package/src/components/REPLStoreProvider.tsx +24 -18
- package/src/components/dataCube/DataCube.tsx +69 -26
- package/src/components/dataCube/editor/DataCubeEditor.tsx +89 -98
- package/src/components/dataCube/editor/DataCubeEditorCodePanel.tsx +12 -12
- package/src/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.tsx +112 -115
- package/src/components/dataCube/editor/DataCubeEditorColumnsPanel.tsx +4 -4
- package/src/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.tsx +4 -4
- package/src/components/dataCube/editor/DataCubeEditorFilterPanel.tsx +4 -4
- package/src/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.tsx +76 -88
- package/src/components/dataCube/editor/DataCubeEditorHorizontalPivotsPanel.tsx +4 -4
- package/src/components/dataCube/editor/DataCubeEditorSortsPanel.tsx +5 -5
- package/src/components/dataCube/editor/DataCubeEditorVerticalPivotsPanel.tsx +2 -2
- package/src/components/dataCube/grid/DataCubeGrid.tsx +45 -53
- package/src/components/dataCube/grid/DataCubeGridShared.tsx +2 -2
- package/src/components/repl/Alert.tsx +138 -0
- package/src/components/repl/DocumentationPanel.tsx +88 -0
- package/src/components/{dataCube/editor/DataCubeEditorShared.tsx → repl/Form.tsx} +12 -12
- package/src/components/repl/LayoutManager.tsx +190 -0
- package/src/components/repl/SettingsPanel.tsx +148 -0
- package/src/server/{models/DataCubeQuery.ts → DataCubeQuery.ts} +3 -3
- package/src/server/{models/DataCubeEngineModels.ts → REPLEngine.ts} +13 -0
- package/src/server/REPLServerClient.ts +4 -3
- package/src/stores/LayoutManagerState.ts +168 -0
- package/src/stores/LegendREPLApplicationPlugin.ts +9 -0
- package/src/stores/LegendREPLBaseStore.ts +4 -4
- package/src/stores/REPLStore.tsx +145 -0
- package/src/stores/dataCube/{DataCubeInfrastructure.ts → DataCubeEngine.ts} +66 -46
- package/src/stores/dataCube/DataCubeState.ts +14 -9
- package/src/stores/dataCube/core/DataCubeCoreState.ts +1 -1
- package/src/stores/dataCube/core/DataCubeQueryEngine.ts +2 -3
- package/src/stores/dataCube/core/DataCubeQuerySnapshotBuilder.ts +1 -1
- package/src/stores/dataCube/core/DataCubeQuerySnapshotManager.ts +1 -1
- package/src/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.ts +10 -0
- package/src/stores/dataCube/editor/DataCubeEditorCodePanelState.ts +1 -1
- package/src/stores/dataCube/editor/{DataCubeEditorState.ts → DataCubeEditorState.tsx} +12 -24
- package/src/stores/dataCube/grid/DataCubeGridClientEngine.ts +23 -12
- package/src/stores/dataCube/grid/DataCubeGridClientExportEngine.ts +4 -1
- package/src/stores/dataCube/grid/DataCubeGridConfigurationBuilder.tsx +9 -11
- package/src/stores/dataCube/grid/DataCubeGridMenuBuilder.tsx +2 -6
- package/src/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.ts +0 -3
- package/src/stores/dataCube/grid/DataCubeGridState.ts +1 -11
- package/tsconfig.json +12 -8
- package/grammar/datacube_filter__lexer.g4 +0 -40
- package/grammar/datacube_filter__parser.g4 +0 -14
- package/grammar/generateGrammar.js +0 -43
- package/grammar/parser/generated/datacube_filter__lexer.interp +0 -59
- package/grammar/parser/generated/datacube_filter__lexer.tokens +0 -14
- package/grammar/parser/generated/datacube_filter__lexer.ts +0 -142
- package/grammar/parser/generated/datacube_filter__parser.interp +0 -38
- package/grammar/parser/generated/datacube_filter__parser.tokens +0 -14
- package/grammar/parser/generated/datacube_filter__parser.ts +0 -514
- package/grammar/parser/parser.ts +0 -55
- package/lib/components/REPLWindow.d.ts.map +0 -1
- package/lib/components/REPLWindow.js +0 -117
- package/lib/components/REPLWindow.js.map +0 -1
- package/lib/components/dataCube/editor/DataCubeEditorDeveloperPanel.d.ts.map +0 -1
- package/lib/components/dataCube/editor/DataCubeEditorDeveloperPanel.js +0 -28
- package/lib/components/dataCube/editor/DataCubeEditorDeveloperPanel.js.map +0 -1
- package/lib/components/dataCube/editor/DataCubeEditorShared.d.ts.map +0 -1
- package/lib/components/dataCube/editor/DataCubeEditorShared.js.map +0 -1
- package/lib/grammar/generated/datacube_filter__lexer.d.ts +0 -31
- package/lib/grammar/generated/datacube_filter__lexer.js +0 -118
- package/lib/grammar/generated/datacube_filter__parser.d.ts +0 -91
- package/lib/grammar/generated/datacube_filter__parser.js +0 -485
- package/lib/grammar/parser.js +0 -39
- package/lib/server/models/DataCubeEngineModels.d.ts.map +0 -1
- package/lib/server/models/DataCubeEngineModels.js.map +0 -1
- package/lib/server/models/DataCubeQuery.d.ts.map +0 -1
- package/lib/server/models/DataCubeQuery.js.map +0 -1
- package/lib/stores/dataCube/DataCubeInfrastructure.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubeInfrastructure.js.map +0 -1
- package/src/components/REPLWindow.tsx +0 -179
- package/src/components/dataCube/editor/DataCubeEditorDeveloperPanel.tsx +0 -43
- package/src/stores/REPLStore.ts +0 -48
- /package/lib/server/{models/DataCubeQuery.d.ts → DataCubeQuery.d.ts} +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { observer } from 'mobx-react-lite';
|
|
18
|
+
import { DataCubeIcon } from '@finos/legend-art';
|
|
19
|
+
import { useREPLStore } from '../REPLStoreProvider.js';
|
|
20
|
+
import { FormCheckbox, FormNumberInput } from './Form.js';
|
|
21
|
+
import { DEFAULT_ENABLE_DEBUG_MODE, DEFAULT_GRID_CLIENT_PURGE_CLOSED_ROW_NODES, DEFAULT_GRID_CLIENT_ROW_BUFFER, } from '../../stores/dataCube/DataCubeEngine.js';
|
|
22
|
+
import { useState } from 'react';
|
|
23
|
+
export const SettingsPanel = observer(() => {
|
|
24
|
+
const repl = useREPLStore();
|
|
25
|
+
const dataCubeEngine = repl.dataCubeEngine;
|
|
26
|
+
// NOTE: this makes sure the changes are not applied until saved, but it generates
|
|
27
|
+
// a lot of boilerplate code, consider using a more ergonomic approach when we need
|
|
28
|
+
// to scale this to more settings.
|
|
29
|
+
const [gridClientRowBuffer, setGridClientRowBuffer] = useState(dataCubeEngine.gridClientRowBuffer);
|
|
30
|
+
const [gridClientPurgeClosedRowNodes, setGridClientPurgeClosedRowNodes] = useState(dataCubeEngine.gridClientPurgeClosedRowNodes);
|
|
31
|
+
const [enableDebugMode, setEnableDebugMode] = useState(dataCubeEngine.enableDebugMode);
|
|
32
|
+
const save = () => {
|
|
33
|
+
dataCubeEngine.setGridClientRowBuffer(gridClientRowBuffer);
|
|
34
|
+
dataCubeEngine.setGridClientPurgeClosedRowNodes(gridClientPurgeClosedRowNodes);
|
|
35
|
+
dataCubeEngine.setEnableDebugMode(enableDebugMode);
|
|
36
|
+
};
|
|
37
|
+
const restoreDefaults = () => {
|
|
38
|
+
setGridClientRowBuffer(DEFAULT_GRID_CLIENT_ROW_BUFFER);
|
|
39
|
+
setGridClientPurgeClosedRowNodes(DEFAULT_GRID_CLIENT_PURGE_CLOSED_ROW_NODES);
|
|
40
|
+
setEnableDebugMode(DEFAULT_ENABLE_DEBUG_MODE);
|
|
41
|
+
save();
|
|
42
|
+
};
|
|
43
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "h-[calc(100%_-_40px)] w-full p-2 pb-0", children: _jsxs("div", { className: "h-full w-full select-none overflow-auto border border-neutral-300 bg-white p-2", children: [_jsx("div", { className: "flex h-6", children: _jsxs("div", { className: "flex h-full", children: [_jsx("div", { className: "flex h-6 items-center text-xl font-medium", children: _jsx(DataCubeIcon.Table, {}) }), _jsx("div", { className: "ml-1 flex h-6 items-center text-xl font-medium", children: "Grid" })] }) }), _jsxs("div", { className: "my-1.5", children: [_jsx("div", { className: "mb-0.5 font-medium", children: "Refresh Group Node Data" }), _jsx("div", { className: "flex pr-2", children: _jsx(FormCheckbox, { label: "Force refresh data when group node is opened", checked: gridClientPurgeClosedRowNodes, onChange: () => setGridClientPurgeClosedRowNodes(!gridClientPurgeClosedRowNodes) }) })] }), _jsxs("div", { className: "my-1.5", children: [_jsx("div", { className: "mb-0.5 font-medium", children: "Row Buffer" }), _jsx("div", { className: "mb-1.5 text-sm text-neutral-700", children: `Sets the number of rows the grid renders outside of the viewable area. e.g. if the buffer is 10 and your grid is showing 50 rows (as that's all that fits on your screen without scrolling), then the grid will actually render 70 in total (10 extra above and 10 extra below). Then when you scroll, the grid will already have 10 rows ready and waiting to show, no redraw is needed. A low small buffer will make initial draws of the grid faster; whereas a big one will reduce the redraw visible vertically scrolling.` }), _jsx("div", { className: "flex pr-2", children: _jsx(FormNumberInput, { className: "w-20 text-sm", min: 10, step: 10, defaultValue: DEFAULT_GRID_CLIENT_ROW_BUFFER, value: gridClientRowBuffer, setValue: (value) => {
|
|
44
|
+
setGridClientRowBuffer(value ?? DEFAULT_GRID_CLIENT_ROW_BUFFER);
|
|
45
|
+
} }) })] }), _jsx("div", { className: "my-2 h-[1px] w-full bg-neutral-200" }), _jsx("div", { className: "flex h-6", children: _jsxs("div", { className: "flex h-full", children: [_jsx("div", { className: "flex h-6 items-center text-xl font-medium", children: _jsx(DataCubeIcon.Debug, {}) }), _jsx("div", { className: "ml-1 flex h-6 items-center text-xl font-medium", children: "Debug" })] }) }), _jsxs("div", { className: "my-1.5", children: [_jsx("div", { className: "mb-0.5 font-medium", children: "Debug Mode: Enabled" }), _jsx("div", { className: "flex pr-2", children: _jsx(FormCheckbox, { label: "Enable debug logging when running data queries, updating snapshots, etc.", checked: enableDebugMode, onChange: () => setEnableDebugMode(!enableDebugMode) }) })] })] }) }), _jsxs("div", { className: "flex h-10 items-center justify-end px-2", children: [_jsx("button", { className: "ml-2 h-6 w-48 border border-neutral-400 bg-neutral-300 px-2 hover:brightness-95", onClick: restoreDefaults, children: "Restore Default Settings" }), _jsx("button", { className: "ml-2 h-6 w-36 border border-neutral-400 bg-neutral-300 px-2 hover:brightness-95", onClick: save, children: "Save Settings" })] })] }));
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=SettingsPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsPanel.js","sourceRoot":"","sources":["../../../src/components/repl/SettingsPanel.tsx"],"names":[],"mappings":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AK,SAAS,EAAC,QAAQ,aACrB,cAAK,SAAS,EAAC,oBAAoB,oCAA0B,EAC7D,cAAK,SAAS,EAAC,WAAW,YACxB,KAAC,YAAY,IACX,KAAK,EAAC,0EAA0E,EAChF,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC,eAAe,CAAC,GACpD,GACE,IACF,IACF,GACF,EACN,eAAK,SAAS,EAAC,yCAAyC,aACtD,iBACE,SAAS,EAAC,iFAAiF,EAC3F,OAAO,EAAE,eAAe,yCAGjB,EACT,iBACE,SAAS,EAAC,iFAAiF,EAC3F,OAAO,EAAE,IAAI,8BAGN,IACL,IACL,CACJ,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-application-repl",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.38",
|
|
4
4
|
"description": "Legend REPL Grid client application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"exports": {
|
|
24
24
|
".": "./lib/index.js",
|
|
25
|
-
"./lib/index.css": "./lib/index.css"
|
|
26
|
-
"./lib/grammar/parser.js": "./lib/grammar/parser.js"
|
|
25
|
+
"./lib/index.css": "./lib/index.css"
|
|
27
26
|
},
|
|
28
27
|
"module": "lib/index.js",
|
|
29
28
|
"types": "lib/index.d.ts",
|
|
@@ -31,7 +30,6 @@
|
|
|
31
30
|
"build": "yarn clean && yarn build:sass && yarn build:ts",
|
|
32
31
|
"build:sass": "cross-env INIT_CWD=$INIT_CWD node ../../scripts/workflow/buildSass.js",
|
|
33
32
|
"build:ts": "tsc --project ./tsconfig.build.json",
|
|
34
|
-
"build:grammar": "node ./grammar/generateGrammar.js",
|
|
35
33
|
"clean": "npm-run-all clean:cache clean:lib",
|
|
36
34
|
"clean:cache": "rimraf \"build\"",
|
|
37
35
|
"clean:lib": "rimraf \"lib\"",
|
|
@@ -45,20 +43,20 @@
|
|
|
45
43
|
"test:watch": "jest --watch"
|
|
46
44
|
},
|
|
47
45
|
"dependencies": {
|
|
48
|
-
"@ag-grid-community/client-side-row-model": "32.0.
|
|
49
|
-
"@ag-grid-community/core": "32.0.
|
|
50
|
-
"@ag-grid-community/csv-export": "32.0.
|
|
51
|
-
"@ag-grid-community/react": "32.0.
|
|
52
|
-
"@ag-grid-community/styles": "32.0.
|
|
53
|
-
"@ag-grid-enterprise/clipboard": "32.0.
|
|
54
|
-
"@ag-grid-enterprise/column-tool-panel": "32.0.
|
|
55
|
-
"@ag-grid-enterprise/core": "32.0.
|
|
56
|
-
"@ag-grid-enterprise/excel-export": "32.0.
|
|
57
|
-
"@ag-grid-enterprise/menu": "32.0.
|
|
58
|
-
"@ag-grid-enterprise/range-selection": "32.0.
|
|
59
|
-
"@ag-grid-enterprise/row-grouping": "32.0.
|
|
60
|
-
"@ag-grid-enterprise/server-side-row-model": "32.0.
|
|
61
|
-
"@ag-grid-enterprise/side-bar": "32.0.
|
|
46
|
+
"@ag-grid-community/client-side-row-model": "32.0.2",
|
|
47
|
+
"@ag-grid-community/core": "32.0.2",
|
|
48
|
+
"@ag-grid-community/csv-export": "32.0.2",
|
|
49
|
+
"@ag-grid-community/react": "32.0.2",
|
|
50
|
+
"@ag-grid-community/styles": "32.0.2",
|
|
51
|
+
"@ag-grid-enterprise/clipboard": "32.0.2",
|
|
52
|
+
"@ag-grid-enterprise/column-tool-panel": "32.0.2",
|
|
53
|
+
"@ag-grid-enterprise/core": "32.0.2",
|
|
54
|
+
"@ag-grid-enterprise/excel-export": "32.0.2",
|
|
55
|
+
"@ag-grid-enterprise/menu": "32.0.2",
|
|
56
|
+
"@ag-grid-enterprise/range-selection": "32.0.2",
|
|
57
|
+
"@ag-grid-enterprise/row-grouping": "32.0.2",
|
|
58
|
+
"@ag-grid-enterprise/server-side-row-model": "32.0.2",
|
|
59
|
+
"@ag-grid-enterprise/side-bar": "32.0.2",
|
|
62
60
|
"@finos/legend-application": "workspace:*",
|
|
63
61
|
"@finos/legend-art": "workspace:*",
|
|
64
62
|
"@finos/legend-graph": "workspace:*",
|
|
@@ -66,8 +64,7 @@
|
|
|
66
64
|
"@finos/legend-shared": "workspace:*",
|
|
67
65
|
"@types/react": "18.3.3",
|
|
68
66
|
"@types/react-dom": "18.3.0",
|
|
69
|
-
"
|
|
70
|
-
"mobx": "6.13.0",
|
|
67
|
+
"mobx": "6.13.1",
|
|
71
68
|
"mobx-react-lite": "4.0.7",
|
|
72
69
|
"monaco-editor": "0.50.0",
|
|
73
70
|
"react": "18.3.1",
|
|
@@ -83,8 +80,8 @@
|
|
|
83
80
|
"jest": "29.7.0",
|
|
84
81
|
"npm-run-all": "4.1.5",
|
|
85
82
|
"rimraf": "6.0.1",
|
|
86
|
-
"sass": "1.77.
|
|
87
|
-
"typescript": "5.5.
|
|
83
|
+
"sass": "1.77.8",
|
|
84
|
+
"typescript": "5.5.4"
|
|
88
85
|
},
|
|
89
86
|
"peerDependencies": {
|
|
90
87
|
"react": "^18.0.0"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeQuery.d.ts","sourceRoot":"","sources":["../../src/server/DataCubeQuery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,EAIpB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAW9B,8BAAsB,mBAAmB;IACvC,OAAO,EAAE,mBAAmB,EAAE,CAAM;IACpC,KAAK,EAAG,MAAM,CAAC;IACf,OAAO,EAAG,MAAM,CAAC;CAClB;AAED,qBAAa,mBAAmB;IAC9B,IAAI,EAAG,MAAM,CAAC;IACd,IAAI,EAAG,MAAM,CAAC;IAEd,MAAM,CAAC,QAAQ,CAAC,aAAa,4CAK3B;CACH;AAMD,qBAAa,oCAAqC,SAAQ,mBAAmB;IAC3E,MAAM,CAAC,QAAQ,CAAC,aAAa,6DAS3B;CACH;AAiCD,qBAAa,aAAa;IACxB,IAAI,EAAG,MAAM,CAAC;IACd,KAAK,EAAG,MAAM,CAAC;IACf,YAAY,EAAG,MAAM,CAAC;IACtB,MAAM,EAAG,mBAAmB,CAAC;IAC7B,aAAa,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;gBAGtC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,aAAa,CAAC,EAAE,WAAW,GAAG,SAAS;IAOzC,MAAM,CAAC,QAAQ,CAAC,aAAa,sCAQ3B;CACH"}
|
|
@@ -28,13 +28,13 @@ export class DataCubeQueryColumn {
|
|
|
28
28
|
type: primitive(),
|
|
29
29
|
}));
|
|
30
30
|
}
|
|
31
|
-
var
|
|
32
|
-
(function (
|
|
33
|
-
|
|
34
|
-
})(
|
|
31
|
+
var DataCubeQuerySourceType;
|
|
32
|
+
(function (DataCubeQuerySourceType) {
|
|
33
|
+
DataCubeQuerySourceType["REPL_EXECUTED_QUERY"] = "REPLExecutedQuery";
|
|
34
|
+
})(DataCubeQuerySourceType || (DataCubeQuerySourceType = {}));
|
|
35
35
|
export class DataCubeQuerySourceREPLExecutedQuery extends DataCubeQuerySource {
|
|
36
36
|
static serialization = new SerializationFactory(createModelSchema(DataCubeQuerySourceREPLExecutedQuery, {
|
|
37
|
-
_type: usingConstantValueSchema(
|
|
37
|
+
_type: usingConstantValueSchema(DataCubeQuerySourceType.REPL_EXECUTED_QUERY),
|
|
38
38
|
columns: list(usingModelSchema(DataCubeQueryColumn.serialization.schema)),
|
|
39
39
|
query: primitive(),
|
|
40
40
|
runtime: primitive(),
|
|
@@ -42,7 +42,7 @@ export class DataCubeQuerySourceREPLExecutedQuery extends DataCubeQuerySource {
|
|
|
42
42
|
}
|
|
43
43
|
function deserializeQuerySource(json) {
|
|
44
44
|
switch (json._type) {
|
|
45
|
-
case
|
|
45
|
+
case DataCubeQuerySourceType.REPL_EXECUTED_QUERY:
|
|
46
46
|
return deserialize(DataCubeQuerySourceREPLExecutedQuery.serialization.schema, json);
|
|
47
47
|
default:
|
|
48
48
|
throw new UnsupportedOperationError(`Can't deserialize data cube query source of type '${json._type}'`);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeQuery.js","sourceRoot":"","sources":["../../src/server/DataCubeQuery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,gBAAgB,GAEjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,IAAI,EACJ,SAAS,EACT,GAAG,EACH,SAAS,GACV,MAAM,WAAW,CAAC;AAEnB,MAAM,OAAgB,mBAAmB;IACvC,OAAO,GAA0B,EAAE,CAAC;IACpC,KAAK,CAAU;IACf,OAAO,CAAU;CAClB;AAED,MAAM,OAAO,mBAAmB;IAC9B,IAAI,CAAU;IACd,IAAI,CAAU;IAEd,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,mBAAmB,EAAE;QACrC,IAAI,EAAE,SAAS,EAAE;QACjB,IAAI,EAAE,SAAS,EAAE;KAClB,CAAC,CACH,CAAC;;AAGJ,IAAK,uBAEJ;AAFD,WAAK,uBAAuB;IAC1B,oEAAyC,CAAA;AAC3C,CAAC,EAFI,uBAAuB,KAAvB,uBAAuB,QAE3B;AAED,MAAM,OAAO,oCAAqC,SAAQ,mBAAmB;IAC3E,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,oCAAoC,EAAE;QACtD,KAAK,EAAE,wBAAwB,CAC7B,uBAAuB,CAAC,mBAAmB,CAC5C;QACD,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;Q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6 +16,10 @@
|
|
|
16
16
|
import { SerializationFactory } from '@finos/legend-shared';
|
|
17
17
|
import { type V1_ValueSpecification, type V1_Lambda } from '@finos/legend-graph';
|
|
18
18
|
import { DataCubeQuery, type DataCubeQueryColumn } from './DataCubeQuery.js';
|
|
19
|
+
export declare class DataCubeInfrastructureInfo {
|
|
20
|
+
gridClientLicense?: string | undefined;
|
|
21
|
+
static readonly serialization: SerializationFactory<DataCubeInfrastructureInfo>;
|
|
22
|
+
}
|
|
19
23
|
export declare class DataCubeGetQueryCodeInput {
|
|
20
24
|
query: V1_ValueSpecification;
|
|
21
25
|
pretty?: boolean;
|
|
@@ -39,10 +43,12 @@ export declare class DataCubeGetQueryRelationReturnTypeInput {
|
|
|
39
43
|
}
|
|
40
44
|
export declare class DataCubeExecutionInput {
|
|
41
45
|
query: V1_Lambda;
|
|
46
|
+
debug?: boolean | undefined;
|
|
42
47
|
static readonly serialization: SerializationFactory<DataCubeExecutionInput>;
|
|
43
48
|
}
|
|
44
49
|
export type DataCubeExecutionResult = {
|
|
45
50
|
result: string;
|
|
51
|
+
executedSQL: string;
|
|
46
52
|
};
|
|
47
53
|
export type RelationType = {
|
|
48
54
|
columns: DataCubeQueryColumn[];
|
|
@@ -54,4 +60,4 @@ export declare class DataCubeGetBaseQueryResult {
|
|
|
54
60
|
sourceQuery: V1_ValueSpecification;
|
|
55
61
|
static readonly serialization: SerializationFactory<DataCubeGetBaseQueryResult>;
|
|
56
62
|
}
|
|
57
|
-
//# sourceMappingURL=
|
|
63
|
+
//# sourceMappingURL=REPLEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"REPLEngine.d.ts","sourceRoot":"","sources":["../../src/server/REPLEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,oBAAoB,EAAoB,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EAIf,MAA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AY,EAAG,qBAAqB,CAAC;IACrC,WAAW,EAAG,qBAAqB,CAAC;IAEpC,MAAM,CAAC,QAAQ,CAAC,aAAa,mDAa3B;CACH"}
|
|
@@ -17,6 +17,12 @@ import { createModelSchema, custom, optional, primitive } from 'serializr';
|
|
|
17
17
|
import { SerializationFactory, usingModelSchema } from '@finos/legend-shared';
|
|
18
18
|
import { V1_deserializeValueSpecification, V1_serializeValueSpecification, V1_lambdaModelSchema, } from '@finos/legend-graph';
|
|
19
19
|
import { DataCubeQuery } from './DataCubeQuery.js';
|
|
20
|
+
export class DataCubeInfrastructureInfo {
|
|
21
|
+
gridClientLicense;
|
|
22
|
+
static serialization = new SerializationFactory(createModelSchema(DataCubeInfrastructureInfo, {
|
|
23
|
+
gridClientLicense: optional(primitive()),
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
20
26
|
export class DataCubeGetQueryCodeInput {
|
|
21
27
|
query; // TODO: @akphi - consider if we should update this to use Lambda instead
|
|
22
28
|
pretty;
|
|
@@ -33,7 +39,9 @@ export class DataCubeGetQueryRelationReturnTypeInput {
|
|
|
33
39
|
}
|
|
34
40
|
export class DataCubeExecutionInput {
|
|
35
41
|
query;
|
|
42
|
+
debug;
|
|
36
43
|
static serialization = new SerializationFactory(createModelSchema(DataCubeExecutionInput, {
|
|
44
|
+
debug: optional(primitive()),
|
|
37
45
|
query: usingModelSchema(V1_lambdaModelSchema([])),
|
|
38
46
|
}));
|
|
39
47
|
}
|
|
@@ -49,4 +57,4 @@ export class DataCubeGetBaseQueryResult {
|
|
|
49
57
|
timestamp: primitive(),
|
|
50
58
|
}));
|
|
51
59
|
}
|
|
52
|
-
//# sourceMappingURL=
|
|
60
|
+
//# sourceMappingURL=REPLEngine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"REPLEngine.js","sourceRoot":"","sources":["../../src/server/REPLEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAA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AAC,sBAAsB,EAAE;QACxC,KAAK,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC;QAC5B,KAAK,EAAE,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;KAClD,CAAC,CACH,CAAC;;AAYJ,MAAM,OAAO,0BAA0B;IACrC,KAAK,CAAiB;IACtB,SAAS,CAAU;IACnB,YAAY,CAAyB;IACrC,WAAW,CAAyB;IAEpC,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,0BAA0B,EAAE;QAC5C,YAAY,EAAE,MAAM,CAClB,CAAC,GAAG,EAAE,EAAE,CAAC,8BAA8B,CAAC,GAAG,EAAE,EAAE,CAAC,EAChD,CAAC,GAAG,EAAE,EAAE,CAAC,gCAAgC,CAAC,GAAG,EAAE,EAAE,CAAC,CACnD;QACD,KAAK,EAAE,gBAAgB,CAAC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC;QAC3D,WAAW,EAAE,MAAM,CACjB,CAAC,GAAG,EAAE,EAAE,CAAC,8BAA8B,CAAC,GAAG,EAAE,EAAE,CAAC,EAChD,CAAC,GAAG,EAAE,EAAE,CAAC,gCAAgC,CAAC,GAAG,EAAE,EAAE,CAAC,CACnD;QACD,SAAS,EAAE,SAAS,EAAE;KACvB,CAAC,CACH,CAAC"}
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { type NetworkClient, type PlainObject } from '@finos/legend-shared';
|
|
17
|
-
import type { CompletionItem, DataCubeGetQueryCodeInput, DataCubeGetQueryRelationReturnTypeInput, DataCubeParseQueryInput, DataCubeQueryTypeaheadInput, RelationType, DataCubeExecutionInput, DataCubeExecutionResult, DataCubeGetBaseQueryResult } from './
|
|
17
|
+
import type { CompletionItem, DataCubeGetQueryCodeInput, DataCubeGetQueryRelationReturnTypeInput, DataCubeParseQueryInput, DataCubeQueryTypeaheadInput, RelationType, DataCubeExecutionInput, DataCubeExecutionResult, DataCubeGetBaseQueryResult, DataCubeInfrastructureInfo } from './REPLEngine.js';
|
|
18
18
|
import type { V1_ValueSpecification } from '@finos/legend-graph';
|
|
19
19
|
export declare class REPLServerClient {
|
|
20
20
|
private readonly networkClient;
|
|
21
21
|
constructor(networkClient: NetworkClient);
|
|
22
22
|
get baseUrl(): string;
|
|
23
23
|
private get dataCube();
|
|
24
|
-
|
|
24
|
+
getInfrastructureInfo(): Promise<DataCubeInfrastructureInfo>;
|
|
25
25
|
getQueryTypeahead(input: DataCubeQueryTypeaheadInput): Promise<PlainObject<CompletionItem>[]>;
|
|
26
26
|
parseQuery(input: DataCubeParseQueryInput): Promise<PlainObject<V1_ValueSpecification>>;
|
|
27
27
|
getQueryCode(input: DataCubeGetQueryCodeInput): Promise<PlainObject<string>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"REPLServerClient.d.ts","sourceRoot":"","sources":["../../src/server/REPLServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,cAAc,EACd,yBAAyB,EACzB,uCAAuC,EACvC,uBAAuB,EACvB,2BAA2B,EAC3B,YAAY,EACZ,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC3B,MAAM,
|
|
1
|
+
{"version":3,"file":"REPLServerClient.d.ts","sourceRoot":"","sources":["../../src/server/REPLServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,cAAc,EACd,yBAAyB,EACzB,uCAAuC,EACvC,uBAAuB,EACvB,2BAA2B,EAC3B,YAAY,EACZ,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;gBAElC,aAAa,EAAE,aAAa;IAIxC,IAAI,OAAO,IAAI,MAAM,CAKpB;IAED,OAAO,KAAK,QAAQ,GAEnB;IAEK,qBAAqB,IAAI,OAAO,CAAC,0BAA0B,CAAC;IAI5D,iBAAiB,CACrB,KAAK,EAAE,2BAA2B,GACjC,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE,CAAC;IAKnC,UAAU,CACd,KAAK,EAAE,uBAAuB,GAC7B,OAAO,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAGxC,YAAY,CAChB,KAAK,EAAE,yBAAyB,GAC/B,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAIzB,YAAY,IAAI,OAAO,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC;IAIhE,qBAAqB,CACzB,KAAK,EAAE,uCAAuC,GAC7C,OAAO,CAAC,YAAY,CAAC;IAOlB,YAAY,CAChB,KAAK,EAAE,WAAW,CAAC,sBAAsB,CAAC,GACzC,OAAO,CAAC,uBAAuB,CAAC;CAGpC"}
|
|
@@ -25,8 +25,8 @@ export class REPLServerClient {
|
|
|
25
25
|
get dataCube() {
|
|
26
26
|
return `${this.baseUrl}/api/dataCube`;
|
|
27
27
|
}
|
|
28
|
-
async
|
|
29
|
-
return this.networkClient.get(`${this.dataCube}/
|
|
28
|
+
async getInfrastructureInfo() {
|
|
29
|
+
return this.networkClient.get(`${this.dataCube}/infrastructureInfo`);
|
|
30
30
|
}
|
|
31
31
|
async getQueryTypeahead(input) {
|
|
32
32
|
return this.networkClient.post(`${this.dataCube}/typeahead`, input);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"REPLServerClient.js","sourceRoot":"","sources":["../../src/server/REPLServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,GAGrB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"REPLServerClient.js","sourceRoot":"","sources":["../../src/server/REPLServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,GAGrB,MAAM,sBAAsB,CAAC;AAe9B,MAAM,OAAO,gBAAgB;IACV,aAAa,CAAgB;IAE9C,YAAY,aAA4B;QACtC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAED,IAAI,OAAO;QACT,OAAO,oBAAoB,CACzB,IAAI,CAAC,aAAa,CAAC,OAAO,EAC1B,qDAAqD,CACtD,CAAC;IACJ,CAAC;IAED,IAAY,QAAQ;QAClB,OAAO,GAAG,IAAI,CAAC,OAAO,eAAe,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,qBAAqB;QACzB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,qBAAqB,CAAC,CAAC;IACvE,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,KAAkC;QAElC,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,YAAY,EAAE,KAAK,CAAC,CAAC;IACtE,CAAC;IAED,iFAAiF;IACjF,KAAK,CAAC,UAAU,CACd,KAA8B;QAE9B,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,aAAa,EAAE,KAAK,CAAC,CAAC;IACvE,CAAC;IACD,KAAK,CAAC,YAAY,CAChB,KAAgC;QAEhC,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,eAAe,EAAE,KAAK,CAAC,CAAC;IACzE,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,eAAe,CAAC,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,qBAAqB,CACzB,KAA8C;QAE9C,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAC5B,GAAG,IAAI,CAAC,QAAQ,wBAAwB,EACxC,KAAK,CACN,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,KAA0C;QAE1C,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,eAAe,EAAE,KAAK,CAAC,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { GenericLegendApplicationStore } from '@finos/legend-application';
|
|
17
|
+
export type WindowConfiguration = {
|
|
18
|
+
x?: number | undefined;
|
|
19
|
+
y?: number | undefined;
|
|
20
|
+
width?: number | undefined;
|
|
21
|
+
height?: number | undefined;
|
|
22
|
+
minWidth?: number | undefined;
|
|
23
|
+
minHeight?: number | undefined;
|
|
24
|
+
center?: boolean | undefined;
|
|
25
|
+
};
|
|
26
|
+
export declare class LayoutConfiguration {
|
|
27
|
+
title: string;
|
|
28
|
+
readonly contentRenderer: (config: LayoutConfiguration) => React.ReactNode;
|
|
29
|
+
window: WindowConfiguration;
|
|
30
|
+
constructor(title: string, contentRenderer: (config: LayoutConfiguration) => React.ReactNode);
|
|
31
|
+
}
|
|
32
|
+
export declare class WindowState {
|
|
33
|
+
readonly uuid: string;
|
|
34
|
+
readonly configuration: LayoutConfiguration;
|
|
35
|
+
readonly onClose?: (() => void) | undefined;
|
|
36
|
+
constructor(configuration: LayoutConfiguration, onClose?: (() => void) | undefined);
|
|
37
|
+
}
|
|
38
|
+
export declare class LayoutManagerState {
|
|
39
|
+
readonly application: GenericLegendApplicationStore;
|
|
40
|
+
windows: WindowState[];
|
|
41
|
+
constructor(application: GenericLegendApplicationStore);
|
|
42
|
+
newWindow(window: WindowState): void;
|
|
43
|
+
bringWindowFront(window: WindowState): void;
|
|
44
|
+
closeWindow(window: WindowState): void;
|
|
45
|
+
}
|
|
46
|
+
export declare const WINDOW_DEFAULT_OFFSET = 50;
|
|
47
|
+
export declare const WINDOW_DEFAULT_WIDTH = 800;
|
|
48
|
+
export declare const WINDOW_DEFAULT_HEIGHT = 600;
|
|
49
|
+
export declare const WINDOW_DEFAULT_MIN_WIDTH = 300;
|
|
50
|
+
export declare const WINDOW_DEFAULT_MIN_HEIGHT = 300;
|
|
51
|
+
export declare const DEFAULT_TOOL_PANEL_WINDOW_CONFIG: WindowConfiguration;
|
|
52
|
+
export declare const DEFAULT_ALERT_WINDOW_CONFIG: WindowConfiguration;
|
|
53
|
+
export declare class SingletonModeDisplayState {
|
|
54
|
+
readonly layoutManagerState: LayoutManagerState;
|
|
55
|
+
readonly configuration: LayoutConfiguration;
|
|
56
|
+
window?: WindowState | undefined;
|
|
57
|
+
constructor(layoutManagerState: LayoutManagerState, title: string, contentRenderer: (config: LayoutConfiguration) => React.ReactNode);
|
|
58
|
+
get isOpen(): boolean;
|
|
59
|
+
open(): void;
|
|
60
|
+
close(): void;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=LayoutManagerState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
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EAAE,6BAA6B;IAWtD,SAAS,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAIpC,gBAAgB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAQ3C,WAAW,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;CAOvC;AAED,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,oBAAoB,MAAM,CAAC;AACxC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,eAAO,MAAM,gCAAgC,EAAE,mBAM9C,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,mBAMzC,CAAC;AAEF,qBAAa,yBAAyB;IACpC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAChD,QAAQ,CAAC,aAAa,EAAE,mBAAmB,CAAC;IAC5C,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;gBAG/B,kBAAkB,EAAE,kBAAkB,EACtC,KAAK,EAAE,MAAM,EACb,eAAe,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,KAAK,CAAC,SAAS;IAcnE,IAAI,MAAM,YAET;IAED,IAAI;IAaJ,KAAK;CAMN"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { uuid } from '@finos/legend-shared';
|
|
17
|
+
import { action, computed, makeObservable, observable, runInAction, } from 'mobx';
|
|
18
|
+
export class LayoutConfiguration {
|
|
19
|
+
title;
|
|
20
|
+
contentRenderer;
|
|
21
|
+
window = {};
|
|
22
|
+
constructor(title, contentRenderer) {
|
|
23
|
+
this.contentRenderer = contentRenderer;
|
|
24
|
+
this.title = title;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export class WindowState {
|
|
28
|
+
uuid = uuid();
|
|
29
|
+
configuration;
|
|
30
|
+
onClose;
|
|
31
|
+
constructor(configuration, onClose) {
|
|
32
|
+
this.configuration = configuration;
|
|
33
|
+
this.onClose = onClose;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export class LayoutManagerState {
|
|
37
|
+
application;
|
|
38
|
+
windows = [];
|
|
39
|
+
constructor(application) {
|
|
40
|
+
makeObservable(this, {
|
|
41
|
+
windows: observable,
|
|
42
|
+
newWindow: action,
|
|
43
|
+
bringWindowFront: action,
|
|
44
|
+
closeWindow: action,
|
|
45
|
+
});
|
|
46
|
+
this.application = application;
|
|
47
|
+
}
|
|
48
|
+
newWindow(window) {
|
|
49
|
+
this.windows.push(window);
|
|
50
|
+
}
|
|
51
|
+
bringWindowFront(window) {
|
|
52
|
+
const matchingWindow = this.windows.find((w) => w.uuid === window.uuid);
|
|
53
|
+
if (matchingWindow) {
|
|
54
|
+
this.windows = this.windows.filter((w) => w.uuid !== window.uuid);
|
|
55
|
+
this.windows.push(window);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
closeWindow(window) {
|
|
59
|
+
const matchingWindow = this.windows.find((w) => w.uuid === window.uuid);
|
|
60
|
+
if (matchingWindow) {
|
|
61
|
+
this.windows = this.windows.filter((w) => w.uuid !== window.uuid);
|
|
62
|
+
window.onClose?.();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
export const WINDOW_DEFAULT_OFFSET = 50;
|
|
67
|
+
export const WINDOW_DEFAULT_WIDTH = 800;
|
|
68
|
+
export const WINDOW_DEFAULT_HEIGHT = 600;
|
|
69
|
+
export const WINDOW_DEFAULT_MIN_WIDTH = 300;
|
|
70
|
+
export const WINDOW_DEFAULT_MIN_HEIGHT = 300;
|
|
71
|
+
export const DEFAULT_TOOL_PANEL_WINDOW_CONFIG = {
|
|
72
|
+
width: WINDOW_DEFAULT_WIDTH,
|
|
73
|
+
height: WINDOW_DEFAULT_HEIGHT,
|
|
74
|
+
minWidth: WINDOW_DEFAULT_MIN_WIDTH,
|
|
75
|
+
minHeight: WINDOW_DEFAULT_MIN_HEIGHT,
|
|
76
|
+
center: true,
|
|
77
|
+
};
|
|
78
|
+
export const DEFAULT_ALERT_WINDOW_CONFIG = {
|
|
79
|
+
width: 500,
|
|
80
|
+
height: 80,
|
|
81
|
+
minWidth: 200,
|
|
82
|
+
minHeight: 80,
|
|
83
|
+
center: true,
|
|
84
|
+
};
|
|
85
|
+
export class SingletonModeDisplayState {
|
|
86
|
+
layoutManagerState;
|
|
87
|
+
configuration;
|
|
88
|
+
window;
|
|
89
|
+
constructor(layoutManagerState, title, contentRenderer) {
|
|
90
|
+
makeObservable(this, {
|
|
91
|
+
window: observable,
|
|
92
|
+
isOpen: computed,
|
|
93
|
+
open: action,
|
|
94
|
+
close: action,
|
|
95
|
+
});
|
|
96
|
+
this.layoutManagerState = layoutManagerState;
|
|
97
|
+
this.configuration = new LayoutConfiguration(title, contentRenderer);
|
|
98
|
+
this.configuration.window = DEFAULT_TOOL_PANEL_WINDOW_CONFIG;
|
|
99
|
+
}
|
|
100
|
+
get isOpen() {
|
|
101
|
+
return Boolean(this.window);
|
|
102
|
+
}
|
|
103
|
+
open() {
|
|
104
|
+
if (this.window) {
|
|
105
|
+
this.layoutManagerState.bringWindowFront(this.window);
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
this.window = new WindowState(this.configuration, () => runInAction(() => {
|
|
109
|
+
this.window = undefined;
|
|
110
|
+
}));
|
|
111
|
+
this.layoutManagerState.newWindow(this.window);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
close() {
|
|
115
|
+
if (this.window) {
|
|
116
|
+
this.layoutManagerState.closeWindow(this.window);
|
|
117
|
+
this.window = undefined;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=LayoutManagerState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutManagerState.js","sourceRoot":"","sources":["../../src/stores/LayoutManagerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EACL,MAAM,EACN,QAAQ,EACR,cAAc,EACd,UAAU,EACV,WAAW,GACZ,MAAM,MAAM,CAAC;AAYd,MAAM,OAAO,mBAAmB;IAC9B,KAAK,CAAS;IACL,eAAe,CAAmD;IAC3E,MAAM,GAAwB,EAAE,CAAC;IAEjC,YACE,KAAa,EACb,eAAiE;QAEjE,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAED,MAAM,OAAO,WAAW;IACb,IAAI,GAAG,IAAI,EAAE,CAAC;IACd,aAAa,CAAsB;IACnC,OAAO,CAA4B;IAE5C,YACE,aAAkC,EAClC,OAAkC;QAElC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAED,MAAM,OAAO,kBAAkB;IACpB,WAAW,CAAgC;IACpD,OAAO,GAAkB,EAAE,CAAC;IAE5B,YAAY,WAA0C;QACpD,cAAc,CAAC,IAAI,EAAE;YACnB,OAAO,EAAE,UAAU;YACnB,SAAS,EAAE,MAAM;Y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E,GAAG,EAAE,CACrD,WAAW,CAAC,GAAG,EAAE;gBACf,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;YAC1B,CAAC,CAAC,CACH,CAAC;YACF,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;IAED,KAAK;QACH,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACjD,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QAC1B,CAAC;IACH,CAAC;CACF"}
|
|
@@ -22,5 +22,6 @@ export declare abstract class LegendREPLApplicationPlugin extends LegendApplicat
|
|
|
22
22
|
*/
|
|
23
23
|
private readonly _$nominalTypeBrand;
|
|
24
24
|
install(pluginManager: LegendREPLPluginManager): void;
|
|
25
|
+
getExtraRequiredDocumentationKeys(): string[];
|
|
25
26
|
}
|
|
26
27
|
//# sourceMappingURL=LegendREPLApplicationPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendREPLApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/stores/LegendREPLApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendREPLApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/stores/LegendREPLApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAGzF,8BAAsB,2BAA4B,SAAQ,uBAAuB;IAC/E;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAiC;IAEpE,OAAO,CAAC,aAAa,EAAE,uBAAuB,GAAG,IAAI;IAI5C,iCAAiC,IAAI,MAAM,EAAE;CAOvD"}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { LegendApplicationPlugin } from '@finos/legend-application';
|
|
17
|
+
import { DocumentationKey } from '../application/LegendREPLDocumentation.js';
|
|
17
18
|
export class LegendREPLApplicationPlugin extends LegendApplicationPlugin {
|
|
18
19
|
/**
|
|
19
20
|
* This helps to better type-check for this empty abtract type
|
|
@@ -23,5 +24,12 @@ export class LegendREPLApplicationPlugin extends LegendApplicationPlugin {
|
|
|
23
24
|
install(pluginManager) {
|
|
24
25
|
pluginManager.registerApplicationPlugin(this);
|
|
25
26
|
}
|
|
27
|
+
getExtraRequiredDocumentationKeys() {
|
|
28
|
+
return [
|
|
29
|
+
DocumentationKey.DATA_CUBE_EXTENDED_COLUMN_LEVELS,
|
|
30
|
+
DocumentationKey.DATA_CUBE_COLUMN_KINDS,
|
|
31
|
+
DocumentationKey.DATA_CUBE_COLUMN_DISPLAY_AS_LINK,
|
|
32
|
+
];
|
|
33
|
+
}
|
|
26
34
|
}
|
|
27
35
|
//# sourceMappingURL=LegendREPLApplicationPlugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendREPLApplicationPlugin.js","sourceRoot":"","sources":["../../src/stores/LegendREPLApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendREPLApplicationPlugin.js","sourceRoot":"","sources":["../../src/stores/LegendREPLApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAE7E,MAAM,OAAgB,2BAA4B,SAAQ,uBAAuB;IAC/E;;;OAGG;IACc,kBAAkB,CAAiC;IAEpE,OAAO,CAAC,aAAsC;QAC5C,aAAa,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IAEQ,iCAAiC;QACxC,OAAO;YACL,gBAAgB,CAAC,gCAAgC;YACjD,gBAAgB,CAAC,sBAAsB;YACvC,gBAAgB,CAAC,gCAAgC;SAClD,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -18,8 +18,8 @@ import type { LegendREPLApplicationConfig } from '../application/LegendREPLAppli
|
|
|
18
18
|
import type { LegendREPLPluginManager } from '../application/LegendREPLPluginManager.js';
|
|
19
19
|
export type LegendREPLApplicationStore = ApplicationStore<LegendREPLApplicationConfig, LegendREPLPluginManager>;
|
|
20
20
|
export declare class LegendREPLBaseStore {
|
|
21
|
-
readonly
|
|
21
|
+
readonly application: LegendREPLApplicationStore;
|
|
22
22
|
readonly pluginManager: LegendREPLPluginManager;
|
|
23
|
-
constructor(
|
|
23
|
+
constructor(application: LegendREPLApplicationStore);
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=LegendREPLBaseStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendREPLBaseStore.d.ts","sourceRoot":"","sources":["../../src/stores/LegendREPLBaseStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAEzF,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CACvD,2BAA2B,EAC3B,uBAAuB,CACxB,CAAC;AAEF,qBAAa,mBAAmB;IAC9B,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"LegendREPLBaseStore.d.ts","sourceRoot":"","sources":["../../src/stores/LegendREPLBaseStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAEzF,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CACvD,2BAA2B,EAC3B,uBAAuB,CACxB,CAAC;AAEF,qBAAa,mBAAmB;IAC9B,QAAQ,CAAC,WAAW,EAAE,0BAA0B,CAAC;IACjD,QAAQ,CAAC,aAAa,EAAE,uBAAuB,CAAC;gBAEpC,WAAW,EAAE,0BAA0B;CAIpD"}
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export class LegendREPLBaseStore {
|
|
17
|
-
|
|
17
|
+
application;
|
|
18
18
|
pluginManager;
|
|
19
|
-
constructor(
|
|
20
|
-
this.
|
|
21
|
-
this.pluginManager =
|
|
19
|
+
constructor(application) {
|
|
20
|
+
this.application = application;
|
|
21
|
+
this.pluginManager = application.pluginManager;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=LegendREPLBaseStore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendREPLBaseStore.js","sourceRoot":"","sources":["../../src/stores/LegendREPLBaseStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,MAAM,OAAO,mBAAmB;IACrB,
|
|
1
|
+
{"version":3,"file":"LegendREPLBaseStore.js","sourceRoot":"","sources":["../../src/stores/LegendREPLBaseStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,MAAM,OAAO,mBAAmB;IACrB,WAAW,CAA6B;IACxC,aAAa,CAA0B;IAEhD,YAAY,WAAuC;QACjD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC;IACjD,CAAC;CACF"}
|
|
@@ -15,13 +15,21 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { LegendREPLApplicationStore } from './LegendREPLBaseStore.js';
|
|
17
17
|
import { REPLServerClient } from '../server/REPLServerClient.js';
|
|
18
|
+
import { ActionState } from '@finos/legend-shared';
|
|
18
19
|
import { DataCubeState } from './dataCube/DataCubeState.js';
|
|
19
|
-
import {
|
|
20
|
+
import { DataCubeEngine } from './dataCube/DataCubeEngine.js';
|
|
21
|
+
import { LayoutManagerState, SingletonModeDisplayState } from './LayoutManagerState.js';
|
|
20
22
|
export declare class REPLStore {
|
|
21
|
-
readonly
|
|
23
|
+
readonly application: LegendREPLApplicationStore;
|
|
22
24
|
readonly client: REPLServerClient;
|
|
23
|
-
|
|
25
|
+
readonly layout: LayoutManagerState;
|
|
26
|
+
readonly initState: ActionState;
|
|
27
|
+
readonly settingsDisplay: SingletonModeDisplayState;
|
|
28
|
+
readonly documentationDisplay: SingletonModeDisplayState;
|
|
29
|
+
dataCubeEngine: DataCubeEngine;
|
|
24
30
|
dataCube: DataCubeState;
|
|
25
|
-
constructor(
|
|
31
|
+
constructor(application: LegendREPLApplicationStore);
|
|
32
|
+
notifyError(error: Error, message: string, text?: string | undefined): void;
|
|
33
|
+
initialize(): Promise<void>;
|
|
26
34
|
}
|
|
27
35
|
//# sourceMappingURL=REPLStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"REPLStore.d.ts","sourceRoot":"","sources":["../../src/stores/REPLStore.
|
|
1
|
+
{"version":3,"file":"REPLStore.d.ts","sourceRoot":"","sources":["../../src/stores/REPLStore.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EACL,WAAW,EAIZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9D,OAAO,EAGL,kBAAkB,EAClB,yBAAyB,EAE1B,MAAM,yBAAyB,CAAC;AAKjC,qBAAa,SAAS;IACpB,QAAQ,CAAC,WAAW,EAAE,0BAA0B,CAAC;IACjD,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;IACpC,QAAQ,CAAC,SAAS,cAAwB;IAC1C,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;IACpD,QAAQ,CAAC,oBAAoB,EAAE,yBAAyB,CAAC;IAEzD,cAAc,EAAG,cAAc,CAAC;IAGhC,QAAQ,EAAG,aAAa,CAAC;gBAEb,WAAW,EAAE,0BAA0B;IA+CnD,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAWrE,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAiClC"}
|