@finos/legend-data-cube 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__lib__/DataCubeDocumentation.d.ts.map +1 -0
- package/lib/__lib__/DataCubeDocumentation.js.map +1 -0
- package/lib/components/DataCube.d.ts.map +1 -1
- package/lib/components/DataCube.js +4 -4
- package/lib/components/DataCube.js.map +1 -1
- package/lib/components/DataCubeProvider.d.ts +2 -2
- package/lib/components/DataCubeProvider.d.ts.map +1 -1
- package/lib/components/core/DataCubeAlert.d.ts.map +1 -0
- package/lib/components/core/DataCubeAlert.js.map +1 -0
- package/lib/components/core/DataCubeCodeCheckErrorAlert.d.ts +24 -0
- package/lib/components/core/DataCubeCodeCheckErrorAlert.d.ts.map +1 -0
- package/lib/components/core/DataCubeCodeCheckErrorAlert.js +78 -0
- package/lib/components/core/DataCubeCodeCheckErrorAlert.js.map +1 -0
- package/lib/components/core/DataCubeDocumentationPanel.d.ts.map +1 -0
- package/lib/components/core/DataCubeDocumentationPanel.js.map +1 -0
- package/lib/components/core/DataCubeFormUtils.d.ts.map +1 -0
- package/lib/components/core/DataCubeFormUtils.js.map +1 -0
- package/lib/components/{application → core}/DataCubeLayoutManager.d.ts +1 -1
- package/lib/components/core/DataCubeLayoutManager.d.ts.map +1 -0
- package/lib/components/{application → core}/DataCubeLayoutManager.js +1 -1
- package/lib/components/core/DataCubeLayoutManager.js.map +1 -0
- package/lib/components/{shared → core}/DataCubePureCodeEditorUtils.d.ts +2 -2
- package/lib/components/core/DataCubePureCodeEditorUtils.d.ts.map +1 -0
- package/lib/components/{shared → core}/DataCubePureCodeEditorUtils.js +2 -2
- package/lib/components/core/DataCubePureCodeEditorUtils.js.map +1 -0
- package/lib/components/core/DataCubeSettingsPanel.d.ts.map +1 -0
- package/lib/components/{application → core}/DataCubeSettingsPanel.js +3 -6
- package/lib/components/core/DataCubeSettingsPanel.js.map +1 -0
- package/lib/components/{editor → view/editor}/DataCubeEditor.d.ts +1 -1
- package/lib/components/view/editor/DataCubeEditor.d.ts.map +1 -0
- package/lib/components/{editor → view/editor}/DataCubeEditor.js +1 -1
- package/lib/components/view/editor/DataCubeEditor.js.map +1 -0
- package/lib/components/{editor → view/editor}/DataCubeEditorColumnPropertiesPanel.d.ts +1 -1
- package/lib/components/view/editor/DataCubeEditorColumnPropertiesPanel.d.ts.map +1 -0
- package/lib/components/{editor → view/editor}/DataCubeEditorColumnPropertiesPanel.js +11 -11
- package/lib/components/view/editor/DataCubeEditorColumnPropertiesPanel.js.map +1 -0
- package/lib/components/{editor/DataCubeEditorColumnsSelector.d.ts → view/editor/DataCubeEditorColumnSelector.d.ts} +6 -6
- package/lib/components/view/editor/DataCubeEditorColumnSelector.d.ts.map +1 -0
- package/lib/components/{editor/DataCubeEditorColumnsSelector.js → view/editor/DataCubeEditorColumnSelector.js} +4 -4
- package/lib/components/view/editor/DataCubeEditorColumnSelector.js.map +1 -0
- package/lib/components/{editor → view/editor}/DataCubeEditorColumnsPanel.d.ts +1 -1
- package/lib/components/view/editor/DataCubeEditorColumnsPanel.d.ts.map +1 -0
- package/lib/components/{editor → view/editor}/DataCubeEditorColumnsPanel.js +4 -4
- package/lib/components/view/editor/DataCubeEditorColumnsPanel.js.map +1 -0
- package/lib/components/{editor → view/editor}/DataCubeEditorGeneralPropertiesPanel.d.ts +1 -1
- package/lib/components/view/editor/DataCubeEditorGeneralPropertiesPanel.d.ts.map +1 -0
- package/lib/components/{editor → view/editor}/DataCubeEditorGeneralPropertiesPanel.js +5 -5
- package/lib/components/view/editor/DataCubeEditorGeneralPropertiesPanel.js.map +1 -0
- package/lib/components/{editor → view/editor}/DataCubeEditorHorizontalPivotsPanel.d.ts +1 -1
- package/lib/components/view/editor/DataCubeEditorHorizontalPivotsPanel.d.ts.map +1 -0
- package/lib/components/{editor → view/editor}/DataCubeEditorHorizontalPivotsPanel.js +3 -3
- package/lib/components/view/editor/DataCubeEditorHorizontalPivotsPanel.js.map +1 -0
- package/lib/components/{editor → view/editor}/DataCubeEditorSortsPanel.d.ts +1 -1
- package/lib/components/view/editor/DataCubeEditorSortsPanel.d.ts.map +1 -0
- package/lib/components/view/editor/DataCubeEditorSortsPanel.js +51 -0
- package/lib/components/view/editor/DataCubeEditorSortsPanel.js.map +1 -0
- package/lib/components/{editor → view/editor}/DataCubeEditorVerticalPivotsPanel.d.ts +1 -1
- package/lib/components/view/editor/DataCubeEditorVerticalPivotsPanel.d.ts.map +1 -0
- package/lib/components/{editor → view/editor}/DataCubeEditorVerticalPivotsPanel.js +2 -2
- package/lib/components/view/editor/DataCubeEditorVerticalPivotsPanel.js.map +1 -0
- package/lib/components/{extend → view/extend}/DataCubeColumnEditor.d.ts +2 -2
- package/lib/components/view/extend/DataCubeColumnEditor.d.ts.map +1 -0
- package/lib/components/{extend → view/extend}/DataCubeColumnEditor.js +15 -7
- package/lib/components/view/extend/DataCubeColumnEditor.js.map +1 -0
- package/lib/components/{filter → view/filter}/DataCubeFilterEditor.d.ts +1 -1
- package/lib/components/view/filter/DataCubeFilterEditor.d.ts.map +1 -0
- package/lib/components/{filter → view/filter}/DataCubeFilterEditor.js +17 -17
- package/lib/components/view/filter/DataCubeFilterEditor.js.map +1 -0
- package/lib/components/{grid → view/grid}/DataCubeGrid.d.ts +1 -1
- package/lib/components/view/grid/DataCubeGrid.d.ts.map +1 -0
- package/lib/components/{grid → view/grid}/DataCubeGrid.js +3 -3
- package/lib/components/view/grid/DataCubeGrid.js.map +1 -0
- package/lib/components/view/grid/DataCubeGridShared.d.ts.map +1 -0
- package/lib/components/{grid → view/grid}/DataCubeGridShared.js +1 -1
- package/lib/components/view/grid/DataCubeGridShared.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +5 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/DataCubeState.d.ts +4 -5
- package/lib/stores/DataCubeState.d.ts.map +1 -1
- package/lib/stores/DataCubeState.js +11 -12
- package/lib/stores/DataCubeState.js.map +1 -1
- package/lib/stores/{engine → core}/DataCubeApplicationEngine.d.ts +15 -7
- package/lib/stores/core/DataCubeApplicationEngine.d.ts.map +1 -0
- package/lib/stores/core/DataCubeApplicationEngine.js +94 -0
- package/lib/stores/core/DataCubeApplicationEngine.js.map +1 -0
- package/lib/stores/core/DataCubeConfiguration.d.ts +3 -0
- package/lib/stores/core/DataCubeConfiguration.d.ts.map +1 -1
- package/lib/stores/core/DataCubeConfiguration.js +9 -0
- package/lib/stores/core/DataCubeConfiguration.js.map +1 -1
- package/lib/stores/core/DataCubeConfigurationBuilder.js +4 -4
- package/lib/stores/core/DataCubeConfigurationBuilder.js.map +1 -1
- package/lib/stores/{engine → core}/DataCubeEngine.d.ts +17 -6
- package/lib/stores/core/DataCubeEngine.d.ts.map +1 -0
- package/lib/stores/{engine → core}/DataCubeEngine.js +35 -11
- package/lib/stores/core/DataCubeEngine.js.map +1 -0
- package/lib/stores/core/DataCubeEngineUtils.d.ts +2 -0
- package/lib/stores/core/DataCubeEngineUtils.d.ts.map +1 -0
- package/lib/stores/core/DataCubeEngineUtils.js +2 -0
- package/lib/stores/core/DataCubeEngineUtils.js.map +1 -0
- package/lib/stores/core/DataCubeLayoutManagerState.d.ts.map +1 -0
- package/lib/stores/core/DataCubeLayoutManagerState.js.map +1 -0
- package/lib/stores/core/DataCubeQuery.d.ts.map +1 -0
- package/lib/stores/core/DataCubeQuery.js.map +1 -0
- 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 +25 -26
- package/lib/stores/core/DataCubeQueryBuilder.js.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilderUtils.d.ts +3 -2
- package/lib/stores/core/DataCubeQueryBuilderUtils.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilderUtils.js +12 -6
- package/lib/stores/core/DataCubeQueryBuilderUtils.js.map +1 -1
- package/lib/stores/core/DataCubeQueryEngine.d.ts +5 -7
- package/lib/stores/core/DataCubeQueryEngine.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQueryEngine.js +32 -37
- package/lib/stores/core/DataCubeQueryEngine.js.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshot.d.ts +32 -10
- package/lib/stores/core/DataCubeQuerySnapshot.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshot.js +42 -4
- package/lib/stores/core/DataCubeQuerySnapshot.js.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.d.ts +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.js +10 -12
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.d.ts +2 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.js +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.d.ts +2 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.js +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.d.ts +2 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.js +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.d.ts +2 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.js +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.d.ts +2 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.js +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.d.ts +2 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.js +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.d.ts +2 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.js +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.d.ts +2 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.js +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.d.ts +2 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.js +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.d.ts +2 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.js +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.d.ts +2 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.js +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.d.ts +2 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.js +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.d.ts +2 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.js +2 -2
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.js +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.d.ts +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/{core → view}/DataCubeInfoState.d.ts +4 -3
- package/lib/stores/view/DataCubeInfoState.d.ts.map +1 -0
- package/lib/stores/{core → view}/DataCubeInfoState.js +4 -1
- package/lib/stores/view/DataCubeInfoState.js.map +1 -0
- package/lib/stores/{core → view}/DataCubeQuerySnapshotManager.d.ts +5 -3
- package/lib/stores/view/DataCubeQuerySnapshotManager.d.ts.map +1 -0
- package/lib/stores/{core → view}/DataCubeQuerySnapshotManager.js +11 -3
- package/lib/stores/view/DataCubeQuerySnapshotManager.js.map +1 -0
- package/lib/stores/{DataCubeViewState.d.ts → view/DataCubeViewState.d.ts} +5 -5
- package/lib/stores/view/DataCubeViewState.d.ts.map +1 -0
- package/lib/stores/{DataCubeViewState.js → view/DataCubeViewState.js} +6 -6
- package/lib/stores/view/DataCubeViewState.js.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorColumnPropertiesPanelState.d.ts +2 -2
- package/lib/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.d.ts.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorColumnPropertiesPanelState.js +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.js.map +1 -0
- package/lib/stores/{editor/DataCubeEditorColumnsSelectorState.d.ts → view/editor/DataCubeEditorColumnSelectorState.d.ts} +5 -5
- package/lib/stores/view/editor/DataCubeEditorColumnSelectorState.d.ts.map +1 -0
- package/lib/stores/{editor/DataCubeEditorColumnsSelectorState.js → view/editor/DataCubeEditorColumnSelectorState.js} +4 -4
- package/lib/stores/view/editor/DataCubeEditorColumnSelectorState.js.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorColumnsPanelState.d.ts +10 -10
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.d.ts.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorColumnsPanelState.js +8 -8
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.js.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorGeneralPropertiesPanelState.d.ts +2 -2
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorGeneralPropertiesPanelState.js +1 -1
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.js.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorHorizontalPivotsPanelState.d.ts +7 -7
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.d.ts.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorHorizontalPivotsPanelState.js +8 -8
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.js.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorMutableConfiguration.d.ts +4 -7
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.d.ts.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorMutableConfiguration.js +5 -14
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.js.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorPanelState.d.ts +2 -2
- package/lib/stores/view/editor/DataCubeEditorPanelState.d.ts.map +1 -0
- package/lib/stores/view/editor/DataCubeEditorPanelState.js.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorPivotLayoutPanelState.d.ts +2 -2
- package/lib/stores/view/editor/DataCubeEditorPivotLayoutPanelState.d.ts.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorPivotLayoutPanelState.js +2 -2
- package/lib/stores/view/editor/DataCubeEditorPivotLayoutPanelState.js.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorSortsPanelState.d.ts +9 -9
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.d.ts.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorSortsPanelState.js +7 -8
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.js.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorState.d.ts +4 -3
- package/lib/stores/view/editor/DataCubeEditorState.d.ts.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorState.js +37 -26
- package/lib/stores/view/editor/DataCubeEditorState.js.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorVerticalPivotsPanelState.d.ts +7 -7
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.d.ts.map +1 -0
- package/lib/stores/{editor → view/editor}/DataCubeEditorVerticalPivotsPanelState.js +8 -8
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.js.map +1 -0
- package/lib/stores/{extend → view/extend}/DataCubeColumnEditorState.d.ts +35 -10
- package/lib/stores/view/extend/DataCubeColumnEditorState.d.ts.map +1 -0
- package/lib/stores/{extend → view/extend}/DataCubeColumnEditorState.js +135 -38
- package/lib/stores/view/extend/DataCubeColumnEditorState.js.map +1 -0
- package/lib/stores/{extend → view/extend}/DataCubeExtendManagerState.d.ts +18 -10
- package/lib/stores/view/extend/DataCubeExtendManagerState.d.ts.map +1 -0
- package/lib/stores/view/extend/DataCubeExtendManagerState.js +305 -0
- package/lib/stores/view/extend/DataCubeExtendManagerState.js.map +1 -0
- package/lib/stores/{filter → view/filter}/DataCubeFilterEditorState.d.ts +6 -5
- package/lib/stores/view/filter/DataCubeFilterEditorState.d.ts.map +1 -0
- package/lib/stores/{filter → view/filter}/DataCubeFilterEditorState.js +8 -5
- package/lib/stores/view/filter/DataCubeFilterEditorState.js.map +1 -0
- package/lib/stores/{grid → view/grid}/DataCubeGridClientEngine.d.ts +2 -2
- package/lib/stores/view/grid/DataCubeGridClientEngine.d.ts.map +1 -0
- package/lib/stores/{grid → view/grid}/DataCubeGridClientEngine.js +25 -13
- package/lib/stores/view/grid/DataCubeGridClientEngine.js.map +1 -0
- package/lib/stores/view/grid/DataCubeGridClientExportEngine.d.ts.map +1 -0
- package/lib/stores/view/grid/DataCubeGridClientExportEngine.js.map +1 -0
- package/lib/stores/{grid → view/grid}/DataCubeGridConfigurationBuilder.d.ts +3 -3
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.d.ts.map +1 -0
- package/lib/stores/{grid → view/grid}/DataCubeGridConfigurationBuilder.js +12 -9
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.js.map +1 -0
- package/lib/stores/{grid → view/grid}/DataCubeGridControllerState.d.ts +9 -9
- package/lib/stores/view/grid/DataCubeGridControllerState.d.ts.map +1 -0
- package/lib/stores/{grid → view/grid}/DataCubeGridControllerState.js +28 -36
- package/lib/stores/view/grid/DataCubeGridControllerState.js.map +1 -0
- package/lib/stores/view/grid/DataCubeGridMenuBuilder.d.ts.map +1 -0
- package/lib/stores/{grid → view/grid}/DataCubeGridMenuBuilder.js +23 -61
- package/lib/stores/view/grid/DataCubeGridMenuBuilder.js.map +1 -0
- package/lib/stores/{grid → view/grid}/DataCubeGridQueryBuilder.d.ts +5 -5
- package/lib/stores/view/grid/DataCubeGridQueryBuilder.d.ts.map +1 -0
- package/lib/stores/{grid → view/grid}/DataCubeGridQueryBuilder.js +41 -9
- package/lib/stores/view/grid/DataCubeGridQueryBuilder.js.map +1 -0
- package/lib/stores/{grid → view/grid}/DataCubeGridQuerySnapshotBuilder.d.ts +3 -3
- package/lib/stores/view/grid/DataCubeGridQuerySnapshotBuilder.d.ts.map +1 -0
- package/lib/stores/{grid → view/grid}/DataCubeGridQuerySnapshotBuilder.js +9 -9
- package/lib/stores/view/grid/DataCubeGridQuerySnapshotBuilder.js.map +1 -0
- package/lib/stores/{grid → view/grid}/DataCubeGridState.d.ts +4 -3
- package/lib/stores/view/grid/DataCubeGridState.d.ts.map +1 -0
- package/lib/stores/{grid → view/grid}/DataCubeGridState.js +9 -3
- package/lib/stores/view/grid/DataCubeGridState.js.map +1 -0
- package/package.json +3 -3
- package/src/components/DataCube.tsx +6 -5
- package/src/components/DataCubeProvider.tsx +2 -2
- package/src/components/core/DataCubeCodeCheckErrorAlert.tsx +127 -0
- package/src/components/{application → core}/DataCubeLayoutManager.tsx +1 -1
- package/src/components/{shared → core}/DataCubePureCodeEditorUtils.tsx +6 -4
- package/src/components/{application → core}/DataCubeSettingsPanel.tsx +2 -20
- package/src/components/{editor → view/editor}/DataCubeEditor.tsx +2 -2
- package/src/components/{editor → view/editor}/DataCubeEditorColumnPropertiesPanel.tsx +23 -23
- package/src/components/{editor/DataCubeEditorColumnsSelector.tsx → view/editor/DataCubeEditorColumnSelector.tsx} +14 -14
- package/src/components/{editor → view/editor}/DataCubeEditorColumnsPanel.tsx +11 -11
- package/src/components/{editor → view/editor}/DataCubeEditorGeneralPropertiesPanel.tsx +11 -11
- package/src/components/{editor → view/editor}/DataCubeEditorHorizontalPivotsPanel.tsx +4 -4
- package/src/components/{editor → view/editor}/DataCubeEditorSortsPanel.tsx +35 -63
- package/src/components/{editor → view/editor}/DataCubeEditorVerticalPivotsPanel.tsx +3 -3
- package/src/components/{extend → view/extend}/DataCubeColumnEditor.tsx +34 -7
- package/src/components/{filter → view/filter}/DataCubeFilterEditor.tsx +37 -37
- package/src/components/{grid → view/grid}/DataCubeGrid.tsx +5 -5
- package/src/components/{grid → view/grid}/DataCubeGridShared.tsx +1 -1
- package/src/index.tsx +5 -6
- package/src/stores/DataCubeState.tsx +12 -14
- package/src/stores/{engine → core}/DataCubeApplicationEngine.tsx +108 -28
- package/src/stores/core/DataCubeConfiguration.ts +12 -0
- package/src/stores/core/DataCubeConfigurationBuilder.ts +4 -4
- package/src/stores/{engine → core}/DataCubeEngine.ts +65 -14
- package/src/stores/core/DataCubeEngineUtils.ts +0 -0
- package/src/stores/core/DataCubeQueryBuilder.ts +28 -44
- package/src/stores/core/DataCubeQueryBuilderUtils.ts +20 -7
- package/src/stores/core/DataCubeQueryEngine.ts +5 -10
- package/src/stores/core/DataCubeQuerySnapshot.ts +65 -17
- package/src/stores/core/DataCubeQuerySnapshotBuilder.ts +11 -14
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__First.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterEditorState.ts +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__Contain.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EndWith.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__Equal.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__IsNull.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThan.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotContain.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__StartWith.tsx +2 -2
- package/src/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.tsx +2 -2
- package/src/stores/{core → view}/DataCubeInfoState.ts +8 -4
- package/src/stores/{core → view}/DataCubeQuerySnapshotManager.ts +28 -11
- package/src/stores/{DataCubeViewState.ts → view/DataCubeViewState.ts} +8 -8
- package/src/stores/{editor → view/editor}/DataCubeEditorColumnPropertiesPanelState.ts +2 -2
- package/src/stores/{editor/DataCubeEditorColumnsSelectorState.ts → view/editor/DataCubeEditorColumnSelectorState.ts} +6 -6
- package/src/stores/{editor → view/editor}/DataCubeEditorColumnsPanelState.ts +15 -15
- package/src/stores/{editor → view/editor}/DataCubeEditorGeneralPropertiesPanelState.ts +2 -2
- package/src/stores/{editor → view/editor}/DataCubeEditorHorizontalPivotsPanelState.ts +14 -14
- package/src/stores/{editor → view/editor}/DataCubeEditorMutableConfiguration.ts +5 -17
- package/src/stores/{editor → view/editor}/DataCubeEditorPanelState.ts +2 -2
- package/src/stores/{editor → view/editor}/DataCubeEditorPivotLayoutPanelState.ts +3 -3
- package/src/stores/{editor → view/editor}/DataCubeEditorSortsPanelState.ts +20 -14
- package/src/stores/{editor → view/editor}/DataCubeEditorState.tsx +58 -39
- package/src/stores/{editor → view/editor}/DataCubeEditorVerticalPivotsPanelState.ts +14 -14
- package/src/stores/{extend → view/extend}/DataCubeColumnEditorState.tsx +208 -48
- package/src/stores/view/extend/DataCubeExtendManagerState.tsx +470 -0
- package/src/stores/{filter → view/filter}/DataCubeFilterEditorState.tsx +11 -7
- package/src/stores/{grid → view/grid}/DataCubeGridClientEngine.ts +47 -20
- package/src/stores/{grid → view/grid}/DataCubeGridConfigurationBuilder.tsx +18 -13
- package/src/stores/{grid → view/grid}/DataCubeGridControllerState.ts +34 -43
- package/src/stores/{grid → view/grid}/DataCubeGridMenuBuilder.tsx +24 -62
- package/src/stores/{grid → view/grid}/DataCubeGridQueryBuilder.ts +87 -12
- package/src/stores/{grid → view/grid}/DataCubeGridQuerySnapshotBuilder.ts +13 -15
- package/src/stores/{grid → view/grid}/DataCubeGridState.ts +11 -4
- package/tsconfig.json +50 -48
- package/lib/application/DataCubeDocumentation.d.ts.map +0 -1
- package/lib/application/DataCubeDocumentation.js.map +0 -1
- package/lib/components/application/DataCubeAlert.d.ts.map +0 -1
- package/lib/components/application/DataCubeAlert.js.map +0 -1
- package/lib/components/application/DataCubeDocumentationPanel.d.ts.map +0 -1
- package/lib/components/application/DataCubeDocumentationPanel.js.map +0 -1
- package/lib/components/application/DataCubeLayoutManager.d.ts.map +0 -1
- package/lib/components/application/DataCubeLayoutManager.js.map +0 -1
- package/lib/components/application/DataCubeSettingsPanel.d.ts.map +0 -1
- package/lib/components/application/DataCubeSettingsPanel.js.map +0 -1
- package/lib/components/editor/DataCubeEditor.d.ts.map +0 -1
- package/lib/components/editor/DataCubeEditor.js.map +0 -1
- package/lib/components/editor/DataCubeEditorColumnPropertiesPanel.d.ts.map +0 -1
- package/lib/components/editor/DataCubeEditorColumnPropertiesPanel.js.map +0 -1
- package/lib/components/editor/DataCubeEditorColumnsPanel.d.ts.map +0 -1
- package/lib/components/editor/DataCubeEditorColumnsPanel.js.map +0 -1
- package/lib/components/editor/DataCubeEditorColumnsSelector.d.ts.map +0 -1
- package/lib/components/editor/DataCubeEditorColumnsSelector.js.map +0 -1
- package/lib/components/editor/DataCubeEditorGeneralPropertiesPanel.d.ts.map +0 -1
- package/lib/components/editor/DataCubeEditorGeneralPropertiesPanel.js.map +0 -1
- package/lib/components/editor/DataCubeEditorHorizontalPivotsPanel.d.ts.map +0 -1
- package/lib/components/editor/DataCubeEditorHorizontalPivotsPanel.js.map +0 -1
- package/lib/components/editor/DataCubeEditorSortsPanel.d.ts.map +0 -1
- package/lib/components/editor/DataCubeEditorSortsPanel.js +0 -62
- package/lib/components/editor/DataCubeEditorSortsPanel.js.map +0 -1
- package/lib/components/editor/DataCubeEditorVerticalPivotsPanel.d.ts.map +0 -1
- package/lib/components/editor/DataCubeEditorVerticalPivotsPanel.js.map +0 -1
- package/lib/components/extend/DataCubeColumnEditor.d.ts.map +0 -1
- package/lib/components/extend/DataCubeColumnEditor.js.map +0 -1
- package/lib/components/filter/DataCubeFilterEditor.d.ts.map +0 -1
- package/lib/components/filter/DataCubeFilterEditor.js.map +0 -1
- package/lib/components/grid/DataCubeGrid.d.ts.map +0 -1
- package/lib/components/grid/DataCubeGrid.js.map +0 -1
- package/lib/components/grid/DataCubeGridShared.d.ts.map +0 -1
- package/lib/components/grid/DataCubeGridShared.js.map +0 -1
- package/lib/components/shared/DataCubeFormUtils.d.ts.map +0 -1
- package/lib/components/shared/DataCubeFormUtils.js.map +0 -1
- package/lib/components/shared/DataCubePureCodeEditorUtils.d.ts.map +0 -1
- package/lib/components/shared/DataCubePureCodeEditorUtils.js.map +0 -1
- package/lib/stores/DataCubeViewState.d.ts.map +0 -1
- package/lib/stores/DataCubeViewState.js.map +0 -1
- package/lib/stores/core/DataCubeInfoState.d.ts.map +0 -1
- package/lib/stores/core/DataCubeInfoState.js.map +0 -1
- package/lib/stores/core/DataCubeQuerySnapshotManager.d.ts.map +0 -1
- package/lib/stores/core/DataCubeQuerySnapshotManager.js.map +0 -1
- package/lib/stores/editor/DataCubeEditorColumnPropertiesPanelState.d.ts.map +0 -1
- package/lib/stores/editor/DataCubeEditorColumnPropertiesPanelState.js.map +0 -1
- package/lib/stores/editor/DataCubeEditorColumnsPanelState.d.ts.map +0 -1
- package/lib/stores/editor/DataCubeEditorColumnsPanelState.js.map +0 -1
- package/lib/stores/editor/DataCubeEditorColumnsSelectorState.d.ts.map +0 -1
- package/lib/stores/editor/DataCubeEditorColumnsSelectorState.js.map +0 -1
- package/lib/stores/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts.map +0 -1
- package/lib/stores/editor/DataCubeEditorGeneralPropertiesPanelState.js.map +0 -1
- package/lib/stores/editor/DataCubeEditorHorizontalPivotsPanelState.d.ts.map +0 -1
- package/lib/stores/editor/DataCubeEditorHorizontalPivotsPanelState.js.map +0 -1
- package/lib/stores/editor/DataCubeEditorMutableConfiguration.d.ts.map +0 -1
- package/lib/stores/editor/DataCubeEditorMutableConfiguration.js.map +0 -1
- package/lib/stores/editor/DataCubeEditorPanelState.d.ts.map +0 -1
- package/lib/stores/editor/DataCubeEditorPanelState.js.map +0 -1
- package/lib/stores/editor/DataCubeEditorPivotLayoutPanelState.d.ts.map +0 -1
- package/lib/stores/editor/DataCubeEditorPivotLayoutPanelState.js.map +0 -1
- package/lib/stores/editor/DataCubeEditorSortsPanelState.d.ts.map +0 -1
- package/lib/stores/editor/DataCubeEditorSortsPanelState.js.map +0 -1
- package/lib/stores/editor/DataCubeEditorState.d.ts.map +0 -1
- package/lib/stores/editor/DataCubeEditorState.js.map +0 -1
- package/lib/stores/editor/DataCubeEditorVerticalPivotsPanelState.d.ts.map +0 -1
- package/lib/stores/editor/DataCubeEditorVerticalPivotsPanelState.js.map +0 -1
- package/lib/stores/engine/DataCubeApplicationEngine.d.ts.map +0 -1
- package/lib/stores/engine/DataCubeApplicationEngine.js +0 -33
- package/lib/stores/engine/DataCubeApplicationEngine.js.map +0 -1
- package/lib/stores/engine/DataCubeEngine.d.ts.map +0 -1
- package/lib/stores/engine/DataCubeEngine.js.map +0 -1
- package/lib/stores/engine/DataCubeLayoutManagerState.d.ts.map +0 -1
- package/lib/stores/engine/DataCubeLayoutManagerState.js.map +0 -1
- package/lib/stores/engine/DataCubeQuery.d.ts.map +0 -1
- package/lib/stores/engine/DataCubeQuery.js.map +0 -1
- package/lib/stores/extend/DataCubeColumnEditorState.d.ts.map +0 -1
- package/lib/stores/extend/DataCubeColumnEditorState.js.map +0 -1
- package/lib/stores/extend/DataCubeExtendManagerState.d.ts.map +0 -1
- package/lib/stores/extend/DataCubeExtendManagerState.js +0 -119
- package/lib/stores/extend/DataCubeExtendManagerState.js.map +0 -1
- package/lib/stores/filter/DataCubeFilterEditorState.d.ts.map +0 -1
- package/lib/stores/filter/DataCubeFilterEditorState.js.map +0 -1
- package/lib/stores/grid/DataCubeGridClientEngine.d.ts.map +0 -1
- package/lib/stores/grid/DataCubeGridClientEngine.js.map +0 -1
- package/lib/stores/grid/DataCubeGridClientExportEngine.d.ts.map +0 -1
- package/lib/stores/grid/DataCubeGridClientExportEngine.js.map +0 -1
- package/lib/stores/grid/DataCubeGridConfigurationBuilder.d.ts.map +0 -1
- package/lib/stores/grid/DataCubeGridConfigurationBuilder.js.map +0 -1
- package/lib/stores/grid/DataCubeGridControllerState.d.ts.map +0 -1
- package/lib/stores/grid/DataCubeGridControllerState.js.map +0 -1
- package/lib/stores/grid/DataCubeGridMenuBuilder.d.ts.map +0 -1
- package/lib/stores/grid/DataCubeGridMenuBuilder.js.map +0 -1
- package/lib/stores/grid/DataCubeGridQueryBuilder.d.ts.map +0 -1
- package/lib/stores/grid/DataCubeGridQueryBuilder.js.map +0 -1
- package/lib/stores/grid/DataCubeGridQuerySnapshotBuilder.d.ts.map +0 -1
- package/lib/stores/grid/DataCubeGridQuerySnapshotBuilder.js.map +0 -1
- package/lib/stores/grid/DataCubeGridState.d.ts.map +0 -1
- package/lib/stores/grid/DataCubeGridState.js.map +0 -1
- package/src/stores/extend/DataCubeExtendManagerState.tsx +0 -175
- /package/lib/{application → __lib__}/DataCubeDocumentation.d.ts +0 -0
- /package/lib/{application → __lib__}/DataCubeDocumentation.js +0 -0
- /package/lib/components/{application → core}/DataCubeAlert.d.ts +0 -0
- /package/lib/components/{application → core}/DataCubeAlert.js +0 -0
- /package/lib/components/{application → core}/DataCubeDocumentationPanel.d.ts +0 -0
- /package/lib/components/{application → core}/DataCubeDocumentationPanel.js +0 -0
- /package/lib/components/{shared → core}/DataCubeFormUtils.d.ts +0 -0
- /package/lib/components/{shared → core}/DataCubeFormUtils.js +0 -0
- /package/lib/components/{application → core}/DataCubeSettingsPanel.d.ts +0 -0
- /package/lib/components/{grid → view/grid}/DataCubeGridShared.d.ts +0 -0
- /package/lib/stores/{engine → core}/DataCubeLayoutManagerState.d.ts +0 -0
- /package/lib/stores/{engine → core}/DataCubeLayoutManagerState.js +0 -0
- /package/lib/stores/{engine → core}/DataCubeQuery.d.ts +0 -0
- /package/lib/stores/{engine → core}/DataCubeQuery.js +0 -0
- /package/lib/stores/{editor → view/editor}/DataCubeEditorPanelState.js +0 -0
- /package/lib/stores/{grid → view/grid}/DataCubeGridClientExportEngine.d.ts +0 -0
- /package/lib/stores/{grid → view/grid}/DataCubeGridClientExportEngine.js +0 -0
- /package/lib/stores/{grid → view/grid}/DataCubeGridMenuBuilder.d.ts +0 -0
- /package/src/{application → __lib__}/DataCubeDocumentation.ts +0 -0
- /package/src/components/{application → core}/DataCubeAlert.tsx +0 -0
- /package/src/components/{application → core}/DataCubeDocumentationPanel.tsx +0 -0
- /package/src/components/{shared → core}/DataCubeFormUtils.tsx +0 -0
- /package/src/stores/{engine → core}/DataCubeLayoutManagerState.ts +0 -0
- /package/src/stores/{engine → core}/DataCubeQuery.ts +0 -0
- /package/src/stores/{grid → view/grid}/DataCubeGridClientExportEngine.ts +0 -0
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { PRIMITIVE_TYPE } from '@finos/legend-graph';
|
|
17
|
-
import {} from '
|
|
18
|
-
import { DataCubeQueryFilterGroupOperator, DataCubeQueryFilterOperator, DataCubeFunction, } from '
|
|
19
|
-
import { guaranteeNonNullable, isNullable } from '@finos/legend-shared';
|
|
20
|
-
import { _groupByAggCols, _colSpec, _cols, _filter, _function, _lambda, _var, _functionCompositionUnProcessor, } from '
|
|
16
|
+
import { PRIMITIVE_TYPE, V1_ClassInstance, V1_ColSpecArray, V1_GenericTypeInstance, } from '@finos/legend-graph';
|
|
17
|
+
import {} from '../../core/DataCubeQuerySnapshot.js';
|
|
18
|
+
import { DataCubeQueryFilterGroupOperator, DataCubeQueryFilterOperator, DataCubeFunction, isPivotResultColumnName, PIVOT_COLUMN_NAME_VALUE_SEPARATOR, } from '../../core/DataCubeQueryEngine.js';
|
|
19
|
+
import { guaranteeNonNullable, guaranteeType, isNullable, uniq, } from '@finos/legend-shared';
|
|
20
|
+
import { _groupByAggCols, _colSpec, _cols, _filter, _function, _lambda, _var, _functionCompositionUnProcessor, _property, } from '../../core/DataCubeQueryBuilderUtils.js';
|
|
21
21
|
import { INTERNAL__GRID_CLIENT_MISSING_VALUE, INTERNAL__GRID_CLIENT_ROW_GROUPING_COUNT_AGG_COLUMN_ID, } from './DataCubeGridClientEngine.js';
|
|
22
|
+
import { _colSpecArrayParam } from '../../core/DataCubeQuerySnapshotBuilderUtils.js';
|
|
22
23
|
/*****************************************************************************
|
|
23
24
|
* [GRID]
|
|
24
25
|
*
|
|
@@ -28,10 +29,34 @@ import { INTERNAL__GRID_CLIENT_MISSING_VALUE, INTERNAL__GRID_CLIENT_ROW_GROUPING
|
|
|
28
29
|
* the snapshot, such as in the case of pagination, drilldown (group by).
|
|
29
30
|
*****************************************************************************/
|
|
30
31
|
// --------------------------------- BUILDING BLOCKS ---------------------------------
|
|
31
|
-
function
|
|
32
|
+
function _aggCountCol() {
|
|
32
33
|
const variable = _var();
|
|
33
34
|
return _colSpec(INTERNAL__GRID_CLIENT_ROW_GROUPING_COUNT_AGG_COLUMN_ID, _lambda([variable], [variable]), _lambda([variable], [_function(DataCubeFunction.COUNT, [variable])]));
|
|
34
35
|
}
|
|
36
|
+
function _aggCountCastCol(colName) {
|
|
37
|
+
const variable = _var();
|
|
38
|
+
return _colSpec(colName, _lambda([variable], [_property(colName, variable)]), _lambda([variable], [_function(DataCubeFunction.SUM, [variable])]));
|
|
39
|
+
}
|
|
40
|
+
// if pivot is present, modify pivot and pivot cast expressions to include
|
|
41
|
+
// count aggregation columns.
|
|
42
|
+
function _addCountAggColumnToPivot(funcMap, countAggColumns) {
|
|
43
|
+
if (funcMap.pivot && funcMap.pivotCast) {
|
|
44
|
+
_colSpecArrayParam(funcMap.pivot, 1).colSpecs.push(_aggCountCol());
|
|
45
|
+
const castColumns = guaranteeType(guaranteeType(guaranteeType(funcMap.pivotCast.parameters[0], V1_GenericTypeInstance)
|
|
46
|
+
.typeArguments[0], V1_ClassInstance).value, V1_ColSpecArray).colSpecs;
|
|
47
|
+
uniq(castColumns
|
|
48
|
+
.filter((col) => isPivotResultColumnName(col.name))
|
|
49
|
+
.map((col) => col.name.substring(0, col.name.lastIndexOf(PIVOT_COLUMN_NAME_VALUE_SEPARATOR))))
|
|
50
|
+
.map((col) => col +
|
|
51
|
+
PIVOT_COLUMN_NAME_VALUE_SEPARATOR +
|
|
52
|
+
INTERNAL__GRID_CLIENT_ROW_GROUPING_COUNT_AGG_COLUMN_ID)
|
|
53
|
+
.map((col) => _colSpec(col, undefined, undefined, PRIMITIVE_TYPE.INTEGER))
|
|
54
|
+
.forEach((col) => {
|
|
55
|
+
castColumns.push(col);
|
|
56
|
+
countAggColumns.push(col);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
35
60
|
// --------------------------------- MAIN ---------------------------------
|
|
36
61
|
export function generateRowGroupingDrilldownExecutableQueryPostProcessor(drilldownValues) {
|
|
37
62
|
return (snapshot, sequence, funcMap, configuration, filterOperations, aggregateOperations) => {
|
|
@@ -52,13 +77,13 @@ export function generateRowGroupingDrilldownExecutableQueryPostProcessor(drilldo
|
|
|
52
77
|
value === INTERNAL__GRID_CLIENT_MISSING_VALUE) {
|
|
53
78
|
return {
|
|
54
79
|
...groupByColumn,
|
|
55
|
-
|
|
80
|
+
operator: DataCubeQueryFilterOperator.IS_NULL,
|
|
56
81
|
value: undefined,
|
|
57
82
|
};
|
|
58
83
|
}
|
|
59
84
|
const condition = {
|
|
60
85
|
...groupByColumn,
|
|
61
|
-
|
|
86
|
+
operator: DataCubeQueryFilterOperator.EQUAL,
|
|
62
87
|
value: undefined,
|
|
63
88
|
};
|
|
64
89
|
switch (groupByColumn.type) {
|
|
@@ -107,13 +132,20 @@ export function generateRowGroupingDrilldownExecutableQueryPostProcessor(drilldo
|
|
|
107
132
|
}
|
|
108
133
|
// modify groupBy() based off the current drilldown level
|
|
109
134
|
if (drilldownValues.length < groupBy.columns.length) {
|
|
135
|
+
const countAggColumns = [];
|
|
136
|
+
_addCountAggColumnToPivot(funcMap, countAggColumns);
|
|
110
137
|
const groupByIdx = sequence.indexOf(funcMap.groupBy);
|
|
111
138
|
const groupByColumns = groupBy.columns.slice(0, drilldownValues.length + 1);
|
|
112
139
|
const groupByFunc = _function(DataCubeFunction.GROUP_BY, [
|
|
113
140
|
_cols(groupByColumns.map((col) => _colSpec(col.name))),
|
|
114
141
|
_cols([
|
|
115
142
|
..._groupByAggCols(groupByColumns, snapshot, configuration, aggregateOperations),
|
|
116
|
-
|
|
143
|
+
// if pivot is present, add sum aggregation columns for each
|
|
144
|
+
// count aggregation column from pivot aggregation
|
|
145
|
+
// else, simply add a count aggregation column
|
|
146
|
+
...(countAggColumns.length
|
|
147
|
+
? countAggColumns.map((col) => _aggCountCastCol(col.name))
|
|
148
|
+
: [_aggCountCol()]),
|
|
117
149
|
]),
|
|
118
150
|
]);
|
|
119
151
|
sequence[groupByIdx] = groupByFunc;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeGridQueryBuilder.js","sourceRoot":"","sources":["../../../../src/stores/view/grid/DataCubeGridQueryBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;G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C,CAAC;gBAEpD,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACrD,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,CAC1C,CAAC,EACD,eAAe,CAAC,MAAM,GAAG,CAAC,CAC3B,CAAC;gBACF,MAAM,WAAW,GAAG,SAAS,CAAC,gBAAgB,CAAC,QAAQ,EAAE;oBACvD,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;oBACtD,KAAK,CAAC;wBACJ,GAAG,eAAe,CAChB,cAAc,EACd,QAAQ,EACR,aAAa,EACb,mBAAmB,CACpB;wBAED,4DAA4D;wBAC5D,kDAAkD;wBAClD,8CAA8C;wBAC9C,GAAG,CAAC,eAAe,CAAC,MAAM;4BACxB,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;4BAC1D,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC;qBACtB,CAAC;iBACH,CAAC,CAAC;gBACH,QAAQ,CAAC,UAAU,CAAC,GAAG,WAAW,CAAC;gBACnC,OAAO,CAAC,OAAO,GAAG,WAAW,CAAC;YAChC,CAAC;iBAAM,CAAC;gBACN,qEAAqE;gBACrE,qEAAqE;gBACrE,UAAU,CAAC,SAAS,CAAC,CAAC;YACxB,CAAC;QACH,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
* of the grid client, AG Grid.
|
|
21
21
|
***************************************************************************************/
|
|
22
22
|
import type { IServerSideGetRowsRequest } from '@ag-grid-community/core';
|
|
23
|
-
import { type DataCubeQuerySnapshot } from '
|
|
24
|
-
import { DataCubeConfiguration } from '
|
|
25
|
-
export declare function getColumnConfiguration(colName: string, configuration: DataCubeConfiguration): import("
|
|
23
|
+
import { type DataCubeQuerySnapshot } from '../../core/DataCubeQuerySnapshot.js';
|
|
24
|
+
import { DataCubeConfiguration } from '../../core/DataCubeConfiguration.js';
|
|
25
|
+
export declare function getColumnConfiguration(colName: string, configuration: DataCubeConfiguration): import("../../core/DataCubeConfiguration.js").DataCubeColumnConfiguration;
|
|
26
26
|
export declare function buildQuerySnapshot(request: IServerSideGetRowsRequest, baseSnapshot: DataCubeQuerySnapshot): DataCubeQuerySnapshot;
|
|
27
27
|
//# sourceMappingURL=DataCubeGridQuerySnapshotBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeGridQuerySnapshotBuilder.d.ts","sourceRoot":"","sources":["../../../../src/stores/view/grid/DataCubeGridQuerySnapshotBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;yFAKyF;AAEzF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,qCAAqC,CAAC;AAU7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAI5E,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,qBAAqB,6EAMrC;AAID,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,yBAAyB,EAClC,YAAY,EAAE,qBAAqB,yBAgFpC"}
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { _toCol, } from '
|
|
16
|
+
import { _toCol, } from '../../core/DataCubeQuerySnapshot.js';
|
|
17
17
|
import { GridClientSortDirection, INTERNAL__GRID_CLIENT_TREE_COLUMN_ID, } from './DataCubeGridClientEngine.js';
|
|
18
|
-
import { DataCubeQuerySortDirection, getPivotResultColumnBaseColumnName, isPivotResultColumnName, } from '
|
|
19
|
-
import { DataCubeConfiguration } from '
|
|
18
|
+
import { DataCubeQuerySortDirection, getPivotResultColumnBaseColumnName, isPivotResultColumnName, } from '../../core/DataCubeQueryEngine.js';
|
|
19
|
+
import { DataCubeConfiguration } from '../../core/DataCubeConfiguration.js';
|
|
20
20
|
import { guaranteeNonNullable, uniqBy } from '@finos/legend-shared';
|
|
21
|
-
import { _pruneExpandedPaths } from '
|
|
21
|
+
import { _pruneExpandedPaths } from '../../core/DataCubeQuerySnapshotBuilderUtils.js';
|
|
22
22
|
export function getColumnConfiguration(colName, configuration) {
|
|
23
23
|
return guaranteeNonNullable(configuration.columns.find((col) => col.name === colName), `Can't find configuration for column '${colName}'`);
|
|
24
24
|
}
|
|
@@ -28,7 +28,7 @@ export function buildQuerySnapshot(request, baseSnapshot) {
|
|
|
28
28
|
const configuration = DataCubeConfiguration.serialization.fromJson(snapshot.data.configuration);
|
|
29
29
|
// --------------------------------- SELECT ---------------------------------
|
|
30
30
|
snapshot.data.selectColumns = uniqBy([
|
|
31
|
-
...
|
|
31
|
+
...snapshot.data.selectColumns,
|
|
32
32
|
...request.pivotCols.map((col) => getColumnConfiguration(col.id, configuration)),
|
|
33
33
|
...request.rowGroupCols.map((col) => getColumnConfiguration(col.id, configuration)),
|
|
34
34
|
], (col) => col.name).map(_toCol);
|
|
@@ -56,17 +56,17 @@ export function buildQuerySnapshot(request, baseSnapshot) {
|
|
|
56
56
|
// the tree column, all groupBy columns will be sorted in that direction
|
|
57
57
|
.filter((item) => item.colId !== INTERNAL__GRID_CLIENT_TREE_COLUMN_ID)
|
|
58
58
|
.map((item) => ({
|
|
59
|
-
|
|
59
|
+
name: item.colId,
|
|
60
|
+
type: getColumnConfiguration(isPivotResultColumnName(item.colId)
|
|
60
61
|
? getPivotResultColumnBaseColumnName(item.colId)
|
|
61
|
-
: item.colId, configuration)
|
|
62
|
+
: item.colId, configuration).type,
|
|
62
63
|
direction: item.sort === GridClientSortDirection.ASCENDING
|
|
63
64
|
? DataCubeQuerySortDirection.ASCENDING
|
|
64
65
|
: DataCubeQuerySortDirection.DESCENDING,
|
|
65
66
|
}));
|
|
66
67
|
// --------------------------------- CONFIGURATION ---------------------------------
|
|
67
68
|
configuration.pivotLayout.expandedPaths = _pruneExpandedPaths(baseSnapshot.data.groupBy?.columns ?? [], snapshot.data.groupBy?.columns ?? [], configuration.pivotLayout.expandedPaths);
|
|
68
|
-
snapshot.data.configuration =
|
|
69
|
-
DataCubeConfiguration.serialization.toJson(configuration);
|
|
69
|
+
snapshot.data.configuration = configuration.serialize();
|
|
70
70
|
// --------------------------------- FINALIZE ---------------------------------
|
|
71
71
|
return snapshot;
|
|
72
72
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeGridQuerySnapshotBuilder.js","sourceRoot":"","sources":["../../../../src/stores/view/grid/DataCubeGridQuerySnapshotBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,EACL,MAAM,GAEP,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,oCAAoC,GACrC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,0BAA0B,EAC1B,kCAAkC,EAClC,uBAAuB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAEtF,MAAM,UAAU,sBAAsB,CACpC,OAAe,EACf,aAAoC;IAEpC,OAAO,oBAAoB,CACzB,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,OAAO,CAAC,EACzD,wCAAwC,OAAO,GAAG,CACnD,CAAC;AACJ,CAAC;AAED,2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
@@ -16,9 +16,9 @@
|
|
|
16
16
|
import type { GridApi } from '@ag-grid-community/core';
|
|
17
17
|
import type { DataCubeViewState } from '../DataCubeViewState.js';
|
|
18
18
|
import { DataCubeGridClientServerSideDataSource } from './DataCubeGridClientEngine.js';
|
|
19
|
-
import { DataCubeQuerySnapshotController } from '../
|
|
20
|
-
import type { DataCubeQuerySnapshot } from '
|
|
21
|
-
import { DataCubeConfiguration } from '
|
|
19
|
+
import { DataCubeQuerySnapshotController } from '../DataCubeQuerySnapshotManager.js';
|
|
20
|
+
import type { DataCubeQuerySnapshot } from '../../core/DataCubeQuerySnapshot.js';
|
|
21
|
+
import { DataCubeConfiguration } from '../../core/DataCubeConfiguration.js';
|
|
22
22
|
import { DataCubeGridControllerState } from './DataCubeGridControllerState.js';
|
|
23
23
|
import { DataCubeGridClientExportEngine } from './DataCubeGridClientExportEngine.js';
|
|
24
24
|
/**
|
|
@@ -50,6 +50,7 @@ export declare class DataCubeGridState extends DataCubeQuerySnapshotController {
|
|
|
50
50
|
setScrollHintText(val: string | undefined): void;
|
|
51
51
|
get client(): GridApi<any>;
|
|
52
52
|
configureClient(val: GridApi | undefined): void;
|
|
53
|
+
getSnapshotSubscriberName(): string;
|
|
53
54
|
applySnapshot(snapshot: DataCubeQuerySnapshot, previousSnapshot: DataCubeQuerySnapshot | undefined): Promise<void>;
|
|
54
55
|
}
|
|
55
56
|
//# sourceMappingURL=DataCubeGridState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeGridState.d.ts","sourceRoot":"","sources":["../../../../src/stores/view/grid/DataCubeGridState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EACL,sCAAsC,EAMvC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,+BAA+B,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAEjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF;;;;;;;;;;;;;;GAcG;AACH,qBAAa,iBAAkB,SAAQ,+BAA+B;IACpE,QAAQ,CAAC,UAAU,EAAG,2BAA2B,CAAC;IAClD,QAAQ,CAAC,YAAY,EAAG,8BAA8B,CAAC;IACvD,OAAO,CAAC,OAAO,CAAC,CAAsB;IAEtC,gBAAgB,EAAE,sCAAsC,CAAC;IAEzD,kBAAkB,EAAE,qBAAqB,CAAC;IAC1C,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,mBAAmB,UAAmD;IACtE,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAExB,IAAI,EAAE,iBAAiB;IAyBnC,oBAAoB,CAAC,GAAG,EAAE,OAAO;IAiBjC,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS;IAIzC,IAAI,MAAM,iBAET;IAED,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,SAAS;IAI/B,yBAAyB;IAInB,aAAa,CAC1B,QAAQ,EAAE,qBAAqB,EAC/B,gBAAgB,EAAE,qBAAqB,GAAG,SAAS;CA2CtD"}
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
17
17
|
import { action, makeObservable, observable } from 'mobx';
|
|
18
18
|
import { DataCubeGridClientServerSideDataSource, INTERNAL__GRID_CLIENT_DEFAULT_CACHE_BLOCK_SIZE, INTERNAL__GRID_CLIENT_DATA_FETCH_MANUAL_TRIGGER_COLUMN_ID, INTERNAL__GRID_CLIENT_MAX_CACHE_BLOCK_SIZE, INTERNAL__GRID_CLIENT_DEFAULT_ENABLE_PAGINATION, computeHashCodeForDataFetchManualTrigger, } from './DataCubeGridClientEngine.js';
|
|
19
|
-
import { DataCubeQuerySnapshotController } from '../
|
|
19
|
+
import { DataCubeQuerySnapshotController } from '../DataCubeQuerySnapshotManager.js';
|
|
20
20
|
import { generateGridOptionsFromSnapshot } from './DataCubeGridConfigurationBuilder.js';
|
|
21
|
-
import { DataCubeConfiguration } from '
|
|
21
|
+
import { DataCubeConfiguration } from '../../core/DataCubeConfiguration.js';
|
|
22
22
|
import { DataCubeGridControllerState } from './DataCubeGridControllerState.js';
|
|
23
23
|
import { DataCubeGridClientExportEngine } from './DataCubeGridClientExportEngine.js';
|
|
24
24
|
/**
|
|
@@ -86,13 +86,19 @@ export class DataCubeGridState extends DataCubeQuerySnapshotController {
|
|
|
86
86
|
configureClient(val) {
|
|
87
87
|
this._client = val;
|
|
88
88
|
}
|
|
89
|
+
getSnapshotSubscriberName() {
|
|
90
|
+
return 'grid';
|
|
91
|
+
}
|
|
89
92
|
async applySnapshot(snapshot, previousSnapshot) {
|
|
90
93
|
const configuration = DataCubeConfiguration.serialization.fromJson(snapshot.data.configuration);
|
|
91
94
|
this.queryConfiguration = configuration;
|
|
92
95
|
this.rowLimit = snapshot.data.limit;
|
|
93
96
|
const gridOptions = generateGridOptionsFromSnapshot(snapshot, configuration, this.view);
|
|
94
97
|
if (this.view.engine.enableDebugMode) {
|
|
95
|
-
this.view.application.debugProcess(`New Grid Options`,
|
|
98
|
+
this.view.application.debugProcess(`New Grid Options`, [
|
|
99
|
+
'Grid Options',
|
|
100
|
+
gridOptions,
|
|
101
|
+
]);
|
|
96
102
|
}
|
|
97
103
|
this.client.updateGridOptions({
|
|
98
104
|
...gridOptions,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeGridState.js","sourceRoot":"","sources":["../../../../src/stores/view/grid/DataCubeGridState.ts"],"names":[],"mappings":"AAAA;;;;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C,IAAI,CACV,CAAC;QACF,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;YACrC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,kBAAkB,EAAE;gBACrD,cAAc;gBACd,WAAW;aACZ,CAAC,CAAC;QACL,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC;YAC5B,GAAG,WAAW;YACd,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,mBAAmB;YAC/C,sFAAsF;YACtF,gGAAgG;YAChG,cAAc,EAAE,IAAI,CAAC,mBAAmB;gBACtC,CAAC,CAAC,8CAA8C;gBAChD,CAAC,CAAC,0CAA0C;SAC/C,CAAC,CAAC;QAEH,+FAA+F;QAC/F,6FAA6F;QAC7F,gGAAgG;QAChG,sGAAsG;QACtG,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC;YACzB,CAAC,yDAAyD,CAAC,EAAE;gBAC3D,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,wCAAwC,CAC9C,QAAQ,EACR,aAAa,CACd;aACF;SACF,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-data-cube",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Legend Data Cube",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@ag-grid-enterprise/row-grouping": "32.2.2",
|
|
57
57
|
"@ag-grid-enterprise/server-side-row-model": "32.2.2",
|
|
58
58
|
"@ag-grid-enterprise/side-bar": "32.2.2",
|
|
59
|
-
"@finos/legend-art": "7.1.
|
|
59
|
+
"@finos/legend-art": "7.1.62",
|
|
60
60
|
"@finos/legend-code-editor": "2.0.3",
|
|
61
61
|
"@finos/legend-graph": "31.10.37",
|
|
62
62
|
"@finos/legend-shared": "10.0.57",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"serializr": "3.0.2"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@finos/legend-dev-utils": "2.1.
|
|
73
|
+
"@finos/legend-dev-utils": "2.1.25",
|
|
74
74
|
"@jest/globals": "29.7.0",
|
|
75
75
|
"cross-env": "7.0.3",
|
|
76
76
|
"eslint": "9.12.0",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { observer } from 'mobx-react-lite';
|
|
18
18
|
import { useEffect } from 'react';
|
|
19
|
-
import { DataCubeGrid } from './grid/DataCubeGrid.js';
|
|
19
|
+
import { DataCubeGrid } from './view/grid/DataCubeGrid.js';
|
|
20
20
|
import {
|
|
21
21
|
DataCubeIcon,
|
|
22
22
|
DropdownMenu,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
ProgressBar,
|
|
25
25
|
useDropdownMenu,
|
|
26
26
|
} from '@finos/legend-art';
|
|
27
|
-
import { DataCubeLayoutManager } from './
|
|
28
|
-
import type { DataCubeViewState } from '../stores/DataCubeViewState.js';
|
|
29
|
-
import { INTERNAL__MonacoEditorWidgetsRoot } from './
|
|
27
|
+
import { DataCubeLayoutManager } from './core/DataCubeLayoutManager.js';
|
|
28
|
+
import type { DataCubeViewState } from '../stores/view/DataCubeViewState.js';
|
|
29
|
+
import { INTERNAL__MonacoEditorWidgetsRoot } from './core/DataCubePureCodeEditorUtils.js';
|
|
30
30
|
import { useDataCube } from './DataCubeProvider.js';
|
|
31
|
-
import { DataCubeBlockingActionAlert } from './
|
|
31
|
+
import { DataCubeBlockingActionAlert } from './core/DataCubeAlert.js';
|
|
32
32
|
|
|
33
33
|
const DataCubeStatusBar = observer((props: { view: DataCubeViewState }) => {
|
|
34
34
|
const { view } = props;
|
|
@@ -149,6 +149,7 @@ export const DataCube = observer(() => {
|
|
|
149
149
|
<DataCubeGrid view={view} />
|
|
150
150
|
<DataCubeStatusBar view={view} />
|
|
151
151
|
|
|
152
|
+
{/* TODO: move this to upper layer component when we have multi-view support */}
|
|
152
153
|
<DataCubeLayoutManager layout={application.layout} />
|
|
153
154
|
<DataCubeBlockingActionAlert />
|
|
154
155
|
<INTERNAL__MonacoEditorWidgetsRoot />
|
|
@@ -18,8 +18,8 @@ import { createContext, useContext, useEffect } from 'react';
|
|
|
18
18
|
import { observer, useLocalObservable } from 'mobx-react-lite';
|
|
19
19
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
20
20
|
import { DataCubeState } from '../stores/DataCubeState.js';
|
|
21
|
-
import type { DataCubeApplicationEngine } from '../stores/
|
|
22
|
-
import type { DataCubeEngine } from '../stores/
|
|
21
|
+
import type { DataCubeApplicationEngine } from '../stores/core/DataCubeApplicationEngine.js';
|
|
22
|
+
import type { DataCubeEngine } from '../stores/core/DataCubeEngine.js';
|
|
23
23
|
|
|
24
24
|
const DataCubeStateContext = createContext<DataCubeState | undefined>(
|
|
25
25
|
undefined,
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { DataCubeIcon } from '@finos/legend-art';
|
|
18
|
+
import {
|
|
19
|
+
CODE_EDITOR_LANGUAGE,
|
|
20
|
+
CODE_EDITOR_THEME,
|
|
21
|
+
getBaseCodeEditorOptions,
|
|
22
|
+
moveCursorToPosition,
|
|
23
|
+
PURE_CODE_EDITOR_WORD_SEPARATORS,
|
|
24
|
+
setErrorMarkers,
|
|
25
|
+
} from '@finos/legend-code-editor';
|
|
26
|
+
import { editor as monacoEditorAPI } from 'monaco-editor';
|
|
27
|
+
import { useEffect, useRef, useState } from 'react';
|
|
28
|
+
import { MONACO_EDITOR_OVERFLOW_WIDGETS_ROOT_ID } from './DataCubePureCodeEditorUtils.js';
|
|
29
|
+
import type { DataCubeQueryBuilderError } from '../../stores/core/DataCubeEngine.js';
|
|
30
|
+
|
|
31
|
+
export function DataCubeCodeCheckErrorAlert(props: {
|
|
32
|
+
editorModel: monacoEditorAPI.ITextModel;
|
|
33
|
+
error: DataCubeQueryBuilderError;
|
|
34
|
+
message: string;
|
|
35
|
+
text?: string | undefined;
|
|
36
|
+
}) {
|
|
37
|
+
const { editorModel, error, message, text } = props;
|
|
38
|
+
const editorRef = useRef<HTMLDivElement>(null);
|
|
39
|
+
const [editor, setEditor] = useState<
|
|
40
|
+
monacoEditorAPI.IStandaloneCodeEditor | undefined
|
|
41
|
+
>();
|
|
42
|
+
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
if (!editor && editorRef.current) {
|
|
45
|
+
const element = editorRef.current;
|
|
46
|
+
const newEditor = monacoEditorAPI.create(element, {
|
|
47
|
+
...getBaseCodeEditorOptions(),
|
|
48
|
+
fontSize: 12,
|
|
49
|
+
language: CODE_EDITOR_LANGUAGE.PURE,
|
|
50
|
+
theme: CODE_EDITOR_THEME.GITHUB_LIGHT,
|
|
51
|
+
wordSeparators: PURE_CODE_EDITOR_WORD_SEPARATORS,
|
|
52
|
+
// Make sure the widgets (tooltips, menus) are not clipped by the container bounds
|
|
53
|
+
// and fix the problem where widgets are rendered with position=fixed not working well with parent
|
|
54
|
+
// containers (i.e. the draggable window) which has been transformed
|
|
55
|
+
// See https://dev.to/salilnaik/the-uncanny-relationship-between-position-fixed-and-transform-property-32f6
|
|
56
|
+
// See https://github.com/microsoft/monaco-editor/issues/2793#issuecomment-999337740
|
|
57
|
+
fixedOverflowWidgets: true,
|
|
58
|
+
overflowWidgetsDomNode: document.getElementById(
|
|
59
|
+
MONACO_EDITOR_OVERFLOW_WIDGETS_ROOT_ID,
|
|
60
|
+
)!,
|
|
61
|
+
readOnly: true,
|
|
62
|
+
// By design, error markers would not show in read-only mode, use this to force it
|
|
63
|
+
// See https://github.com/microsoft/monaco-editor/issues/311
|
|
64
|
+
renderValidationDecorations: 'on',
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
newEditor.setModel(editorModel);
|
|
68
|
+
setEditor(newEditor);
|
|
69
|
+
}
|
|
70
|
+
}, [editor, editorModel]);
|
|
71
|
+
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
if (error.sourceInformation) {
|
|
74
|
+
setErrorMarkers(editorModel, [
|
|
75
|
+
{
|
|
76
|
+
message: error.message,
|
|
77
|
+
startLineNumber: error.sourceInformation.startLine,
|
|
78
|
+
startColumn: error.sourceInformation.startColumn,
|
|
79
|
+
endLineNumber: error.sourceInformation.endLine,
|
|
80
|
+
endColumn: error.sourceInformation.endColumn,
|
|
81
|
+
},
|
|
82
|
+
]);
|
|
83
|
+
if (editor) {
|
|
84
|
+
moveCursorToPosition(editor, {
|
|
85
|
+
lineNumber: error.sourceInformation.startLine,
|
|
86
|
+
column: error.sourceInformation.startColumn,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}, [editor, editorModel, error]);
|
|
91
|
+
|
|
92
|
+
// clean up
|
|
93
|
+
useEffect(
|
|
94
|
+
() => (): void => {
|
|
95
|
+
if (editor) {
|
|
96
|
+
editor.dispose();
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
[editor],
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
return (
|
|
103
|
+
<div className="h-full w-full overflow-auto">
|
|
104
|
+
<div className="flex w-full p-6 pb-2.5">
|
|
105
|
+
<div className="mr-3">
|
|
106
|
+
<DataCubeIcon.AlertError className="flex-shrink-0 stroke-[0.5px] text-[40px] text-red-500" />
|
|
107
|
+
</div>
|
|
108
|
+
<div>
|
|
109
|
+
<div className="whitespace-break-spaces text-lg">{message}</div>
|
|
110
|
+
<div className="mt-1 whitespace-break-spaces text-neutral-500">
|
|
111
|
+
{text}
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
<div className="h-60 justify-center border px-2">
|
|
116
|
+
<div className="h-full w-full p-2 pt-1">
|
|
117
|
+
<div className="relative h-full w-full border border-red-500">
|
|
118
|
+
<div
|
|
119
|
+
className="absolute left-0 top-0 h-full w-full overflow-hidden"
|
|
120
|
+
ref={editorRef}
|
|
121
|
+
/>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
);
|
|
127
|
+
}
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
WINDOW_DEFAULT_WIDTH,
|
|
25
25
|
type LayoutManagerState,
|
|
26
26
|
type WindowState,
|
|
27
|
-
} from '../../stores/
|
|
27
|
+
} from '../../stores/core/DataCubeLayoutManagerState.js';
|
|
28
28
|
import { observer } from 'mobx-react-lite';
|
|
29
29
|
|
|
30
30
|
export const Window = (props: {
|
|
@@ -19,8 +19,10 @@ import {
|
|
|
19
19
|
languages as monacoLanguagesAPI,
|
|
20
20
|
type IPosition,
|
|
21
21
|
} from 'monaco-editor';
|
|
22
|
-
import type {
|
|
23
|
-
|
|
22
|
+
import type {
|
|
23
|
+
CompletionItem,
|
|
24
|
+
DataCubeEngine,
|
|
25
|
+
} from '../../stores/core/DataCubeEngine.js';
|
|
24
26
|
import type { V1_ValueSpecification } from '@finos/legend-graph';
|
|
25
27
|
|
|
26
28
|
// Since we render the editor in a window which has been CSS transformed, and monaco-editor renders
|
|
@@ -43,7 +45,7 @@ export async function getCodeSuggestions(
|
|
|
43
45
|
position: IPosition,
|
|
44
46
|
model: monacoEditorAPI.ITextModel,
|
|
45
47
|
prefix: string | undefined,
|
|
46
|
-
|
|
48
|
+
engine: DataCubeEngine,
|
|
47
49
|
baseQueryBuilder: () => V1_ValueSpecification,
|
|
48
50
|
) {
|
|
49
51
|
const textUntilPosition = model.getValueInRange({
|
|
@@ -57,7 +59,7 @@ export async function getCodeSuggestions(
|
|
|
57
59
|
let suggestions: CompletionItem[] = [];
|
|
58
60
|
|
|
59
61
|
try {
|
|
60
|
-
suggestions = await
|
|
62
|
+
suggestions = await engine.getQueryTypeahead(
|
|
61
63
|
(prefix ?? '') + textUntilPosition,
|
|
62
64
|
baseQueryBuilder(),
|
|
63
65
|
);
|
|
@@ -16,14 +16,13 @@
|
|
|
16
16
|
|
|
17
17
|
import { observer } from 'mobx-react-lite';
|
|
18
18
|
import { DataCubeIcon } from '@finos/legend-art';
|
|
19
|
-
import { FormCheckbox, FormNumberInput } from '
|
|
19
|
+
import { FormCheckbox, FormNumberInput } from './DataCubeFormUtils.js';
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_ENABLE_DEBUG_MODE,
|
|
22
|
-
DEFAULT_ENABLE_ENGINE_DEBUG_MODE,
|
|
23
22
|
DEFAULT_GRID_CLIENT_PURGE_CLOSED_ROW_NODES,
|
|
24
23
|
DEFAULT_GRID_CLIENT_ROW_BUFFER,
|
|
25
24
|
DEFAULT_GRID_CLIENT_SUPPRESS_LARGE_DATASET_WARNING,
|
|
26
|
-
} from '../../stores/
|
|
25
|
+
} from '../../stores/core/DataCubeEngine.js';
|
|
27
26
|
import { useState } from 'react';
|
|
28
27
|
import { useDataCube } from '../DataCubeProvider.js';
|
|
29
28
|
|
|
@@ -37,9 +36,6 @@ export const DataCubeSettingsPanel = observer(() => {
|
|
|
37
36
|
const [enableDebugMode, setEnableDebugMode] = useState(
|
|
38
37
|
engine.enableDebugMode,
|
|
39
38
|
);
|
|
40
|
-
const [enableEngineDebugMode, setEnableEngineDebugMode] = useState(
|
|
41
|
-
engine.enableEngineDebugMode,
|
|
42
|
-
);
|
|
43
39
|
const [gridClientRowBuffer, setGridClientRowBuffer] = useState(
|
|
44
40
|
engine.gridClientRowBuffer,
|
|
45
41
|
);
|
|
@@ -52,7 +48,6 @@ export const DataCubeSettingsPanel = observer(() => {
|
|
|
52
48
|
|
|
53
49
|
const save = () => {
|
|
54
50
|
engine.setEnableDebugMode(enableDebugMode);
|
|
55
|
-
engine.setEnableEngineDebugMode(enableEngineDebugMode);
|
|
56
51
|
engine.setGridClientRowBuffer(gridClientRowBuffer);
|
|
57
52
|
engine.setGridClientPurgeClosedRowNodes(gridClientPurgeClosedRowNodes);
|
|
58
53
|
engine.setGridClientSuppressLargeDatasetWarning(
|
|
@@ -65,7 +60,6 @@ export const DataCubeSettingsPanel = observer(() => {
|
|
|
65
60
|
DEFAULT_GRID_CLIENT_PURGE_CLOSED_ROW_NODES,
|
|
66
61
|
);
|
|
67
62
|
setEnableDebugMode(DEFAULT_ENABLE_DEBUG_MODE);
|
|
68
|
-
setEnableEngineDebugMode(DEFAULT_ENABLE_ENGINE_DEBUG_MODE);
|
|
69
63
|
setGridClientSuppressLargeDatasetWarning(
|
|
70
64
|
DEFAULT_GRID_CLIENT_SUPPRESS_LARGE_DATASET_WARNING,
|
|
71
65
|
);
|
|
@@ -172,18 +166,6 @@ export const DataCubeSettingsPanel = observer(() => {
|
|
|
172
166
|
/>
|
|
173
167
|
</div>
|
|
174
168
|
</div>
|
|
175
|
-
<div className="mt-1.5">
|
|
176
|
-
<div className="font-medium">Engine Debug Mode: Enabled</div>
|
|
177
|
-
<div className="flex pr-2">
|
|
178
|
-
<FormCheckbox
|
|
179
|
-
label="Enable debug logging in the engine when running data queries, computing query analytics, etc."
|
|
180
|
-
checked={enableEngineDebugMode}
|
|
181
|
-
onChange={() =>
|
|
182
|
-
setEnableEngineDebugMode(!enableEngineDebugMode)
|
|
183
|
-
}
|
|
184
|
-
/>
|
|
185
|
-
</div>
|
|
186
|
-
</div>
|
|
187
169
|
</div>
|
|
188
170
|
</div>
|
|
189
171
|
<div className="flex h-10 items-center justify-end px-2">
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { observer } from 'mobx-react-lite';
|
|
18
|
-
import { DataCubeEditorTab } from '
|
|
18
|
+
import { DataCubeEditorTab } from '../../../stores/view/editor/DataCubeEditorState.js';
|
|
19
19
|
import { DataCubeEditorSortsPanel } from './DataCubeEditorSortsPanel.js';
|
|
20
20
|
import { DataCubeEditorGeneralPropertiesPanel } from './DataCubeEditorGeneralPropertiesPanel.js';
|
|
21
21
|
import { DataCubeEditorColumnsPanel } from './DataCubeEditorColumnsPanel.js';
|
|
@@ -23,7 +23,7 @@ import { DataCubeEditorVerticalPivotsPanel } from './DataCubeEditorVerticalPivot
|
|
|
23
23
|
import { DataCubeEditorHorizontalPivotsPanel } from './DataCubeEditorHorizontalPivotsPanel.js';
|
|
24
24
|
import { DataCubeEditorColumnPropertiesPanel } from './DataCubeEditorColumnPropertiesPanel.js';
|
|
25
25
|
import { cn } from '@finos/legend-art';
|
|
26
|
-
import type { DataCubeViewState } from '
|
|
26
|
+
import type { DataCubeViewState } from '../../../stores/view/DataCubeViewState.js';
|
|
27
27
|
|
|
28
28
|
export const DataCubeEditor = observer((props: { view: DataCubeViewState }) => {
|
|
29
29
|
const { view } = props;
|