@finos/legend-data-cube 0.0.36 → 0.0.38
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/README.md +1 -1
- package/lib/__lib__/DataCubeDocumentation.d.ts +7 -7
- package/lib/__lib__/DataCubeDocumentation.d.ts.map +1 -1
- package/lib/__lib__/DataCubeDocumentation.js +9 -9
- package/lib/__lib__/DataCubeDocumentation.js.map +1 -1
- package/lib/__lib__/DataCubeEvent.d.ts +21 -0
- package/lib/__lib__/DataCubeEvent.d.ts.map +1 -0
- package/lib/__lib__/DataCubeEvent.js +22 -0
- package/lib/__lib__/DataCubeEvent.js.map +1 -0
- package/lib/__lib__/DataCubeSetting.d.ts +24 -0
- package/lib/__lib__/DataCubeSetting.d.ts.map +1 -0
- package/lib/__lib__/DataCubeSetting.js +25 -0
- package/lib/__lib__/DataCubeSetting.js.map +1 -0
- package/lib/components/DataCube.d.ts +3 -1
- package/lib/components/DataCube.d.ts.map +1 -1
- package/lib/components/DataCube.js +32 -39
- package/lib/components/DataCube.js.map +1 -1
- package/lib/components/DataCubePlaceholder.d.ts +40 -0
- package/lib/components/DataCubePlaceholder.d.ts.map +1 -0
- package/lib/components/DataCubePlaceholder.js +34 -0
- package/lib/components/DataCubePlaceholder.js.map +1 -0
- package/lib/components/DataCubeProvider.js +1 -1
- package/lib/components/DataCubeProvider.js.map +1 -1
- package/lib/components/DataCubeStatusBar.d.ts +24 -0
- package/lib/components/DataCubeStatusBar.d.ts.map +1 -0
- package/lib/components/DataCubeStatusBar.js +30 -0
- package/lib/components/DataCubeStatusBar.js.map +1 -0
- package/lib/components/DataCubeTitleBar.d.ts +24 -0
- package/lib/components/DataCubeTitleBar.d.ts.map +1 -0
- package/lib/components/DataCubeTitleBar.js +36 -0
- package/lib/components/DataCubeTitleBar.js.map +1 -0
- package/lib/components/DataCubeView.d.ts.map +1 -1
- package/lib/components/DataCubeView.js +10 -12
- package/lib/components/DataCubeView.js.map +1 -1
- package/lib/components/core/DataCubeAlert.d.ts +1 -21
- package/lib/components/core/DataCubeAlert.d.ts.map +1 -1
- package/lib/components/core/DataCubeAlert.js +4 -55
- package/lib/components/core/DataCubeAlert.js.map +1 -1
- package/lib/components/core/DataCubeDocumentationPanel.js +1 -1
- package/lib/components/core/DataCubeDocumentationPanel.js.map +1 -1
- package/lib/components/core/DataCubeFormUtils.d.ts +26 -0
- package/lib/components/core/DataCubeFormUtils.d.ts.map +1 -1
- package/lib/components/core/DataCubeFormUtils.js +135 -12
- package/lib/components/core/DataCubeFormUtils.js.map +1 -1
- package/lib/components/core/{DataCubeLayoutManager.d.ts → DataCubeLayout.d.ts} +5 -5
- package/lib/components/core/DataCubeLayout.d.ts.map +1 -0
- package/lib/components/core/{DataCubeLayoutManager.js → DataCubeLayout.js} +15 -6
- package/lib/components/core/DataCubeLayout.js.map +1 -0
- package/lib/components/core/DataCubePureCodeEditorUtils.d.ts +3 -2
- 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 +53 -27
- package/lib/components/core/DataCubeSettingsPanel.js.map +1 -1
- package/lib/components/view/editor/DataCubeEditor.d.ts.map +1 -1
- package/lib/components/view/editor/DataCubeEditor.js +11 -8
- package/lib/components/view/editor/DataCubeEditor.js.map +1 -1
- package/lib/components/view/editor/DataCubeEditorColumnPropertiesPanel.d.ts.map +1 -1
- package/lib/components/view/editor/DataCubeEditorColumnPropertiesPanel.js +18 -17
- package/lib/components/view/editor/DataCubeEditorColumnPropertiesPanel.js.map +1 -1
- package/lib/components/view/editor/DataCubeEditorColumnsPanel.d.ts.map +1 -1
- package/lib/components/view/editor/DataCubeEditorColumnsPanel.js +6 -5
- package/lib/components/view/editor/DataCubeEditorColumnsPanel.js.map +1 -1
- package/lib/components/view/editor/DataCubeEditorGeneralPropertiesPanel.d.ts.map +1 -1
- package/lib/components/view/editor/DataCubeEditorGeneralPropertiesPanel.js +4 -4
- package/lib/components/view/editor/DataCubeEditorGeneralPropertiesPanel.js.map +1 -1
- package/lib/components/view/extend/DataCubeColumnEditor.d.ts.map +1 -1
- package/lib/components/view/extend/DataCubeColumnEditor.js +22 -20
- package/lib/components/view/extend/DataCubeColumnEditor.js.map +1 -1
- package/lib/components/view/filter/DataCubeFilterEditor.d.ts.map +1 -1
- package/lib/components/view/filter/DataCubeFilterEditor.js +8 -6
- package/lib/components/view/filter/DataCubeFilterEditor.js.map +1 -1
- package/lib/components/view/grid/DataCubeGrid.d.ts.map +1 -1
- package/lib/components/view/grid/DataCubeGrid.js +7 -7
- package/lib/components/view/grid/DataCubeGrid.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +16 -8
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +16 -8
- package/lib/index.js.map +1 -1
- package/lib/package.json +2 -2
- package/lib/stores/DataCubeAPI.d.ts +36 -3
- package/lib/stores/DataCubeAPI.d.ts.map +1 -1
- package/lib/stores/DataCubeAPI.js +29 -1
- package/lib/stores/DataCubeAPI.js.map +1 -1
- package/lib/stores/DataCubeOptions.d.ts +84 -9
- package/lib/stores/DataCubeOptions.d.ts.map +1 -1
- package/lib/stores/DataCubeState.d.ts +29 -23
- package/lib/stores/DataCubeState.d.ts.map +1 -1
- package/lib/stores/DataCubeState.js +65 -87
- package/lib/stores/DataCubeState.js.map +1 -1
- package/lib/stores/core/DataCubeConfigurationBuilder.d.ts +2 -2
- 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 +23 -50
- package/lib/stores/core/DataCubeEngine.d.ts.map +1 -1
- package/lib/stores/core/DataCubeEngine.js +15 -98
- package/lib/stores/core/DataCubeEngine.js.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilder.d.ts +3 -2
- package/lib/stores/core/DataCubeQueryBuilder.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilder.js +1 -1
- package/lib/stores/core/DataCubeQueryBuilder.js.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilderUtils.d.ts +5 -2
- package/lib/stores/core/DataCubeQueryBuilderUtils.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilderUtils.js +14 -3
- package/lib/stores/core/DataCubeQueryBuilderUtils.js.map +1 -1
- package/lib/stores/core/DataCubeQueryEngine.d.ts +26 -26
- package/lib/stores/core/DataCubeQueryEngine.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshot.d.ts +2 -2
- package/lib/stores/core/DataCubeQuerySnapshot.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.d.ts +2 -2
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.js +57 -40
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.js.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.d.ts +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.js +5 -5
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation.d.ts +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.d.ts +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.d.ts +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.d.ts +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.d.ts +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.d.ts +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.d.ts +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.d.ts +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.d.ts +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.d.ts +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.d.ts +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.d.ts +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.d.ts +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.d.ts +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.d.ts +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/model/AdhocQueryDataCubeSource.d.ts +29 -0
- package/lib/stores/core/model/AdhocQueryDataCubeSource.d.ts.map +1 -0
- package/lib/stores/core/model/AdhocQueryDataCubeSource.js +35 -0
- package/lib/stores/core/model/AdhocQueryDataCubeSource.js.map +1 -0
- package/lib/stores/core/model/DataCubeColumn.d.ts.map +1 -0
- package/lib/stores/core/model/DataCubeColumn.js.map +1 -0
- package/lib/stores/core/model/DataCubeConfiguration.d.ts.map +1 -0
- package/lib/stores/core/model/DataCubeConfiguration.js.map +1 -0
- package/lib/stores/core/model/DataCubeQuery.d.ts.map +1 -0
- package/lib/stores/core/model/DataCubeQuery.js.map +1 -0
- package/lib/stores/core/{models → model}/DataCubeSource.d.ts +1 -1
- package/lib/stores/core/model/DataCubeSource.d.ts.map +1 -0
- package/lib/stores/core/{models → model}/DataCubeSource.js +1 -1
- package/lib/stores/core/model/DataCubeSource.js.map +1 -0
- package/lib/stores/services/DataCubeAlertService.d.ts +56 -0
- package/lib/stores/services/DataCubeAlertService.d.ts.map +1 -0
- package/lib/stores/services/DataCubeAlertService.js +89 -0
- package/lib/stores/services/DataCubeAlertService.js.map +1 -0
- package/lib/stores/services/DataCubeDocumentationService.d.ts +29 -0
- package/lib/stores/services/DataCubeDocumentationService.d.ts.map +1 -0
- package/lib/stores/services/DataCubeDocumentationService.js +41 -0
- package/lib/stores/services/DataCubeDocumentationService.js.map +1 -0
- package/lib/stores/{core/DataCubeLayoutManagerState.d.ts → services/DataCubeLayoutService.d.ts} +28 -7
- package/lib/stores/services/DataCubeLayoutService.d.ts.map +1 -0
- package/lib/stores/{core/DataCubeLayoutManagerState.js → services/DataCubeLayoutService.js} +58 -21
- package/lib/stores/services/DataCubeLayoutService.js.map +1 -0
- package/lib/stores/services/DataCubeLogService.d.ts +29 -0
- package/lib/stores/services/DataCubeLogService.d.ts.map +1 -0
- package/lib/stores/services/DataCubeLogService.js +43 -0
- package/lib/stores/services/DataCubeLogService.js.map +1 -0
- package/lib/stores/services/DataCubeNavigationService.d.ts +22 -0
- package/lib/stores/services/DataCubeNavigationService.d.ts.map +1 -0
- package/lib/stores/services/DataCubeNavigationService.js +25 -0
- package/lib/stores/services/DataCubeNavigationService.js.map +1 -0
- package/lib/stores/{view/DataCubeQuerySnapshotManager.d.ts → services/DataCubeQuerySnapshotService.d.ts} +18 -13
- package/lib/stores/services/DataCubeQuerySnapshotService.d.ts.map +1 -0
- package/lib/stores/{view/DataCubeQuerySnapshotManager.js → services/DataCubeQuerySnapshotService.js} +42 -29
- package/lib/stores/services/DataCubeQuerySnapshotService.js.map +1 -0
- package/lib/stores/services/DataCubeSettingService.d.ts +75 -0
- package/lib/stores/services/DataCubeSettingService.d.ts.map +1 -0
- package/lib/stores/services/DataCubeSettingService.js +312 -0
- package/lib/stores/services/DataCubeSettingService.js.map +1 -0
- package/lib/stores/services/DataCubeTaskService.d.ts +41 -0
- package/lib/stores/services/DataCubeTaskService.d.ts.map +1 -0
- package/lib/stores/services/DataCubeTaskService.js +84 -0
- package/lib/stores/services/DataCubeTaskService.js.map +1 -0
- package/lib/stores/services/DataCubeTelemetryService.d.ts +23 -0
- package/lib/stores/services/DataCubeTelemetryService.d.ts.map +1 -0
- package/lib/stores/services/DataCubeTelemetryService.js +25 -0
- package/lib/stores/services/DataCubeTelemetryService.js.map +1 -0
- package/lib/stores/view/DataCubeInfoState.d.ts +2 -1
- package/lib/stores/view/DataCubeInfoState.d.ts.map +1 -1
- package/lib/stores/view/DataCubeInfoState.js +10 -4
- package/lib/stores/view/DataCubeInfoState.js.map +1 -1
- package/lib/stores/view/DataCubeViewState.d.ts +20 -19
- package/lib/stores/view/DataCubeViewState.d.ts.map +1 -1
- package/lib/stores/view/DataCubeViewState.js +47 -57
- package/lib/stores/view/DataCubeViewState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.d.ts +2 -4
- package/lib/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.js +3 -5
- package/lib/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnSelectorState.d.ts +1 -3
- package/lib/stores/view/editor/DataCubeEditorColumnSelectorState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnSelectorState.js +3 -5
- package/lib/stores/view/editor/DataCubeEditorColumnSelectorState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.d.ts +2 -4
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.js +15 -17
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts +1 -4
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.js +0 -4
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.d.ts +3 -5
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.js +7 -9
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.d.ts +1 -1
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.js +1 -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 +2 -4
- package/lib/stores/view/editor/DataCubeEditorPivotLayoutPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorPivotLayoutPanelState.js +3 -5
- package/lib/stores/view/editor/DataCubeEditorPivotLayoutPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.d.ts +1 -4
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.js +10 -14
- 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 +11 -9
- package/lib/stores/view/editor/DataCubeEditorState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.d.ts +1 -4
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.js +4 -8
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.js.map +1 -1
- package/lib/stores/view/extend/DataCubeColumnEditorState.d.ts +4 -4
- package/lib/stores/view/extend/DataCubeColumnEditorState.d.ts.map +1 -1
- package/lib/stores/view/extend/DataCubeColumnEditorState.js +22 -22
- package/lib/stores/view/extend/DataCubeColumnEditorState.js.map +1 -1
- package/lib/stores/view/extend/DataCubeExtendManagerState.d.ts +7 -6
- package/lib/stores/view/extend/DataCubeExtendManagerState.d.ts.map +1 -1
- package/lib/stores/view/extend/DataCubeExtendManagerState.js +18 -20
- package/lib/stores/view/extend/DataCubeExtendManagerState.js.map +1 -1
- package/lib/stores/view/filter/DataCubeFilterEditorState.d.ts +4 -3
- package/lib/stores/view/filter/DataCubeFilterEditorState.d.ts.map +1 -1
- package/lib/stores/view/filter/DataCubeFilterEditorState.js +8 -6
- package/lib/stores/view/filter/DataCubeFilterEditorState.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridClientEngine.d.ts +6 -4
- package/lib/stores/view/grid/DataCubeGridClientEngine.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridClientEngine.js +46 -35
- package/lib/stores/view/grid/DataCubeGridClientEngine.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridClientExportEngine.d.ts +1 -3
- package/lib/stores/view/grid/DataCubeGridClientExportEngine.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridClientExportEngine.js +7 -9
- package/lib/stores/view/grid/DataCubeGridClientExportEngine.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.d.ts +2 -2
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.js +5 -5
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridControllerState.d.ts +8 -6
- package/lib/stores/view/grid/DataCubeGridControllerState.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridControllerState.js +8 -3
- package/lib/stores/view/grid/DataCubeGridControllerState.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridMenuBuilder.d.ts.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/DataCubeGridQueryBuilder.js +3 -3
- package/lib/stores/view/grid/DataCubeGridQueryBuilder.js.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 +2 -2
- package/lib/stores/view/grid/DataCubeGridQuerySnapshotBuilder.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridState.d.ts +4 -2
- package/lib/stores/view/grid/DataCubeGridState.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridState.js +18 -11
- package/lib/stores/view/grid/DataCubeGridState.js.map +1 -1
- package/package.json +6 -6
- package/src/__lib__/DataCubeDocumentation.ts +7 -7
- package/src/__lib__/DataCubeEvent.ts +21 -0
- package/src/__lib__/DataCubeSetting.ts +24 -0
- package/src/components/DataCube.tsx +61 -85
- package/src/components/DataCubePlaceholder.tsx +97 -0
- package/src/components/DataCubeProvider.tsx +1 -1
- package/src/components/DataCubeStatusBar.tsx +71 -0
- package/src/components/DataCubeTitleBar.tsx +81 -0
- package/src/components/DataCubeView.tsx +20 -44
- package/src/components/core/DataCubeAlert.tsx +15 -104
- package/src/components/core/DataCubeDocumentationPanel.tsx +1 -1
- package/src/components/core/DataCubeFormUtils.tsx +256 -24
- package/src/components/core/{DataCubeLayoutManager.tsx → DataCubeLayout.tsx} +33 -22
- package/src/components/core/DataCubePureCodeEditorUtils.tsx +9 -5
- package/src/components/core/DataCubeSettingsPanel.tsx +166 -134
- package/src/components/view/editor/DataCubeEditor.tsx +18 -19
- package/src/components/view/editor/DataCubeEditorColumnPropertiesPanel.tsx +24 -22
- package/src/components/view/editor/DataCubeEditorColumnsPanel.tsx +14 -18
- package/src/components/view/editor/DataCubeEditorGeneralPropertiesPanel.tsx +6 -5
- package/src/components/view/extend/DataCubeColumnEditor.tsx +43 -38
- package/src/components/view/filter/DataCubeFilterEditor.tsx +14 -20
- package/src/components/view/grid/DataCubeGrid.tsx +9 -8
- package/src/index.tsx +30 -8
- package/src/stores/DataCubeAPI.ts +58 -3
- package/src/stores/DataCubeOptions.ts +108 -15
- package/src/stores/DataCubeState.tsx +93 -123
- package/src/stores/core/DataCubeConfigurationBuilder.ts +2 -2
- package/src/stores/core/DataCubeEngine.tsx +51 -234
- package/src/stores/core/DataCubeQueryBuilder.ts +3 -2
- package/src/stores/core/DataCubeQueryBuilderUtils.ts +19 -2
- package/src/stores/core/DataCubeQueryEngine.ts +27 -27
- package/src/stores/core/DataCubeQuerySnapshot.ts +2 -2
- package/src/stores/core/DataCubeQuerySnapshotBuilder.ts +77 -42
- package/src/stores/core/DataCubeQuerySnapshotBuilderUtils.ts +5 -5
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation.ts +2 -2
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.tsx +2 -2
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.tsx +2 -2
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__First.tsx +2 -2
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.tsx +2 -2
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.tsx +2 -2
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.tsx +2 -2
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.tsx +2 -2
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.tsx +2 -2
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.tsx +2 -2
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.tsx +2 -2
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.tsx +2 -2
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.tsx +2 -2
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterEditorState.ts +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation.ts +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__Contain.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EndWith.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__Equal.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__IsNull.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThan.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotContain.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__StartWith.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.tsx +1 -1
- package/src/stores/core/model/AdhocQueryDataCubeSource.ts +45 -0
- package/src/stores/core/{models → model}/DataCubeSource.ts +1 -1
- package/src/stores/services/DataCubeAlertService.tsx +169 -0
- package/src/stores/services/DataCubeDocumentationService.tsx +74 -0
- package/src/stores/{core/DataCubeLayoutManagerState.ts → services/DataCubeLayoutService.tsx} +96 -23
- package/src/stores/services/DataCubeLogService.ts +54 -0
- package/src/stores/services/DataCubeNavigationService.ts +29 -0
- package/src/stores/{view/DataCubeQuerySnapshotManager.ts → services/DataCubeQuerySnapshotService.ts} +62 -40
- package/src/stores/services/DataCubeSettingService.tsx +489 -0
- package/src/stores/services/DataCubeTaskService.ts +102 -0
- package/src/stores/services/DataCubeTelemetryService.ts +30 -0
- package/src/stores/view/DataCubeInfoState.ts +12 -4
- package/src/stores/view/DataCubeViewState.ts +60 -68
- package/src/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.ts +4 -6
- package/src/stores/view/editor/DataCubeEditorColumnSelectorState.ts +3 -6
- package/src/stores/view/editor/DataCubeEditorColumnsPanelState.ts +16 -18
- package/src/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.ts +1 -8
- package/src/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.ts +9 -11
- package/src/stores/view/editor/DataCubeEditorMutableConfiguration.ts +1 -1
- package/src/stores/view/editor/DataCubeEditorPanelState.ts +1 -1
- package/src/stores/view/editor/DataCubeEditorPivotLayoutPanelState.ts +4 -7
- package/src/stores/view/editor/DataCubeEditorSortsPanelState.ts +11 -16
- package/src/stores/view/editor/DataCubeEditorState.tsx +23 -15
- package/src/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.ts +5 -10
- package/src/stores/view/extend/DataCubeColumnEditorState.tsx +30 -28
- package/src/stores/view/extend/DataCubeExtendManagerState.tsx +39 -30
- package/src/stores/view/filter/DataCubeFilterEditorState.tsx +11 -8
- package/src/stores/view/grid/DataCubeGridClientEngine.ts +69 -50
- package/src/stores/view/grid/DataCubeGridClientExportEngine.ts +7 -10
- package/src/stores/view/grid/DataCubeGridConfigurationBuilder.tsx +3 -6
- package/src/stores/view/grid/DataCubeGridControllerState.ts +11 -3
- package/src/stores/view/grid/DataCubeGridMenuBuilder.tsx +20 -8
- package/src/stores/view/grid/DataCubeGridQueryBuilder.ts +9 -3
- package/src/stores/view/grid/DataCubeGridQuerySnapshotBuilder.ts +2 -2
- package/src/stores/view/grid/DataCubeGridState.ts +37 -14
- package/tsconfig.json +20 -8
- package/lib/components/core/DataCubeLayoutManager.d.ts.map +0 -1
- package/lib/components/core/DataCubeLayoutManager.js.map +0 -1
- package/lib/stores/DataCubeSettings.d.ts +0 -42
- package/lib/stores/DataCubeSettings.d.ts.map +0 -1
- package/lib/stores/DataCubeSettings.js +0 -76
- package/lib/stores/DataCubeSettings.js.map +0 -1
- package/lib/stores/core/DataCubeLayoutManagerState.d.ts.map +0 -1
- package/lib/stores/core/DataCubeLayoutManagerState.js.map +0 -1
- package/lib/stores/core/models/DataCubeColumn.d.ts.map +0 -1
- package/lib/stores/core/models/DataCubeColumn.js.map +0 -1
- package/lib/stores/core/models/DataCubeConfiguration.d.ts.map +0 -1
- package/lib/stores/core/models/DataCubeConfiguration.js.map +0 -1
- package/lib/stores/core/models/DataCubeQuery.d.ts.map +0 -1
- package/lib/stores/core/models/DataCubeQuery.js.map +0 -1
- package/lib/stores/core/models/DataCubeSource.d.ts.map +0 -1
- package/lib/stores/core/models/DataCubeSource.js.map +0 -1
- package/lib/stores/view/DataCubeQuerySnapshotManager.d.ts.map +0 -1
- package/lib/stores/view/DataCubeQuerySnapshotManager.js.map +0 -1
- package/src/stores/DataCubeSettings.ts +0 -107
- /package/lib/stores/core/{models → model}/DataCubeColumn.d.ts +0 -0
- /package/lib/stores/core/{models → model}/DataCubeColumn.js +0 -0
- /package/lib/stores/core/{models → model}/DataCubeConfiguration.d.ts +0 -0
- /package/lib/stores/core/{models → model}/DataCubeConfiguration.js +0 -0
- /package/lib/stores/core/{models → model}/DataCubeQuery.d.ts +0 -0
- /package/lib/stores/core/{models → model}/DataCubeQuery.js +0 -0
- /package/src/stores/core/{models → model}/DataCubeColumn.ts +0 -0
- /package/src/stores/core/{models → model}/DataCubeConfiguration.ts +0 -0
- /package/src/stores/core/{models → model}/DataCubeQuery.ts +0 -0
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
import { DataCubeGridState } from './grid/DataCubeGridState.js';
|
|
18
18
|
import { DataCubeEditorState } from './editor/DataCubeEditorState.js';
|
|
19
19
|
import {
|
|
20
|
+
ActionState,
|
|
20
21
|
assertErrorThrown,
|
|
21
22
|
IllegalStateError,
|
|
22
|
-
uuid,
|
|
23
23
|
} from '@finos/legend-shared';
|
|
24
|
-
import {
|
|
24
|
+
import { DataCubeQuerySnapshotService } from '../services/DataCubeQuerySnapshotService.js';
|
|
25
25
|
import { DataCubeInfoState } from './DataCubeInfoState.js';
|
|
26
26
|
import { validateAndBuildQuerySnapshot } from '../core/DataCubeQuerySnapshotBuilder.js';
|
|
27
27
|
import {
|
|
@@ -34,31 +34,25 @@ import {
|
|
|
34
34
|
import { DataCubeFilterEditorState } from './filter/DataCubeFilterEditorState.js';
|
|
35
35
|
import { DataCubeExtendManagerState } from './extend/DataCubeExtendManagerState.js';
|
|
36
36
|
import type { DataCubeState } from '../DataCubeState.js';
|
|
37
|
-
import type
|
|
38
|
-
import {
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
endTime?: number | undefined;
|
|
47
|
-
|
|
48
|
-
constructor(name: string) {
|
|
49
|
-
this.name = name;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
end() {
|
|
53
|
-
this.endTime = Date.now();
|
|
54
|
-
}
|
|
55
|
-
}
|
|
37
|
+
import { type DataCubeEngine } from '../core/DataCubeEngine.js';
|
|
38
|
+
import type { DataCubeSource } from '../core/model/DataCubeSource.js';
|
|
39
|
+
import { DataCubeQuery } from '../core/model/DataCubeQuery.js';
|
|
40
|
+
import { DataCubeTaskService } from '../services/DataCubeTaskService.js';
|
|
41
|
+
import type { DataCubeLogService } from '../services/DataCubeLogService.js';
|
|
42
|
+
import { DataCubeConfiguration } from '../core/model/DataCubeConfiguration.js';
|
|
43
|
+
import type { DataCubeLayoutService } from '../services/DataCubeLayoutService.js';
|
|
44
|
+
import type { DataCubeAlertService } from '../services/DataCubeAlertService.js';
|
|
45
|
+
import type { DataCubeSettingService } from '../services/DataCubeSettingService.js';
|
|
56
46
|
|
|
57
47
|
export class DataCubeViewState {
|
|
58
48
|
readonly dataCube: DataCubeState;
|
|
59
49
|
readonly engine: DataCubeEngine;
|
|
60
|
-
|
|
61
|
-
readonly
|
|
50
|
+
readonly logService: DataCubeLogService;
|
|
51
|
+
readonly taskService: DataCubeTaskService;
|
|
52
|
+
readonly layoutService: DataCubeLayoutService;
|
|
53
|
+
readonly alertService: DataCubeAlertService;
|
|
54
|
+
readonly settingService: DataCubeSettingService;
|
|
55
|
+
readonly snapshotService: DataCubeQuerySnapshotService;
|
|
62
56
|
|
|
63
57
|
readonly info: DataCubeInfoState;
|
|
64
58
|
readonly editor: DataCubeEditorState;
|
|
@@ -66,7 +60,7 @@ export class DataCubeViewState {
|
|
|
66
60
|
readonly filter: DataCubeFilterEditorState;
|
|
67
61
|
readonly extend: DataCubeExtendManagerState;
|
|
68
62
|
|
|
69
|
-
readonly
|
|
63
|
+
readonly initializeState = ActionState.create();
|
|
70
64
|
|
|
71
65
|
private _source?: DataCubeSource | undefined;
|
|
72
66
|
|
|
@@ -74,19 +68,22 @@ export class DataCubeViewState {
|
|
|
74
68
|
makeObservable<DataCubeViewState, '_source'>(this, {
|
|
75
69
|
_source: observable,
|
|
76
70
|
source: computed,
|
|
77
|
-
isSourceProcessed: computed,
|
|
78
71
|
|
|
79
|
-
|
|
80
|
-
newTask: action,
|
|
81
|
-
endTask: action,
|
|
72
|
+
initialize: action,
|
|
82
73
|
});
|
|
83
74
|
|
|
84
75
|
this.dataCube = dataCube;
|
|
85
76
|
this.engine = dataCube.engine;
|
|
86
|
-
this.
|
|
87
|
-
|
|
77
|
+
this.logService = dataCube.logService;
|
|
78
|
+
this.taskService = new DataCubeTaskService(dataCube.taskService.manager);
|
|
79
|
+
this.layoutService = dataCube.layoutService;
|
|
80
|
+
this.alertService = dataCube.alertService;
|
|
81
|
+
this.settingService = dataCube.settingService;
|
|
88
82
|
// NOTE: snapshot manager must be instantiated before subscribers
|
|
89
|
-
this.
|
|
83
|
+
this.snapshotService = new DataCubeQuerySnapshotService(
|
|
84
|
+
this.engine,
|
|
85
|
+
this.logService,
|
|
86
|
+
);
|
|
90
87
|
|
|
91
88
|
this.info = new DataCubeInfoState(this);
|
|
92
89
|
this.editor = new DataCubeEditorState(this);
|
|
@@ -95,8 +92,15 @@ export class DataCubeViewState {
|
|
|
95
92
|
this.extend = new DataCubeExtendManagerState(this);
|
|
96
93
|
}
|
|
97
94
|
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
async generateDataCubeQuery() {
|
|
96
|
+
const snapshot = this.snapshotService.currentSnapshot;
|
|
97
|
+
const query = new DataCubeQuery();
|
|
98
|
+
query.source = this.dataCube.query.source;
|
|
99
|
+
query.configuration = DataCubeConfiguration.serialization.fromJson(
|
|
100
|
+
snapshot.data.configuration,
|
|
101
|
+
);
|
|
102
|
+
query.query = await this.engine.getPartialQueryCode(snapshot);
|
|
103
|
+
return query;
|
|
100
104
|
}
|
|
101
105
|
|
|
102
106
|
get source() {
|
|
@@ -106,20 +110,10 @@ export class DataCubeViewState {
|
|
|
106
110
|
return this._source;
|
|
107
111
|
}
|
|
108
112
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
this.
|
|
112
|
-
return task;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
endTask(task: DataCubeTask) {
|
|
116
|
-
task.end();
|
|
117
|
-
this.runningTasks.delete(task.uuid);
|
|
118
|
-
return task;
|
|
119
|
-
}
|
|
113
|
+
async initialize(query: DataCubeQuery) {
|
|
114
|
+
this.initializeState.inProgress();
|
|
115
|
+
const task = this.taskService.newTask('Initializing');
|
|
120
116
|
|
|
121
|
-
async initialize(initialQuery?: DataCubeQuery | undefined) {
|
|
122
|
-
const task = this.newTask('Initializing');
|
|
123
117
|
try {
|
|
124
118
|
await Promise.all(
|
|
125
119
|
[
|
|
@@ -130,42 +124,40 @@ export class DataCubeViewState {
|
|
|
130
124
|
this.filter,
|
|
131
125
|
this.extend,
|
|
132
126
|
].map(async (state) => {
|
|
133
|
-
this.
|
|
127
|
+
this.snapshotService.registerSubscriber(state);
|
|
134
128
|
}),
|
|
135
129
|
);
|
|
136
|
-
const
|
|
137
|
-
if (!baseQuery) {
|
|
138
|
-
this.dataCube.alertAction({
|
|
139
|
-
message: `Initialization Failure: No initial input provided`,
|
|
140
|
-
prompt: `Make sure to either specify the initial input when setting up DataCube or the initial input getter in engine.`,
|
|
141
|
-
type: AlertType.ERROR,
|
|
142
|
-
actions: [],
|
|
143
|
-
});
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
const source = await this.engine.processQuerySource(baseQuery.source);
|
|
130
|
+
const source = await this.engine.processQuerySource(query.source);
|
|
147
131
|
runInAction(() => {
|
|
148
132
|
this._source = source;
|
|
149
133
|
});
|
|
150
134
|
const partialQuery = await this.engine.parseValueSpecification(
|
|
151
|
-
|
|
135
|
+
query.query,
|
|
152
136
|
);
|
|
153
137
|
const initialSnapshot = validateAndBuildQuerySnapshot(
|
|
154
138
|
partialQuery,
|
|
155
|
-
|
|
156
|
-
|
|
139
|
+
source,
|
|
140
|
+
query,
|
|
157
141
|
);
|
|
158
|
-
this.
|
|
159
|
-
|
|
142
|
+
this.snapshotService.broadcastSnapshot(initialSnapshot);
|
|
143
|
+
this.dataCube.options?.onViewInitialized?.({
|
|
144
|
+
api: this.dataCube.api,
|
|
145
|
+
source,
|
|
146
|
+
});
|
|
147
|
+
this.initializeState.pass();
|
|
148
|
+
} catch (error) {
|
|
160
149
|
assertErrorThrown(error);
|
|
161
|
-
this.
|
|
150
|
+
this.alertService.alertError(error, {
|
|
162
151
|
message: `Initialization Failure: ${error.message}`,
|
|
163
|
-
|
|
164
|
-
type: AlertType.ERROR,
|
|
165
|
-
actions: [],
|
|
152
|
+
text: `Resolve the issue and reload the engine.`,
|
|
166
153
|
});
|
|
154
|
+
this.initializeState.fail();
|
|
167
155
|
} finally {
|
|
168
|
-
this.endTask(task);
|
|
156
|
+
this.taskService.endTask(task);
|
|
169
157
|
}
|
|
170
158
|
}
|
|
159
|
+
|
|
160
|
+
dispose() {
|
|
161
|
+
this.taskService.dispose();
|
|
162
|
+
}
|
|
171
163
|
}
|
|
@@ -25,13 +25,12 @@ import {
|
|
|
25
25
|
guaranteeNonNullable,
|
|
26
26
|
type PlainObject,
|
|
27
27
|
} from '@finos/legend-shared';
|
|
28
|
-
import type { DataCubeConfiguration } from '../../core/
|
|
28
|
+
import type { DataCubeConfiguration } from '../../core/model/DataCubeConfiguration.js';
|
|
29
29
|
|
|
30
30
|
export class DataCubeEditorColumnPropertiesPanelState
|
|
31
31
|
implements DataCubeQueryEditorPanelState
|
|
32
32
|
{
|
|
33
|
-
readonly
|
|
34
|
-
readonly editor!: DataCubeEditorState;
|
|
33
|
+
private readonly _view!: DataCubeViewState;
|
|
35
34
|
|
|
36
35
|
columns: DataCubeEditorMutableColumnConfiguration[] = [];
|
|
37
36
|
selectedColumnName?: string | undefined;
|
|
@@ -52,8 +51,7 @@ export class DataCubeEditorColumnPropertiesPanelState
|
|
|
52
51
|
applySnaphot: action,
|
|
53
52
|
});
|
|
54
53
|
|
|
55
|
-
this.
|
|
56
|
-
this.view = editor.view;
|
|
54
|
+
this._view = editor.view;
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
getColumnConfiguration(colName: string | undefined) {
|
|
@@ -89,7 +87,7 @@ export class DataCubeEditorColumnPropertiesPanelState
|
|
|
89
87
|
DataCubeEditorMutableColumnConfiguration.create(
|
|
90
88
|
column,
|
|
91
89
|
snapshot,
|
|
92
|
-
this.
|
|
90
|
+
this._view.engine.aggregateOperations,
|
|
93
91
|
),
|
|
94
92
|
),
|
|
95
93
|
);
|
|
@@ -15,10 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { makeObservable, observable, action, computed } from 'mobx';
|
|
18
|
-
import type { DataCubeViewState } from '../DataCubeViewState.js';
|
|
19
18
|
import type { DataCubeEditorState } from './DataCubeEditorState.js';
|
|
20
19
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
21
|
-
import { _sortByColName } from '../../core/
|
|
20
|
+
import { _sortByColName } from '../../core/model/DataCubeColumn.js';
|
|
22
21
|
|
|
23
22
|
export class DataCubeEditorColumnSelectorColumnState {
|
|
24
23
|
readonly name: string;
|
|
@@ -33,8 +32,7 @@ export class DataCubeEditorColumnSelectorColumnState {
|
|
|
33
32
|
export abstract class DataCubeEditorColumnSelectorState<
|
|
34
33
|
T extends DataCubeEditorColumnSelectorColumnState,
|
|
35
34
|
> {
|
|
36
|
-
readonly
|
|
37
|
-
readonly editor!: DataCubeEditorState;
|
|
35
|
+
protected readonly _editor!: DataCubeEditorState;
|
|
38
36
|
|
|
39
37
|
selectedColumns: T[] = [];
|
|
40
38
|
|
|
@@ -68,8 +66,7 @@ export abstract class DataCubeEditorColumnSelectorState<
|
|
|
68
66
|
setSelectedColumnsSearchText: action,
|
|
69
67
|
});
|
|
70
68
|
|
|
71
|
-
this.
|
|
72
|
-
this.view = editor.view;
|
|
69
|
+
this._editor = editor;
|
|
73
70
|
this.onChange = options?.onChange;
|
|
74
71
|
}
|
|
75
72
|
|
|
@@ -15,16 +15,15 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { action, makeObservable, observable, override } from 'mobx';
|
|
18
|
-
import type { DataCubeViewState } from '../DataCubeViewState.js';
|
|
19
18
|
import { type DataCubeQuerySnapshot } from '../../core/DataCubeQuerySnapshot.js';
|
|
20
|
-
import { _toCol } from '../../core/
|
|
19
|
+
import { _toCol } from '../../core/model/DataCubeColumn.js';
|
|
21
20
|
import type { DataCubeQueryEditorPanelState } from './DataCubeEditorPanelState.js';
|
|
22
21
|
import {
|
|
23
22
|
DataCubeEditorColumnSelectorColumnState,
|
|
24
23
|
DataCubeEditorColumnSelectorState,
|
|
25
24
|
} from './DataCubeEditorColumnSelectorState.js';
|
|
26
25
|
import type { DataCubeEditorState } from './DataCubeEditorState.js';
|
|
27
|
-
import { type DataCubeConfiguration } from '../../core/
|
|
26
|
+
import { type DataCubeConfiguration } from '../../core/model/DataCubeConfiguration.js';
|
|
28
27
|
|
|
29
28
|
export class DataCubeEditorBasicColumnSelectorState extends DataCubeEditorColumnSelectorState<DataCubeEditorColumnSelectorColumnState> {
|
|
30
29
|
showHiddenColumns = false;
|
|
@@ -59,9 +58,9 @@ export class DataCubeEditorBasicColumnSelectorState extends DataCubeEditorColumn
|
|
|
59
58
|
|
|
60
59
|
override get availableColumns() {
|
|
61
60
|
return [
|
|
62
|
-
...this.
|
|
63
|
-
...this.
|
|
64
|
-
...this.
|
|
61
|
+
...this._editor.sourceColumns,
|
|
62
|
+
...this._editor.leafExtendColumns,
|
|
63
|
+
...this._editor.groupExtendColumns,
|
|
65
64
|
].map(
|
|
66
65
|
(col) => new DataCubeEditorColumnSelectorColumnState(col.name, col.type),
|
|
67
66
|
);
|
|
@@ -71,7 +70,7 @@ export class DataCubeEditorBasicColumnSelectorState extends DataCubeEditorColumn
|
|
|
71
70
|
return super.availableColumnsForDisplay.filter(
|
|
72
71
|
(column) =>
|
|
73
72
|
this.showHiddenColumns ||
|
|
74
|
-
!this.
|
|
73
|
+
!this._editor.columnProperties.getColumnConfiguration(column.name)
|
|
75
74
|
.hideFromView,
|
|
76
75
|
);
|
|
77
76
|
}
|
|
@@ -80,7 +79,7 @@ export class DataCubeEditorBasicColumnSelectorState extends DataCubeEditorColumn
|
|
|
80
79
|
return super.selectedColumnsForDisplay.filter(
|
|
81
80
|
(column) =>
|
|
82
81
|
this.showHiddenColumns ||
|
|
83
|
-
!this.
|
|
82
|
+
!this._editor.columnProperties.getColumnConfiguration(column.name)
|
|
84
83
|
.hideFromView,
|
|
85
84
|
);
|
|
86
85
|
}
|
|
@@ -103,8 +102,8 @@ export class DataCubeEditorBasicColumnSelectorState extends DataCubeEditorColumn
|
|
|
103
102
|
export class DataCubeEditorColumnsPanelState
|
|
104
103
|
implements DataCubeQueryEditorPanelState
|
|
105
104
|
{
|
|
106
|
-
readonly
|
|
107
|
-
|
|
105
|
+
private readonly _editor!: DataCubeEditorState;
|
|
106
|
+
|
|
108
107
|
readonly selector!: DataCubeEditorBasicColumnSelectorState;
|
|
109
108
|
|
|
110
109
|
constructor(editor: DataCubeEditorState) {
|
|
@@ -112,16 +111,15 @@ export class DataCubeEditorColumnsPanelState
|
|
|
112
111
|
applySnaphot: action,
|
|
113
112
|
});
|
|
114
113
|
|
|
115
|
-
this.
|
|
116
|
-
this.view = editor.view;
|
|
114
|
+
this._editor = editor;
|
|
117
115
|
this.selector = new DataCubeEditorBasicColumnSelectorState(editor, {
|
|
118
116
|
onChange: (selector) => {
|
|
119
117
|
const selectedColumnConfigurations = selector.selectedColumns.map(
|
|
120
118
|
(col) =>
|
|
121
|
-
this.
|
|
119
|
+
this._editor.columnProperties.getColumnConfiguration(col.name),
|
|
122
120
|
);
|
|
123
121
|
const unselectedColumnConfigurations =
|
|
124
|
-
this.
|
|
122
|
+
this._editor.columnProperties.columns.filter(
|
|
125
123
|
(col) => !selectedColumnConfigurations.includes(col),
|
|
126
124
|
);
|
|
127
125
|
|
|
@@ -132,7 +130,7 @@ export class DataCubeEditorColumnsPanelState
|
|
|
132
130
|
unselectedColumnConfigurations.forEach((col) =>
|
|
133
131
|
col.setIsSelected(false),
|
|
134
132
|
);
|
|
135
|
-
this.
|
|
133
|
+
this._editor.columnProperties.setColumns([
|
|
136
134
|
...selectedColumnConfigurations,
|
|
137
135
|
...unselectedColumnConfigurations,
|
|
138
136
|
]);
|
|
@@ -147,7 +145,7 @@ export class DataCubeEditorColumnsPanelState
|
|
|
147
145
|
* (i.e. publishes a new snapshot)
|
|
148
146
|
*/
|
|
149
147
|
propagateChanges(): void {
|
|
150
|
-
this.
|
|
148
|
+
this._editor.sorts.adaptPropagatedChanges();
|
|
151
149
|
}
|
|
152
150
|
|
|
153
151
|
applySnaphot(
|
|
@@ -155,7 +153,7 @@ export class DataCubeEditorColumnsPanelState
|
|
|
155
153
|
configuration: DataCubeConfiguration,
|
|
156
154
|
) {
|
|
157
155
|
this.selector.setSelectedColumns(
|
|
158
|
-
this.
|
|
156
|
+
this._editor.columnProperties.columns
|
|
159
157
|
// extract from the configuration since it specifies the order of columns
|
|
160
158
|
// there taking into account group-level extended columns
|
|
161
159
|
.filter((col) => col.isSelected)
|
|
@@ -187,7 +185,7 @@ export class DataCubeEditorColumnsPanelState
|
|
|
187
185
|
// filter out group-level extended columns since these columns are technically not selectable
|
|
188
186
|
.filter(
|
|
189
187
|
(col) =>
|
|
190
|
-
!this.
|
|
188
|
+
!this._editor.groupExtendColumns.find(
|
|
191
189
|
(column) => column.name === col.name,
|
|
192
190
|
),
|
|
193
191
|
)
|
|
@@ -15,19 +15,15 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { action, makeObservable, observable } from 'mobx';
|
|
18
|
-
import type { DataCubeViewState } from '../DataCubeViewState.js';
|
|
19
18
|
import { type DataCubeQuerySnapshot } from '../../core/DataCubeQuerySnapshot.js';
|
|
20
19
|
import type { DataCubeQueryEditorPanelState } from './DataCubeEditorPanelState.js';
|
|
21
20
|
import type { DataCubeEditorState } from './DataCubeEditorState.js';
|
|
22
21
|
import { DataCubeEditorMutableConfiguration } from './DataCubeEditorMutableConfiguration.js';
|
|
23
|
-
import type { DataCubeConfiguration } from '../../core/
|
|
22
|
+
import type { DataCubeConfiguration } from '../../core/model/DataCubeConfiguration.js';
|
|
24
23
|
|
|
25
24
|
export class DataCubeEditorGeneralPropertiesPanelState
|
|
26
25
|
implements DataCubeQueryEditorPanelState
|
|
27
26
|
{
|
|
28
|
-
readonly view!: DataCubeViewState;
|
|
29
|
-
readonly editor!: DataCubeEditorState;
|
|
30
|
-
|
|
31
27
|
limit: number | undefined = undefined;
|
|
32
28
|
configuration = new DataCubeEditorMutableConfiguration();
|
|
33
29
|
|
|
@@ -40,9 +36,6 @@ export class DataCubeEditorGeneralPropertiesPanelState
|
|
|
40
36
|
|
|
41
37
|
applySnaphot: action,
|
|
42
38
|
});
|
|
43
|
-
|
|
44
|
-
this.editor = editor;
|
|
45
|
-
this.view = editor.view;
|
|
46
39
|
}
|
|
47
40
|
|
|
48
41
|
setLimit(val: number | undefined): void {
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { action, computed, makeObservable, observable } from 'mobx';
|
|
18
|
-
import type {
|
|
19
|
-
import type { DataCubeConfiguration } from '../../core/models/DataCubeConfiguration.js';
|
|
18
|
+
import type { DataCubeConfiguration } from '../../core/model/DataCubeConfiguration.js';
|
|
20
19
|
import {
|
|
21
20
|
DataCubeColumnKind,
|
|
22
21
|
isPivotResultColumnName,
|
|
@@ -25,7 +24,7 @@ import { type DataCubeQuerySnapshot } from '../../core/DataCubeQuerySnapshot.js'
|
|
|
25
24
|
import {
|
|
26
25
|
_toCol,
|
|
27
26
|
type DataCubeColumn,
|
|
28
|
-
} from '../../core/
|
|
27
|
+
} from '../../core/model/DataCubeColumn.js';
|
|
29
28
|
import {
|
|
30
29
|
DataCubeEditorColumnSelectorColumnState,
|
|
31
30
|
DataCubeEditorColumnSelectorState,
|
|
@@ -45,12 +44,12 @@ export class DataCubeEditorHorizontalPivotColumnSelectorState extends DataCubeEd
|
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
override get availableColumns() {
|
|
48
|
-
return this.
|
|
47
|
+
return this._editor.columnProperties.columns
|
|
49
48
|
.filter(
|
|
50
49
|
(col) =>
|
|
51
50
|
col.kind === DataCubeColumnKind.DIMENSION &&
|
|
52
51
|
// exclude group-level extended columns
|
|
53
|
-
!this.
|
|
52
|
+
!this._editor.groupExtendColumns.find(
|
|
54
53
|
(column) => column.name === col.name,
|
|
55
54
|
),
|
|
56
55
|
)
|
|
@@ -64,8 +63,8 @@ export class DataCubeEditorHorizontalPivotColumnSelectorState extends DataCubeEd
|
|
|
64
63
|
export class DataCubeEditorHorizontalPivotsPanelState
|
|
65
64
|
implements DataCubeQueryEditorPanelState
|
|
66
65
|
{
|
|
67
|
-
readonly
|
|
68
|
-
|
|
66
|
+
private readonly _editor!: DataCubeEditorState;
|
|
67
|
+
|
|
69
68
|
readonly selector!: DataCubeEditorHorizontalPivotColumnSelectorState;
|
|
70
69
|
|
|
71
70
|
castColumns: DataCubeColumn[] = [];
|
|
@@ -79,8 +78,7 @@ export class DataCubeEditorHorizontalPivotsPanelState
|
|
|
79
78
|
applySnaphot: action,
|
|
80
79
|
});
|
|
81
80
|
|
|
82
|
-
this.
|
|
83
|
-
this.view = editor.view;
|
|
81
|
+
this._editor = editor;
|
|
84
82
|
this.selector = new DataCubeEditorHorizontalPivotColumnSelectorState(
|
|
85
83
|
editor,
|
|
86
84
|
);
|
|
@@ -97,8 +95,8 @@ export class DataCubeEditorHorizontalPivotsPanelState
|
|
|
97
95
|
}
|
|
98
96
|
|
|
99
97
|
propagateChanges() {
|
|
100
|
-
this.
|
|
101
|
-
this.
|
|
98
|
+
this._editor.verticalPivots.adaptPropagatedChanges();
|
|
99
|
+
this._editor.sorts.adaptPropagatedChanges();
|
|
102
100
|
}
|
|
103
101
|
|
|
104
102
|
applySnaphot(
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
DataCubeColumnConfiguration,
|
|
46
46
|
DataCubeConfiguration,
|
|
47
47
|
DataCubePivotLayoutConfiguration,
|
|
48
|
-
} from '../../core/
|
|
48
|
+
} from '../../core/model/DataCubeConfiguration.js';
|
|
49
49
|
import { buildDefaultColumnConfiguration } from '../../core/DataCubeConfigurationBuilder.js';
|
|
50
50
|
import { type DataCubeQuerySnapshot } from '../../core/DataCubeQuerySnapshot.js';
|
|
51
51
|
import {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type { DataCubeConfiguration } from '../../core/
|
|
17
|
+
import type { DataCubeConfiguration } from '../../core/model/DataCubeConfiguration.js';
|
|
18
18
|
import type { DataCubeQuerySnapshot } from '../../core/DataCubeQuerySnapshot.js';
|
|
19
19
|
|
|
20
20
|
export interface DataCubeQueryEditorPanelState {
|
|
@@ -15,20 +15,18 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { action, makeObservable, observable } from 'mobx';
|
|
18
|
-
import type { DataCubeViewState } from '../DataCubeViewState.js';
|
|
19
18
|
import { type DataCubeQuerySnapshot } from '../../core/DataCubeQuerySnapshot.js';
|
|
20
19
|
import type { DataCubeQueryEditorPanelState } from './DataCubeEditorPanelState.js';
|
|
21
20
|
import type { DataCubeEditorState } from './DataCubeEditorState.js';
|
|
22
21
|
import { DataCubeEditorMutablePivotLayoutConfiguration } from './DataCubeEditorMutableConfiguration.js';
|
|
23
|
-
import type { DataCubeConfiguration } from '../../core/
|
|
22
|
+
import type { DataCubeConfiguration } from '../../core/model/DataCubeConfiguration.js';
|
|
24
23
|
import type { PlainObject } from '@finos/legend-shared';
|
|
25
24
|
import { _pruneExpandedPaths } from '../../core/DataCubeQuerySnapshotBuilderUtils.js';
|
|
26
25
|
|
|
27
26
|
export class DataCubeEditorPivotLayoutPanelState
|
|
28
27
|
implements DataCubeQueryEditorPanelState
|
|
29
28
|
{
|
|
30
|
-
readonly
|
|
31
|
-
readonly editor!: DataCubeEditorState;
|
|
29
|
+
private readonly _editor!: DataCubeEditorState;
|
|
32
30
|
|
|
33
31
|
pivotLayout = new DataCubeEditorMutablePivotLayoutConfiguration();
|
|
34
32
|
|
|
@@ -39,8 +37,7 @@ export class DataCubeEditorPivotLayoutPanelState
|
|
|
39
37
|
applySnaphot: action,
|
|
40
38
|
});
|
|
41
39
|
|
|
42
|
-
this.
|
|
43
|
-
this.view = editor.view;
|
|
40
|
+
this._editor = editor;
|
|
44
41
|
}
|
|
45
42
|
|
|
46
43
|
applySnaphot(
|
|
@@ -59,7 +56,7 @@ export class DataCubeEditorPivotLayoutPanelState
|
|
|
59
56
|
this.pivotLayout.setExpandedPaths(
|
|
60
57
|
_pruneExpandedPaths(
|
|
61
58
|
baseSnapshot.data.groupBy?.columns ?? [],
|
|
62
|
-
this.
|
|
59
|
+
this._editor.verticalPivots.selector.selectedColumns,
|
|
63
60
|
this.pivotLayout.expandedPaths,
|
|
64
61
|
),
|
|
65
62
|
);
|
|
@@ -15,9 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { action, makeObservable, observable } from 'mobx';
|
|
18
|
-
import type { DataCubeViewState } from '../DataCubeViewState.js';
|
|
19
18
|
import { type DataCubeQuerySnapshot } from '../../core/DataCubeQuerySnapshot.js';
|
|
20
|
-
import { _toCol } from '../../core/
|
|
19
|
+
import { _toCol } from '../../core/model/DataCubeColumn.js';
|
|
21
20
|
import {
|
|
22
21
|
DataCubeColumnKind,
|
|
23
22
|
DataCubeQuerySortDirection,
|
|
@@ -28,7 +27,7 @@ import {
|
|
|
28
27
|
DataCubeEditorColumnSelectorState,
|
|
29
28
|
} from './DataCubeEditorColumnSelectorState.js';
|
|
30
29
|
import type { DataCubeEditorState } from './DataCubeEditorState.js';
|
|
31
|
-
import type { DataCubeConfiguration } from '../../core/
|
|
30
|
+
import type { DataCubeConfiguration } from '../../core/model/DataCubeConfiguration.js';
|
|
32
31
|
import { uniqBy } from '@finos/legend-shared';
|
|
33
32
|
|
|
34
33
|
export class DataCubeEditorSortColumnState extends DataCubeEditorColumnSelectorColumnState {
|
|
@@ -68,27 +67,27 @@ export class DataCubeEditorSortColumnSelectorState extends DataCubeEditorColumnS
|
|
|
68
67
|
[
|
|
69
68
|
// if pivot is active, take the pivot result columns and include
|
|
70
69
|
// selected dimension columns which are not part of pivot columns
|
|
71
|
-
...(this.
|
|
70
|
+
...(this._editor.horizontalPivots.selector.selectedColumns.length
|
|
72
71
|
? [
|
|
73
|
-
...this.
|
|
72
|
+
...this._editor.horizontalPivots.pivotResultColumns,
|
|
74
73
|
...[
|
|
75
|
-
...this.
|
|
76
|
-
...this.
|
|
74
|
+
...this._editor.columns.selector.selectedColumns,
|
|
75
|
+
...this._editor.verticalPivots.selector.selectedColumns,
|
|
77
76
|
].filter(
|
|
78
77
|
(column) =>
|
|
79
|
-
this.
|
|
78
|
+
this._editor.columnProperties.getColumnConfiguration(
|
|
80
79
|
column.name,
|
|
81
80
|
).kind === DataCubeColumnKind.DIMENSION &&
|
|
82
|
-
!this.
|
|
81
|
+
!this._editor.horizontalPivots.selector.selectedColumns.find(
|
|
83
82
|
(col) => col.name === column.name,
|
|
84
83
|
),
|
|
85
84
|
),
|
|
86
85
|
]
|
|
87
86
|
: [
|
|
88
|
-
...this.
|
|
89
|
-
...this.
|
|
87
|
+
...this._editor.columns.selector.selectedColumns,
|
|
88
|
+
...this._editor.verticalPivots.selector.selectedColumns,
|
|
90
89
|
]),
|
|
91
|
-
...this.
|
|
90
|
+
...this._editor.groupExtendColumns,
|
|
92
91
|
],
|
|
93
92
|
(col) => col.name,
|
|
94
93
|
).map(
|
|
@@ -105,13 +104,9 @@ export class DataCubeEditorSortColumnSelectorState extends DataCubeEditorColumnS
|
|
|
105
104
|
export class DataCubeEditorSortsPanelState
|
|
106
105
|
implements DataCubeQueryEditorPanelState
|
|
107
106
|
{
|
|
108
|
-
readonly view!: DataCubeViewState;
|
|
109
|
-
readonly editor!: DataCubeEditorState;
|
|
110
107
|
readonly selector!: DataCubeEditorColumnSelectorState<DataCubeEditorSortColumnState>;
|
|
111
108
|
|
|
112
109
|
constructor(editor: DataCubeEditorState) {
|
|
113
|
-
this.editor = editor;
|
|
114
|
-
this.view = editor.view;
|
|
115
110
|
this.selector = new DataCubeEditorSortColumnSelectorState(editor);
|
|
116
111
|
}
|
|
117
112
|
|