@finos/legend-data-cube 0.0.9 → 0.0.11
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/DataCube.d.ts +6 -1
- package/lib/components/DataCube.d.ts.map +1 -1
- package/lib/components/DataCube.js +35 -28
- package/lib/components/DataCube.js.map +1 -1
- package/lib/components/DataCubeProvider.d.ts +2 -10
- package/lib/components/DataCubeProvider.d.ts.map +1 -1
- package/lib/components/DataCubeProvider.js +3 -15
- package/lib/components/DataCubeProvider.js.map +1 -1
- package/lib/components/DataCubeView.d.ts +22 -0
- package/lib/components/DataCubeView.d.ts.map +1 -0
- package/lib/components/DataCubeView.js +34 -0
- package/lib/components/DataCubeView.js.map +1 -0
- package/lib/components/core/DataCubeAlert.d.ts.map +1 -1
- package/lib/components/core/DataCubeAlert.js +2 -4
- package/lib/components/core/DataCubeAlert.js.map +1 -1
- package/lib/components/core/DataCubeDocumentationPanel.d.ts.map +1 -1
- package/lib/components/core/DataCubeDocumentationPanel.js +1 -2
- package/lib/components/core/DataCubeDocumentationPanel.js.map +1 -1
- package/lib/components/core/DataCubeFormUtils.d.ts.map +1 -1
- package/lib/components/core/DataCubeFormUtils.js +7 -7
- package/lib/components/core/DataCubeFormUtils.js.map +1 -1
- package/lib/components/core/DataCubePureCodeEditorUtils.d.ts +3 -3
- package/lib/components/core/DataCubePureCodeEditorUtils.d.ts.map +1 -1
- package/lib/components/core/DataCubePureCodeEditorUtils.js +2 -2
- package/lib/components/core/DataCubePureCodeEditorUtils.js.map +1 -1
- package/lib/components/core/DataCubeSettingsPanel.d.ts.map +1 -1
- package/lib/components/core/DataCubeSettingsPanel.js +16 -16
- package/lib/components/core/DataCubeSettingsPanel.js.map +1 -1
- package/lib/components/view/editor/DataCubeEditor.js +3 -3
- package/lib/components/view/editor/DataCubeEditor.js.map +1 -1
- package/lib/components/view/editor/DataCubeEditorColumnPropertiesPanel.js +1 -1
- package/lib/components/view/editor/DataCubeEditorGeneralPropertiesPanel.js +2 -2
- package/lib/components/view/editor/DataCubeEditorGeneralPropertiesPanel.js.map +1 -1
- package/lib/components/view/extend/DataCubeColumnEditor.js +7 -7
- package/lib/components/view/extend/DataCubeColumnEditor.js.map +1 -1
- package/lib/components/view/grid/DataCubeGrid.d.ts.map +1 -1
- package/lib/components/view/grid/DataCubeGrid.js +12 -6
- package/lib/components/view/grid/DataCubeGrid.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +6 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -3
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/DataCubeAPI.d.ts +21 -0
- package/lib/stores/DataCubeAPI.d.ts.map +1 -0
- package/lib/stores/DataCubeAPI.js +17 -0
- package/lib/stores/DataCubeAPI.js.map +1 -0
- package/lib/stores/DataCubeOptions.d.ts +27 -0
- package/lib/stores/DataCubeOptions.d.ts.map +1 -0
- package/lib/stores/DataCubeOptions.js +17 -0
- package/lib/stores/DataCubeOptions.js.map +1 -0
- package/lib/stores/DataCubeSettings.d.ts +42 -0
- package/lib/stores/DataCubeSettings.d.ts.map +1 -0
- package/lib/stores/DataCubeSettings.js +76 -0
- package/lib/stores/DataCubeSettings.js.map +1 -0
- package/lib/stores/DataCubeState.d.ts +20 -6
- package/lib/stores/DataCubeState.d.ts.map +1 -1
- package/lib/stores/DataCubeState.js +61 -16
- package/lib/stores/DataCubeState.js.map +1 -1
- package/lib/stores/core/DataCubeConfigurationBuilder.d.ts +4 -9
- package/lib/stores/core/DataCubeConfigurationBuilder.d.ts.map +1 -1
- package/lib/stores/core/DataCubeConfigurationBuilder.js +1 -1
- package/lib/stores/core/DataCubeConfigurationBuilder.js.map +1 -1
- package/lib/stores/core/DataCubeEngine.d.ts +109 -88
- package/lib/stores/core/DataCubeEngine.d.ts.map +1 -1
- package/lib/stores/core/DataCubeEngine.js +166 -123
- package/lib/stores/core/DataCubeEngine.js.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilder.d.ts +5 -5
- package/lib/stores/core/DataCubeQueryBuilder.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilder.js +13 -18
- package/lib/stores/core/DataCubeQueryBuilder.js.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilderUtils.d.ts +7 -6
- package/lib/stores/core/DataCubeQueryBuilderUtils.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilderUtils.js +2 -1
- package/lib/stores/core/DataCubeQueryBuilderUtils.js.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshot.d.ts +12 -36
- package/lib/stores/core/DataCubeQuerySnapshot.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshot.js +5 -26
- package/lib/stores/core/DataCubeQuerySnapshot.js.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.d.ts +4 -3
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.js +9 -8
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.js.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.d.ts +2 -2
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.js +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.d.ts +5 -4
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.js.map +1 -1
- package/lib/stores/core/models/DataCubeColumn.d.ts +30 -0
- package/lib/stores/core/models/DataCubeColumn.d.ts.map +1 -0
- package/lib/stores/core/models/DataCubeColumn.js +23 -0
- package/lib/stores/core/models/DataCubeColumn.js.map +1 -0
- package/lib/stores/core/{DataCubeConfiguration.d.ts → models/DataCubeConfiguration.d.ts} +3 -2
- package/lib/stores/core/models/DataCubeConfiguration.d.ts.map +1 -0
- package/lib/stores/core/{DataCubeConfiguration.js → models/DataCubeConfiguration.js} +3 -1
- package/lib/stores/core/models/DataCubeConfiguration.js.map +1 -0
- package/lib/stores/core/{DataCubeQuery.d.ts → models/DataCubeQuery.d.ts} +1 -18
- package/lib/stores/core/models/DataCubeQuery.d.ts.map +1 -0
- package/lib/stores/core/models/DataCubeQuery.js +30 -0
- package/lib/stores/core/models/DataCubeQuery.js.map +1 -0
- package/lib/stores/core/models/DataCubeSource.d.ts +24 -0
- package/lib/stores/core/models/DataCubeSource.d.ts.map +1 -0
- package/lib/stores/core/models/DataCubeSource.js +22 -0
- package/lib/stores/core/models/DataCubeSource.js.map +1 -0
- package/lib/stores/view/DataCubeInfoState.d.ts +0 -4
- package/lib/stores/view/DataCubeInfoState.d.ts.map +1 -1
- package/lib/stores/view/DataCubeInfoState.js +10 -13
- package/lib/stores/view/DataCubeInfoState.js.map +1 -1
- package/lib/stores/view/DataCubeQuerySnapshotManager.d.ts +1 -1
- package/lib/stores/view/DataCubeQuerySnapshotManager.d.ts.map +1 -1
- package/lib/stores/view/DataCubeQuerySnapshotManager.js +4 -4
- package/lib/stores/view/DataCubeQuerySnapshotManager.js.map +1 -1
- package/lib/stores/view/DataCubeViewState.d.ts +5 -4
- package/lib/stores/view/DataCubeViewState.d.ts.map +1 -1
- package/lib/stores/view/DataCubeViewState.js +25 -10
- package/lib/stores/view/DataCubeViewState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.d.ts +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnSelectorState.js +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.d.ts +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.js +3 -2
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts +1 -3
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.js +0 -8
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.d.ts +6 -5
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.js +2 -1
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.d.ts +2 -1
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.js +6 -1
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorPanelState.d.ts +1 -1
- package/lib/stores/view/editor/DataCubeEditorPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorPivotLayoutPanelState.d.ts +1 -1
- package/lib/stores/view/editor/DataCubeEditorPivotLayoutPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.d.ts +1 -1
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.js +2 -1
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorState.d.ts +4 -3
- package/lib/stores/view/editor/DataCubeEditorState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorState.js +9 -8
- package/lib/stores/view/editor/DataCubeEditorState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.d.ts +1 -1
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.js +2 -1
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.js.map +1 -1
- package/lib/stores/view/extend/DataCubeColumnEditorState.d.ts +3 -3
- package/lib/stores/view/extend/DataCubeColumnEditorState.d.ts.map +1 -1
- package/lib/stores/view/extend/DataCubeColumnEditorState.js +17 -15
- package/lib/stores/view/extend/DataCubeColumnEditorState.js.map +1 -1
- package/lib/stores/view/extend/DataCubeExtendManagerState.d.ts +6 -5
- package/lib/stores/view/extend/DataCubeExtendManagerState.d.ts.map +1 -1
- package/lib/stores/view/extend/DataCubeExtendManagerState.js +10 -9
- package/lib/stores/view/extend/DataCubeExtendManagerState.js.map +1 -1
- package/lib/stores/view/filter/DataCubeFilterEditorState.d.ts +1 -1
- package/lib/stores/view/filter/DataCubeFilterEditorState.d.ts.map +1 -1
- package/lib/stores/view/filter/DataCubeFilterEditorState.js +2 -2
- package/lib/stores/view/filter/DataCubeFilterEditorState.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridClientEngine.d.ts +1 -1
- package/lib/stores/view/grid/DataCubeGridClientEngine.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridClientEngine.js +24 -23
- package/lib/stores/view/grid/DataCubeGridClientEngine.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridClientExportEngine.js +1 -1
- package/lib/stores/view/grid/DataCubeGridClientExportEngine.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.d.ts +1 -1
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.js +2 -1
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridControllerState.d.ts +13 -12
- package/lib/stores/view/grid/DataCubeGridControllerState.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridControllerState.js +3 -2
- package/lib/stores/view/grid/DataCubeGridControllerState.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridMenuBuilder.js +7 -7
- package/lib/stores/view/grid/DataCubeGridMenuBuilder.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridQueryBuilder.d.ts +1 -1
- package/lib/stores/view/grid/DataCubeGridQueryBuilder.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridQuerySnapshotBuilder.d.ts +2 -2
- package/lib/stores/view/grid/DataCubeGridQuerySnapshotBuilder.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridQuerySnapshotBuilder.js +3 -2
- package/lib/stores/view/grid/DataCubeGridQuerySnapshotBuilder.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridState.d.ts +1 -1
- package/lib/stores/view/grid/DataCubeGridState.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridState.js +4 -4
- package/lib/stores/view/grid/DataCubeGridState.js.map +1 -1
- package/package.json +4 -4
- package/src/components/DataCube.tsx +48 -65
- package/src/components/DataCubeProvider.tsx +3 -31
- package/src/components/DataCubeView.tsx +74 -0
- package/src/components/core/DataCubeAlert.tsx +2 -4
- package/src/components/core/DataCubeDocumentationPanel.tsx +1 -2
- package/src/components/core/DataCubeFormUtils.tsx +7 -8
- package/src/components/core/DataCubePureCodeEditorUtils.tsx +7 -8
- package/src/components/core/DataCubeSettingsPanel.tsx +30 -22
- package/src/components/view/editor/DataCubeEditor.tsx +3 -3
- package/src/components/view/editor/DataCubeEditorColumnPropertiesPanel.tsx +1 -1
- package/src/components/view/editor/DataCubeEditorGeneralPropertiesPanel.tsx +2 -2
- package/src/components/view/extend/DataCubeColumnEditor.tsx +7 -7
- package/src/components/view/grid/DataCubeGrid.tsx +13 -7
- package/src/index.tsx +8 -4
- package/src/stores/DataCubeAPI.ts +22 -0
- package/src/stores/DataCubeOptions.ts +34 -0
- package/src/stores/DataCubeSettings.ts +107 -0
- package/src/stores/DataCubeState.tsx +92 -21
- package/src/stores/core/DataCubeConfigurationBuilder.ts +6 -6
- package/src/stores/core/DataCubeEngine.tsx +459 -0
- package/src/stores/core/DataCubeQueryBuilder.ts +17 -31
- package/src/stores/core/DataCubeQueryBuilderUtils.ts +6 -9
- package/src/stores/core/DataCubeQuerySnapshot.ts +23 -87
- package/src/stores/core/DataCubeQuerySnapshotBuilder.ts +11 -20
- package/src/stores/core/DataCubeQuerySnapshotBuilderUtils.ts +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation.ts +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__First.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterEditorState.ts +4 -4
- package/src/stores/core/filter/DataCubeQueryFilterOperation.ts +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__Contain.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EndWith.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__Equal.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__IsNull.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThan.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotContain.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__StartWith.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.tsx +4 -6
- package/src/stores/core/models/DataCubeColumn.ts +34 -0
- package/src/stores/core/{DataCubeConfiguration.ts → models/DataCubeConfiguration.ts} +4 -1
- package/src/stores/core/models/DataCubeQuery.ts +41 -0
- package/src/stores/core/models/DataCubeSource.ts +25 -0
- package/src/stores/view/DataCubeInfoState.ts +16 -18
- package/src/stores/view/DataCubeQuerySnapshotManager.ts +5 -5
- package/src/stores/view/DataCubeViewState.ts +40 -13
- package/src/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.ts +1 -1
- package/src/stores/view/editor/DataCubeEditorColumnSelectorState.ts +1 -1
- package/src/stores/view/editor/DataCubeEditorColumnsPanelState.ts +3 -5
- package/src/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.ts +1 -11
- package/src/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.ts +7 -7
- package/src/stores/view/editor/DataCubeEditorMutableConfiguration.ts +8 -1
- package/src/stores/view/editor/DataCubeEditorPanelState.ts +1 -1
- package/src/stores/view/editor/DataCubeEditorPivotLayoutPanelState.ts +1 -1
- package/src/stores/view/editor/DataCubeEditorSortsPanelState.ts +3 -5
- package/src/stores/view/editor/DataCubeEditorState.tsx +13 -10
- package/src/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.ts +3 -5
- package/src/stores/view/extend/DataCubeColumnEditorState.tsx +27 -19
- package/src/stores/view/extend/DataCubeExtendManagerState.tsx +17 -13
- package/src/stores/view/filter/DataCubeFilterEditorState.tsx +2 -2
- package/src/stores/view/grid/DataCubeGridClientEngine.ts +47 -42
- package/src/stores/view/grid/DataCubeGridClientExportEngine.ts +1 -1
- package/src/stores/view/grid/DataCubeGridConfigurationBuilder.tsx +6 -6
- package/src/stores/view/grid/DataCubeGridControllerState.ts +11 -9
- package/src/stores/view/grid/DataCubeGridMenuBuilder.tsx +8 -8
- package/src/stores/view/grid/DataCubeGridQueryBuilder.ts +1 -1
- package/src/stores/view/grid/DataCubeGridQuerySnapshotBuilder.ts +3 -5
- package/src/stores/view/grid/DataCubeGridState.ts +4 -4
- package/tsconfig.json +9 -5
- package/lib/stores/core/DataCubeApplicationEngine.d.ts +0 -63
- package/lib/stores/core/DataCubeApplicationEngine.d.ts.map +0 -1
- package/lib/stores/core/DataCubeApplicationEngine.js +0 -94
- package/lib/stores/core/DataCubeApplicationEngine.js.map +0 -1
- package/lib/stores/core/DataCubeConfiguration.d.ts.map +0 -1
- package/lib/stores/core/DataCubeConfiguration.js.map +0 -1
- package/lib/stores/core/DataCubeEngineUtils.d.ts +0 -2
- package/lib/stores/core/DataCubeEngineUtils.d.ts.map +0 -1
- package/lib/stores/core/DataCubeEngineUtils.js +0 -2
- package/lib/stores/core/DataCubeEngineUtils.js.map +0 -1
- package/lib/stores/core/DataCubeQuery.d.ts.map +0 -1
- package/lib/stores/core/DataCubeQuery.js +0 -79
- package/lib/stores/core/DataCubeQuery.js.map +0 -1
- package/src/stores/core/DataCubeApplicationEngine.tsx +0 -200
- package/src/stores/core/DataCubeEngine.ts +0 -327
- package/src/stores/core/DataCubeEngineUtils.ts +0 -0
- package/src/stores/core/DataCubeQuery.ts +0 -130
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
/**
|
|
2
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
4
|
*
|
|
@@ -13,76 +14,62 @@
|
|
|
13
14
|
* See the License for the specific language governing permissions and
|
|
14
15
|
* limitations under the License.
|
|
15
16
|
*/
|
|
16
|
-
import {
|
|
17
|
-
import { getFilterOperation } from '
|
|
18
|
-
import { getAggregateOperation } from '
|
|
19
|
-
import { DataCubeQueryAggregateOperation__Sum } from '
|
|
20
|
-
import { DataCubeQueryAggregateOperation__Average } from '
|
|
21
|
-
import { DataCubeQueryAggregateOperation__Count } from '
|
|
22
|
-
import { DataCubeQueryAggregateOperation__Min } from '
|
|
23
|
-
import { DataCubeQueryAggregateOperation__Max } from '
|
|
24
|
-
import { DataCubeQueryAggregateOperation__UniqueValue } from '
|
|
25
|
-
import { DataCubeQueryAggregateOperation__First } from '
|
|
26
|
-
import { DataCubeQueryAggregateOperation__Last } from '
|
|
27
|
-
import { DataCubeQueryAggregateOperation__VariancePopulation } from '
|
|
28
|
-
import { DataCubeQueryAggregateOperation__VarianceSample } from '
|
|
29
|
-
import { DataCubeQueryAggregateOperation__StdDevPopulation } from '
|
|
30
|
-
import { DataCubeQueryAggregateOperation__StdDevSample } from '
|
|
31
|
-
import { DataCubeQueryAggregateOperation__JoinStrings } from '
|
|
32
|
-
import { DataCubeQueryFilterOperation__Equal } from '
|
|
33
|
-
import { DataCubeQueryFilterOperation__LessThanOrEqual } from '
|
|
34
|
-
import { DataCubeQueryFilterOperation__LessThan } from '
|
|
35
|
-
import { DataCubeQueryFilterOperation__GreaterThanOrEqual } from '
|
|
36
|
-
import { DataCubeQueryFilterOperation__GreaterThan } from '
|
|
37
|
-
import { DataCubeQueryFilterOperation__NotEqual } from '
|
|
38
|
-
import { DataCubeQueryFilterOperation__EqualColumn } from '
|
|
39
|
-
import { DataCubeQueryFilterOperation__EqualCaseInsensitive } from '
|
|
40
|
-
import { DataCubeQueryFilterOperation__NotEqualCaseInsensitive } from '
|
|
41
|
-
import { DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn } from '
|
|
42
|
-
import { DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn } from '
|
|
43
|
-
import { DataCubeQueryFilterOperation__NotEqualColumn } from '
|
|
44
|
-
import { DataCubeQueryFilterOperation__LessThanColumn } from '
|
|
45
|
-
import { DataCubeQueryFilterOperation__LessThanOrEqualColumn } from '
|
|
46
|
-
import { DataCubeQueryFilterOperation__GreaterThanColumn } from '
|
|
47
|
-
import { DataCubeQueryFilterOperation__GreaterThanOrEqualColumn } from '
|
|
48
|
-
import { DataCubeQueryFilterOperation__Contain } from '
|
|
49
|
-
import { DataCubeQueryFilterOperation__ContainCaseInsensitive } from '
|
|
50
|
-
import { DataCubeQueryFilterOperation__NotContain } from '
|
|
51
|
-
import { DataCubeQueryFilterOperation__StartWith } from '
|
|
52
|
-
import { DataCubeQueryFilterOperation__StartWithCaseInsensitive } from '
|
|
53
|
-
import { DataCubeQueryFilterOperation__NotStartWith } from '
|
|
54
|
-
import { DataCubeQueryFilterOperation__EndWith } from '
|
|
55
|
-
import { DataCubeQueryFilterOperation__EndWithCaseInsensitive } from '
|
|
56
|
-
import { DataCubeQueryFilterOperation__NotEndWith } from '
|
|
57
|
-
import { DataCubeQueryFilterOperation__IsNull } from '
|
|
58
|
-
import { DataCubeQueryFilterOperation__IsNotNull } from '
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import { SerializationFactory, usingModelSchema } from '@finos/legend-shared';
|
|
62
|
-
import { createModelSchema, custom, primitive } from 'serializr';
|
|
63
|
-
import { DataCubeQuery } from './DataCubeQuery.js';
|
|
64
|
-
import { DataCubeFont } from '../core/DataCubeQueryEngine.js';
|
|
65
|
-
import { action, makeObservable, observable } from 'mobx';
|
|
17
|
+
import { PRIMITIVE_TYPE, } from '@finos/legend-graph';
|
|
18
|
+
import { getFilterOperation } from './filter/DataCubeQueryFilterOperation.js';
|
|
19
|
+
import { getAggregateOperation } from './aggregation/DataCubeQueryAggregateOperation.js';
|
|
20
|
+
import { DataCubeQueryAggregateOperation__Sum } from './aggregation/DataCubeQueryAggregateOperation__Sum.js';
|
|
21
|
+
import { DataCubeQueryAggregateOperation__Average } from './aggregation/DataCubeQueryAggregateOperation__Average.js';
|
|
22
|
+
import { DataCubeQueryAggregateOperation__Count } from './aggregation/DataCubeQueryAggregateOperation__Count.js';
|
|
23
|
+
import { DataCubeQueryAggregateOperation__Min } from './aggregation/DataCubeQueryAggregateOperation__Min.js';
|
|
24
|
+
import { DataCubeQueryAggregateOperation__Max } from './aggregation/DataCubeQueryAggregateOperation__Max.js';
|
|
25
|
+
import { DataCubeQueryAggregateOperation__UniqueValue } from './aggregation/DataCubeQueryAggregateOperation__UniqueValue.js';
|
|
26
|
+
import { DataCubeQueryAggregateOperation__First } from './aggregation/DataCubeQueryAggregateOperation__First.js';
|
|
27
|
+
import { DataCubeQueryAggregateOperation__Last } from './aggregation/DataCubeQueryAggregateOperation__Last.js';
|
|
28
|
+
import { DataCubeQueryAggregateOperation__VariancePopulation } from './aggregation/DataCubeQueryAggregateOperation__VariancePopulation.js';
|
|
29
|
+
import { DataCubeQueryAggregateOperation__VarianceSample } from './aggregation/DataCubeQueryAggregateOperation__VarianceSample.js';
|
|
30
|
+
import { DataCubeQueryAggregateOperation__StdDevPopulation } from './aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.js';
|
|
31
|
+
import { DataCubeQueryAggregateOperation__StdDevSample } from './aggregation/DataCubeQueryAggregateOperation__StdDevSample.js';
|
|
32
|
+
import { DataCubeQueryAggregateOperation__JoinStrings } from './aggregation/DataCubeQueryAggregateOperation__JoinStrings.js';
|
|
33
|
+
import { DataCubeQueryFilterOperation__Equal } from './filter/DataCubeQueryFilterOperation__Equal.js';
|
|
34
|
+
import { DataCubeQueryFilterOperation__LessThanOrEqual } from './filter/DataCubeQueryFilterOperation__LessThanOrEqual.js';
|
|
35
|
+
import { DataCubeQueryFilterOperation__LessThan } from './filter/DataCubeQueryFilterOperation__LessThan.js';
|
|
36
|
+
import { DataCubeQueryFilterOperation__GreaterThanOrEqual } from './filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.js';
|
|
37
|
+
import { DataCubeQueryFilterOperation__GreaterThan } from './filter/DataCubeQueryFilterOperation__GreaterThan.js';
|
|
38
|
+
import { DataCubeQueryFilterOperation__NotEqual } from './filter/DataCubeQueryFilterOperation__NotEqual.js';
|
|
39
|
+
import { DataCubeQueryFilterOperation__EqualColumn } from './filter/DataCubeQueryFilterOperation__EqualColumn.js';
|
|
40
|
+
import { DataCubeQueryFilterOperation__EqualCaseInsensitive } from './filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.js';
|
|
41
|
+
import { DataCubeQueryFilterOperation__NotEqualCaseInsensitive } from './filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.js';
|
|
42
|
+
import { DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn } from './filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.js';
|
|
43
|
+
import { DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn } from './filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.js';
|
|
44
|
+
import { DataCubeQueryFilterOperation__NotEqualColumn } from './filter/DataCubeQueryFilterOperation__NotEqualColumn.js';
|
|
45
|
+
import { DataCubeQueryFilterOperation__LessThanColumn } from './filter/DataCubeQueryFilterOperation__LessThanColumn.js';
|
|
46
|
+
import { DataCubeQueryFilterOperation__LessThanOrEqualColumn } from './filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.js';
|
|
47
|
+
import { DataCubeQueryFilterOperation__GreaterThanColumn } from './filter/DataCubeQueryFilterOperation__GreaterThanColumn.js';
|
|
48
|
+
import { DataCubeQueryFilterOperation__GreaterThanOrEqualColumn } from './filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.js';
|
|
49
|
+
import { DataCubeQueryFilterOperation__Contain } from './filter/DataCubeQueryFilterOperation__Contain.js';
|
|
50
|
+
import { DataCubeQueryFilterOperation__ContainCaseInsensitive } from './filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.js';
|
|
51
|
+
import { DataCubeQueryFilterOperation__NotContain } from './filter/DataCubeQueryFilterOperation__NotContain.js';
|
|
52
|
+
import { DataCubeQueryFilterOperation__StartWith } from './filter/DataCubeQueryFilterOperation__StartWith.js';
|
|
53
|
+
import { DataCubeQueryFilterOperation__StartWithCaseInsensitive } from './filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.js';
|
|
54
|
+
import { DataCubeQueryFilterOperation__NotStartWith } from './filter/DataCubeQueryFilterOperation__NotStartWith.js';
|
|
55
|
+
import { DataCubeQueryFilterOperation__EndWith } from './filter/DataCubeQueryFilterOperation__EndWith.js';
|
|
56
|
+
import { DataCubeQueryFilterOperation__EndWithCaseInsensitive } from './filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.js';
|
|
57
|
+
import { DataCubeQueryFilterOperation__NotEndWith } from './filter/DataCubeQueryFilterOperation__NotEndWith.js';
|
|
58
|
+
import { DataCubeQueryFilterOperation__IsNull } from './filter/DataCubeQueryFilterOperation__IsNull.js';
|
|
59
|
+
import { DataCubeQueryFilterOperation__IsNotNull } from './filter/DataCubeQueryFilterOperation__IsNotNull.js';
|
|
60
|
+
import { CODE_EDITOR_LANGUAGE, configureCodeEditor, setupPureLanguageService, } from '@finos/legend-code-editor';
|
|
61
|
+
import { DataCubeFont } from './DataCubeQueryEngine.js';
|
|
66
62
|
import { buildExecutableQuery } from './DataCubeQueryBuilder.js';
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
sourceQuery: custom((val) => V1_serializeValueSpecification(val, []), (val) => V1_deserializeValueSpecification(val, [])),
|
|
76
|
-
timestamp: primitive(),
|
|
77
|
-
}));
|
|
78
|
-
}
|
|
79
|
-
export const DEFAULT_ENABLE_DEBUG_MODE = false;
|
|
80
|
-
export const DEFAULT_GRID_CLIENT_ROW_BUFFER = 50;
|
|
81
|
-
export const DEFAULT_GRID_CLIENT_PURGE_CLOSED_ROW_NODES = false;
|
|
82
|
-
export const DEFAULT_GRID_CLIENT_SUPPRESS_LARGE_DATASET_WARNING = false;
|
|
63
|
+
import { LicenseManager } from '@ag-grid-enterprise/core';
|
|
64
|
+
import { INTERNAL__DataCubeSource, } from './models/DataCubeSource.js';
|
|
65
|
+
import { _primitiveValue } from './DataCubeQueryBuilderUtils.js';
|
|
66
|
+
import { uuid, } from '@finos/legend-shared';
|
|
67
|
+
import { Alert, AlertType, } from '../../components/core/DataCubeAlert.js';
|
|
68
|
+
import { DEFAULT_SMALL_ALERT_WINDOW_CONFIG, LayoutConfiguration, LayoutManagerState, WindowState, } from './DataCubeLayoutManagerState.js';
|
|
69
|
+
import { editor as monacoEditorAPI, Uri } from 'monaco-editor';
|
|
70
|
+
import { DataCubeCodeCheckErrorAlert } from '../../components/core/DataCubeCodeCheckErrorAlert.js';
|
|
83
71
|
export class DataCubeEngine {
|
|
84
|
-
|
|
85
|
-
gridClientTaskRunner;
|
|
72
|
+
layout = new LayoutManagerState();
|
|
86
73
|
filterOperations = [
|
|
87
74
|
new DataCubeQueryFilterOperation__LessThan(),
|
|
88
75
|
new DataCubeQueryFilterOperation__LessThanOrEqual(),
|
|
@@ -127,65 +114,30 @@ export class DataCubeEngine {
|
|
|
127
114
|
new DataCubeQueryAggregateOperation__StdDevSample(),
|
|
128
115
|
new DataCubeQueryAggregateOperation__JoinStrings(),
|
|
129
116
|
];
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
constructor() {
|
|
135
|
-
makeObservable(this, {
|
|
136
|
-
enableDebugMode: observable,
|
|
137
|
-
setEnableDebugMode: action,
|
|
138
|
-
gridClientRowBuffer: observable,
|
|
139
|
-
setGridClientRowBuffer: action,
|
|
140
|
-
gridClientPurgeClosedRowNodes: observable,
|
|
141
|
-
setGridClientPurgeClosedRowNodes: action,
|
|
142
|
-
gridClientSuppressLargeDatasetWarning: observable,
|
|
143
|
-
setGridClientSuppressLargeDatasetWarning: action,
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
getFilterOperation(value) {
|
|
147
|
-
return getFilterOperation(value, this.filterOperations);
|
|
148
|
-
}
|
|
149
|
-
getAggregateOperation(value) {
|
|
150
|
-
return getAggregateOperation(value, this.aggregateOperations);
|
|
151
|
-
}
|
|
152
|
-
setEnableDebugMode(value) {
|
|
153
|
-
this.enableDebugMode = value;
|
|
154
|
-
}
|
|
155
|
-
setGridClientRowBuffer(value) {
|
|
156
|
-
this.gridClientRowBuffer = value;
|
|
157
|
-
this.propagateGridOptionUpdates();
|
|
158
|
-
}
|
|
159
|
-
setGridClientPurgeClosedRowNodes(value) {
|
|
160
|
-
this.gridClientPurgeClosedRowNodes = value;
|
|
161
|
-
this.propagateGridOptionUpdates();
|
|
162
|
-
}
|
|
163
|
-
setGridClientSuppressLargeDatasetWarning(value) {
|
|
164
|
-
this.gridClientSuppressLargeDatasetWarning = value;
|
|
117
|
+
async fetchConfiguration() {
|
|
118
|
+
return {
|
|
119
|
+
gridClientLicense: undefined,
|
|
120
|
+
};
|
|
165
121
|
}
|
|
166
122
|
async initialize() {
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
169
|
-
|
|
170
|
-
LicenseManager.setLicenseKey(info.gridClientLicense);
|
|
123
|
+
const config = await this.fetchConfiguration();
|
|
124
|
+
if (config.gridClientLicense) {
|
|
125
|
+
LicenseManager.setLicenseKey(config.gridClientLicense);
|
|
171
126
|
}
|
|
172
127
|
await configureCodeEditor(DataCubeFont.ROBOTO_MONO, (error) => {
|
|
173
128
|
throw error;
|
|
174
129
|
});
|
|
175
130
|
setupPureLanguageService({});
|
|
176
131
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
rowBuffer: this.gridClientRowBuffer,
|
|
181
|
-
purgeClosedRowNodes: this.gridClientPurgeClosedRowNodes,
|
|
182
|
-
});
|
|
183
|
-
});
|
|
132
|
+
// ------------------------------- CORE OPERATIONS -------------------------------
|
|
133
|
+
getFilterOperation(value) {
|
|
134
|
+
return getFilterOperation(value, this.filterOperations);
|
|
184
135
|
}
|
|
185
|
-
|
|
186
|
-
this.
|
|
187
|
-
|
|
188
|
-
|
|
136
|
+
getAggregateOperation(value) {
|
|
137
|
+
return getAggregateOperation(value, this.aggregateOperations);
|
|
138
|
+
}
|
|
139
|
+
async getInitialInput() {
|
|
140
|
+
return undefined;
|
|
189
141
|
}
|
|
190
142
|
/**
|
|
191
143
|
* By default, for a function chain, Pure grammar composer will extract the first parameter of the first function
|
|
@@ -196,11 +148,102 @@ export class DataCubeEngine {
|
|
|
196
148
|
* Then remove this dummy value from the final code.
|
|
197
149
|
*/
|
|
198
150
|
async getPartialQueryCode(snapshot, pretty) {
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
return (await this.
|
|
202
|
-
|
|
203
|
-
|
|
151
|
+
const source = new INTERNAL__DataCubeSource();
|
|
152
|
+
source.query = _primitiveValue(PRIMITIVE_TYPE.STRING, '');
|
|
153
|
+
return (await this.getValueSpecificationCode(buildExecutableQuery(snapshot, source, () => undefined, this.filterOperations, this.aggregateOperations), pretty)).substring(`''->`.length);
|
|
154
|
+
}
|
|
155
|
+
// ---------------------------------- DOCUMENTATION ----------------------------------
|
|
156
|
+
getDocumentationURL() {
|
|
157
|
+
return undefined;
|
|
158
|
+
}
|
|
159
|
+
getDocumentationEntry(key) {
|
|
160
|
+
return undefined;
|
|
161
|
+
}
|
|
162
|
+
shouldDisplayDocumentationEntry(entry) {
|
|
163
|
+
return false;
|
|
164
|
+
}
|
|
165
|
+
// ---------------------------------- LOGGING ----------------------------------
|
|
166
|
+
logDebug(message, ...data) {
|
|
167
|
+
// do nothing
|
|
168
|
+
}
|
|
169
|
+
debugProcess(processName, ...data) {
|
|
170
|
+
// do nothing
|
|
171
|
+
}
|
|
172
|
+
logInfo(event, ...data) {
|
|
173
|
+
// do nothing
|
|
174
|
+
}
|
|
175
|
+
logWarning(event, ...data) {
|
|
176
|
+
// do nothing
|
|
177
|
+
}
|
|
178
|
+
logError(event, ...data) {
|
|
179
|
+
// do nothing
|
|
180
|
+
}
|
|
181
|
+
logUnhandledError(error) {
|
|
182
|
+
// do nothing
|
|
183
|
+
}
|
|
184
|
+
logIllegalStateError(message, error) {
|
|
185
|
+
// do nothing
|
|
186
|
+
}
|
|
187
|
+
// ---------------------------------- ALERT ----------------------------------
|
|
188
|
+
alert(options) {
|
|
189
|
+
const { message, type, text, actions, windowTitle, windowConfig } = options;
|
|
190
|
+
const window = new WindowState(new LayoutConfiguration(windowTitle ?? '', () => (_jsx(Alert, { type: type, message: message, text: text, actions: actions, onClose: () => this.layout.closeWindow(window) }))));
|
|
191
|
+
window.configuration.window =
|
|
192
|
+
windowConfig ?? DEFAULT_SMALL_ALERT_WINDOW_CONFIG;
|
|
193
|
+
this.layout.newWindow(window);
|
|
194
|
+
}
|
|
195
|
+
alertError(error, options) {
|
|
196
|
+
const { message, text, actions, windowTitle, windowConfig } = options;
|
|
197
|
+
const window = new WindowState(new LayoutConfiguration(windowTitle ?? 'Error', () => (_jsx(Alert, { type: AlertType.ERROR, message: message, text: text, actions: actions }))));
|
|
198
|
+
window.configuration.window =
|
|
199
|
+
windowConfig ?? DEFAULT_SMALL_ALERT_WINDOW_CONFIG;
|
|
200
|
+
this.layout.newWindow(window);
|
|
201
|
+
}
|
|
202
|
+
alertUnhandledError(error) {
|
|
203
|
+
this.logUnhandledError(error);
|
|
204
|
+
this.alertError(error, {
|
|
205
|
+
message: error.message,
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
alertCodeCheckError(error, code, codePrefix, options) {
|
|
209
|
+
const { message, text, windowTitle, windowConfig } = options;
|
|
210
|
+
// correct the source information since we added prefix to the code
|
|
211
|
+
// and reveal error in the editor
|
|
212
|
+
if (error.sourceInformation) {
|
|
213
|
+
error.sourceInformation.startColumn -=
|
|
214
|
+
error.sourceInformation.startLine === 1 ? codePrefix.length : 0;
|
|
215
|
+
error.sourceInformation.endColumn -=
|
|
216
|
+
error.sourceInformation.endLine === 1 ? codePrefix.length : 0;
|
|
217
|
+
const editorModel = monacoEditorAPI.createModel(code, CODE_EDITOR_LANGUAGE.PURE, Uri.file(`/${uuid()}.pure`));
|
|
218
|
+
const fullRange = editorModel.getFullModelRange();
|
|
219
|
+
if (error.sourceInformation.startLine < 1 ||
|
|
220
|
+
(error.sourceInformation.startLine === 1 &&
|
|
221
|
+
error.sourceInformation.startColumn < 1) ||
|
|
222
|
+
error.sourceInformation.endLine > fullRange.endLineNumber ||
|
|
223
|
+
(error.sourceInformation.endLine === fullRange.endLineNumber &&
|
|
224
|
+
error.sourceInformation.endColumn > fullRange.endColumn)) {
|
|
225
|
+
error.sourceInformation.startColumn = fullRange.startColumn;
|
|
226
|
+
error.sourceInformation.startLine = fullRange.startLineNumber;
|
|
227
|
+
error.sourceInformation.endColumn = fullRange.endColumn;
|
|
228
|
+
error.sourceInformation.endLine = fullRange.endLineNumber;
|
|
229
|
+
}
|
|
230
|
+
const window = new WindowState(new LayoutConfiguration(windowTitle ?? 'Error', () => (_jsx(DataCubeCodeCheckErrorAlert, { editorModel: editorModel, error: error, message: message, text: text }))));
|
|
231
|
+
window.configuration.window = windowConfig ?? {
|
|
232
|
+
width: 500,
|
|
233
|
+
height: 400,
|
|
234
|
+
minWidth: 300,
|
|
235
|
+
minHeight: 300,
|
|
236
|
+
center: true,
|
|
237
|
+
};
|
|
238
|
+
this.layout.newWindow(window);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
// ---------------------------------- MISC ----------------------------------
|
|
242
|
+
openLink(url) {
|
|
243
|
+
// do nothing
|
|
244
|
+
}
|
|
245
|
+
sendTelemetry(event, data) {
|
|
246
|
+
// do nothing
|
|
204
247
|
}
|
|
205
248
|
}
|
|
206
249
|
//# sourceMappingURL=DataCubeEngine.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeEngine.js","sourceRoot":"","sources":["../../../src/stores/core/DataCubeEngine.
|
|
1
|
+
{"version":3,"file":"DataCubeEngine.js","sourceRoot":"","sources":["../../../src/stores/core/DataCubeEngine.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AACzF,OAAO,EAAE,oCAAoC,EAAE,MAAM,uDAAuD,CAAC;AAC7G,OAAO,E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AAI,WAAW,CAC5B,IAAI,mBAAmB,CAAC,WAAW,IAAI,OAAO,EAAE,GAAG,EAAE,CAAC,CACpD,KAAC,2BAA2B,IAC1B,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,GACV,CACH,CAAC,CACH,CAAC;YACF,MAAM,CAAC,aAAa,CAAC,MAAM,GAAG,YAAY,IAAI;gBAC5C,KAAK,EAAE,GAAG;gBACV,MAAM,EAAE,GAAG;gBACX,QAAQ,EAAE,GAAG;gBACb,SAAS,EAAE,GAAG;gBACd,MAAM,EAAE,IAAI;aACb,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAED,6EAA6E;IAE7E,QAAQ,CAAC,GAAW;QAClB,aAAa;IACf,CAAC;IAED,aAAa,CAAC,KAAa,EAAE,IAAiB;QAC5C,aAAa;IACf,CAAC;CACF"}
|
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
* This and its corresponding utilitites are used to build the executable query from
|
|
20
20
|
* the query snapshot. The executable query is then used to fetch data.
|
|
21
21
|
***************************************************************************************/
|
|
22
|
-
import { type V1_AppliedFunction
|
|
22
|
+
import { type V1_AppliedFunction } from '@finos/legend-graph';
|
|
23
23
|
import { type DataCubeQuerySnapshot } from './DataCubeQuerySnapshot.js';
|
|
24
24
|
import { type DataCubeQueryFunctionMap } from './DataCubeQueryEngine.js';
|
|
25
|
-
import { DataCubeConfiguration } from './DataCubeConfiguration.js';
|
|
25
|
+
import { DataCubeConfiguration } from './models/DataCubeConfiguration.js';
|
|
26
26
|
import type { DataCubeQueryFilterOperation } from './filter/DataCubeQueryFilterOperation.js';
|
|
27
27
|
import type { DataCubeQueryAggregateOperation } from './aggregation/DataCubeQueryAggregateOperation.js';
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
import type { DataCubeSource } from './models/DataCubeSource.js';
|
|
29
|
+
export declare function buildExecutableQuery(snapshot: DataCubeQuerySnapshot, source: DataCubeSource, executionContextBuilder: (source: DataCubeSource) => V1_AppliedFunction | undefined, filterOperations: DataCubeQueryFilterOperation[], aggregateOperations: DataCubeQueryAggregateOperation[], options?: {
|
|
30
30
|
postProcessor?: (snapshot: DataCubeQuerySnapshot, sequence: V1_AppliedFunction[], funcMap: DataCubeQueryFunctionMap, configuration: DataCubeConfiguration, filterOperations: DataCubeQueryFilterOperation[], aggregateOperations: DataCubeQueryAggregateOperation[]) => void;
|
|
31
31
|
pagination?: {
|
|
32
32
|
start: number;
|
|
33
33
|
end: number;
|
|
34
34
|
} | undefined;
|
|
35
|
-
}): V1_ValueSpecification;
|
|
35
|
+
}): import("@finos/legend-graph").V1_ValueSpecification;
|
|
36
36
|
//# sourceMappingURL=DataCubeQueryBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeQueryBuilder.d.ts","sourceRoot":"","sources":["../../../src/stores/core/DataCubeQueryBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;yFAKyF;AAEzF,OAAO,
|
|
1
|
+
{"version":3,"file":"DataCubeQueryBuilder.d.ts","sourceRoot":"","sources":["../../../src/stores/core/DataCubeQueryBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;yFAKyF;AAEzF,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,OAAO,EAGL,KAAK,wBAAwB,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAiB7F,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACxG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,qBAAqB,EAC/B,MAAM,EAAE,cAAc,EACtB,uBAAuB,EAAE,CACvB,MAAM,EAAE,cAAc,KACnB,kBAAkB,GAAG,SAAS,EACnC,gBAAgB,EAAE,4BAA4B,EAAE,EAChD,mBAAmB,EAAE,+BAA+B,EAAE,EACtD,OAAO,CAAC,EAAE;IACR,aAAa,CAAC,EAAE,CACd,QAAQ,EAAE,qBAAqB,EAC/B,QAAQ,EAAE,kBAAkB,EAAE,EAC9B,OAAO,EAAE,wBAAwB,EACjC,aAAa,EAAE,qBAAqB,EACpC,gBAAgB,EAAE,4BAA4B,EAAE,EAChD,mBAAmB,EAAE,+BAA+B,EAAE,KACnD,IAAI,CAAC;IACV,UAAU,CAAC,EACP;QACE,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;KACb,GACD,SAAS,CAAC;CACf,uDA2MF"}
|
|
@@ -19,15 +19,14 @@
|
|
|
19
19
|
* This and its corresponding utilitites are used to build the executable query from
|
|
20
20
|
* the query snapshot. The executable query is then used to fetch data.
|
|
21
21
|
***************************************************************************************/
|
|
22
|
-
import { PRIMITIVE_TYPE
|
|
22
|
+
import { PRIMITIVE_TYPE } from '@finos/legend-graph';
|
|
23
23
|
import {} from './DataCubeQuerySnapshot.js';
|
|
24
|
-
import { guaranteeNonNullable
|
|
24
|
+
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
25
25
|
import { DataCubeFunction, DataCubeQuerySortDirection, } from './DataCubeQueryEngine.js';
|
|
26
|
-
import { DataCubeConfiguration } from './DataCubeConfiguration.js';
|
|
27
|
-
import { _col, _collection, _cols, _colSpec, _deserializeLambda,
|
|
28
|
-
export function buildExecutableQuery(snapshot, filterOperations, aggregateOperations, options) {
|
|
26
|
+
import { DataCubeConfiguration } from './models/DataCubeConfiguration.js';
|
|
27
|
+
import { _col, _collection, _cols, _colSpec, _deserializeLambda, _filter, _function, _groupByAggCols, _lambda, _pivotAggCols, _castCols, _primitiveValue, _var, _functionCompositionProcessor, } from './DataCubeQueryBuilderUtils.js';
|
|
28
|
+
export function buildExecutableQuery(snapshot, source, executionContextBuilder, filterOperations, aggregateOperations, options) {
|
|
29
29
|
const data = snapshot.data;
|
|
30
|
-
const sourceQuery = V1_deserializeValueSpecification(data.sourceQuery, []);
|
|
31
30
|
const configuration = DataCubeConfiguration.serialization.fromJson(data.configuration);
|
|
32
31
|
const sequence = [];
|
|
33
32
|
const funcMap = {};
|
|
@@ -114,21 +113,17 @@ export function buildExecutableQuery(snapshot, filterOperations, aggregateOperat
|
|
|
114
113
|
_primitiveValue(PRIMITIVE_TYPE.INTEGER, options.pagination.end),
|
|
115
114
|
]));
|
|
116
115
|
}
|
|
117
|
-
// --------------------------------- FROM ---------------------------------
|
|
118
|
-
sequence.push(_function(DataCubeFunction.FROM, [
|
|
119
|
-
data.mapping ? _elementPtr(data.mapping) : undefined,
|
|
120
|
-
_elementPtr(data.runtime),
|
|
121
|
-
].filter(isNonNullable)));
|
|
122
116
|
// --------------------------------- FINALIZE ---------------------------------
|
|
117
|
+
const executionContext = executionContextBuilder(source);
|
|
118
|
+
if (executionContext) {
|
|
119
|
+
sequence.push(executionContext);
|
|
120
|
+
}
|
|
123
121
|
options?.postProcessor?.(snapshot, sequence, funcMap, configuration, filterOperations, aggregateOperations);
|
|
124
|
-
if (
|
|
125
|
-
return
|
|
122
|
+
if (sequence.length === 0) {
|
|
123
|
+
return source.query;
|
|
126
124
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
guaranteeNonNullable(sequence[i]).parameters.unshift(i === 0
|
|
130
|
-
? (options?.sourceQuery ?? sourceQuery)
|
|
131
|
-
: guaranteeNonNullable(sequence[i - 1]));
|
|
125
|
+
for (let i = 0; i < sequence.length; i++) {
|
|
126
|
+
guaranteeNonNullable(sequence[i]).parameters.unshift(i === 0 ? source.query : guaranteeNonNullable(sequence[i - 1]));
|
|
132
127
|
}
|
|
133
128
|
return guaranteeNonNullable(sequence[sequence.length - 1]);
|
|
134
129
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeQueryBuilder.js","sourceRoot":"","sources":["../../../src/stores/core/DataCubeQueryBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;yFAKyF;AAEzF,OAAO,
|
|
1
|
+
{"version":3,"file":"DataCubeQueryBuilder.js","sourceRoot":"","sources":["../../../src/stores/core/DataCubeQueryBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;yFAKyF;AAEzF,OAAO,EAAE,cAAc,EAA2B,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAA8B,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,gBAAgB,EAChB,0BAA0B,GAE3B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE1E,OAAO,EACL,IAAI,EACJ,WAAW,EACX,KAAK,EACL,QAAQ,EACR,kBAAkB,EAClB,OAAO,EACP,SAAS,EACT,eAAe,EACf,OAAO,EACP,aAAa,EACb,SAAS,EACT,eAAe,EACf,IAAI,EACJ,6BAA6B,GAC9B,MAAM,gCAAgC,CAAC;AAIxC,MAAM,UAAU,oBAAoB,CAClC,QAA+B,EAC/B,MAAsB,EACtB,uBAEmC,EACnC,gBAAgD,EAChD,mBAAsD,EACtD,OAeC;IAED,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;IAC3B,MAAM,aAAa,GAAG,qBAAqB,CAAC,aAAa,CAAC,QAAQ,CAChE,IAAI,CAAC,aAAa,CACnB,CAAC;IACF,MAAM,QAAQ,GAAyB,EAAE,CAAC;IAC1C,MAAM,OAAO,GAA6B,EAAE,CA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C;QAC1B,OAAO,MAAM,CAAC,KAAK,CAAC;IACtB,CAAC;IACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACzC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAClD,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAC/D,CAAC;IACJ,CAAC;IACD,OAAO,oBAAoB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
* The executable query is then used to fetch data.
|
|
21
21
|
***************************************************************************************/
|
|
22
22
|
import { V1_AppliedFunction, V1_AppliedProperty, V1_CBoolean, V1_CDateTime, V1_CDecimal, V1_CFloat, V1_CInteger, V1_CStrictDate, V1_CStrictTime, V1_CString, V1_ClassInstance, V1_ColSpec, V1_Collection, V1_Lambda, V1_PackageableElementPtr, V1_Variable, type V1_ValueSpecification, V1_GenericTypeInstance } from '@finos/legend-graph';
|
|
23
|
-
import { type DataCubeQuerySnapshotFilterCondition, type DataCubeQuerySnapshotFilter, type
|
|
23
|
+
import { type DataCubeQuerySnapshotFilterCondition, type DataCubeQuerySnapshotFilter, type DataCubeQuerySnapshot } from './DataCubeQuerySnapshot.js';
|
|
24
|
+
import { type DataCubeColumn } from './models/DataCubeColumn.js';
|
|
24
25
|
import { type PlainObject } from '@finos/legend-shared';
|
|
25
26
|
import { type DataCubeOperationValue, type DataCubeQueryFunctionMap } from './DataCubeQueryEngine.js';
|
|
26
27
|
import type { DataCubeQueryFilterOperation } from './filter/DataCubeQueryFilterOperation.js';
|
|
27
28
|
import type { DataCubeQueryAggregateOperation } from './aggregation/DataCubeQueryAggregateOperation.js';
|
|
28
|
-
import { type DataCubeConfiguration } from './DataCubeConfiguration.js';
|
|
29
|
+
import { type DataCubeConfiguration } from './models/DataCubeConfiguration.js';
|
|
29
30
|
export declare function _functionCompositionProcessor(sequence: V1_AppliedFunction[], funcMap: DataCubeQueryFunctionMap): (key: keyof DataCubeQueryFunctionMap, func: V1_AppliedFunction) => void;
|
|
30
31
|
export declare function _functionCompositionUnProcessor(sequence: V1_AppliedFunction[], funcMap: DataCubeQueryFunctionMap): (key: keyof DataCubeQueryFunctionMap) => void;
|
|
31
32
|
export declare function _deserializeLambda(json: PlainObject<V1_Lambda>): V1_Lambda;
|
|
@@ -43,9 +44,9 @@ export declare function _value(value: DataCubeOperationValue, variable?: V1_Vari
|
|
|
43
44
|
export declare function _not(fn: V1_AppliedFunction): V1_AppliedFunction;
|
|
44
45
|
export declare function _col(name: string, function1?: V1_Lambda | undefined, function2?: V1_Lambda | undefined): V1_ClassInstance;
|
|
45
46
|
export declare function _cols(colSpecs: V1_ColSpec[]): V1_ClassInstance;
|
|
46
|
-
export declare function _aggCol_basic(column:
|
|
47
|
-
export declare function _pivotAggCols(pivotColumns:
|
|
48
|
-
export declare function _castCols(columns:
|
|
49
|
-
export declare function _groupByAggCols(groupByColumns:
|
|
47
|
+
export declare function _aggCol_basic(column: DataCubeColumn, func: string): V1_ColSpec;
|
|
48
|
+
export declare function _pivotAggCols(pivotColumns: DataCubeColumn[], snapshot: DataCubeQuerySnapshot, configuration: DataCubeConfiguration, aggregateOperations: DataCubeQueryAggregateOperation[]): V1_ColSpec[];
|
|
49
|
+
export declare function _castCols(columns: DataCubeColumn[]): V1_GenericTypeInstance;
|
|
50
|
+
export declare function _groupByAggCols(groupByColumns: DataCubeColumn[], snapshot: DataCubeQuerySnapshot, configuration: DataCubeConfiguration, aggregateOperations: DataCubeQueryAggregateOperation[]): V1_ColSpec[];
|
|
50
51
|
export declare function _filter(filter: DataCubeQuerySnapshotFilter | DataCubeQuerySnapshotFilterCondition, filterOperations: DataCubeQueryFilterOperation[]): V1_AppliedFunction;
|
|
51
52
|
//# sourceMappingURL=DataCubeQueryBuilderUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeQueryBuilderUtils.d.ts","sourceRoot":"","sources":["../../../src/stores/core/DataCubeQueryBuilderUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;yFAKyF;AAEzF,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,WAAW,EACX,SAAS,EACT,WAAW,EACX,cAAc,EACd,cAAc,EACd,UAAU,EACV,gBAAgB,EAEhB,UAAU,EAEV,aAAa,EACb,SAAS,EAET,wBAAwB,EAExB,WAAW,EAGX,KAAK,qBAAqB,EAG1B,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,oCAAoC,EACzC,KAAK,2BAA2B,EAChC,KAAK,
|
|
1
|
+
{"version":3,"file":"DataCubeQueryBuilderUtils.d.ts","sourceRoot":"","sources":["../../../src/stores/core/DataCubeQueryBuilderUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;yFAKyF;AAEzF,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,WAAW,EACX,SAAS,EACT,WAAW,EACX,cAAc,EACd,cAAc,EACd,UAAU,EACV,gBAAgB,EAEhB,UAAU,EAEV,aAAa,EACb,SAAS,EAET,wBAAwB,EAExB,WAAW,EAGX,KAAK,qBAAqB,EAG1B,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,oCAAoC,EACzC,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAOL,KAAK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,QAAQ,EAAE,MAAM,4BAI3C;AASD,wBAAgB,QAAQ,CACtB,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,EACjC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,EACjC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,cAQ1B;AAED,wBAAgB,MAAM,CACpB,KAAK,EAAE,sBAAsB,EAC7B,QAAQ,CAAC,EAAE,WAAW,GAAG,SAAS,0JA2BnC;AAED,wBAAgB,IAAI,CAAC,EAAE,EAAE,kBAAkB,sBAE1C;AAID,wBAAgB,IAAI,CAClB,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,EACjC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,oBAMlC;AAED,wBAAgB,KAAK,CAAC,QAAQ,EAAE,UAAU,EAAE,oBAI3C;AAoBD,wBAAgB,aAAa,CAAC,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,cAOjE;AAED,wBAAgB,aAAa,CAC3B,YAAY,EAAE,cAAc,EAAE,EAC9B,QAAQ,EAAE,qBAAqB,EAC/B,aAAa,EAAE,qBAAqB,EACpC,mBAAmB,EAAE,+BAA+B,EAAE,gBA4BvD;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,cAAc,EAAE,0BASlD;AAED,wBAAgB,eAAe,CAC7B,cAAc,EAAE,cAAc,EAAE,EAChC,QAAQ,EAAE,qBAAqB,EAC/B,aAAa,EAAE,qBAAqB,EACpC,mBAAmB,EAAE,+BAA+B,EAAE,gBA2FvD;AAED,wBAAgB,OAAO,CACrB,MAAM,EAAE,2BAA2B,GAAG,oCAAoC,EAC1E,gBAAgB,EAAE,4BAA4B,EAAE,sBAgCjD"}
|
|
@@ -21,9 +21,10 @@
|
|
|
21
21
|
***************************************************************************************/
|
|
22
22
|
import { PRIMITIVE_TYPE, V1_AppliedFunction, V1_AppliedProperty, V1_CBoolean, V1_CDateTime, V1_CDecimal, V1_CFloat, V1_CInteger, V1_CStrictDate, V1_CStrictTime, V1_CString, V1_ClassInstance, V1_ClassInstanceType, V1_ColSpec, V1_ColSpecArray, V1_Collection, V1_Lambda, V1_Multiplicity, V1_PackageableElementPtr, V1_Variable, V1_deserializeValueSpecification, extractElementNameFromPath, extractPackagePathFromPath, CORE_PURE_PATH, V1_GenericTypeInstance, } from '@finos/legend-graph';
|
|
23
23
|
import {} from './DataCubeQuerySnapshot.js';
|
|
24
|
+
import {} from './models/DataCubeColumn.js';
|
|
24
25
|
import { guaranteeNonNullable, guaranteeIsString, guaranteeIsBoolean, guaranteeIsNumber, UnsupportedOperationError, guaranteeType, } from '@finos/legend-shared';
|
|
25
26
|
import { DataCubeFunction, DEFAULT_LAMBDA_VARIABLE_NAME, DataCubeQueryFilterGroupOperator, DataCubeOperationAdvancedValueType, DataCubeColumnKind, isPivotResultColumnName, getPivotResultColumnBaseColumnName, } from './DataCubeQueryEngine.js';
|
|
26
|
-
import { DataCubeColumnConfiguration, } from './DataCubeConfiguration.js';
|
|
27
|
+
import { DataCubeColumnConfiguration, } from './models/DataCubeConfiguration.js';
|
|
27
28
|
// --------------------------------- UTILITIES ---------------------------------
|
|
28
29
|
export function _functionCompositionProcessor(sequence, funcMap) {
|
|
29
30
|
return (key, func) => {
|