@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
|
@@ -1,49 +0,0 @@
|
|
|
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 { SourceInformation } from '@finos/legend-graph';
|
|
17
|
-
import { uuid } from '@finos/legend-shared';
|
|
18
|
-
import { action, makeObservable, observable } from 'mobx';
|
|
19
|
-
export class DataCubeQueryEditorState {
|
|
20
|
-
uuid = uuid();
|
|
21
|
-
query;
|
|
22
|
-
parserError;
|
|
23
|
-
constructor(query) {
|
|
24
|
-
makeObservable(this, {
|
|
25
|
-
query: observable,
|
|
26
|
-
parserError: observable,
|
|
27
|
-
setQuery: action,
|
|
28
|
-
setParserError: action,
|
|
29
|
-
});
|
|
30
|
-
this.query = query;
|
|
31
|
-
}
|
|
32
|
-
setQuery(val) {
|
|
33
|
-
this.query = val;
|
|
34
|
-
}
|
|
35
|
-
setParserError(parserError) {
|
|
36
|
-
// account for the lambda prefix offset in source information
|
|
37
|
-
if (parserError?.sourceInformation) {
|
|
38
|
-
parserError.sourceInformation = this.processSourceInformation(parserError.sourceInformation);
|
|
39
|
-
}
|
|
40
|
-
this.parserError = parserError;
|
|
41
|
-
}
|
|
42
|
-
processSourceInformation(sourceInformation) {
|
|
43
|
-
const { sourceId, startLine, startColumn, endLine, endColumn } = sourceInformation;
|
|
44
|
-
const lineOffset = 0;
|
|
45
|
-
const columnOffset = 0;
|
|
46
|
-
return new SourceInformation(sourceId, startLine + lineOffset, startColumn - (startLine === 1 ? columnOffset : 0), endLine + lineOffset, endColumn - (endLine === 1 ? columnOffset : 0));
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=DataCubeQueryEditorState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeQueryEditorState.js","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubeQueryEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAoB,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,wBAAwB;IACnC,IAAI,GAAG,IAAI,EAAE,CAAC;IACd,KAAK,CAAS;IACd,WAAW,CAA2B;IAEtC,YAAY,KAAa;QACvB,cAAc,CAAC,IAAI,EAAE;YACnB,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,MAAM;YAChB,cAAc,EAAE,MAAM;SACvB,CAAC,CAAC;QAEH,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,QAAQ,CAAC,GAAW;QAClB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;IACnB,CAAC;IAED,cAAc,CAAC,WAAoC;QACjD,6DAA6D;QAC7D,IAAI,WAAW,EAAE,iBAAiB,EAAE,CAAC;YACnC,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,wBAAwB,CAC3D,WAAW,CAAC,iBAAiB,CAC9B,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,wBAAwB,CACtB,iBAAoC;QAEpC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,GAC5D,iBAAiB,CAAC;QACpB,MAAM,UAAU,GAAG,CAAC,CAAC;QACrB,MAAM,YAAY,GAAG,CAAC,CAAC;QACvB,OAAO,IAAI,iBAAiB,CAC1B,QAAQ,EACR,SAAS,GAAG,UAAU,EACtB,WAAW,GAAG,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,EAClD,OAAO,GAAG,UAAU,EACpB,SAAS,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAC/C,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,25 +0,0 @@
|
|
|
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 { DataCubeState } from './DataCubeState.js';
|
|
17
|
-
import { DataCubeQueryEditorState } from './DataCubeQueryEditorState.js';
|
|
18
|
-
export declare class DataCubeQueryTextEditorState {
|
|
19
|
-
readonly dataCubeState: DataCubeState;
|
|
20
|
-
queryEditorState: DataCubeQueryEditorState;
|
|
21
|
-
currentSubQuery?: string | undefined;
|
|
22
|
-
constructor(dataCubeState: DataCubeState);
|
|
23
|
-
setCurrentSubQuery(val: string | undefined): void;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=DataCubeQueryTextEditorState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeQueryTextEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubeQueryTextEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,qBAAa,4BAA4B;IACvC,QAAQ,CAAC,aAAa,EAAG,aAAa,CAAC;IAEvC,gBAAgB,EAAG,wBAAwB,CAAC;IAC5C,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAEzB,aAAa,EAAE,aAAa;IAWxC,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;CAGlD"}
|
|
@@ -1,35 +0,0 @@
|
|
|
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 { action, makeObservable, observable } from 'mobx';
|
|
17
|
-
import { DataCubeQueryEditorState } from './DataCubeQueryEditorState.js';
|
|
18
|
-
export class DataCubeQueryTextEditorState {
|
|
19
|
-
dataCubeState;
|
|
20
|
-
queryEditorState;
|
|
21
|
-
currentSubQuery;
|
|
22
|
-
constructor(dataCubeState) {
|
|
23
|
-
makeObservable(this, {
|
|
24
|
-
currentSubQuery: observable,
|
|
25
|
-
queryEditorState: observable,
|
|
26
|
-
setCurrentSubQuery: action,
|
|
27
|
-
});
|
|
28
|
-
this.dataCubeState = dataCubeState;
|
|
29
|
-
this.queryEditorState = new DataCubeQueryEditorState('');
|
|
30
|
-
}
|
|
31
|
-
setCurrentSubQuery(val) {
|
|
32
|
-
this.currentSubQuery = val;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=DataCubeQueryTextEditorState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeQueryTextEditorState.js","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubeQueryTextEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,MAAM,OAAO,4BAA4B;IAC9B,aAAa,CAAiB;IAEvC,gBAAgB,CAA4B;IAC5C,eAAe,CAAsB;IAErC,YAAY,aAA4B;QACtC,cAAc,CAAC,IAAI,EAAE;YACnB,eAAe,EAAE,UAAU;YAC3B,gBAAgB,EAAE,UAAU;YAC5B,kBAAkB,EAAE,MAAM;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,gBAAgB,GAAG,IAAI,wBAAwB,CAAC,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,kBAAkB,CAAC,GAAuB;QACxC,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;IAC7B,CAAC;CACF"}
|
|
@@ -1,40 +0,0 @@
|
|
|
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 { DataCubeState } from './DataCubeState.js';
|
|
17
|
-
import { DataCubePanelState } from './DataCubePanelState.js';
|
|
18
|
-
import { TDSSort } from '../../components/grid/TDSRequest.js';
|
|
19
|
-
export declare class HPivotAndSortPanelState extends DataCubePanelState {
|
|
20
|
-
isInitialized: boolean;
|
|
21
|
-
availableSortColumns: TDSSort[];
|
|
22
|
-
selectedSortColumns: TDSSort[];
|
|
23
|
-
availableSortColumnsSearchText: string;
|
|
24
|
-
selectedSortColumnsSearchText: string;
|
|
25
|
-
constructor(dataCubeState: DataCubeState);
|
|
26
|
-
setAvailableSortColumns(val: TDSSort[]): void;
|
|
27
|
-
setSelectedSortColumns(val: TDSSort[]): void;
|
|
28
|
-
setIsInitialized(val: boolean): void;
|
|
29
|
-
initialize(): void;
|
|
30
|
-
addAvailableSortColumn(columnName: string): void;
|
|
31
|
-
addSelectedSortColumn(columnName: string): void;
|
|
32
|
-
addAllAvailableSortColumns(): void;
|
|
33
|
-
addAllSelectedSortColumns(): void;
|
|
34
|
-
applyChanges(): void;
|
|
35
|
-
setAvailableSortColumnsSearchText(val: string): void;
|
|
36
|
-
setSelectedSortColumnsSearchText(val: string): void;
|
|
37
|
-
get availableSortColumnsSearchResults(): TDSSort[];
|
|
38
|
-
get selectedSortColumnsSearchResults(): TDSSort[];
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=HPivotAndSortPanelState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HPivotAndSortPanelState.d.ts","sourceRoot":"","sources":["../../../src/stores/dataCube/HPivotAndSortPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAkB,MAAM,qCAAqC,CAAC;AAE9E,qBAAa,uBAAwB,SAAQ,kBAAkB;IAC7D,aAAa,UAAS;IACtB,oBAAoB,EAAE,OAAO,EAAE,CAAM;IACrC,mBAAmB,EAAE,OAAO,EAAE,CAAM;IACpC,8BAA8B,SAAM;IACpC,6BAA6B,SAAM;gBAEvB,aAAa,EAAE,aAAa;IAyBxC,uBAAuB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,IAAI;IAI7C,sBAAsB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,IAAI;IAI5C,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIpC,UAAU,IAAI,IAAI;IAgBlB,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAYhD,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAY/C,0BAA0B,IAAI,IAAI;IAOlC,yBAAyB,IAAI,IAAI;IAOjC,YAAY,IAAI,IAAI;IAmBpB,iCAAiC,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIpD,gCAAgC,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAInD,IAAI,iCAAiC,IAAI,OAAO,EAAE,CAUjD;IAED,IAAI,gCAAgC,IAAI,OAAO,EAAE,CAUhD;CACF"}
|
|
@@ -1,130 +0,0 @@
|
|
|
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 { action, computed, makeObservable, observable } from 'mobx';
|
|
17
|
-
import { DataCubePanelState } from './DataCubePanelState.js';
|
|
18
|
-
import { TDSSort, TDS_SORT_ORDER } from '../../components/grid/TDSRequest.js';
|
|
19
|
-
export class HPivotAndSortPanelState extends DataCubePanelState {
|
|
20
|
-
isInitialized = false;
|
|
21
|
-
availableSortColumns = [];
|
|
22
|
-
selectedSortColumns = [];
|
|
23
|
-
availableSortColumnsSearchText = '';
|
|
24
|
-
selectedSortColumnsSearchText = '';
|
|
25
|
-
constructor(dataCubeState) {
|
|
26
|
-
super(dataCubeState);
|
|
27
|
-
makeObservable(this, {
|
|
28
|
-
isInitialized: observable,
|
|
29
|
-
availableSortColumns: observable,
|
|
30
|
-
selectedSortColumns: observable,
|
|
31
|
-
availableSortColumnsSearchText: observable,
|
|
32
|
-
selectedSortColumnsSearchText: observable,
|
|
33
|
-
setAvailableSortColumns: action,
|
|
34
|
-
setSelectedSortColumns: action,
|
|
35
|
-
setIsInitialized: action,
|
|
36
|
-
addAvailableSortColumn: action,
|
|
37
|
-
addSelectedSortColumn: action,
|
|
38
|
-
addAllAvailableSortColumns: action,
|
|
39
|
-
addAllSelectedSortColumns: action,
|
|
40
|
-
applyChanges: action,
|
|
41
|
-
initialize: action,
|
|
42
|
-
setSelectedSortColumnsSearchText: action,
|
|
43
|
-
setAvailableSortColumnsSearchText: action,
|
|
44
|
-
availableSortColumnsSearchResults: computed,
|
|
45
|
-
selectedSortColumnsSearchResults: computed,
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
setAvailableSortColumns(val) {
|
|
49
|
-
this.availableSortColumns = val;
|
|
50
|
-
}
|
|
51
|
-
setSelectedSortColumns(val) {
|
|
52
|
-
this.selectedSortColumns = val;
|
|
53
|
-
}
|
|
54
|
-
setIsInitialized(val) {
|
|
55
|
-
this.isInitialized = val;
|
|
56
|
-
}
|
|
57
|
-
initialize() {
|
|
58
|
-
if (!this.isInitialized) {
|
|
59
|
-
this.selectedSortColumns =
|
|
60
|
-
this.dataCubeState.gridState.lastQueryTDSRequest?.sort.map((col) => new TDSSort(col.column, col.order)) ?? [];
|
|
61
|
-
this.availableSortColumns =
|
|
62
|
-
this.dataCubeState.gridState.columns
|
|
63
|
-
?.filter((col) => !this.selectedSortColumns.find((c) => c.column === col))
|
|
64
|
-
.map((col) => new TDSSort(col, TDS_SORT_ORDER.ASCENDING)) ?? [];
|
|
65
|
-
this.setIsInitialized(true);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
addAvailableSortColumn(columnName) {
|
|
69
|
-
const column = this.availableSortColumns.find((col) => col.column === columnName);
|
|
70
|
-
if (column) {
|
|
71
|
-
this.setAvailableSortColumns(this.availableSortColumns.filter((col) => col.column !== columnName));
|
|
72
|
-
this.setSelectedSortColumns(this.selectedSortColumns.concat(column));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
addSelectedSortColumn(columnName) {
|
|
76
|
-
const column = this.selectedSortColumns.find((col) => col.column === columnName);
|
|
77
|
-
if (column) {
|
|
78
|
-
this.setSelectedSortColumns(this.selectedSortColumns.filter((col) => col.column !== columnName));
|
|
79
|
-
this.setAvailableSortColumns(this.availableSortColumns.concat(column));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
addAllAvailableSortColumns() {
|
|
83
|
-
this.setSelectedSortColumns(this.selectedSortColumns.concat(this.availableSortColumns));
|
|
84
|
-
this.setAvailableSortColumns([]);
|
|
85
|
-
}
|
|
86
|
-
addAllSelectedSortColumns() {
|
|
87
|
-
this.setAvailableSortColumns(this.availableSortColumns.concat(this.selectedSortColumns));
|
|
88
|
-
this.setSelectedSortColumns([]);
|
|
89
|
-
}
|
|
90
|
-
applyChanges() {
|
|
91
|
-
if (this.dataCubeState.configState.gridApi) {
|
|
92
|
-
const columnDefs = this.dataCubeState.configState.gridApi.getColumnDefs();
|
|
93
|
-
this.selectedSortColumns.forEach((col) => {
|
|
94
|
-
const colDef = columnDefs?.find((cold) => 'colId' in cold && cold.colId === col.column);
|
|
95
|
-
if (colDef && 'sort' in colDef) {
|
|
96
|
-
colDef.sort = col.order === TDS_SORT_ORDER.ASCENDING ? 'asc' : 'desc';
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
this.dataCubeState.configState.gridApi.setGridOption('columnDefs', columnDefs);
|
|
100
|
-
this.dataCubeState.configState.gridApi.onSortChanged();
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
setAvailableSortColumnsSearchText(val) {
|
|
104
|
-
this.availableSortColumnsSearchText = val;
|
|
105
|
-
}
|
|
106
|
-
setSelectedSortColumnsSearchText(val) {
|
|
107
|
-
this.selectedSortColumnsSearchText = val;
|
|
108
|
-
}
|
|
109
|
-
get availableSortColumnsSearchResults() {
|
|
110
|
-
if (this.availableSortColumnsSearchText) {
|
|
111
|
-
return this.availableSortColumns.filter((col) => col.column
|
|
112
|
-
.toLowerCase()
|
|
113
|
-
.startsWith(this.availableSortColumnsSearchText.toLowerCase()));
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
return this.availableSortColumns;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
get selectedSortColumnsSearchResults() {
|
|
120
|
-
if (this.selectedSortColumnsSearchText) {
|
|
121
|
-
return this.selectedSortColumns.filter((col) => col.column
|
|
122
|
-
.toLowerCase()
|
|
123
|
-
.startsWith(this.selectedSortColumnsSearchText.toLowerCase()));
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
return this.selectedSortColumns;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
//# sourceMappingURL=HPivotAndSortPanelState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HPivotAndSortPanelState.js","sourceRoot":"","sources":["../../../src/stores/dataCube/HPivotAndSortPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAE9E,MAAM,OAAO,uBAAwB,SAAQ,kBAAkB;IAC7D,aAAa,GAAG,KAAK,CAAC;IACtB,oBAAoB,GAAc,EAAE,CAAC;IACrC,mBAAmB,GAAc,EAAE,CAAC;IACpC,8BAA8B,GAAG,EAAE,CAAC;IACpC,6BAA6B,GAAG,EAAE,CAAC;IAEnC,YAAY,aAA4B;QACtC,KAAK,CAAC,aAAa,CAAC,CAAC;QAErB,cAAc,CAAC,IAAI,EAAE;YACnB,aAAa,EAAE,UAAU;YACzB,oBAAoB,EAAE,UAAU;YAChC,mBAAmB,EAAE,UAAU;YAC/B,8BAA8B,EAAE,UAAU;YAC1C,6BAA6B,EAAE,UAAU;YACzC,uBAAuB,EAAE,MAAM;YAC/B,sBAAsB,EAAE,MAAM;YAC9B,gBAAgB,EAAE,MA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M;iBACP,WAAW,EAAE;iBACb,UAAU,CAAC,IAAI,CAAC,8BAA8B,CAAC,WAAW,EAAE,CAAC,CACjE,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,OAAO,IAAI,CAAC,oBAAoB,CAAC;QACnC,CAAC;IACH,CAAC;IAED,IAAI,gCAAgC;QAClC,IAAI,IAAI,CAAC,6BAA6B,EAAE,CAAC;YACvC,OAAO,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAC7C,GAAG,CAAC,MAAM;iBACP,WAAW,EAAE;iBACb,UAAU,CAAC,IAAI,CAAC,6BAA6B,CAAC,WAAW,EAAE,CAAC,CAChE,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,OAAO,IAAI,CAAC,mBAAmB,CAAC;QAClC,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,72 +0,0 @@
|
|
|
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
|
-
|
|
17
|
-
import { createRoot } from 'react-dom/client';
|
|
18
|
-
import {
|
|
19
|
-
type LegendApplicationConfig,
|
|
20
|
-
type LegendApplicationConfigurationInput,
|
|
21
|
-
LegendApplication,
|
|
22
|
-
ApplicationStoreProvider,
|
|
23
|
-
Core_LegendApplicationPlugin,
|
|
24
|
-
getApplicationRootElement,
|
|
25
|
-
} from '@finos/legend-application';
|
|
26
|
-
import {
|
|
27
|
-
LegendREPLGridClientApplicationConfig,
|
|
28
|
-
type LegendREPLGridClientApplicationConfigData,
|
|
29
|
-
} from './LegendREPLGridClientApplicationConfig.js';
|
|
30
|
-
import { LegendREPLGridClientPluginManager } from './LegendREPLGridClientPluginManager.js';
|
|
31
|
-
import { LegendREPLGridClientWebApplication } from '../components/LegendREPLGridClientApplication.js';
|
|
32
|
-
import { Core_LegendREPLGridClientApplicationPlugin } from '../components/Core_LegendREPLGridClientApplicationPlugin.js';
|
|
33
|
-
import type { LegendREPLGridClientApplicationStore } from '../stores/LegendREPLGridClientBaseStore.js';
|
|
34
|
-
|
|
35
|
-
export class LegendREPLGridClient extends LegendApplication {
|
|
36
|
-
declare config: LegendREPLGridClientApplicationConfig;
|
|
37
|
-
declare pluginManager: LegendREPLGridClientPluginManager;
|
|
38
|
-
|
|
39
|
-
static create(): LegendREPLGridClient {
|
|
40
|
-
const application = new LegendREPLGridClient(
|
|
41
|
-
LegendREPLGridClientPluginManager.create(),
|
|
42
|
-
);
|
|
43
|
-
application.withBasePlugins([
|
|
44
|
-
new Core_LegendApplicationPlugin(),
|
|
45
|
-
new Core_LegendREPLGridClientApplicationPlugin(),
|
|
46
|
-
]);
|
|
47
|
-
application.withBasePresets([]);
|
|
48
|
-
return application;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// TODO: we need a btter strategy to make this work with vscode code-server
|
|
52
|
-
// especially when handling static content such as config.json and version.json
|
|
53
|
-
// we need to balance out what we output in the HTML file, what we call in the app
|
|
54
|
-
// to fetch these files, as well as how we develop locally
|
|
55
|
-
// e.g. use something like `${window.location.href.split('/repl/')[0]}/repl/`
|
|
56
|
-
|
|
57
|
-
async configureApplication(
|
|
58
|
-
input: LegendApplicationConfigurationInput<LegendREPLGridClientApplicationConfigData>,
|
|
59
|
-
): Promise<LegendApplicationConfig> {
|
|
60
|
-
return new LegendREPLGridClientApplicationConfig(input);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
async loadApplication(
|
|
64
|
-
applicationStore: LegendREPLGridClientApplicationStore,
|
|
65
|
-
): Promise<void> {
|
|
66
|
-
createRoot(getApplicationRootElement()).render(
|
|
67
|
-
<ApplicationStoreProvider store={applicationStore}>
|
|
68
|
-
<LegendREPLGridClientWebApplication baseUrl={this.baseAddress} />
|
|
69
|
-
</ApplicationStoreProvider>,
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
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
|
-
|
|
17
|
-
import { AgGridReact, type AgGridReactProps } from '@ag-grid-community/react';
|
|
18
|
-
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
|
|
19
|
-
import { ModuleRegistry } from '@ag-grid-community/core';
|
|
20
|
-
import { ServerSideRowModelModule } from '@ag-grid-enterprise/server-side-row-model';
|
|
21
|
-
import { RowGroupingModule } from '@ag-grid-enterprise/row-grouping';
|
|
22
|
-
import { MenuModule } from '@ag-grid-enterprise/menu';
|
|
23
|
-
import { getDefaultColumnDefintions } from '../components/grid/GridUtils.js';
|
|
24
|
-
import { LicenseManager } from '@ag-grid-enterprise/core';
|
|
25
|
-
|
|
26
|
-
const communityModules = [ClientSideRowModelModule];
|
|
27
|
-
const enterpriseModules = [
|
|
28
|
-
ServerSideRowModelModule,
|
|
29
|
-
RowGroupingModule,
|
|
30
|
-
MenuModule,
|
|
31
|
-
];
|
|
32
|
-
const allModules = communityModules.concat(enterpriseModules);
|
|
33
|
-
|
|
34
|
-
export function AgGridComponent<TData = unknown>(
|
|
35
|
-
props: AgGridReactProps<TData> & {
|
|
36
|
-
licenseKey: string;
|
|
37
|
-
},
|
|
38
|
-
): JSX.Element {
|
|
39
|
-
if (props.licenseKey) {
|
|
40
|
-
LicenseManager.setLicenseKey(props.licenseKey);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return (
|
|
44
|
-
<AgGridReact
|
|
45
|
-
rowGroupPanelShow={'always'}
|
|
46
|
-
suppressBrowserResizeObserver={true}
|
|
47
|
-
suppressScrollOnNewData={true}
|
|
48
|
-
alwaysMultiSort={true}
|
|
49
|
-
rowModelType={'serverSide'}
|
|
50
|
-
{...props}
|
|
51
|
-
defaultColDef={getDefaultColumnDefintions()}
|
|
52
|
-
modules={allModules}
|
|
53
|
-
/>
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export const configureAgGridComponent = (): void => {
|
|
58
|
-
ModuleRegistry.registerModules([ClientSideRowModelModule, RowGroupingModule]);
|
|
59
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
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
|
-
|
|
17
|
-
import { createContext } from 'react';
|
|
18
|
-
import { useLocalObservable } from 'mobx-react-lite';
|
|
19
|
-
import {
|
|
20
|
-
ApplicationFrameworkProvider,
|
|
21
|
-
useApplicationStore,
|
|
22
|
-
} from '@finos/legend-application';
|
|
23
|
-
import type { LegendREPLGridClientPluginManager } from '../application/LegendREPLGridClientPluginManager.js';
|
|
24
|
-
import type { LegendREPLGridClientApplicationConfig } from '../application/LegendREPLGridClientApplicationConfig.js';
|
|
25
|
-
import {
|
|
26
|
-
type LegendREPLGridClientApplicationStore,
|
|
27
|
-
LegendREPLGridClientBaseStore,
|
|
28
|
-
} from '../stores/LegendREPLGridClientBaseStore.js';
|
|
29
|
-
|
|
30
|
-
export const useLegendREPLGridClientApplicationStore =
|
|
31
|
-
(): LegendREPLGridClientApplicationStore =>
|
|
32
|
-
useApplicationStore<
|
|
33
|
-
LegendREPLGridClientApplicationConfig,
|
|
34
|
-
LegendREPLGridClientPluginManager
|
|
35
|
-
>();
|
|
36
|
-
|
|
37
|
-
const LegendREPLGridClientBaseStoreContext = createContext<
|
|
38
|
-
LegendREPLGridClientBaseStore | undefined
|
|
39
|
-
>(undefined);
|
|
40
|
-
|
|
41
|
-
const LegendREPLGridClientBaseStoreProvider: React.FC<{
|
|
42
|
-
children: React.ReactNode;
|
|
43
|
-
}> = ({ children }) => {
|
|
44
|
-
const applicationStore = useLegendREPLGridClientApplicationStore();
|
|
45
|
-
const store = useLocalObservable(
|
|
46
|
-
() => new LegendREPLGridClientBaseStore(applicationStore),
|
|
47
|
-
);
|
|
48
|
-
return (
|
|
49
|
-
<LegendREPLGridClientBaseStoreContext.Provider value={store}>
|
|
50
|
-
{children}
|
|
51
|
-
</LegendREPLGridClientBaseStoreContext.Provider>
|
|
52
|
-
);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export const LegendREPLGridClientFrameworkProvider: React.FC<{
|
|
56
|
-
children: React.ReactNode;
|
|
57
|
-
}> = ({ children }) => (
|
|
58
|
-
<ApplicationFrameworkProvider>
|
|
59
|
-
<LegendREPLGridClientBaseStoreProvider>
|
|
60
|
-
{children}
|
|
61
|
-
</LegendREPLGridClientBaseStoreProvider>
|
|
62
|
-
</ApplicationFrameworkProvider>
|
|
63
|
-
);
|