@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
|
@@ -15,39 +15,40 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { DataCubeGridState } from './grid/DataCubeGridState.js';
|
|
17
17
|
import { DataCubeEditorState } from './editor/DataCubeEditorState.js';
|
|
18
|
-
import {
|
|
18
|
+
import { ActionState } from '@finos/legend-shared';
|
|
19
|
+
import { DataCubeQuerySnapshotService } from '../services/DataCubeQuerySnapshotService.js';
|
|
19
20
|
import { DataCubeInfoState } from './DataCubeInfoState.js';
|
|
20
21
|
import { DataCubeFilterEditorState } from './filter/DataCubeFilterEditorState.js';
|
|
21
22
|
import { DataCubeExtendManagerState } from './extend/DataCubeExtendManagerState.js';
|
|
22
23
|
import type { DataCubeState } from '../DataCubeState.js';
|
|
23
|
-
import type
|
|
24
|
-
import type { DataCubeSource } from '../core/
|
|
25
|
-
import
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
constructor(name: string);
|
|
32
|
-
end(): void;
|
|
33
|
-
}
|
|
24
|
+
import { type DataCubeEngine } from '../core/DataCubeEngine.js';
|
|
25
|
+
import type { DataCubeSource } from '../core/model/DataCubeSource.js';
|
|
26
|
+
import { DataCubeQuery } from '../core/model/DataCubeQuery.js';
|
|
27
|
+
import { DataCubeTaskService } from '../services/DataCubeTaskService.js';
|
|
28
|
+
import type { DataCubeLogService } from '../services/DataCubeLogService.js';
|
|
29
|
+
import type { DataCubeLayoutService } from '../services/DataCubeLayoutService.js';
|
|
30
|
+
import type { DataCubeAlertService } from '../services/DataCubeAlertService.js';
|
|
31
|
+
import type { DataCubeSettingService } from '../services/DataCubeSettingService.js';
|
|
34
32
|
export declare class DataCubeViewState {
|
|
35
33
|
readonly dataCube: DataCubeState;
|
|
36
34
|
readonly engine: DataCubeEngine;
|
|
37
|
-
readonly
|
|
35
|
+
readonly logService: DataCubeLogService;
|
|
36
|
+
readonly taskService: DataCubeTaskService;
|
|
37
|
+
readonly layoutService: DataCubeLayoutService;
|
|
38
|
+
readonly alertService: DataCubeAlertService;
|
|
39
|
+
readonly settingService: DataCubeSettingService;
|
|
40
|
+
readonly snapshotService: DataCubeQuerySnapshotService;
|
|
38
41
|
readonly info: DataCubeInfoState;
|
|
39
42
|
readonly editor: DataCubeEditorState;
|
|
40
43
|
readonly grid: DataCubeGridState;
|
|
41
44
|
readonly filter: DataCubeFilterEditorState;
|
|
42
45
|
readonly extend: DataCubeExtendManagerState;
|
|
43
|
-
readonly
|
|
46
|
+
readonly initializeState: ActionState;
|
|
44
47
|
private _source?;
|
|
45
48
|
constructor(dataCube: DataCubeState);
|
|
46
|
-
|
|
49
|
+
generateDataCubeQuery(): Promise<DataCubeQuery>;
|
|
47
50
|
get source(): DataCubeSource;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
initialize(initialQuery?: DataCubeQuery | undefined): Promise<void>;
|
|
51
|
+
initialize(query: DataCubeQuery): Promise<void>;
|
|
52
|
+
dispose(): void;
|
|
51
53
|
}
|
|
52
|
-
export {};
|
|
53
54
|
//# sourceMappingURL=DataCubeViewState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeViewState.d.ts","sourceRoot":"","sources":["../../../src/stores/view/DataCubeViewState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"DataCubeViewState.d.ts","sourceRoot":"","sources":["../../../src/stores/view/DataCubeViewState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,E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mBAAmB,CAAC;IACrC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAC3C,QAAQ,CAAC,MAAM,EAAE,0BAA0B,CAAC;IAE5C,QAAQ,CAAC,eAAe,cAAwB;IAEhD,OAAO,CAAC,OAAO,CAAC,CAA6B;gBAEjC,QAAQ,EAAE,aAAa;IA4B7B,qBAAqB;IAW3B,IAAI,MAAM,mBAKT;IAEK,UAAU,CAAC,KAAK,EAAE,aAAa;IA+CrC,OAAO;CAGR"}
|
|
@@ -15,59 +15,61 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { DataCubeGridState } from './grid/DataCubeGridState.js';
|
|
17
17
|
import { DataCubeEditorState } from './editor/DataCubeEditorState.js';
|
|
18
|
-
import { assertErrorThrown, IllegalStateError,
|
|
19
|
-
import {
|
|
18
|
+
import { ActionState, assertErrorThrown, IllegalStateError, } from '@finos/legend-shared';
|
|
19
|
+
import { DataCubeQuerySnapshotService } from '../services/DataCubeQuerySnapshotService.js';
|
|
20
20
|
import { DataCubeInfoState } from './DataCubeInfoState.js';
|
|
21
21
|
import { validateAndBuildQuerySnapshot } from '../core/DataCubeQuerySnapshotBuilder.js';
|
|
22
22
|
import { action, computed, makeObservable, observable, runInAction, } from 'mobx';
|
|
23
23
|
import { DataCubeFilterEditorState } from './filter/DataCubeFilterEditorState.js';
|
|
24
24
|
import { DataCubeExtendManagerState } from './extend/DataCubeExtendManagerState.js';
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
startTime = Date.now();
|
|
30
|
-
endTime;
|
|
31
|
-
constructor(name) {
|
|
32
|
-
this.name = name;
|
|
33
|
-
}
|
|
34
|
-
end() {
|
|
35
|
-
this.endTime = Date.now();
|
|
36
|
-
}
|
|
37
|
-
}
|
|
25
|
+
import {} from '../core/DataCubeEngine.js';
|
|
26
|
+
import { DataCubeQuery } from '../core/model/DataCubeQuery.js';
|
|
27
|
+
import { DataCubeTaskService } from '../services/DataCubeTaskService.js';
|
|
28
|
+
import { DataCubeConfiguration } from '../core/model/DataCubeConfiguration.js';
|
|
38
29
|
export class DataCubeViewState {
|
|
39
30
|
dataCube;
|
|
40
31
|
engine;
|
|
41
|
-
|
|
32
|
+
logService;
|
|
33
|
+
taskService;
|
|
34
|
+
layoutService;
|
|
35
|
+
alertService;
|
|
36
|
+
settingService;
|
|
37
|
+
snapshotService;
|
|
42
38
|
info;
|
|
43
39
|
editor;
|
|
44
40
|
grid;
|
|
45
41
|
filter;
|
|
46
42
|
extend;
|
|
47
|
-
|
|
43
|
+
initializeState = ActionState.create();
|
|
48
44
|
_source;
|
|
49
45
|
constructor(dataCube) {
|
|
50
46
|
makeObservable(this, {
|
|
51
47
|
_source: observable,
|
|
52
48
|
source: computed,
|
|
53
|
-
|
|
54
|
-
runningTasks: observable,
|
|
55
|
-
newTask: action,
|
|
56
|
-
endTask: action,
|
|
49
|
+
initialize: action,
|
|
57
50
|
});
|
|
58
51
|
this.dataCube = dataCube;
|
|
59
52
|
this.engine = dataCube.engine;
|
|
60
|
-
this.
|
|
53
|
+
this.logService = dataCube.logService;
|
|
54
|
+
this.taskService = new DataCubeTaskService(dataCube.taskService.manager);
|
|
55
|
+
this.layoutService = dataCube.layoutService;
|
|
56
|
+
this.alertService = dataCube.alertService;
|
|
57
|
+
this.settingService = dataCube.settingService;
|
|
61
58
|
// NOTE: snapshot manager must be instantiated before subscribers
|
|
62
|
-
this.
|
|
59
|
+
this.snapshotService = new DataCubeQuerySnapshotService(this.engine, this.logService);
|
|
63
60
|
this.info = new DataCubeInfoState(this);
|
|
64
61
|
this.editor = new DataCubeEditorState(this);
|
|
65
62
|
this.grid = new DataCubeGridState(this);
|
|
66
63
|
this.filter = new DataCubeFilterEditorState(this);
|
|
67
64
|
this.extend = new DataCubeExtendManagerState(this);
|
|
68
65
|
}
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
async generateDataCubeQuery() {
|
|
67
|
+
const snapshot = this.snapshotService.currentSnapshot;
|
|
68
|
+
const query = new DataCubeQuery();
|
|
69
|
+
query.source = this.dataCube.query.source;
|
|
70
|
+
query.configuration = DataCubeConfiguration.serialization.fromJson(snapshot.data.configuration);
|
|
71
|
+
query.query = await this.engine.getPartialQueryCode(snapshot);
|
|
72
|
+
return query;
|
|
71
73
|
}
|
|
72
74
|
get source() {
|
|
73
75
|
if (!this._source) {
|
|
@@ -75,18 +77,9 @@ export class DataCubeViewState {
|
|
|
75
77
|
}
|
|
76
78
|
return this._source;
|
|
77
79
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
this.
|
|
81
|
-
return task;
|
|
82
|
-
}
|
|
83
|
-
endTask(task) {
|
|
84
|
-
task.end();
|
|
85
|
-
this.runningTasks.delete(task.uuid);
|
|
86
|
-
return task;
|
|
87
|
-
}
|
|
88
|
-
async initialize(initialQuery) {
|
|
89
|
-
const task = this.newTask('Initializing');
|
|
80
|
+
async initialize(query) {
|
|
81
|
+
this.initializeState.inProgress();
|
|
82
|
+
const task = this.taskService.newTask('Initializing');
|
|
90
83
|
try {
|
|
91
84
|
await Promise.all([
|
|
92
85
|
this.info,
|
|
@@ -96,38 +89,35 @@ export class DataCubeViewState {
|
|
|
96
89
|
this.filter,
|
|
97
90
|
this.extend,
|
|
98
91
|
].map(async (state) => {
|
|
99
|
-
this.
|
|
92
|
+
this.snapshotService.registerSubscriber(state);
|
|
100
93
|
}));
|
|
101
|
-
const
|
|
102
|
-
if (!baseQuery) {
|
|
103
|
-
this.dataCube.alertAction({
|
|
104
|
-
message: `Initialization Failure: No initial input provided`,
|
|
105
|
-
prompt: `Make sure to either specify the initial input when setting up DataCube or the initial input getter in engine.`,
|
|
106
|
-
type: AlertType.ERROR,
|
|
107
|
-
actions: [],
|
|
108
|
-
});
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
const source = await this.engine.processQuerySource(baseQuery.source);
|
|
94
|
+
const source = await this.engine.processQuerySource(query.source);
|
|
112
95
|
runInAction(() => {
|
|
113
96
|
this._source = source;
|
|
114
97
|
});
|
|
115
|
-
const partialQuery = await this.engine.parseValueSpecification(
|
|
116
|
-
const initialSnapshot = validateAndBuildQuerySnapshot(partialQuery,
|
|
117
|
-
this.
|
|
98
|
+
const partialQuery = await this.engine.parseValueSpecification(query.query);
|
|
99
|
+
const initialSnapshot = validateAndBuildQuerySnapshot(partialQuery, source, query);
|
|
100
|
+
this.snapshotService.broadcastSnapshot(initialSnapshot);
|
|
101
|
+
this.dataCube.options?.onViewInitialized?.({
|
|
102
|
+
api: this.dataCube.api,
|
|
103
|
+
source,
|
|
104
|
+
});
|
|
105
|
+
this.initializeState.pass();
|
|
118
106
|
}
|
|
119
107
|
catch (error) {
|
|
120
108
|
assertErrorThrown(error);
|
|
121
|
-
this.
|
|
109
|
+
this.alertService.alertError(error, {
|
|
122
110
|
message: `Initialization Failure: ${error.message}`,
|
|
123
|
-
|
|
124
|
-
type: AlertType.ERROR,
|
|
125
|
-
actions: [],
|
|
111
|
+
text: `Resolve the issue and reload the engine.`,
|
|
126
112
|
});
|
|
113
|
+
this.initializeState.fail();
|
|
127
114
|
}
|
|
128
115
|
finally {
|
|
129
|
-
this.endTask(task);
|
|
116
|
+
this.taskService.endTask(task);
|
|
130
117
|
}
|
|
131
118
|
}
|
|
119
|
+
dispose() {
|
|
120
|
+
this.taskService.dispose();
|
|
121
|
+
}
|
|
132
122
|
}
|
|
133
123
|
//# sourceMappingURL=DataCubeViewState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeViewState.js","sourceRoot":"","sources":["../../../src/stores/view/DataCubeViewState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"DataC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6BAA6B,CACnD,YAAY,EACZ,MAAM,EACN,KAAK,CACN,CAAC;YACF,IAAI,CAAC,eAAe,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;YACxD,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,CAAC;gBACzC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG;gBACtB,MAAM;aACP,CAAC,CAAC;YACH,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC;QAC9B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,EAAE;gBAClC,OAAO,EAAE,2BAA2B,KAAK,CAAC,OAAO,EAAE;gBACnD,IAAI,EAAE,0CAA0C;aACjD,CAAC,CAAC;YACH,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC;QAC9B,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;IAED,OAAO;QACL,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;CACF"}
|
|
@@ -13,15 +13,13 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { DataCubeViewState } from '../DataCubeViewState.js';
|
|
17
16
|
import { type DataCubeQuerySnapshot } from '../../core/DataCubeQuerySnapshot.js';
|
|
18
17
|
import type { DataCubeQueryEditorPanelState } from './DataCubeEditorPanelState.js';
|
|
19
18
|
import type { DataCubeEditorState } from './DataCubeEditorState.js';
|
|
20
19
|
import { DataCubeEditorMutableColumnConfiguration } from './DataCubeEditorMutableConfiguration.js';
|
|
21
|
-
import type { DataCubeConfiguration } from '../../core/
|
|
20
|
+
import type { DataCubeConfiguration } from '../../core/model/DataCubeConfiguration.js';
|
|
22
21
|
export declare class DataCubeEditorColumnPropertiesPanelState implements DataCubeQueryEditorPanelState {
|
|
23
|
-
readonly
|
|
24
|
-
readonly editor: DataCubeEditorState;
|
|
22
|
+
private readonly _view;
|
|
25
23
|
columns: DataCubeEditorMutableColumnConfiguration[];
|
|
26
24
|
selectedColumnName?: string | undefined;
|
|
27
25
|
showAdvancedSettings: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeEditorColumnPropertiesPanelState.d.ts","sourceRoot":"","sources":["../../../../src/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DataCubeEditorColumnPropertiesPanelState.d.ts","sourceRoot":"","sources":["../../../../src/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,wCAAwC,EAAE,MAAM,yCAAyC,CAAC;AAMnG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAEvF,qBAAa,wCACX,YAAW,6BAA6B;IAExC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAqB;IAE3C,OAAO,EAAE,wCAAwC,EAAE,CAAM;IACzD,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,oBAAoB,UAAS;gBAEjB,MAAM,EAAE,mBAAmB;IAkBvC,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS;IAOlD,UAAU,CAAC,GAAG,EAAE,wCAAwC,EAAE;IAI1D,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS;IAI7C,IAAI,cAAc,yDAEjB;IAED,uBAAuB,CAAC,GAAG,EAAE,OAAO;IAIpC,YAAY,CACV,QAAQ,EAAE,qBAAqB,EAC/B,aAAa,EAAE,qBAAqB;IAkBtC,aAAa,CACX,WAAW,EAAE,qBAAqB,EAClC,YAAY,EAAE,qBAAqB;CAOtC"}
|
|
@@ -18,8 +18,7 @@ import {} from '../../core/DataCubeQuerySnapshot.js';
|
|
|
18
18
|
import { DataCubeEditorMutableColumnConfiguration } from './DataCubeEditorMutableConfiguration.js';
|
|
19
19
|
import { getNonNullableEntry, guaranteeNonNullable, } from '@finos/legend-shared';
|
|
20
20
|
export class DataCubeEditorColumnPropertiesPanelState {
|
|
21
|
-
|
|
22
|
-
editor;
|
|
21
|
+
_view;
|
|
23
22
|
columns = [];
|
|
24
23
|
selectedColumnName;
|
|
25
24
|
showAdvancedSettings = false;
|
|
@@ -34,8 +33,7 @@ export class DataCubeEditorColumnPropertiesPanelState {
|
|
|
34
33
|
setShowAdvancedSettings: action,
|
|
35
34
|
applySnaphot: action,
|
|
36
35
|
});
|
|
37
|
-
this.
|
|
38
|
-
this.view = editor.view;
|
|
36
|
+
this._view = editor.view;
|
|
39
37
|
}
|
|
40
38
|
getColumnConfiguration(colName) {
|
|
41
39
|
return guaranteeNonNullable(this.columns.find((col) => col.name === colName), `Can't find configuration for column '${colName}'`);
|
|
@@ -53,7 +51,7 @@ export class DataCubeEditorColumnPropertiesPanelState {
|
|
|
53
51
|
this.showAdvancedSettings = val;
|
|
54
52
|
}
|
|
55
53
|
applySnaphot(snapshot, configuration) {
|
|
56
|
-
this.setColumns(snapshot.data.configuration.columns.map((column) => DataCubeEditorMutableColumnConfiguration.create(column, snapshot, this.
|
|
54
|
+
this.setColumns(snapshot.data.configuration.columns.map((column) => DataCubeEditorMutableColumnConfiguration.create(column, snapshot, this._view.engine.aggregateOperations)));
|
|
57
55
|
if (!this.selectedColumn && this.columns.length) {
|
|
58
56
|
this.setSelectedColumnName(getNonNullableEntry(this.columns, 0).name);
|
|
59
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeEditorColumnPropertiesPanelState.js","sourceRoot":"","sources":["../../../../src/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EAA8B,MAAM,qCAAqC,CAAC;AAGjF,OAAO,EAAE,wCAAwC,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EACL,mBAAmB,EACnB,oBAAoB,GAErB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,OAAO,wCAAwC;
|
|
1
|
+
{"version":3,"file":"DataCubeEditorColumnPropertiesPanelState.js","sourceRoot":"","sources":["../../../../src/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EAA8B,MAAM,qCAAqC,CAAC;AAGjF,OAAO,EAAE,wCAAwC,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EACL,mBAAmB,EACnB,oBAAoB,GAErB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,OAAO,wCAAwC;IAGlC,KAAK,CAAqB;IAE3C,OAAO,GAA+C,EAAE,CAAC;IACzD,kBAAkB,CAAsB;IACxC,oBAAoB,GAAG,KAAK,CAAC;IAE7B,YAAY,MAA2B;QACrC,cAAc,CAAC,IAAI,EAAE;YACnB,OAAO,EAAE,UAAU;YACnB,UAAU,EAAE,MAAM;YAElB,kBAAkB,EAAE,UAAU;YAC9B,qBAAqB,EAAE,MAAM;YAC7B,cAAc,EAAE,QAAQ;YAExB,oBAAoB,EAAE,UAAU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C;IACH,CAAC;IAED,aAAa,CACX,WAAkC,EAClC,YAAmC;QAEnC,WAAW,CAAC,IAAI,CAAC,aAAa,GAAG;YAC/B,GAAG,WAAW,CAAC,IAAI,CAAC,aAAa;YACjC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;SAC1D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { DataCubeViewState } from '../DataCubeViewState.js';
|
|
17
16
|
import type { DataCubeEditorState } from './DataCubeEditorState.js';
|
|
18
17
|
export declare class DataCubeEditorColumnSelectorColumnState {
|
|
19
18
|
readonly name: string;
|
|
@@ -21,8 +20,7 @@ export declare class DataCubeEditorColumnSelectorColumnState {
|
|
|
21
20
|
constructor(name: string, type: string);
|
|
22
21
|
}
|
|
23
22
|
export declare abstract class DataCubeEditorColumnSelectorState<T extends DataCubeEditorColumnSelectorColumnState> {
|
|
24
|
-
readonly
|
|
25
|
-
readonly editor: DataCubeEditorState;
|
|
23
|
+
protected readonly _editor: DataCubeEditorState;
|
|
26
24
|
selectedColumns: T[];
|
|
27
25
|
availableColumnsSearchText: string;
|
|
28
26
|
selectedColumnsSearchText: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeEditorColumnSelectorState.d.ts","sourceRoot":"","sources":["../../../../src/stores/view/editor/DataCubeEditorColumnSelectorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"DataCubeEditorColumnSelectorState.d.ts","sourceRoot":"","sources":["../../../../src/stores/view/editor/DataCubeEditorColumnSelectorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KA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import { _sortByColName } from '../../core/
|
|
18
|
+
import { _sortByColName } from '../../core/model/DataCubeColumn.js';
|
|
19
19
|
export class DataCubeEditorColumnSelectorColumnState {
|
|
20
20
|
name;
|
|
21
21
|
type;
|
|
@@ -25,8 +25,7 @@ export class DataCubeEditorColumnSelectorColumnState {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
export class DataCubeEditorColumnSelectorState {
|
|
28
|
-
|
|
29
|
-
editor;
|
|
28
|
+
_editor;
|
|
30
29
|
selectedColumns = [];
|
|
31
30
|
availableColumnsSearchText = '';
|
|
32
31
|
selectedColumnsSearchText = '';
|
|
@@ -43,8 +42,7 @@ export class DataCubeEditorColumnSelectorState {
|
|
|
43
42
|
selectedColumnsSearchText: observable,
|
|
44
43
|
setSelectedColumnsSearchText: action,
|
|
45
44
|
});
|
|
46
|
-
this.
|
|
47
|
-
this.view = editor.view;
|
|
45
|
+
this._editor = editor;
|
|
48
46
|
this.onChange = options?.onChange;
|
|
49
47
|
}
|
|
50
48
|
get availableColumnsForDisplay() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeEditorColumnSelectorState.js","sourceRoot":"","sources":["../../../../src/stores/view/editor/DataCubeEditorColumnSelectorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"DataCubeEditorColumnSelectorState.js","sourceRoot":"","sources":["../../../../src/stores/view/editor/DataCubeEditorColumnSelectorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAA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C,eAAe,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;QAC/D,IAAI,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED,6BAA6B,CAAC,GAAW;QACvC,IAAI,CAAC,0BAA0B,GAAG,GAAG,CAAC;IACxC,CAAC;IAED,4BAA4B,CAAC,GAAW;QACtC,IAAI,CAAC,yBAAyB,GAAG,GAAG,CAAC;IACvC,CAAC;IAED,SAAS,CAAC,OAAe;QACvB,OAAO,oBAAoB,CACzB,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,OAAO,CAAC,EACzD,sBAAsB,OAAO,GAAG,CACjC,CAAC;IACJ,CAAC;CAGF"}
|
|
@@ -13,12 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { DataCubeViewState } from '../DataCubeViewState.js';
|
|
17
16
|
import { type DataCubeQuerySnapshot } from '../../core/DataCubeQuerySnapshot.js';
|
|
18
17
|
import type { DataCubeQueryEditorPanelState } from './DataCubeEditorPanelState.js';
|
|
19
18
|
import { DataCubeEditorColumnSelectorColumnState, DataCubeEditorColumnSelectorState } from './DataCubeEditorColumnSelectorState.js';
|
|
20
19
|
import type { DataCubeEditorState } from './DataCubeEditorState.js';
|
|
21
|
-
import { type DataCubeConfiguration } from '../../core/
|
|
20
|
+
import { type DataCubeConfiguration } from '../../core/model/DataCubeConfiguration.js';
|
|
22
21
|
export declare class DataCubeEditorBasicColumnSelectorState extends DataCubeEditorColumnSelectorState<DataCubeEditorColumnSelectorColumnState> {
|
|
23
22
|
showHiddenColumns: boolean;
|
|
24
23
|
constructor(editor: DataCubeEditorState, options?: {
|
|
@@ -41,8 +40,7 @@ export declare class DataCubeEditorBasicColumnSelectorState extends DataCubeEdit
|
|
|
41
40
|
* those columns or not, they still need to be fetched.
|
|
42
41
|
*/
|
|
43
42
|
export declare class DataCubeEditorColumnsPanelState implements DataCubeQueryEditorPanelState {
|
|
44
|
-
readonly
|
|
45
|
-
readonly editor: DataCubeEditorState;
|
|
43
|
+
private readonly _editor;
|
|
46
44
|
readonly selector: DataCubeEditorBasicColumnSelectorState;
|
|
47
45
|
constructor(editor: DataCubeEditorState);
|
|
48
46
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeEditorColumnsPanelState.d.ts","sourceRoot":"","sources":["../../../../src/stores/view/editor/DataCubeEditorColumnsPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"DataCubeEditorColumnsPanelState.d.ts","sourceRoot":"","sources":["../../../../src/stores/view/editor/DataCubeEditorColumnsPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAEjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EACL,uCAAuC,EACvC,iCAAiC,EAClC,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAEvF,qBAAa,sCAAuC,SAAQ,iCAAiC,CAAC,uCAAuC,CAAC;IACpI,iBAAiB,UAAS;gBAGxB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE;QACR,QAAQ,CAAC,EACL,CAAC,CACC,MAAM,EAAE,iCAAiC,CAAC,uCAAuC,CAAC,KAC/E,IAAI,CAAC,GACV,SAAS,CAAC;KACf;IAaM,WAAW,CAAC,MAAM,EAAE,uCAAuC;IAOpE,IAAa,gBAAgB,8CAQ5B;IAED,IAAa,0BAA0B,IAAI,uCAAuC,EAAE,CAOnF;IAED,IAAa,yBAAyB,IAAI,uCAAuC,EAAE,CAOlF;IAED,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;CAGzC;AAED;;;;;;;;;GASG;AACH,qBAAa,+BACX,YAAW,6BAA6B;IAExC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAuB;IAE/C,QAAQ,CAAC,QAAQ,EAAG,sCAAsC,CAAC;gBAE/C,MAAM,EAAE,mBAAmB;IAgCvC;;;;;OAKG;IACH,gBAAgB,IAAI,IAAI;IAIxB,YAAY,CACV,QAAQ,EAAE,qBAAqB,EAC/B,aAAa,EAAE,qBAAqB;IAiBtC,aAAa,CACX,WAAW,EAAE,qBAAqB,EAClC,YAAY,EAAE,qBAAqB;CAsBtC"}
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { action, makeObservable, observable, override } from 'mobx';
|
|
17
17
|
import {} from '../../core/DataCubeQuerySnapshot.js';
|
|
18
|
-
import { _toCol } from '../../core/
|
|
18
|
+
import { _toCol } from '../../core/model/DataCubeColumn.js';
|
|
19
19
|
import { DataCubeEditorColumnSelectorColumnState, DataCubeEditorColumnSelectorState, } from './DataCubeEditorColumnSelectorState.js';
|
|
20
|
-
import {} from '../../core/
|
|
20
|
+
import {} from '../../core/model/DataCubeConfiguration.js';
|
|
21
21
|
export class DataCubeEditorBasicColumnSelectorState extends DataCubeEditorColumnSelectorState {
|
|
22
22
|
showHiddenColumns = false;
|
|
23
23
|
constructor(editor, options) {
|
|
@@ -34,19 +34,19 @@ export class DataCubeEditorBasicColumnSelectorState extends DataCubeEditorColumn
|
|
|
34
34
|
}
|
|
35
35
|
get availableColumns() {
|
|
36
36
|
return [
|
|
37
|
-
...this.
|
|
38
|
-
...this.
|
|
39
|
-
...this.
|
|
37
|
+
...this._editor.sourceColumns,
|
|
38
|
+
...this._editor.leafExtendColumns,
|
|
39
|
+
...this._editor.groupExtendColumns,
|
|
40
40
|
].map((col) => new DataCubeEditorColumnSelectorColumnState(col.name, col.type));
|
|
41
41
|
}
|
|
42
42
|
get availableColumnsForDisplay() {
|
|
43
43
|
return super.availableColumnsForDisplay.filter((column) => this.showHiddenColumns ||
|
|
44
|
-
!this.
|
|
44
|
+
!this._editor.columnProperties.getColumnConfiguration(column.name)
|
|
45
45
|
.hideFromView);
|
|
46
46
|
}
|
|
47
47
|
get selectedColumnsForDisplay() {
|
|
48
48
|
return super.selectedColumnsForDisplay.filter((column) => this.showHiddenColumns ||
|
|
49
|
-
!this.
|
|
49
|
+
!this._editor.columnProperties.getColumnConfiguration(column.name)
|
|
50
50
|
.hideFromView);
|
|
51
51
|
}
|
|
52
52
|
setShowHiddenColumns(val) {
|
|
@@ -64,25 +64,23 @@ export class DataCubeEditorBasicColumnSelectorState extends DataCubeEditorColumn
|
|
|
64
64
|
* those columns or not, they still need to be fetched.
|
|
65
65
|
*/
|
|
66
66
|
export class DataCubeEditorColumnsPanelState {
|
|
67
|
-
|
|
68
|
-
editor;
|
|
67
|
+
_editor;
|
|
69
68
|
selector;
|
|
70
69
|
constructor(editor) {
|
|
71
70
|
makeObservable(this, {
|
|
72
71
|
applySnaphot: action,
|
|
73
72
|
});
|
|
74
|
-
this.
|
|
75
|
-
this.view = editor.view;
|
|
73
|
+
this._editor = editor;
|
|
76
74
|
this.selector = new DataCubeEditorBasicColumnSelectorState(editor, {
|
|
77
75
|
onChange: (selector) => {
|
|
78
|
-
const selectedColumnConfigurations = selector.selectedColumns.map((col) => this.
|
|
79
|
-
const unselectedColumnConfigurations = this.
|
|
76
|
+
const selectedColumnConfigurations = selector.selectedColumns.map((col) => this._editor.columnProperties.getColumnConfiguration(col.name));
|
|
77
|
+
const unselectedColumnConfigurations = this._editor.columnProperties.columns.filter((col) => !selectedColumnConfigurations.includes(col));
|
|
80
78
|
// update selection config in column configurations and apply the
|
|
81
79
|
// order of selected columns in the column configurations list (unselected
|
|
82
80
|
// columns are kept in the same order and placed after all selected ones)
|
|
83
81
|
selectedColumnConfigurations.forEach((col) => col.setIsSelected(true));
|
|
84
82
|
unselectedColumnConfigurations.forEach((col) => col.setIsSelected(false));
|
|
85
|
-
this.
|
|
83
|
+
this._editor.columnProperties.setColumns([
|
|
86
84
|
...selectedColumnConfigurations,
|
|
87
85
|
...unselectedColumnConfigurations,
|
|
88
86
|
]);
|
|
@@ -96,10 +94,10 @@ export class DataCubeEditorColumnsPanelState {
|
|
|
96
94
|
* (i.e. publishes a new snapshot)
|
|
97
95
|
*/
|
|
98
96
|
propagateChanges() {
|
|
99
|
-
this.
|
|
97
|
+
this._editor.sorts.adaptPropagatedChanges();
|
|
100
98
|
}
|
|
101
99
|
applySnaphot(snapshot, configuration) {
|
|
102
|
-
this.selector.setSelectedColumns(this.
|
|
100
|
+
this.selector.setSelectedColumns(this._editor.columnProperties.columns
|
|
103
101
|
// extract from the configuration since it specifies the order of columns
|
|
104
102
|
// there taking into account group-level extended columns
|
|
105
103
|
.filter((col) => col.isSelected)
|
|
@@ -121,7 +119,7 @@ export class DataCubeEditorColumnsPanelState {
|
|
|
121
119
|
// by each extended column.
|
|
122
120
|
newSnapshot.data.selectColumns = this.selector.selectedColumns
|
|
123
121
|
// filter out group-level extended columns since these columns are technically not selectable
|
|
124
|
-
.filter((col) => !this.
|
|
122
|
+
.filter((col) => !this._editor.groupExtendColumns.find((column) => column.name === col.name))
|
|
125
123
|
.map(_toCol);
|
|
126
124
|
}
|
|
127
125
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeEditorColumnsPanelState.js","sourceRoot":"","sources":["../../../../src/stores/view/editor/DataCubeEditorColumnsPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"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CAAC,aAAa,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe;YAC5D,6FAA6F;aAC5F,MAAM,CACL,CAAC,GAAG,EAAE,EAAE,CACN,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,CACnC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI,CACrC,CACJ;aACA,GAAG,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;CACF"}
|
|
@@ -13,15 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { DataCubeViewState } from '../DataCubeViewState.js';
|
|
17
16
|
import { type DataCubeQuerySnapshot } from '../../core/DataCubeQuerySnapshot.js';
|
|
18
17
|
import type { DataCubeQueryEditorPanelState } from './DataCubeEditorPanelState.js';
|
|
19
18
|
import type { DataCubeEditorState } from './DataCubeEditorState.js';
|
|
20
19
|
import { DataCubeEditorMutableConfiguration } from './DataCubeEditorMutableConfiguration.js';
|
|
21
|
-
import type { DataCubeConfiguration } from '../../core/
|
|
20
|
+
import type { DataCubeConfiguration } from '../../core/model/DataCubeConfiguration.js';
|
|
22
21
|
export declare class DataCubeEditorGeneralPropertiesPanelState implements DataCubeQueryEditorPanelState {
|
|
23
|
-
readonly view: DataCubeViewState;
|
|
24
|
-
readonly editor: DataCubeEditorState;
|
|
25
22
|
limit: number | undefined;
|
|
26
23
|
configuration: DataCubeEditorMutableConfiguration;
|
|
27
24
|
constructor(editor: DataCubeEditorState);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeEditorGeneralPropertiesPanelState.d.ts","sourceRoot":"","sources":["../../../../src/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"DataCubeEditorGeneralPropertiesPanelState.d.ts","sourceRoot":"","sources":["../../../../src/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAEvF,qBAAa,yCACX,YAAW,6BAA6B;IAExC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAa;IACtC,aAAa,qCAA4C;gBAE7C,MAAM,EAAE,mBAAmB;IAWvC,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAIvC,YAAY,CACV,QAAQ,EAAE,qBAAqB,EAC/B,aAAa,EAAE,qBAAqB;IAYtC,aAAa,CACX,WAAW,EAAE,qBAAqB,EAClC,YAAY,EAAE,qBAAqB;CAOtC"}
|
|
@@ -17,8 +17,6 @@ import { action, makeObservable, observable } from 'mobx';
|
|
|
17
17
|
import {} from '../../core/DataCubeQuerySnapshot.js';
|
|
18
18
|
import { DataCubeEditorMutableConfiguration } from './DataCubeEditorMutableConfiguration.js';
|
|
19
19
|
export class DataCubeEditorGeneralPropertiesPanelState {
|
|
20
|
-
view;
|
|
21
|
-
editor;
|
|
22
20
|
limit = undefined;
|
|
23
21
|
configuration = new DataCubeEditorMutableConfiguration();
|
|
24
22
|
constructor(editor) {
|
|
@@ -28,8 +26,6 @@ export class DataCubeEditorGeneralPropertiesPanelState {
|
|
|
28
26
|
setLimit: action,
|
|
29
27
|
applySnaphot: action,
|
|
30
28
|
});
|
|
31
|
-
this.editor = editor;
|
|
32
|
-
this.view = editor.view;
|
|
33
29
|
}
|
|
34
30
|
setLimit(val) {
|
|
35
31
|
this.limit = val;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeEditorGeneralPropertiesPanelState.js","sourceRoot":"","sources":["../../../../src/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"DataCubeEditorGeneralPropertiesPanelState.js","sourceRoot":"","sources":["../../../../src/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAA8B,MAAM,qCAAqC,CAAC;AAGjF,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAG7F,MAAM,OAAO,yCAAyC;IAGpD,KAAK,GAAuB,SAAS,CAAC;IACtC,aAAa,GAAG,IAAI,kCAAkC,EAAE,CAAC;IAEzD,YAAY,MAA2B;QACrC,cAAc,CAAC,IAAI,EAAE;YACnB,aAAa,EAAE,UAAU;YAEzB,KAAK,EAAE,UAAU;YACjB,QAAQ,EAAE,MAAM;YAEhB,YAAY,EAAE,MAAM;SACrB,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,GAAuB;QAC9B,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;IACnB,CAAC;IAED,YAAY,CACV,QAA+B,EAC/B,aAAoC;QAEpC,IAAI,CAAC,QAAQ,CACX,QAAQ,CAAC,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;YAC3D,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK;YACrB,CAAC,CAAC,SAAS,CACd,CAAC;QACF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