@finos/legend-application-repl 0.0.31 → 0.0.33
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/components/LegendREPLFrameworkProvider.js +1 -1
- package/lib/components/LegendREPLFrameworkProvider.js.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/grid/menu/DataCubeGridSortsMenu.d.ts → REPLWindow.d.ts} +18 -4
- package/lib/components/REPLWindow.d.ts.map +1 -0
- package/lib/components/REPLWindow.js +117 -0
- package/lib/components/REPLWindow.js.map +1 -0
- package/lib/components/dataCube/DataCube.js +4 -4
- package/lib/components/dataCube/DataCube.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditor.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditor.js +14 -93
- package/lib/components/dataCube/editor/DataCubeEditor.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.js +3 -2
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.js +161 -87
- package/lib/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnsPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnsPanel.js +10 -3
- package/lib/components/dataCube/editor/DataCubeEditorColumnsPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnsSelector.d.ts +3 -2
- package/lib/components/dataCube/editor/DataCubeEditorColumnsSelector.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnsSelector.js +23 -38
- package/lib/components/dataCube/editor/DataCubeEditorColumnsSelector.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorDeveloperPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorDeveloperPanel.js +3 -2
- package/lib/components/dataCube/editor/DataCubeEditorDeveloperPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.js +3 -2
- package/lib/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorFilterPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorFilterPanel.js +3 -2
- package/lib/components/dataCube/editor/DataCubeEditorFilterPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.js +96 -55
- package/lib/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.js.map +1 -1
- package/lib/components/dataCube/editor/{DataCubeEditorVPivotsPanel.d.ts → DataCubeEditorHorizontalPivotsPanel.d.ts} +2 -2
- package/lib/components/dataCube/editor/DataCubeEditorHorizontalPivotsPanel.d.ts.map +1 -0
- package/lib/components/dataCube/editor/{DataCubeEditorHPivotsPanel.js → DataCubeEditorHorizontalPivotsPanel.js} +5 -4
- package/lib/components/dataCube/editor/DataCubeEditorHorizontalPivotsPanel.js.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorShared.d.ts +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorShared.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorShared.js +44 -27
- package/lib/components/dataCube/editor/DataCubeEditorShared.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorSortsPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorSortsPanel.js +7 -7
- package/lib/components/dataCube/editor/DataCubeEditorSortsPanel.js.map +1 -1
- package/lib/components/dataCube/editor/{DataCubeEditorHPivotsPanel.d.ts → DataCubeEditorVerticalPivotsPanel.d.ts} +2 -2
- package/lib/components/dataCube/editor/DataCubeEditorVerticalPivotsPanel.d.ts.map +1 -0
- package/lib/components/dataCube/editor/{DataCubeEditorVPivotsPanel.js → DataCubeEditorVerticalPivotsPanel.js} +5 -6
- package/lib/components/dataCube/editor/DataCubeEditorVerticalPivotsPanel.js.map +1 -0
- package/lib/components/dataCube/grid/DataCubeGrid.d.ts +3 -0
- package/lib/components/dataCube/grid/DataCubeGrid.d.ts.map +1 -1
- package/lib/components/dataCube/grid/DataCubeGrid.js +205 -75
- package/lib/components/dataCube/grid/DataCubeGrid.js.map +1 -1
- package/lib/components/dataCube/grid/DataCubeGridShared.d.ts +1 -1
- package/lib/components/dataCube/grid/DataCubeGridShared.d.ts.map +1 -1
- package/lib/components/dataCube/grid/DataCubeGridShared.js +1 -1
- package/lib/components/dataCube/grid/DataCubeGridShared.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +19 -15
- package/lib/stores/{dataCube/REPLStore.d.ts → REPLStore.d.ts} +5 -3
- package/lib/stores/REPLStore.d.ts.map +1 -0
- package/lib/stores/{dataCube/REPLStore.js → REPLStore.js} +5 -2
- package/lib/stores/REPLStore.js.map +1 -0
- package/lib/stores/dataCube/{core/DataCubeEngine.d.ts → DataCubeInfrastructure.d.ts} +20 -4
- package/lib/stores/dataCube/DataCubeInfrastructure.d.ts.map +1 -0
- package/lib/stores/dataCube/{core/DataCubeEngine.js → DataCubeInfrastructure.js} +31 -3
- package/lib/stores/dataCube/DataCubeInfrastructure.js.map +1 -0
- package/lib/stores/dataCube/DataCubeState.d.ts +4 -4
- package/lib/stores/dataCube/DataCubeState.d.ts.map +1 -1
- package/lib/stores/dataCube/DataCubeState.js +9 -10
- package/lib/stores/dataCube/DataCubeState.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeConfiguration.d.ts +44 -38
- package/lib/stores/dataCube/core/DataCubeConfiguration.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeConfiguration.js +88 -78
- package/lib/stores/dataCube/core/DataCubeConfiguration.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeConfigurationBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeConfigurationBuilder.js +2 -1
- package/lib/stores/dataCube/core/DataCubeConfigurationBuilder.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeCoreState.d.ts +1 -1
- package/lib/stores/dataCube/core/DataCubeCoreState.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeCoreState.js +1 -1
- package/lib/stores/dataCube/core/DataCubeCoreState.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.js +21 -21
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQueryEngine.d.ts +68 -29
- package/lib/stores/dataCube/core/DataCubeQueryEngine.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQueryEngine.js +93 -50
- package/lib/stores/dataCube/core/DataCubeQueryEngine.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.d.ts +5 -40
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.js +9 -54
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.js +18 -12
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.d.ts +1 -3
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.js +2 -3
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.js.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.d.ts +7 -1
- package/lib/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.d.ts.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.js +29 -5
- package/lib/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.js.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorColumnsPanelState.d.ts +45 -0
- package/lib/stores/dataCube/editor/DataCubeEditorColumnsPanelState.d.ts.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorColumnsPanelState.js +102 -0
- package/lib/stores/dataCube/editor/DataCubeEditorColumnsPanelState.js.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorColumnsSelectorState.d.ts +26 -9
- package/lib/stores/dataCube/editor/DataCubeEditorColumnsSelectorState.d.ts.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorColumnsSelectorState.js +50 -20
- package/lib/stores/dataCube/editor/DataCubeEditorColumnsSelectorState.js.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts +2 -1
- package/lib/stores/dataCube/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorGeneralPropertiesPanelState.js +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorGeneralPropertiesPanelState.js.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorPanelState.d.ts +2 -1
- package/lib/stores/dataCube/editor/DataCubeEditorPanelState.d.ts.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorSortsPanelState.d.ts +12 -13
- package/lib/stores/dataCube/editor/DataCubeEditorSortsPanelState.d.ts.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorSortsPanelState.js +23 -70
- package/lib/stores/dataCube/editor/DataCubeEditorSortsPanelState.js.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts +18 -13
- package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorState.js +44 -25
- package/lib/stores/dataCube/editor/DataCubeEditorState.js.map +1 -1
- package/lib/stores/dataCube/editor/{DataCubeEditorHPivotPanelState.d.ts → DataCubeEditorVerticalPivotsPanelState.d.ts} +11 -4
- package/lib/stores/dataCube/editor/DataCubeEditorVerticalPivotsPanelState.d.ts.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorVerticalPivotsPanelState.js +62 -0
- package/lib/stores/dataCube/editor/DataCubeEditorVerticalPivotsPanelState.js.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeMutableConfiguration.d.ts +48 -41
- package/lib/stores/dataCube/editor/DataCubeMutableConfiguration.d.ts.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeMutableConfiguration.js +217 -134
- package/lib/stores/dataCube/editor/DataCubeMutableConfiguration.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.d.ts +40 -0
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js +43 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientExportEngine.d.ts +31 -0
- package/lib/stores/dataCube/grid/DataCubeGridClientExportEngine.d.ts.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridClientExportEngine.js +147 -0
- package/lib/stores/dataCube/grid/DataCubeGridClientExportEngine.js.map +1 -0
- package/lib/stores/dataCube/grid/{DataCubeGridQuerySnapshotAnalyzer.d.ts → DataCubeGridConfigurationBuilder.d.ts} +5 -2
- package/lib/stores/dataCube/grid/DataCubeGridConfigurationBuilder.d.ts.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridConfigurationBuilder.js +478 -0
- package/lib/stores/dataCube/grid/DataCubeGridConfigurationBuilder.js.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridControllerState.d.ts +62 -0
- package/lib/stores/dataCube/grid/DataCubeGridControllerState.d.ts.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridControllerState.js +174 -0
- package/lib/stores/dataCube/grid/DataCubeGridControllerState.js.map +1 -0
- package/lib/{components/dataCube/grid/menu/DataCubeGridMenu.d.ts → stores/dataCube/grid/DataCubeGridMenuBuilder.d.ts} +3 -7
- package/lib/stores/dataCube/grid/DataCubeGridMenuBuilder.d.ts.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridMenuBuilder.js +462 -0
- package/lib/stores/dataCube/grid/DataCubeGridMenuBuilder.js.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridQueryBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridQueryBuilder.js +3 -3
- package/lib/stores/dataCube/grid/DataCubeGridQueryBuilder.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.js +9 -8
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridState.d.ts +20 -2
- package/lib/stores/dataCube/grid/DataCubeGridState.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridState.js +58 -22
- package/lib/stores/dataCube/grid/DataCubeGridState.js.map +1 -1
- package/package.json +25 -21
- package/src/components/LegendREPLFrameworkProvider.tsx +1 -1
- package/src/components/REPLStoreProvider.tsx +1 -1
- package/src/components/REPLWindow.tsx +179 -0
- package/src/components/dataCube/DataCube.tsx +4 -4
- package/src/components/dataCube/editor/DataCubeEditor.tsx +81 -192
- package/src/components/dataCube/editor/DataCubeEditorCodePanel.tsx +3 -1
- package/src/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.tsx +482 -283
- package/src/components/dataCube/editor/DataCubeEditorColumnsPanel.tsx +42 -8
- package/src/components/dataCube/editor/DataCubeEditorColumnsSelector.tsx +38 -80
- package/src/components/dataCube/editor/DataCubeEditorDeveloperPanel.tsx +3 -1
- package/src/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.tsx +3 -1
- package/src/components/dataCube/editor/DataCubeEditorFilterPanel.tsx +3 -1
- package/src/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.tsx +238 -175
- package/src/components/dataCube/editor/{DataCubeEditorHPivotsPanel.tsx → DataCubeEditorHorizontalPivotsPanel.tsx} +4 -2
- package/src/components/dataCube/editor/DataCubeEditorShared.tsx +69 -33
- package/src/components/dataCube/editor/DataCubeEditorSortsPanel.tsx +8 -10
- package/src/components/dataCube/editor/{DataCubeEditorVPivotsPanel.tsx → DataCubeEditorVerticalPivotsPanel.tsx} +6 -6
- package/src/components/dataCube/grid/DataCubeGrid.tsx +337 -149
- package/src/components/dataCube/grid/DataCubeGridShared.tsx +5 -1
- package/src/stores/{dataCube/REPLStore.ts → REPLStore.ts} +6 -3
- package/src/stores/dataCube/{core/DataCubeEngine.ts → DataCubeInfrastructure.ts} +40 -3
- package/src/stores/dataCube/DataCubeState.ts +16 -14
- package/src/stores/dataCube/core/DataCubeConfiguration.ts +112 -86
- package/src/stores/dataCube/core/DataCubeConfigurationBuilder.ts +5 -1
- package/src/stores/dataCube/core/DataCubeCoreState.ts +4 -1
- package/src/stores/dataCube/core/DataCubeQueryBuilder.ts +27 -27
- package/src/stores/dataCube/core/DataCubeQueryEngine.ts +95 -49
- package/src/stores/dataCube/core/DataCubeQuerySnapshot.ts +19 -58
- package/src/stores/dataCube/core/DataCubeQuerySnapshotBuilder.ts +18 -14
- package/src/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.ts +6 -5
- package/src/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.ts +51 -5
- package/src/stores/dataCube/editor/DataCubeEditorColumnsPanelState.ts +162 -0
- package/src/stores/dataCube/editor/DataCubeEditorColumnsSelectorState.ts +98 -23
- package/src/stores/dataCube/editor/DataCubeEditorGeneralPropertiesPanelState.ts +5 -1
- package/src/stores/dataCube/editor/DataCubeEditorPanelState.ts +5 -1
- package/src/stores/dataCube/editor/DataCubeEditorSortsPanelState.ts +48 -117
- package/src/stores/dataCube/editor/DataCubeEditorState.ts +54 -27
- package/src/stores/dataCube/editor/DataCubeEditorVerticalPivotsPanelState.ts +105 -0
- package/src/stores/dataCube/editor/DataCubeMutableConfiguration.ts +263 -146
- package/src/stores/dataCube/grid/DataCubeGridClientEngine.ts +64 -1
- package/src/stores/dataCube/grid/DataCubeGridClientExportEngine.ts +170 -0
- package/src/stores/dataCube/grid/DataCubeGridConfigurationBuilder.tsx +668 -0
- package/src/stores/dataCube/grid/DataCubeGridControllerState.ts +254 -0
- package/src/stores/dataCube/grid/DataCubeGridMenuBuilder.tsx +535 -0
- package/src/stores/dataCube/grid/DataCubeGridQueryBuilder.ts +3 -5
- package/src/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.ts +12 -10
- package/src/stores/dataCube/grid/DataCubeGridState.ts +81 -21
- package/tsconfig.json +11 -8
- package/lib/components/dataCube/editor/DataCubeEditorHPivotsPanel.d.ts.map +0 -1
- package/lib/components/dataCube/editor/DataCubeEditorHPivotsPanel.js.map +0 -1
- package/lib/components/dataCube/editor/DataCubeEditorVPivotsPanel.d.ts.map +0 -1
- package/lib/components/dataCube/editor/DataCubeEditorVPivotsPanel.js.map +0 -1
- package/lib/components/dataCube/grid/menu/DataCubeGridMenu.d.ts.map +0 -1
- package/lib/components/dataCube/grid/menu/DataCubeGridMenu.js +0 -382
- package/lib/components/dataCube/grid/menu/DataCubeGridMenu.js.map +0 -1
- package/lib/components/dataCube/grid/menu/DataCubeGridSortsMenu.d.ts.map +0 -1
- package/lib/components/dataCube/grid/menu/DataCubeGridSortsMenu.js +0 -83
- package/lib/components/dataCube/grid/menu/DataCubeGridSortsMenu.js.map +0 -1
- package/lib/stores/dataCube/REPLStore.d.ts.map +0 -1
- package/lib/stores/dataCube/REPLStore.js.map +0 -1
- package/lib/stores/dataCube/core/DataCubeEngine.d.ts.map +0 -1
- package/lib/stores/dataCube/core/DataCubeEngine.js.map +0 -1
- package/lib/stores/dataCube/editor/DataCubeEditorHPivotPanelState.d.ts.map +0 -1
- package/lib/stores/dataCube/editor/DataCubeEditorHPivotPanelState.js +0 -30
- package/lib/stores/dataCube/editor/DataCubeEditorHPivotPanelState.js.map +0 -1
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.d.ts.map +0 -1
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.js +0 -160
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.js.map +0 -1
- package/src/components/dataCube/grid/menu/DataCubeGridMenu.tsx +0 -394
- package/src/components/dataCube/grid/menu/DataCubeGridSortsMenu.tsx +0 -120
- package/src/stores/dataCube/editor/DataCubeEditorHPivotPanelState.ts +0 -43
- package/src/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.tsx +0 -192
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type { REPLStore } from '
|
|
17
|
+
import type { REPLStore } from '../REPLStore.js';
|
|
18
18
|
import { DataCubeGridState } from './grid/DataCubeGridState.js';
|
|
19
19
|
import { DataCubeEditorState } from './editor/DataCubeEditorState.js';
|
|
20
20
|
import { assertErrorThrown, uuid } from '@finos/legend-shared';
|
|
21
|
-
import { DataCubeEngine } from './core/DataCubeEngine.js';
|
|
22
21
|
import { DataCubeQuerySnapshotManager } from './core/DataCubeQuerySnapshotManager.js';
|
|
23
22
|
import type { LegendREPLApplicationStore } from '../LegendREPLBaseStore.js';
|
|
24
23
|
import { DataCubeCoreState } from './core/DataCubeCoreState.js';
|
|
25
24
|
import { validateAndBuildQuerySnapshot } from './core/DataCubeQuerySnapshotBuilder.js';
|
|
26
25
|
import { action, makeObservable, observable } from 'mobx';
|
|
26
|
+
import type { DataCubeInfrastructure } from './DataCubeInfrastructure.js';
|
|
27
27
|
|
|
28
28
|
export class DataCubeTask {
|
|
29
29
|
uuid = uuid();
|
|
@@ -43,42 +43,42 @@ export class DataCubeTask {
|
|
|
43
43
|
export class DataCubeState {
|
|
44
44
|
readonly replStore: REPLStore;
|
|
45
45
|
readonly application: LegendREPLApplicationStore;
|
|
46
|
-
readonly
|
|
46
|
+
readonly infrastructure: DataCubeInfrastructure;
|
|
47
47
|
readonly snapshotManager: DataCubeQuerySnapshotManager;
|
|
48
48
|
|
|
49
49
|
readonly core: DataCubeCoreState;
|
|
50
50
|
readonly grid: DataCubeGridState;
|
|
51
51
|
readonly editor: DataCubeEditorState;
|
|
52
52
|
|
|
53
|
-
readonly
|
|
53
|
+
readonly runningTasks = new Map<string, DataCubeTask>();
|
|
54
54
|
|
|
55
55
|
constructor(replStore: REPLStore) {
|
|
56
56
|
makeObservable(this, {
|
|
57
|
-
|
|
57
|
+
runningTasks: observable,
|
|
58
58
|
newTask: action,
|
|
59
59
|
endTask: action,
|
|
60
60
|
});
|
|
61
61
|
|
|
62
62
|
this.replStore = replStore;
|
|
63
63
|
this.application = replStore.applicationStore;
|
|
64
|
-
this.
|
|
64
|
+
this.infrastructure = replStore.dataCubeInfrastructure;
|
|
65
65
|
|
|
66
66
|
// NOTE: snapshot manager must be instantiated before subscribers
|
|
67
67
|
this.snapshotManager = new DataCubeQuerySnapshotManager(this);
|
|
68
68
|
this.core = new DataCubeCoreState(this);
|
|
69
|
-
this.grid = new DataCubeGridState(this);
|
|
70
69
|
this.editor = new DataCubeEditorState(this);
|
|
70
|
+
this.grid = new DataCubeGridState(this);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
newTask(name: string): DataCubeTask {
|
|
74
74
|
const task = new DataCubeTask(name);
|
|
75
|
-
this.
|
|
75
|
+
this.runningTasks.set(task.uuid, task);
|
|
76
76
|
return task;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
endTask(task: DataCubeTask): DataCubeTask {
|
|
80
80
|
task.end();
|
|
81
|
-
this.
|
|
81
|
+
this.runningTasks.delete(task.uuid);
|
|
82
82
|
return task;
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -86,12 +86,14 @@ export class DataCubeState {
|
|
|
86
86
|
const task = this.newTask('Initializing');
|
|
87
87
|
try {
|
|
88
88
|
await Promise.all(
|
|
89
|
-
[this.core, this.editor, this.grid].map(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
[this.core, this.editor, this.grid, this.grid.controller].map(
|
|
90
|
+
async (state) => {
|
|
91
|
+
this.snapshotManager.registerSubscriber(state);
|
|
92
|
+
await state.initialize();
|
|
93
|
+
},
|
|
94
|
+
),
|
|
93
95
|
);
|
|
94
|
-
const result = await this.engine.getBaseQuery();
|
|
96
|
+
const result = await this.infrastructure.engine.getBaseQuery();
|
|
95
97
|
const initialSnapshot = validateAndBuildQuerySnapshot(
|
|
96
98
|
result.partialQuery,
|
|
97
99
|
result.sourceQuery,
|
|
@@ -14,26 +14,41 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { TailwindCSSPalette } from '@finos/legend-art';
|
|
18
17
|
import {
|
|
19
|
-
DataCubeColumnKind,
|
|
20
|
-
DataCubeFont,
|
|
21
|
-
DataCubeFontTextAlignment,
|
|
22
|
-
DEFAULT_ROW_BUFFER,
|
|
23
18
|
DEFAULT_BACKGROUND_COLOR,
|
|
24
19
|
DEFAULT_ERROR_FOREGROUND_COLOR,
|
|
25
20
|
DEFAULT_FOREGROUND_COLOR,
|
|
26
21
|
DEFAULT_NEGATIVE_FOREGROUND_COLOR,
|
|
27
22
|
DEFAULT_ROW_HIGHLIGHT_BACKGROUND_COLOR,
|
|
28
23
|
DEFAULT_ZERO_FOREGROUND_COLOR,
|
|
29
|
-
|
|
24
|
+
DEFAULT_GRID_LINE_COLOR,
|
|
25
|
+
DEFAULT_FONT_FAMILY,
|
|
26
|
+
DEFAULT_FONT_SIZE,
|
|
27
|
+
DEFAULT_FONT_BOLD,
|
|
28
|
+
DEFAULT_FONT_ITALIC,
|
|
29
|
+
DEFAULT_FONT_STRIKETHROUGH,
|
|
30
|
+
DEFAULT_TEXT_ALIGN,
|
|
31
|
+
DEFAULT_FONT_UNDERLINED,
|
|
32
|
+
DEFAULT_FONT_CASE,
|
|
33
|
+
DataCubeColumnKind,
|
|
34
|
+
type DataCubeFont,
|
|
35
|
+
type DataCubeFontTextAlignment,
|
|
36
|
+
type DataCubeFontFormatUnderlineVariant,
|
|
30
37
|
type DataCubeNumberScale,
|
|
31
38
|
type DataCubeSelectionStat,
|
|
32
39
|
type DataCubeColumnPinPlacement,
|
|
40
|
+
type DataCubeFontCase,
|
|
41
|
+
type DataCubeAggregateFunction,
|
|
33
42
|
} from './DataCubeQueryEngine.js';
|
|
34
43
|
import { SerializationFactory, usingModelSchema } from '@finos/legend-shared';
|
|
35
44
|
import { createModelSchema, list, optional, primitive } from 'serializr';
|
|
36
45
|
|
|
46
|
+
export type DataCubeConfigurationColorKey =
|
|
47
|
+
| 'normal'
|
|
48
|
+
| 'zero'
|
|
49
|
+
| 'negative'
|
|
50
|
+
| 'error';
|
|
51
|
+
|
|
37
52
|
export class DataCubeColumnConfiguration {
|
|
38
53
|
name: string;
|
|
39
54
|
type: string;
|
|
@@ -48,21 +63,22 @@ export class DataCubeColumnConfiguration {
|
|
|
48
63
|
|
|
49
64
|
hPivotSortFunction?: string | undefined;
|
|
50
65
|
|
|
51
|
-
fontFamily
|
|
52
|
-
fontSize
|
|
53
|
-
fontBold
|
|
54
|
-
fontItalic
|
|
55
|
-
|
|
56
|
-
fontStrikethrough
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
fontFamily?: DataCubeFont | undefined;
|
|
67
|
+
fontSize?: number | undefined;
|
|
68
|
+
fontBold?: boolean | undefined;
|
|
69
|
+
fontItalic?: boolean | undefined;
|
|
70
|
+
fontUnderline?: DataCubeFontFormatUnderlineVariant | undefined;
|
|
71
|
+
fontStrikethrough?: boolean | undefined;
|
|
72
|
+
fontCase?: DataCubeFontCase | undefined;
|
|
73
|
+
textAlign?: DataCubeFontTextAlignment | undefined;
|
|
74
|
+
normalForegroundColor?: string | undefined;
|
|
75
|
+
negativeForegroundColor?: string | undefined;
|
|
76
|
+
zeroForegroundColor?: string | undefined;
|
|
77
|
+
errorForegroundColor?: string | undefined;
|
|
78
|
+
normalBackgroundColor?: string | undefined;
|
|
79
|
+
negativeBackgroundColor?: string | undefined;
|
|
80
|
+
zeroBackgroundColor?: string | undefined;
|
|
81
|
+
errorBackgroundColor?: string | undefined;
|
|
66
82
|
|
|
67
83
|
blur = false;
|
|
68
84
|
hideFromView = false;
|
|
@@ -72,6 +88,10 @@ export class DataCubeColumnConfiguration {
|
|
|
72
88
|
maxWidth?: number | undefined;
|
|
73
89
|
pinned?: DataCubeColumnPinPlacement | undefined;
|
|
74
90
|
displayAsLink = false;
|
|
91
|
+
linkLabelParameter?: string | undefined;
|
|
92
|
+
|
|
93
|
+
aggregateFunction?: DataCubeAggregateFunction | undefined;
|
|
94
|
+
excludedFromHorizontalPivot = false;
|
|
75
95
|
|
|
76
96
|
constructor(name: string, type: string) {
|
|
77
97
|
this.name = name;
|
|
@@ -80,35 +100,41 @@ export class DataCubeColumnConfiguration {
|
|
|
80
100
|
|
|
81
101
|
static readonly serialization = new SerializationFactory(
|
|
82
102
|
createModelSchema(DataCubeColumnConfiguration, {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
backgroundNegativeColor: primitive(),
|
|
86
|
-
backgroundZeroColor: primitive(),
|
|
103
|
+
aggregateFunction: optional(primitive()),
|
|
104
|
+
blur: primitive(),
|
|
87
105
|
decimals: optional(primitive()),
|
|
88
106
|
displayAsLink: primitive(),
|
|
89
107
|
displayCommas: primitive(),
|
|
90
108
|
displayName: optional(primitive()),
|
|
109
|
+
errorBackgroundColor: optional(primitive()),
|
|
110
|
+
errorForegroundColor: optional(primitive()),
|
|
111
|
+
excludedFromHorizontalPivot: primitive(),
|
|
91
112
|
fixedWidth: optional(primitive()),
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
fontStrikethrough: primitive(),
|
|
101
|
-
fontUnderlined: optional(primitive()),
|
|
113
|
+
fontBold: optional(primitive()),
|
|
114
|
+
fontCase: optional(primitive()),
|
|
115
|
+
fontFamily: optional(primitive()),
|
|
116
|
+
fontItalic: optional(primitive()),
|
|
117
|
+
fontSize: optional(primitive()),
|
|
118
|
+
fontStrikethrough: optional(primitive()),
|
|
119
|
+
fontUnderline: optional(primitive()),
|
|
120
|
+
hideFromView: primitive(),
|
|
102
121
|
hPivotSortFunction: optional(primitive()),
|
|
103
122
|
kind: primitive(),
|
|
123
|
+
linkLabelParameter: optional(primitive()),
|
|
104
124
|
maxWidth: optional(primitive()),
|
|
105
125
|
minWidth: optional(primitive()),
|
|
106
126
|
name: primitive(),
|
|
127
|
+
negativeBackgroundColor: optional(primitive()),
|
|
128
|
+
negativeForegroundColor: optional(primitive()),
|
|
129
|
+
normalBackgroundColor: optional(primitive()),
|
|
130
|
+
normalForegroundColor: optional(primitive()),
|
|
107
131
|
negativeNumberInParens: primitive(),
|
|
108
132
|
numberScale: optional(primitive()),
|
|
109
133
|
pinned: optional(primitive()),
|
|
110
|
-
textAlign: primitive(),
|
|
134
|
+
textAlign: optional(primitive()),
|
|
111
135
|
type: primitive(),
|
|
136
|
+
zeroBackgroundColor: optional(primitive()),
|
|
137
|
+
zeroForegroundColor: optional(primitive()),
|
|
112
138
|
}),
|
|
113
139
|
);
|
|
114
140
|
}
|
|
@@ -117,45 +143,45 @@ export class DataCubeConfiguration {
|
|
|
117
143
|
description?: string | undefined;
|
|
118
144
|
columns: DataCubeColumnConfiguration[] = [];
|
|
119
145
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
146
|
+
showTreeLines = false;
|
|
147
|
+
showHorizontalGridLines = false;
|
|
148
|
+
showVerticalGridLines = true;
|
|
149
|
+
gridLineColor = DEFAULT_GRID_LINE_COLOR;
|
|
150
|
+
|
|
151
|
+
fontFamily = DEFAULT_FONT_FAMILY;
|
|
152
|
+
fontSize = DEFAULT_FONT_SIZE;
|
|
153
|
+
fontBold = DEFAULT_FONT_BOLD;
|
|
154
|
+
fontItalic = DEFAULT_FONT_ITALIC;
|
|
155
|
+
fontUnderline?: DataCubeFontFormatUnderlineVariant | undefined =
|
|
156
|
+
DEFAULT_FONT_UNDERLINED;
|
|
157
|
+
fontStrikethrough = DEFAULT_FONT_STRIKETHROUGH;
|
|
158
|
+
fontCase?: DataCubeFontCase | undefined = DEFAULT_FONT_CASE;
|
|
159
|
+
textAlign = DEFAULT_TEXT_ALIGN;
|
|
160
|
+
normalForegroundColor = DEFAULT_FOREGROUND_COLOR;
|
|
161
|
+
negativeForegroundColor = DEFAULT_NEGATIVE_FOREGROUND_COLOR;
|
|
162
|
+
zeroForegroundColor = DEFAULT_ZERO_FOREGROUND_COLOR;
|
|
163
|
+
errorForegroundColor = DEFAULT_ERROR_FOREGROUND_COLOR;
|
|
164
|
+
normalBackgroundColor = DEFAULT_BACKGROUND_COLOR;
|
|
165
|
+
negativeBackgroundColor = DEFAULT_BACKGROUND_COLOR;
|
|
166
|
+
zeroBackgroundColor = DEFAULT_BACKGROUND_COLOR;
|
|
167
|
+
errorBackgroundColor = DEFAULT_BACKGROUND_COLOR;
|
|
168
|
+
|
|
169
|
+
alternateRows = false;
|
|
170
|
+
alternateRowsStandardMode = true;
|
|
140
171
|
alternateRowsColor = DEFAULT_ROW_HIGHLIGHT_BACKGROUND_COLOR;
|
|
141
172
|
alternateRowsCount = 1;
|
|
142
173
|
|
|
143
|
-
// manualRefresh: boolean;
|
|
144
|
-
numberScale?: DataCubeNumberScale | undefined;
|
|
145
|
-
selectionStats: DataCubeSelectionStat[] = [];
|
|
146
|
-
|
|
147
|
-
showWarningForTruncatedResult = true;
|
|
148
|
-
|
|
149
174
|
// aggregation
|
|
150
175
|
initialExpandLevel?: number | undefined;
|
|
151
176
|
showRootAggregation = false;
|
|
152
|
-
showLeafCount =
|
|
177
|
+
showLeafCount = false;
|
|
153
178
|
addPivotTotalColumn = true;
|
|
154
179
|
addPivotTotalColumnOnLeft = true;
|
|
155
180
|
treeGroupSortFunction?: string | undefined;
|
|
156
181
|
|
|
157
|
-
//
|
|
158
|
-
|
|
182
|
+
// misc
|
|
183
|
+
selectionStats: DataCubeSelectionStat[] = [];
|
|
184
|
+
showWarningForTruncatedResult = true;
|
|
159
185
|
|
|
160
186
|
static readonly serialization = new SerializationFactory(
|
|
161
187
|
createModelSchema(DataCubeConfiguration, {
|
|
@@ -164,37 +190,37 @@ export class DataCubeConfiguration {
|
|
|
164
190
|
alternateRows: primitive(),
|
|
165
191
|
alternateRowsColor: primitive(),
|
|
166
192
|
alternateRowsCount: primitive(),
|
|
193
|
+
alternateRowsStandardMode: primitive(),
|
|
167
194
|
columns: list(
|
|
168
195
|
usingModelSchema(DataCubeColumnConfiguration.serialization.schema),
|
|
169
196
|
),
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
defaultBackgroundNegativeColor: primitive(),
|
|
173
|
-
defaultBackgroundZeroColor: primitive(),
|
|
174
|
-
defaultFontBold: primitive(),
|
|
175
|
-
defaultFontFamily: primitive(),
|
|
176
|
-
defaultFontItalic: primitive(),
|
|
177
|
-
defaultFontSize: primitive(),
|
|
178
|
-
defaultFontStrikethrough: primitive(),
|
|
179
|
-
defaultFontUnderlined: optional(primitive()),
|
|
180
|
-
defaultForegroundColor: primitive(),
|
|
181
|
-
defaultForegroundErrorColor: primitive(),
|
|
182
|
-
defaultForegroundNegativeColor: primitive(),
|
|
183
|
-
defaultForegroundZeroColor: primitive(),
|
|
184
|
-
defaultTextAlign: primitive(),
|
|
197
|
+
errorBackgroundColor: primitive(),
|
|
198
|
+
errorForegroundColor: primitive(),
|
|
185
199
|
description: optional(primitive()),
|
|
200
|
+
fontBold: primitive(),
|
|
201
|
+
fontCase: optional(primitive()),
|
|
202
|
+
fontFamily: primitive(),
|
|
203
|
+
fontItalic: primitive(),
|
|
204
|
+
fontSize: primitive(),
|
|
205
|
+
fontStrikethrough: primitive(),
|
|
206
|
+
fontUnderline: optional(primitive()),
|
|
207
|
+
gridLineColor: primitive(),
|
|
186
208
|
initialExpandLevel: optional(primitive()),
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
209
|
+
negativeBackgroundColor: primitive(),
|
|
210
|
+
negativeForegroundColor: primitive(),
|
|
211
|
+
normalBackgroundColor: primitive(),
|
|
212
|
+
normalForegroundColor: primitive(),
|
|
190
213
|
selectionStats: list(primitive()),
|
|
191
|
-
|
|
214
|
+
showHorizontalGridLines: primitive(),
|
|
192
215
|
showLeafCount: primitive(),
|
|
193
216
|
showRootAggregation: primitive(),
|
|
194
|
-
|
|
195
|
-
|
|
217
|
+
showTreeLines: primitive(),
|
|
218
|
+
showVerticalGridLines: primitive(),
|
|
196
219
|
showWarningForTruncatedResult: primitive(),
|
|
220
|
+
textAlign: primitive(),
|
|
197
221
|
treeGroupSortFunction: optional(primitive()),
|
|
222
|
+
zeroBackgroundColor: primitive(),
|
|
223
|
+
zeroForegroundColor: primitive(),
|
|
198
224
|
}),
|
|
199
225
|
);
|
|
200
226
|
}
|
|
@@ -19,7 +19,10 @@ import {
|
|
|
19
19
|
DataCubeColumnConfiguration,
|
|
20
20
|
DataCubeConfiguration,
|
|
21
21
|
} from './DataCubeConfiguration.js';
|
|
22
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
DataCubeColumnKind,
|
|
24
|
+
DataCubeFontTextAlignment,
|
|
25
|
+
} from './DataCubeQueryEngine.js';
|
|
23
26
|
|
|
24
27
|
export function buildDefaultColumnConfiguration(column: {
|
|
25
28
|
name: string;
|
|
@@ -36,6 +39,7 @@ export function buildDefaultColumnConfiguration(column: {
|
|
|
36
39
|
config.decimals = type === PRIMITIVE_TYPE.INTEGER ? 0 : 2;
|
|
37
40
|
config.displayCommas = true;
|
|
38
41
|
config.negativeNumberInParens = true;
|
|
42
|
+
config.textAlign = DataCubeFontTextAlignment.RIGHT; // always align number to the right
|
|
39
43
|
break;
|
|
40
44
|
}
|
|
41
45
|
default: {
|
|
@@ -40,7 +40,10 @@ export class DataCubeCoreState extends DataCubeQuerySnapshotSubscriber {
|
|
|
40
40
|
this.name = val;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
override async applySnapshot(
|
|
43
|
+
override async applySnapshot(
|
|
44
|
+
snapshot: DataCubeQuerySnapshot,
|
|
45
|
+
previousSnapshot: DataCubeQuerySnapshot | undefined,
|
|
46
|
+
): Promise<void> {
|
|
44
47
|
const data = snapshot.data;
|
|
45
48
|
this.setName(data.name);
|
|
46
49
|
if (!this.startTime) {
|
|
@@ -51,9 +51,6 @@ import {
|
|
|
51
51
|
type DataCubeQuerySnapshotFilterCondition,
|
|
52
52
|
type DataCubeQuerySnapshotFilter,
|
|
53
53
|
type DataCubeQuerySnapshot,
|
|
54
|
-
DataCubeQuerySnapshotSortOperation,
|
|
55
|
-
DataCubeQuerySnapshotFilterOperation,
|
|
56
|
-
DataCubeQueryFilterGroupOperation,
|
|
57
54
|
_findCol,
|
|
58
55
|
type DataCubeQuerySnapshotColumn,
|
|
59
56
|
type DataCubeQuerySnapshotAggregateColumn,
|
|
@@ -71,6 +68,9 @@ import {
|
|
|
71
68
|
DataCubeFunction,
|
|
72
69
|
DEFAULT_LAMBDA_VARIABLE_NAME,
|
|
73
70
|
INTERNAL__FILLER_COUNT_AGG_COLUMN_NAME,
|
|
71
|
+
DataCubeQuerySortOperation,
|
|
72
|
+
DataCubeQueryFilterOperation,
|
|
73
|
+
DataCubeQueryFilterGroupOperation,
|
|
74
74
|
type DataCubeQueryFunctionMap,
|
|
75
75
|
} from './DataCubeQueryEngine.js';
|
|
76
76
|
|
|
@@ -249,29 +249,29 @@ export function _filter(
|
|
|
249
249
|
const _not = (fn: V1_AppliedFunction) =>
|
|
250
250
|
_function(_name(DataCubeFunction.NOT), [fn]);
|
|
251
251
|
switch (condition.operation) {
|
|
252
|
-
case
|
|
252
|
+
case DataCubeQueryFilterOperation.EQUAL:
|
|
253
253
|
return _cond(DataCubeFunction.EQUAL, _val());
|
|
254
|
-
case
|
|
254
|
+
case DataCubeQueryFilterOperation.GREATER_THAN:
|
|
255
255
|
return _cond(DataCubeFunction.GREATER_THAN, _val());
|
|
256
|
-
case
|
|
256
|
+
case DataCubeQueryFilterOperation.GREATER_THAN_OR_EQUAL:
|
|
257
257
|
return _cond(DataCubeFunction.GREATER_THAN_EQUAL, _val());
|
|
258
|
-
case
|
|
258
|
+
case DataCubeQueryFilterOperation.LESS_THAN:
|
|
259
259
|
return _cond(DataCubeFunction.LESS_THAN, _val());
|
|
260
|
-
case
|
|
260
|
+
case DataCubeQueryFilterOperation.LESS_THAN_OR_EQUAL:
|
|
261
261
|
return _cond(DataCubeFunction.LESS_THAN_EQUAL, _val());
|
|
262
|
-
case
|
|
262
|
+
case DataCubeQueryFilterOperation.CONTAINS:
|
|
263
263
|
return _cond(DataCubeFunction.CONTAINS, _val());
|
|
264
|
-
case
|
|
264
|
+
case DataCubeQueryFilterOperation.ENDS_WITH:
|
|
265
265
|
return _cond(DataCubeFunction.ENDS_WITH, _val());
|
|
266
|
-
case
|
|
266
|
+
case DataCubeQueryFilterOperation.STARTS_WITH:
|
|
267
267
|
return _cond(DataCubeFunction.STARTS_WITH, _val());
|
|
268
|
-
case
|
|
268
|
+
case DataCubeQueryFilterOperation.BLANK:
|
|
269
269
|
return _cond(DataCubeFunction.IS_EMPTY);
|
|
270
|
-
case
|
|
270
|
+
case DataCubeQueryFilterOperation.NOT_EQUAL:
|
|
271
271
|
return _not(_cond(DataCubeFunction.EQUAL, _val()));
|
|
272
|
-
case
|
|
272
|
+
case DataCubeQueryFilterOperation.NOT_BLANK:
|
|
273
273
|
return _not(_cond(DataCubeFunction.IS_EMPTY));
|
|
274
|
-
case
|
|
274
|
+
case DataCubeQueryFilterOperation.NOT_CONTAINS:
|
|
275
275
|
return _not(_cond(DataCubeFunction.CONTAINS, _val()));
|
|
276
276
|
default:
|
|
277
277
|
throw new UnsupportedOperationError(
|
|
@@ -332,6 +332,17 @@ export function buildExecutableQuery(
|
|
|
332
332
|
funcMap[funcMapKey] = func;
|
|
333
333
|
};
|
|
334
334
|
|
|
335
|
+
// --------------------------------- FILTER ---------------------------------
|
|
336
|
+
|
|
337
|
+
if (data.filter) {
|
|
338
|
+
_process(
|
|
339
|
+
'filter',
|
|
340
|
+
_function(_name(DataCubeFunction.FILTER), [
|
|
341
|
+
_lambda([_var()], [_filter(data.filter)]),
|
|
342
|
+
]),
|
|
343
|
+
);
|
|
344
|
+
}
|
|
345
|
+
|
|
335
346
|
// --------------------------------- LEAF EXTEND ---------------------------------
|
|
336
347
|
|
|
337
348
|
if (data.leafExtendedColumns.length) {
|
|
@@ -358,17 +369,6 @@ export function buildExecutableQuery(
|
|
|
358
369
|
);
|
|
359
370
|
}
|
|
360
371
|
|
|
361
|
-
// --------------------------------- FILTER ---------------------------------
|
|
362
|
-
|
|
363
|
-
if (data.filter) {
|
|
364
|
-
_process(
|
|
365
|
-
'filter',
|
|
366
|
-
_function(_name(DataCubeFunction.FILTER), [
|
|
367
|
-
_lambda([_var()], [_filter(data.filter)]),
|
|
368
|
-
]),
|
|
369
|
-
);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
372
|
// --------------------------------- GROUP BY ---------------------------------
|
|
373
373
|
|
|
374
374
|
if (data.groupBy) {
|
|
@@ -419,7 +419,7 @@ export function buildExecutableQuery(
|
|
|
419
419
|
data.sortColumns.map((col) =>
|
|
420
420
|
_function(
|
|
421
421
|
_name(
|
|
422
|
-
col.operation ===
|
|
422
|
+
col.operation === DataCubeQuerySortOperation.ASCENDING
|
|
423
423
|
? DataCubeFunction.ASC
|
|
424
424
|
: DataCubeFunction.DESC,
|
|
425
425
|
),
|