@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,364 @@
|
|
|
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 { IllegalStateError, assertErrorThrown, guaranteeNonNullable, hashObject, isBoolean, isNonNullable, pruneObject, } from '@finos/legend-shared';
|
|
17
|
+
import { buildExecutableQuery } from '../core/DataCubeQueryBuilder.js';
|
|
18
|
+
import { V1_Lambda, } from '@finos/legend-graph';
|
|
19
|
+
import { generateRowGroupingDrilldownExecutableQueryPostProcessor } from './DataCubeGridQueryBuilder.js';
|
|
20
|
+
import { makeObservable, observable, runInAction } from 'mobx';
|
|
21
|
+
import { DEFAULT_LARGE_ALERT_WINDOW_CONFIG } from '../engine/DataCubeLayoutManagerState.js';
|
|
22
|
+
import { _sortByColName, } from '../core/DataCubeQuerySnapshot.js';
|
|
23
|
+
import { generateColumnDefs } from './DataCubeGridConfigurationBuilder.js';
|
|
24
|
+
import {} from '../core/DataCubeQueryEngine.js';
|
|
25
|
+
import { buildQuerySnapshot } from './DataCubeGridQuerySnapshotBuilder.js';
|
|
26
|
+
import { AlertType } from '../../components/application/DataCubeAlert.js';
|
|
27
|
+
export var DataCubeGridClientExportFormat;
|
|
28
|
+
(function (DataCubeGridClientExportFormat) {
|
|
29
|
+
DataCubeGridClientExportFormat["CSV"] = "CSV";
|
|
30
|
+
DataCubeGridClientExportFormat["EXCEL"] = "EXCEL";
|
|
31
|
+
DataCubeGridClientExportFormat["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
32
|
+
DataCubeGridClientExportFormat["HTML"] = "HTML";
|
|
33
|
+
DataCubeGridClientExportFormat["PDF"] = "PDF";
|
|
34
|
+
})(DataCubeGridClientExportFormat || (DataCubeGridClientExportFormat = {}));
|
|
35
|
+
export var INTERNAL__GridClientUtilityCssClassName;
|
|
36
|
+
(function (INTERNAL__GridClientUtilityCssClassName) {
|
|
37
|
+
INTERNAL__GridClientUtilityCssClassName["ROOT"] = "data-cube-grid.ag-theme-quartz";
|
|
38
|
+
INTERNAL__GridClientUtilityCssClassName["HIGHLIGHT_ROW"] = "data-cube-grid__utility--highlight-row";
|
|
39
|
+
INTERNAL__GridClientUtilityCssClassName["SHOW_VERTICAL_GRID_LINES"] = "data-cube-grid__utility--show-vertical-grid-lines";
|
|
40
|
+
INTERNAL__GridClientUtilityCssClassName["SHOW_HORIZONTAL_GRID_LINES"] = "data-cube-grid__utility--show-horizontal-grid-lines";
|
|
41
|
+
INTERNAL__GridClientUtilityCssClassName["BLUR"] = "data-cube-grid__utility--blur";
|
|
42
|
+
INTERNAL__GridClientUtilityCssClassName["FONT_FAMILY_PREFIX"] = "data-cube-grid__utility--font-family-";
|
|
43
|
+
INTERNAL__GridClientUtilityCssClassName["FONT_SIZE_PREFIX"] = "data-cube-grid__utility--font-size-";
|
|
44
|
+
INTERNAL__GridClientUtilityCssClassName["FONT_BOLD"] = "data-cube-grid__utility--font-style-bold";
|
|
45
|
+
INTERNAL__GridClientUtilityCssClassName["FONT_ITALIC"] = "data-cube-grid__utility--font-style-italic";
|
|
46
|
+
INTERNAL__GridClientUtilityCssClassName["FONT_UNDERLINE_PREFIX"] = "data-cube-grid__utility--font-style-underline-";
|
|
47
|
+
INTERNAL__GridClientUtilityCssClassName["FONT_STRIKETHROUGH"] = "data-cube-grid__utility--font-style-strikethrough";
|
|
48
|
+
INTERNAL__GridClientUtilityCssClassName["FONT_CASE_PREFIX"] = "data-cube-grid__utility--font-style-case-";
|
|
49
|
+
INTERNAL__GridClientUtilityCssClassName["TEXT_ALIGN_PREFIX"] = "data-cube-grid__utility--text-align-";
|
|
50
|
+
INTERNAL__GridClientUtilityCssClassName["TEXT_COLOR_PREFIX"] = "data-cube-grid__utility--text-color-";
|
|
51
|
+
INTERNAL__GridClientUtilityCssClassName["BACKGROUND_COLOR_PREFIX"] = "data-cube-grid__utility--background-color-";
|
|
52
|
+
INTERNAL__GridClientUtilityCssClassName["PIVOT_COLUMN_GROUP"] = "data-cube-grid__utility--pivot-column-group";
|
|
53
|
+
INTERNAL__GridClientUtilityCssClassName["PIVOT_COLUMN_GROUP_PREFIX"] = "data-cube-grid__utility--pivot-column-group-";
|
|
54
|
+
})(INTERNAL__GridClientUtilityCssClassName || (INTERNAL__GridClientUtilityCssClassName = {}));
|
|
55
|
+
export const generateFontFamilyUtilityClassName = (fontFamily) => `${INTERNAL__GridClientUtilityCssClassName.FONT_FAMILY_PREFIX}${fontFamily.replaceAll(' ', '-')}`;
|
|
56
|
+
export const generateFontSizeUtilityClassName = (fontSize) => `${INTERNAL__GridClientUtilityCssClassName.FONT_SIZE_PREFIX}${fontSize}`;
|
|
57
|
+
export const generateFontUnderlineUtilityClassName = (variant) => `${INTERNAL__GridClientUtilityCssClassName.FONT_UNDERLINE_PREFIX}${variant ?? 'none'}`;
|
|
58
|
+
export const generateFontCaseUtilityClassName = (fontCase) => `${INTERNAL__GridClientUtilityCssClassName.FONT_CASE_PREFIX}${fontCase ?? 'none'}`;
|
|
59
|
+
export const generateTextAlignUtilityClassName = (alignment) => `${INTERNAL__GridClientUtilityCssClassName.TEXT_ALIGN_PREFIX}${alignment}`;
|
|
60
|
+
export const generateTextColorUtilityClassName = (color, key) => `${INTERNAL__GridClientUtilityCssClassName.TEXT_COLOR_PREFIX}${key}-${color.substring(1)}`;
|
|
61
|
+
export const generateBackgroundColorUtilityClassName = (color, key) => `${INTERNAL__GridClientUtilityCssClassName.BACKGROUND_COLOR_PREFIX}${key}-${color.substring(1)}`;
|
|
62
|
+
// Indicates how many rows for each block in the cache, i.e. how many rows returned from the server at a time.
|
|
63
|
+
// ag-grid will dedicte space in advanced to store these rows. In server-side row model, this is used as the page size.
|
|
64
|
+
// See https://www.ag-grid.com/react-data-grid/server-side-model-configuration/#server-side-cache
|
|
65
|
+
export const INTERNAL__GRID_CLIENT_DEFAULT_CACHE_BLOCK_SIZE = 500;
|
|
66
|
+
export const INTERNAL__GRID_CLIENT_DEFAULT_ENABLE_PAGINATION = true;
|
|
67
|
+
// NOTE: The cache block size is used by ag-grid to pre-allocate memory for the grid
|
|
68
|
+
// so the value set must be reasonable, or else it can crash the application!
|
|
69
|
+
export const INTERNAL__GRID_CLIENT_MAX_CACHE_BLOCK_SIZE = 1e4;
|
|
70
|
+
export const INTERNAL__GRID_CLIENT_PIVOT_COLUMN_GROUP_COLOR_ROTATION_SIZE = 5;
|
|
71
|
+
export const INTERNAL__GRID_CLIENT_SIDE_BAR_WIDTH = 200;
|
|
72
|
+
export const INTERNAL__GRID_CLIENT_COLUMN_MIN_WIDTH = 50;
|
|
73
|
+
export const INTERNAL__GRID_CLIENT_HEADER_HEIGHT = 24;
|
|
74
|
+
export const INTERNAL__GRID_CLIENT_ROW_HEIGHT = 20;
|
|
75
|
+
export const INTERNAL__GRID_CLIENT_TOOLTIP_SHOW_DELAY = 1500;
|
|
76
|
+
export const INTERNAL__GRID_CLIENT_AUTO_RESIZE_PADDING = 10;
|
|
77
|
+
export const INTERNAL__GRID_CLIENT_MISSING_VALUE = '__MISSING';
|
|
78
|
+
export const INTERNAL__GRID_CLIENT_TREE_COLUMN_ID = 'ag-Grid-AutoColumn';
|
|
79
|
+
export const INTERNAL__GRID_CLIENT_DATA_FETCH_MANUAL_TRIGGER_COLUMN_ID = 'INTERNAL__dataFetchManualTrigger';
|
|
80
|
+
export const INTERNAL__GRID_CLIENT_ROW_GROUPING_COUNT_AGG_COLUMN_ID = 'INTERNAL__count';
|
|
81
|
+
export var GridClientPinnedAlignement;
|
|
82
|
+
(function (GridClientPinnedAlignement) {
|
|
83
|
+
GridClientPinnedAlignement["LEFT"] = "left";
|
|
84
|
+
GridClientPinnedAlignement["RIGHT"] = "right";
|
|
85
|
+
})(GridClientPinnedAlignement || (GridClientPinnedAlignement = {}));
|
|
86
|
+
export var GridClientSortDirection;
|
|
87
|
+
(function (GridClientSortDirection) {
|
|
88
|
+
GridClientSortDirection["ASCENDING"] = "asc";
|
|
89
|
+
GridClientSortDirection["DESCENDING"] = "desc";
|
|
90
|
+
})(GridClientSortDirection || (GridClientSortDirection = {}));
|
|
91
|
+
export function getDataForAllNodes(client) {
|
|
92
|
+
const rows = [];
|
|
93
|
+
client.forEachNode((node) => {
|
|
94
|
+
if (node.data) {
|
|
95
|
+
rows.push(node.data);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
return rows;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* NOTE: this method does not work for server-side row model.
|
|
102
|
+
* It only works when client-side filter is being applied
|
|
103
|
+
*/
|
|
104
|
+
export function getDataForAllFilteredNodes(client) {
|
|
105
|
+
const rows = [];
|
|
106
|
+
client.forEachNodeAfterFilter((node) => {
|
|
107
|
+
if (node.data) {
|
|
108
|
+
rows.push(node.data);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
return rows;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* This method computes the hash code for the parts of the snapshot that should trigger data fetching.
|
|
115
|
+
* This is used to manually trigger server-side row model data source getRows() method.
|
|
116
|
+
*/
|
|
117
|
+
export function computeHashCodeForDataFetchManualTrigger(snapshot, configuration) {
|
|
118
|
+
return hashObject(pruneObject({
|
|
119
|
+
...snapshot.data,
|
|
120
|
+
name: '', // name change should not trigger data fetching
|
|
121
|
+
configuration: {
|
|
122
|
+
initialExpandLevel: configuration.initialExpandLevel,
|
|
123
|
+
showRootAggregation: configuration.showRootAggregation,
|
|
124
|
+
pivotTotalColumnPlacement: configuration.pivotTotalColumnPlacement,
|
|
125
|
+
treeGroupSortFunction: configuration.treeGroupSortFunction,
|
|
126
|
+
columns: configuration.columns
|
|
127
|
+
.map((column) => ({
|
|
128
|
+
name: column.name,
|
|
129
|
+
type: column.type,
|
|
130
|
+
kind: column.kind,
|
|
131
|
+
aggregateOperator: column.aggregateOperator,
|
|
132
|
+
aggregationParameters: column.aggregationParameters,
|
|
133
|
+
excludedFromHorizontalPivot: column.excludedFromHorizontalPivot,
|
|
134
|
+
horizontalPivotSortFunction: column.horizontalPivotSortFunction,
|
|
135
|
+
}))
|
|
136
|
+
.sort(_sortByColName), // sort to make sure column reordering does not trigger data fetching
|
|
137
|
+
},
|
|
138
|
+
selectColumns: snapshot.data.selectColumns.slice().sort(_sortByColName), // sort to make sure column reordering does not trigger data fetching
|
|
139
|
+
pivot: undefined,
|
|
140
|
+
groupBy: undefined,
|
|
141
|
+
sortColumns: [],
|
|
142
|
+
}));
|
|
143
|
+
}
|
|
144
|
+
function TDStoRowData(tds) {
|
|
145
|
+
return tds.rows.map((_row, rowIdx) => {
|
|
146
|
+
const row = {};
|
|
147
|
+
const cols = tds.columns;
|
|
148
|
+
_row.values.forEach((value, colIdx) => {
|
|
149
|
+
// `ag-grid` shows `false` value as empty string so we have
|
|
150
|
+
// call `.toString()` to avoid this behavior.
|
|
151
|
+
row[cols[colIdx]] = isBoolean(value)
|
|
152
|
+
? String(value)
|
|
153
|
+
: isNonNullable(value)
|
|
154
|
+
? value
|
|
155
|
+
: INTERNAL__GRID_CLIENT_MISSING_VALUE;
|
|
156
|
+
});
|
|
157
|
+
return row;
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
async function getCastColumns(currentSnapshot, engine) {
|
|
161
|
+
if (!currentSnapshot.data.pivot) {
|
|
162
|
+
throw new IllegalStateError(`Can't build cast columns collector query when no pivot is specified`);
|
|
163
|
+
}
|
|
164
|
+
const snapshot = currentSnapshot.clone();
|
|
165
|
+
guaranteeNonNullable(snapshot.data.pivot).castColumns = [];
|
|
166
|
+
snapshot.data.groupBy = undefined;
|
|
167
|
+
snapshot.data.sortColumns = [];
|
|
168
|
+
snapshot.data.limit = 0;
|
|
169
|
+
const query = buildExecutableQuery(snapshot, engine.filterOperations, engine.aggregateOperations, {
|
|
170
|
+
postProcessor: (_snapshot, sequence, funcMap, configuration, filterOperations, aggregateOperations) => {
|
|
171
|
+
const _unprocess = (funcMapKey) => {
|
|
172
|
+
const func = funcMap[funcMapKey];
|
|
173
|
+
if (func) {
|
|
174
|
+
sequence.splice(sequence.indexOf(func), 1);
|
|
175
|
+
funcMap[funcMapKey] = undefined;
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
if (funcMap.groupExtend) {
|
|
179
|
+
_unprocess('groupExtend');
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
});
|
|
183
|
+
const lambda = new V1_Lambda();
|
|
184
|
+
lambda.body.push(query);
|
|
185
|
+
const result = await engine.executeQuery(lambda);
|
|
186
|
+
return result.result.builder.columns.map((column) => ({
|
|
187
|
+
name: column.name,
|
|
188
|
+
type: column.type,
|
|
189
|
+
}));
|
|
190
|
+
}
|
|
191
|
+
export class DataCubeGridClientServerSideDataSource {
|
|
192
|
+
grid;
|
|
193
|
+
rowCount = undefined;
|
|
194
|
+
constructor(grid) {
|
|
195
|
+
makeObservable(this, {
|
|
196
|
+
rowCount: observable,
|
|
197
|
+
});
|
|
198
|
+
this.grid = grid;
|
|
199
|
+
}
|
|
200
|
+
async fetchRows(params) {
|
|
201
|
+
const task = this.grid.view.newTask('Fetching data');
|
|
202
|
+
// ------------------------------ GRID OPTIONS ------------------------------
|
|
203
|
+
// Here, we make adjustments to the grid display in response to the new
|
|
204
|
+
// request, in case the grid action has not impacted the layout in an
|
|
205
|
+
// adequate way.
|
|
206
|
+
// Toggle the visibility of the tree column based on the presence of row-group columns
|
|
207
|
+
if (params.request.rowGroupCols.length) {
|
|
208
|
+
params.api.setColumnsVisible([INTERNAL__GRID_CLIENT_TREE_COLUMN_ID], true);
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
params.api.setColumnsVisible([INTERNAL__GRID_CLIENT_TREE_COLUMN_ID], false);
|
|
212
|
+
}
|
|
213
|
+
// ------------------------------ SNAPSHOT ------------------------------
|
|
214
|
+
const currentSnapshot = guaranteeNonNullable(this.grid.getLatestSnapshot());
|
|
215
|
+
const newSnapshot = buildQuerySnapshot(params.request, currentSnapshot);
|
|
216
|
+
// NOTE: if h-pivot is enabled
|
|
217
|
+
// if h-pivot is enabled, update the cast columns
|
|
218
|
+
// and panels which might be affected by this (e.g. sorts)
|
|
219
|
+
// TOOD?: this is an expensive operation in certain case, so we might want to
|
|
220
|
+
// optimize when this gets called
|
|
221
|
+
if (newSnapshot.data.pivot) {
|
|
222
|
+
try {
|
|
223
|
+
const castColumns = await getCastColumns(newSnapshot, this.grid.view.engine);
|
|
224
|
+
newSnapshot.data.pivot.castColumns = castColumns;
|
|
225
|
+
newSnapshot.data.sortColumns = newSnapshot.data.sortColumns.filter((column) => [...castColumns, ...newSnapshot.data.groupExtendedColumns].find((col) => column.name === col.name));
|
|
226
|
+
}
|
|
227
|
+
catch (error) {
|
|
228
|
+
assertErrorThrown(error);
|
|
229
|
+
this.grid.view.application.alertError(error, {
|
|
230
|
+
message: `Query Validation Failure: Can't retrieve pivot results column metadata. ${error.message}`,
|
|
231
|
+
});
|
|
232
|
+
// fail early since we can't proceed without the cast columns validated
|
|
233
|
+
params.fail();
|
|
234
|
+
this.grid.view.endTask(task);
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
newSnapshot.finalize();
|
|
239
|
+
if (newSnapshot.hashCode !== currentSnapshot.hashCode) {
|
|
240
|
+
// update grid column definitions since new columns could have been added
|
|
241
|
+
// due to changes in pivot
|
|
242
|
+
this.grid.client.updateGridOptions({
|
|
243
|
+
columnDefs: generateColumnDefs(newSnapshot, this.grid.queryConfiguration, this.grid.view),
|
|
244
|
+
});
|
|
245
|
+
this.grid.publishSnapshot(newSnapshot);
|
|
246
|
+
}
|
|
247
|
+
// ------------------------------ DATA ------------------------------
|
|
248
|
+
try {
|
|
249
|
+
const executableQuery = buildExecutableQuery(newSnapshot, this.grid.view.engine.filterOperations, this.grid.view.engine.aggregateOperations, {
|
|
250
|
+
postProcessor: generateRowGroupingDrilldownExecutableQueryPostProcessor(params.request.groupKeys),
|
|
251
|
+
pagination: this.grid.isPaginationEnabled &&
|
|
252
|
+
params.request.startRow !== undefined &&
|
|
253
|
+
params.request.endRow !== undefined
|
|
254
|
+
? {
|
|
255
|
+
start: params.request.startRow,
|
|
256
|
+
end: params.request.endRow,
|
|
257
|
+
}
|
|
258
|
+
: undefined,
|
|
259
|
+
});
|
|
260
|
+
const lambda = new V1_Lambda();
|
|
261
|
+
lambda.body.push(executableQuery);
|
|
262
|
+
const result = await this.grid.view.engine.executeQuery(lambda);
|
|
263
|
+
const rowData = TDStoRowData(result.result.result);
|
|
264
|
+
if (this.grid.view.engine.enableDebugMode) {
|
|
265
|
+
this.grid.view.application.debugProcess(`Execution`, `\nQuery: ${result.executedQuery}`, `\nConfig: pagination=${this.grid.isPaginationEnabled}`, `\nStats: ${rowData.length} rows, ${result.result.result.columns.length} columns`, `\nSQL: ${result.executedSQL}`);
|
|
266
|
+
}
|
|
267
|
+
if (this.grid.isPaginationEnabled) {
|
|
268
|
+
params.success({ rowData });
|
|
269
|
+
// only update row count when loading the top-level drilldown data
|
|
270
|
+
if (params.request.groupKeys.length === 0) {
|
|
271
|
+
runInAction(() => {
|
|
272
|
+
this.rowCount = (params.request.startRow ?? 0) + rowData.length;
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
// toggle no-rows overlay
|
|
276
|
+
if (params.request.groupKeys.length === 0 &&
|
|
277
|
+
params.request.startRow === 0 &&
|
|
278
|
+
rowData.length === 0) {
|
|
279
|
+
this.grid.client.showNoRowsOverlay();
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
this.grid.client.hideOverlay();
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
// NOTE: When pagination is disabled and the user currently scrolls to somewhere in the grid, as data is fetched
|
|
287
|
+
// and the operation does not force a scroll top (for example, grouping will always force scrolling to the
|
|
288
|
+
// top, while sorting will leave scroll position as is), the grid ends up showing the wrong data because
|
|
289
|
+
// the data being displayed does not take into account the scroll position, but by the start and end row
|
|
290
|
+
// which stay constant as pagination is disabled.
|
|
291
|
+
//
|
|
292
|
+
// In order to handle this, when pagination is disabled, we tune the start and end row by setting the cache block size
|
|
293
|
+
// to a high-enough value (100k-1m). However, ag-grid use cache block size to pre-allocate memory for the rows,
|
|
294
|
+
// which means we must cap/tune this value reasonably to prevent the app from crashing.
|
|
295
|
+
//
|
|
296
|
+
// When there are just too many rows (exceeding the maximum cache block size), we will fallback to a slightly less ideal
|
|
297
|
+
// behavior by forcing a scroll top for every data fetch and also reset the cache block size to the default value to save memory
|
|
298
|
+
if (rowData.length > INTERNAL__GRID_CLIENT_MAX_CACHE_BLOCK_SIZE) {
|
|
299
|
+
if (!this.grid.view.engine.gridClientSuppressLargeDatasetWarning) {
|
|
300
|
+
this.grid.view.application.alert({
|
|
301
|
+
message: `Large dataset (>${INTERNAL__GRID_CLIENT_MAX_CACHE_BLOCK_SIZE} rows) detected!`,
|
|
302
|
+
text: `Overall app performance can be impacted by large dataset due to longer query execution time and increased memory usage. At its limit, the application can crash!\nTo boost performance, consider enabling pagination while working with large dataset.`,
|
|
303
|
+
type: AlertType.WARNING,
|
|
304
|
+
actions: [
|
|
305
|
+
{
|
|
306
|
+
label: 'Enable Pagination',
|
|
307
|
+
handler: () => {
|
|
308
|
+
this.grid.setPaginationEnabled(true);
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
label: 'Dismiss Warning',
|
|
313
|
+
handler: () => {
|
|
314
|
+
// this.grid.setPaginationEnabled(true);
|
|
315
|
+
this.grid.view.engine.setGridClientSuppressLargeDatasetWarning(true);
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
windowConfig: DEFAULT_LARGE_ALERT_WINDOW_CONFIG,
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
// NOTE: when drilldown occurs, we will scroll top until the drilldown row is reached
|
|
323
|
+
params.api.ensureIndexVisible(params.parentNode.rowIndex ?? 0, 'top');
|
|
324
|
+
}
|
|
325
|
+
params.success({
|
|
326
|
+
rowData,
|
|
327
|
+
// Setting row count to disable infinite-scrolling when pagination is disabled
|
|
328
|
+
// See https://www.ag-grid.com/react-data-grid/infinite-scrolling/#setting-last-row-index
|
|
329
|
+
rowCount: rowData.length,
|
|
330
|
+
});
|
|
331
|
+
// only update row count when loading the top-level drilldown data
|
|
332
|
+
if (params.request.groupKeys.length === 0) {
|
|
333
|
+
runInAction(() => {
|
|
334
|
+
this.rowCount = rowData.length;
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
// toggle no-rows overlay
|
|
338
|
+
if (params.request.groupKeys.length === 0 && rowData.length === 0) {
|
|
339
|
+
this.grid.client.showNoRowsOverlay();
|
|
340
|
+
}
|
|
341
|
+
else {
|
|
342
|
+
this.grid.client.hideOverlay();
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
catch (error) {
|
|
347
|
+
assertErrorThrown(error);
|
|
348
|
+
this.grid.view.application.alertError(error, {
|
|
349
|
+
message: `Data Fetch Failure: ${error.message}`,
|
|
350
|
+
});
|
|
351
|
+
params.fail();
|
|
352
|
+
}
|
|
353
|
+
finally {
|
|
354
|
+
this.grid.view.endTask(task);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
getRows(params) {
|
|
358
|
+
this.fetchRows(params).catch((error) => {
|
|
359
|
+
assertErrorThrown(error);
|
|
360
|
+
this.grid.view.application.logIllegalStateError(`Error ocurred while fetching data for grid should have been handled gracefully`, error);
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
//# sourceMappingURL=DataCubeGridClientEngine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeGridClientEngine.js","sourceRoot":"","sources":["../../../src/stores/grid/DataCubeGridClientEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EACL,iBAAiB,EACjB,iBAAiB,E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CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;IAED,OAAO,CAAC,MAAkD;QACxD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;YAC9C,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAC7C,gFAAgF,EAChF,KAAK,CACN,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { DataCubeGridState } from './DataCubeGridState.js';
|
|
18
|
+
import { DataCubeGridClientExportFormat } from './DataCubeGridClientEngine.js';
|
|
19
|
+
/**
|
|
20
|
+
* NOTE: this is a client-side export engine, this will and should eventually be replaced by a
|
|
21
|
+
* server-side export engine which is more standardized and scalable.
|
|
22
|
+
*/
|
|
23
|
+
export declare class DataCubeGridClientExportEngine {
|
|
24
|
+
readonly view: DataCubeViewState;
|
|
25
|
+
readonly grid: DataCubeGridState;
|
|
26
|
+
constructor(grid: DataCubeGridState);
|
|
27
|
+
private generateFileName;
|
|
28
|
+
exportFile(format: DataCubeGridClientExportFormat): void;
|
|
29
|
+
exportEmail(format: DataCubeGridClientExportFormat): Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=DataCubeGridClientExportEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeGridClientExportEngine.d.ts","sourceRoot":"","sources":["../../../src/stores/grid/DataCubeGridClientExportEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAoD/E;;;GAGG;AACH,qBAAa,8BAA8B;IACzC,QAAQ,CAAC,IAAI,EAAG,iBAAiB,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAG,iBAAiB,CAAC;gBAEtB,IAAI,EAAE,iBAAiB;IAKnC,OAAO,CAAC,gBAAgB;IAIxB,UAAU,CAAC,MAAM,EAAE,8BAA8B;IAsB3C,WAAW,CAAC,MAAM,EAAE,8BAA8B;CAuDzD"}
|
|
@@ -0,0 +1,152 @@
|
|
|
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 { ContentType, downloadFileUsingDataURI, formatDate, IllegalStateError, isString, UnsupportedOperationError, } from '@finos/legend-shared';
|
|
17
|
+
import { DataCubeGridClientExportFormat } from './DataCubeGridClientEngine.js';
|
|
18
|
+
function blobToBase64(blob) {
|
|
19
|
+
return new Promise((resolve, reject) => {
|
|
20
|
+
const reader = new FileReader();
|
|
21
|
+
reader.onloadend = () => {
|
|
22
|
+
const result = reader.result;
|
|
23
|
+
if (isString(result)) {
|
|
24
|
+
const base64Data = result.split(',')[1];
|
|
25
|
+
if (base64Data) {
|
|
26
|
+
resolve(base64Data);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
reject(new Error(`Can't base64 encode blob data`));
|
|
31
|
+
};
|
|
32
|
+
reader.onerror = (error) => reject(error);
|
|
33
|
+
reader.readAsDataURL(blob);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
const EMAIL_TEXT_CONTENT = '';
|
|
37
|
+
const EMAIL_HTML_CONTENT = `<html><body><p>${EMAIL_TEXT_CONTENT}</p><body></html>`;
|
|
38
|
+
// See https://stackoverflow.com/questions/3902455/mail-multipart-alternative-vs-multipart-mixed
|
|
39
|
+
const EMAIL_MIXED_BOUNDARY = 'mixed_boundary';
|
|
40
|
+
const EMAIL_ALTERNATIVE_BOUNDARY = 'alternative_boundary';
|
|
41
|
+
const EMAIL_CONTENT = `
|
|
42
|
+
From:
|
|
43
|
+
To:
|
|
44
|
+
Subject:
|
|
45
|
+
X-Unsent: 1
|
|
46
|
+
Content-Type: multipart/mixed; boundary="${EMAIL_MIXED_BOUNDARY}"
|
|
47
|
+
|
|
48
|
+
--${EMAIL_MIXED_BOUNDARY}
|
|
49
|
+
Content-Type: multipart/alternative; boundary="${EMAIL_ALTERNATIVE_BOUNDARY}"
|
|
50
|
+
|
|
51
|
+
--${EMAIL_ALTERNATIVE_BOUNDARY}
|
|
52
|
+
Content-Type: text/plain; charset="UTF-8"
|
|
53
|
+
Content-Transfer-Encoding: 7bit
|
|
54
|
+
|
|
55
|
+
${EMAIL_TEXT_CONTENT}
|
|
56
|
+
|
|
57
|
+
--${EMAIL_ALTERNATIVE_BOUNDARY}
|
|
58
|
+
Content-Type: text/html; charset="UTF-8"
|
|
59
|
+
Content-Transfer-Encoding: 7bit
|
|
60
|
+
|
|
61
|
+
${EMAIL_HTML_CONTENT}
|
|
62
|
+
|
|
63
|
+
--${EMAIL_ALTERNATIVE_BOUNDARY}--
|
|
64
|
+
|
|
65
|
+
`;
|
|
66
|
+
/**
|
|
67
|
+
* NOTE: this is a client-side export engine, this will and should eventually be replaced by a
|
|
68
|
+
* server-side export engine which is more standardized and scalable.
|
|
69
|
+
*/
|
|
70
|
+
export class DataCubeGridClientExportEngine {
|
|
71
|
+
view;
|
|
72
|
+
grid;
|
|
73
|
+
constructor(grid) {
|
|
74
|
+
this.view = grid.view;
|
|
75
|
+
this.grid = grid;
|
|
76
|
+
}
|
|
77
|
+
generateFileName() {
|
|
78
|
+
return `${this.view.info.name} - ${formatDate(new Date(), 'EEE MMM dd yyyy HH_mm_ss')}`;
|
|
79
|
+
}
|
|
80
|
+
exportFile(format) {
|
|
81
|
+
const fileName = this.generateFileName();
|
|
82
|
+
switch (format) {
|
|
83
|
+
case DataCubeGridClientExportFormat.CSV: {
|
|
84
|
+
this.grid.client.exportDataAsCsv({
|
|
85
|
+
fileName: `${fileName}.csv`,
|
|
86
|
+
});
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
case DataCubeGridClientExportFormat.EXCEL: {
|
|
90
|
+
// TODO?: configure settings for Excel export so we can export styling as well
|
|
91
|
+
// See https://www.ag-grid.com/angular-data-grid/excel-export-styles/
|
|
92
|
+
this.grid.client.exportDataAsExcel({
|
|
93
|
+
fileName: `${fileName}.xlsx`,
|
|
94
|
+
});
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
default:
|
|
98
|
+
// do nothing
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
async exportEmail(format) {
|
|
102
|
+
const fileName = this.generateFileName();
|
|
103
|
+
let fileNameWithExtension = fileName;
|
|
104
|
+
let attachment;
|
|
105
|
+
let contentType;
|
|
106
|
+
switch (format) {
|
|
107
|
+
case DataCubeGridClientExportFormat.CSV: {
|
|
108
|
+
fileNameWithExtension = `${fileName}.csv`;
|
|
109
|
+
contentType = ContentType.TEXT_CSV;
|
|
110
|
+
attachment = await blobToBase64(new Blob([this.grid.client.getDataAsCsv() ?? ''], {
|
|
111
|
+
type: ContentType.TEXT_CSV,
|
|
112
|
+
}));
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
case DataCubeGridClientExportFormat.EXCEL: {
|
|
116
|
+
fileNameWithExtension += `${fileName}.xlsx`;
|
|
117
|
+
contentType = ContentType.APPLICATION_XLSX;
|
|
118
|
+
// TODO?: configure settings for Excel export so we can export styling as well
|
|
119
|
+
// See https://www.ag-grid.com/angular-data-grid/excel-export-styles/
|
|
120
|
+
const xlsxContent = this.grid.client.getDataAsExcel();
|
|
121
|
+
let xlsxBlob;
|
|
122
|
+
if (xlsxContent instanceof Blob) {
|
|
123
|
+
xlsxBlob = xlsxContent;
|
|
124
|
+
}
|
|
125
|
+
else if (typeof xlsxContent === 'string') {
|
|
126
|
+
xlsxBlob = new Blob([xlsxContent], {
|
|
127
|
+
type: ContentType.APPLICATION_XLSX,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
throw new IllegalStateError(`Can't export Excel content`);
|
|
132
|
+
}
|
|
133
|
+
attachment = await blobToBase64(xlsxBlob);
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
default:
|
|
137
|
+
throw new UnsupportedOperationError(`Can't export email in format '${format}'`);
|
|
138
|
+
}
|
|
139
|
+
downloadFileUsingDataURI(`${fileName}.eml`,
|
|
140
|
+
// NOTE: empty lines before email content can cause some mail client to not
|
|
141
|
+
// recognize the email content, e.g. Outlook
|
|
142
|
+
`${EMAIL_CONTENT.trimStart()}--${EMAIL_MIXED_BOUNDARY}\n` +
|
|
143
|
+
`Content-Type: ${contentType}; name="${fileNameWithExtension}"\n` +
|
|
144
|
+
`Content-Transfer-Encoding: base64\n` +
|
|
145
|
+
`Content-Disposition: attachment; filename="${fileNameWithExtension}"\n\n` +
|
|
146
|
+
`${attachment}\n\n` +
|
|
147
|
+
`--${EMAIL_MIXED_BOUNDARY}--`,
|
|
148
|
+
// This MIME type here might not matter
|
|
149
|
+
ContentType.MESSAGE_RFC822);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
//# sourceMappingURL=DataCubeGridClientExportEngine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeGridClientExportEngine.js","sourceRoot":"","sources":["../../../src/stores/grid/DataCubeGridClientExportEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,wBAAwB,EACxB,UAAU,EACV,iBAAiB,EACjB,QAAQ,EACR,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAE/E,SAAS,YAAY,CAAC,IAAU;IAC9B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAChC,MAAM,CAAC,SAAS,GAAG,GAAG,EAAE;YACtB,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;YAC7B,IAAI,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gBACrB,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;gBACxC,IAAI,UAAU,EAAE,CAAC;oBACf,OAAO,CAAC,UAAU,CAAC,CAAC;oBACpB,OAAO;gBACT,CAAC;YAC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