@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,34 @@
|
|
|
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_AppliedFunction } from '@finos/legend-graph';
|
|
17
|
+
import { DataCubeQueryFilterOperation } from './DataCubeQueryFilterOperation.js';
|
|
18
|
+
import type { DataCubeQuerySnapshotColumn, DataCubeQuerySnapshotFilterCondition } from '../DataCubeQuerySnapshot.js';
|
|
19
|
+
import { type DataCubeOperationValue } from '../DataCubeQueryEngine.js';
|
|
20
|
+
export declare class DataCubeQueryFilterOperation__StartWithCaseInsensitive extends DataCubeQueryFilterOperation {
|
|
21
|
+
get label(): string;
|
|
22
|
+
get textLabel(): string;
|
|
23
|
+
get description(): string;
|
|
24
|
+
get operator(): string;
|
|
25
|
+
isCompatibleWithColumn(column: DataCubeQuerySnapshotColumn): boolean;
|
|
26
|
+
isCompatibleWithValue(value: DataCubeOperationValue): boolean;
|
|
27
|
+
generateDefaultValue(column: DataCubeQuerySnapshotColumn): {
|
|
28
|
+
type: string;
|
|
29
|
+
value: unknown;
|
|
30
|
+
};
|
|
31
|
+
buildConditionSnapshot(expression: V1_AppliedFunction): undefined;
|
|
32
|
+
buildConditionExpression(condition: DataCubeQuerySnapshotFilterCondition): V1_AppliedFunction;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=DataCubeQueryFilterOperation__StartWithCaseInsensitive.d.ts.map
|
package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeQueryFilterOperation__StartWithCaseInsensitive.d.ts","sourceRoot":"","sources":["../../../../src/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EACL,4BAA4B,EAE7B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EACV,2BAA2B,EAC3B,oCAAoC,EACrC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAKL,KAAK,sBAAsB,EAC5B,MAAM,2BAA2B,CAAC;AAUnC,qBAAa,sDAAuD,SAAQ,4BAA4B;IACtG,IAAa,KAAK,WAEjB;IAED,IAAa,SAAS,WAErB;IAED,IAAa,WAAW,IAAI,MAAM,CAEjC;IAED,IAAa,QAAQ,IAAI,MAAM,CAE9B;IAED,sBAAsB,CAAC,MAAM,EAAE,2BAA2B;IAI1D,qBAAqB,CAAC,KAAK,EAAE,sBAAsB;IAQnD,oBAAoB,CAAC,MAAM,EAAE,2BAA2B;;;;IAOxD,sBAAsB,CAAC,UAAU,EAAE,kBAAkB;IAKrD,wBAAwB,CAAC,SAAS,EAAE,oCAAoC;CAWzE"}
|
|
@@ -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 {} from '@finos/legend-graph';
|
|
17
|
+
import { DataCubeQueryFilterOperation, generateDefaultFilterConditionPrimitiveTypeValue, } from './DataCubeQueryFilterOperation.js';
|
|
18
|
+
import { DataCubeColumnDataType, DataCubeFunction, DataCubeQueryFilterOperator, ofDataType, } from '../DataCubeQueryEngine.js';
|
|
19
|
+
import { _function, _functionName, _property, _value, _var, } from '../DataCubeQueryBuilderUtils.js';
|
|
20
|
+
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
21
|
+
export class DataCubeQueryFilterOperation__StartWithCaseInsensitive extends DataCubeQueryFilterOperation {
|
|
22
|
+
get label() {
|
|
23
|
+
return 'starts with (case-insensitive)';
|
|
24
|
+
}
|
|
25
|
+
get textLabel() {
|
|
26
|
+
return 'startsWith (case-insensitive)';
|
|
27
|
+
}
|
|
28
|
+
get description() {
|
|
29
|
+
return 'starts with (case-insensitive)';
|
|
30
|
+
}
|
|
31
|
+
get operator() {
|
|
32
|
+
return DataCubeQueryFilterOperator.START_WITH_CASE_INSENSITIVE;
|
|
33
|
+
}
|
|
34
|
+
isCompatibleWithColumn(column) {
|
|
35
|
+
return ofDataType(column.type, [DataCubeColumnDataType.TEXT]);
|
|
36
|
+
}
|
|
37
|
+
isCompatibleWithValue(value) {
|
|
38
|
+
return (ofDataType(value.type, [DataCubeColumnDataType.TEXT]) &&
|
|
39
|
+
value.value !== undefined &&
|
|
40
|
+
!Array.isArray(value.value));
|
|
41
|
+
}
|
|
42
|
+
generateDefaultValue(column) {
|
|
43
|
+
return {
|
|
44
|
+
type: column.type,
|
|
45
|
+
value: generateDefaultFilterConditionPrimitiveTypeValue(column.type),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
buildConditionSnapshot(expression) {
|
|
49
|
+
/** TODO: @datacube roundtrip */
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
buildConditionExpression(condition) {
|
|
53
|
+
const variable = _var();
|
|
54
|
+
return _function(_functionName(DataCubeFunction.STARTS_WITH), [
|
|
55
|
+
_function(_functionName(DataCubeFunction.TO_LOWERCASE), [
|
|
56
|
+
_property(condition.name, variable),
|
|
57
|
+
]),
|
|
58
|
+
_function(_functionName(DataCubeFunction.TO_LOWERCASE), [
|
|
59
|
+
_value(guaranteeNonNullable(condition.value), variable),
|
|
60
|
+
]),
|
|
61
|
+
]);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=DataCubeQueryFilterOperation__StartWithCaseInsensitive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeQueryFilterOperation__StartWithCaseInsensitive.js","sourceRoot":"","sources":["../../../../src/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAA2B,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EACL,4BAA4B,EAC5B,gDAAgD,GACjD,MAAM,mCAAmC,CAAC;AAK3C,OAAO,EACL,sBAAsB,EACtB,gBAAgB,EAChB,2BAA2B,EAC3B,UAAU,GAEX,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,SAAS,EACT,aAAa,EACb,SAAS,EACT,MAAM,EACN,IAAI,GACL,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,OAAO,sDAAuD,SAAQ,4BAA4B;IACtG,IAAa,KAAK;QAChB,OAAO,gCAAgC,CAAC;IAC1C,CAAC;IAED,IAAa,SAAS;QACpB,OAAO,+BAA+B,CAAC;IACzC,CAAC;IAED,IAAa,WAAW;QACtB,OAAO,gCAAgC,CAAC;IAC1C,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,2BAA2B,CAAC,2BAA2B,CAAC;IACjE,CAAC;IAED,sBAAsB,CAAC,MAAmC;QACxD,OAAO,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC;IAChE,CAAC;IAED,qBAAqB,CAAC,KAA6B;QACjD,OAAO,CACL,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;YACrD,KAAK,CAAC,KAAK,KAAK,SAAS;YACzB,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAC5B,CAAC;IACJ,CAAC;IAED,oBAAoB,CAAC,MAAmC;QACtD,OAAO;YACL,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,KAAK,EAAE,gDAAgD,CAAC,MAAM,CAAC,IAAI,CAAC;SACrE,CAAC;IACJ,CAAC;IAED,sBAAsB,CAAC,UAA8B;QACnD,gCAAgC;QAChC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,wBAAwB,CAAC,SAA+C;QACtE,MAAM,QAAQ,GAAG,IAAI,EAAE,CAAC;QACxB,OAAO,SAAS,CAAC,aAAa,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE;YAC5D,SAAS,CAAC,aAAa,CAAC,gBAAgB,CAAC,YAAY,CAAC,EAAE;gBACtD,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC;aACpC,CAAC;YACF,SAAS,CAAC,aAAa,CAAC,gBAAgB,CAAC,YAAY,CAAC,EAAE;gBACtD,MAAM,CAAC,oBAAoB,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC;aACxD,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 DataCubeQuerySnapshot } from '../core/DataCubeQuerySnapshot.js';
|
|
18
|
+
import type { DataCubeQueryEditorPanelState } from './DataCubeEditorPanelState.js';
|
|
19
|
+
import type { DataCubeEditorState } from './DataCubeEditorState.js';
|
|
20
|
+
import { DataCubeEditorMutableColumnConfiguration } from './DataCubeEditorMutableConfiguration.js';
|
|
21
|
+
import type { DataCubeConfiguration } from '../core/DataCubeConfiguration.js';
|
|
22
|
+
export declare class DataCubeEditorColumnPropertiesPanelState implements DataCubeQueryEditorPanelState {
|
|
23
|
+
readonly view: DataCubeViewState;
|
|
24
|
+
readonly editor: DataCubeEditorState;
|
|
25
|
+
columns: DataCubeEditorMutableColumnConfiguration[];
|
|
26
|
+
selectedColumnName?: string | undefined;
|
|
27
|
+
showAdvancedSettings: boolean;
|
|
28
|
+
constructor(editor: DataCubeEditorState);
|
|
29
|
+
getColumnConfiguration(colName: string | undefined): DataCubeEditorMutableColumnConfiguration;
|
|
30
|
+
setColumns(val: DataCubeEditorMutableColumnConfiguration[]): void;
|
|
31
|
+
setSelectedColumnName(val: string | undefined): void;
|
|
32
|
+
get selectedColumn(): DataCubeEditorMutableColumnConfiguration | undefined;
|
|
33
|
+
setShowAdvancedSettings(val: boolean): void;
|
|
34
|
+
applySnaphot(snapshot: DataCubeQuerySnapshot, configuration: DataCubeConfiguration): void;
|
|
35
|
+
buildSnapshot(newSnapshot: DataCubeQuerySnapshot, baseSnapshot: DataCubeQuerySnapshot): void;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=DataCubeEditorColumnPropertiesPanelState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorColumnPropertiesPanelState.d.ts","sourceRoot":"","sources":["../../../src/stores/editor/DataCubeEditorColumnPropertiesPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,wCAAwC,EAAE,MAAM,yCAAyC,CAAC;AAMnG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAE9E,qBAAa,wCACX,YAAW,6BAA6B;IAExC,QAAQ,CAAC,IAAI,EAAG,iBAAiB,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAG,mBAAmB,CAAC;IAEtC,OAAO,EAAE,wCAAwC,EAAE,CAAM;IACzD,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,oBAAoB,UAAS;gBAEjB,MAAM,EAAE,mBAAmB;IAmBvC,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS;IAOlD,UAAU,CAAC,GAAG,EAAE,wCAAwC,EAAE;IAI1D,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS;IAI7C,IAAI,cAAc,yDAEjB;IAED,uBAAuB,CAAC,GAAG,EAAE,OAAO;IAIpC,YAAY,CACV,QAAQ,EAAE,qBAAqB,EAC/B,aAAa,EAAE,qBAAqB;IAkBtC,aAAa,CACX,WAAW,EAAE,qBAAqB,EAClC,YAAY,EAAE,qBAAqB;CAOtC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { action, computed, makeObservable, observable } from 'mobx';
|
|
17
|
+
import {} from '../core/DataCubeQuerySnapshot.js';
|
|
18
|
+
import { DataCubeEditorMutableColumnConfiguration } from './DataCubeEditorMutableConfiguration.js';
|
|
19
|
+
import { getNonNullableEntry, guaranteeNonNullable, } from '@finos/legend-shared';
|
|
20
|
+
export class DataCubeEditorColumnPropertiesPanelState {
|
|
21
|
+
view;
|
|
22
|
+
editor;
|
|
23
|
+
columns = [];
|
|
24
|
+
selectedColumnName;
|
|
25
|
+
showAdvancedSettings = false;
|
|
26
|
+
constructor(editor) {
|
|
27
|
+
makeObservable(this, {
|
|
28
|
+
columns: observable,
|
|
29
|
+
setColumns: action,
|
|
30
|
+
selectedColumnName: observable,
|
|
31
|
+
setSelectedColumnName: action,
|
|
32
|
+
selectedColumn: computed,
|
|
33
|
+
showAdvancedSettings: observable,
|
|
34
|
+
setShowAdvancedSettings: action,
|
|
35
|
+
applySnaphot: action,
|
|
36
|
+
});
|
|
37
|
+
this.editor = editor;
|
|
38
|
+
this.view = editor.view;
|
|
39
|
+
}
|
|
40
|
+
getColumnConfiguration(colName) {
|
|
41
|
+
return guaranteeNonNullable(this.columns.find((col) => col.name === colName), `Can't find configuration for column '${colName}'`);
|
|
42
|
+
}
|
|
43
|
+
setColumns(val) {
|
|
44
|
+
this.columns = val;
|
|
45
|
+
}
|
|
46
|
+
setSelectedColumnName(val) {
|
|
47
|
+
this.selectedColumnName = val;
|
|
48
|
+
}
|
|
49
|
+
get selectedColumn() {
|
|
50
|
+
return this.columns.find((col) => col.name === this.selectedColumnName);
|
|
51
|
+
}
|
|
52
|
+
setShowAdvancedSettings(val) {
|
|
53
|
+
this.showAdvancedSettings = val;
|
|
54
|
+
}
|
|
55
|
+
applySnaphot(snapshot, configuration) {
|
|
56
|
+
this.setColumns(snapshot.data.configuration.columns.map((column) => DataCubeEditorMutableColumnConfiguration.create(column, snapshot, this.view.engine.aggregateOperations)));
|
|
57
|
+
if (!this.selectedColumn && this.columns.length) {
|
|
58
|
+
this.setSelectedColumnName(getNonNullableEntry(this.columns, 0).name);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
buildSnapshot(newSnapshot, baseSnapshot) {
|
|
62
|
+
newSnapshot.data.configuration = {
|
|
63
|
+
...newSnapshot.data.configuration,
|
|
64
|
+
columns: this.columns.map((column) => column.serialize()),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=DataCubeEditorColumnPropertiesPanelState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorColumnPropertiesPanelState.js","sourceRoot":"","sources":["../../../src/stores/editor/DataCubeEditorColumnPropertiesPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EAA8B,MAAM,kCAAkC,CAAC;AAG9E,OAAO,EAAE,wCAAwC,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EACL,mBAAmB,EACnB,oBAAoB,GAErB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,OAAO,wCAAwC;IAG1C,IAAI,CAAqB;IACzB,MAAM,CAAuB;IAEtC,OAAO,GAA+C,EAAE,CAAC;IACzD,kBAAkB,CAAsB;IACxC,oBAAoB,GAAG,KAAK,CAAC;IAE7B,Y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CAAC,mBAAmB,CACrC,CACJ,CACF,CAAC;QAEF,IAAI,CAAC,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YAChD,IAAI,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACxE,CAAC;IACH,CAAC;IAED,aAAa,CACX,WAAkC,EAClC,YAAmC;QAEnC,WAAW,CAAC,IAAI,CAAC,aAAa,GAAG;YAC/B,GAAG,WAAW,CAAC,IAAI,CAAC,aAAa;YACjC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;SAC1D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -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 type { DataCubeViewState } from '../DataCubeViewState.js';
|
|
17
|
+
import { type DataCubeQuerySnapshot } from '../core/DataCubeQuerySnapshot.js';
|
|
18
|
+
import type { DataCubeQueryEditorPanelState } from './DataCubeEditorPanelState.js';
|
|
19
|
+
import { DataCubeEditorColumnsSelectorColumnState, DataCubeEditorColumnsSelectorState } from './DataCubeEditorColumnsSelectorState.js';
|
|
20
|
+
import type { DataCubeEditorState } from './DataCubeEditorState.js';
|
|
21
|
+
import { type DataCubeConfiguration } from '../core/DataCubeConfiguration.js';
|
|
22
|
+
export declare class DataCubeEditorBasicColumnsSelectorState extends DataCubeEditorColumnsSelectorState<DataCubeEditorColumnsSelectorColumnState> {
|
|
23
|
+
showHiddenColumns: boolean;
|
|
24
|
+
constructor(editor: DataCubeEditorState, options?: {
|
|
25
|
+
onChange?: ((select: DataCubeEditorColumnsSelectorState<DataCubeEditorColumnsSelectorColumnState>) => void) | undefined;
|
|
26
|
+
});
|
|
27
|
+
cloneColumn(column: DataCubeEditorColumnsSelectorColumnState): DataCubeEditorColumnsSelectorColumnState;
|
|
28
|
+
get availableColumns(): DataCubeEditorColumnsSelectorColumnState[];
|
|
29
|
+
get availableColumnsForDisplay(): DataCubeEditorColumnsSelectorColumnState[];
|
|
30
|
+
get selectedColumnsForDisplay(): DataCubeEditorColumnsSelectorColumnState[];
|
|
31
|
+
setShowHiddenColumns(val: boolean): void;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* This panel allows selection of columns (including extended columns) for the query.
|
|
35
|
+
*
|
|
36
|
+
* NOTE: this does not really represent the `select()` function in the query. Think about
|
|
37
|
+
* this column selection more intuitively from users' perspective, i.e. what columns they
|
|
38
|
+
* wish to see in the grid. Whereas the `select()` function actually impact the data fetching
|
|
39
|
+
* which should be computed based on more than just information coming from this panels, such
|
|
40
|
+
* as horizontal pivots and vertical pivots, since regardless of whether user choose to see
|
|
41
|
+
* those columns or not, they still need to be fetched.
|
|
42
|
+
*/
|
|
43
|
+
export declare class DataCubeEditorColumnsPanelState implements DataCubeQueryEditorPanelState {
|
|
44
|
+
readonly view: DataCubeViewState;
|
|
45
|
+
readonly editor: DataCubeEditorState;
|
|
46
|
+
readonly selector: DataCubeEditorBasicColumnsSelectorState;
|
|
47
|
+
constructor(editor: DataCubeEditorState);
|
|
48
|
+
/**
|
|
49
|
+
* NOTE: Ideally, this should be called on every changes made to the column selection, but to
|
|
50
|
+
* give user some room for error, i.e. when user accidentally select/deselect columns, we would
|
|
51
|
+
* not propagate this change until user either leaves this panel or explicitly applies changes
|
|
52
|
+
* (i.e. publishes a new snapshot)
|
|
53
|
+
*/
|
|
54
|
+
propagateChanges(): void;
|
|
55
|
+
applySnaphot(snapshot: DataCubeQuerySnapshot, configuration: DataCubeConfiguration): void;
|
|
56
|
+
buildSnapshot(newSnapshot: DataCubeQuerySnapshot, baseSnapshot: DataCubeQuerySnapshot): void;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=DataCubeEditorColumnsPanelState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorColumnsPanelState.d.ts","sourceRoot":"","sources":["../../../src/stores/editor/DataCubeEditorColumnsPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EACL,wCAAwC,EACxC,kCAAkC,EACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAE9E,qBAAa,uCAAwC,SAAQ,kCAAkC,CAAC,wCAAwC,CAAC;IACvI,iBAAiB,UAAS;gBAGxB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE;QACR,QAAQ,CAAC,EACL,CAAC,CACC,MAAM,EAAE,kCAAkC,CAAC,wCAAwC,CAAC,KACjF,IAAI,CAAC,GACV,SAAS,CAAC;KACf;IAaM,WAAW,CAAC,MAAM,EAAE,wCAAwC;IAOrE,IAAa,gBAAgB,+CAQ5B;IAED,IAAa,0BAA0B,IAAI,wCAAwC,EAAE,CAOpF;IAED,IAAa,yBAAyB,IAAI,wCAAwC,EAAE,CAOnF;IAED,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;CAGzC;AAED;;;;;;;;;GASG;AACH,qBAAa,+BACX,YAAW,6BAA6B;IAExC,QAAQ,CAAC,IAAI,EAAG,iBAAiB,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAG,mBAAmB,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAG,uCAAuC,CAAC;gBAEhD,MAAM,EAAE,mBAAmB;IAiCvC;;;;;OAKG;IACH,gBAAgB,IAAI,IAAI;IAIxB,YAAY,CACV,QAAQ,EAAE,qBAAqB,EAC/B,aAAa,EAAE,qBAAqB;IAiBtC,aAAa,CACX,WAAW,EAAE,qBAAqB,EAClC,YAAY,EAAE,qBAAqB;CAsBtC"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { action, makeObservable, observable, override } from 'mobx';
|
|
17
|
+
import { _toCol, } from '../core/DataCubeQuerySnapshot.js';
|
|
18
|
+
import { DataCubeEditorColumnsSelectorColumnState, DataCubeEditorColumnsSelectorState, } from './DataCubeEditorColumnsSelectorState.js';
|
|
19
|
+
import {} from '../core/DataCubeConfiguration.js';
|
|
20
|
+
export class DataCubeEditorBasicColumnsSelectorState extends DataCubeEditorColumnsSelectorState {
|
|
21
|
+
showHiddenColumns = false;
|
|
22
|
+
constructor(editor, options) {
|
|
23
|
+
super(editor, options);
|
|
24
|
+
makeObservable(this, {
|
|
25
|
+
availableColumnsForDisplay: override,
|
|
26
|
+
selectedColumnsForDisplay: override,
|
|
27
|
+
showHiddenColumns: observable,
|
|
28
|
+
setShowHiddenColumns: action,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
cloneColumn(column) {
|
|
32
|
+
return new DataCubeEditorColumnsSelectorColumnState(column.name, column.type);
|
|
33
|
+
}
|
|
34
|
+
get availableColumns() {
|
|
35
|
+
return [
|
|
36
|
+
...this.editor.sourceColumns,
|
|
37
|
+
...this.editor.leafExtendColumns,
|
|
38
|
+
...this.editor.groupExtendColumns,
|
|
39
|
+
].map((col) => new DataCubeEditorColumnsSelectorColumnState(col.name, col.type));
|
|
40
|
+
}
|
|
41
|
+
get availableColumnsForDisplay() {
|
|
42
|
+
return super.availableColumnsForDisplay.filter((column) => this.showHiddenColumns ||
|
|
43
|
+
!this.editor.columnProperties.getColumnConfiguration(column.name)
|
|
44
|
+
.hideFromView);
|
|
45
|
+
}
|
|
46
|
+
get selectedColumnsForDisplay() {
|
|
47
|
+
return super.selectedColumnsForDisplay.filter((column) => this.showHiddenColumns ||
|
|
48
|
+
!this.editor.columnProperties.getColumnConfiguration(column.name)
|
|
49
|
+
.hideFromView);
|
|
50
|
+
}
|
|
51
|
+
setShowHiddenColumns(val) {
|
|
52
|
+
this.showHiddenColumns = val;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* This panel allows selection of columns (including extended columns) for the query.
|
|
57
|
+
*
|
|
58
|
+
* NOTE: this does not really represent the `select()` function in the query. Think about
|
|
59
|
+
* this column selection more intuitively from users' perspective, i.e. what columns they
|
|
60
|
+
* wish to see in the grid. Whereas the `select()` function actually impact the data fetching
|
|
61
|
+
* which should be computed based on more than just information coming from this panels, such
|
|
62
|
+
* as horizontal pivots and vertical pivots, since regardless of whether user choose to see
|
|
63
|
+
* those columns or not, they still need to be fetched.
|
|
64
|
+
*/
|
|
65
|
+
export class DataCubeEditorColumnsPanelState {
|
|
66
|
+
view;
|
|
67
|
+
editor;
|
|
68
|
+
selector;
|
|
69
|
+
constructor(editor) {
|
|
70
|
+
makeObservable(this, {
|
|
71
|
+
applySnaphot: action,
|
|
72
|
+
});
|
|
73
|
+
this.editor = editor;
|
|
74
|
+
this.view = editor.view;
|
|
75
|
+
this.selector = new DataCubeEditorBasicColumnsSelectorState(editor, {
|
|
76
|
+
onChange: (selector) => {
|
|
77
|
+
const selectedColumnConfigurations = selector.selectedColumns.map((col) => this.editor.columnProperties.getColumnConfiguration(col.name));
|
|
78
|
+
const unselectedColumnConfigurations = this.editor.columnProperties.columns.filter((col) => !selectedColumnConfigurations.includes(col));
|
|
79
|
+
// update selection config in column configurations and apply the
|
|
80
|
+
// order of selected columns in the column configurations list (unselected
|
|
81
|
+
// columns are kept in the same order and placed after all selected ones)
|
|
82
|
+
selectedColumnConfigurations.forEach((col) => col.setIsSelected(true));
|
|
83
|
+
unselectedColumnConfigurations.forEach((col) => col.setIsSelected(false));
|
|
84
|
+
this.editor.columnProperties.setColumns([
|
|
85
|
+
...selectedColumnConfigurations,
|
|
86
|
+
...unselectedColumnConfigurations,
|
|
87
|
+
]);
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* NOTE: Ideally, this should be called on every changes made to the column selection, but to
|
|
93
|
+
* give user some room for error, i.e. when user accidentally select/deselect columns, we would
|
|
94
|
+
* not propagate this change until user either leaves this panel or explicitly applies changes
|
|
95
|
+
* (i.e. publishes a new snapshot)
|
|
96
|
+
*/
|
|
97
|
+
propagateChanges() {
|
|
98
|
+
this.editor.sorts.adaptPropagatedChanges();
|
|
99
|
+
}
|
|
100
|
+
applySnaphot(snapshot, configuration) {
|
|
101
|
+
this.selector.setSelectedColumns(this.editor.columnProperties.columns
|
|
102
|
+
// extract from the configuration since it specifies the order of columns
|
|
103
|
+
// there taking into account group-level extended columns
|
|
104
|
+
.filter((col) => col.isSelected)
|
|
105
|
+
.map((col) => {
|
|
106
|
+
const column = this.selector.getColumn(col.name);
|
|
107
|
+
return new DataCubeEditorColumnsSelectorColumnState(column.name, column.type);
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
110
|
+
buildSnapshot(newSnapshot, baseSnapshot) {
|
|
111
|
+
this.propagateChanges();
|
|
112
|
+
// NOTE: these columns make up just part of the set of columns we want to fetch with `select()`.
|
|
113
|
+
// Subsequently, we need to include columns used for horizontal pivots and vertical pivots.
|
|
114
|
+
//
|
|
115
|
+
// Note that this is a fairly simple way to determine the set of columns to fetch, but we have a
|
|
116
|
+
// compile check to ensure the columns needed by parts we don't account for well such as group-level
|
|
117
|
+
// extended columns must be properly included.
|
|
118
|
+
//
|
|
119
|
+
// Maybe, we can improve this later by having an algorithm to determine the set of columns needed
|
|
120
|
+
// by each extended column.
|
|
121
|
+
newSnapshot.data.selectColumns = this.selector.selectedColumns
|
|
122
|
+
// filter out group-level extended columns since these columns are technically not selectable
|
|
123
|
+
.filter((col) => !this.editor.groupExtendColumns.find((column) => column.name === col.name))
|
|
124
|
+
.map(_toCol);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=DataCubeEditorColumnsPanelState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorColumnsPanelState.js","sourceRoot":"","sources":["../../../src/stores/editor/DataCubeEditorColumnsPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EACL,MAAM,GAEP,MAAM,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,IAAI,KAAK,GAAG,CAAC,IAAI,CACrC,CACJ;aACA,GAAG,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;CACF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { DataCubeEditorState } from './DataCubeEditorState.js';
|
|
18
|
+
export declare class DataCubeEditorColumnsSelectorColumnState {
|
|
19
|
+
readonly name: string;
|
|
20
|
+
readonly type: string;
|
|
21
|
+
constructor(name: string, type: string);
|
|
22
|
+
}
|
|
23
|
+
export declare abstract class DataCubeEditorColumnsSelectorState<T extends DataCubeEditorColumnsSelectorColumnState> {
|
|
24
|
+
readonly view: DataCubeViewState;
|
|
25
|
+
readonly editor: DataCubeEditorState;
|
|
26
|
+
selectedColumns: T[];
|
|
27
|
+
availableColumnsSearchText: string;
|
|
28
|
+
selectedColumnsSearchText: string;
|
|
29
|
+
readonly onChange?: ((selector: DataCubeEditorColumnsSelectorState<T>) => void) | undefined;
|
|
30
|
+
constructor(editor: DataCubeEditorState, options?: {
|
|
31
|
+
onChange?: ((select: DataCubeEditorColumnsSelectorState<T>) => void) | undefined;
|
|
32
|
+
});
|
|
33
|
+
abstract get availableColumns(): T[];
|
|
34
|
+
get availableColumnsForDisplay(): T[];
|
|
35
|
+
get selectedColumnsForDisplay(): T[];
|
|
36
|
+
setSelectedColumns(val: T[]): void;
|
|
37
|
+
setAvailableColumnsSearchText(val: string): void;
|
|
38
|
+
setSelectedColumnsSearchText(val: string): void;
|
|
39
|
+
getColumn(colName: string): T;
|
|
40
|
+
protected abstract cloneColumn(column: T): T;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=DataCubeEditorColumnsSelectorState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorColumnsSelectorState.d.ts","sourceRoot":"","sources":["../../../src/stores/editor/DataCubeEditorColumnsSelectorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAIpE,qBAAa,wCAAwC;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBAEV,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;CAIvC;AAED,8BAAsB,kCAAkC,CACtD,CAAC,SAAS,wCAAwC;IAElD,QAAQ,CAAC,IAAI,EAAG,iBAAiB,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAG,mBAAmB,CAAC;IAEtC,eAAe,EAAE,CAAC,EAAE,CAAM;IAE1B,0BAA0B,SAAM;IAChC,yBAAyB,SAAM;IAE/B,QAAQ,CAAC,QAAQ,CAAC,EACd,CAAC,CAAC,QAAQ,EAAE,kCAAkC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,GAC3D,SAAS,CAAC;gBAGZ,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE;QACR,QAAQ,CAAC,EACL,CAAC,CAAC,MAAM,EAAE,kCAAkC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,GACzD,SAAS,CAAC;KACf;IAsBH,QAAQ,KAAK,gBAAgB,IAAI,CAAC,EAAE,CAAC;IAErC,IAAI,0BAA0B,IAAI,CAAC,EAAE,CAOpC;IAED,IAAI,yBAAyB,IAAI,CAAC,EAAE,CAEnC;IAED,kBAAkB,CAAC,GAAG,EAAE,CAAC,EAAE;IAQ3B,6BAA6B,CAAC,GAAG,EAAE,MAAM;IAIzC,4BAA4B,CAAC,GAAG,EAAE,MAAM;IAIxC,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,CAAC;IAO7B,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC;CAC7C"}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { makeObservable, observable, action, computed } from 'mobx';
|
|
17
|
+
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
18
|
+
import { _sortByColName } from '../core/DataCubeQuerySnapshot.js';
|
|
19
|
+
export class DataCubeEditorColumnsSelectorColumnState {
|
|
20
|
+
name;
|
|
21
|
+
type;
|
|
22
|
+
constructor(name, type) {
|
|
23
|
+
this.name = name;
|
|
24
|
+
this.type = type;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export class DataCubeEditorColumnsSelectorState {
|
|
28
|
+
view;
|
|
29
|
+
editor;
|
|
30
|
+
selectedColumns = [];
|
|
31
|
+
availableColumnsSearchText = '';
|
|
32
|
+
selectedColumnsSearchText = '';
|
|
33
|
+
onChange;
|
|
34
|
+
constructor(editor, options) {
|
|
35
|
+
makeObservable(this, {
|
|
36
|
+
availableColumns: computed,
|
|
37
|
+
availableColumnsForDisplay: computed,
|
|
38
|
+
selectedColumnsForDisplay: computed,
|
|
39
|
+
selectedColumns: observable,
|
|
40
|
+
setSelectedColumns: action,
|
|
41
|
+
availableColumnsSearchText: observable,
|
|
42
|
+
setAvailableColumnsSearchText: action,
|
|
43
|
+
selectedColumnsSearchText: observable,
|
|
44
|
+
setSelectedColumnsSearchText: action,
|
|
45
|
+
});
|
|
46
|
+
this.editor = editor;
|
|
47
|
+
this.view = editor.view;
|
|
48
|
+
this.onChange = options?.onChange;
|
|
49
|
+
}
|
|
50
|
+
get availableColumnsForDisplay() {
|
|
51
|
+
return this.availableColumns
|
|
52
|
+
.filter((column) => !this.selectedColumns.find((col) => column.name === col.name))
|
|
53
|
+
.sort(_sortByColName);
|
|
54
|
+
}
|
|
55
|
+
get selectedColumnsForDisplay() {
|
|
56
|
+
return this.selectedColumns;
|
|
57
|
+
}
|
|
58
|
+
setSelectedColumns(val) {
|
|
59
|
+
// NOTE: since we have a list of columns available which we treat as
|
|
60
|
+
// "templates" to select from, we need to clone these columns in order
|
|
61
|
+
// to avoid modifying the original available columns
|
|
62
|
+
this.selectedColumns = val.map((col) => this.cloneColumn(col));
|
|
63
|
+
this.onChange?.(this);
|
|
64
|
+
}
|
|
65
|
+
setAvailableColumnsSearchText(val) {
|
|
66
|
+
this.availableColumnsSearchText = val;
|
|
67
|
+
}
|
|
68
|
+
setSelectedColumnsSearchText(val) {
|
|
69
|
+
this.selectedColumnsSearchText = val;
|
|
70
|
+
}
|
|
71
|
+
getColumn(colName) {
|
|
72
|
+
return guaranteeNonNullable(this.availableColumns.find((col) => col.name === colName), `Can't find column '${colName}'`);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=DataCubeEditorColumnsSelectorState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorColumnsSelectorState.js","sourceRoot":"","sources":["../../../src/stores/editor/DataCubeEditorColumnsSelectorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAGpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,MAAM,OAAO,wCAAwC;IAC1C,IAAI,CAAS;IACb,IAAI,CAAS;IAEtB,YAAY,IAAY,EAAE,IAAY;QACpC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAED,MAAM,OAAgB,kCAAkC;IAG7C,IAAI,CAAqB;IACzB,MAAM,CAAuB;IAEtC,eAAe,GAAQ,EAAE,CAAC;IAE1B,0BAA0B,GAAG,EAAE,CAAC;IAChC,yBAAyB,GAAG,EAAE,CAAC;IAEtB,QAAQ,CAEH;IAEd,YACE,MAA2B,EAC3B,OAIC;QAED,cAAc,CAAC,IAAI,EAAE;YACnB,gBAAgB,EAAE,QAAQ;YAC1B,0BAA0B,EAAE,QAAQ;YACpC,yBAAyB,EAAE,QAAQ;YAEnC,eAAe,EAAE,UAAU;YAC3B,kBAAkB,EAAE,MAAM;YAE1B,0BAA0B,EAAE,UAAU;YACtC,6BAA6B,EAAE,MAAM;YAErC,yBAAyB,EAAE,UAAU;YACrC,4BAA4B,EAAE,MAAM;SACrC,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,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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 { DataCubeQuerySnapshot } from '../core/DataCubeQuerySnapshot.js';
|
|
18
|
+
import type { DataCubeQueryEditorPanelState } from './DataCubeEditorPanelState.js';
|
|
19
|
+
import type { DataCubeEditorState } from './DataCubeEditorState.js';
|
|
20
|
+
import { DataCubeEditorMutableConfiguration } from './DataCubeEditorMutableConfiguration.js';
|
|
21
|
+
import type { DataCubeConfiguration } from '../core/DataCubeConfiguration.js';
|
|
22
|
+
export declare class DataCubeEditorGeneralPropertiesPanelState implements DataCubeQueryEditorPanelState {
|
|
23
|
+
readonly view: DataCubeViewState;
|
|
24
|
+
readonly editor: DataCubeEditorState;
|
|
25
|
+
name: string;
|
|
26
|
+
limit: number;
|
|
27
|
+
configuration: DataCubeEditorMutableConfiguration;
|
|
28
|
+
constructor(editor: DataCubeEditorState);
|
|
29
|
+
setName(val: string): void;
|
|
30
|
+
setLimit(val: number): void;
|
|
31
|
+
setConfiguration(val: DataCubeEditorMutableConfiguration): void;
|
|
32
|
+
applySnaphot(snapshot: DataCubeQuerySnapshot, configuration: DataCubeConfiguration): void;
|
|
33
|
+
buildSnapshot(newSnapshot: DataCubeQuerySnapshot, baseSnapshot: DataCubeQuerySnapshot): void;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=DataCubeEditorGeneralPropertiesPanelState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEditorGeneralPropertiesPanelState.d.ts","sourceRoot":"","sources":["../../../src/stores/editor/DataCubeEditorGeneralPropertiesPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAE9E,qBAAa,yCACX,YAAW,6BAA6B;IAExC,QAAQ,CAAC,IAAI,EAAG,iBAAiB,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAG,mBAAmB,CAAC;IAEtC,IAAI,SAAM;IACV,KAAK,SAAM;IACX,aAAa,qCAA4C;gBAE7C,MAAM,EAAE,mBAAmB;IAgBvC,OAAO,CAAC,GAAG,EAAE,MAAM;IAInB,QAAQ,CAAC,GAAG,EAAE,MAAM;IAIpB,gBAAgB,CAAC,GAAG,EAAE,kCAAkC;IAIxD,YAAY,CACV,QAAQ,EAAE,qBAAqB,EAC/B,aAAa,EAAE,qBAAqB;IAatC,aAAa,CACX,WAAW,EAAE,qBAAqB,EAClC,YAAY,EAAE,qBAAqB;CAOtC"}
|