@finos/legend-application-repl 0.0.21 → 0.0.23
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/lib/{stores/CompletionResult.d.ts → __lib__/LegendREPLEvent.d.ts} +4 -6
- package/lib/__lib__/LegendREPLEvent.d.ts.map +1 -0
- package/lib/__lib__/LegendREPLEvent.js +21 -0
- package/lib/__lib__/LegendREPLEvent.js.map +1 -0
- package/lib/{stores/dataCube/DataCubePanelState.js → __lib__/LegendREPLSetting.d.ts} +3 -6
- package/lib/__lib__/LegendREPLSetting.d.ts.map +1 -0
- package/lib/{components/grid/TDSLambdaBuilder.d.ts → __lib__/LegendREPLSetting.js} +5 -4
- package/lib/__lib__/LegendREPLSetting.js.map +1 -0
- package/lib/application/{LegendREPLGridClient.d.ts → LegendREPL.d.ts} +10 -10
- package/lib/application/LegendREPL.d.ts.map +1 -0
- package/lib/application/{LegendREPLGridClient.js → LegendREPL.js} +10 -15
- package/lib/application/LegendREPL.js.map +1 -0
- package/lib/application/{LegendREPLGridClientApplicationConfig.d.ts → LegendREPLApplicationConfig.d.ts} +4 -4
- package/lib/application/LegendREPLApplicationConfig.d.ts.map +1 -0
- package/lib/application/{LegendREPLGridClientApplicationConfig.js → LegendREPLApplicationConfig.js} +2 -2
- package/lib/application/LegendREPLApplicationConfig.js.map +1 -0
- package/lib/application/{LegendREPLGridClientPluginManager.d.ts → LegendREPLPluginManager.d.ts} +4 -4
- package/lib/application/LegendREPLPluginManager.d.ts.map +1 -0
- package/lib/application/{LegendREPLGridClientPluginManager.js → LegendREPLPluginManager.js} +3 -3
- package/lib/application/LegendREPLPluginManager.js.map +1 -0
- package/lib/components/{Core_LegendREPLGridClientApplicationPlugin.d.ts → Core_LegendREPLApplicationPlugin.d.ts} +3 -3
- package/lib/components/Core_LegendREPLApplicationPlugin.d.ts.map +1 -0
- package/lib/components/{Core_LegendREPLGridClientApplicationPlugin.js → Core_LegendREPLApplicationPlugin.js} +12 -7
- package/lib/components/Core_LegendREPLApplicationPlugin.js.map +1 -0
- package/lib/components/{AgGrid.d.ts → LegendREPLApplication.d.ts} +8 -6
- package/lib/components/LegendREPLApplication.d.ts.map +1 -0
- package/lib/components/LegendREPLApplication.js +32 -0
- package/lib/components/LegendREPLApplication.js.map +1 -0
- package/lib/components/{LegendREPLGridClientFrameworkProvider.d.ts → LegendREPLFrameworkProvider.d.ts} +4 -4
- package/lib/components/LegendREPLFrameworkProvider.d.ts.map +1 -0
- package/lib/components/{LegendREPLGridClientFrameworkProvider.js → LegendREPLFrameworkProvider.js} +9 -9
- package/lib/components/LegendREPLFrameworkProvider.js.map +1 -0
- package/lib/components/{REPLGridClientStoreProvider.d.ts → REPLStoreProvider.d.ts} +5 -5
- package/lib/components/REPLStoreProvider.d.ts.map +1 -0
- package/lib/components/{REPLGridClientStoreProvider.js → REPLStoreProvider.js} +9 -9
- package/lib/components/REPLStoreProvider.js.map +1 -0
- package/lib/components/dataCube/DataCube.d.ts +19 -0
- package/lib/components/dataCube/DataCube.d.ts.map +1 -0
- package/lib/components/dataCube/DataCube.js +33 -0
- package/lib/components/dataCube/DataCube.js.map +1 -0
- package/lib/components/{REPLGridClient.d.ts → dataCube/editor/DataCubeEditor.d.ts} +5 -9
- package/lib/components/dataCube/editor/DataCubeEditor.d.ts.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditor.js +54 -0
- package/lib/components/dataCube/editor/DataCubeEditor.js.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.d.ts +19 -0
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.d.ts.map +1 -0
- package/lib/components/dataCube/{DataCubeQueryTextEditor.js → editor/DataCubeEditorCodePanel.js} +20 -20
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.js.map +1 -0
- package/lib/components/dataCube/{DataCubeGridEditor.d.ts → editor/DataCubeEditorSortPanel.d.ts} +4 -4
- package/lib/components/dataCube/editor/DataCubeEditorSortPanel.d.ts.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorSortPanel.js +61 -0
- package/lib/components/dataCube/editor/DataCubeEditorSortPanel.js.map +1 -0
- package/lib/components/dataCube/{DataCubeQueryTextEditor.d.ts → grid/DataCubeGrid.d.ts} +4 -4
- package/lib/components/dataCube/grid/DataCubeGrid.d.ts.map +1 -0
- package/lib/components/dataCube/grid/DataCubeGrid.js +59 -0
- package/lib/components/dataCube/grid/DataCubeGrid.js.map +1 -0
- package/lib/grid.css +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -8
- package/lib/index.js.map +1 -1
- package/lib/package.json +3 -3
- package/lib/repl.css +1 -1
- package/lib/server/REPLServerClient.d.ts +11 -13
- package/lib/server/REPLServerClient.d.ts.map +1 -1
- package/lib/server/REPLServerClient.js +27 -15
- package/lib/server/REPLServerClient.js.map +1 -1
- package/lib/server/models/DataCubeEngineModels.d.ts +50 -0
- package/lib/server/models/DataCubeEngineModels.d.ts.map +1 -0
- package/lib/server/models/DataCubeEngineModels.js +39 -0
- package/lib/server/models/DataCubeEngineModels.js.map +1 -0
- package/lib/server/models/DataCubeQuery.d.ts +41 -0
- package/lib/server/models/DataCubeQuery.d.ts.map +1 -0
- package/lib/server/models/DataCubeQuery.js +78 -0
- package/lib/server/models/DataCubeQuery.js.map +1 -0
- package/lib/stores/{LegendREPLGridClientApplicationPlugin.d.ts → LegendREPLApplicationPlugin.d.ts} +4 -4
- package/lib/stores/LegendREPLApplicationPlugin.d.ts.map +1 -0
- package/lib/stores/{LegendREPLGridClientApplicationPlugin.js → LegendREPLApplicationPlugin.js} +2 -2
- package/lib/stores/LegendREPLApplicationPlugin.js.map +1 -0
- package/lib/stores/LegendREPLBaseStore.d.ts +25 -0
- package/lib/stores/LegendREPLBaseStore.d.ts.map +1 -0
- package/lib/stores/{LegendREPLGridClientBaseStore.js → LegendREPLBaseStore.js} +2 -2
- package/lib/stores/LegendREPLBaseStore.js.map +1 -0
- package/lib/stores/dataCube/DataCubeMetaModelConst.d.ts +49 -0
- package/lib/stores/dataCube/DataCubeMetaModelConst.d.ts.map +1 -0
- package/lib/stores/dataCube/DataCubeMetaModelConst.js +57 -0
- package/lib/stores/dataCube/DataCubeMetaModelConst.js.map +1 -0
- package/lib/stores/dataCube/DataCubeState.d.ts +18 -23
- package/lib/stores/dataCube/DataCubeState.d.ts.map +1 -1
- package/lib/stores/dataCube/DataCubeState.js +31 -181
- package/lib/stores/dataCube/DataCubeState.js.map +1 -1
- package/lib/stores/{REPLGridClientStore.d.ts → dataCube/DataCubeStore.d.ts} +7 -7
- package/lib/stores/dataCube/DataCubeStore.d.ts.map +1 -0
- package/lib/stores/{REPLGridClientStore.js → dataCube/DataCubeStore.js} +5 -4
- package/lib/stores/dataCube/DataCubeStore.js.map +1 -0
- package/lib/stores/dataCube/core/DataCubeEngine.d.ts +29 -0
- package/lib/stores/dataCube/core/DataCubeEngine.d.ts.map +1 -0
- package/lib/stores/dataCube/core/DataCubeEngine.js +47 -0
- package/lib/stores/dataCube/core/DataCubeEngine.js.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQueryAnalyzer.d.ts +37 -0
- package/lib/stores/dataCube/core/DataCubeQueryAnalyzer.d.ts.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQueryAnalyzer.js +269 -0
- package/lib/stores/dataCube/core/DataCubeQueryAnalyzer.js.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.d.ts +19 -0
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.d.ts.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.js +98 -0
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.js.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.d.ts +73 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.d.ts.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.js +56 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.js.map +1 -0
- package/lib/stores/dataCube/{DataCubePanelState.d.ts → core/DataCubeQuerySnapshotManager.d.ts} +11 -6
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotManager.d.ts.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotManager.js +46 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotManager.js.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.d.ts +27 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.d.ts.map +1 -0
- package/lib/{components/grid/REPLGridServerResult.js → stores/dataCube/core/DataCubeQuerySnapshotSubscriber.js} +18 -10
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.js.map +1 -0
- package/lib/stores/dataCube/{DataCubeQueryEditorState.d.ts → editor/DataCubeEditorCodeState.d.ts} +12 -2
- package/lib/stores/dataCube/editor/DataCubeEditorCodeState.d.ts.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorCodeState.js +87 -0
- package/lib/stores/dataCube/editor/DataCubeEditorCodeState.js.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorQuerySnapshotBuilder.d.ts +28 -0
- package/lib/stores/dataCube/editor/DataCubeEditorQuerySnapshotBuilder.d.ts.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorQuerySnapshotBuilder.js +17 -0
- package/lib/stores/dataCube/editor/DataCubeEditorQuerySnapshotBuilder.js.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorSortState.d.ts +46 -0
- package/lib/stores/dataCube/editor/DataCubeEditorSortState.d.ts.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorSortState.js +133 -0
- package/lib/stores/dataCube/editor/DataCubeEditorSortState.js.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts +44 -0
- package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorState.js +77 -0
- package/lib/stores/dataCube/editor/DataCubeEditorState.js.map +1 -0
- package/lib/{components/grid/ServerSideDataSource.d.ts → stores/dataCube/grid/DataCubeGridClientEngine.d.ts} +17 -14
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.d.ts.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js +96 -0
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.d.ts +19 -0
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.d.ts.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.js +224 -0
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.js.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridState.d.ts +33 -0
- package/lib/stores/dataCube/grid/DataCubeGridState.d.ts.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridState.js +50 -0
- package/lib/stores/dataCube/grid/DataCubeGridState.js.map +1 -0
- package/package.json +9 -9
- package/src/{Const.ts → __lib__/LegendREPLEvent.ts} +1 -16
- package/{lib/components/grid/REPLGridServerResult.d.ts → src/__lib__/LegendREPLSetting.ts} +3 -6
- package/src/application/LegendREPL.tsx +64 -0
- package/src/application/{LegendREPLGridClientApplicationConfig.ts → LegendREPLApplicationConfig.ts} +3 -3
- package/src/application/{LegendREPLGridClientPluginManager.ts → LegendREPLPluginManager.ts} +5 -5
- package/src/components/{Core_LegendREPLGridClientApplicationPlugin.tsx → Core_LegendREPLApplicationPlugin.tsx} +11 -6
- package/src/components/{LegendREPLGridClientApplication.tsx → LegendREPLApplication.tsx} +11 -28
- package/src/components/LegendREPLFrameworkProvider.tsx +57 -0
- package/src/components/{REPLGridClientStoreProvider.tsx → REPLStoreProvider.tsx} +17 -21
- package/src/components/dataCube/DataCube.tsx +63 -0
- package/src/components/dataCube/editor/DataCubeEditor.tsx +127 -0
- package/src/components/dataCube/{DataCubeQueryTextEditor.tsx → editor/DataCubeEditorCodePanel.tsx} +69 -76
- package/src/components/dataCube/editor/DataCubeEditorSortPanel.tsx +274 -0
- package/src/components/dataCube/grid/DataCubeGrid.tsx +77 -0
- package/src/index.tsx +12 -8
- package/src/server/REPLServerClient.ts +50 -78
- package/src/server/models/DataCubeEngineModels.ts +84 -0
- package/src/server/models/DataCubeQuery.ts +130 -0
- package/src/stores/{LegendREPLGridClientApplicationPlugin.ts → LegendREPLApplicationPlugin.ts} +4 -4
- package/src/stores/{LegendREPLGridClientBaseStore.ts → LegendREPLBaseStore.ts} +9 -9
- package/src/stores/dataCube/DataCubeMetaModelConst.ts +61 -0
- package/src/stores/dataCube/DataCubeState.ts +39 -303
- package/src/stores/{REPLGridClientStore.ts → dataCube/DataCubeStore.ts} +8 -6
- package/src/stores/dataCube/core/DataCubeEngine.ts +79 -0
- package/src/stores/dataCube/core/DataCubeQueryAnalyzer.ts +424 -0
- package/src/stores/dataCube/core/DataCubeQueryBuilder.ts +151 -0
- package/src/stores/dataCube/core/DataCubeQuerySnapshot.ts +201 -0
- package/src/stores/dataCube/core/DataCubeQuerySnapshotManager.ts +67 -0
- package/src/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.ts +43 -0
- package/src/stores/dataCube/editor/DataCubeEditorCodeState.ts +166 -0
- package/src/{components/grid/REPLGridServerResult.ts → stores/dataCube/editor/DataCubeEditorQuerySnapshotBuilder.ts} +14 -11
- package/src/stores/dataCube/editor/DataCubeEditorSortState.ts +198 -0
- package/src/stores/dataCube/editor/DataCubeEditorState.ts +94 -0
- package/src/stores/dataCube/grid/DataCubeGridClientEngine.ts +152 -0
- package/src/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.ts +245 -0
- package/src/stores/dataCube/grid/DataCubeGridState.ts +62 -0
- package/tsconfig.json +33 -29
- package/lib/Const.d.ts +0 -32
- package/lib/Const.d.ts.map +0 -1
- package/lib/Const.js +0 -35
- package/lib/Const.js.map +0 -1
- package/lib/application/LegendREPLGridClient.d.ts.map +0 -1
- package/lib/application/LegendREPLGridClient.js.map +0 -1
- package/lib/application/LegendREPLGridClientApplicationConfig.d.ts.map +0 -1
- package/lib/application/LegendREPLGridClientApplicationConfig.js.map +0 -1
- package/lib/application/LegendREPLGridClientPluginManager.d.ts.map +0 -1
- package/lib/application/LegendREPLGridClientPluginManager.js.map +0 -1
- package/lib/components/AgGrid.d.ts.map +0 -1
- package/lib/components/AgGrid.js +0 -41
- package/lib/components/AgGrid.js.map +0 -1
- package/lib/components/Core_LegendREPLGridClientApplicationPlugin.d.ts.map +0 -1
- package/lib/components/Core_LegendREPLGridClientApplicationPlugin.js.map +0 -1
- package/lib/components/LegendREPLGridClientApplication.d.ts +0 -31
- package/lib/components/LegendREPLGridClientApplication.d.ts.map +0 -1
- package/lib/components/LegendREPLGridClientApplication.js +0 -39
- package/lib/components/LegendREPLGridClientApplication.js.map +0 -1
- package/lib/components/LegendREPLGridClientFrameworkProvider.d.ts.map +0 -1
- package/lib/components/LegendREPLGridClientFrameworkProvider.js.map +0 -1
- package/lib/components/REPLGridClient.d.ts.map +0 -1
- package/lib/components/REPLGridClient.js +0 -143
- package/lib/components/REPLGridClient.js.map +0 -1
- package/lib/components/REPLGridClientStoreProvider.d.ts.map +0 -1
- package/lib/components/REPLGridClientStoreProvider.js.map +0 -1
- package/lib/components/dataCube/DataCubeGridEditor.d.ts.map +0 -1
- package/lib/components/dataCube/DataCubeGridEditor.js +0 -37
- package/lib/components/dataCube/DataCubeGridEditor.js.map +0 -1
- package/lib/components/dataCube/DataCubeQueryTextEditor.d.ts.map +0 -1
- package/lib/components/dataCube/DataCubeQueryTextEditor.js.map +0 -1
- package/lib/components/grid/GridUtils.d.ts +0 -31
- package/lib/components/grid/GridUtils.d.ts.map +0 -1
- package/lib/components/grid/GridUtils.js +0 -174
- package/lib/components/grid/GridUtils.js.map +0 -1
- package/lib/components/grid/REPLGridServerResult.d.ts.map +0 -1
- package/lib/components/grid/REPLGridServerResult.js.map +0 -1
- package/lib/components/grid/ServerSideDataSource.d.ts.map +0 -1
- package/lib/components/grid/ServerSideDataSource.js +0 -109
- package/lib/components/grid/ServerSideDataSource.js.map +0 -1
- package/lib/components/grid/TDSLambdaBuilder.d.ts.map +0 -1
- package/lib/components/grid/TDSLambdaBuilder.js +0 -314
- package/lib/components/grid/TDSLambdaBuilder.js.map +0 -1
- package/lib/components/grid/TDSQuery.d.ts +0 -25
- package/lib/components/grid/TDSQuery.d.ts.map +0 -1
- package/lib/components/grid/TDSQuery.js +0 -32
- package/lib/components/grid/TDSQuery.js.map +0 -1
- package/lib/components/grid/TDSRequest.d.ts +0 -103
- package/lib/components/grid/TDSRequest.d.ts.map +0 -1
- package/lib/components/grid/TDSRequest.js +0 -172
- package/lib/components/grid/TDSRequest.js.map +0 -1
- package/lib/stores/CompletionResult.d.ts.map +0 -1
- package/lib/stores/CompletionResult.js +0 -26
- package/lib/stores/CompletionResult.js.map +0 -1
- package/lib/stores/LegendREPLGridClientApplicationPlugin.d.ts.map +0 -1
- package/lib/stores/LegendREPLGridClientApplicationPlugin.js.map +0 -1
- package/lib/stores/LegendREPLGridClientBaseStore.d.ts +0 -25
- package/lib/stores/LegendREPLGridClientBaseStore.d.ts.map +0 -1
- package/lib/stores/LegendREPLGridClientBaseStore.js.map +0 -1
- package/lib/stores/REPLGridClientStore.d.ts.map +0 -1
- package/lib/stores/REPLGridClientStore.js.map +0 -1
- package/lib/stores/dataCube/DataCubeConfigState.d.ts +0 -32
- package/lib/stores/dataCube/DataCubeConfigState.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubeConfigState.js +0 -62
- package/lib/stores/dataCube/DataCubeConfigState.js.map +0 -1
- package/lib/stores/dataCube/DataCubeGridState.d.ts +0 -39
- package/lib/stores/dataCube/DataCubeGridState.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubeGridState.js +0 -108
- package/lib/stores/dataCube/DataCubeGridState.js.map +0 -1
- package/lib/stores/dataCube/DataCubePanelState.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubePanelState.js.map +0 -1
- package/lib/stores/dataCube/DataCubePropertiesPanelState.d.ts +0 -34
- package/lib/stores/dataCube/DataCubePropertiesPanelState.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubePropertiesPanelState.js +0 -57
- package/lib/stores/dataCube/DataCubePropertiesPanelState.js.map +0 -1
- package/lib/stores/dataCube/DataCubeQueryEditorState.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubeQueryEditorState.js +0 -49
- package/lib/stores/dataCube/DataCubeQueryEditorState.js.map +0 -1
- package/lib/stores/dataCube/DataCubeQueryTextEditorState.d.ts +0 -25
- package/lib/stores/dataCube/DataCubeQueryTextEditorState.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubeQueryTextEditorState.js +0 -35
- package/lib/stores/dataCube/DataCubeQueryTextEditorState.js.map +0 -1
- package/lib/stores/dataCube/HPivotAndSortPanelState.d.ts +0 -40
- package/lib/stores/dataCube/HPivotAndSortPanelState.d.ts.map +0 -1
- package/lib/stores/dataCube/HPivotAndSortPanelState.js +0 -130
- package/lib/stores/dataCube/HPivotAndSortPanelState.js.map +0 -1
- package/src/application/LegendREPLGridClient.tsx +0 -72
- package/src/components/AgGrid.tsx +0 -59
- package/src/components/LegendREPLGridClientFrameworkProvider.tsx +0 -63
- package/src/components/REPLGridClient.tsx +0 -560
- package/src/components/dataCube/DataCubeGridEditor.tsx +0 -69
- package/src/components/grid/GridUtils.ts +0 -220
- package/src/components/grid/ServerSideDataSource.ts +0 -197
- package/src/components/grid/TDSLambdaBuilder.ts +0 -456
- package/src/components/grid/TDSQuery.ts +0 -37
- package/src/components/grid/TDSRequest.ts +0 -231
- package/src/stores/CompletionResult.ts +0 -30
- package/src/stores/dataCube/DataCubeConfigState.ts +0 -79
- package/src/stores/dataCube/DataCubeGridState.ts +0 -143
- package/src/stores/dataCube/DataCubePanelState.ts +0 -28
- package/src/stores/dataCube/DataCubePropertiesPanelState.ts +0 -65
- package/src/stores/dataCube/DataCubeQueryEditorState.ts +0 -66
- package/src/stores/dataCube/DataCubeQueryTextEditorState.ts +0 -41
- package/src/stores/dataCube/HPivotAndSortPanelState.ts +0 -170
|
@@ -13,10 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
completion: string;
|
|
20
|
-
static readonly serialization: SerializationFactory<CompletionItem>;
|
|
16
|
+
export declare enum LEGEND_REPL_APP_EVENT {
|
|
17
|
+
FETCH_TDS_FAILURE = "repl.fetch-tds.failure",
|
|
18
|
+
BUILD_TDS_EQUEST_FAILURE = "repl.build-tds-request.failure"
|
|
21
19
|
}
|
|
22
|
-
//# sourceMappingURL=
|
|
20
|
+
//# sourceMappingURL=LegendREPLEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLEvent.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendREPLEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,qBAAqB;IAC/B,iBAAiB,2BAA2B;IAC5C,wBAAwB,mCAAmC;CAC5D"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
export var LEGEND_REPL_APP_EVENT;
|
|
17
|
+
(function (LEGEND_REPL_APP_EVENT) {
|
|
18
|
+
LEGEND_REPL_APP_EVENT["FETCH_TDS_FAILURE"] = "repl.fetch-tds.failure";
|
|
19
|
+
LEGEND_REPL_APP_EVENT["BUILD_TDS_EQUEST_FAILURE"] = "repl.build-tds-request.failure";
|
|
20
|
+
})(LEGEND_REPL_APP_EVENT || (LEGEND_REPL_APP_EVENT = {}));
|
|
21
|
+
//# sourceMappingURL=LegendREPLEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLEvent.js","sourceRoot":"","sources":["../../src/__lib__/LegendREPLEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,qEAA4C,CAAA;IAC5C,oFAA2D,CAAA;AAC7D,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC"}
|
|
@@ -13,10 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
constructor(dataCubeState) {
|
|
19
|
-
this.dataCubeState = dataCubeState;
|
|
20
|
-
}
|
|
16
|
+
export declare enum LEGEND_APPLICATION_REPL_SETTING_KEY {
|
|
17
|
+
PAGINATION = "application.pagination.enabled"
|
|
21
18
|
}
|
|
22
|
-
//# sourceMappingURL=
|
|
19
|
+
//# sourceMappingURL=LegendREPLSetting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLSetting.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendREPLSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,mCAAmC;IAC7C,UAAU,mCAAmC;CAC9C"}
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
export var LEGEND_APPLICATION_REPL_SETTING_KEY;
|
|
17
|
+
(function (LEGEND_APPLICATION_REPL_SETTING_KEY) {
|
|
18
|
+
LEGEND_APPLICATION_REPL_SETTING_KEY["PAGINATION"] = "application.pagination.enabled";
|
|
19
|
+
})(LEGEND_APPLICATION_REPL_SETTING_KEY || (LEGEND_APPLICATION_REPL_SETTING_KEY = {}));
|
|
20
|
+
//# sourceMappingURL=LegendREPLSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLSetting.js","sourceRoot":"","sources":["../../src/__lib__/LegendREPLSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,mCAEX;AAFD,WAAY,mCAAmC;IAC7C,oFAA6C,CAAA;AAC/C,CAAC,EAFW,mCAAmC,KAAnC,mCAAmC,QAE9C"}
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { type LegendApplicationConfig, type LegendApplicationConfigurationInput, LegendApplication } from '@finos/legend-application';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import type {
|
|
20
|
-
export declare class
|
|
21
|
-
config:
|
|
22
|
-
pluginManager:
|
|
23
|
-
static create():
|
|
24
|
-
configureApplication(input: LegendApplicationConfigurationInput<
|
|
25
|
-
loadApplication(applicationStore:
|
|
17
|
+
import { LegendREPLApplicationConfig, type LegendREPLApplicationConfigData } from './LegendREPLApplicationConfig.js';
|
|
18
|
+
import { LegendREPLPluginManager } from './LegendREPLPluginManager.js';
|
|
19
|
+
import type { LegendREPLApplicationStore } from '../stores/LegendREPLBaseStore.js';
|
|
20
|
+
export declare class LegendREPL extends LegendApplication {
|
|
21
|
+
config: LegendREPLApplicationConfig;
|
|
22
|
+
pluginManager: LegendREPLPluginManager;
|
|
23
|
+
static create(): LegendREPL;
|
|
24
|
+
configureApplication(input: LegendApplicationConfigurationInput<LegendREPLApplicationConfigData>): Promise<LegendApplicationConfig>;
|
|
25
|
+
loadApplication(applicationStore: LegendREPLApplicationStore): Promise<void>;
|
|
26
26
|
}
|
|
27
|
-
//# sourceMappingURL=
|
|
27
|
+
//# sourceMappingURL=LegendREPL.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPL.d.ts","sourceRoot":"","sources":["../../src/application/LegendREPL.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,mCAAmC,EACxC,iBAAiB,EAIlB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,2BAA2B,EAC3B,KAAK,+BAA+B,EACrC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAGvE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAEnF,qBAAa,UAAW,SAAQ,iBAAiB;IACvC,MAAM,EAAE,2BAA2B,CAAC;IACpC,aAAa,EAAE,uBAAuB,CAAC;IAE/C,MAAM,CAAC,MAAM,IAAI,UAAU;IAUrB,oBAAoB,CACxB,KAAK,EAAE,mCAAmC,CAAC,+BAA+B,CAAC,GAC1E,OAAO,CAAC,uBAAuB,CAAC;IAI7B,eAAe,CACnB,gBAAgB,EAAE,0BAA0B,GAC3C,OAAO,CAAC,IAAI,CAAC;CAOjB"}
|
|
@@ -16,30 +16,25 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
16
16
|
*/
|
|
17
17
|
import { createRoot } from 'react-dom/client';
|
|
18
18
|
import { LegendApplication, ApplicationStoreProvider, Core_LegendApplicationPlugin, getApplicationRootElement, } from '@finos/legend-application';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
export class
|
|
19
|
+
import { LegendREPLApplicationConfig, } from './LegendREPLApplicationConfig.js';
|
|
20
|
+
import { LegendREPLPluginManager } from './LegendREPLPluginManager.js';
|
|
21
|
+
import { LegendREPLWebApplication } from '../components/LegendREPLApplication.js';
|
|
22
|
+
import { Core_LegendREPLApplicationPlugin } from '../components/Core_LegendREPLApplicationPlugin.js';
|
|
23
|
+
export class LegendREPL extends LegendApplication {
|
|
24
24
|
static create() {
|
|
25
|
-
const application = new
|
|
25
|
+
const application = new LegendREPL(LegendREPLPluginManager.create());
|
|
26
26
|
application.withBasePlugins([
|
|
27
27
|
new Core_LegendApplicationPlugin(),
|
|
28
|
-
new
|
|
28
|
+
new Core_LegendREPLApplicationPlugin(),
|
|
29
29
|
]);
|
|
30
30
|
application.withBasePresets([]);
|
|
31
31
|
return application;
|
|
32
32
|
}
|
|
33
|
-
// TODO: we need a btter strategy to make this work with vscode code-server
|
|
34
|
-
// especially when handling static content such as config.json and version.json
|
|
35
|
-
// we need to balance out what we output in the HTML file, what we call in the app
|
|
36
|
-
// to fetch these files, as well as how we develop locally
|
|
37
|
-
// e.g. use something like `${window.location.href.split('/repl/')[0]}/repl/`
|
|
38
33
|
async configureApplication(input) {
|
|
39
|
-
return new
|
|
34
|
+
return new LegendREPLApplicationConfig(input);
|
|
40
35
|
}
|
|
41
36
|
async loadApplication(applicationStore) {
|
|
42
|
-
createRoot(getApplicationRootElement()).render(_jsx(ApplicationStoreProvider, { store: applicationStore, children: _jsx(
|
|
37
|
+
createRoot(getApplicationRootElement()).render(_jsx(ApplicationStoreProvider, { store: applicationStore, children: _jsx(LegendREPLWebApplication, { baseUrl: this.baseAddress }) }));
|
|
43
38
|
}
|
|
44
39
|
}
|
|
45
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=LegendREPL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPL.js","sourceRoot":"","sources":["../../src/application/LegendREPL.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAGL,iBAAiB,EACjB,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,2BAA2B,GAE5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AAGrG,MAAM,OAAO,UAAW,SAAQ,iBAAiB;IAI/C,MAAM,CAAC,MAAM;QACX,MAAM,WAAW,GAAG,IAAI,UAAU,CAAC,uBAAuB,CAAC,MAAM,EAAE,CAAC,CAAC;QACrE,WAAW,CAAC,eAAe,CAAC;YAC1B,IAAI,4BAA4B,EAAE;YAClC,IAAI,gCAAgC,EAAE;SACvC,CAAC,CAAC;QACH,WAAW,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QAChC,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,KAA2E;QAE3E,OAAO,IAAI,2BAA2B,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,gBAA4C;QAE5C,UAAU,CAAC,yBAAyB,EAAE,CAAC,CAAC,MAAM,CAC5C,KAAC,wBAAwB,IAAC,KAAK,EAAE,gBAAgB,YAC/C,KAAC,wBAAwB,IAAC,OAAO,EAAE,IAAI,CAAC,WAAW,GAAI,GAC9B,CAC5B,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { type LegendApplicationConfigurationData, type LegendApplicationConfigurationInput, LegendApplicationConfig } from '@finos/legend-application';
|
|
17
|
-
export interface
|
|
17
|
+
export interface LegendREPLApplicationConfigData extends LegendApplicationConfigurationData {
|
|
18
18
|
repl: {
|
|
19
19
|
url: string;
|
|
20
20
|
dynamic?: boolean;
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
export declare class
|
|
23
|
+
export declare class LegendREPLApplicationConfig extends LegendApplicationConfig {
|
|
24
24
|
readonly replUrl: string;
|
|
25
25
|
readonly useDynamicREPLServer: boolean;
|
|
26
|
-
constructor(input: LegendApplicationConfigurationInput<
|
|
26
|
+
constructor(input: LegendApplicationConfigurationInput<LegendREPLApplicationConfigData>);
|
|
27
27
|
getDefaultApplicationStorageKey(): string;
|
|
28
28
|
}
|
|
29
|
-
//# sourceMappingURL=
|
|
29
|
+
//# sourceMappingURL=LegendREPLApplicationConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendREPLApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACxC,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,+BACf,SAAQ,kCAAkC;IAC1C,IAAI,EAAE;QACJ,GAAG,EAAE,MAAM,CAAC;QAGZ,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;CACH;AAED,qBAAa,2BAA4B,SAAQ,uBAAuB;IACtE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAS;gBAG7C,KAAK,EAAE,mCAAmC,CAAC,+BAA+B,CAAC;IAmBpE,+BAA+B,IAAI,MAAM;CAGnD"}
|
package/lib/application/{LegendREPLGridClientApplicationConfig.js → LegendREPLApplicationConfig.js}
RENAMED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { assertNonNullable, guaranteeNonEmptyString, } from '@finos/legend-shared';
|
|
17
17
|
import { LegendApplicationConfig, } from '@finos/legend-application';
|
|
18
|
-
export class
|
|
18
|
+
export class LegendREPLApplicationConfig extends LegendApplicationConfig {
|
|
19
19
|
replUrl;
|
|
20
20
|
useDynamicREPLServer = false;
|
|
21
21
|
constructor(input) {
|
|
@@ -30,4 +30,4 @@ export class LegendREPLGridClientApplicationConfig extends LegendApplicationConf
|
|
|
30
30
|
return 'legend-repl';
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
//# sourceMappingURL=
|
|
33
|
+
//# sourceMappingURL=LegendREPLApplicationConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendREPLApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AAYnC,MAAM,OAAO,2BAA4B,SAAQ,uBAAuB;IAC7D,OAAO,CAAS;IAChB,oBAAoB,GAAY,KAAK,CAAC;IAE/C,YACE,KAA2E;QAE3E,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,iBAAiB,CACf,KAAK,CAAC,UAAU,CAAC,IAAI,EACrB,sDAAsD,CACvD,CAAC;QACF,IAAI,CAAC,OAAO,GAAG,uBAAuB,CAAC,kBAAkB,CACvD,uBAAuB,CACrB,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EACzB,mEAAmE,CACpE,CACF,CAAC;QACF,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YAChD,IAAI,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;IAEQ,+BAA+B;QACtC,OAAO,aAAa,CAAC;IACvB,CAAC;CACF"}
|
package/lib/application/{LegendREPLGridClientPluginManager.d.ts → LegendREPLPluginManager.d.ts}
RENAMED
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { GraphManagerPluginManager, PureGraphManagerPlugin, PureGraphPlugin, PureProtocolProcessorPlugin } from '@finos/legend-graph';
|
|
17
17
|
import { LegendApplicationPluginManager } from '@finos/legend-application';
|
|
18
|
-
import type {
|
|
19
|
-
export declare class
|
|
18
|
+
import type { LegendREPLApplicationPlugin } from '../stores/LegendREPLApplicationPlugin.js';
|
|
19
|
+
export declare class LegendREPLPluginManager extends LegendApplicationPluginManager<LegendREPLApplicationPlugin> implements GraphManagerPluginManager {
|
|
20
20
|
private pureProtocolProcessorPlugins;
|
|
21
21
|
private pureGraphManagerPlugins;
|
|
22
22
|
private pureGraphPlugins;
|
|
23
23
|
private constructor();
|
|
24
|
-
static create():
|
|
24
|
+
static create(): LegendREPLPluginManager;
|
|
25
25
|
registerPureProtocolProcessorPlugin(plugin: PureProtocolProcessorPlugin): void;
|
|
26
26
|
registerPureGraphManagerPlugin(plugin: PureGraphManagerPlugin): void;
|
|
27
27
|
registerPureGraphPlugin(plugin: PureGraphPlugin): void;
|
|
@@ -29,4 +29,4 @@ export declare class LegendREPLGridClientPluginManager extends LegendApplication
|
|
|
29
29
|
getPureProtocolProcessorPlugins(): PureProtocolProcessorPlugin[];
|
|
30
30
|
getPureGraphPlugins(): PureGraphPlugin[];
|
|
31
31
|
}
|
|
32
|
-
//# sourceMappingURL=
|
|
32
|
+
//# sourceMappingURL=LegendREPLPluginManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLPluginManager.d.ts","sourceRoot":"","sources":["../../src/application/LegendREPLPluginManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,yBAAyB,EACzB,sBAAsB,EACtB,eAAe,EACf,2BAA2B,EAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAE5F,qBAAa,uBACX,SAAQ,8BAA8B,CAAC,2BAA2B,CAClE,YAAW,yBAAyB;IAEpC,OAAO,CAAC,4BAA4B,CAAqC;IACzE,OAAO,CAAC,uBAAuB,CAAgC;IAC/D,OAAO,CAAC,gBAAgB,CAAyB;IAEjD,OAAO;IAIP,MAAM,CAAC,MAAM,IAAI,uBAAuB;IAIxC,mCAAmC,CACjC,MAAM,EAAE,2BAA2B,GAClC,IAAI;IAIP,8BAA8B,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI;IAIpE,uBAAuB,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI;IAItD,0BAA0B,IAAI,sBAAsB,EAAE;IAItD,+BAA+B,IAAI,2BAA2B,EAAE;IAIhE,mBAAmB,IAAI,eAAe,EAAE;CAGzC"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { LegendApplicationPluginManager } from '@finos/legend-application';
|
|
17
|
-
export class
|
|
17
|
+
export class LegendREPLPluginManager extends LegendApplicationPluginManager {
|
|
18
18
|
pureProtocolProcessorPlugins = [];
|
|
19
19
|
pureGraphManagerPlugins = [];
|
|
20
20
|
pureGraphPlugins = [];
|
|
@@ -22,7 +22,7 @@ export class LegendREPLGridClientPluginManager extends LegendApplicationPluginMa
|
|
|
22
22
|
super();
|
|
23
23
|
}
|
|
24
24
|
static create() {
|
|
25
|
-
return new
|
|
25
|
+
return new LegendREPLPluginManager();
|
|
26
26
|
}
|
|
27
27
|
registerPureProtocolProcessorPlugin(plugin) {
|
|
28
28
|
this.pureProtocolProcessorPlugins.push(plugin);
|
|
@@ -43,4 +43,4 @@ export class LegendREPLGridClientPluginManager extends LegendApplicationPluginMa
|
|
|
43
43
|
return [...this.pureGraphPlugins];
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
//# sourceMappingURL=
|
|
46
|
+
//# sourceMappingURL=LegendREPLPluginManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLPluginManager.js","sourceRoot":"","sources":["../../src/application/LegendREPLPluginManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAG3E,MAAM,OAAO,uBACX,SAAQ,8BAA2D;IAG3D,4BAA4B,GAAkC,EAAE,CAAC;IACjE,uBAAuB,GAA6B,EAAE,CAAC;IACvD,gBAAgB,GAAsB,EAAE,CAAC;IAEjD;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,MAAM,CAAC,MAAM;QACX,OAAO,IAAI,uBAAuB,EAAE,CAAC;IACvC,CAAC;IAED,mCAAmC,CACjC,MAAmC;QAEnC,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;IAED,8BAA8B,CAAC,MAA8B;QAC3D,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IAED,uBAAuB,CAAC,MAAuB;QAC7C,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED,0BAA0B;QACxB,OAAO,CAAC,GAAG,IAAI,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IAED,+BAA+B;QAC7B,OAAO,CAAC,GAAG,IAAI,CAAC,4BAA4B,CAAC,CAAC;IAChD,CAAC;IAED,mBAAmB;QACjB,OAAO,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACpC,CAAC;CACF"}
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { LegendApplicationSetup } from '@finos/legend-application';
|
|
17
|
-
import {
|
|
18
|
-
export declare class
|
|
17
|
+
import { LegendREPLApplicationPlugin } from '../stores/LegendREPLApplicationPlugin.js';
|
|
18
|
+
export declare class Core_LegendREPLApplicationPlugin extends LegendREPLApplicationPlugin {
|
|
19
19
|
static NAME: string;
|
|
20
20
|
constructor();
|
|
21
21
|
getExtraApplicationSetups(): LegendApplicationSetup[];
|
|
22
22
|
}
|
|
23
|
-
//# sourceMappingURL=
|
|
23
|
+
//# sourceMappingURL=Core_LegendREPLApplicationPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Core_LegendREPLApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/Core_LegendREPLApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAExE,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AASvF,qBAAa,gCAAiC,SAAQ,2BAA2B;IAC/E,MAAM,CAAC,IAAI,SAAgD;;IAMlD,yBAAyB,IAAI,sBAAsB,EAAE;CAY/D"}
|
|
@@ -14,22 +14,27 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import packageJson from '../../package.json' assert { type: 'json' };
|
|
17
|
-
import {
|
|
18
|
-
import { configureAgGridComponent } from './AgGrid.js';
|
|
17
|
+
import { LegendREPLApplicationPlugin } from '../stores/LegendREPLApplicationPlugin.js';
|
|
19
18
|
import { configureCodeEditorComponent, setupPureLanguageService, } from '@finos/legend-lego/code-editor';
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
import { ModuleRegistry } from '@ag-grid-community/core';
|
|
20
|
+
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
|
|
21
|
+
import { RowGroupingModule } from '@ag-grid-enterprise/row-grouping';
|
|
22
|
+
export class Core_LegendREPLApplicationPlugin extends LegendREPLApplicationPlugin {
|
|
23
|
+
static NAME = packageJson.extensions.applicationREPLPlugin;
|
|
22
24
|
constructor() {
|
|
23
|
-
super(
|
|
25
|
+
super(Core_LegendREPLApplicationPlugin.NAME, packageJson.version);
|
|
24
26
|
}
|
|
25
27
|
getExtraApplicationSetups() {
|
|
26
28
|
return [
|
|
27
29
|
async (applicationStore) => {
|
|
28
|
-
|
|
30
|
+
ModuleRegistry.registerModules([
|
|
31
|
+
ClientSideRowModelModule,
|
|
32
|
+
RowGroupingModule,
|
|
33
|
+
]);
|
|
29
34
|
await configureCodeEditorComponent(applicationStore);
|
|
30
35
|
setupPureLanguageService();
|
|
31
36
|
},
|
|
32
37
|
];
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=Core_LegendREPLApplicationPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Core_LegendREPLApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/Core_LegendREPLApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,WAAW,MAAM,oBAAoB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AACvF,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,MAAM,OAAO,gCAAiC,SAAQ,2BAA2B;IAC/E,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAE3D;QACE,KAAK,CAAC,gCAAgC,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACpE,CAAC;IAEQ,yBAAyB;QAChC,OAAO;YACL,KAAK,EAAE,gBAAgB,EAAE,EAAE;gBACzB,cAAc,CAAC,eAAe,CAAC;oBAC7B,wBAAwB;oBACxB,iBAAiB;iBAClB,CAAC,CAAC;gBACH,MAAM,4BAA4B,CAAC,gBAAgB,CAAC,CAAC;gBACrD,wBAAwB,EAAE,CAAC;YAC7B,CAAC;SACF,CAAC;IACJ,CAAC"}
|
|
@@ -14,9 +14,11 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
/// <reference types="react" resolution-mode="require"/>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare const
|
|
22
|
-
|
|
17
|
+
export declare const LEGEND_REPL_GRID_CLIENT_ROUTE_PATTERN: Readonly<{
|
|
18
|
+
DATA_CUBE: "/dataCube";
|
|
19
|
+
}>;
|
|
20
|
+
export declare const LegendREPLRouter: import("react").FC<{}>;
|
|
21
|
+
export declare const LegendREPLWebApplication: React.FC<{
|
|
22
|
+
baseUrl: string;
|
|
23
|
+
}>;
|
|
24
|
+
//# sourceMappingURL=LegendREPLApplication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLApplication.d.ts","sourceRoot":"","sources":["../../src/components/LegendREPLApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAaH,eAAO,MAAM,qCAAqC;;EAEhD,CAAC;AAEH,eAAO,MAAM,gBAAgB,wBAe5B,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC9C,OAAO,EAAE,MAAM,CAAC;CACjB,CAUA,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx } 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 { BrowserEnvironmentProvider, Route, Switch, } from '@finos/legend-application/browser';
|
|
18
|
+
import { DataCube } from './dataCube/DataCube.js';
|
|
19
|
+
import { LegendREPLFrameworkProvider } from './LegendREPLFrameworkProvider.js';
|
|
20
|
+
import { observer } from 'mobx-react-lite';
|
|
21
|
+
import { withREPLStore } from './REPLStoreProvider.js';
|
|
22
|
+
export const LEGEND_REPL_GRID_CLIENT_ROUTE_PATTERN = Object.freeze({
|
|
23
|
+
DATA_CUBE: `/dataCube`,
|
|
24
|
+
});
|
|
25
|
+
export const LegendREPLRouter = withREPLStore(observer(() => (_jsx("div", { className: "app", children: _jsx(Switch, { children: _jsx(Route, { exact: true, path: [LEGEND_REPL_GRID_CLIENT_ROUTE_PATTERN.DATA_CUBE], component:
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
27
|
+
DataCube }) }) }))));
|
|
28
|
+
export const LegendREPLWebApplication = (props) => {
|
|
29
|
+
const { baseUrl } = props;
|
|
30
|
+
return (_jsx(BrowserEnvironmentProvider, { baseUrl: baseUrl, children: _jsx(LegendREPLFrameworkProvider, { children: _jsx(LegendREPLRouter, {}) }) }));
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=LegendREPLApplication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLApplication.js","sourceRoot":"","sources":["../../src/components/LegendREPLApplication.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAC1B,KAAK,EACL,MAAM,GAEP,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,MAAM,CAAC,MAAM,qCAAqC,GAAG,MAAM,CAAC,MAAM,CAAC;IACjE,SAAS,EAAE,WAAW;CACvB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAC3C,QAAQ,CAAC,GAAG,EAAE,CAAC,CACb,cAAK,SAAS,EAAC,KAAK,YAClB,KAAC,MAAM,cACL,KAAC,KAAK,IACJ,KAAK,EAAE,IAAI,EACX,IAAI,EAAE,CAAC,qCAAqC,CAAC,SAAS,CAAC,EACvD,SAAS;YACP,mEAAmE;YACnE,QAA+C,GAEjD,GACK,GACL,CACP,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAEhC,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE1B,OAAO,CACL,KAAC,0BAA0B,IAAC,OAAO,EAAE,OAAO,YAC1C,KAAC,2BAA2B,cAC1B,KAAC,gBAAgB,KAAG,GACQ,GACH,CAC9B,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
/// <reference types="react" resolution-mode="require"/>
|
|
17
|
-
import { type
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const
|
|
17
|
+
import { type LegendREPLApplicationStore } from '../stores/LegendREPLBaseStore.js';
|
|
18
|
+
export declare const useLegendREPLApplicationStore: () => LegendREPLApplicationStore;
|
|
19
|
+
export declare const LegendREPLFrameworkProvider: React.FC<{
|
|
20
20
|
children: React.ReactNode;
|
|
21
21
|
}>;
|
|
22
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=LegendREPLFrameworkProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLFrameworkProvider.d.ts","sourceRoot":"","sources":["../../src/components/LegendREPLFrameworkProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAUH,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,6BAA6B,kCACmC,CAAC;AAoB9E,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC;IACjD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAIA,CAAC"}
|
package/lib/components/{LegendREPLGridClientFrameworkProvider.js → LegendREPLFrameworkProvider.js}
RENAMED
|
@@ -17,13 +17,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
17
17
|
import { createContext } from 'react';
|
|
18
18
|
import { useLocalObservable } from 'mobx-react-lite';
|
|
19
19
|
import { ApplicationFrameworkProvider, useApplicationStore, } from '@finos/legend-application';
|
|
20
|
-
import {
|
|
21
|
-
export const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const applicationStore =
|
|
25
|
-
const store = useLocalObservable(() => new
|
|
26
|
-
return (_jsx(
|
|
20
|
+
import { LegendREPLBaseStore, } from '../stores/LegendREPLBaseStore.js';
|
|
21
|
+
export const useLegendREPLApplicationStore = () => useApplicationStore();
|
|
22
|
+
const LegendREPLBaseStoreContext = createContext(undefined);
|
|
23
|
+
const LegendREPLBaseStoreProvider = ({ children }) => {
|
|
24
|
+
const applicationStore = useLegendREPLApplicationStore();
|
|
25
|
+
const store = useLocalObservable(() => new LegendREPLBaseStore(applicationStore));
|
|
26
|
+
return (_jsx(LegendREPLBaseStoreContext.Provider, { value: store, children: children }));
|
|
27
27
|
};
|
|
28
|
-
export const
|
|
29
|
-
//# sourceMappingURL=
|
|
28
|
+
export const LegendREPLFrameworkProvider = ({ children }) => (_jsx(ApplicationFrameworkProvider, { children: _jsx(LegendREPLBaseStoreProvider, { children: children }) }));
|
|
29
|
+
//# sourceMappingURL=LegendREPLFrameworkProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLFrameworkProvider.js","sourceRoot":"","sources":["../../src/components/LegendREPLFrameworkProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAEL,mBAAmB,GACpB,MAAM,kCAAkC,CAAC;AAE1C,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAA+B,EAAE,CAC5E,mBAAmB,EAAwD,CAAC;AAE9E,MAAM,0BAA0B,GAAG,aAAa,CAE9C,SAAS,CAAC,CAAC;AAEb,MAAM,2BAA2B,GAE5B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpB,MAAM,gBAAgB,GAAG,6BAA6B,EAAE,CAAC;IACzD,MAAM,KAAK,GAAG,kBAAkB,CAC9B,GAAG,EAAE,CAAC,IAAI,mBAAmB,CAAC,gBAAgB,CAAC,CAChD,CAAC;IACF,OAAO,CACL,KAAC,0BAA0B,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAC9C,QAAQ,GAC2B,CACvC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAEnC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACrB,KAAC,4BAA4B,cAC3B,KAAC,2BAA2B,cAAE,QAAQ,GAA+B,GACxC,CAChC,CAAC"}
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
17
|
-
export declare const
|
|
16
|
+
import { REPLStore } from '../stores/dataCube/DataCubeStore.js';
|
|
17
|
+
export declare const REPLStoreProvider: ({ children, }: {
|
|
18
18
|
children: React.ReactNode;
|
|
19
19
|
}) => React.ReactElement;
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
22
|
-
//# sourceMappingURL=
|
|
20
|
+
export declare const useREPLStore: () => REPLStore;
|
|
21
|
+
export declare const withREPLStore: (WrappedComponent: React.FC) => React.FC;
|
|
22
|
+
//# sourceMappingURL=REPLStoreProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"REPLStoreProvider.d.ts","sourceRoot":"","sources":["../../src/components/REPLStoreProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAQhE,eAAO,MAAM,iBAAiB,kBAE3B;IACD,QAAQ,EAAE,MAAM,SAAS,CAAC;CAC3B,KAAG,MAAM,YAWT,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,SAI7B,CAAC;AAEJ,eAAO,MAAM,aAAa,qBAAsB,MAAM,EAAE,KAAG,MAAM,EAO9D,CAAC"}
|
|
@@ -16,17 +16,17 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
16
16
|
*/
|
|
17
17
|
import { createContext, useContext } from 'react';
|
|
18
18
|
import { useLocalObservable } from 'mobx-react-lite';
|
|
19
|
-
import {
|
|
19
|
+
import { REPLStore } from '../stores/dataCube/DataCubeStore.js';
|
|
20
20
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
21
21
|
import { useApplicationStore } from '@finos/legend-application';
|
|
22
|
-
const
|
|
23
|
-
export const
|
|
22
|
+
const REPLStoreContext = createContext(undefined);
|
|
23
|
+
export const REPLStoreProvider = ({ children, }) => {
|
|
24
24
|
const applicationStore = useApplicationStore();
|
|
25
|
-
const store = useLocalObservable(() => new
|
|
26
|
-
return (_jsx(
|
|
25
|
+
const store = useLocalObservable(() => new REPLStore(applicationStore));
|
|
26
|
+
return (_jsx(REPLStoreContext.Provider, { value: store, children: children }));
|
|
27
27
|
};
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
30
|
-
return (_jsx(
|
|
28
|
+
export const useREPLStore = () => guaranteeNonNullable(useContext(REPLStoreContext), `Can't find REPL store in context`);
|
|
29
|
+
export const withREPLStore = (WrappedComponent) => function WithREPLStore() {
|
|
30
|
+
return (_jsx(REPLStoreProvider, { children: _jsx(WrappedComponent, {}) }));
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=
|
|
32
|
+
//# sourceMappingURL=REPLStoreProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"REPLStoreProvider.js","sourceRoot":"","sources":["../../src/components/REPLStoreProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAIhE,MAAM,gBAAgB,GAAG,aAAa,CAAwB,SAAS,CAAC,CAAC;AAEzE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC,QAAQ,GAGT,EAAsB,EAAE;IACvB,MAAM,gBAAgB,GAAG,mBAAmB,EAGzC,CAAC;IACJ,MAAM,KAAK,GAAG,kBAAkB,CAAC,GAAG,EAAE,CAAC,IAAI,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACxE,OAAO,CACL,KAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACpC,QAAQ,GACiB,CAC7B,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAc,EAAE,CAC1C,oBAAoB,CAClB,UAAU,CAAC,gBAAgB,CAAC,EAC5B,kCAAkC,CACnC,CAAC;AAEJ,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,gBAA0B,EAAY,EAAE,CACpE,SAAS,aAAa;IACpB,OAAO,CACL,KAAC,iBAAiB,cAChB,KAAC,gBAAgB,KAAG,GACF,CACrB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export declare const DataCube: (() => import("react/jsx-runtime").JSX.Element) & {
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=DataCube.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCube.d.ts","sourceRoot":"","sources":["../../../src/components/dataCube/DataCube.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,eAAO,MAAM,QAAQ;;CAuCnB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } 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 { useREPLStore } from '../REPLStoreProvider.js';
|
|
19
|
+
import { useEffect, useRef } from 'react';
|
|
20
|
+
import { DataCubeGrid } from './grid/DataCubeGrid.js';
|
|
21
|
+
import { PivotPanelEditor } from './editor/DataCubeEditor.js';
|
|
22
|
+
import { useApplicationStore } from '@finos/legend-application';
|
|
23
|
+
export const DataCube = observer(() => {
|
|
24
|
+
const dataCubeStore = useREPLStore();
|
|
25
|
+
const applicationStore = useApplicationStore();
|
|
26
|
+
const dataCubeState = dataCubeStore.dataCubeState;
|
|
27
|
+
const pivotPanelButtonRef = useRef(null);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
dataCubeState.initialize().catch(applicationStore.alertUnhandledError);
|
|
30
|
+
}, [dataCubeState, applicationStore]);
|
|
31
|
+
return (_jsxs("div", { className: "repl", children: [_jsx("div", { className: "repl__header", children: _jsxs("div", { className: "repl__header__content", children: [_jsx("div", { className: "repl__header__content__title", children: "Legend DataCube" }), _jsx("div", { className: "repl__header__actions" })] }) }), _jsx("div", { className: "repl__content", children: _jsx(DataCubeGrid, { editorStore: dataCubeStore }) }), _jsxs("div", { className: "repl__footer", children: [_jsx("div", { className: "repl__footer__pivot", ref: pivotPanelButtonRef, onClick: () => dataCubeState.editor.openPanel(), children: "Pivot" }), _jsx("div", { className: "repl__footer__filter", children: "Filter" }), dataCubeState.editor.isPanelOpen && (_jsx(PivotPanelEditor, { editorStore: dataCubeStore, triggerElement: pivotPanelButtonRef.current }))] })] }));
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=DataCube.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCube.js","sourceRoot":"","sources":["../../../src/components/dataCube/DataCube.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,GAAG,EAAE;IACpC,MAAM,aAAa,GAAG,YAAY,EAAE,CAAC;IACrC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC;IAClD,MAAM,mBAAmB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAEzD,SAAS,CAAC,GAAG,EAAE;QACb,aAAa,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IACzE,CAAC,EAAE,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAEtC,OAAO,CACL,eAAK,SAAS,EAAC,MAAM,aACnB,cAAK,SAAS,EAAC,cAAc,YAC3B,eAAK,SAAS,EAAC,uBAAuB,aACpC,cAAK,SAAS,EAAC,8BAA8B,gCAAsB,EACnE,cAAK,SAAS,EAAC,uBAAuB,GAAO,IACzC,GACF,EACN,cAAK,SAAS,EAAC,eAAe,YAC5B,KAAC,YAAY,IAAC,WAAW,EAAE,aAAa,GAAI,GACxC,EACN,eAAK,SAAS,EAAC,cAAc,aAC3B,cACE,SAAS,EAAC,qBAAqB,EAC/B,GAAG,EAAE,mBAAmB,EACxB,OAAO,EAAE,GAAS,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,SAAS,EAAE,sBAGjD,EACN,cAAK,SAAS,EAAC,sBAAsB,uBAAa,EACjD,aAAa,CAAC,MAAM,CAAC,WAAW,IAAI,CACnC,KAAC,gBAAgB,IACf,WAAW,EAAE,aAAa,EAC1B,cAAc,EAAE,mBAAmB,CAAC,OAAO,GAC3C,CACH,IACG,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -13,15 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
import type { REPLStore } from '../../../stores/dataCube/DataCubeStore.js';
|
|
17
|
+
export declare const PivotPanelEditor: ((props: {
|
|
18
|
+
triggerElement: HTMLElement | null;
|
|
19
|
+
editorStore: REPLStore;
|
|
18
20
|
}) => import("react/jsx-runtime").JSX.Element) & {
|
|
19
21
|
displayName: string;
|
|
20
22
|
};
|
|
21
|
-
|
|
22
|
-
displayName: string;
|
|
23
|
-
};
|
|
24
|
-
export declare const REPLQueryEditor: (() => import("react/jsx-runtime").JSX.Element) & {
|
|
25
|
-
displayName: string;
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=REPLGridClient.d.ts.map
|
|
23
|
+
//# sourceMappingURL=DataCubeEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAeH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAI3E,eAAO,MAAM,gBAAgB,WACnB;IAAE,cAAc,EAAE,WAAW,GAAG,IAAI,CAAC;IAAC,WAAW,EAAE,SAAS,CAAA;CAAE;;CA4FvE,CAAC"}
|