@finos/legend-application-repl 0.0.28 → 0.0.29
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/grammar/datacube_filter__lexer.g4 +40 -0
- package/grammar/datacube_filter__parser.g4 +14 -0
- package/grammar/generateGrammar.js +43 -0
- package/grammar/parser/generated/datacube_filter__lexer.interp +59 -0
- package/grammar/parser/generated/datacube_filter__lexer.tokens +14 -0
- package/grammar/parser/generated/datacube_filter__lexer.ts +142 -0
- package/grammar/parser/generated/datacube_filter__parser.interp +38 -0
- package/grammar/parser/generated/datacube_filter__parser.tokens +14 -0
- package/grammar/parser/generated/datacube_filter__parser.ts +514 -0
- package/grammar/parser/parser.ts +55 -0
- package/lib/components/Core_LegendREPLApplicationPlugin.d.ts.map +1 -1
- package/lib/components/Core_LegendREPLApplicationPlugin.js +0 -7
- package/lib/components/Core_LegendREPLApplicationPlugin.js.map +1 -1
- package/lib/components/LegendREPLApplication.d.ts +0 -1
- package/lib/components/LegendREPLApplication.d.ts.map +1 -1
- package/lib/components/LegendREPLFrameworkProvider.d.ts +0 -1
- package/lib/components/LegendREPLFrameworkProvider.d.ts.map +1 -1
- package/lib/components/REPLStoreProvider.d.ts +1 -1
- package/lib/components/REPLStoreProvider.d.ts.map +1 -1
- package/lib/components/REPLStoreProvider.js +1 -1
- package/lib/components/REPLStoreProvider.js.map +1 -1
- package/lib/components/dataCube/DataCube.d.ts.map +1 -1
- package/lib/components/dataCube/DataCube.js +15 -4
- package/lib/components/dataCube/DataCube.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditor.d.ts +2 -4
- package/lib/components/dataCube/editor/DataCubeEditor.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditor.js +109 -32
- package/lib/components/dataCube/editor/DataCubeEditor.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.d.ts +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.js +178 -104
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.js.map +1 -1
- package/lib/components/dataCube/editor/{DataCubeEditorSortPanel.d.ts → DataCubeEditorColumnPropertiesPanel.d.ts} +2 -5
- package/lib/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.d.ts.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.js +27 -0
- package/lib/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.js.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorColumnsPanel.d.ts +19 -0
- package/lib/components/dataCube/editor/DataCubeEditorColumnsPanel.d.ts.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorColumnsPanel.js +27 -0
- package/lib/components/dataCube/editor/DataCubeEditorColumnsPanel.js.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorColumnsSelector.d.ts +22 -0
- package/lib/components/dataCube/editor/DataCubeEditorColumnsSelector.d.ts.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorColumnsSelector.js +230 -0
- package/lib/components/dataCube/editor/DataCubeEditorColumnsSelector.js.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.d.ts +19 -0
- package/lib/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.d.ts.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.js +27 -0
- package/lib/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.js.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorFilterPanel.d.ts +19 -0
- package/lib/components/dataCube/editor/DataCubeEditorFilterPanel.d.ts.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorFilterPanel.js +27 -0
- package/lib/components/dataCube/editor/DataCubeEditorFilterPanel.js.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.d.ts +19 -0
- package/lib/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.d.ts.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.js +27 -0
- package/lib/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.js.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorHPivotsPanel.d.ts +19 -0
- package/lib/components/dataCube/editor/DataCubeEditorHPivotsPanel.d.ts.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorHPivotsPanel.js +27 -0
- package/lib/components/dataCube/editor/DataCubeEditorHPivotsPanel.js.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorSortsPanel.d.ts +19 -0
- package/lib/components/dataCube/editor/DataCubeEditorSortsPanel.d.ts.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorSortsPanel.js +26 -0
- package/lib/components/dataCube/editor/DataCubeEditorSortsPanel.js.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorVPivotsPanel.d.ts +19 -0
- package/lib/components/dataCube/editor/DataCubeEditorVPivotsPanel.d.ts.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorVPivotsPanel.js +27 -0
- package/lib/components/dataCube/editor/DataCubeEditorVPivotsPanel.js.map +1 -0
- package/lib/components/dataCube/grid/DataCubeGrid.d.ts +1 -4
- package/lib/components/dataCube/grid/DataCubeGrid.d.ts.map +1 -1
- package/lib/components/dataCube/grid/DataCubeGrid.js +75 -30
- package/lib/components/dataCube/grid/DataCubeGrid.js.map +1 -1
- package/lib/grammar/generated/datacube_filter__lexer.d.ts +31 -0
- package/lib/grammar/generated/datacube_filter__lexer.js +118 -0
- package/lib/grammar/generated/datacube_filter__parser.d.ts +91 -0
- package/lib/grammar/generated/datacube_filter__parser.js +485 -0
- package/lib/grammar/parser.d.ts +16 -0
- package/lib/grammar/parser.js +39 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +9 -6
- package/lib/server/REPLServerClient.d.ts +2 -3
- package/lib/server/REPLServerClient.d.ts.map +1 -1
- package/lib/server/models/DataCubeEngineModels.d.ts +8 -1
- package/lib/server/models/DataCubeEngineModels.d.ts.map +1 -1
- package/lib/server/models/DataCubeEngineModels.js +13 -0
- package/lib/server/models/DataCubeEngineModels.js.map +1 -1
- package/lib/stores/dataCube/DataCubeDefaultConfig.d.ts +17 -0
- package/lib/stores/dataCube/DataCubeDefaultConfig.d.ts.map +1 -0
- package/lib/stores/dataCube/DataCubeDefaultConfig.js +17 -0
- package/lib/stores/dataCube/DataCubeDefaultConfig.js.map +1 -0
- package/lib/stores/dataCube/DataCubeState.d.ts +6 -6
- package/lib/stores/dataCube/DataCubeState.d.ts.map +1 -1
- package/lib/stores/dataCube/DataCubeState.js +18 -14
- package/lib/stores/dataCube/DataCubeState.js.map +1 -1
- package/lib/stores/dataCube/{DataCubeStore.d.ts → REPLStore.d.ts} +1 -1
- package/lib/stores/dataCube/REPLStore.d.ts.map +1 -0
- package/lib/stores/dataCube/{DataCubeStore.js → REPLStore.js} +1 -1
- package/lib/stores/dataCube/REPLStore.js.map +1 -0
- package/lib/stores/dataCube/core/DataCubeCoreState.d.ts +29 -0
- package/lib/stores/dataCube/core/DataCubeCoreState.d.ts.map +1 -0
- package/lib/stores/dataCube/core/DataCubeCoreState.js +46 -0
- package/lib/stores/dataCube/core/DataCubeCoreState.js.map +1 -0
- package/lib/stores/dataCube/core/DataCubeEngine.d.ts +2 -3
- package/lib/stores/dataCube/core/DataCubeEngine.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeEngine.js +2 -3
- package/lib/stores/dataCube/core/DataCubeEngine.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.d.ts +27 -3
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.js +210 -278
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQueryEngine.d.ts +72 -0
- package/lib/stores/dataCube/core/DataCubeQueryEngine.d.ts.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQueryEngine.js +67 -0
- package/lib/stores/dataCube/core/DataCubeQueryEngine.js.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.d.ts +73 -38
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.js +101 -40
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.d.ts +32 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.d.ts.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.js +232 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.js.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotManager.d.ts +8 -2
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotManager.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotManager.js +20 -5
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotManager.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.d.ts +8 -3
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.js +8 -4
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.js.map +1 -1
- package/lib/stores/dataCube/editor/{DataCubeEditorCodeState.d.ts → DataCubeEditorCodePanelState.d.ts} +6 -5
- package/lib/stores/dataCube/editor/DataCubeEditorCodePanelState.d.ts.map +1 -0
- package/lib/stores/dataCube/editor/{DataCubeEditorCodeState.js → DataCubeEditorCodePanelState.js} +7 -7
- package/lib/stores/dataCube/editor/DataCubeEditorCodePanelState.js.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorColumnsSelectorState.d.ts +30 -0
- package/lib/stores/dataCube/editor/DataCubeEditorColumnsSelectorState.d.ts.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorColumnsSelectorState.js +51 -0
- package/lib/stores/dataCube/editor/DataCubeEditorColumnsSelectorState.js.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts +29 -0
- package/lib/stores/dataCube/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorGeneralPropertiesPanelState.js +63 -0
- package/lib/stores/dataCube/editor/DataCubeEditorGeneralPropertiesPanelState.js.map +1 -0
- package/lib/stores/dataCube/editor/{DataCubeEditorQuerySnapshotBuilder.d.ts → DataCubeEditorPanelState.d.ts} +2 -2
- package/lib/stores/dataCube/editor/DataCubeEditorPanelState.d.ts.map +1 -0
- package/lib/stores/dataCube/editor/{DataCubeEditorQuerySnapshotBuilder.js → DataCubeEditorPanelState.js} +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorPanelState.js.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorSortsPanelState.d.ts +34 -0
- package/lib/stores/dataCube/editor/DataCubeEditorSortsPanelState.d.ts.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorSortsPanelState.js +67 -0
- package/lib/stores/dataCube/editor/DataCubeEditorSortsPanelState.js.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts +10 -7
- package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorState.js +25 -17
- package/lib/stores/dataCube/editor/DataCubeEditorState.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.d.ts +13 -7
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js +87 -86
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridQueryBuilder.d.ts +20 -0
- package/lib/stores/dataCube/grid/DataCubeGridQueryBuilder.d.ts.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridQueryBuilder.js +103 -0
- package/lib/stores/dataCube/grid/DataCubeGridQueryBuilder.js.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.d.ts +7 -1
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.js +121 -214
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.d.ts +25 -0
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.d.ts.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.js +83 -0
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.js.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridState.d.ts +6 -5
- package/lib/stores/dataCube/grid/DataCubeGridState.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridState.js +32 -10
- package/lib/stores/dataCube/grid/DataCubeGridState.js.map +1 -1
- package/package.json +15 -12
- package/src/components/Core_LegendREPLApplicationPlugin.tsx +0 -7
- package/src/components/REPLStoreProvider.tsx +1 -1
- package/src/components/dataCube/DataCube.tsx +51 -29
- package/src/components/dataCube/editor/DataCubeEditor.tsx +204 -95
- package/src/components/dataCube/editor/DataCubeEditorCodePanel.tsx +186 -190
- package/src/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.tsx +42 -0
- package/src/components/dataCube/editor/DataCubeEditorColumnsPanel.tsx +41 -0
- package/src/components/dataCube/editor/DataCubeEditorColumnsSelector.tsx +408 -0
- package/src/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.tsx +41 -0
- package/src/components/dataCube/editor/DataCubeEditorFilterPanel.tsx +41 -0
- package/src/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.tsx +48 -0
- package/src/components/dataCube/editor/DataCubeEditorHPivotsPanel.tsx +41 -0
- package/src/components/dataCube/editor/DataCubeEditorSortsPanel.tsx +41 -0
- package/src/components/dataCube/editor/DataCubeEditorVPivotsPanel.tsx +41 -0
- package/src/components/dataCube/grid/DataCubeGrid.tsx +134 -43
- package/src/server/REPLServerClient.ts +2 -2
- package/src/server/models/DataCubeEngineModels.ts +23 -1
- package/{lib/grid.css → src/stores/dataCube/DataCubeDefaultConfig.ts} +2 -2
- package/src/stores/dataCube/DataCubeState.ts +26 -20
- package/src/stores/dataCube/core/DataCubeCoreState.ts +57 -0
- package/src/stores/dataCube/core/DataCubeEngine.ts +6 -4
- package/src/stores/dataCube/core/DataCubeQueryBuilder.ts +349 -353
- package/src/stores/dataCube/core/DataCubeQueryEngine.ts +90 -0
- package/src/stores/dataCube/core/DataCubeQuerySnapshot.ts +168 -156
- package/src/stores/dataCube/core/DataCubeQuerySnapshotBuilder.ts +398 -0
- package/src/stores/dataCube/core/DataCubeQuerySnapshotManager.ts +37 -5
- package/src/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.ts +13 -5
- package/src/stores/dataCube/editor/{DataCubeEditorCodeState.ts → DataCubeEditorCodePanelState.ts} +6 -6
- package/src/stores/dataCube/editor/DataCubeEditorColumnsSelectorState.ts +61 -0
- package/src/stores/dataCube/editor/DataCubeEditorGeneralPropertiesPanelState.ts +80 -0
- package/src/stores/dataCube/editor/{DataCubeEditorQuerySnapshotBuilder.ts → DataCubeEditorPanelState.ts} +1 -1
- package/src/stores/dataCube/editor/DataCubeEditorSortsPanelState.ts +116 -0
- package/src/stores/dataCube/editor/DataCubeEditorState.ts +29 -20
- package/src/stores/dataCube/grid/DataCubeGridClientEngine.ts +96 -128
- package/src/stores/dataCube/grid/DataCubeGridQueryBuilder.ts +154 -0
- package/src/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.tsx +191 -0
- package/src/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.ts +127 -0
- package/src/stores/dataCube/grid/DataCubeGridState.ts +41 -14
- package/tsconfig.json +23 -9
- package/lib/components/dataCube/editor/DataCubeEditorSortPanel.d.ts.map +0 -1
- package/lib/components/dataCube/editor/DataCubeEditorSortPanel.js +0 -61
- package/lib/components/dataCube/editor/DataCubeEditorSortPanel.js.map +0 -1
- package/lib/grid.css.map +0 -1
- package/lib/repl.css +0 -17
- package/lib/repl.css.map +0 -1
- package/lib/stores/dataCube/DataCubeMetaModelConst.d.ts +0 -63
- package/lib/stores/dataCube/DataCubeMetaModelConst.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubeMetaModelConst.js +0 -72
- package/lib/stores/dataCube/DataCubeMetaModelConst.js.map +0 -1
- package/lib/stores/dataCube/DataCubeStore.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubeStore.js.map +0 -1
- package/lib/stores/dataCube/core/DataCubeQueryAnalyzer.d.ts +0 -37
- package/lib/stores/dataCube/core/DataCubeQueryAnalyzer.d.ts.map +0 -1
- package/lib/stores/dataCube/core/DataCubeQueryAnalyzer.js +0 -269
- package/lib/stores/dataCube/core/DataCubeQueryAnalyzer.js.map +0 -1
- package/lib/stores/dataCube/editor/DataCubeEditorCodeState.d.ts.map +0 -1
- package/lib/stores/dataCube/editor/DataCubeEditorCodeState.js.map +0 -1
- package/lib/stores/dataCube/editor/DataCubeEditorQuerySnapshotBuilder.d.ts.map +0 -1
- package/lib/stores/dataCube/editor/DataCubeEditorQuerySnapshotBuilder.js.map +0 -1
- package/lib/stores/dataCube/editor/DataCubeEditorSortState.d.ts +0 -46
- package/lib/stores/dataCube/editor/DataCubeEditorSortState.d.ts.map +0 -1
- package/lib/stores/dataCube/editor/DataCubeEditorSortState.js +0 -133
- package/lib/stores/dataCube/editor/DataCubeEditorSortState.js.map +0 -1
- package/src/components/dataCube/editor/DataCubeEditorSortPanel.tsx +0 -274
- package/src/stores/dataCube/DataCubeMetaModelConst.ts +0 -76
- package/src/stores/dataCube/core/DataCubeQueryAnalyzer.ts +0 -424
- package/src/stores/dataCube/editor/DataCubeEditorSortState.ts +0 -198
- package/src/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.ts +0 -281
- /package/src/stores/dataCube/{DataCubeStore.ts → REPLStore.ts} +0 -0
|
@@ -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 DataCubeEditorSortsPanel: (() => import("react/jsx-runtime").JSX.Element) & {
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=DataCubeEditorSortsPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorSortsPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditorSortsPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,eAAO,MAAM,wBAAwB;;CAmBnC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { DataCubeIcon } from '@finos/legend-art';
|
|
19
|
+
import { useREPLStore } from '../../REPLStoreProvider.js';
|
|
20
|
+
import { DataCubeEditorColumnsSelector } from './DataCubeEditorColumnsSelector.js';
|
|
21
|
+
export const DataCubeEditorSortsPanel = observer(() => {
|
|
22
|
+
const replStore = useREPLStore();
|
|
23
|
+
const panel = replStore.dataCubeState.editor.sortsPanel;
|
|
24
|
+
return (_jsxs("div", { className: "data-cube-column-selector h-full w-full p-2", children: [_jsxs("div", { className: "flex h-6", children: [_jsx("div", { className: "flex h-6 items-center text-xl font-medium", children: _jsx(DataCubeIcon.TableSort, {}) }), _jsx("div", { className: "ml-1 flex h-6 items-center text-xl font-medium", children: "Sorts" })] }), _jsx("div", { className: "flex h-[calc(100%_-_24px)] w-full", children: _jsx(DataCubeEditorColumnsSelector, { selector: panel.columnsSelector }) })] }));
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=DataCubeEditorSortsPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorSortsPanel.js","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditorSortsPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF,MAAM,CAAC,MAAM,wBAAwB,GAAG,QAAQ,CAAC,GAAG,EAAE;IACpD,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,KAAK,GAAG,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC;IAExD,OAAO,CACL,eAAK,SAAS,EAAC,6CAA6C,aAC1D,eAAK,SAAS,EAAC,UAAU,aACvB,cAAK,SAAS,EAAC,2CAA2C,YACxD,KAAC,YAAY,CAAC,SAAS,KAAG,GACtB,EACN,cAAK,SAAS,EAAC,gDAAgD,sBAEzD,IACF,EACN,cAAK,SAAS,EAAC,mCAAmC,YAChD,KAAC,6BAA6B,IAAC,QAAQ,EAAE,KAAK,CAAC,eAAe,GAAI,GAC9D,IACF,CACP,CAAC;AACJ,CAAC,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 DataCubeEditorVPivotsPanel: (() => import("react/jsx-runtime").JSX.Element) & {
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=DataCubeEditorVPivotsPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorVPivotsPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditorVPivotsPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,eAAO,MAAM,0BAA0B;;CAmBrC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { DataCubeIcon } from '@finos/legend-art';
|
|
18
|
+
import { observer } from 'mobx-react-lite';
|
|
19
|
+
import { useREPLStore } from '../../REPLStoreProvider.js';
|
|
20
|
+
import { useEffect } from 'react';
|
|
21
|
+
export const DataCubeEditorVPivotsPanel = observer(() => {
|
|
22
|
+
const replStore = useREPLStore();
|
|
23
|
+
const panel = replStore.dataCubeState.editor.sortsPanel;
|
|
24
|
+
useEffect(() => { }, [panel]); // TODO: @akphi - remove this dummy useEffect
|
|
25
|
+
return (_jsxs("div", { className: "data-cube-column-selector h-full w-full p-2", children: [_jsxs("div", { className: "flex h-6", children: [_jsx("div", { className: "flex h-6 items-center text-xl font-medium", children: _jsx(DataCubeIcon.TableGroupBy, {}) }), _jsx("div", { className: "ml-1 flex h-6 items-center text-xl font-medium", children: "Vertical Pivots" })] }), _jsx("div", { className: "flex h-[calc(100%_-_24px)] w-full" })] }));
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=DataCubeEditorVPivotsPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorVPivotsPanel.js","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditorVPivotsPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,CAAC,MAAM,0BAA0B,GAAG,QAAQ,CAAC,GAAG,EAAE;IACtD,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,KAAK,GAAG,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC;IAExD,SAAS,CAAC,GAAG,EAAE,GAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,6CAA6C;IAE3E,OAAO,CACL,eAAK,SAAS,EAAC,6CAA6C,aAC1D,eAAK,SAAS,EAAC,UAAU,aACvB,cAAK,SAAS,EAAC,2CAA2C,YACxD,KAAC,YAAY,CAAC,YAAY,KAAG,GACzB,EACN,cAAK,SAAS,EAAC,gDAAgD,gCAEzD,IACF,EACN,cAAK,SAAS,EAAC,mCAAmC,GAAO,IACrD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -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
|
-
|
|
17
|
-
export declare const DataCubeGrid: ((props: {
|
|
18
|
-
editorStore: REPLStore;
|
|
19
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
|
16
|
+
export declare const DataCubeGrid: (() => import("react/jsx-runtime").JSX.Element) & {
|
|
20
17
|
displayName: string;
|
|
21
18
|
};
|
|
22
19
|
//# sourceMappingURL=DataCubeGrid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/dataCube/grid/DataCubeGrid.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DataCubeGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/dataCube/grid/DataCubeGrid.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA4BH,eAAO,MAAM,YAAY;;CA+HvB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
4
|
*
|
|
@@ -21,39 +21,84 @@ import { ServerSideRowModelModule } from '@ag-grid-enterprise/server-side-row-mo
|
|
|
21
21
|
import { RowGroupingModule } from '@ag-grid-enterprise/row-grouping';
|
|
22
22
|
import { MenuModule } from '@ag-grid-enterprise/menu';
|
|
23
23
|
import { AgGridReact } from '@ag-grid-community/react';
|
|
24
|
-
import { useEffect } from 'react';
|
|
24
|
+
import { useEffect, useState } from 'react';
|
|
25
|
+
import { useREPLStore } from '../../REPLStoreProvider.js';
|
|
26
|
+
import { DataCubeIcon, Switch, cn } from '@finos/legend-art';
|
|
27
|
+
import { INTERNAL__GRID_CLIENT_HEADER_HEIGHT, INTERNAL__GRID_CLIENT_ROW_BUFFER, INTERNAL__GRID_CLIENT_ROW_HEIGHT, } from '../../../stores/dataCube/grid/DataCubeGridClientEngine.js';
|
|
25
28
|
// NOTE: This is a workaround to prevent ag-grid license key check from flooding the console screen
|
|
26
29
|
// with its stack trace in Chrome.
|
|
27
|
-
// We MUST NEVER completely surpress this warning, else it's a violation of the ag-grid license
|
|
30
|
+
// We MUST NEVER completely surpress this warning in production, else it's a violation of the ag-grid license!
|
|
31
|
+
// See https://www.ag-grid.com/javascript-data-grid/licensing/
|
|
28
32
|
const __INTERNAL__original_console_error = console.error; // eslint-disable-line no-console
|
|
29
|
-
// eslint-disable-next-line no-
|
|
30
|
-
|
|
31
|
-
// eslint-disable-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
const dataCubeState = editorStore.dataCubeState;
|
|
33
|
+
// eslint-disable-next-line no-console
|
|
34
|
+
console.error = (message, ...agrs) => {
|
|
35
|
+
console.log(`%c ${message}`, 'color: silver'); // eslint-disable-line no-console
|
|
36
|
+
};
|
|
37
|
+
export const DataCubeGrid = observer(() => {
|
|
38
|
+
const replStore = useREPLStore();
|
|
39
|
+
const dataCubeState = replStore.dataCubeState;
|
|
40
|
+
const grid = dataCubeState.grid;
|
|
41
|
+
const [scrollHintText, setScrollHintText] = useState('');
|
|
39
42
|
useEffect(() => {
|
|
40
|
-
if (
|
|
41
|
-
LicenseManager.setLicenseKey(
|
|
43
|
+
if (grid.clientLicenseKey) {
|
|
44
|
+
LicenseManager.setLicenseKey(grid.clientLicenseKey);
|
|
42
45
|
}
|
|
43
|
-
}, [
|
|
44
|
-
return (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
}, [grid.clientLicenseKey]);
|
|
47
|
+
return (_jsxs("div", { className: "data-cube-grid flex-1", children: [_jsx("div", { className: "h-[calc(100%_-_20px)] w-full", children: _jsx(AgGridReact, { className: "ag-theme-balham", modules: [
|
|
48
|
+
// community
|
|
49
|
+
ClientSideRowModelModule,
|
|
50
|
+
// enterprise
|
|
51
|
+
ServerSideRowModelModule,
|
|
52
|
+
RowGroupingModule,
|
|
53
|
+
MenuModule,
|
|
54
|
+
], onGridReady: (params) => {
|
|
55
|
+
grid.configureClient(params.api);
|
|
56
|
+
// restore original error logging
|
|
57
|
+
console.error = __INTERNAL__original_console_error; // eslint-disable-line no-console
|
|
58
|
+
},
|
|
59
|
+
// -------------------------------------- ROW GROUPING --------------------------------------
|
|
60
|
+
rowGroupPanelShow: "always", suppressScrollOnNewData: true, groupDisplayType: "custom" // keeps the column set stable even when row grouping is used
|
|
61
|
+
, suppressRowGroupHidesColumns: true,
|
|
62
|
+
// -------------------------------------- PIVOT --------------------------------------
|
|
63
|
+
// pivotPanelShow="always"
|
|
64
|
+
// pivotMode={true}
|
|
65
|
+
// -------------------------------------- SERVER SIDE ROW MODEL --------------------------------------
|
|
66
|
+
rowModelType: "serverSide", serverSideDatasource: grid.clientDataSource,
|
|
67
|
+
// -------------------------------------- GENERIC --------------------------------------
|
|
68
|
+
suppressBrowserResizeObserver: true, animateRows: false,
|
|
69
|
+
// NOTE: since we shrink the spacing, more rows can be shown, as such, setting higher row
|
|
70
|
+
// buffer will improve scrolling performance, but compromise initial load and various
|
|
71
|
+
// actions performance
|
|
72
|
+
rowBuffer: INTERNAL__GRID_CLIENT_ROW_BUFFER, rowHeight: INTERNAL__GRID_CLIENT_ROW_HEIGHT, headerHeight: INTERNAL__GRID_CLIENT_HEADER_HEIGHT,
|
|
73
|
+
// Force multi-sorting since this is what the query supports anyway
|
|
74
|
+
alwaysMultiSort: true,
|
|
75
|
+
// Keeps the columns stable even when aggregation is used
|
|
76
|
+
suppressAggFuncInHeader: true,
|
|
77
|
+
// Show cursor position when scrolling
|
|
78
|
+
onBodyScroll: (event) => {
|
|
79
|
+
const rowCount = event.api.getDisplayedRowCount();
|
|
80
|
+
const range = event.api.getVerticalPixelRange();
|
|
81
|
+
const start = Math.max(1, Math.ceil(range.top / INTERNAL__GRID_CLIENT_ROW_HEIGHT) + 1);
|
|
82
|
+
const end = Math.min(rowCount, Math.floor(range.bottom / INTERNAL__GRID_CLIENT_ROW_HEIGHT));
|
|
83
|
+
setScrollHintText(`${start}-${end}/${rowCount}`);
|
|
84
|
+
}, onBodyScrollEnd: () => setScrollHintText('') }) }), _jsxs("div", { className: "relative flex h-5 w-full justify-between border-b border-b-neutral-200 bg-neutral-100", children: [Boolean(scrollHintText) && (_jsxs("div", { className: "absolute -top-8 right-4 flex items-center rounded-sm border border-neutral-300 bg-neutral-100 p-1 pr-2 text-neutral-500 shadow-sm", children: [_jsx(DataCubeIcon.TableScroll, { className: "text-lg" }), _jsx("div", { className: "ml-1 font-mono text-sm", children: scrollHintText })] })), _jsx("div", {}), _jsxs("div", { className: "flex items-center", children: [_jsx("div", { className: "select-none p-2 font-mono text-sm text-neutral-500", children: grid.clientDataSource.rowCount
|
|
85
|
+
? `(${grid.clientDataSource.rowCount} rows)`
|
|
86
|
+
: '' }), _jsx("div", { className: "h-3 w-[1px] bg-neutral-200" }), _jsxs("button", { className: "flex h-full items-center p-2", onClick: () => grid.setPaginationEnabled(!grid.isPaginationEnabled), children: [_jsx(Switch, { checked: grid.isPaginationEnabled, classes: {
|
|
87
|
+
root: 'p-0 w-6 h-5 flex items-center',
|
|
88
|
+
input: 'w-2',
|
|
89
|
+
checked: '!translate-x-2 ease-in-out duration-100 transition',
|
|
90
|
+
thumb: cn('w-2 h-2', {
|
|
91
|
+
'bg-sky-600': grid.isPaginationEnabled,
|
|
92
|
+
'bg-neutral-500': !grid.isPaginationEnabled,
|
|
93
|
+
}),
|
|
94
|
+
switchBase: 'p-0.5 mt-1 translate-x-0 ease-in-out duration-100 transition',
|
|
95
|
+
track: cn('h-3 w-5 border', {
|
|
96
|
+
'!bg-sky-100 border-sky-600': grid.isPaginationEnabled,
|
|
97
|
+
'!bg-neutral-100 border-neutral-500': !grid.isPaginationEnabled,
|
|
98
|
+
}),
|
|
99
|
+
}, disableRipple: true, disableFocusRipple: true }), _jsx("div", { className: cn('text-sm', {
|
|
100
|
+
'text-sky-600': grid.isPaginationEnabled,
|
|
101
|
+
'text-neutral-500': !grid.isPaginationEnabled,
|
|
102
|
+
}), children: "Pagination" })] })] })] })] }));
|
|
58
103
|
});
|
|
59
104
|
//# sourceMappingURL=DataCubeGrid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeGrid.js","sourceRoot":"","sources":["../../../../src/components/dataCube/grid/DataCubeGrid.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"DataCubeGrid.js","sourceRoot":"","sources":["../../../../src/components/dataCube/grid/DataCubeGrid.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ATN, CharStream, DFA, Lexer } from "antlr4";
|
|
2
|
+
export default class datacube_filter__lexer extends Lexer {
|
|
3
|
+
static readonly OPERATOR = 1;
|
|
4
|
+
static readonly GROUP_OPERATOR_AND = 2;
|
|
5
|
+
static readonly GROUP_OPERATOR_OR = 3;
|
|
6
|
+
static readonly GROUP_OPEN = 4;
|
|
7
|
+
static readonly GROUP_CLOSE = 5;
|
|
8
|
+
static readonly NUMBER = 6;
|
|
9
|
+
static readonly STRING = 7;
|
|
10
|
+
static readonly COLUMN = 8;
|
|
11
|
+
static readonly IDENTIFIER = 9;
|
|
12
|
+
static readonly WHITESPACE = 10;
|
|
13
|
+
static readonly EOF: number;
|
|
14
|
+
static readonly channelNames: string[];
|
|
15
|
+
static readonly literalNames: (string | null)[];
|
|
16
|
+
static readonly symbolicNames: (string | null)[];
|
|
17
|
+
static readonly modeNames: string[];
|
|
18
|
+
static readonly ruleNames: string[];
|
|
19
|
+
constructor(input: CharStream);
|
|
20
|
+
get grammarFileName(): string;
|
|
21
|
+
get literalNames(): (string | null)[];
|
|
22
|
+
get symbolicNames(): (string | null)[];
|
|
23
|
+
get ruleNames(): string[];
|
|
24
|
+
get serializedATN(): number[];
|
|
25
|
+
get channelNames(): string[];
|
|
26
|
+
get modeNames(): string[];
|
|
27
|
+
static readonly _serializedATN: number[];
|
|
28
|
+
private static __ATN;
|
|
29
|
+
static get _ATN(): ATN;
|
|
30
|
+
static DecisionsToDFA: DFA[];
|
|
31
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// Generated from /Users/blacksteed232/Developer/legend/studio/packages/legend-application-repl/grammar/datacube_filter__lexer.g4 by ANTLR 4.13.1
|
|
2
|
+
// noinspection ES6UnusedImports,JSUnusedGlobalSymbols,JSUnusedLocalSymbols
|
|
3
|
+
import { ATNDeserializer, DFA, Lexer, LexerATNSimulator, PredictionContextCache, Token } from "antlr4";
|
|
4
|
+
export default class datacube_filter__lexer extends Lexer {
|
|
5
|
+
static OPERATOR = 1;
|
|
6
|
+
static GROUP_OPERATOR_AND = 2;
|
|
7
|
+
static GROUP_OPERATOR_OR = 3;
|
|
8
|
+
static GROUP_OPEN = 4;
|
|
9
|
+
static GROUP_CLOSE = 5;
|
|
10
|
+
static NUMBER = 6;
|
|
11
|
+
static STRING = 7;
|
|
12
|
+
static COLUMN = 8;
|
|
13
|
+
static IDENTIFIER = 9;
|
|
14
|
+
static WHITESPACE = 10;
|
|
15
|
+
static EOF = Token.EOF;
|
|
16
|
+
static channelNames = ["DEFAULT_TOKEN_CHANNEL", "HIDDEN"];
|
|
17
|
+
static literalNames = [null, null,
|
|
18
|
+
"'&&'", "'||'",
|
|
19
|
+
"'('", "')'"];
|
|
20
|
+
static symbolicNames = [null, "OPERATOR",
|
|
21
|
+
"GROUP_OPERATOR_AND",
|
|
22
|
+
"GROUP_OPERATOR_OR",
|
|
23
|
+
"GROUP_OPEN",
|
|
24
|
+
"GROUP_CLOSE",
|
|
25
|
+
"NUMBER", "STRING",
|
|
26
|
+
"COLUMN", "IDENTIFIER",
|
|
27
|
+
"WHITESPACE"];
|
|
28
|
+
static modeNames = ["DEFAULT_MODE",];
|
|
29
|
+
static ruleNames = [
|
|
30
|
+
"Whitespace", "Identifier", "Letter", "Digit", "HexDigit", "UnicodeEsc",
|
|
31
|
+
"Esc", "StringEscSeq", "String", "Number", "ColumnEscSeq", "Column", "OPERATOR",
|
|
32
|
+
"GROUP_OPERATOR_AND", "GROUP_OPERATOR_OR", "GROUP_OPEN", "GROUP_CLOSE",
|
|
33
|
+
"NUMBER", "STRING", "COLUMN", "IDENTIFIER", "WHITESPACE",
|
|
34
|
+
];
|
|
35
|
+
constructor(input) {
|
|
36
|
+
super(input);
|
|
37
|
+
this._interp = new LexerATNSimulator(this, datacube_filter__lexer._ATN, datacube_filter__lexer.DecisionsToDFA, new PredictionContextCache());
|
|
38
|
+
}
|
|
39
|
+
get grammarFileName() { return "datacube_filter__lexer.g4"; }
|
|
40
|
+
get literalNames() { return datacube_filter__lexer.literalNames; }
|
|
41
|
+
get symbolicNames() { return datacube_filter__lexer.symbolicNames; }
|
|
42
|
+
get ruleNames() { return datacube_filter__lexer.ruleNames; }
|
|
43
|
+
get serializedATN() { return datacube_filter__lexer._serializedATN; }
|
|
44
|
+
get channelNames() { return datacube_filter__lexer.channelNames; }
|
|
45
|
+
get modeNames() { return datacube_filter__lexer.modeNames; }
|
|
46
|
+
static _serializedATN = [4, 0, 10, 186, 6, -1, 2, 0,
|
|
47
|
+
7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9,
|
|
48
|
+
7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7,
|
|
49
|
+
16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 1, 0, 4, 0, 47, 8, 0, 11,
|
|
50
|
+
0, 12, 0, 48, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 55, 8, 1, 10, 1, 12, 1, 58, 9, 1, 1, 1, 1, 1, 3, 1, 62, 8,
|
|
51
|
+
1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 75, 8, 5, 3, 5, 77, 8, 5, 3, 5,
|
|
52
|
+
79, 8, 5, 3, 5, 81, 8, 5, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 90, 8, 7, 1, 8, 1, 8, 1, 8, 5,
|
|
53
|
+
8, 95, 8, 8, 10, 8, 12, 8, 98, 9, 8, 1, 8, 1, 8, 1, 9, 5, 9, 103, 8, 9, 10, 9, 12, 9, 106, 9, 9, 1, 9,
|
|
54
|
+
1, 9, 4, 9, 110, 8, 9, 11, 9, 12, 9, 111, 1, 9, 4, 9, 115, 8, 9, 11, 9, 12, 9, 116, 3, 9, 119, 8, 9,
|
|
55
|
+
1, 9, 1, 9, 3, 9, 123, 8, 9, 1, 9, 4, 9, 126, 8, 9, 11, 9, 12, 9, 127, 3, 9, 130, 8, 9, 1, 10, 1, 10,
|
|
56
|
+
1, 10, 1, 10, 1, 10, 3, 10, 137, 8, 10, 1, 11, 1, 11, 1, 11, 5, 11, 142, 8, 11, 10, 11, 12, 11, 145,
|
|
57
|
+
9, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3,
|
|
58
|
+
12, 160, 8, 12, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 16, 1, 16, 1, 17, 1, 17,
|
|
59
|
+
1, 18, 1, 18, 1, 19, 1, 19, 1, 20, 1, 20, 1, 21, 4, 21, 181, 8, 21, 11, 21, 12, 21, 182, 1, 21, 1,
|
|
60
|
+
21, 0, 0, 22, 1, 0, 3, 0, 5, 0, 7, 0, 9, 0, 11, 0, 13, 0, 15, 0, 17, 0, 19, 0, 21, 0, 23, 0, 25, 1, 27,
|
|
61
|
+
2, 29, 3, 31, 4, 33, 5, 35, 6, 37, 7, 39, 8, 41, 9, 43, 10, 1, 0, 11, 3, 0, 9, 10, 13, 13, 32, 32,
|
|
62
|
+
2, 0, 65, 90, 97, 122, 1, 0, 48, 57, 3, 0, 48, 57, 65, 70, 97, 102, 8, 0, 34, 34, 39, 39, 92, 92,
|
|
63
|
+
98, 98, 102, 102, 110, 110, 114, 114, 116, 116, 4, 0, 10, 10, 13, 13, 34, 34, 92, 92, 2, 0, 69,
|
|
64
|
+
69, 101, 101, 2, 0, 43, 43, 45, 45, 6, 0, 91, 93, 98, 98, 102, 102, 110, 110, 114, 114, 116,
|
|
65
|
+
116, 3, 0, 10, 10, 13, 13, 91, 93, 2, 0, 60, 60, 62, 62, 205, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0,
|
|
66
|
+
0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1,
|
|
67
|
+
0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 1, 46, 1, 0, 0, 0, 3, 50, 1, 0, 0, 0, 5, 63, 1, 0, 0, 0,
|
|
68
|
+
7, 65, 1, 0, 0, 0, 9, 67, 1, 0, 0, 0, 11, 69, 1, 0, 0, 0, 13, 82, 1, 0, 0, 0, 15, 84, 1, 0, 0, 0, 17,
|
|
69
|
+
91, 1, 0, 0, 0, 19, 118, 1, 0, 0, 0, 21, 131, 1, 0, 0, 0, 23, 138, 1, 0, 0, 0, 25, 159, 1, 0, 0, 0,
|
|
70
|
+
27, 161, 1, 0, 0, 0, 29, 164, 1, 0, 0, 0, 31, 167, 1, 0, 0, 0, 33, 169, 1, 0, 0, 0, 35, 171, 1, 0,
|
|
71
|
+
0, 0, 37, 173, 1, 0, 0, 0, 39, 175, 1, 0, 0, 0, 41, 177, 1, 0, 0, 0, 43, 180, 1, 0, 0, 0, 45, 47, 7,
|
|
72
|
+
0, 0, 0, 46, 45, 1, 0, 0, 0, 47, 48, 1, 0, 0, 0, 48, 46, 1, 0, 0, 0, 48, 49, 1, 0, 0, 0, 49, 2, 1, 0,
|
|
73
|
+
0, 0, 50, 56, 3, 5, 2, 0, 51, 55, 3, 5, 2, 0, 52, 55, 3, 7, 3, 0, 53, 55, 5, 32, 0, 0, 54, 51, 1, 0,
|
|
74
|
+
0, 0, 54, 52, 1, 0, 0, 0, 54, 53, 1, 0, 0, 0, 55, 58, 1, 0, 0, 0, 56, 54, 1, 0, 0, 0, 56, 57, 1, 0, 0,
|
|
75
|
+
0, 57, 61, 1, 0, 0, 0, 58, 56, 1, 0, 0, 0, 59, 62, 3, 5, 2, 0, 60, 62, 3, 7, 3, 0, 61, 59, 1, 0, 0, 0,
|
|
76
|
+
61, 60, 1, 0, 0, 0, 62, 4, 1, 0, 0, 0, 63, 64, 7, 1, 0, 0, 64, 6, 1, 0, 0, 0, 65, 66, 7, 2, 0, 0, 66,
|
|
77
|
+
8, 1, 0, 0, 0, 67, 68, 7, 3, 0, 0, 68, 10, 1, 0, 0, 0, 69, 80, 5, 117, 0, 0, 70, 78, 3, 9, 4, 0, 71,
|
|
78
|
+
76, 3, 9, 4, 0, 72, 74, 3, 9, 4, 0, 73, 75, 3, 9, 4, 0, 74, 73, 1, 0, 0, 0, 74, 75, 1, 0, 0, 0, 75, 77,
|
|
79
|
+
1, 0, 0, 0, 76, 72, 1, 0, 0, 0, 76, 77, 1, 0, 0, 0, 77, 79, 1, 0, 0, 0, 78, 71, 1, 0, 0, 0, 78, 79, 1,
|
|
80
|
+
0, 0, 0, 79, 81, 1, 0, 0, 0, 80, 70, 1, 0, 0, 0, 80, 81, 1, 0, 0, 0, 81, 12, 1, 0, 0, 0, 82, 83, 5, 92,
|
|
81
|
+
0, 0, 83, 14, 1, 0, 0, 0, 84, 89, 3, 13, 6, 0, 85, 90, 7, 4, 0, 0, 86, 90, 3, 11, 5, 0, 87, 90, 9, 0,
|
|
82
|
+
0, 0, 88, 90, 5, 0, 0, 1, 89, 85, 1, 0, 0, 0, 89, 86, 1, 0, 0, 0, 89, 87, 1, 0, 0, 0, 89, 88, 1, 0, 0,
|
|
83
|
+
0, 90, 16, 1, 0, 0, 0, 91, 96, 5, 34, 0, 0, 92, 95, 3, 15, 7, 0, 93, 95, 8, 5, 0, 0, 94, 92, 1, 0, 0,
|
|
84
|
+
0, 94, 93, 1, 0, 0, 0, 95, 98, 1, 0, 0, 0, 96, 94, 1, 0, 0, 0, 96, 97, 1, 0, 0, 0, 97, 99, 1, 0, 0, 0,
|
|
85
|
+
98, 96, 1, 0, 0, 0, 99, 100, 5, 34, 0, 0, 100, 18, 1, 0, 0, 0, 101, 103, 3, 7, 3, 0, 102, 101, 1,
|
|
86
|
+
0, 0, 0, 103, 106, 1, 0, 0, 0, 104, 102, 1, 0, 0, 0, 104, 105, 1, 0, 0, 0, 105, 107, 1, 0, 0, 0, 106,
|
|
87
|
+
104, 1, 0, 0, 0, 107, 109, 5, 46, 0, 0, 108, 110, 3, 7, 3, 0, 109, 108, 1, 0, 0, 0, 110, 111, 1,
|
|
88
|
+
0, 0, 0, 111, 109, 1, 0, 0, 0, 111, 112, 1, 0, 0, 0, 112, 119, 1, 0, 0, 0, 113, 115, 3, 7, 3, 0, 114,
|
|
89
|
+
113, 1, 0, 0, 0, 115, 116, 1, 0, 0, 0, 116, 114, 1, 0, 0, 0, 116, 117, 1, 0, 0, 0, 117, 119, 1, 0,
|
|
90
|
+
0, 0, 118, 104, 1, 0, 0, 0, 118, 114, 1, 0, 0, 0, 119, 129, 1, 0, 0, 0, 120, 122, 7, 6, 0, 0, 121,
|
|
91
|
+
123, 7, 7, 0, 0, 122, 121, 1, 0, 0, 0, 122, 123, 1, 0, 0, 0, 123, 125, 1, 0, 0, 0, 124, 126, 3, 7,
|
|
92
|
+
3, 0, 125, 124, 1, 0, 0, 0, 126, 127, 1, 0, 0, 0, 127, 125, 1, 0, 0, 0, 127, 128, 1, 0, 0, 0, 128,
|
|
93
|
+
130, 1, 0, 0, 0, 129, 120, 1, 0, 0, 0, 129, 130, 1, 0, 0, 0, 130, 20, 1, 0, 0, 0, 131, 136, 3, 13,
|
|
94
|
+
6, 0, 132, 137, 7, 8, 0, 0, 133, 137, 3, 11, 5, 0, 134, 137, 9, 0, 0, 0, 135, 137, 5, 0, 0, 1, 136,
|
|
95
|
+
132, 1, 0, 0, 0, 136, 133, 1, 0, 0, 0, 136, 134, 1, 0, 0, 0, 136, 135, 1, 0, 0, 0, 137, 22, 1, 0,
|
|
96
|
+
0, 0, 138, 143, 5, 91, 0, 0, 139, 142, 3, 15, 7, 0, 140, 142, 8, 9, 0, 0, 141, 139, 1, 0, 0, 0, 141,
|
|
97
|
+
140, 1, 0, 0, 0, 142, 145, 1, 0, 0, 0, 143, 141, 1, 0, 0, 0, 143, 144, 1, 0, 0, 0, 144, 146, 1, 0,
|
|
98
|
+
0, 0, 145, 143, 1, 0, 0, 0, 146, 147, 5, 93, 0, 0, 147, 24, 1, 0, 0, 0, 148, 149, 5, 61, 0, 0, 149,
|
|
99
|
+
160, 5, 61, 0, 0, 150, 151, 5, 33, 0, 0, 151, 160, 5, 61, 0, 0, 152, 153, 5, 60, 0, 0, 153, 160,
|
|
100
|
+
5, 62, 0, 0, 154, 160, 7, 10, 0, 0, 155, 156, 5, 62, 0, 0, 156, 160, 5, 61, 0, 0, 157, 158, 5, 60,
|
|
101
|
+
0, 0, 158, 160, 5, 61, 0, 0, 159, 148, 1, 0, 0, 0, 159, 150, 1, 0, 0, 0, 159, 152, 1, 0, 0, 0, 159,
|
|
102
|
+
154, 1, 0, 0, 0, 159, 155, 1, 0, 0, 0, 159, 157, 1, 0, 0, 0, 160, 26, 1, 0, 0, 0, 161, 162, 5, 38,
|
|
103
|
+
0, 0, 162, 163, 5, 38, 0, 0, 163, 28, 1, 0, 0, 0, 164, 165, 5, 124, 0, 0, 165, 166, 5, 124, 0, 0,
|
|
104
|
+
166, 30, 1, 0, 0, 0, 167, 168, 5, 40, 0, 0, 168, 32, 1, 0, 0, 0, 169, 170, 5, 41, 0, 0, 170, 34,
|
|
105
|
+
1, 0, 0, 0, 171, 172, 3, 19, 9, 0, 172, 36, 1, 0, 0, 0, 173, 174, 3, 17, 8, 0, 174, 38, 1, 0, 0, 0,
|
|
106
|
+
175, 176, 3, 23, 11, 0, 176, 40, 1, 0, 0, 0, 177, 178, 3, 3, 1, 0, 178, 42, 1, 0, 0, 0, 179, 181,
|
|
107
|
+
7, 0, 0, 0, 180, 179, 1, 0, 0, 0, 181, 182, 1, 0, 0, 0, 182, 180, 1, 0, 0, 0, 182, 183, 1, 0, 0, 0,
|
|
108
|
+
183, 184, 1, 0, 0, 0, 184, 185, 6, 21, 0, 0, 185, 44, 1, 0, 0, 0, 24, 0, 48, 54, 56, 61, 74, 76,
|
|
109
|
+
78, 80, 89, 94, 96, 104, 111, 116, 118, 122, 127, 129, 136, 141, 143, 159, 182, 1, 6, 0, 0];
|
|
110
|
+
static __ATN;
|
|
111
|
+
static get _ATN() {
|
|
112
|
+
if (!datacube_filter__lexer.__ATN) {
|
|
113
|
+
datacube_filter__lexer.__ATN = new ATNDeserializer().deserialize(datacube_filter__lexer._serializedATN);
|
|
114
|
+
}
|
|
115
|
+
return datacube_filter__lexer.__ATN;
|
|
116
|
+
}
|
|
117
|
+
static DecisionsToDFA = datacube_filter__lexer._ATN.decisionToState.map((ds, index) => new DFA(ds, index));
|
|
118
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ATN, DFA, FailedPredicateException, Parser, ParserRuleContext, TerminalNode, TokenStream } from 'antlr4';
|
|
2
|
+
export default class datacube_filter__parser extends Parser {
|
|
3
|
+
static readonly OPERATOR = 1;
|
|
4
|
+
static readonly GROUP_OPERATOR_AND = 2;
|
|
5
|
+
static readonly GROUP_OPERATOR_OR = 3;
|
|
6
|
+
static readonly GROUP_OPEN = 4;
|
|
7
|
+
static readonly GROUP_CLOSE = 5;
|
|
8
|
+
static readonly NUMBER = 6;
|
|
9
|
+
static readonly STRING = 7;
|
|
10
|
+
static readonly COLUMN = 8;
|
|
11
|
+
static readonly IDENTIFIER = 9;
|
|
12
|
+
static readonly WHITESPACE = 10;
|
|
13
|
+
static readonly EOF: number;
|
|
14
|
+
static readonly RULE_filter = 0;
|
|
15
|
+
static readonly RULE_condition = 1;
|
|
16
|
+
static readonly RULE_column = 2;
|
|
17
|
+
static readonly RULE_value = 3;
|
|
18
|
+
static readonly RULE_group = 4;
|
|
19
|
+
static readonly RULE_groupOperator = 5;
|
|
20
|
+
static readonly RULE_groupCondition = 6;
|
|
21
|
+
static readonly literalNames: (string | null)[];
|
|
22
|
+
static readonly symbolicNames: (string | null)[];
|
|
23
|
+
static readonly ruleNames: string[];
|
|
24
|
+
get grammarFileName(): string;
|
|
25
|
+
get literalNames(): (string | null)[];
|
|
26
|
+
get symbolicNames(): (string | null)[];
|
|
27
|
+
get ruleNames(): string[];
|
|
28
|
+
get serializedATN(): number[];
|
|
29
|
+
protected createFailedPredicateException(predicate?: string, message?: string): FailedPredicateException;
|
|
30
|
+
constructor(input: TokenStream);
|
|
31
|
+
filter(): FilterContext;
|
|
32
|
+
condition(): ConditionContext;
|
|
33
|
+
column(): ColumnContext;
|
|
34
|
+
value(): ValueContext;
|
|
35
|
+
group(): GroupContext;
|
|
36
|
+
groupOperator(): GroupOperatorContext;
|
|
37
|
+
groupCondition(): GroupConditionContext;
|
|
38
|
+
static readonly _serializedATN: number[];
|
|
39
|
+
private static __ATN;
|
|
40
|
+
static get _ATN(): ATN;
|
|
41
|
+
static DecisionsToDFA: DFA[];
|
|
42
|
+
}
|
|
43
|
+
export declare class FilterContext extends ParserRuleContext {
|
|
44
|
+
constructor(parser?: datacube_filter__parser, parent?: ParserRuleContext, invokingState?: number);
|
|
45
|
+
EOF(): TerminalNode;
|
|
46
|
+
groupCondition(): GroupConditionContext;
|
|
47
|
+
group(): GroupContext;
|
|
48
|
+
get ruleIndex(): number;
|
|
49
|
+
}
|
|
50
|
+
export declare class ConditionContext extends ParserRuleContext {
|
|
51
|
+
constructor(parser?: datacube_filter__parser, parent?: ParserRuleContext, invokingState?: number);
|
|
52
|
+
column(): ColumnContext;
|
|
53
|
+
OPERATOR(): TerminalNode;
|
|
54
|
+
IDENTIFIER(): TerminalNode;
|
|
55
|
+
value(): ValueContext;
|
|
56
|
+
get ruleIndex(): number;
|
|
57
|
+
}
|
|
58
|
+
export declare class ColumnContext extends ParserRuleContext {
|
|
59
|
+
constructor(parser?: datacube_filter__parser, parent?: ParserRuleContext, invokingState?: number);
|
|
60
|
+
COLUMN(): TerminalNode;
|
|
61
|
+
get ruleIndex(): number;
|
|
62
|
+
}
|
|
63
|
+
export declare class ValueContext extends ParserRuleContext {
|
|
64
|
+
constructor(parser?: datacube_filter__parser, parent?: ParserRuleContext, invokingState?: number);
|
|
65
|
+
STRING(): TerminalNode;
|
|
66
|
+
NUMBER(): TerminalNode;
|
|
67
|
+
get ruleIndex(): number;
|
|
68
|
+
}
|
|
69
|
+
export declare class GroupContext extends ParserRuleContext {
|
|
70
|
+
constructor(parser?: datacube_filter__parser, parent?: ParserRuleContext, invokingState?: number);
|
|
71
|
+
GROUP_OPEN(): TerminalNode;
|
|
72
|
+
groupCondition(): GroupConditionContext;
|
|
73
|
+
GROUP_CLOSE(): TerminalNode;
|
|
74
|
+
get ruleIndex(): number;
|
|
75
|
+
}
|
|
76
|
+
export declare class GroupOperatorContext extends ParserRuleContext {
|
|
77
|
+
constructor(parser?: datacube_filter__parser, parent?: ParserRuleContext, invokingState?: number);
|
|
78
|
+
GROUP_OPERATOR_AND(): TerminalNode;
|
|
79
|
+
GROUP_OPERATOR_OR(): TerminalNode;
|
|
80
|
+
get ruleIndex(): number;
|
|
81
|
+
}
|
|
82
|
+
export declare class GroupConditionContext extends ParserRuleContext {
|
|
83
|
+
constructor(parser?: datacube_filter__parser, parent?: ParserRuleContext, invokingState?: number);
|
|
84
|
+
condition_list(): ConditionContext[];
|
|
85
|
+
condition(i: number): ConditionContext;
|
|
86
|
+
group_list(): GroupContext[];
|
|
87
|
+
group(i: number): GroupContext;
|
|
88
|
+
groupOperator_list(): GroupOperatorContext[];
|
|
89
|
+
groupOperator(i: number): GroupOperatorContext;
|
|
90
|
+
get ruleIndex(): number;
|
|
91
|
+
}
|