@finos/legend-data-cube 0.0.2
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/LICENSE +201 -0
- package/README.md +3 -0
- package/lib/application/DataCubeDocumentation.d.ts +22 -0
- package/lib/application/DataCubeDocumentation.d.ts.map +1 -0
- package/lib/application/DataCubeDocumentation.js +23 -0
- package/lib/application/DataCubeDocumentation.js.map +1 -0
- package/lib/components/DataCube.d.ts +19 -0
- package/lib/components/DataCube.d.ts.map +1 -0
- package/lib/components/DataCube.js +67 -0
- package/lib/components/DataCube.js.map +1 -0
- package/lib/components/DataCubeProvider.d.ts +27 -0
- package/lib/components/DataCubeProvider.d.ts.map +1 -0
- package/lib/components/DataCubeProvider.js +34 -0
- package/lib/components/DataCubeProvider.js.map +1 -0
- package/lib/components/application/DataCubeAlert.d.ts +44 -0
- package/lib/components/application/DataCubeAlert.d.ts.map +1 -0
- package/lib/components/application/DataCubeAlert.js +83 -0
- package/lib/components/application/DataCubeAlert.js.map +1 -0
- package/lib/components/application/DataCubeDocumentationPanel.d.ts +19 -0
- package/lib/components/application/DataCubeDocumentationPanel.d.ts.map +1 -0
- package/lib/components/application/DataCubeDocumentationPanel.js +32 -0
- package/lib/components/application/DataCubeDocumentationPanel.js.map +1 -0
- package/lib/components/application/DataCubeLayoutManager.d.ts +27 -0
- package/lib/components/application/DataCubeLayoutManager.d.ts.map +1 -0
- package/lib/components/application/DataCubeLayoutManager.js +116 -0
- package/lib/components/application/DataCubeLayoutManager.js.map +1 -0
- package/lib/components/application/DataCubeSettingsPanel.d.ts +19 -0
- package/lib/components/application/DataCubeSettingsPanel.d.ts.map +1 -0
- package/lib/components/application/DataCubeSettingsPanel.js +53 -0
- package/lib/components/application/DataCubeSettingsPanel.js.map +1 -0
- package/lib/components/editor/DataCubeEditor.d.ts +22 -0
- package/lib/components/editor/DataCubeEditor.d.ts.map +1 -0
- package/lib/components/editor/DataCubeEditor.js +51 -0
- package/lib/components/editor/DataCubeEditor.js.map +1 -0
- package/lib/components/editor/DataCubeEditorColumnPropertiesPanel.d.ts +22 -0
- package/lib/components/editor/DataCubeEditorColumnPropertiesPanel.d.ts.map +1 -0
- package/lib/components/editor/DataCubeEditorColumnPropertiesPanel.js +274 -0
- package/lib/components/editor/DataCubeEditorColumnPropertiesPanel.js.map +1 -0
- package/lib/components/editor/DataCubeEditorColumnsPanel.d.ts +22 -0
- package/lib/components/editor/DataCubeEditorColumnsPanel.d.ts.map +1 -0
- package/lib/components/editor/DataCubeEditorColumnsPanel.js +35 -0
- package/lib/components/editor/DataCubeEditorColumnsPanel.js.map +1 -0
- package/lib/components/editor/DataCubeEditorColumnsSelector.d.ts +32 -0
- package/lib/components/editor/DataCubeEditorColumnsSelector.d.ts.map +1 -0
- package/lib/components/editor/DataCubeEditorColumnsSelector.js +307 -0
- package/lib/components/editor/DataCubeEditorColumnsSelector.js.map +1 -0
- package/lib/components/editor/DataCubeEditorGeneralPropertiesPanel.d.ts +22 -0
- package/lib/components/editor/DataCubeEditorGeneralPropertiesPanel.d.ts.map +1 -0
- package/lib/components/editor/DataCubeEditorGeneralPropertiesPanel.js +167 -0
- package/lib/components/editor/DataCubeEditorGeneralPropertiesPanel.js.map +1 -0
- package/lib/components/editor/DataCubeEditorHorizontalPivotsPanel.d.ts +22 -0
- package/lib/components/editor/DataCubeEditorHorizontalPivotsPanel.d.ts.map +1 -0
- package/lib/components/editor/DataCubeEditorHorizontalPivotsPanel.js +29 -0
- package/lib/components/editor/DataCubeEditorHorizontalPivotsPanel.js.map +1 -0
- package/lib/components/editor/DataCubeEditorSortsPanel.d.ts +22 -0
- package/lib/components/editor/DataCubeEditorSortsPanel.d.ts.map +1 -0
- package/lib/components/editor/DataCubeEditorSortsPanel.js +62 -0
- package/lib/components/editor/DataCubeEditorSortsPanel.js.map +1 -0
- package/lib/components/editor/DataCubeEditorVerticalPivotsPanel.d.ts +22 -0
- package/lib/components/editor/DataCubeEditorVerticalPivotsPanel.d.ts.map +1 -0
- package/lib/components/editor/DataCubeEditorVerticalPivotsPanel.js +25 -0
- package/lib/components/editor/DataCubeEditorVerticalPivotsPanel.js.map +1 -0
- package/lib/components/extend/DataCubeColumnEditor.d.ts +22 -0
- package/lib/components/extend/DataCubeColumnEditor.d.ts.map +1 -0
- package/lib/components/extend/DataCubeColumnEditor.js +169 -0
- package/lib/components/extend/DataCubeColumnEditor.js.map +1 -0
- package/lib/components/filter/DataCubeFilterEditor.d.ts +22 -0
- package/lib/components/filter/DataCubeFilterEditor.d.ts.map +1 -0
- package/lib/components/filter/DataCubeFilterEditor.js +312 -0
- package/lib/components/filter/DataCubeFilterEditor.js.map +1 -0
- package/lib/components/grid/DataCubeGrid.d.ts +27 -0
- package/lib/components/grid/DataCubeGrid.d.ts.map +1 -0
- package/lib/components/grid/DataCubeGrid.js +241 -0
- package/lib/components/grid/DataCubeGrid.js.map +1 -0
- package/lib/components/grid/DataCubeGridShared.d.ts +18 -0
- package/lib/components/grid/DataCubeGridShared.d.ts.map +1 -0
- package/lib/components/grid/DataCubeGridShared.js +25 -0
- package/lib/components/grid/DataCubeGridShared.js.map +1 -0
- package/lib/components/shared/DataCubeFormUtils.d.ts +54 -0
- package/lib/components/shared/DataCubeFormUtils.d.ts.map +1 -0
- package/lib/components/shared/DataCubeFormUtils.js +251 -0
- package/lib/components/shared/DataCubeFormUtils.js.map +1 -0
- package/lib/components/shared/DataCubePureCodeEditorUtils.d.ts +22 -0
- package/lib/components/shared/DataCubePureCodeEditorUtils.d.ts.map +1 -0
- package/lib/components/shared/DataCubePureCodeEditorUtils.js +64 -0
- package/lib/components/shared/DataCubePureCodeEditorUtils.js.map +1 -0
- package/lib/index.css +17 -0
- package/lib/index.css.map +1 -0
- package/lib/index.d.ts +21 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +21 -0
- package/lib/index.js.map +1 -0
- package/lib/package.json +89 -0
- package/lib/stores/DataCubeState.d.ts +32 -0
- package/lib/stores/DataCubeState.d.ts.map +1 -0
- package/lib/stores/DataCubeState.js +84 -0
- package/lib/stores/DataCubeState.js.map +1 -0
- package/lib/stores/DataCubeViewState.d.ts +50 -0
- package/lib/stores/DataCubeViewState.d.ts.map +1 -0
- package/lib/stores/DataCubeViewState.js +109 -0
- package/lib/stores/DataCubeViewState.js.map +1 -0
- package/lib/stores/core/DataCubeConfiguration.d.ts +107 -0
- package/lib/stores/core/DataCubeConfiguration.d.ts.map +1 -0
- package/lib/stores/core/DataCubeConfiguration.js +185 -0
- package/lib/stores/core/DataCubeConfiguration.js.map +1 -0
- package/lib/stores/core/DataCubeConfigurationBuilder.d.ts +25 -0
- package/lib/stores/core/DataCubeConfigurationBuilder.d.ts.map +1 -0
- package/lib/stores/core/DataCubeConfigurationBuilder.js +50 -0
- package/lib/stores/core/DataCubeConfigurationBuilder.js.map +1 -0
- package/lib/stores/core/DataCubeInfoState.d.ts +33 -0
- package/lib/stores/core/DataCubeInfoState.d.ts.map +1 -0
- package/lib/stores/core/DataCubeInfoState.js +48 -0
- package/lib/stores/core/DataCubeInfoState.js.map +1 -0
- package/lib/stores/core/DataCubeQueryBuilder.d.ts +35 -0
- package/lib/stores/core/DataCubeQueryBuilder.d.ts.map +1 -0
- package/lib/stores/core/DataCubeQueryBuilder.js +130 -0
- package/lib/stores/core/DataCubeQueryBuilder.js.map +1 -0
- package/lib/stores/core/DataCubeQueryBuilderUtils.d.ts +50 -0
- package/lib/stores/core/DataCubeQueryBuilderUtils.d.ts.map +1 -0
- package/lib/stores/core/DataCubeQueryBuilderUtils.js +320 -0
- package/lib/stores/core/DataCubeQueryBuilderUtils.js.map +1 -0
- package/lib/stores/core/DataCubeQueryEngine.d.ts +224 -0
- package/lib/stores/core/DataCubeQueryEngine.d.ts.map +1 -0
- package/lib/stores/core/DataCubeQueryEngine.js +286 -0
- package/lib/stores/core/DataCubeQueryEngine.js.map +1 -0
- package/lib/stores/core/DataCubeQuerySnapshot.d.ts +89 -0
- package/lib/stores/core/DataCubeQuerySnapshot.d.ts.map +1 -0
- package/lib/stores/core/DataCubeQuerySnapshot.js +82 -0
- package/lib/stores/core/DataCubeQuerySnapshot.js.map +1 -0
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.d.ts +33 -0
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.d.ts.map +1 -0
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.js +260 -0
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.js.map +1 -0
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.d.ts +30 -0
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.d.ts.map +1 -0
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.js +125 -0
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.js.map +1 -0
- package/lib/stores/core/DataCubeQuerySnapshotManager.d.ts +47 -0
- package/lib/stores/core/DataCubeQuerySnapshotManager.d.ts.map +1 -0
- package/lib/stores/core/DataCubeQuerySnapshotManager.js +84 -0
- package/lib/stores/core/DataCubeQuerySnapshotManager.js.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation.d.ts +28 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation.d.ts.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation.js +25 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation.js.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.d.ts +27 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.d.ts.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.js +39 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.js.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.d.ts +27 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.d.ts.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.js +47 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.js.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.d.ts +27 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.d.ts.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.js +44 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.js.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.d.ts +27 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.d.ts.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.js +53 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.js.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.d.ts +27 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.d.ts.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.js +44 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.js.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.d.ts +27 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.d.ts.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.js +39 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.js.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.d.ts +27 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.d.ts.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.js +39 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.js.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.d.ts +27 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.d.ts.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.js +39 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.js.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.d.ts +27 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.d.ts.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.js +39 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.js.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.d.ts +27 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.d.ts.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.js +39 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.js.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.d.ts +27 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.d.ts.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.js +44 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.js.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.d.ts +27 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.d.ts.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.js +39 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.js.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.d.ts +27 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.d.ts.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.js +39 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.d.ts +36 -0
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.js +153 -0
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation.d.ts +32 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation.js +48 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.js +59 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.js +64 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.js +59 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.js +64 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.js +136 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.js +64 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.js +64 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.js +65 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.js +67 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.js +64 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.js +67 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.js +64 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.d.ts +31 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.js +64 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.d.ts +31 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.js +64 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.js +67 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.js +64 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.js +67 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.js +64 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.js +59 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.js +59 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.js +69 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.js +64 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.js +64 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.js +65 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.js +59 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.js +59 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.js.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.d.ts +34 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.d.ts.map +1 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.js +64 -0
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.js.map +1 -0
- package/lib/stores/editor/DataCubeEditorColumnPropertiesPanelState.d.ts +37 -0
- package/lib/stores/editor/DataCubeEditorColumnPropertiesPanelState.d.ts.map +1 -0
- package/lib/stores/editor/DataCubeEditorColumnPropertiesPanelState.js +68 -0
- package/lib/stores/editor/DataCubeEditorColumnPropertiesPanelState.js.map +1 -0
- package/lib/stores/editor/DataCubeEditorColumnsPanelState.d.ts +58 -0
- package/lib/stores/editor/DataCubeEditorColumnsPanelState.d.ts.map +1 -0
- package/lib/stores/editor/DataCubeEditorColumnsPanelState.js +127 -0
- package/lib/stores/editor/DataCubeEditorColumnsPanelState.js.map +1 -0
- package/lib/stores/editor/DataCubeEditorColumnsSelectorState.d.ts +42 -0
- package/lib/stores/editor/DataCubeEditorColumnsSelectorState.d.ts.map +1 -0
- package/lib/stores/editor/DataCubeEditorColumnsSelectorState.js +75 -0
- package/lib/stores/editor/DataCubeEditorColumnsSelectorState.js.map +1 -0
- package/lib/stores/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts +35 -0
- package/lib/stores/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts.map +1 -0
- package/lib/stores/editor/DataCubeEditorGeneralPropertiesPanelState.js +59 -0
- package/lib/stores/editor/DataCubeEditorGeneralPropertiesPanelState.js.map +1 -0
- package/lib/stores/editor/DataCubeEditorHorizontalPivotsPanelState.d.ts +38 -0
- package/lib/stores/editor/DataCubeEditorHorizontalPivotsPanelState.d.ts.map +1 -0
- package/lib/stores/editor/DataCubeEditorHorizontalPivotsPanelState.js +75 -0
- package/lib/stores/editor/DataCubeEditorHorizontalPivotsPanelState.js.map +1 -0
- package/lib/stores/editor/DataCubeEditorMutableConfiguration.d.ts +107 -0
- package/lib/stores/editor/DataCubeEditorMutableConfiguration.d.ts.map +1 -0
- package/lib/stores/editor/DataCubeEditorMutableConfiguration.js +467 -0
- package/lib/stores/editor/DataCubeEditorMutableConfiguration.js.map +1 -0
- package/lib/stores/editor/DataCubeEditorPanelState.d.ts +29 -0
- package/lib/stores/editor/DataCubeEditorPanelState.d.ts.map +1 -0
- package/lib/stores/editor/DataCubeEditorPanelState.js +17 -0
- package/lib/stores/editor/DataCubeEditorPanelState.js.map +1 -0
- package/lib/stores/editor/DataCubeEditorSortsPanelState.d.ts +41 -0
- package/lib/stores/editor/DataCubeEditorSortsPanelState.d.ts.map +1 -0
- package/lib/stores/editor/DataCubeEditorSortsPanelState.js +86 -0
- package/lib/stores/editor/DataCubeEditorSortsPanelState.js.map +1 -0
- package/lib/stores/editor/DataCubeEditorState.d.ts +64 -0
- package/lib/stores/editor/DataCubeEditorState.d.ts.map +1 -0
- package/lib/stores/editor/DataCubeEditorState.js +155 -0
- package/lib/stores/editor/DataCubeEditorState.js.map +1 -0
- package/lib/stores/editor/DataCubeEditorVerticalPivotsPanelState.d.ts +35 -0
- package/lib/stores/editor/DataCubeEditorVerticalPivotsPanelState.d.ts.map +1 -0
- package/lib/stores/editor/DataCubeEditorVerticalPivotsPanelState.js +58 -0
- package/lib/stores/editor/DataCubeEditorVerticalPivotsPanelState.js.map +1 -0
- package/lib/stores/engine/DataCubeApplicationEngine.d.ts +55 -0
- package/lib/stores/engine/DataCubeApplicationEngine.d.ts.map +1 -0
- package/lib/stores/engine/DataCubeApplicationEngine.js +33 -0
- package/lib/stores/engine/DataCubeApplicationEngine.js.map +1 -0
- package/lib/stores/engine/DataCubeEngine.d.ts +124 -0
- package/lib/stores/engine/DataCubeEngine.d.ts.map +1 -0
- package/lib/stores/engine/DataCubeEngine.js +182 -0
- package/lib/stores/engine/DataCubeEngine.js.map +1 -0
- package/lib/stores/engine/DataCubeLayoutManagerState.d.ts +62 -0
- package/lib/stores/engine/DataCubeLayoutManagerState.d.ts.map +1 -0
- package/lib/stores/engine/DataCubeLayoutManagerState.js +133 -0
- package/lib/stores/engine/DataCubeLayoutManagerState.js.map +1 -0
- package/lib/stores/engine/DataCubeQuery.d.ts +40 -0
- package/lib/stores/engine/DataCubeQuery.d.ts.map +1 -0
- package/lib/stores/engine/DataCubeQuery.js +79 -0
- package/lib/stores/engine/DataCubeQuery.js.map +1 -0
- package/lib/stores/extend/DataCubeColumnEditorState.d.ts +61 -0
- package/lib/stores/extend/DataCubeColumnEditorState.d.ts.map +1 -0
- package/lib/stores/extend/DataCubeColumnEditorState.js +260 -0
- package/lib/stores/extend/DataCubeColumnEditorState.js.map +1 -0
- package/lib/stores/extend/DataCubeExtendManagerState.d.ts +46 -0
- package/lib/stores/extend/DataCubeExtendManagerState.d.ts.map +1 -0
- package/lib/stores/extend/DataCubeExtendManagerState.js +119 -0
- package/lib/stores/extend/DataCubeExtendManagerState.js.map +1 -0
- package/lib/stores/filter/DataCubeFilterEditorState.d.ts +61 -0
- package/lib/stores/filter/DataCubeFilterEditorState.d.ts.map +1 -0
- package/lib/stores/filter/DataCubeFilterEditorState.js +228 -0
- package/lib/stores/filter/DataCubeFilterEditorState.js.map +1 -0
- package/lib/stores/grid/DataCubeGridClientEngine.d.ts +93 -0
- package/lib/stores/grid/DataCubeGridClientEngine.d.ts.map +1 -0
- package/lib/stores/grid/DataCubeGridClientEngine.js +364 -0
- package/lib/stores/grid/DataCubeGridClientEngine.js.map +1 -0
- package/lib/stores/grid/DataCubeGridClientExportEngine.d.ts +31 -0
- package/lib/stores/grid/DataCubeGridClientExportEngine.d.ts.map +1 -0
- package/lib/stores/grid/DataCubeGridClientExportEngine.js +152 -0
- package/lib/stores/grid/DataCubeGridClientExportEngine.js.map +1 -0
- package/lib/stores/grid/DataCubeGridConfigurationBuilder.d.ts +180 -0
- package/lib/stores/grid/DataCubeGridConfigurationBuilder.d.ts.map +1 -0
- package/lib/stores/grid/DataCubeGridConfigurationBuilder.js +649 -0
- package/lib/stores/grid/DataCubeGridConfigurationBuilder.js.map +1 -0
- package/lib/stores/grid/DataCubeGridControllerState.d.ts +89 -0
- package/lib/stores/grid/DataCubeGridControllerState.d.ts.map +1 -0
- package/lib/stores/grid/DataCubeGridControllerState.js +342 -0
- package/lib/stores/grid/DataCubeGridControllerState.js.map +1 -0
- package/lib/stores/grid/DataCubeGridMenuBuilder.d.ts +19 -0
- package/lib/stores/grid/DataCubeGridMenuBuilder.d.ts.map +1 -0
- package/lib/stores/grid/DataCubeGridMenuBuilder.js +687 -0
- package/lib/stores/grid/DataCubeGridMenuBuilder.js.map +1 -0
- package/lib/stores/grid/DataCubeGridQueryBuilder.d.ts +23 -0
- package/lib/stores/grid/DataCubeGridQueryBuilder.d.ts.map +1 -0
- package/lib/stores/grid/DataCubeGridQueryBuilder.js +130 -0
- package/lib/stores/grid/DataCubeGridQueryBuilder.js.map +1 -0
- package/lib/stores/grid/DataCubeGridQuerySnapshotBuilder.d.ts +27 -0
- package/lib/stores/grid/DataCubeGridQuerySnapshotBuilder.d.ts.map +1 -0
- package/lib/stores/grid/DataCubeGridQuerySnapshotBuilder.js +66 -0
- package/lib/stores/grid/DataCubeGridQuerySnapshotBuilder.js.map +1 -0
- package/lib/stores/grid/DataCubeGridState.d.ts +55 -0
- package/lib/stores/grid/DataCubeGridState.d.ts.map +1 -0
- package/lib/stores/grid/DataCubeGridState.js +114 -0
- package/lib/stores/grid/DataCubeGridState.js.map +1 -0
- package/package.json +89 -0
- package/src/application/DataCubeDocumentation.ts +22 -0
- package/src/components/DataCube.tsx +157 -0
- package/src/components/DataCubeProvider.tsx +58 -0
- package/src/components/application/DataCubeAlert.tsx +173 -0
- package/src/components/application/DataCubeDocumentationPanel.tsx +42 -0
- package/src/components/application/DataCubeLayoutManager.tsx +190 -0
- package/src/components/application/DataCubeSettingsPanel.tsx +205 -0
- package/src/components/editor/DataCubeEditor.tsx +114 -0
- package/src/components/editor/DataCubeEditorColumnPropertiesPanel.tsx +1210 -0
- package/src/components/editor/DataCubeEditorColumnsPanel.tsx +121 -0
- package/src/components/editor/DataCubeEditorColumnsSelector.tsx +596 -0
- package/src/components/editor/DataCubeEditorGeneralPropertiesPanel.tsx +786 -0
- package/src/components/editor/DataCubeEditorHorizontalPivotsPanel.tsx +61 -0
- package/src/components/editor/DataCubeEditorSortsPanel.tsx +166 -0
- package/src/components/editor/DataCubeEditorVerticalPivotsPanel.tsx +43 -0
- package/src/components/extend/DataCubeColumnEditor.tsx +366 -0
- package/src/components/filter/DataCubeFilterEditor.tsx +907 -0
- package/src/components/grid/DataCubeGrid.tsx +384 -0
- package/src/components/grid/DataCubeGridShared.tsx +45 -0
- package/src/components/shared/DataCubeFormUtils.tsx +574 -0
- package/src/components/shared/DataCubePureCodeEditorUtils.tsx +91 -0
- package/src/index.tsx +22 -0
- package/src/stores/DataCubeState.tsx +100 -0
- package/src/stores/DataCubeViewState.ts +129 -0
- package/src/stores/core/DataCubeConfiguration.ts +240 -0
- package/src/stores/core/DataCubeConfigurationBuilder.ts +66 -0
- package/src/stores/core/DataCubeInfoState.ts +61 -0
- package/src/stores/core/DataCubeQueryBuilder.ts +296 -0
- package/src/stores/core/DataCubeQueryBuilderUtils.ts +514 -0
- package/src/stores/core/DataCubeQueryEngine.ts +327 -0
- package/src/stores/core/DataCubeQuerySnapshot.ts +191 -0
- package/src/stores/core/DataCubeQuerySnapshotBuilder.ts +406 -0
- package/src/stores/core/DataCubeQuerySnapshotBuilderUtils.ts +197 -0
- package/src/stores/core/DataCubeQuerySnapshotManager.ts +148 -0
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation.ts +47 -0
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.tsx +52 -0
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.tsx +61 -0
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__First.tsx +57 -0
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.tsx +81 -0
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.tsx +57 -0
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.tsx +52 -0
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.tsx +52 -0
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.tsx +55 -0
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.tsx +52 -0
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.tsx +52 -0
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.tsx +57 -0
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.tsx +52 -0
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.tsx +52 -0
- package/src/stores/core/filter/DataCubeQueryFilterEditorState.ts +231 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation.ts +96 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__Contain.tsx +88 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.tsx +94 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EndWith.tsx +88 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.tsx +94 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__Equal.tsx +170 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.tsx +94 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.tsx +92 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.tsx +93 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.tsx +96 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.tsx +92 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.tsx +96 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.tsx +92 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.tsx +92 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__IsNull.tsx +89 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThan.tsx +96 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.tsx +92 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.tsx +96 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.tsx +92 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotContain.tsx +91 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.tsx +91 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.tsx +101 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.tsx +97 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.tsx +95 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.tsx +96 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.tsx +91 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__StartWith.tsx +88 -0
- package/src/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.tsx +94 -0
- package/src/stores/editor/DataCubeEditorColumnPropertiesPanelState.ts +111 -0
- package/src/stores/editor/DataCubeEditorColumnsPanelState.ts +198 -0
- package/src/stores/editor/DataCubeEditorColumnsSelectorState.ts +115 -0
- package/src/stores/editor/DataCubeEditorGeneralPropertiesPanelState.ts +87 -0
- package/src/stores/editor/DataCubeEditorHorizontalPivotsPanelState.ts +132 -0
- package/src/stores/editor/DataCubeEditorMutableConfiguration.ts +677 -0
- package/src/stores/editor/DataCubeEditorPanelState.ts +37 -0
- package/src/stores/editor/DataCubeEditorSortsPanelState.ts +147 -0
- package/src/stores/editor/DataCubeEditorState.tsx +206 -0
- package/src/stores/editor/DataCubeEditorVerticalPivotsPanelState.ts +110 -0
- package/src/stores/engine/DataCubeApplicationEngine.tsx +120 -0
- package/src/stores/engine/DataCubeEngine.ts +276 -0
- package/src/stores/engine/DataCubeLayoutManagerState.ts +184 -0
- package/src/stores/engine/DataCubeQuery.ts +130 -0
- package/src/stores/extend/DataCubeColumnEditorState.tsx +365 -0
- package/src/stores/extend/DataCubeExtendManagerState.tsx +175 -0
- package/src/stores/filter/DataCubeFilterEditorState.tsx +327 -0
- package/src/stores/grid/DataCubeGridClientEngine.ts +506 -0
- package/src/stores/grid/DataCubeGridClientExportEngine.ts +173 -0
- package/src/stores/grid/DataCubeGridConfigurationBuilder.tsx +940 -0
- package/src/stores/grid/DataCubeGridControllerState.ts +493 -0
- package/src/stores/grid/DataCubeGridMenuBuilder.tsx +861 -0
- package/src/stores/grid/DataCubeGridQueryBuilder.ts +195 -0
- package/src/stores/grid/DataCubeGridQuerySnapshotBuilder.ts +125 -0
- package/src/stores/grid/DataCubeGridState.ts +155 -0
- package/tsconfig.json +164 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { action, computed, makeObservable, observable } from 'mobx';
|
|
18
|
+
import { DataCubeColumnCreator } from '../../components/extend/DataCubeColumnEditor.js';
|
|
19
|
+
import { editor as monacoEditorAPI, Uri } from 'monaco-editor';
|
|
20
|
+
import { ActionState, assertErrorThrown, guaranteeNonNullable, HttpStatus, NetworkClientError, uuid, } from '@finos/legend-shared';
|
|
21
|
+
import { buildExecutableQuery } from '../core/DataCubeQueryBuilder.js';
|
|
22
|
+
import { DataCubeColumnDataType, DataCubeColumnKind, DataCubeExtendedColumnType, DEFAULT_LAMBDA_VARIABLE_NAME, getDataType, } from '../core/DataCubeQueryEngine.js';
|
|
23
|
+
import { clearMarkers, CODE_EDITOR_LANGUAGE, setErrorMarkers, } from '@finos/legend-code-editor';
|
|
24
|
+
import { PRIMITIVE_TYPE, V1_Lambda, V1_serializeValueSpecification, } from '@finos/legend-graph';
|
|
25
|
+
export class DataCubeNewColumnState {
|
|
26
|
+
uuid = uuid();
|
|
27
|
+
view;
|
|
28
|
+
manager;
|
|
29
|
+
// NOTE: use UUID in the column name to prevent collision
|
|
30
|
+
// when parsing/compiling the expression
|
|
31
|
+
_name = `col_${this.uuid.replaceAll('-', '_')}`;
|
|
32
|
+
display;
|
|
33
|
+
validationState = ActionState.create();
|
|
34
|
+
finalizationState = ActionState.create();
|
|
35
|
+
name;
|
|
36
|
+
expectedType;
|
|
37
|
+
isGroupLevel;
|
|
38
|
+
columnKind;
|
|
39
|
+
code;
|
|
40
|
+
codePrefix;
|
|
41
|
+
codeSuffix;
|
|
42
|
+
editor;
|
|
43
|
+
editorModel;
|
|
44
|
+
editorModelUri;
|
|
45
|
+
codeError;
|
|
46
|
+
returnType;
|
|
47
|
+
constructor(manager, referenceColumn) {
|
|
48
|
+
makeObservable(this, {
|
|
49
|
+
name: observable,
|
|
50
|
+
setName: action,
|
|
51
|
+
isNameValid: computed,
|
|
52
|
+
expectedType: observable,
|
|
53
|
+
setExpectedType: action,
|
|
54
|
+
isTypeValid: computed,
|
|
55
|
+
isGroupLevel: observable,
|
|
56
|
+
columnKind: observable,
|
|
57
|
+
setColumnKind: action,
|
|
58
|
+
editor: observable.ref,
|
|
59
|
+
setEditor: action,
|
|
60
|
+
codeError: observable.ref,
|
|
61
|
+
showError: action,
|
|
62
|
+
clearError: action,
|
|
63
|
+
returnType: observable,
|
|
64
|
+
setReturnType: action,
|
|
65
|
+
});
|
|
66
|
+
this.manager = manager;
|
|
67
|
+
this.view = manager.view;
|
|
68
|
+
this.display = this.view.application.layout.newDisplay('Add New Column', () => _jsx(DataCubeColumnCreator, { state: this }), {
|
|
69
|
+
x: 50,
|
|
70
|
+
y: 50,
|
|
71
|
+
width: 500,
|
|
72
|
+
height: 300,
|
|
73
|
+
minWidth: 300,
|
|
74
|
+
minHeight: 200,
|
|
75
|
+
center: false,
|
|
76
|
+
});
|
|
77
|
+
this.name = `col_${manager.allColumnNames.length + 1}`;
|
|
78
|
+
this.expectedType = DataCubeColumnDataType.NUMBER;
|
|
79
|
+
this.isGroupLevel = false;
|
|
80
|
+
this.columnKind = DataCubeColumnKind.MEASURE;
|
|
81
|
+
this.code = `${DEFAULT_LAMBDA_VARIABLE_NAME}|`;
|
|
82
|
+
this.codePrefix = `->extend(~${this._name}:`;
|
|
83
|
+
this.codeSuffix = `)`;
|
|
84
|
+
if (referenceColumn) {
|
|
85
|
+
this.expectedType = getDataType(referenceColumn.type);
|
|
86
|
+
this.columnKind = referenceColumn.kind;
|
|
87
|
+
this.code = `${DEFAULT_LAMBDA_VARIABLE_NAME}|$${DEFAULT_LAMBDA_VARIABLE_NAME}.${referenceColumn.name}`;
|
|
88
|
+
}
|
|
89
|
+
this.editorModelUri = Uri.file(`/${this.uuid}.pure`);
|
|
90
|
+
this.editorModel = monacoEditorAPI.createModel(this.code, CODE_EDITOR_LANGUAGE.PURE, this.editorModelUri);
|
|
91
|
+
}
|
|
92
|
+
setName(value) {
|
|
93
|
+
this.name = value;
|
|
94
|
+
}
|
|
95
|
+
get isNameValid() {
|
|
96
|
+
return !this.manager.allColumnNames.includes(this.name);
|
|
97
|
+
}
|
|
98
|
+
setExpectedType(value) {
|
|
99
|
+
this.expectedType = value;
|
|
100
|
+
}
|
|
101
|
+
get isTypeValid() {
|
|
102
|
+
return (this.returnType !== undefined &&
|
|
103
|
+
this.expectedType === getDataType(this.returnType));
|
|
104
|
+
}
|
|
105
|
+
setColumnKind(isGroupLevel, columnKind) {
|
|
106
|
+
this.isGroupLevel = isGroupLevel;
|
|
107
|
+
this.columnKind = columnKind;
|
|
108
|
+
}
|
|
109
|
+
setCode(value) {
|
|
110
|
+
this.code = value;
|
|
111
|
+
}
|
|
112
|
+
setEditor(editor) {
|
|
113
|
+
this.editor = editor;
|
|
114
|
+
}
|
|
115
|
+
setReturnType(value) {
|
|
116
|
+
this.returnType = value;
|
|
117
|
+
}
|
|
118
|
+
showError(error) {
|
|
119
|
+
this.codeError = error;
|
|
120
|
+
if (error.sourceInformation) {
|
|
121
|
+
setErrorMarkers(this.editorModel, [
|
|
122
|
+
{
|
|
123
|
+
message: error.message,
|
|
124
|
+
startLineNumber: error.sourceInformation.startLine,
|
|
125
|
+
startColumn: error.sourceInformation.startColumn,
|
|
126
|
+
endLineNumber: error.sourceInformation.endLine,
|
|
127
|
+
endColumn: error.sourceInformation.endColumn,
|
|
128
|
+
},
|
|
129
|
+
], this.uuid);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
clearError() {
|
|
133
|
+
this.codeError = undefined;
|
|
134
|
+
clearMarkers(this.uuid);
|
|
135
|
+
}
|
|
136
|
+
buildExtendBaseQuery() {
|
|
137
|
+
const currentSnapshot = guaranteeNonNullable(this.manager.getLatestSnapshot());
|
|
138
|
+
const snapshot = currentSnapshot.clone();
|
|
139
|
+
if (!this.isGroupLevel) {
|
|
140
|
+
snapshot.data.leafExtendedColumns = [];
|
|
141
|
+
snapshot.data.selectColumns = [];
|
|
142
|
+
snapshot.data.filter = undefined;
|
|
143
|
+
snapshot.data.groupBy = undefined;
|
|
144
|
+
snapshot.data.pivot = undefined;
|
|
145
|
+
}
|
|
146
|
+
snapshot.data.groupExtendedColumns = [];
|
|
147
|
+
snapshot.data.sortColumns = [];
|
|
148
|
+
snapshot.data.limit = undefined;
|
|
149
|
+
return buildExecutableQuery(snapshot, this.manager.view.engine.filterOperations, this.manager.view.engine.aggregateOperations);
|
|
150
|
+
}
|
|
151
|
+
async getReturnType() {
|
|
152
|
+
const baseQuery = this.buildExtendBaseQuery();
|
|
153
|
+
this.validationState.inProgress();
|
|
154
|
+
// properly reset the error state before revalidating
|
|
155
|
+
this.clearError();
|
|
156
|
+
this.setReturnType(undefined);
|
|
157
|
+
try {
|
|
158
|
+
const returnRelationType = await this.view.engine.getQueryCodeRelationReturnType(this.codePrefix + this.code + this.codeSuffix, baseQuery);
|
|
159
|
+
let returnType = returnRelationType.columns.find((col) => col.name === this._name)?.type;
|
|
160
|
+
returnType =
|
|
161
|
+
returnType &&
|
|
162
|
+
Object.values(PRIMITIVE_TYPE).includes(returnType)
|
|
163
|
+
? returnType
|
|
164
|
+
: undefined;
|
|
165
|
+
this.setReturnType(returnType);
|
|
166
|
+
return returnType;
|
|
167
|
+
}
|
|
168
|
+
catch (err) {
|
|
169
|
+
assertErrorThrown(err);
|
|
170
|
+
if (err instanceof NetworkClientError &&
|
|
171
|
+
err.response.status === HttpStatus.BAD_REQUEST) {
|
|
172
|
+
this.validationState.fail();
|
|
173
|
+
// correct the source information since we added prefix to the code
|
|
174
|
+
// and reveal error in the editor
|
|
175
|
+
const error = err.payload;
|
|
176
|
+
if (error.sourceInformation) {
|
|
177
|
+
error.sourceInformation.startColumn -=
|
|
178
|
+
error.sourceInformation.startLine === 1
|
|
179
|
+
? this.codePrefix.length
|
|
180
|
+
: 0;
|
|
181
|
+
error.sourceInformation.endColumn -=
|
|
182
|
+
error.sourceInformation.endLine === 1 ? this.codePrefix.length : 0;
|
|
183
|
+
const fullRange = this.editorModel.getFullModelRange();
|
|
184
|
+
if (error.sourceInformation.startLine < 1 ||
|
|
185
|
+
(error.sourceInformation.startLine === 1 &&
|
|
186
|
+
error.sourceInformation.startColumn < 1) ||
|
|
187
|
+
error.sourceInformation.endLine > fullRange.endLineNumber ||
|
|
188
|
+
(error.sourceInformation.endLine === fullRange.endLineNumber &&
|
|
189
|
+
error.sourceInformation.endColumn > fullRange.endColumn)) {
|
|
190
|
+
error.sourceInformation.startColumn = fullRange.startColumn;
|
|
191
|
+
error.sourceInformation.startLine = fullRange.startLineNumber;
|
|
192
|
+
error.sourceInformation.endColumn = fullRange.endColumn;
|
|
193
|
+
error.sourceInformation.endLine = fullRange.endLineNumber;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
this.showError(err.payload);
|
|
197
|
+
return undefined;
|
|
198
|
+
}
|
|
199
|
+
this.view.application.alertError(err, {
|
|
200
|
+
message: `Expression Validation Failure: ${err.message}`,
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
finally {
|
|
204
|
+
this.validationState.complete();
|
|
205
|
+
}
|
|
206
|
+
return undefined;
|
|
207
|
+
}
|
|
208
|
+
async applyChanges() {
|
|
209
|
+
if (!this.validationState.hasCompleted ||
|
|
210
|
+
!this.isNameValid ||
|
|
211
|
+
!this.isTypeValid) {
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
this.finalizationState.inProgress();
|
|
215
|
+
let query;
|
|
216
|
+
let returnType;
|
|
217
|
+
try {
|
|
218
|
+
[query, returnType] = await Promise.all([
|
|
219
|
+
this.view.engine.parseQuery(this.code, false),
|
|
220
|
+
this.getReturnType(), // recompile to get the return type
|
|
221
|
+
]);
|
|
222
|
+
}
|
|
223
|
+
catch (error) {
|
|
224
|
+
assertErrorThrown(error);
|
|
225
|
+
this.view.application.alertError(error, {
|
|
226
|
+
message: `Expression Validation Failure: ${error.message}`,
|
|
227
|
+
});
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
finally {
|
|
231
|
+
this.finalizationState.complete();
|
|
232
|
+
}
|
|
233
|
+
if (!(query instanceof V1_Lambda)) {
|
|
234
|
+
this.view.application.alertError(new Error(), {
|
|
235
|
+
message: `Expression Validation Failure: Expression must be a lambda.`,
|
|
236
|
+
});
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
if (!returnType) {
|
|
240
|
+
this.view.application.alertError(new Error(), {
|
|
241
|
+
message: `Expression Validation Failure: Can't compute expression return type.`,
|
|
242
|
+
});
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
this.manager.addNewColumn({
|
|
246
|
+
_type: DataCubeExtendedColumnType.SIMPLE,
|
|
247
|
+
name: this.name,
|
|
248
|
+
type: returnType,
|
|
249
|
+
lambda: V1_serializeValueSpecification(query, []),
|
|
250
|
+
}, this.isGroupLevel, this.columnKind, this);
|
|
251
|
+
this.close();
|
|
252
|
+
}
|
|
253
|
+
close() {
|
|
254
|
+
// dispose the editor and its model to avoid memory leak
|
|
255
|
+
this.editorModel.dispose();
|
|
256
|
+
this.editor?.dispose();
|
|
257
|
+
this.display.close();
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
//# sourceMappingURL=DataCubeColumnEditorState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeColumnEditorState.js","sourceRoot":"","sources":["../../../src/stores/extend/DataCubeColumnEditorState.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGpE,OAAO,EAAE,qBAAqB,EAAE,MAA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AAE,CAAC;QACpC,CAAC;QAED,IAAI,CAAC,CAAC,KAAK,YAAY,SAAS,CAAC,EAAE,CAAC;YAClC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,KAAK,EAAE,EAAE;gBAC5C,OAAO,EAAE,6DAA6D;aACvE,CAAC,CAAC;YACH,OAAO;QACT,CAAC;QAED,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,KAAK,EAAE,EAAE;gBAC5C,OAAO,EAAE,sEAAsE;aAChF,CAAC,CAAC;YACH,OAAO;QACT,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,YAAY,CACvB;YACE,KAAK,EAAE,0BAA0B,CAAC,MAAM;YACxC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,8BAA8B,CAAC,KAAK,EAAE,EAAE,CAAC;SAClD,EACD,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,UAAU,EACf,IAAI,CACL,CAAC;QAEF,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED,KAAK;QACH,wDAAwD;QACxD,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;QAC3B,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC;QAEvB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
import { type DataCubeQuerySnapshot, type DataCubeQuerySnapshotColumn, type DataCubeQuerySnapshotExtendedColumn } from '../core/DataCubeQuerySnapshot.js';
|
|
17
|
+
import type { DataCubeViewState } from '../DataCubeViewState.js';
|
|
18
|
+
import { DataCubeQuerySnapshotController } from '../core/DataCubeQuerySnapshotManager.js';
|
|
19
|
+
import { type DataCubeColumnConfiguration, DataCubeConfiguration } from '../core/DataCubeConfiguration.js';
|
|
20
|
+
import { DataCubeNewColumnState } from './DataCubeColumnEditorState.js';
|
|
21
|
+
import { DataCubeColumnKind } from '../core/DataCubeQueryEngine.js';
|
|
22
|
+
export declare class DataCubeQueryExtendedColumnState {
|
|
23
|
+
name: string;
|
|
24
|
+
type: string;
|
|
25
|
+
data: DataCubeQuerySnapshotExtendedColumn;
|
|
26
|
+
constructor(data: DataCubeQuerySnapshotExtendedColumn);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* This query editor state backs the form editor for extend columns, i.e. creating new columns.
|
|
30
|
+
*/
|
|
31
|
+
export declare class DataCubeExtendManagerState extends DataCubeQuerySnapshotController {
|
|
32
|
+
configuration: DataCubeConfiguration;
|
|
33
|
+
columnConfigurations: DataCubeColumnConfiguration[];
|
|
34
|
+
selectedColumns: DataCubeQuerySnapshotColumn[];
|
|
35
|
+
sourceColumns: DataCubeQuerySnapshotColumn[];
|
|
36
|
+
leafExtendedColumns: DataCubeQueryExtendedColumnState[];
|
|
37
|
+
groupExtendedColumns: DataCubeQueryExtendedColumnState[];
|
|
38
|
+
newColumnEditors: DataCubeNewColumnState[];
|
|
39
|
+
constructor(view: DataCubeViewState);
|
|
40
|
+
get allColumnNames(): string[];
|
|
41
|
+
openNewColumnEditor(referenceColumn?: DataCubeColumnConfiguration | undefined): void;
|
|
42
|
+
addNewColumn<T extends DataCubeQuerySnapshotExtendedColumn>(column: T, isGroupLevel: boolean, columnKind: DataCubeColumnKind | undefined, editor: DataCubeNewColumnState): void;
|
|
43
|
+
applySnapshot(snapshot: DataCubeQuerySnapshot, previousSnapshot: DataCubeQuerySnapshot | undefined): Promise<void>;
|
|
44
|
+
applyChanges(): void;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=DataCubeExtendManagerState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeExtendManagerState.d.ts","sourceRoot":"","sources":["../../../src/stores/extend/DataCubeExtendManagerState.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,mCAAmC,EACzC,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EACL,KAAK,2BAA2B,EAChC,qBAAqB,EACtB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,qBAAa,gCAAgC;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,mCAAmC,CAAC;gBAE9B,IAAI,EAAE,mCAAmC;CAUtD;AAED;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,+BAA+B;IAC7E,aAAa,wBAA+B;IAE5C,oBAAoB,EAAE,2BAA2B,EAAE,CAAM;IACzD,eAAe,EAAE,2BAA2B,EAAE,CAAM;IACpD,aAAa,EAAE,2BAA2B,EAAE,CAAM;IAElD,mBAAmB,EAAE,gCAAgC,EAAE,CAAM;IAC7D,oBAAoB,EAAE,gCAAgC,EAAE,CAAM;IAE9D,gBAAgB,EAAE,sBAAsB,EAAE,CAAM;gBAGpC,IAAI,EAAE,iBAAiB;IAmBnC,IAAI,cAAc,IAAI,MAAM,EAAE,CAM7B;IAED,mBAAmB,CACjB,eAAe,CAAC,EAAE,2BAA2B,GAAG,SAAS;IAO3D,YAAY,CAAC,CAAC,SAAS,mCAAmC,EACxD,MAAM,EAAE,CAAC,EACT,YAAY,EAAE,OAAO,EACrB,UAAU,EAAE,kBAAkB,GAAG,SAAS,EAC1C,MAAM,EAAE,sBAAsB;IAmBjB,aAAa,CAC1B,QAAQ,EAAE,qBAAqB,EAC/B,gBAAgB,EAAE,qBAAqB,GAAG,SAAS,GAClD,OAAO,CAAC,IAAI,CAAC;IAqBhB,YAAY;CAyBb"}
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
import { action, computed, makeObservable, observable } from 'mobx';
|
|
17
|
+
import { _toCol, } from '../core/DataCubeQuerySnapshot.js';
|
|
18
|
+
import { deleteEntry, guaranteeNonNullable, noop } from '@finos/legend-shared';
|
|
19
|
+
import { DataCubeQuerySnapshotController } from '../core/DataCubeQuerySnapshotManager.js';
|
|
20
|
+
import { DataCubeConfiguration, } from '../core/DataCubeConfiguration.js';
|
|
21
|
+
import { DataCubeNewColumnState } from './DataCubeColumnEditorState.js';
|
|
22
|
+
import { DataCubeColumnKind } from '../core/DataCubeQueryEngine.js';
|
|
23
|
+
import { buildDefaultColumnConfiguration } from '../core/DataCubeConfigurationBuilder.js';
|
|
24
|
+
export class DataCubeQueryExtendedColumnState {
|
|
25
|
+
name;
|
|
26
|
+
type;
|
|
27
|
+
data;
|
|
28
|
+
constructor(data) {
|
|
29
|
+
makeObservable(this, {
|
|
30
|
+
name: observable,
|
|
31
|
+
type: observable,
|
|
32
|
+
});
|
|
33
|
+
this.name = data.name;
|
|
34
|
+
this.type = data.type;
|
|
35
|
+
this.data = data;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* This query editor state backs the form editor for extend columns, i.e. creating new columns.
|
|
40
|
+
*/
|
|
41
|
+
export class DataCubeExtendManagerState extends DataCubeQuerySnapshotController {
|
|
42
|
+
configuration = new DataCubeConfiguration();
|
|
43
|
+
columnConfigurations = [];
|
|
44
|
+
selectedColumns = [];
|
|
45
|
+
sourceColumns = [];
|
|
46
|
+
leafExtendedColumns = [];
|
|
47
|
+
groupExtendedColumns = [];
|
|
48
|
+
newColumnEditors = [];
|
|
49
|
+
// TODO: existingColumnEditors
|
|
50
|
+
constructor(view) {
|
|
51
|
+
super(view);
|
|
52
|
+
makeObservable(this, {
|
|
53
|
+
columnConfigurations: observable.struct,
|
|
54
|
+
selectedColumns: observable.struct,
|
|
55
|
+
sourceColumns: observable.ref,
|
|
56
|
+
leafExtendedColumns: observable,
|
|
57
|
+
groupExtendedColumns: observable,
|
|
58
|
+
allColumnNames: computed,
|
|
59
|
+
addNewColumn: action,
|
|
60
|
+
applySnapshot: action,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
get allColumnNames() {
|
|
64
|
+
return [
|
|
65
|
+
...this.sourceColumns,
|
|
66
|
+
...this.leafExtendedColumns,
|
|
67
|
+
...this.groupExtendedColumns,
|
|
68
|
+
].map((col) => col.name);
|
|
69
|
+
}
|
|
70
|
+
openNewColumnEditor(referenceColumn) {
|
|
71
|
+
const editor = new DataCubeNewColumnState(this, referenceColumn);
|
|
72
|
+
this.newColumnEditors.push(editor);
|
|
73
|
+
editor.display.open();
|
|
74
|
+
}
|
|
75
|
+
addNewColumn(column, isGroupLevel, columnKind, editor) {
|
|
76
|
+
(isGroupLevel ? this.groupExtendedColumns : this.leafExtendedColumns).push(new DataCubeQueryExtendedColumnState(column));
|
|
77
|
+
const columnConfiguration = buildDefaultColumnConfiguration(column);
|
|
78
|
+
if (columnKind) {
|
|
79
|
+
columnConfiguration.kind = columnKind;
|
|
80
|
+
columnConfiguration.excludedFromHorizontalPivot =
|
|
81
|
+
columnKind === DataCubeColumnKind.DIMENSION;
|
|
82
|
+
}
|
|
83
|
+
this.columnConfigurations.push(columnConfiguration);
|
|
84
|
+
deleteEntry(this.newColumnEditors, editor);
|
|
85
|
+
this.selectedColumns.push(_toCol(column));
|
|
86
|
+
this.applyChanges();
|
|
87
|
+
}
|
|
88
|
+
async applySnapshot(snapshot, previousSnapshot) {
|
|
89
|
+
this.configuration = DataCubeConfiguration.serialization.fromJson(snapshot.data.configuration);
|
|
90
|
+
this.columnConfigurations = this.configuration.columns;
|
|
91
|
+
this.sourceColumns = snapshot.data.sourceColumns;
|
|
92
|
+
this.leafExtendedColumns = snapshot.data.leafExtendedColumns.map((col) => new DataCubeQueryExtendedColumnState(col));
|
|
93
|
+
this.groupExtendedColumns = snapshot.data.groupExtendedColumns.map((col) => new DataCubeQueryExtendedColumnState(col));
|
|
94
|
+
this.selectedColumns = snapshot.data.selectColumns.map(_toCol);
|
|
95
|
+
// trigger re-compile in each existing column editor as the base query has changed
|
|
96
|
+
this.newColumnEditors.forEach((editor) => {
|
|
97
|
+
editor.getReturnType().catch(noop());
|
|
98
|
+
});
|
|
99
|
+
// TODO: existingColumnEditors
|
|
100
|
+
}
|
|
101
|
+
applyChanges() {
|
|
102
|
+
const baseSnapshot = guaranteeNonNullable(this.getLatestSnapshot());
|
|
103
|
+
const newSnapshot = baseSnapshot.clone();
|
|
104
|
+
newSnapshot.data.configuration = {
|
|
105
|
+
...baseSnapshot.data.configuration,
|
|
106
|
+
columns: this.columnConfigurations,
|
|
107
|
+
};
|
|
108
|
+
newSnapshot.data.leafExtendedColumns = this.leafExtendedColumns.map((col) => col.data);
|
|
109
|
+
newSnapshot.data.groupExtendedColumns = this.groupExtendedColumns.map((col) => col.data);
|
|
110
|
+
newSnapshot.data.selectColumns = [...this.selectedColumns];
|
|
111
|
+
// TODO: support edition, so v-pivots/h-pivots or column configuration that
|
|
112
|
+
// depends on columns with name/type changed should be updated
|
|
113
|
+
newSnapshot.finalize();
|
|
114
|
+
if (newSnapshot.hashCode !== baseSnapshot.hashCode) {
|
|
115
|
+
this.publishSnapshot(newSnapshot);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=DataCubeExtendManagerState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeExtendManagerState.js","sourceRoot":"","sources":["../../../src/stores/extend/DataCubeExtendManagerState.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EACL,MAAM,GAIP,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE/E,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAEL,qBAAqB,GACtB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,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AAG,CAAC,IAAI,CAClB,CAAC;QACF,WAAW,CAAC,IAAI,CAAC,aAAa,GAAG,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC;QAE3D,2EAA2E;QAC3E,8DAA8D;QAE9D,WAAW,CAAC,QAAQ,EAAE,CAAC;QACvB,IAAI,WAAW,CAAC,QAAQ,KAAK,YAAY,CAAC,QAAQ,EAAE,CAAC;YACnD,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
import type { DataCubeQuerySnapshot } from '../core/DataCubeQuerySnapshot.js';
|
|
17
|
+
import type { DataCubeViewState } from '../DataCubeViewState.js';
|
|
18
|
+
import { type DataCubeFilterEditorTree, type DataCubeFilterEditorTreeNode, DataCubeFilterEditorConditionGroupTreeNode } from '../core/filter/DataCubeQueryFilterEditorState.js';
|
|
19
|
+
import { DataCubeQuerySnapshotController } from '../core/DataCubeQuerySnapshotManager.js';
|
|
20
|
+
import { type DataCubeColumnConfiguration } from '../core/DataCubeConfiguration.js';
|
|
21
|
+
import type { DisplayState } from '../engine/DataCubeLayoutManagerState.js';
|
|
22
|
+
/**
|
|
23
|
+
* This query editor state backs the form editor for filter. It batches changes made
|
|
24
|
+
* to the filter in the form editor.
|
|
25
|
+
*/
|
|
26
|
+
export declare class DataCubeFilterEditorState extends DataCubeQuerySnapshotController {
|
|
27
|
+
readonly display: DisplayState;
|
|
28
|
+
tree: DataCubeFilterEditorTree;
|
|
29
|
+
selectedNode?: DataCubeFilterEditorTreeNode | undefined;
|
|
30
|
+
columns: DataCubeColumnConfiguration[];
|
|
31
|
+
constructor(view: DataCubeViewState);
|
|
32
|
+
initializeTree(): void;
|
|
33
|
+
refreshTree(): void;
|
|
34
|
+
get selectedGroupNode(): DataCubeFilterEditorConditionGroupTreeNode | undefined;
|
|
35
|
+
setSelectedNode(node: DataCubeFilterEditorTreeNode | undefined): void;
|
|
36
|
+
private generateNewFilterNode;
|
|
37
|
+
/**
|
|
38
|
+
* Add a new filter condition node just after the specified filter node.
|
|
39
|
+
* The added node is a clone of the specified node to make the filter's overall match unaffected,
|
|
40
|
+
* except if the specified node is a group node, then a new (default) condition will be added.
|
|
41
|
+
*/
|
|
42
|
+
addFilterNode(baseNode: DataCubeFilterEditorTreeNode): void;
|
|
43
|
+
/**
|
|
44
|
+
* Remove the specified filter node.
|
|
45
|
+
* If its parent node has just one child, then flatten the parent node if:
|
|
46
|
+
* 1. parent node is not the root node and has exactly one child left
|
|
47
|
+
* 2. OR parent node is the root node and has no child left, in this case,
|
|
48
|
+
* flattening means completely remove the filter tree
|
|
49
|
+
*/
|
|
50
|
+
removeFilterNode(nodeToRemove: DataCubeFilterEditorTreeNode): void;
|
|
51
|
+
/**
|
|
52
|
+
* Replace the specified filter node with a group which contains
|
|
53
|
+
* the specified node and a new condition node.
|
|
54
|
+
* The added node is a clone of the specified node to make the filter's overall match unaffected,
|
|
55
|
+
* except if the specified node is a group node, then a new (default) condition will be added.
|
|
56
|
+
*/
|
|
57
|
+
layerFilterNode(baseNode: DataCubeFilterEditorTreeNode): void;
|
|
58
|
+
applySnapshot(snapshot: DataCubeQuerySnapshot, previousSnapshot: DataCubeQuerySnapshot | undefined): Promise<void>;
|
|
59
|
+
applyChanges(): void;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=DataCubeFilterEditorState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeFilterEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/filter/DataCubeFilterEditorState.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAM9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,0CAA0C,EAI3C,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAG5E;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,+BAA+B;IAC5E,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAE/B,IAAI,EAAE,wBAAwB,CAAC;IAC/B,YAAY,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACxD,OAAO,EAAE,2BAA2B,EAAE,CAAM;gBAEhC,IAAI,EAAE,iBAAiB;IAuCnC,cAAc;IAkBd,WAAW;IAIX,IAAI,iBAAiB,IACjB,0CAA0C,GAC1C,SAAS,CAKZ;IAED,eAAe,CAAC,IAAI,EAAE,4BAA4B,GAAG,SAAS;IAI9D,OAAO,CAAC,qBAAqB;IA+B7B;;;;OAIG;IACH,aAAa,CAAC,QAAQ,EAAE,4BAA4B;IAkBpD;;;;;;OAMG;IACH,gBAAgB,CAAC,YAAY,EAAE,4BAA4B;IA2D3D;;;;;OAKG;IACH,eAAe,CAAC,QAAQ,EAAE,4BA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