@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 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorSortsPanelState.js","sourceRoot":"","sources":["../../../src/stores/editor/DataCubeEditorSortsPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EAA8B,MAAM,kCAAkC,CAAC;AAC9E,OAA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AAM,CAAC,IAAI,CAAC,CACvE,CACF,CAAC;IACJ,CAAC;IAED,YAAY,CACV,QAA+B,EAC/B,aAAoC;QAEpC,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAC9B,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;YACpC,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACjD,OAAO,IAAI,6BAA6B,CACtC,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,IAAI,EACX,GAAG,CAAC,SAAS,CACd,CAAC;QACJ,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;IAED,aAAa,CACX,WAAkC,EAClC,YAAmC;QAEnC,WAAW,CAAC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YACzE,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,SAAS,EAAE,GAAG,CAAC,SAAS;SACzB,CAAC,CAAC,CAAC;IACN,CAAC;CACF"}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { DataCubeViewState } from '../DataCubeViewState.js';
|
|
17
|
+
import { DataCubeEditorSortsPanelState } from './DataCubeEditorSortsPanelState.js';
|
|
18
|
+
import { DataCubeQuerySnapshotController } from '../core/DataCubeQuerySnapshotManager.js';
|
|
19
|
+
import { type DataCubeQuerySnapshot, type DataCubeQuerySnapshotColumn, type DataCubeQuerySnapshotExtendedColumn } from '../core/DataCubeQuerySnapshot.js';
|
|
20
|
+
import { ActionState } from '@finos/legend-shared';
|
|
21
|
+
import { DataCubeEditorGeneralPropertiesPanelState } from './DataCubeEditorGeneralPropertiesPanelState.js';
|
|
22
|
+
import { DataCubeEditorColumnPropertiesPanelState } from './DataCubeEditorColumnPropertiesPanelState.js';
|
|
23
|
+
import { DataCubeEditorColumnsPanelState } from './DataCubeEditorColumnsPanelState.js';
|
|
24
|
+
import { DataCubeEditorVerticalPivotsPanelState } from './DataCubeEditorVerticalPivotsPanelState.js';
|
|
25
|
+
import type { DisplayState } from '../engine/DataCubeLayoutManagerState.js';
|
|
26
|
+
import { DataCubeEditorHorizontalPivotsPanelState } from './DataCubeEditorHorizontalPivotsPanelState.js';
|
|
27
|
+
export declare enum DataCubeEditorTab {
|
|
28
|
+
GENERAL_PROPERTIES = "General Properties",
|
|
29
|
+
COLUMN_PROPERTIES = "Column Properties",
|
|
30
|
+
COLUMNS = "Columns",
|
|
31
|
+
VERTICAL_PIVOTS = "Vertical Pivots",
|
|
32
|
+
HORIZONTAL_PIVOTS = "Horizontal Pivots",
|
|
33
|
+
SORTS = "Sorts"
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* This query editor state backs the main form editor of data cube. It supports
|
|
37
|
+
* batching changes before application, i.e. allowing user to make multiple edits before
|
|
38
|
+
* applying and propgating them.
|
|
39
|
+
*
|
|
40
|
+
* NOTE: It allows almost FULL 1-1 control over the data cube query state.
|
|
41
|
+
* It could also host other form editor states like filter editors, but due to ergonomic
|
|
42
|
+
* reasons, those have been separated out into their own respective query editor states.
|
|
43
|
+
*/
|
|
44
|
+
export declare class DataCubeEditorState extends DataCubeQuerySnapshotController {
|
|
45
|
+
readonly display: DisplayState;
|
|
46
|
+
readonly finalizationState: ActionState;
|
|
47
|
+
readonly generalProperties: DataCubeEditorGeneralPropertiesPanelState;
|
|
48
|
+
readonly columnProperties: DataCubeEditorColumnPropertiesPanelState;
|
|
49
|
+
readonly columns: DataCubeEditorColumnsPanelState;
|
|
50
|
+
readonly horizontalPivots: DataCubeEditorHorizontalPivotsPanelState;
|
|
51
|
+
readonly verticalPivots: DataCubeEditorVerticalPivotsPanelState;
|
|
52
|
+
readonly sorts: DataCubeEditorSortsPanelState;
|
|
53
|
+
currentTab: DataCubeEditorTab;
|
|
54
|
+
sourceColumns: DataCubeQuerySnapshotColumn[];
|
|
55
|
+
leafExtendColumns: DataCubeQuerySnapshotExtendedColumn[];
|
|
56
|
+
groupExtendColumns: DataCubeQuerySnapshotExtendedColumn[];
|
|
57
|
+
constructor(view: DataCubeViewState);
|
|
58
|
+
setCurrentTab(val: DataCubeEditorTab): void;
|
|
59
|
+
applySnapshot(snapshot: DataCubeQuerySnapshot, previousSnapshot: DataCubeQuerySnapshot | undefined): Promise<void>;
|
|
60
|
+
applyChanges(options?: {
|
|
61
|
+
closeAfterApply?: boolean | undefined;
|
|
62
|
+
}): Promise<void>;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=DataCubeEditorState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/editor/DataCubeEditorState.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAEL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,EAAE,iBAAiB;IAIrB,aAAa,CAC1B,QAAQ,EAAE,qBAAqB,EAC/B,gBAAgB,EAAE,qBAAqB,GAAG,SAAS;IAkB/C,YAAY,CAAC,OAAO,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE;CA2EvE"}
|
|
@@ -0,0 +1,155 @@
|
|
|
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, makeObservable, observable } from 'mobx';
|
|
18
|
+
import { DataCubeEditorSortsPanelState } from './DataCubeEditorSortsPanelState.js';
|
|
19
|
+
import { DataCubeQuerySnapshotController } from '../core/DataCubeQuerySnapshotManager.js';
|
|
20
|
+
import { _toCol, } from '../core/DataCubeQuerySnapshot.js';
|
|
21
|
+
import { ActionState, assertErrorThrown, guaranteeNonNullable, } from '@finos/legend-shared';
|
|
22
|
+
import { DataCubeEditorGeneralPropertiesPanelState } from './DataCubeEditorGeneralPropertiesPanelState.js';
|
|
23
|
+
import { DataCubeEditorColumnPropertiesPanelState } from './DataCubeEditorColumnPropertiesPanelState.js';
|
|
24
|
+
import { DataCubeEditorColumnsPanelState } from './DataCubeEditorColumnsPanelState.js';
|
|
25
|
+
import { DataCubeConfiguration } from '../core/DataCubeConfiguration.js';
|
|
26
|
+
import { DataCubeEditorVerticalPivotsPanelState } from './DataCubeEditorVerticalPivotsPanelState.js';
|
|
27
|
+
import { DataCubeEditor } from '../../components/editor/DataCubeEditor.js';
|
|
28
|
+
import { buildExecutableQuery } from '../core/DataCubeQueryBuilder.js';
|
|
29
|
+
import { _lambda } from '../core/DataCubeQueryBuilderUtils.js';
|
|
30
|
+
import { DataCubeEditorHorizontalPivotsPanelState } from './DataCubeEditorHorizontalPivotsPanelState.js';
|
|
31
|
+
export var DataCubeEditorTab;
|
|
32
|
+
(function (DataCubeEditorTab) {
|
|
33
|
+
DataCubeEditorTab["GENERAL_PROPERTIES"] = "General Properties";
|
|
34
|
+
DataCubeEditorTab["COLUMN_PROPERTIES"] = "Column Properties";
|
|
35
|
+
DataCubeEditorTab["COLUMNS"] = "Columns";
|
|
36
|
+
DataCubeEditorTab["VERTICAL_PIVOTS"] = "Vertical Pivots";
|
|
37
|
+
DataCubeEditorTab["HORIZONTAL_PIVOTS"] = "Horizontal Pivots";
|
|
38
|
+
DataCubeEditorTab["SORTS"] = "Sorts";
|
|
39
|
+
})(DataCubeEditorTab || (DataCubeEditorTab = {}));
|
|
40
|
+
/**
|
|
41
|
+
* This query editor state backs the main form editor of data cube. It supports
|
|
42
|
+
* batching changes before application, i.e. allowing user to make multiple edits before
|
|
43
|
+
* applying and propgating them.
|
|
44
|
+
*
|
|
45
|
+
* NOTE: It allows almost FULL 1-1 control over the data cube query state.
|
|
46
|
+
* It could also host other form editor states like filter editors, but due to ergonomic
|
|
47
|
+
* reasons, those have been separated out into their own respective query editor states.
|
|
48
|
+
*/
|
|
49
|
+
export class DataCubeEditorState extends DataCubeQuerySnapshotController {
|
|
50
|
+
display;
|
|
51
|
+
finalizationState = ActionState.create();
|
|
52
|
+
generalProperties;
|
|
53
|
+
columnProperties;
|
|
54
|
+
columns;
|
|
55
|
+
horizontalPivots;
|
|
56
|
+
verticalPivots;
|
|
57
|
+
sorts;
|
|
58
|
+
currentTab = DataCubeEditorTab.GENERAL_PROPERTIES;
|
|
59
|
+
sourceColumns = [];
|
|
60
|
+
leafExtendColumns = [];
|
|
61
|
+
groupExtendColumns = [];
|
|
62
|
+
constructor(view) {
|
|
63
|
+
super(view);
|
|
64
|
+
makeObservable(this, {
|
|
65
|
+
currentTab: observable,
|
|
66
|
+
setCurrentTab: action,
|
|
67
|
+
sourceColumns: observable.ref,
|
|
68
|
+
leafExtendColumns: observable.ref,
|
|
69
|
+
groupExtendColumns: observable.ref,
|
|
70
|
+
applySnapshot: action,
|
|
71
|
+
applyChanges: action,
|
|
72
|
+
});
|
|
73
|
+
this.display = this.view.application.layout.newDisplay('Properties', () => (_jsx(DataCubeEditor, { view: this.view })));
|
|
74
|
+
this.generalProperties = new DataCubeEditorGeneralPropertiesPanelState(this);
|
|
75
|
+
this.columnProperties = new DataCubeEditorColumnPropertiesPanelState(this);
|
|
76
|
+
this.columns = new DataCubeEditorColumnsPanelState(this);
|
|
77
|
+
this.horizontalPivots = new DataCubeEditorHorizontalPivotsPanelState(this);
|
|
78
|
+
this.verticalPivots = new DataCubeEditorVerticalPivotsPanelState(this);
|
|
79
|
+
this.sorts = new DataCubeEditorSortsPanelState(this);
|
|
80
|
+
}
|
|
81
|
+
setCurrentTab(val) {
|
|
82
|
+
this.currentTab = val;
|
|
83
|
+
}
|
|
84
|
+
async applySnapshot(snapshot, previousSnapshot) {
|
|
85
|
+
this.sourceColumns = snapshot.data.sourceColumns;
|
|
86
|
+
this.leafExtendColumns = snapshot.data.leafExtendedColumns;
|
|
87
|
+
this.groupExtendColumns = snapshot.data.groupExtendedColumns;
|
|
88
|
+
const configuration = DataCubeConfiguration.serialization.fromJson(snapshot.data.configuration);
|
|
89
|
+
this.generalProperties.applySnaphot(snapshot, configuration);
|
|
90
|
+
this.columnProperties.applySnaphot(snapshot, configuration);
|
|
91
|
+
this.columns.applySnaphot(snapshot, configuration);
|
|
92
|
+
this.horizontalPivots.applySnaphot(snapshot, configuration);
|
|
93
|
+
this.verticalPivots.applySnaphot(snapshot, configuration);
|
|
94
|
+
this.sorts.applySnaphot(snapshot, configuration);
|
|
95
|
+
}
|
|
96
|
+
async applyChanges(options) {
|
|
97
|
+
const task = this.view.newTask('Validate query');
|
|
98
|
+
this.finalizationState.inProgress();
|
|
99
|
+
const baseSnapshot = guaranteeNonNullable(this.getLatestSnapshot());
|
|
100
|
+
const newSnapshot = baseSnapshot.clone();
|
|
101
|
+
// grid configuration must be processed before processing columns' configuration
|
|
102
|
+
// to properly generate the container configuration
|
|
103
|
+
this.generalProperties.buildSnapshot(newSnapshot, baseSnapshot);
|
|
104
|
+
this.columnProperties.buildSnapshot(newSnapshot, baseSnapshot);
|
|
105
|
+
// NOTE: column selection must be processed first since the snapshot
|
|
106
|
+
// processing of other parts of the query can be affected by column selection.
|
|
107
|
+
this.columns.buildSnapshot(newSnapshot, baseSnapshot);
|
|
108
|
+
this.horizontalPivots.buildSnapshot(newSnapshot, baseSnapshot);
|
|
109
|
+
this.verticalPivots.buildSnapshot(newSnapshot, baseSnapshot);
|
|
110
|
+
this.sorts.buildSnapshot(newSnapshot, baseSnapshot);
|
|
111
|
+
// finalize
|
|
112
|
+
newSnapshot.finalize();
|
|
113
|
+
if (newSnapshot.hashCode !== baseSnapshot.hashCode) {
|
|
114
|
+
// NOTE: Compile the query to validate. This is a helpful check for a lot of different scenarios
|
|
115
|
+
// where the consistency of the query might be thrown off by changes from various parts that the
|
|
116
|
+
// editor does not have full control over (i.e. extended columns, pivot cast columns, etc.)
|
|
117
|
+
// e.g. when a column that group-level extended columns' expressions depend on has been unselected.
|
|
118
|
+
try {
|
|
119
|
+
const tempSnapshot = newSnapshot.clone();
|
|
120
|
+
// NOTE: in order to obtain the actual pivot result columns information, we need to execute
|
|
121
|
+
// the query which is expensive in certain cases, so here, we just compute the "optimistic" set
|
|
122
|
+
// of pivot result columns for casting to guarantee validation is not thronn off.
|
|
123
|
+
if (tempSnapshot.data.pivot) {
|
|
124
|
+
tempSnapshot.data.pivot.castColumns =
|
|
125
|
+
this.sorts.selector.availableColumns
|
|
126
|
+
.filter((col) => !tempSnapshot.data.groupExtendedColumns.find((column) => column.name === col.name))
|
|
127
|
+
.map(_toCol);
|
|
128
|
+
}
|
|
129
|
+
await this.view.engine.getQueryRelationType(_lambda([], [
|
|
130
|
+
buildExecutableQuery(tempSnapshot, this.view.engine.filterOperations, this.view.engine.aggregateOperations),
|
|
131
|
+
]));
|
|
132
|
+
}
|
|
133
|
+
catch (error) {
|
|
134
|
+
assertErrorThrown(error);
|
|
135
|
+
this.view.application.alertError(error, {
|
|
136
|
+
message: `Query Validation Failure: ${error.message}`,
|
|
137
|
+
});
|
|
138
|
+
this.view.endTask(task);
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
finally {
|
|
142
|
+
this.finalizationState.complete();
|
|
143
|
+
}
|
|
144
|
+
this.publishSnapshot(newSnapshot);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
this.finalizationState.complete();
|
|
148
|
+
}
|
|
149
|
+
if (options?.closeAfterApply) {
|
|
150
|
+
this.display.close();
|
|
151
|
+
}
|
|
152
|
+
this.view.endTask(task);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=DataCubeEditorState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorState.js","sourceRoot":"","sources":["../../../src/stores/editor/DataCubeEditorState.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EACL,MAAM,GAIP,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,GACrB,MA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iBACtD,CAAC,CAAC;gBACH,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBACxB,OAAO;YACT,CAAC;oBAAS,CAAC;gBACT,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,CAAC;YACpC,CAAC;YAED,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;QACpC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,CAAC;QACpC,CAAC;QAED,IAAI,OAAO,EAAE,eAAe,EAAE,CAAC;YAC7B,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACvB,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { DataCubeViewState } from '../DataCubeViewState.js';
|
|
17
|
+
import type { DataCubeConfiguration } from '../core/DataCubeConfiguration.js';
|
|
18
|
+
import { type DataCubeQuerySnapshot } from '../core/DataCubeQuerySnapshot.js';
|
|
19
|
+
import { DataCubeEditorColumnsSelectorColumnState, DataCubeEditorColumnsSelectorState } from './DataCubeEditorColumnsSelectorState.js';
|
|
20
|
+
import type { DataCubeQueryEditorPanelState } from './DataCubeEditorPanelState.js';
|
|
21
|
+
import type { DataCubeEditorState } from './DataCubeEditorState.js';
|
|
22
|
+
export declare class DataCubeEditorVerticalPivotColumnsSelectorState extends DataCubeEditorColumnsSelectorState<DataCubeEditorColumnsSelectorColumnState> {
|
|
23
|
+
cloneColumn(column: DataCubeEditorColumnsSelectorColumnState): DataCubeEditorColumnsSelectorColumnState;
|
|
24
|
+
get availableColumns(): DataCubeEditorColumnsSelectorColumnState[];
|
|
25
|
+
}
|
|
26
|
+
export declare class DataCubeEditorVerticalPivotsPanelState implements DataCubeQueryEditorPanelState {
|
|
27
|
+
readonly view: DataCubeViewState;
|
|
28
|
+
readonly editor: DataCubeEditorState;
|
|
29
|
+
readonly selector: DataCubeEditorVerticalPivotColumnsSelectorState;
|
|
30
|
+
constructor(editor: DataCubeEditorState);
|
|
31
|
+
adaptPropagatedChanges(): void;
|
|
32
|
+
applySnaphot(snapshot: DataCubeQuerySnapshot, configuration: DataCubeConfiguration): void;
|
|
33
|
+
buildSnapshot(newSnapshot: DataCubeQuerySnapshot, baseSnapshot: DataCubeQuerySnapshot): void;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=DataCubeEditorVerticalPivotsPanelState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorVerticalPivotsPanelState.d.ts","sourceRoot":"","sources":["../../../src/stores/editor/DataCubeEditorVerticalPivotsPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAE9E,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,wCAAwC,EACxC,kCAAkC,EACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,qBAAa,+CAAgD,SAAQ,kCAAkC,CAAC,wCAAwC,CAAC;IACtI,WAAW,CAClB,MAAM,EAAE,wCAAwC,GAC/C,wCAAwC;IAO3C,IAAa,gBAAgB,+CAkB5B;CACF;AAED,qBAAa,sCACX,YAAW,6BAA6B;IAExC,QAAQ,CAAC,IAAI,EAAG,iBAAiB,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAG,mBAAmB,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAG,+CAA+C,CAAC;gBAExD,MAAM,EAAE,mBAAmB;IAMvC,sBAAsB,IAAI,IAAI;IAQ9B,YAAY,CACV,QAAQ,EAAE,qBAAqB,EAC/B,aAAa,EAAE,qBAAqB;IAUtC,aAAa,CACX,WAAW,EAAE,qBAAqB,EAClC,YAAY,EAAE,qBAAqB;CAYtC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { uniqBy } from '@finos/legend-shared';
|
|
17
|
+
import { DataCubeColumnKind } from '../core/DataCubeQueryEngine.js';
|
|
18
|
+
import { _toCol, } from '../core/DataCubeQuerySnapshot.js';
|
|
19
|
+
import { DataCubeEditorColumnsSelectorColumnState, DataCubeEditorColumnsSelectorState, } from './DataCubeEditorColumnsSelectorState.js';
|
|
20
|
+
export class DataCubeEditorVerticalPivotColumnsSelectorState extends DataCubeEditorColumnsSelectorState {
|
|
21
|
+
cloneColumn(column) {
|
|
22
|
+
return new DataCubeEditorColumnsSelectorColumnState(column.name, column.type);
|
|
23
|
+
}
|
|
24
|
+
get availableColumns() {
|
|
25
|
+
return this.editor.columnProperties.columns
|
|
26
|
+
.filter((column) => column.kind === DataCubeColumnKind.DIMENSION &&
|
|
27
|
+
// exclude group-level extended columns
|
|
28
|
+
!this.editor.groupExtendColumns.find((col) => col.name === column.name) &&
|
|
29
|
+
// exclude pivot columns
|
|
30
|
+
!this.editor.horizontalPivots.selector.selectedColumns.find((col) => col.name === column.name))
|
|
31
|
+
.map((col) => new DataCubeEditorColumnsSelectorColumnState(col.name, col.type));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export class DataCubeEditorVerticalPivotsPanelState {
|
|
35
|
+
view;
|
|
36
|
+
editor;
|
|
37
|
+
selector;
|
|
38
|
+
constructor(editor) {
|
|
39
|
+
this.editor = editor;
|
|
40
|
+
this.view = editor.view;
|
|
41
|
+
this.selector = new DataCubeEditorVerticalPivotColumnsSelectorState(editor);
|
|
42
|
+
}
|
|
43
|
+
adaptPropagatedChanges() {
|
|
44
|
+
this.selector.setSelectedColumns(this.selector.selectedColumns.filter((column) => this.selector.availableColumns.find((col) => col.name === column.name)));
|
|
45
|
+
}
|
|
46
|
+
applySnaphot(snapshot, configuration) {
|
|
47
|
+
this.selector.setSelectedColumns((snapshot.data.groupBy?.columns ?? []).map((col) => new DataCubeEditorColumnsSelectorColumnState(col.name, col.type)));
|
|
48
|
+
}
|
|
49
|
+
buildSnapshot(newSnapshot, baseSnapshot) {
|
|
50
|
+
newSnapshot.data.groupBy = this.selector.selectedColumns.length
|
|
51
|
+
? {
|
|
52
|
+
columns: this.selector.selectedColumns.map(_toCol),
|
|
53
|
+
}
|
|
54
|
+
: undefined;
|
|
55
|
+
newSnapshot.data.selectColumns = uniqBy([...newSnapshot.data.selectColumns, ...this.selector.selectedColumns], (col) => col.name).map(_toCol);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=DataCubeEditorVerticalPivotsPanelState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorVerticalPivotsPanelState.js","sourceRoot":"","sources":["../../../src/stores/editor/DataCubeEditorVerticalPivotsPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACL,MAAM,GAEP,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,wCAAwC,EACxC,kCAAkC,GACnC,MAAM,yCAAyC,CAAC;AAIjD,MAAM,OAAO,+CAAgD,SAAQ,kCAA4E;IACtI,WAAW,CAClB,MAAgD;QAEhD,OAAO,IAAI,wCAAwC,CACjD,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,IAAI,CACZ,CAAC;IACJ,CAAC;IAED,IAAa,gBAAgB;QAC3B,OAAO,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO;aACxC,MAAM,CACL,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,IAAI,KAAK,kBAAkB,CAAC,SAAS;YAC5C,uCAAuC;YACvC,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAClC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,CAClC;YACD,wBAAwB;YACxB,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CACzD,CAAC,GAAG,EAAE,EAAE,CAAC,GA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AE,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC;aACnD;YACH,CAAC,CAAC,SAAS,CAAC;QACd,WAAW,CAAC,IAAI,CAAC,aAAa,GAAG,MAAM,CACrC,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,EACrE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAClB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { LogEvent, DocumentationEntry } from '@finos/legend-shared';
|
|
17
|
+
import { AlertType, type ActionAlert, type ActionAlertAction } from '../../components/application/DataCubeAlert.js';
|
|
18
|
+
import { LayoutManagerState, type WindowConfiguration } from './DataCubeLayoutManagerState.js';
|
|
19
|
+
export declare abstract class DataCubeApplicationEngine {
|
|
20
|
+
readonly layout: LayoutManagerState;
|
|
21
|
+
currentDocumentationEntry: DocumentationEntry | undefined;
|
|
22
|
+
currentActionAlert: ActionAlert | undefined;
|
|
23
|
+
constructor();
|
|
24
|
+
abstract get documentationUrl(): string | undefined;
|
|
25
|
+
abstract getDocumentationEntry(key: string): DocumentationEntry | undefined;
|
|
26
|
+
abstract openDocumentationEntry(entry: DocumentationEntry): void;
|
|
27
|
+
abstract shouldDisplayDocumentationEntry(entry: DocumentationEntry): boolean;
|
|
28
|
+
abstract openLink(url: string): void;
|
|
29
|
+
abstract setWindowTitle(title: string): void;
|
|
30
|
+
abstract logDebug(message: string, ...data: unknown[]): void;
|
|
31
|
+
abstract debugProcess(processName: string, ...data: unknown[]): void;
|
|
32
|
+
abstract logInfo(event: LogEvent, ...data: unknown[]): void;
|
|
33
|
+
abstract logWarning(event: LogEvent, ...data: unknown[]): void;
|
|
34
|
+
abstract logError(event: LogEvent, ...data: unknown[]): void;
|
|
35
|
+
abstract logUnhandledError(error: Error): void;
|
|
36
|
+
abstract logIllegalStateError(message: string, error?: Error): void;
|
|
37
|
+
abstract alertAction(alertInfo: ActionAlert | undefined): void;
|
|
38
|
+
abstract alertUnhandledError(error: Error): void;
|
|
39
|
+
alertError(error: Error, options: {
|
|
40
|
+
message: string;
|
|
41
|
+
text?: string | undefined;
|
|
42
|
+
actions?: ActionAlertAction[] | undefined;
|
|
43
|
+
windowTitle?: string | undefined;
|
|
44
|
+
windowConfig?: WindowConfiguration | undefined;
|
|
45
|
+
}): void;
|
|
46
|
+
alert(options: {
|
|
47
|
+
message: string;
|
|
48
|
+
type: AlertType;
|
|
49
|
+
text?: string | undefined;
|
|
50
|
+
actions?: ActionAlertAction[] | undefined;
|
|
51
|
+
windowTitle?: string | undefined;
|
|
52
|
+
windowConfig?: WindowConfiguration | undefined;
|
|
53
|
+
}): void;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=DataCubeApplicationEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeApplicationEngine.d.ts","sourceRoot":"","sources":["../../../src/stores/engine/DataCubeApplicationEngine.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAA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AE,OAAO,EAAE,GAAG,IAAI;IAC5D,QAAQ,CAAC,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAC9C,QAAQ,CAAC,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI;IAEnE,QAAQ,CAAC,WAAW,CAAC,SAAS,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI;IAC9D,QAAQ,CAAC,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAEhD,UAAU,CACR,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC1B,OAAO,CAAC,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAC;QAC1C,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACjC,YAAY,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;KAChD;IAkBH,KAAK,CAAC,OAAO,EAAE;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC1B,OAAO,CAAC,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAC;QAC1C,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACjC,YAAY,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;KAChD;CAiBF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { action, makeObservable, observable } from 'mobx';
|
|
3
|
+
import { Alert, AlertType, } from '../../components/application/DataCubeAlert.js';
|
|
4
|
+
import { DEFAULT_SMALL_ALERT_WINDOW_CONFIG, LayoutConfiguration, LayoutManagerState, WindowState, } from './DataCubeLayoutManagerState.js';
|
|
5
|
+
export class DataCubeApplicationEngine {
|
|
6
|
+
layout;
|
|
7
|
+
currentDocumentationEntry;
|
|
8
|
+
currentActionAlert;
|
|
9
|
+
constructor() {
|
|
10
|
+
makeObservable(this, {
|
|
11
|
+
currentDocumentationEntry: observable,
|
|
12
|
+
openDocumentationEntry: action,
|
|
13
|
+
currentActionAlert: observable,
|
|
14
|
+
alertAction: action,
|
|
15
|
+
});
|
|
16
|
+
this.layout = new LayoutManagerState();
|
|
17
|
+
}
|
|
18
|
+
alertError(error, options) {
|
|
19
|
+
const { message, text, actions, windowTitle, windowConfig } = options;
|
|
20
|
+
const window = new WindowState(new LayoutConfiguration(windowTitle ?? 'Error', () => (_jsx(Alert, { type: AlertType.ERROR, message: message, text: text, actions: actions }))));
|
|
21
|
+
window.configuration.window =
|
|
22
|
+
windowConfig ?? DEFAULT_SMALL_ALERT_WINDOW_CONFIG;
|
|
23
|
+
this.layout.newWindow(window);
|
|
24
|
+
}
|
|
25
|
+
alert(options) {
|
|
26
|
+
const { message, type, text, actions, windowTitle, windowConfig } = options;
|
|
27
|
+
const window = new WindowState(new LayoutConfiguration(windowTitle ?? '', () => (_jsx(Alert, { type: type, message: message, text: text, actions: actions, onClose: () => this.layout.closeWindow(window) }))));
|
|
28
|
+
window.configuration.window =
|
|
29
|
+
windowConfig ?? DEFAULT_SMALL_ALERT_WINDOW_CONFIG;
|
|
30
|
+
this.layout.newWindow(window);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=DataCubeApplicationEngine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeApplicationEngine.js","sourceRoot":"","sources":["../../../src/stores/engine/DataCubeApplicationEngine.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EACL,KAAK,EACL,SAAS,GAGV,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACL,iCAAiC,EACjC,mBAAmB,EACnB,kBA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O,EAAE,OAAO,EAChB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,GAC9C,CACH,CAAC,CACH,CAAC;QACF,MAAM,CAAC,aAAa,CAAC,MAAM;YACzB,YAAY,IAAI,iCAAiC,CAAC;QACpD,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;CACF"}
|
|
@@ -0,0 +1,124 @@
|
|
|
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 V1_ValueSpecification, type V1_Lambda, type TDSExecutionResult } from '@finos/legend-graph';
|
|
17
|
+
import { DataCubeQueryAggregateOperation__Sum } from '../core/aggregation/DataCubeQueryAggregateOperation__Sum.js';
|
|
18
|
+
import { DataCubeQueryAggregateOperation__Average } from '../core/aggregation/DataCubeQueryAggregateOperation__Average.js';
|
|
19
|
+
import { DataCubeQueryAggregateOperation__Count } from '../core/aggregation/DataCubeQueryAggregateOperation__Count.js';
|
|
20
|
+
import { DataCubeQueryAggregateOperation__Min } from '../core/aggregation/DataCubeQueryAggregateOperation__Min.js';
|
|
21
|
+
import { DataCubeQueryAggregateOperation__Max } from '../core/aggregation/DataCubeQueryAggregateOperation__Max.js';
|
|
22
|
+
import { DataCubeQueryAggregateOperation__UniqueValue } from '../core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.js';
|
|
23
|
+
import { DataCubeQueryAggregateOperation__First } from '../core/aggregation/DataCubeQueryAggregateOperation__First.js';
|
|
24
|
+
import { DataCubeQueryAggregateOperation__Last } from '../core/aggregation/DataCubeQueryAggregateOperation__Last.js';
|
|
25
|
+
import { DataCubeQueryAggregateOperation__VariancePopulation } from '../core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.js';
|
|
26
|
+
import { DataCubeQueryAggregateOperation__VarianceSample } from '../core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.js';
|
|
27
|
+
import { DataCubeQueryAggregateOperation__StdDevPopulation } from '../core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.js';
|
|
28
|
+
import { DataCubeQueryAggregateOperation__StdDevSample } from '../core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.js';
|
|
29
|
+
import { DataCubeQueryAggregateOperation__JoinStrings } from '../core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.js';
|
|
30
|
+
import { DataCubeQueryFilterOperation__Equal } from '../core/filter/DataCubeQueryFilterOperation__Equal.js';
|
|
31
|
+
import { DataCubeQueryFilterOperation__LessThanOrEqual } from '../core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.js';
|
|
32
|
+
import { DataCubeQueryFilterOperation__LessThan } from '../core/filter/DataCubeQueryFilterOperation__LessThan.js';
|
|
33
|
+
import { DataCubeQueryFilterOperation__GreaterThanOrEqual } from '../core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.js';
|
|
34
|
+
import { DataCubeQueryFilterOperation__GreaterThan } from '../core/filter/DataCubeQueryFilterOperation__GreaterThan.js';
|
|
35
|
+
import { DataCubeQueryFilterOperation__NotEqual } from '../core/filter/DataCubeQueryFilterOperation__NotEqual.js';
|
|
36
|
+
import { DataCubeQueryFilterOperation__EqualColumn } from '../core/filter/DataCubeQueryFilterOperation__EqualColumn.js';
|
|
37
|
+
import { DataCubeQueryFilterOperation__EqualCaseInsensitive } from '../core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.js';
|
|
38
|
+
import { DataCubeQueryFilterOperation__NotEqualCaseInsensitive } from '../core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.js';
|
|
39
|
+
import { DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn } from '../core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.js';
|
|
40
|
+
import { DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn } from '../core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.js';
|
|
41
|
+
import { DataCubeQueryFilterOperation__NotEqualColumn } from '../core/filter/DataCubeQueryFilterOperation__NotEqualColumn.js';
|
|
42
|
+
import { DataCubeQueryFilterOperation__LessThanColumn } from '../core/filter/DataCubeQueryFilterOperation__LessThanColumn.js';
|
|
43
|
+
import { DataCubeQueryFilterOperation__LessThanOrEqualColumn } from '../core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.js';
|
|
44
|
+
import { DataCubeQueryFilterOperation__GreaterThanColumn } from '../core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.js';
|
|
45
|
+
import { DataCubeQueryFilterOperation__GreaterThanOrEqualColumn } from '../core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.js';
|
|
46
|
+
import { DataCubeQueryFilterOperation__Contain } from '../core/filter/DataCubeQueryFilterOperation__Contain.js';
|
|
47
|
+
import { DataCubeQueryFilterOperation__ContainCaseInsensitive } from '../core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.js';
|
|
48
|
+
import { DataCubeQueryFilterOperation__NotContain } from '../core/filter/DataCubeQueryFilterOperation__NotContain.js';
|
|
49
|
+
import { DataCubeQueryFilterOperation__StartWith } from '../core/filter/DataCubeQueryFilterOperation__StartWith.js';
|
|
50
|
+
import { DataCubeQueryFilterOperation__StartWithCaseInsensitive } from '../core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.js';
|
|
51
|
+
import { DataCubeQueryFilterOperation__NotStartWith } from '../core/filter/DataCubeQueryFilterOperation__NotStartWith.js';
|
|
52
|
+
import { DataCubeQueryFilterOperation__EndWith } from '../core/filter/DataCubeQueryFilterOperation__EndWith.js';
|
|
53
|
+
import { DataCubeQueryFilterOperation__EndWithCaseInsensitive } from '../core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.js';
|
|
54
|
+
import { DataCubeQueryFilterOperation__NotEndWith } from '../core/filter/DataCubeQueryFilterOperation__NotEndWith.js';
|
|
55
|
+
import { DataCubeQueryFilterOperation__IsNull } from '../core/filter/DataCubeQueryFilterOperation__IsNull.js';
|
|
56
|
+
import { DataCubeQueryFilterOperation__IsNotNull } from '../core/filter/DataCubeQueryFilterOperation__IsNotNull.js';
|
|
57
|
+
import type { DataCubeViewState } from '../DataCubeViewState.js';
|
|
58
|
+
import { SerializationFactory } from '@finos/legend-shared';
|
|
59
|
+
import { type DataCubeQueryColumn, DataCubeQuery } from './DataCubeQuery.js';
|
|
60
|
+
export type CompletionItem = {
|
|
61
|
+
completion: string;
|
|
62
|
+
display: string;
|
|
63
|
+
};
|
|
64
|
+
export type DataCubeQueryBuilderError = {
|
|
65
|
+
type: string;
|
|
66
|
+
message: string;
|
|
67
|
+
sourceInformation?: {
|
|
68
|
+
startLine: number;
|
|
69
|
+
startColumn: number;
|
|
70
|
+
endLine: number;
|
|
71
|
+
endColumn: number;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export type DataCubeInfrastructureInfo = {
|
|
75
|
+
gridClientLicense?: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
export type RelationType = {
|
|
78
|
+
columns: DataCubeQueryColumn[];
|
|
79
|
+
};
|
|
80
|
+
export declare class DataCubeGetBaseQueryResult {
|
|
81
|
+
query: DataCubeQuery;
|
|
82
|
+
timestamp: number;
|
|
83
|
+
partialQuery: V1_ValueSpecification;
|
|
84
|
+
sourceQuery: V1_ValueSpecification;
|
|
85
|
+
static readonly serialization: SerializationFactory<DataCubeGetBaseQueryResult>;
|
|
86
|
+
}
|
|
87
|
+
export declare const DEFAULT_ENABLE_DEBUG_MODE = false;
|
|
88
|
+
export declare const DEFAULT_ENABLE_ENGINE_DEBUG_MODE = false;
|
|
89
|
+
export declare const DEFAULT_GRID_CLIENT_ROW_BUFFER = 50;
|
|
90
|
+
export declare const DEFAULT_GRID_CLIENT_PURGE_CLOSED_ROW_NODES = false;
|
|
91
|
+
export declare const DEFAULT_GRID_CLIENT_SUPPRESS_LARGE_DATASET_WARNING = false;
|
|
92
|
+
export declare abstract class DataCubeEngine {
|
|
93
|
+
gridClientLicense?: string | undefined;
|
|
94
|
+
viewTaskRunner?: ((task: (view: DataCubeViewState) => void) => void) | undefined;
|
|
95
|
+
readonly filterOperations: (DataCubeQueryFilterOperation__Equal | DataCubeQueryFilterOperation__LessThanOrEqual | DataCubeQueryFilterOperation__LessThan | DataCubeQueryFilterOperation__GreaterThanOrEqual | DataCubeQueryFilterOperation__GreaterThan | DataCubeQueryFilterOperation__NotEqual | DataCubeQueryFilterOperation__EqualColumn | DataCubeQueryFilterOperation__EqualCaseInsensitive | DataCubeQueryFilterOperation__NotEqualCaseInsensitive | DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn | DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn | DataCubeQueryFilterOperation__NotEqualColumn | DataCubeQueryFilterOperation__LessThanColumn | DataCubeQueryFilterOperation__LessThanOrEqualColumn | DataCubeQueryFilterOperation__GreaterThanColumn | DataCubeQueryFilterOperation__GreaterThanOrEqualColumn | DataCubeQueryFilterOperation__Contain | DataCubeQueryFilterOperation__ContainCaseInsensitive | DataCubeQueryFilterOperation__NotContain | DataCubeQueryFilterOperation__StartWith | DataCubeQueryFilterOperation__StartWithCaseInsensitive | DataCubeQueryFilterOperation__NotStartWith | DataCubeQueryFilterOperation__EndWith | DataCubeQueryFilterOperation__EndWithCaseInsensitive | DataCubeQueryFilterOperation__NotEndWith | DataCubeQueryFilterOperation__IsNull | DataCubeQueryFilterOperation__IsNotNull)[];
|
|
96
|
+
readonly aggregateOperations: (DataCubeQueryAggregateOperation__Sum | DataCubeQueryAggregateOperation__Average | DataCubeQueryAggregateOperation__Count | DataCubeQueryAggregateOperation__Min | DataCubeQueryAggregateOperation__Max | DataCubeQueryAggregateOperation__UniqueValue | DataCubeQueryAggregateOperation__First | DataCubeQueryAggregateOperation__Last | DataCubeQueryAggregateOperation__VariancePopulation | DataCubeQueryAggregateOperation__VarianceSample | DataCubeQueryAggregateOperation__StdDevPopulation | DataCubeQueryAggregateOperation__StdDevSample | DataCubeQueryAggregateOperation__JoinStrings)[];
|
|
97
|
+
enableDebugMode: boolean;
|
|
98
|
+
enableEngineDebugMode: boolean;
|
|
99
|
+
gridClientRowBuffer: number;
|
|
100
|
+
gridClientPurgeClosedRowNodes: boolean;
|
|
101
|
+
gridClientSuppressLargeDatasetWarning: boolean;
|
|
102
|
+
getFilterOperation(value: string): import("../core/filter/DataCubeQueryFilterOperation.js").DataCubeQueryFilterOperation;
|
|
103
|
+
getAggregateOperation(value: string): import("../core/aggregation/DataCubeQueryAggregateOperation.js").DataCubeQueryAggregateOperation;
|
|
104
|
+
setEnableDebugMode(value: boolean): void;
|
|
105
|
+
setEnableEngineDebugMode(value: boolean): void;
|
|
106
|
+
setGridClientRowBuffer(value: number): void;
|
|
107
|
+
setGridClientPurgeClosedRowNodes(value: boolean): void;
|
|
108
|
+
setGridClientSuppressLargeDatasetWarning(value: boolean): void;
|
|
109
|
+
initialize(): Promise<void>;
|
|
110
|
+
private propagateGridOptionUpdates;
|
|
111
|
+
refreshFailedDataFetches(): void;
|
|
112
|
+
abstract getInfrastructureInfo(): Promise<DataCubeInfrastructureInfo>;
|
|
113
|
+
abstract getQueryTypeahead(code: string, query: V1_ValueSpecification): Promise<CompletionItem[]>;
|
|
114
|
+
abstract parseQuery(code: string, returnSourceInformation?: boolean): Promise<V1_ValueSpecification>;
|
|
115
|
+
abstract getBaseQuery(): Promise<DataCubeGetBaseQueryResult>;
|
|
116
|
+
abstract getQueryRelationType(query: V1_ValueSpecification): Promise<RelationType>;
|
|
117
|
+
abstract getQueryCodeRelationReturnType(code: string, baseQuery: V1_ValueSpecification): Promise<RelationType>;
|
|
118
|
+
abstract executeQuery(query: V1_Lambda): Promise<{
|
|
119
|
+
result: TDSExecutionResult;
|
|
120
|
+
executedQuery: string;
|
|
121
|
+
executedSQL: string;
|
|
122
|
+
}>;
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=DataCubeEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEngine.d.ts","sourceRoot":"","sources":["../../../src/stores/engine/DataCubeEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACd,KAAK,kBAAkB,EAGxB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,oCAAoC,EAAE,MAAM,6DAA6D,CAAC;AACnH,OAAO,EAAE,wCAAwC,EAAE,MAAM,iEAAiE,CAAC;AAC3H,OAAO,EAAE,sCAAsC,EAAE,MAAM,+DAA+D,CAAC;AACvH,OAAO,EAAE,oCAAoC,EAAE,MAAM,6DAA6D,CAAC;AACnH,OAAO,EAAE,oCAAoC,EAAE,MAAM,6DAA6D,CAAC;AACnH,OAAO,EAAE,4CAA4C,EAAE,MAAM,qEAAqE,CAAC;AACnI,OAAO,EAAE,sCAAsC,EAAE,MAAM,+DAA+D,CAAC;AACvH,OAAO,EAAE,qCAAqC,EAAE,MAAM,8DAA8D,CAAC;AACrH,OAAO,EAAE,mDAAmD,EAAE,MAAM,4EAA4E,CAAC;AACjJ,OAAO,EAAE,+CAA+C,EAAE,MAAM,wEAAwE,CAAC;AACzI,OAAO,EAAE,iDAAiD,EAAE,MAAM,0EAA0E,CAAC;AAC7I,OAAO,EAAE,6CAA6C,EAAE,MAAM,sEA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