@finos/legend-cube-builder 0.0.2 → 0.0.4
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/README.md +93 -1
- package/docs/adding-an-operation.md +181 -0
- package/docs/hosting.md +157 -0
- package/docs/testing.md +188 -0
- package/lib/__lib__/LegendCubeCommand.d.ts +2 -1
- package/lib/__lib__/LegendCubeCommand.d.ts.map +1 -1
- package/lib/__lib__/LegendCubeCommand.js +5 -0
- package/lib/__lib__/LegendCubeCommand.js.map +1 -1
- package/lib/__lib__/LegendCubeDataProductLabels.d.ts +45 -0
- package/lib/__lib__/LegendCubeDataProductLabels.d.ts.map +1 -0
- package/lib/__lib__/LegendCubeDataProductLabels.js +60 -0
- package/lib/__lib__/LegendCubeDataProductLabels.js.map +1 -0
- package/lib/__lib__/LegendCubeDirectConnectionLabels.d.ts +56 -0
- package/lib/__lib__/LegendCubeDirectConnectionLabels.d.ts.map +1 -0
- package/lib/__lib__/LegendCubeDirectConnectionLabels.js +76 -0
- package/lib/__lib__/LegendCubeDirectConnectionLabels.js.map +1 -0
- package/lib/__lib__/LegendCubeHelpText.d.ts.map +1 -1
- package/lib/__lib__/LegendCubeHelpText.js +21 -3
- package/lib/__lib__/LegendCubeHelpText.js.map +1 -1
- package/lib/__lib__/LegendCubeIngestLabels.d.ts +25 -0
- package/lib/__lib__/LegendCubeIngestLabels.d.ts.map +1 -0
- package/lib/__lib__/LegendCubeIngestLabels.js +29 -0
- package/lib/__lib__/LegendCubeIngestLabels.js.map +1 -0
- package/lib/__lib__/LegendCubeLabels.d.ts +95 -3
- package/lib/__lib__/LegendCubeLabels.d.ts.map +1 -1
- package/lib/__lib__/LegendCubeLabels.js +121 -4
- package/lib/__lib__/LegendCubeLabels.js.map +1 -1
- package/lib/__lib__/LegendCubeProjectLabels.d.ts +22 -0
- package/lib/__lib__/LegendCubeProjectLabels.d.ts.map +1 -0
- package/lib/__lib__/LegendCubeProjectLabels.js +23 -0
- package/lib/__lib__/LegendCubeProjectLabels.js.map +1 -0
- package/lib/__lib__/LegendCubeTesting.d.ts +1 -0
- package/lib/__lib__/LegendCubeTesting.d.ts.map +1 -1
- package/lib/__lib__/LegendCubeTesting.js +1 -0
- package/lib/__lib__/LegendCubeTesting.js.map +1 -1
- package/lib/__test-utils__/CubeCanvasTestUtils.d.ts.map +1 -1
- package/lib/__test-utils__/CubeCanvasTestUtils.js +1 -1
- package/lib/__test-utils__/CubeCanvasTestUtils.js.map +1 -1
- package/lib/__test-utils__/CubeConnectionTestSupport.d.ts +22 -0
- package/lib/__test-utils__/CubeConnectionTestSupport.d.ts.map +1 -0
- package/lib/__test-utils__/CubeConnectionTestSupport.js +30 -0
- package/lib/__test-utils__/CubeConnectionTestSupport.js.map +1 -0
- package/lib/__test-utils__/CubeDirectConnectionFixtures.d.ts +31 -0
- package/lib/__test-utils__/CubeDirectConnectionFixtures.d.ts.map +1 -0
- package/lib/__test-utils__/CubeDirectConnectionFixtures.js +63 -0
- package/lib/__test-utils__/CubeDirectConnectionFixtures.js.map +1 -0
- package/lib/__test-utils__/CubeEngineTestSupport.d.ts +18 -0
- package/lib/__test-utils__/CubeEngineTestSupport.d.ts.map +1 -1
- package/lib/__test-utils__/CubeEngineTestSupport.js +51 -0
- package/lib/__test-utils__/CubeEngineTestSupport.js.map +1 -1
- package/lib/__test-utils__/CubeExpressionTestUtils.d.ts +37 -0
- package/lib/__test-utils__/CubeExpressionTestUtils.d.ts.map +1 -0
- package/lib/__test-utils__/CubeExpressionTestUtils.js +83 -0
- package/lib/__test-utils__/CubeExpressionTestUtils.js.map +1 -0
- package/lib/__test-utils__/CubeOperationsTestUtils.d.ts +67 -0
- package/lib/__test-utils__/CubeOperationsTestUtils.d.ts.map +1 -0
- package/lib/__test-utils__/CubeOperationsTestUtils.js +138 -0
- package/lib/__test-utils__/CubeOperationsTestUtils.js.map +1 -0
- package/lib/__test-utils__/CubePageTestUtils.d.ts +12 -0
- package/lib/__test-utils__/CubePageTestUtils.d.ts.map +1 -1
- package/lib/__test-utils__/CubePageTestUtils.js +25 -1
- package/lib/__test-utils__/CubePageTestUtils.js.map +1 -1
- package/lib/__test-utils__/CubeTestApplication.d.ts +5 -1
- package/lib/__test-utils__/CubeTestApplication.d.ts.map +1 -1
- package/lib/__test-utils__/CubeTestApplication.js +9 -1
- package/lib/__test-utils__/CubeTestApplication.js.map +1 -1
- package/lib/__test-utils__/FakeCubeConnectionExplorer.d.ts +33 -0
- package/lib/__test-utils__/FakeCubeConnectionExplorer.d.ts.map +1 -0
- package/lib/__test-utils__/FakeCubeConnectionExplorer.js +67 -0
- package/lib/__test-utils__/FakeCubeConnectionExplorer.js.map +1 -0
- package/lib/__test-utils__/FakeCubeDataProductCatalog.d.ts +45 -0
- package/lib/__test-utils__/FakeCubeDataProductCatalog.d.ts.map +1 -0
- package/lib/__test-utils__/FakeCubeDataProductCatalog.js +137 -0
- package/lib/__test-utils__/FakeCubeDataProductCatalog.js.map +1 -0
- package/lib/__test-utils__/FakeCubeEngine.d.ts +2 -0
- package/lib/__test-utils__/FakeCubeEngine.d.ts.map +1 -1
- package/lib/__test-utils__/FakeCubeEngine.js +21 -2
- package/lib/__test-utils__/FakeCubeEngine.js.map +1 -1
- package/lib/__test-utils__/FakeCubeIngestCatalog.d.ts +35 -0
- package/lib/__test-utils__/FakeCubeIngestCatalog.d.ts.map +1 -0
- package/lib/__test-utils__/FakeCubeIngestCatalog.js +107 -0
- package/lib/__test-utils__/FakeCubeIngestCatalog.js.map +1 -0
- package/lib/__test-utils__/FakeCubeProjectCatalog.d.ts +30 -0
- package/lib/__test-utils__/FakeCubeProjectCatalog.d.ts.map +1 -0
- package/lib/__test-utils__/FakeCubeProjectCatalog.js +64 -0
- package/lib/__test-utils__/FakeCubeProjectCatalog.js.map +1 -0
- package/lib/components/CubeAddItems.d.ts +35 -0
- package/lib/components/CubeAddItems.d.ts.map +1 -0
- package/lib/components/CubeAddItems.js +82 -0
- package/lib/components/CubeAddItems.js.map +1 -0
- package/lib/components/CubeEditor.d.ts +5 -1
- package/lib/components/CubeEditor.d.ts.map +1 -1
- package/lib/components/CubeEditor.js +33 -13
- package/lib/components/CubeEditor.js.map +1 -1
- package/lib/components/CubeEntrySourceBanner.d.ts +23 -0
- package/lib/components/CubeEntrySourceBanner.d.ts.map +1 -0
- package/lib/components/CubeEntrySourceBanner.js +32 -0
- package/lib/components/CubeEntrySourceBanner.js.map +1 -0
- package/lib/components/CubeNodeIcon.d.ts.map +1 -1
- package/lib/components/CubeNodeIcon.js +19 -2
- package/lib/components/CubeNodeIcon.js.map +1 -1
- package/lib/components/CubeSchemaColumnsTable.d.ts +21 -0
- package/lib/components/CubeSchemaColumnsTable.d.ts.map +1 -0
- package/lib/components/CubeSchemaColumnsTable.js +6 -0
- package/lib/components/CubeSchemaColumnsTable.js.map +1 -0
- package/lib/components/canvas/CubeCanvas.d.ts +4 -3
- package/lib/components/canvas/CubeCanvas.d.ts.map +1 -1
- package/lib/components/canvas/CubeCanvas.js +33 -12
- package/lib/components/canvas/CubeCanvas.js.map +1 -1
- package/lib/components/canvas/CubeCanvasContextMenu.d.ts +8 -4
- package/lib/components/canvas/CubeCanvasContextMenu.d.ts.map +1 -1
- package/lib/components/canvas/CubeCanvasContextMenu.js +19 -9
- package/lib/components/canvas/CubeCanvasContextMenu.js.map +1 -1
- package/lib/components/canvas/CubeCanvasDnd.d.ts +7 -5
- package/lib/components/canvas/CubeCanvasDnd.d.ts.map +1 -1
- package/lib/components/canvas/CubeCanvasDnd.js +14 -9
- package/lib/components/canvas/CubeCanvasDnd.js.map +1 -1
- package/lib/components/canvas/CubeCanvasElements.d.ts +2 -0
- package/lib/components/canvas/CubeCanvasElements.d.ts.map +1 -1
- package/lib/components/canvas/CubeCanvasElements.js +8 -4
- package/lib/components/canvas/CubeCanvasElements.js.map +1 -1
- package/lib/components/canvas/CubeCanvasNode.d.ts.map +1 -1
- package/lib/components/canvas/CubeCanvasNode.js +30 -17
- package/lib/components/canvas/CubeCanvasNode.js.map +1 -1
- package/lib/components/canvas/CubeCanvasNodeFocus.d.ts +22 -0
- package/lib/components/canvas/CubeCanvasNodeFocus.d.ts.map +1 -0
- package/lib/components/canvas/CubeCanvasNodeFocus.js +31 -0
- package/lib/components/canvas/CubeCanvasNodeFocus.js.map +1 -0
- package/lib/components/canvas/CubeNodeEditorAnchor.d.ts +44 -0
- package/lib/components/canvas/CubeNodeEditorAnchor.d.ts.map +1 -0
- package/lib/components/canvas/CubeNodeEditorAnchor.js +51 -0
- package/lib/components/canvas/CubeNodeEditorAnchor.js.map +1 -0
- package/lib/components/editors/CubeAggregationRowEditor.d.ts +48 -0
- package/lib/components/editors/CubeAggregationRowEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeAggregationRowEditor.js +72 -0
- package/lib/components/editors/CubeAggregationRowEditor.js.map +1 -0
- package/lib/components/editors/CubeColumnChecklist.d.ts +42 -0
- package/lib/components/editors/CubeColumnChecklist.d.ts.map +1 -0
- package/lib/components/editors/CubeColumnChecklist.js +41 -0
- package/lib/components/editors/CubeColumnChecklist.js.map +1 -0
- package/lib/components/editors/CubeColumnPicker.d.ts +9 -2
- package/lib/components/editors/CubeColumnPicker.d.ts.map +1 -1
- package/lib/components/editors/CubeColumnPicker.js +9 -4
- package/lib/components/editors/CubeColumnPicker.js.map +1 -1
- package/lib/components/editors/CubeConcatEditor.d.ts +33 -0
- package/lib/components/editors/CubeConcatEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeConcatEditor.js +147 -0
- package/lib/components/editors/CubeConcatEditor.js.map +1 -0
- package/lib/components/editors/CubeDataProductSourceEditor.d.ts +25 -0
- package/lib/components/editors/CubeDataProductSourceEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeDataProductSourceEditor.js +53 -0
- package/lib/components/editors/CubeDataProductSourceEditor.js.map +1 -0
- package/lib/components/editors/CubeDifferenceEditor.d.ts +25 -0
- package/lib/components/editors/CubeDifferenceEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeDifferenceEditor.js +29 -0
- package/lib/components/editors/CubeDifferenceEditor.js.map +1 -0
- package/lib/components/editors/CubeDistinctEditor.d.ts +23 -0
- package/lib/components/editors/CubeDistinctEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeDistinctEditor.js +24 -0
- package/lib/components/editors/CubeDistinctEditor.js.map +1 -0
- package/lib/components/editors/CubeExtendEditor.d.ts +25 -0
- package/lib/components/editors/CubeExtendEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeExtendEditor.js +86 -0
- package/lib/components/editors/CubeExtendEditor.js.map +1 -0
- package/lib/components/editors/CubeFilterEditor.d.ts.map +1 -1
- package/lib/components/editors/CubeFilterEditor.js +3 -3
- package/lib/components/editors/CubeFilterEditor.js.map +1 -1
- package/lib/components/editors/CubeGroupEditor.d.ts +28 -0
- package/lib/components/editors/CubeGroupEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeGroupEditor.js +70 -0
- package/lib/components/editors/CubeGroupEditor.js.map +1 -0
- package/lib/components/editors/CubeIngestSourceEditor.d.ts +26 -0
- package/lib/components/editors/CubeIngestSourceEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeIngestSourceEditor.js +47 -0
- package/lib/components/editors/CubeIngestSourceEditor.js.map +1 -0
- package/lib/components/editors/CubeIntegerField.d.ts +29 -0
- package/lib/components/editors/CubeIntegerField.d.ts.map +1 -0
- package/lib/components/editors/CubeIntegerField.js +30 -0
- package/lib/components/editors/CubeIntegerField.js.map +1 -0
- package/lib/components/editors/CubeJoinEditor.d.ts +2 -4
- package/lib/components/editors/CubeJoinEditor.d.ts.map +1 -1
- package/lib/components/editors/CubeJoinEditor.js +15 -37
- package/lib/components/editors/CubeJoinEditor.js.map +1 -1
- package/lib/components/editors/CubeJoinKeyRows.d.ts +34 -0
- package/lib/components/editors/CubeJoinKeyRows.d.ts.map +1 -0
- package/lib/components/editors/CubeJoinKeyRows.js +65 -0
- package/lib/components/editors/CubeJoinKeyRows.js.map +1 -0
- package/lib/components/editors/CubeNodeEditorPanel.d.ts +7 -5
- package/lib/components/editors/CubeNodeEditorPanel.d.ts.map +1 -1
- package/lib/components/editors/CubeNodeEditorPanel.js +53 -14
- package/lib/components/editors/CubeNodeEditorPanel.js.map +1 -1
- package/lib/components/editors/CubeNodeEditorPopper.d.ts +40 -0
- package/lib/components/editors/CubeNodeEditorPopper.d.ts.map +1 -0
- package/lib/components/editors/CubeNodeEditorPopper.js +125 -0
- package/lib/components/editors/CubeNodeEditorPopper.js.map +1 -0
- package/lib/components/editors/CubeNodeEditorRegistry.d.ts.map +1 -1
- package/lib/components/editors/CubeNodeEditorRegistry.js +28 -1
- package/lib/components/editors/CubeNodeEditorRegistry.js.map +1 -1
- package/lib/components/editors/CubePartitionEditor.d.ts +30 -0
- package/lib/components/editors/CubePartitionEditor.d.ts.map +1 -0
- package/lib/components/editors/CubePartitionEditor.js +93 -0
- package/lib/components/editors/CubePartitionEditor.js.map +1 -0
- package/lib/components/editors/CubeRenameEditor.d.ts +26 -0
- package/lib/components/editors/CubeRenameEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeRenameEditor.js +60 -0
- package/lib/components/editors/CubeRenameEditor.js.map +1 -0
- package/lib/components/editors/CubeRestrictEditor.d.ts +26 -0
- package/lib/components/editors/CubeRestrictEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeRestrictEditor.js +23 -0
- package/lib/components/editors/CubeRestrictEditor.js.map +1 -0
- package/lib/components/editors/CubeRowCountEditor.d.ts +25 -0
- package/lib/components/editors/CubeRowCountEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeRowCountEditor.js +38 -0
- package/lib/components/editors/CubeRowCountEditor.js.map +1 -0
- package/lib/components/editors/CubeSliceEditor.d.ts +25 -0
- package/lib/components/editors/CubeSliceEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeSliceEditor.js +40 -0
- package/lib/components/editors/CubeSliceEditor.js.map +1 -0
- package/lib/components/editors/CubeSortEditor.d.ts +27 -0
- package/lib/components/editors/CubeSortEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeSortEditor.js +45 -0
- package/lib/components/editors/CubeSortEditor.js.map +1 -0
- package/lib/components/editors/CubeSortRowEditor.d.ts +47 -0
- package/lib/components/editors/CubeSortRowEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeSortRowEditor.js +62 -0
- package/lib/components/editors/CubeSortRowEditor.js.map +1 -0
- package/lib/components/editors/CubeSourceEditor.d.ts.map +1 -1
- package/lib/components/editors/CubeSourceEditor.js +18 -6
- package/lib/components/editors/CubeSourceEditor.js.map +1 -1
- package/lib/components/editors/CubeValueEditor.d.ts.map +1 -1
- package/lib/components/editors/CubeValueEditor.js +2 -1
- package/lib/components/editors/CubeValueEditor.js.map +1 -1
- package/lib/components/editors/CubeWarehouseControl.d.ts +30 -0
- package/lib/components/editors/CubeWarehouseControl.d.ts.map +1 -0
- package/lib/components/editors/CubeWarehouseControl.js +44 -0
- package/lib/components/editors/CubeWarehouseControl.js.map +1 -0
- package/lib/components/editors/useCubeNodeEditorDismiss.d.ts +31 -0
- package/lib/components/editors/useCubeNodeEditorDismiss.d.ts.map +1 -0
- package/lib/components/editors/useCubeNodeEditorDismiss.js +83 -0
- package/lib/components/editors/useCubeNodeEditorDismiss.js.map +1 -0
- package/lib/components/examples/CubeExamplesDialog.d.ts +26 -0
- package/lib/components/examples/CubeExamplesDialog.d.ts.map +1 -0
- package/lib/components/examples/CubeExamplesDialog.js +68 -0
- package/lib/components/examples/CubeExamplesDialog.js.map +1 -0
- package/lib/components/grid/CubeGridRegion.d.ts.map +1 -1
- package/lib/components/grid/CubeGridRegion.js +20 -9
- package/lib/components/grid/CubeGridRegion.js.map +1 -1
- package/lib/components/grid/CubeGridValues.d.ts +16 -0
- package/lib/components/grid/CubeGridValues.d.ts.map +1 -1
- package/lib/components/grid/CubeGridValues.js +44 -0
- package/lib/components/grid/CubeGridValues.js.map +1 -1
- package/lib/components/grid/CubeResultGrid.d.ts +14 -1
- package/lib/components/grid/CubeResultGrid.d.ts.map +1 -1
- package/lib/components/grid/CubeResultGrid.js +55 -7
- package/lib/components/grid/CubeResultGrid.js.map +1 -1
- package/lib/components/palette/CubePalette.d.ts.map +1 -1
- package/lib/components/palette/CubePalette.js +23 -12
- package/lib/components/palette/CubePalette.js.map +1 -1
- package/lib/components/source-picker/CubeDataProductTab.d.ts +27 -0
- package/lib/components/source-picker/CubeDataProductTab.d.ts.map +1 -0
- package/lib/components/source-picker/CubeDataProductTab.js +102 -0
- package/lib/components/source-picker/CubeDataProductTab.js.map +1 -0
- package/lib/components/source-picker/CubeDirectConnectionTab.d.ts +27 -0
- package/lib/components/source-picker/CubeDirectConnectionTab.d.ts.map +1 -0
- package/lib/components/source-picker/CubeDirectConnectionTab.js +87 -0
- package/lib/components/source-picker/CubeDirectConnectionTab.js.map +1 -0
- package/lib/components/source-picker/CubeIngestTab.d.ts +28 -0
- package/lib/components/source-picker/CubeIngestTab.d.ts.map +1 -0
- package/lib/components/source-picker/CubeIngestTab.js +66 -0
- package/lib/components/source-picker/CubeIngestTab.js.map +1 -0
- package/lib/components/source-picker/CubeInlineModelTab.d.ts +37 -0
- package/lib/components/source-picker/CubeInlineModelTab.d.ts.map +1 -0
- package/lib/components/source-picker/CubeInlineModelTab.js +71 -0
- package/lib/components/source-picker/CubeInlineModelTab.js.map +1 -0
- package/lib/components/source-picker/CubePickerStep.d.ts +27 -0
- package/lib/components/source-picker/CubePickerStep.d.ts.map +1 -0
- package/lib/components/source-picker/CubePickerStep.js +23 -0
- package/lib/components/source-picker/CubePickerStep.js.map +1 -0
- package/lib/components/source-picker/CubeProjectTab.d.ts +27 -0
- package/lib/components/source-picker/CubeProjectTab.d.ts.map +1 -0
- package/lib/components/source-picker/CubeProjectTab.js +50 -0
- package/lib/components/source-picker/CubeProjectTab.js.map +1 -0
- package/lib/components/source-picker/CubeSourcePicker.d.ts +6 -0
- package/lib/components/source-picker/CubeSourcePicker.d.ts.map +1 -1
- package/lib/components/source-picker/CubeSourcePicker.js +20 -58
- package/lib/components/source-picker/CubeSourcePicker.js.map +1 -1
- package/lib/components/spec-transfer/CubeSpecTransferDialog.js +1 -1
- package/lib/components/spec-transfer/CubeSpecTransferDialog.js.map +1 -1
- package/lib/graph-manager/CubeConnectionExplorer.d.ts +90 -0
- package/lib/graph-manager/CubeConnectionExplorer.d.ts.map +1 -0
- package/lib/graph-manager/CubeConnectionExplorer.js +34 -0
- package/lib/graph-manager/CubeConnectionExplorer.js.map +1 -0
- package/lib/graph-manager/CubeDataProduct.d.ts +66 -0
- package/lib/graph-manager/CubeDataProduct.d.ts.map +1 -0
- package/lib/graph-manager/CubeDataProduct.js +102 -0
- package/lib/graph-manager/CubeDataProduct.js.map +1 -0
- package/lib/graph-manager/CubeDataProductCatalog.d.ts +167 -0
- package/lib/graph-manager/CubeDataProductCatalog.d.ts.map +1 -0
- package/lib/graph-manager/CubeDataProductCatalog.js +116 -0
- package/lib/graph-manager/CubeDataProductCatalog.js.map +1 -0
- package/lib/graph-manager/CubeDirectConnection.d.ts +38 -0
- package/lib/graph-manager/CubeDirectConnection.d.ts.map +1 -0
- package/lib/graph-manager/CubeDirectConnection.js +48 -0
- package/lib/graph-manager/CubeDirectConnection.js.map +1 -0
- package/lib/graph-manager/CubeEngine.d.ts +50 -2
- package/lib/graph-manager/CubeEngine.d.ts.map +1 -1
- package/lib/graph-manager/CubeEngine.js +4 -1
- package/lib/graph-manager/CubeEngine.js.map +1 -1
- package/lib/graph-manager/CubeIngest.d.ts +50 -0
- package/lib/graph-manager/CubeIngest.d.ts.map +1 -0
- package/lib/graph-manager/CubeIngest.js +88 -0
- package/lib/graph-manager/CubeIngest.js.map +1 -0
- package/lib/graph-manager/CubeIngestCatalog.d.ts +116 -0
- package/lib/graph-manager/CubeIngestCatalog.d.ts.map +1 -0
- package/lib/graph-manager/CubeIngestCatalog.js +80 -0
- package/lib/graph-manager/CubeIngestCatalog.js.map +1 -0
- package/lib/graph-manager/CubeLakehouseEnvironment.d.ts +26 -0
- package/lib/graph-manager/CubeLakehouseEnvironment.d.ts.map +1 -0
- package/lib/graph-manager/CubeLakehouseEnvironment.js +17 -0
- package/lib/graph-manager/CubeLakehouseEnvironment.js.map +1 -0
- package/lib/graph-manager/CubeModelOutlineHelper.d.ts +8 -0
- package/lib/graph-manager/CubeModelOutlineHelper.d.ts.map +1 -1
- package/lib/graph-manager/CubeModelOutlineHelper.js +21 -0
- package/lib/graph-manager/CubeModelOutlineHelper.js.map +1 -1
- package/lib/graph-manager/CubeProject.d.ts +41 -0
- package/lib/graph-manager/CubeProject.d.ts.map +1 -0
- package/lib/graph-manager/CubeProject.js +84 -0
- package/lib/graph-manager/CubeProject.js.map +1 -0
- package/lib/graph-manager/CubeProjectCatalog.d.ts +35 -0
- package/lib/graph-manager/CubeProjectCatalog.d.ts.map +1 -0
- package/lib/graph-manager/CubeProjectCatalog.js +17 -0
- package/lib/graph-manager/CubeProjectCatalog.js.map +1 -0
- package/lib/graph-manager/protocol/pure/CubeEngineBuilder.d.ts +63 -1
- package/lib/graph-manager/protocol/pure/CubeEngineBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/CubeEngineBuilder.js +50 -1
- package/lib/graph-manager/protocol/pure/CubeEngineBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDataProductArtifact.d.ts +44 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDataProductArtifact.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDataProductArtifact.js +192 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDataProductArtifact.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDataProductModel.d.ts +29 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDataProductModel.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDataProductModel.js +84 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDataProductModel.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDirectConnection.d.ts +41 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDirectConnection.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDirectConnection.js +246 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDirectConnection.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDirectModel.d.ts +43 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDirectModel.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDirectModel.js +112 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDirectModel.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeEngineErrors.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeEngineErrors.js +30 -4
- package/lib/graph-manager/protocol/pure/v1/V1_CubeEngineErrors.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeExpression.d.ts +23 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeExpression.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeExpression.js +68 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeExpression.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeIngestDefinition.d.ts +30 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeIngestDefinition.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeIngestDefinition.js +140 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeIngestDefinition.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeIngestModel.d.ts +62 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeIngestModel.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeIngestModel.js +119 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeIngestModel.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeLakehouseEnvironmentResolver.d.ts +33 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeLakehouseEnvironmentResolver.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeLakehouseEnvironmentResolver.js +94 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeLakehouseEnvironmentResolver.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeLambdaSerializer.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeLambdaSerializer.js +63 -4
- package/lib/graph-manager/protocol/pure/v1/V1_CubeLambdaSerializer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeModelOutlineBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeModelOutlineBuilder.js +56 -3
- package/lib/graph-manager/protocol/pure/v1/V1_CubeModelOutlineBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeSchemaExploration.d.ts +67 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeSchemaExploration.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeSchemaExploration.js +238 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeSchemaExploration.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeConnectionExplorer.d.ts +34 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeConnectionExplorer.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeConnectionExplorer.js +64 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeConnectionExplorer.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeDataProductCatalog.d.ts +104 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeDataProductCatalog.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeDataProductCatalog.js +484 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeDataProductCatalog.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeEngine.d.ts +97 -3
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeEngine.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeEngine.js +585 -20
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeEngine.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeIngestCatalog.d.ts +69 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeIngestCatalog.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeIngestCatalog.js +270 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeIngestCatalog.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeProjectCatalog.d.ts +35 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeProjectCatalog.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeProjectCatalog.js +91 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeProjectCatalog.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeConnectionExplorerTestUtils.d.ts +25 -0
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeConnectionExplorerTestUtils.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeConnectionExplorerTestUtils.js +47 -0
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeConnectionExplorerTestUtils.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeDataProductFixtures.d.ts +28 -0
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeDataProductFixtures.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeDataProductFixtures.js +310 -0
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeDataProductFixtures.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeDataProductSearchFixtures.d.ts +33 -0
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeDataProductSearchFixtures.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeDataProductSearchFixtures.js +188 -0
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeDataProductSearchFixtures.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeEngineTestUtils.d.ts +1 -1
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeEngineTestUtils.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeEngineTestUtils.js +30 -4
- package/lib/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeEngineTestUtils.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +11 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -1
- package/lib/index.js.map +1 -1
- package/lib/stores/CubeAddPlacement.d.ts +32 -0
- package/lib/stores/CubeAddPlacement.d.ts.map +1 -0
- package/lib/stores/CubeAddPlacement.js +40 -0
- package/lib/stores/CubeAddPlacement.js.map +1 -0
- package/lib/stores/CubeDataProductRecheck.d.ts +27 -0
- package/lib/stores/CubeDataProductRecheck.d.ts.map +1 -0
- package/lib/stores/CubeDataProductRecheck.js +54 -0
- package/lib/stores/CubeDataProductRecheck.js.map +1 -0
- package/lib/stores/CubeDataProductRuntimeState.d.ts +88 -0
- package/lib/stores/CubeDataProductRuntimeState.d.ts.map +1 -0
- package/lib/stores/CubeDataProductRuntimeState.js +190 -0
- package/lib/stores/CubeDataProductRuntimeState.js.map +1 -0
- package/lib/stores/CubeDataProductWarehouse.d.ts +19 -0
- package/lib/stores/CubeDataProductWarehouse.d.ts.map +1 -0
- package/lib/stores/CubeDataProductWarehouse.js +25 -0
- package/lib/stores/CubeDataProductWarehouse.js.map +1 -0
- package/lib/stores/CubeEditorState.d.ts +133 -19
- package/lib/stores/CubeEditorState.d.ts.map +1 -1
- package/lib/stores/CubeEditorState.js +433 -52
- package/lib/stores/CubeEditorState.js.map +1 -1
- package/lib/stores/CubeEntrySource.d.ts +78 -0
- package/lib/stores/CubeEntrySource.d.ts.map +1 -0
- package/lib/stores/CubeEntrySource.js +200 -0
- package/lib/stores/CubeEntrySource.js.map +1 -0
- package/lib/stores/CubeExamples.d.ts +43 -0
- package/lib/stores/CubeExamples.d.ts.map +1 -0
- package/lib/stores/CubeExamples.js +296 -0
- package/lib/stores/CubeExamples.js.map +1 -0
- package/lib/stores/CubeExamplesState.d.ts +45 -0
- package/lib/stores/CubeExamplesState.d.ts.map +1 -0
- package/lib/stores/CubeExamplesState.js +81 -0
- package/lib/stores/CubeExamplesState.js.map +1 -0
- package/lib/stores/CubeExecutionState.d.ts +6 -2
- package/lib/stores/CubeExecutionState.d.ts.map +1 -1
- package/lib/stores/CubeExecutionState.js +34 -8
- package/lib/stores/CubeExecutionState.js.map +1 -1
- package/lib/stores/CubeExtendTyping.d.ts +72 -0
- package/lib/stores/CubeExtendTyping.d.ts.map +1 -0
- package/lib/stores/CubeExtendTyping.js +176 -0
- package/lib/stores/CubeExtendTyping.js.map +1 -0
- package/lib/stores/CubeGridQuickActions.d.ts +48 -0
- package/lib/stores/CubeGridQuickActions.d.ts.map +1 -0
- package/lib/stores/CubeGridQuickActions.js +124 -0
- package/lib/stores/CubeGridQuickActions.js.map +1 -0
- package/lib/stores/CubeHost.d.ts +32 -1
- package/lib/stores/CubeHost.d.ts.map +1 -1
- package/lib/stores/CubeHost.js +21 -1
- package/lib/stores/CubeHost.js.map +1 -1
- package/lib/stores/CubeIngestRecheck.d.ts +26 -0
- package/lib/stores/CubeIngestRecheck.d.ts.map +1 -0
- package/lib/stores/CubeIngestRecheck.js +53 -0
- package/lib/stores/CubeIngestRecheck.js.map +1 -0
- package/lib/stores/CubeNodeEditorState.d.ts +120 -6
- package/lib/stores/CubeNodeEditorState.d.ts.map +1 -1
- package/lib/stores/CubeNodeEditorState.js +275 -9
- package/lib/stores/CubeNodeEditorState.js.map +1 -1
- package/lib/stores/CubeShowPureState.d.ts +9 -3
- package/lib/stores/CubeShowPureState.d.ts.map +1 -1
- package/lib/stores/CubeShowPureState.js +28 -8
- package/lib/stores/CubeShowPureState.js.map +1 -1
- package/lib/stores/CubeSourcePickerState.d.ts +54 -65
- package/lib/stores/CubeSourcePickerState.d.ts.map +1 -1
- package/lib/stores/CubeSourcePickerState.js +155 -276
- package/lib/stores/CubeSourcePickerState.js.map +1 -1
- package/lib/stores/CubeSpecTransferState.d.ts +2 -2
- package/lib/stores/CubeSpecTransferState.js +2 -2
- package/lib/stores/LocalModelCatalog.d.ts +2 -0
- package/lib/stores/LocalModelCatalog.d.ts.map +1 -1
- package/lib/stores/LocalModelCatalog.js +17 -3
- package/lib/stores/LocalModelCatalog.js.map +1 -1
- package/lib/stores/editors/CubeAggregationRows.d.ts +80 -0
- package/lib/stores/editors/CubeAggregationRows.d.ts.map +1 -0
- package/lib/stores/editors/CubeAggregationRows.js +164 -0
- package/lib/stores/editors/CubeAggregationRows.js.map +1 -0
- package/lib/stores/editors/CubeConcatDraft.d.ts +30 -0
- package/lib/stores/editors/CubeConcatDraft.d.ts.map +1 -0
- package/lib/stores/editors/CubeConcatDraft.js +44 -0
- package/lib/stores/editors/CubeConcatDraft.js.map +1 -0
- package/lib/stores/editors/CubeDifferenceDraft.d.ts +49 -0
- package/lib/stores/editors/CubeDifferenceDraft.d.ts.map +1 -0
- package/lib/stores/editors/CubeDifferenceDraft.js +111 -0
- package/lib/stores/editors/CubeDifferenceDraft.js.map +1 -0
- package/lib/stores/editors/CubeExtendDraft.d.ts +110 -0
- package/lib/stores/editors/CubeExtendDraft.d.ts.map +1 -0
- package/lib/stores/editors/CubeExtendDraft.js +359 -0
- package/lib/stores/editors/CubeExtendDraft.js.map +1 -0
- package/lib/stores/editors/CubeGroupDraft.d.ts +61 -0
- package/lib/stores/editors/CubeGroupDraft.d.ts.map +1 -0
- package/lib/stores/editors/CubeGroupDraft.js +106 -0
- package/lib/stores/editors/CubeGroupDraft.js.map +1 -0
- package/lib/stores/editors/CubeIntegerText.d.ts +24 -0
- package/lib/stores/editors/CubeIntegerText.d.ts.map +1 -0
- package/lib/stores/editors/CubeIntegerText.js +33 -0
- package/lib/stores/editors/CubeIntegerText.js.map +1 -0
- package/lib/stores/editors/CubeJoinDraft.d.ts +20 -13
- package/lib/stores/editors/CubeJoinDraft.d.ts.map +1 -1
- package/lib/stores/editors/CubeJoinDraft.js +109 -29
- package/lib/stores/editors/CubeJoinDraft.js.map +1 -1
- package/lib/stores/editors/CubeJoinKeyPairs.d.ts +38 -0
- package/lib/stores/editors/CubeJoinKeyPairs.d.ts.map +1 -0
- package/lib/stores/editors/CubeJoinKeyPairs.js +33 -0
- package/lib/stores/editors/CubeJoinKeyPairs.js.map +1 -0
- package/lib/stores/editors/CubeNodeDraft.d.ts +20 -6
- package/lib/stores/editors/CubeNodeDraft.d.ts.map +1 -1
- package/lib/stores/editors/CubeNodeDraft.js +23 -5
- package/lib/stores/editors/CubeNodeDraft.js.map +1 -1
- package/lib/stores/editors/CubeNodeDraftRegistry.d.ts +6 -0
- package/lib/stores/editors/CubeNodeDraftRegistry.d.ts.map +1 -1
- package/lib/stores/editors/CubeNodeDraftRegistry.js +42 -1
- package/lib/stores/editors/CubeNodeDraftRegistry.js.map +1 -1
- package/lib/stores/editors/CubePartitionDraft.d.ts +70 -0
- package/lib/stores/editors/CubePartitionDraft.d.ts.map +1 -0
- package/lib/stores/editors/CubePartitionDraft.js +154 -0
- package/lib/stores/editors/CubePartitionDraft.js.map +1 -0
- package/lib/stores/editors/CubeRenameDraft.d.ts +44 -0
- package/lib/stores/editors/CubeRenameDraft.d.ts.map +1 -0
- package/lib/stores/editors/CubeRenameDraft.js +79 -0
- package/lib/stores/editors/CubeRenameDraft.js.map +1 -0
- package/lib/stores/editors/CubeRestrictDraft.d.ts +37 -0
- package/lib/stores/editors/CubeRestrictDraft.d.ts.map +1 -0
- package/lib/stores/editors/CubeRestrictDraft.js +73 -0
- package/lib/stores/editors/CubeRestrictDraft.js.map +1 -0
- package/lib/stores/editors/CubeRowCountDraft.d.ts +42 -0
- package/lib/stores/editors/CubeRowCountDraft.d.ts.map +1 -0
- package/lib/stores/editors/CubeRowCountDraft.js +55 -0
- package/lib/stores/editors/CubeRowCountDraft.js.map +1 -0
- package/lib/stores/editors/CubeSliceDraft.d.ts +42 -0
- package/lib/stores/editors/CubeSliceDraft.d.ts.map +1 -0
- package/lib/stores/editors/CubeSliceDraft.js +72 -0
- package/lib/stores/editors/CubeSliceDraft.js.map +1 -0
- package/lib/stores/editors/CubeSortDraft.d.ts +41 -0
- package/lib/stores/editors/CubeSortDraft.d.ts.map +1 -0
- package/lib/stores/editors/CubeSortDraft.js +73 -0
- package/lib/stores/editors/CubeSortDraft.js.map +1 -0
- package/lib/stores/editors/CubeSortRows.d.ts +34 -0
- package/lib/stores/editors/CubeSortRows.d.ts.map +1 -0
- package/lib/stores/editors/CubeSortRows.js +50 -0
- package/lib/stores/editors/CubeSortRows.js.map +1 -0
- package/lib/stores/fixtures/CubeNorthwindModel.d.ts +7 -0
- package/lib/stores/fixtures/CubeNorthwindModel.d.ts.map +1 -1
- package/lib/stores/fixtures/CubeNorthwindModel.js +99 -87
- package/lib/stores/fixtures/CubeNorthwindModel.js.map +1 -1
- package/lib/stores/fixtures/CubeSampleSql.d.ts +34 -0
- package/lib/stores/fixtures/CubeSampleSql.d.ts.map +1 -0
- package/lib/stores/fixtures/CubeSampleSql.js +64 -0
- package/lib/stores/fixtures/CubeSampleSql.js.map +1 -0
- package/lib/stores/fixtures/CubeSportsModel.d.ts +27 -0
- package/lib/stores/fixtures/CubeSportsModel.d.ts.map +1 -0
- package/lib/stores/fixtures/CubeSportsModel.js +158 -0
- package/lib/stores/fixtures/CubeSportsModel.js.map +1 -0
- package/lib/stores/fixtures/CubeTradesModel.d.ts +29 -0
- package/lib/stores/fixtures/CubeTradesModel.d.ts.map +1 -0
- package/lib/stores/fixtures/CubeTradesModel.js +197 -0
- package/lib/stores/fixtures/CubeTradesModel.js.map +1 -0
- package/lib/stores/source-picker/CubeCsvSetupSql.d.ts +71 -0
- package/lib/stores/source-picker/CubeCsvSetupSql.d.ts.map +1 -0
- package/lib/stores/source-picker/CubeCsvSetupSql.js +392 -0
- package/lib/stores/source-picker/CubeCsvSetupSql.js.map +1 -0
- package/lib/stores/source-picker/CubeDataProductTabState.d.ts +186 -0
- package/lib/stores/source-picker/CubeDataProductTabState.d.ts.map +1 -0
- package/lib/stores/source-picker/CubeDataProductTabState.js +681 -0
- package/lib/stores/source-picker/CubeDataProductTabState.js.map +1 -0
- package/lib/stores/source-picker/CubeDirectConnectionTabState.d.ts +140 -0
- package/lib/stores/source-picker/CubeDirectConnectionTabState.d.ts.map +1 -0
- package/lib/stores/source-picker/CubeDirectConnectionTabState.js +516 -0
- package/lib/stores/source-picker/CubeDirectConnectionTabState.js.map +1 -0
- package/lib/stores/source-picker/CubeIngestTabState.d.ts +114 -0
- package/lib/stores/source-picker/CubeIngestTabState.d.ts.map +1 -0
- package/lib/stores/source-picker/CubeIngestTabState.js +455 -0
- package/lib/stores/source-picker/CubeIngestTabState.js.map +1 -0
- package/lib/stores/source-picker/CubeInlineModelTabState.d.ts +107 -0
- package/lib/stores/source-picker/CubeInlineModelTabState.d.ts.map +1 -0
- package/lib/stores/source-picker/CubeInlineModelTabState.js +347 -0
- package/lib/stores/source-picker/CubeInlineModelTabState.js.map +1 -0
- package/lib/stores/source-picker/CubeProjectTabState.d.ts +62 -0
- package/lib/stores/source-picker/CubeProjectTabState.d.ts.map +1 -0
- package/lib/stores/source-picker/CubeProjectTabState.js +181 -0
- package/lib/stores/source-picker/CubeProjectTabState.js.map +1 -0
- package/lib/stores/source-picker/CubeSourcePickerTab.d.ts +48 -0
- package/lib/stores/source-picker/CubeSourcePickerTab.d.ts.map +1 -0
- package/lib/stores/source-picker/CubeSourcePickerTab.js +24 -0
- package/lib/stores/source-picker/CubeSourcePickerTab.js.map +1 -0
- package/package.json +12 -8
- package/src/__lib__/LegendCubeCommand.ts +5 -0
- package/src/__lib__/LegendCubeDataProductLabels.ts +91 -0
- package/src/__lib__/LegendCubeDirectConnectionLabels.ts +111 -0
- package/src/__lib__/LegendCubeHelpText.ts +46 -2
- package/src/__lib__/LegendCubeIngestLabels.ts +40 -0
- package/src/__lib__/LegendCubeLabels.ts +192 -4
- package/src/__lib__/LegendCubeProjectLabels.ts +25 -0
- package/src/__lib__/LegendCubeTesting.ts +1 -0
- package/src/__test-utils__/CubeCanvasTestUtils.ts +1 -1
- package/src/__test-utils__/CubeConnectionTestSupport.ts +45 -0
- package/src/__test-utils__/CubeDirectConnectionFixtures.ts +70 -0
- package/src/__test-utils__/CubeEngineTestSupport.ts +73 -0
- package/src/__test-utils__/CubeExpressionTestUtils.ts +119 -0
- package/src/__test-utils__/CubeOperationsTestUtils.ts +252 -0
- package/src/__test-utils__/CubePageTestUtils.tsx +35 -0
- package/src/__test-utils__/CubeTestApplication.ts +21 -2
- package/src/__test-utils__/FakeCubeConnectionExplorer.ts +111 -0
- package/src/__test-utils__/FakeCubeDataProductCatalog.ts +227 -0
- package/src/__test-utils__/FakeCubeEngine.ts +32 -2
- package/src/__test-utils__/FakeCubeIngestCatalog.ts +180 -0
- package/src/__test-utils__/FakeCubeProjectCatalog.ts +89 -0
- package/src/components/CubeAddItems.tsx +179 -0
- package/src/components/CubeEditor.tsx +73 -44
- package/src/components/CubeEntrySourceBanner.tsx +64 -0
- package/src/components/CubeNodeIcon.tsx +31 -1
- package/src/components/CubeSchemaColumnsTable.tsx +49 -0
- package/src/components/canvas/CubeCanvas.tsx +51 -14
- package/src/components/canvas/CubeCanvasContextMenu.tsx +31 -30
- package/src/components/canvas/CubeCanvasDnd.ts +16 -9
- package/src/components/canvas/CubeCanvasElements.ts +12 -3
- package/src/components/canvas/CubeCanvasNode.tsx +62 -36
- package/src/components/canvas/CubeCanvasNodeFocus.ts +37 -0
- package/src/components/canvas/CubeNodeEditorAnchor.ts +82 -0
- package/src/components/editors/CubeAggregationRowEditor.tsx +224 -0
- package/src/components/editors/CubeColumnChecklist.tsx +130 -0
- package/src/components/editors/CubeColumnPicker.tsx +36 -12
- package/src/components/editors/CubeConcatEditor.tsx +374 -0
- package/src/components/editors/CubeDataProductSourceEditor.tsx +134 -0
- package/src/components/editors/CubeDifferenceEditor.tsx +87 -0
- package/src/components/editors/CubeDistinctEditor.tsx +28 -0
- package/src/components/editors/CubeExtendEditor.tsx +271 -0
- package/src/components/editors/CubeFilterEditor.tsx +7 -0
- package/src/components/editors/CubeGroupEditor.tsx +135 -0
- package/src/components/editors/CubeIngestSourceEditor.tsx +104 -0
- package/src/components/editors/CubeIntegerField.tsx +51 -0
- package/src/components/editors/CubeJoinEditor.tsx +34 -131
- package/src/components/editors/CubeJoinKeyRows.tsx +183 -0
- package/src/components/editors/CubeNodeEditorPanel.tsx +103 -29
- package/src/components/editors/CubeNodeEditorPopper.tsx +183 -0
- package/src/components/editors/CubeNodeEditorRegistry.ts +41 -0
- package/src/components/editors/CubePartitionEditor.tsx +208 -0
- package/src/components/editors/CubeRenameEditor.tsx +148 -0
- package/src/components/editors/CubeRestrictEditor.tsx +103 -0
- package/src/components/editors/CubeRowCountEditor.tsx +53 -0
- package/src/components/editors/CubeSliceEditor.tsx +69 -0
- package/src/components/editors/CubeSortEditor.tsx +84 -0
- package/src/components/editors/CubeSortRowEditor.tsx +176 -0
- package/src/components/editors/CubeSourceEditor.tsx +42 -40
- package/src/components/editors/CubeValueEditor.tsx +2 -1
- package/src/components/editors/CubeWarehouseControl.tsx +113 -0
- package/src/components/editors/useCubeNodeEditorDismiss.ts +103 -0
- package/src/components/examples/CubeExamplesDialog.tsx +199 -0
- package/src/components/grid/CubeGridRegion.tsx +49 -10
- package/src/components/grid/CubeGridValues.ts +55 -0
- package/src/components/grid/CubeResultGrid.tsx +83 -13
- package/src/components/palette/CubePalette.tsx +33 -15
- package/src/components/source-picker/CubeDataProductTab.tsx +392 -0
- package/src/components/source-picker/CubeDirectConnectionTab.tsx +340 -0
- package/src/components/source-picker/CubeIngestTab.tsx +232 -0
- package/src/components/source-picker/CubeInlineModelTab.tsx +191 -0
- package/src/components/source-picker/CubePickerStep.tsx +49 -0
- package/src/components/source-picker/CubeProjectTab.tsx +114 -0
- package/src/components/source-picker/CubeSourcePicker.tsx +62 -227
- package/src/components/spec-transfer/CubeSpecTransferDialog.tsx +1 -1
- package/src/graph-manager/CubeConnectionExplorer.ts +106 -0
- package/src/graph-manager/CubeDataProduct.ts +150 -0
- package/src/graph-manager/CubeDataProductCatalog.ts +245 -0
- package/src/graph-manager/CubeDirectConnection.ts +67 -0
- package/src/graph-manager/CubeEngine.ts +57 -1
- package/src/graph-manager/CubeIngest.ts +144 -0
- package/src/graph-manager/CubeIngestCatalog.ts +169 -0
- package/src/graph-manager/CubeLakehouseEnvironment.ts +27 -0
- package/src/graph-manager/CubeModelOutlineHelper.ts +26 -0
- package/src/graph-manager/CubeProject.ts +117 -0
- package/src/graph-manager/CubeProjectCatalog.ts +40 -0
- package/src/graph-manager/protocol/pure/CubeEngineBuilder.ts +145 -1
- package/src/graph-manager/protocol/pure/v1/V1_CubeDataProductArtifact.ts +251 -0
- package/src/graph-manager/protocol/pure/v1/V1_CubeDataProductModel.ts +101 -0
- package/src/graph-manager/protocol/pure/v1/V1_CubeDirectConnection.ts +339 -0
- package/src/graph-manager/protocol/pure/v1/V1_CubeDirectModel.ts +151 -0
- package/src/graph-manager/protocol/pure/v1/V1_CubeEngineErrors.ts +45 -4
- package/src/graph-manager/protocol/pure/v1/V1_CubeExpression.ts +89 -0
- package/src/graph-manager/protocol/pure/v1/V1_CubeIngestDefinition.ts +201 -0
- package/src/graph-manager/protocol/pure/v1/V1_CubeIngestModel.ts +183 -0
- package/src/graph-manager/protocol/pure/v1/V1_CubeLakehouseEnvironmentResolver.ts +141 -0
- package/src/graph-manager/protocol/pure/v1/V1_CubeLambdaSerializer.ts +84 -4
- package/src/graph-manager/protocol/pure/v1/V1_CubeModelOutlineBuilder.ts +89 -3
- package/src/graph-manager/protocol/pure/v1/V1_CubeSchemaExploration.ts +361 -0
- package/src/graph-manager/protocol/pure/v1/V1_LegendCubeConnectionExplorer.ts +116 -0
- package/src/graph-manager/protocol/pure/v1/V1_LegendCubeDataProductCatalog.ts +744 -0
- package/src/graph-manager/protocol/pure/v1/V1_LegendCubeEngine.ts +967 -24
- package/src/graph-manager/protocol/pure/v1/V1_LegendCubeIngestCatalog.ts +459 -0
- package/src/graph-manager/protocol/pure/v1/V1_LegendCubeProjectCatalog.ts +147 -0
- package/src/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeConnectionExplorerTestUtils.ts +61 -0
- package/src/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeDataProductFixtures.ts +337 -0
- package/src/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeDataProductSearchFixtures.ts +206 -0
- package/src/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeEngineTestUtils.ts +48 -4
- package/src/index.ts +20 -0
- package/src/stores/CubeAddPlacement.ts +67 -0
- package/src/stores/CubeDataProductRecheck.ts +93 -0
- package/src/stores/CubeDataProductRuntimeState.ts +256 -0
- package/src/stores/CubeDataProductWarehouse.ts +40 -0
- package/src/stores/CubeEditorState.ts +621 -68
- package/src/stores/CubeEntrySource.ts +278 -0
- package/src/stores/CubeExamples.ts +457 -0
- package/src/stores/CubeExamplesState.ts +108 -0
- package/src/stores/CubeExecutionState.ts +60 -8
- package/src/stores/CubeExtendTyping.ts +291 -0
- package/src/stores/CubeGridQuickActions.ts +184 -0
- package/src/stores/CubeHost.ts +71 -1
- package/src/stores/CubeIngestRecheck.ts +92 -0
- package/src/stores/CubeNodeEditorState.ts +348 -10
- package/src/stores/CubeShowPureState.ts +33 -8
- package/src/stores/CubeSourcePickerState.ts +160 -330
- package/src/stores/CubeSpecTransferState.ts +2 -2
- package/src/stores/LocalModelCatalog.ts +22 -3
- package/src/stores/editors/CubeAggregationRows.ts +299 -0
- package/src/stores/editors/CubeConcatDraft.ts +49 -0
- package/src/stores/editors/CubeDifferenceDraft.ts +147 -0
- package/src/stores/editors/CubeExtendDraft.ts +532 -0
- package/src/stores/editors/CubeGroupDraft.ts +145 -0
- package/src/stores/editors/CubeIntegerText.ts +34 -0
- package/src/stores/editors/CubeJoinDraft.ts +170 -54
- package/src/stores/editors/CubeJoinKeyPairs.ts +68 -0
- package/src/stores/editors/CubeNodeDraft.ts +26 -6
- package/src/stores/editors/CubeNodeDraftRegistry.ts +60 -1
- package/src/stores/editors/CubePartitionDraft.ts +214 -0
- package/src/stores/editors/CubeRenameDraft.ts +110 -0
- package/src/stores/editors/CubeRestrictDraft.ts +83 -0
- package/src/stores/editors/CubeRowCountDraft.ts +69 -0
- package/src/stores/editors/CubeSliceDraft.ts +87 -0
- package/src/stores/editors/CubeSortDraft.ts +98 -0
- package/src/stores/editors/CubeSortRows.ts +84 -0
- package/src/stores/fixtures/CubeNorthwindModel.ts +103 -88
- package/src/stores/fixtures/CubeSampleSql.ts +85 -0
- package/src/stores/fixtures/CubeSportsModel.ts +182 -0
- package/src/stores/fixtures/CubeTradesModel.ts +241 -0
- package/src/stores/source-picker/CubeCsvSetupSql.ts +444 -0
- package/src/stores/source-picker/CubeDataProductTabState.ts +839 -0
- package/src/stores/source-picker/CubeDirectConnectionTabState.ts +647 -0
- package/src/stores/source-picker/CubeIngestTabState.ts +551 -0
- package/src/stores/source-picker/CubeInlineModelTabState.ts +448 -0
- package/src/stores/source-picker/CubeProjectTabState.ts +218 -0
- package/src/stores/source-picker/CubeSourcePickerTab.ts +50 -0
- package/tsconfig.json +104 -0
|
@@ -15,12 +15,13 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import { PanelLoadingIndicator } from '@finos/legend-art';
|
|
18
|
-
import { flowResult } from 'mobx';
|
|
19
18
|
import { observer } from 'mobx-react-lite';
|
|
20
19
|
import { useState } from 'react';
|
|
21
20
|
import { EXECUTE_SHORTCUT_LABEL } from '../../__lib__/LegendCubeCommand.js';
|
|
21
|
+
import { getCubeWarehouseErrorHint } from '../../__lib__/LegendCubeDataProductLabels.js';
|
|
22
22
|
import { CUBE_PENDING_LABEL, formatDisabledReasons, getRowLimitError, getTruncationMessage, ROW_LIMIT_WARNING_THRESHOLD, } from '../../__lib__/LegendCubeLabels.js';
|
|
23
23
|
import { LEGEND_CUBE_TEST_ID } from '../../__lib__/LegendCubeTesting.js';
|
|
24
|
+
import { CubeDataProductRunErrorKind, } from '../../stores/CubeDataProductRuntimeState.js';
|
|
24
25
|
import { CubeButton } from '../CubeButton.js';
|
|
25
26
|
import { CubeResultGrid } from './CubeResultGrid.js';
|
|
26
27
|
import { formatDuration } from './CubeGridValues.js';
|
|
@@ -46,16 +47,14 @@ const CubeRowLimitInput = observer((props) => {
|
|
|
46
47
|
});
|
|
47
48
|
const CubeGridToolbar = observer((props) => {
|
|
48
49
|
const { editorState, showSql, onToggleSql } = props;
|
|
49
|
-
const { execution
|
|
50
|
-
const { applicationStore } = host;
|
|
50
|
+
const { execution } = editorState;
|
|
51
51
|
const { result } = execution;
|
|
52
52
|
const disabledReasons = execution.disabledReasons;
|
|
53
|
-
const execute = () => {
|
|
54
|
-
flowResult(execution.execute()).catch(applicationStore.alertUnhandledError);
|
|
55
|
-
};
|
|
56
53
|
return (_jsxs("div", { className: "flex h-8 shrink-0 items-center gap-3 border-b border-[var(--color-border-default)] bg-[var(--color-bg-panel-header)] px-2", "data-testid": LEGEND_CUBE_TEST_ID.GRID_TOOLBAR, children: [execution.isRunning ? (_jsx(CubeButton, { title: "Stop the run", onClick: () => execution.stop(), children: "Stop" })) : (_jsx(CubeButton, { primary: true, disabled: !execution.canExecute, title: disabledReasons.length
|
|
57
54
|
? `${formatDisabledReasons(disabledReasons)}\n(${EXECUTE_SHORTCUT_LABEL})`
|
|
58
|
-
: `Run the query up to the selected node (${EXECUTE_SHORTCUT_LABEL})`,
|
|
55
|
+
: `Run the query up to the selected node (${EXECUTE_SHORTCUT_LABEL})`,
|
|
56
|
+
// the node editor's edits apply first, so they run (spec §17.5)
|
|
57
|
+
onClick: () => editorState.executeEdited(), children: "Execute" })), _jsx(CubeRowLimitInput, { editorState: editorState }), execution.isRunning && (_jsx("span", { className: "text-base text-[var(--color-text-secondary)]", children: CUBE_PENDING_LABEL.EXECUTING_QUERY })), execution.isStale && (_jsx("span", { className: "rounded-sm bg-[var(--color-status-warn-bg)] px-1 text-base text-[var(--color-status-warn)]", title: "The query, the warehouse or the row limit changed since this run", children: "Stale: execute again to refresh" })), result && !execution.isRunning && (_jsxs(_Fragment, { children: [_jsx("span", { className: "text-base text-[var(--color-text-secondary)]", children: `${result.rows.length.toLocaleString('en-US')} row${result.rows.length === 1 ? '' : 's'} in ${formatDuration(result.durationMs)}` }), result.limited && (_jsx("span", { className: "text-base text-[var(--color-status-warn)]", children: getTruncationMessage(result.rowLimit) })), result.sql.length > 0 && (_jsx(CubeButton, { "aria-expanded": showSql, onClick: onToggleSql, children: showSql ? 'Hide SQL' : 'Show SQL' }))] }))] }));
|
|
59
58
|
});
|
|
60
59
|
/** The SQL the run's database ran, with Copy */
|
|
61
60
|
const CubeSqlPanel = observer((props) => {
|
|
@@ -72,6 +71,18 @@ const CubeSqlPanel = observer((props) => {
|
|
|
72
71
|
};
|
|
73
72
|
return (_jsxs("div", { className: "flex max-h-40 shrink-0 gap-2 overflow-auto border-b border-[var(--color-border-default)] p-2", "data-testid": LEGEND_CUBE_TEST_ID.SQL_PANEL, children: [_jsx("div", { className: "min-w-0 flex-1", children: sql.map((statement, index) => (_jsx("pre", { className: "whitespace-pre-wrap font-mono text-sm", children: statement }, index))) }), _jsx(CubeButton, { onClick: copySql, children: "Copy SQL" })] }));
|
|
74
73
|
});
|
|
74
|
+
/**
|
|
75
|
+
* On a data product cube, what to do about a run refused for its warehouse,
|
|
76
|
+
* or for lack of access to the data: links to ask for it in the marketplace
|
|
77
|
+
*/
|
|
78
|
+
const CubeDataProductRunErrorHelp = observer((props) => {
|
|
79
|
+
const { runtime } = props;
|
|
80
|
+
if (runtime.runErrorKind === CubeDataProductRunErrorKind.WAREHOUSE) {
|
|
81
|
+
return (_jsx("div", { className: "mt-1 text-[var(--color-text-secondary)]", children: getCubeWarehouseErrorHint(runtime.effectiveWarehouse ?? '', runtime.canEditWarehouse) }));
|
|
82
|
+
}
|
|
83
|
+
const links = runtime.accessRequestLinks;
|
|
84
|
+
return links.length ? (_jsx("div", { className: "mt-1 flex flex-wrap gap-x-3", children: links.map((link) => (_jsx("a", { className: "text-[var(--color-accent)] underline", href: link.url, target: "_blank", rel: "noopener noreferrer", children: link.label }, link.key))) })) : null;
|
|
85
|
+
});
|
|
75
86
|
const CubeExecutionError = observer((props) => {
|
|
76
87
|
const error = props.editorState.execution.error;
|
|
77
88
|
if (!error) {
|
|
@@ -81,7 +92,7 @@ const CubeExecutionError = observer((props) => {
|
|
|
81
92
|
const firstLine = isCut
|
|
82
93
|
? `${error.firstLine.slice(0, MAX_ERROR_LINE_LENGTH)}…`
|
|
83
94
|
: error.firstLine;
|
|
84
|
-
return (_jsxs("div", { className: "m-2 rounded-sm border border-[var(--color-status-error)] bg-[var(--color-status-error-bg)] p-2 text-base", "data-testid": LEGEND_CUBE_TEST_ID.EXECUTION_ERROR, role: "alert", children: [_jsx("div", { className: "font-medium text-[var(--color-status-error)]", title: isCut ? error.firstLine : undefined, children: firstLine }), (isCut || error.detail !== error.firstLine) && (_jsxs("details", { className: "mt-1", children: [_jsx("summary", { className: "cursor-pointer text-[var(--color-text-secondary)]", children: "Details" }), _jsx("pre", { className: "mt-1 max-h-60 overflow-auto whitespace-pre-wrap text-sm", children: error.detail })] }))] }));
|
|
95
|
+
return (_jsxs("div", { className: "m-2 rounded-sm border border-[var(--color-status-error)] bg-[var(--color-status-error-bg)] p-2 text-base", "data-testid": LEGEND_CUBE_TEST_ID.EXECUTION_ERROR, role: "alert", children: [_jsx("div", { className: "font-medium text-[var(--color-status-error)]", title: isCut ? error.firstLine : undefined, children: firstLine }), (isCut || error.detail !== error.firstLine) && (_jsxs("details", { className: "mt-1", children: [_jsx("summary", { className: "cursor-pointer text-[var(--color-text-secondary)]", children: "Details" }), _jsx("pre", { className: "mt-1 max-h-60 overflow-auto whitespace-pre-wrap text-sm", children: error.detail })] })), _jsx(CubeDataProductRunErrorHelp, { runtime: props.editorState.dataProductRuntime })] }));
|
|
85
96
|
});
|
|
86
97
|
/** The results: Execute, the row limit and the run's stats above the grid (PLAN §9) */
|
|
87
98
|
export const CubeGridRegion = observer((props) => {
|
|
@@ -89,6 +100,6 @@ export const CubeGridRegion = observer((props) => {
|
|
|
89
100
|
const { execution, host } = editorState;
|
|
90
101
|
const [showSql, setShowSql] = useState(false);
|
|
91
102
|
const darkMode = !host.applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled;
|
|
92
|
-
return (_jsxs("div", { className: "flex h-full flex-col bg-[var(--color-bg-panel)]", "data-testid": LEGEND_CUBE_TEST_ID.GRID_REGION, children: [_jsx(PanelLoadingIndicator, { isLoading: execution.isRunning }), _jsx(CubeGridToolbar, { editorState: editorState, showSql: showSql, onToggleSql: () => setShowSql(!showSql) }), showSql && !execution.isRunning && (_jsx(CubeSqlPanel, { editorState: editorState })), _jsx("div", { className: "min-h-0 flex-1", children: execution.error ? (_jsx(CubeExecutionError, { editorState: editorState })) : execution.result ? (_jsx(CubeResultGrid, { result: execution.result, darkMode: darkMode }, execution.result.id)) : (_jsx("div", { className: "flex h-full items-center justify-center text-base text-[var(--color-text-secondary)]", children: "Execute the query to see its rows." })) })] }));
|
|
103
|
+
return (_jsxs("div", { className: "flex h-full flex-col bg-[var(--color-bg-panel)]", "data-testid": LEGEND_CUBE_TEST_ID.GRID_REGION, children: [_jsx(PanelLoadingIndicator, { isLoading: execution.isRunning }), _jsx(CubeGridToolbar, { editorState: editorState, showSql: showSql, onToggleSql: () => setShowSql(!showSql) }), showSql && !execution.isRunning && (_jsx(CubeSqlPanel, { editorState: editorState })), _jsx("div", { className: "min-h-0 flex-1", children: execution.error ? (_jsx(CubeExecutionError, { editorState: editorState })) : execution.result ? (_jsx(CubeResultGrid, { editorState: editorState, result: execution.result, darkMode: darkMode }, execution.result.id)) : (_jsx("div", { className: "flex h-full items-center justify-center text-base text-[var(--color-text-secondary)]", children: "Execute the query to see its rows." })) })] }));
|
|
93
104
|
});
|
|
94
105
|
//# sourceMappingURL=CubeGridRegion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CubeGridRegion.js","sourceRoot":"","sources":["../../../src/components/grid/CubeGridRegion.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CubeGridRegion.js","sourceRoot":"","sources":["../../../src/components/grid/CubeGridRegion.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EACL,2BAA2B,GAE5B,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,k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AC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,QAAQ,GACZ,CAAC,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,mCAAmC,CAAC;IAC3E,OAAO,CACL,eACE,SAAS,EAAC,iDAAiD,iBAC9C,mBAAmB,CAAC,WAAW,aAE5C,KAAC,qBAAqB,IAAC,SAAS,EAAE,SAAS,CAAC,SAAS,GAAI,EACzD,KAAC,eAAe,IACd,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,GACvC,EACD,OAAO,IAAI,CAAC,SAAS,CAAC,SAAS,IAAI,CAClC,KAAC,YAAY,IAAC,WAAW,EAAE,WAAW,GAAI,CAC3C,EACD,cAAK,SAAS,EAAC,gBAAgB,YAC5B,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CACjB,KAAC,kBAAkB,IAAC,WAAW,EAAE,WAAW,GAAI,CACjD,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CACrB,KAAC,cAAc,IAEb,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,SAAS,CAAC,MAAM,EACxB,QAAQ,EAAE,QAAQ,IAHb,SAAS,CAAC,MAAM,CAAC,EAAE,CAIxB,CACH,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAC,sFAAsF,mDAE/F,CACP,GACG,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -22,4 +22,20 @@ export declare const compareNumberText: (left: string, right: string) => number;
|
|
|
22
22
|
export declare const compareCellValues: (left: CubeResultValue | undefined, right: CubeResultValue | undefined) => number;
|
|
23
23
|
/** A run's duration for the toolbar: milliseconds under a second, else seconds */
|
|
24
24
|
export declare const formatDuration: (durationMs: number) => string;
|
|
25
|
+
/** The decimal places a Float value shows in the grid */
|
|
26
|
+
export declare const CUBE_GRID_FLOAT_DECIMAL_PLACES = 2;
|
|
27
|
+
/**
|
|
28
|
+
* Number text with a comma between each group of three digits of its whole
|
|
29
|
+
* part ("31102024.71" reads "31,102,024.71"); any other text is kept as it is
|
|
30
|
+
*/
|
|
31
|
+
export declare const groupThousands: (text: string) => string;
|
|
32
|
+
/**
|
|
33
|
+
* How the grid shows a value of a column of the family (PLAN §9, user,
|
|
34
|
+
* 2026-10-10): Decimal and Number values keep every digit,
|
|
35
|
+
* their thousands grouped; Float values are rounded to
|
|
36
|
+
* `CUBE_GRID_FLOAT_DECIMAL_PLACES` places, grouped too; Integer values, and
|
|
37
|
+
* everything else, show as they are, so ids and years get no commas. The
|
|
38
|
+
* value itself is unchanged, so copying a cell copies its exact value.
|
|
39
|
+
*/
|
|
40
|
+
export declare const formatCellValue: (value: Exclude<CubeResultValue, null>, family: TypeFamily) => string;
|
|
25
41
|
//# sourceMappingURL=CubeGridValues.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CubeGridValues.d.ts","sourceRoot":"","sources":["../../../src/components/grid/CubeGridValues.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAazE,eAAO,MAAM,eAAe,GAAI,QAAQ,UAAU,KAAG,OACvB,CAAC;AA6C/B,qHAAqH;AACrH,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,KAAG,MAY/D,CAAC;AAEF,6GAA6G;AAC7G,eAAO,MAAM,iBAAiB,GAC5B,MAAM,eAAe,GAAG,SAAS,EACjC,OAAO,eAAe,GAAG,SAAS,KACjC,MAuBF,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,cAAc,GAAI,YAAY,MAAM,KAAG,MAGT,CAAC"}
|
|
1
|
+
{"version":3,"file":"CubeGridValues.d.ts","sourceRoot":"","sources":["../../../src/components/grid/CubeGridValues.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAazE,eAAO,MAAM,eAAe,GAAI,QAAQ,UAAU,KAAG,OACvB,CAAC;AA6C/B,qHAAqH;AACrH,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,KAAG,MAY/D,CAAC;AAEF,6GAA6G;AAC7G,eAAO,MAAM,iBAAiB,GAC5B,MAAM,eAAe,GAAG,SAAS,EACjC,OAAO,eAAe,GAAG,SAAS,KACjC,MAuBF,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,cAAc,GAAI,YAAY,MAAM,KAAG,MAGT,CAAC;AAE5C,yDAAyD;AACzD,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAIhD;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,MAO7C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,OAAO,CAAC,eAAe,EAAE,IAAI,CAAC,EACrC,QAAQ,UAAU,KACjB,MAwBF,CAAC"}
|
|
@@ -92,4 +92,48 @@ export const compareCellValues = (left, right) => {
|
|
|
92
92
|
export const formatDuration = (durationMs) => durationMs < 1000
|
|
93
93
|
? `${Math.round(durationMs)} ms`
|
|
94
94
|
: `${(durationMs / 1000).toFixed(1)} s`;
|
|
95
|
+
/** The decimal places a Float value shows in the grid */
|
|
96
|
+
export const CUBE_GRID_FLOAT_DECIMAL_PLACES = 2;
|
|
97
|
+
const PLAIN_NUMBER_TEXT = /^(?<sign>-?)(?<whole>\d+)(?<fraction>\.\d*)?$/u;
|
|
98
|
+
/**
|
|
99
|
+
* Number text with a comma between each group of three digits of its whole
|
|
100
|
+
* part ("31102024.71" reads "31,102,024.71"); any other text is kept as it is
|
|
101
|
+
*/
|
|
102
|
+
export const groupThousands = (text) => {
|
|
103
|
+
const groups = PLAIN_NUMBER_TEXT.exec(text)?.groups;
|
|
104
|
+
if (!groups) {
|
|
105
|
+
return text;
|
|
106
|
+
}
|
|
107
|
+
const { sign = '', whole = '', fraction = '' } = groups;
|
|
108
|
+
return `${sign}${whole.replace(/\B(?=(?:\d{3})+(?!\d))/gu, ',')}${fraction}`;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* How the grid shows a value of a column of the family (PLAN §9, user,
|
|
112
|
+
* 2026-10-10): Decimal and Number values keep every digit,
|
|
113
|
+
* their thousands grouped; Float values are rounded to
|
|
114
|
+
* `CUBE_GRID_FLOAT_DECIMAL_PLACES` places, grouped too; Integer values, and
|
|
115
|
+
* everything else, show as they are, so ids and years get no commas. The
|
|
116
|
+
* value itself is unchanged, so copying a cell copies its exact value.
|
|
117
|
+
*/
|
|
118
|
+
export const formatCellValue = (value, family) => {
|
|
119
|
+
const text = String(value);
|
|
120
|
+
switch (family) {
|
|
121
|
+
case TypeFamily.DECIMAL:
|
|
122
|
+
case TypeFamily.NUMBER:
|
|
123
|
+
return groupThousands(text);
|
|
124
|
+
case TypeFamily.FLOAT: {
|
|
125
|
+
const number = typeof value === 'number' ? value : Number(text);
|
|
126
|
+
if (typeof value === 'boolean' ||
|
|
127
|
+
text.trim() === '' ||
|
|
128
|
+
!Number.isFinite(number)) {
|
|
129
|
+
return text;
|
|
130
|
+
}
|
|
131
|
+
const rounded = number.toFixed(CUBE_GRID_FLOAT_DECIMAL_PLACES);
|
|
132
|
+
// a value that rounds to zero shows no sign
|
|
133
|
+
return groupThousands(Number(rounded) === 0 ? rounded.replace(/^-/u, '') : rounded);
|
|
134
|
+
}
|
|
135
|
+
default:
|
|
136
|
+
return text;
|
|
137
|
+
}
|
|
138
|
+
};
|
|
95
139
|
//# sourceMappingURL=CubeGridValues.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CubeGridValues.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,CAAC,IAAI,CAAC,CAAC;QAC9B,KAAK,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;YACtB,MAAM,MAAM,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAChE,IACE,OAAO,KAAK,KAAK,SAAS;gBAC1B,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE;gBAClB,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EACxB,CAAC;gBACD,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC;YAC/D,4CAA4C;YAC5C,OAAO,cAAc,CACnB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAC7D,CAAC;QACJ,CAAC;QACD;YACE,OAAO,IAAI,CAAC;IAChB,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -13,14 +13,27 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { type DataGridDefaultMenuItem, type DataGridGetContextMenuItemsParams, type DataGridMenuItemDef } from '@finos/legend-lego/data-grid';
|
|
17
|
+
import type { CubeResultValue } from '../../graph-manager/CubeEngine.js';
|
|
18
|
+
import type { CubeEditorState } from '../../stores/CubeEditorState.js';
|
|
16
19
|
import type { CubeExecutionResult } from '../../stores/CubeExecutionState.js';
|
|
20
|
+
type CubeRow = readonly CubeResultValue[];
|
|
21
|
+
/**
|
|
22
|
+
* The grid's context menu (spec §12.4): on a cell, its quick actions, then
|
|
23
|
+
* ag-grid's own items, which M7 curates; elsewhere ag-grid's only. Read when
|
|
24
|
+
* the menu opens, so it reflects the cube and the run as they are then.
|
|
25
|
+
*/
|
|
26
|
+
export declare const getCubeGridContextMenuItems: (editorState: CubeEditorState, params: DataGridGetContextMenuItemsParams<CubeRow>) => (DataGridDefaultMenuItem | DataGridMenuItemDef<CubeRow>)[];
|
|
17
27
|
/**
|
|
18
28
|
* The rows of a run (PLAN §9): columns from Cube's own schema of the capture
|
|
19
29
|
* node, by position, so any column name works. Numbers are right-aligned and
|
|
20
|
-
* shown and sorted exactly as the engine wrote them.
|
|
30
|
+
* shown and sorted exactly as the engine wrote them. A cell's context menu
|
|
31
|
+
* offers the quick actions (`getCubeGridContextMenuItems`).
|
|
21
32
|
*/
|
|
22
33
|
export declare const CubeResultGrid: import("react").MemoExoticComponent<(props: {
|
|
34
|
+
editorState: CubeEditorState;
|
|
23
35
|
result: CubeExecutionResult;
|
|
24
36
|
darkMode: boolean;
|
|
25
37
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
38
|
+
export {};
|
|
26
39
|
//# sourceMappingURL=CubeResultGrid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CubeResultGrid.d.ts","sourceRoot":"","sources":["../../../src/components/grid/CubeResultGrid.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"CubeResultGrid.d.ts","sourceRoot":"","sources":["../../../src/components/grid/CubeResultGrid.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAIL,KAAK,uBAAuB,EAC5B,KAAK,iCAAiC,EACtC,KAAK,mBAAmB,EACzB,MAAM,8BAA8B,CAAC;AAItC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAQ9E,KAAK,OAAO,GAAG,SAAS,eAAe,EAAE,CAAC;AAK1C;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,GACtC,aAAa,eAAe,EAC5B,QAAQ,iCAAiC,CAAC,OAAO,CAAC,KACjD,CAAC,uBAAuB,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC,EAyB1D,CAAC;AAqBF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,8CACjB;IACN,WAAW,EAAE,eAAe,CAAC;IAC7B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;CACnB,6CA2CF,CAAC"}
|
|
@@ -16,26 +16,74 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
16
16
|
*/
|
|
17
17
|
import { clsx } from '@finos/legend-art';
|
|
18
18
|
import { DataGrid, } from '@finos/legend-lego/data-grid';
|
|
19
|
-
import { memo, useMemo } from 'react';
|
|
19
|
+
import { memo, useCallback, useMemo } from 'react';
|
|
20
20
|
import { NULL_CELL_TEXT } from '../../__lib__/LegendCubeLabels.js';
|
|
21
21
|
import { LEGEND_CUBE_TEST_ID } from '../../__lib__/LegendCubeTesting.js';
|
|
22
|
-
import {
|
|
23
|
-
|
|
22
|
+
import { getCubeGridQuickActions } from '../../stores/CubeGridQuickActions.js';
|
|
23
|
+
import { compareCellValues, formatCellValue, isNumericFamily, } from './CubeGridValues.js';
|
|
24
|
+
/** A column's id in the grid: its position, as `c<position>` */
|
|
25
|
+
const COLUMN_ID_PREFIX = 'c';
|
|
26
|
+
/**
|
|
27
|
+
* The grid's context menu (spec §12.4): on a cell, its quick actions, then
|
|
28
|
+
* ag-grid's own items, which M7 curates; elsewhere ag-grid's only. Read when
|
|
29
|
+
* the menu opens, so it reflects the cube and the run as they are then.
|
|
30
|
+
*/
|
|
31
|
+
export const getCubeGridContextMenuItems = (editorState, params) => {
|
|
32
|
+
const defaultItems = params.defaultItems ?? [];
|
|
33
|
+
const colId = params.column?.getColId();
|
|
34
|
+
if (!colId?.startsWith(COLUMN_ID_PREFIX)) {
|
|
35
|
+
return defaultItems;
|
|
36
|
+
}
|
|
37
|
+
const position = Number(colId.slice(COLUMN_ID_PREFIX.length));
|
|
38
|
+
const cell = params.node?.data?.[position] ?? null;
|
|
39
|
+
const actions = getCubeGridQuickActions(editorState, position, cell);
|
|
40
|
+
if (!actions.length) {
|
|
41
|
+
return defaultItems;
|
|
42
|
+
}
|
|
43
|
+
return [
|
|
44
|
+
...actions.map((quickAction) => {
|
|
45
|
+
const tooltip = quickAction.disabledReason ?? quickAction.hint;
|
|
46
|
+
return {
|
|
47
|
+
name: quickAction.label,
|
|
48
|
+
disabled: quickAction.disabledReason !== undefined,
|
|
49
|
+
...(tooltip === undefined ? {} : { tooltip }),
|
|
50
|
+
action: () => quickAction.apply(),
|
|
51
|
+
};
|
|
52
|
+
}),
|
|
53
|
+
'separator',
|
|
54
|
+
...defaultItems,
|
|
55
|
+
];
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* A cell: its value as the column's family shows it (`formatCellValue`), with
|
|
59
|
+
* the exact value on hover when the two differ
|
|
60
|
+
*/
|
|
61
|
+
const CubeCell = (props) => {
|
|
62
|
+
if (props.value === null || props.value === undefined) {
|
|
63
|
+
return (_jsx("span", { className: "text-[var(--color-text-muted)]", children: NULL_CELL_TEXT }));
|
|
64
|
+
}
|
|
65
|
+
const exact = String(props.value);
|
|
66
|
+
const shown = formatCellValue(props.value, props.family);
|
|
67
|
+
return shown === exact ? _jsx(_Fragment, { children: exact }) : _jsx("span", { title: exact, children: shown });
|
|
68
|
+
};
|
|
24
69
|
/**
|
|
25
70
|
* The rows of a run (PLAN §9): columns from Cube's own schema of the capture
|
|
26
71
|
* node, by position, so any column name works. Numbers are right-aligned and
|
|
27
|
-
* shown and sorted exactly as the engine wrote them.
|
|
72
|
+
* shown and sorted exactly as the engine wrote them. A cell's context menu
|
|
73
|
+
* offers the quick actions (`getCubeGridContextMenuItems`).
|
|
28
74
|
*/
|
|
29
75
|
export const CubeResultGrid = memo((props) => {
|
|
30
|
-
const { result, darkMode } = props;
|
|
76
|
+
const { editorState, result, darkMode } = props;
|
|
77
|
+
const getContextMenuItems = useCallback((params) => getCubeGridContextMenuItems(editorState, params), [editorState]);
|
|
31
78
|
const columnDefs = useMemo(() => result.schema.columns.map((column, position) => {
|
|
32
79
|
const numeric = isNumericFamily(column.type.family);
|
|
33
80
|
return {
|
|
34
|
-
colId:
|
|
81
|
+
colId: `${COLUMN_ID_PREFIX}${position}`,
|
|
35
82
|
headerName: column.name,
|
|
36
83
|
headerTooltip: `${column.type.displayName}${column.nullable ? '?' : ''} (${column.type.fullName})`,
|
|
37
84
|
valueGetter: (params) => params.data?.[position] ?? null,
|
|
38
85
|
cellRenderer: CubeCell,
|
|
86
|
+
cellRendererParams: { family: column.type.family },
|
|
39
87
|
...(numeric
|
|
40
88
|
? { type: 'rightAligned', comparator: compareCellValues }
|
|
41
89
|
: {}),
|
|
@@ -44,7 +92,7 @@ export const CubeResultGrid = memo((props) => {
|
|
|
44
92
|
return (_jsx("div", { className: clsx('h-full w-full', {
|
|
45
93
|
'ag-theme-balham': !darkMode,
|
|
46
94
|
'ag-theme-balham-dark': darkMode,
|
|
47
|
-
}), "data-testid": LEGEND_CUBE_TEST_ID.RESULT_GRID, children: _jsx(DataGrid, { rowData: result.rows, columnDefs: columnDefs, suppressFieldDotNotation: true, tooltipShowDelay: 500 }) }));
|
|
95
|
+
}), "data-testid": LEGEND_CUBE_TEST_ID.RESULT_GRID, children: _jsx(DataGrid, { rowData: result.rows, columnDefs: columnDefs, suppressFieldDotNotation: true, tooltipShowDelay: 500, getContextMenuItems: getContextMenuItems }) }));
|
|
48
96
|
});
|
|
49
97
|
CubeResultGrid.displayName = 'CubeResultGrid';
|
|
50
98
|
//# sourceMappingURL=CubeResultGrid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CubeResultGrid.js","sourceRoot":"","sources":["../../../src/components/grid/CubeResultGrid.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO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B,CAAC,WAAW,YAE5C,KAAC,QAAQ,IACP,OAAO,EAAE,MAAM,CAAC,IAAiB,EACjC,UAAU,EAAE,UAAU,EACtB,wBAAwB,EAAE,IAAI,EAC9B,gBAAgB,EAAE,GAAG,EACrB,mBAAmB,EAAE,mBAAmB,GACxC,GACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AACF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CubePalette.d.ts","sourceRoot":"","sources":["../../../src/components/palette/CubePalette.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"CubePalette.d.ts","sourceRoot":"","sources":["../../../src/components/palette/CubePalette.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAgBH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAOvE,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB,gCAAgC,CAAC;AA0FhE;;;;GAIG;AACH,eAAO,MAAM,WAAW,WACd;IAAE,WAAW,EAAE,eAAe,CAAA;CAAE;;CA4DzC,CAAC"}
|
|
@@ -15,44 +15,55 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import { ChevronLeftIcon, ChevronRightIcon, clsx } from '@finos/legend-art';
|
|
18
|
+
import { DataProductAccessPointSource, } from '@finos/legend-cube';
|
|
18
19
|
import { observer } from 'mobx-react-lite';
|
|
19
20
|
import { useRef } from 'react';
|
|
20
21
|
import { useDrag } from 'react-dnd';
|
|
21
|
-
import { READ_ONLY_CUBE_TITLE } from '../../__lib__/LegendCubeLabels.js';
|
|
22
|
+
import { OTHER_SOURCE_KIND_TITLE, READ_ONLY_CUBE_TITLE, } from '../../__lib__/LegendCubeLabels.js';
|
|
22
23
|
import { LEGEND_CUBE_TEST_ID } from '../../__lib__/LegendCubeTesting.js';
|
|
24
|
+
import { addCubeNode } from '../../stores/CubeAddPlacement.js';
|
|
23
25
|
import { CUBE_DND_TYPE, } from '../canvas/CubeCanvasDnd.js';
|
|
24
26
|
import { CubeNodeIcon } from '../CubeNodeIcon.js';
|
|
25
27
|
/** Shown in the palette while the cube has no node yet (spec §17.2, worded for the canvas) */
|
|
26
28
|
export const PALETTE_EMPTY_HINT = 'Drag items onto the canvas.';
|
|
27
29
|
/** What an item does, for its tooltip */
|
|
28
30
|
const describeItem = (definition) => definition.kind === 'source'
|
|
29
|
-
?
|
|
30
|
-
: '
|
|
31
|
+
? `Click, or drop it on the canvas, to pick ${definition.type === DataProductAccessPointSource.TYPE ? 'an access point' : 'a table'}`
|
|
32
|
+
: 'Click, or drop it on the canvas, to add it after the selected node; drop it on a node to add it after that node';
|
|
31
33
|
const CubePaletteItem = observer((props) => {
|
|
32
34
|
const { editorState, definition, collapsed } = props;
|
|
33
35
|
const { readOnly } = editorState;
|
|
36
|
+
// a source of the other kind than the cube's can't be added (PLAN §6.8)
|
|
37
|
+
const otherKind = !readOnly &&
|
|
38
|
+
definition.kind === 'source' &&
|
|
39
|
+
!editorState.canAddNode(definition.type);
|
|
40
|
+
const disabled = readOnly || otherKind;
|
|
34
41
|
const ref = useRef(null);
|
|
35
42
|
const [, dragConnector] = useDrag(() => ({
|
|
36
43
|
type: CUBE_DND_TYPE.PALETTE_ITEM,
|
|
37
44
|
item: { nodeType: definition.type },
|
|
38
|
-
canDrag: () => !editorState.readOnly
|
|
39
|
-
|
|
45
|
+
canDrag: () => !editorState.readOnly &&
|
|
46
|
+
(definition.kind !== 'source' ||
|
|
47
|
+
editorState.canAddNode(definition.type)),
|
|
48
|
+
}), [editorState, definition.type, definition.kind]);
|
|
40
49
|
dragConnector(ref);
|
|
41
50
|
const label = `${definition.label}${definition.beta ? ' (BETA)' : ''}`;
|
|
42
51
|
const add = () => {
|
|
43
|
-
if (!
|
|
44
|
-
editorState
|
|
52
|
+
if (!disabled) {
|
|
53
|
+
addCubeNode(editorState, definition.type);
|
|
45
54
|
}
|
|
46
55
|
};
|
|
47
56
|
return (
|
|
48
57
|
// a div, not a button: browsers won't drag a button
|
|
49
|
-
_jsxs("div", { ref: ref, role: "button", tabIndex:
|
|
58
|
+
_jsxs("div", { ref: ref, role: "button", tabIndex: disabled ? -1 : 0, "aria-disabled": disabled, "aria-label": label, className: clsx('flex h-8 shrink-0 items-center gap-2 px-3 text-base', disabled
|
|
50
59
|
? 'cursor-not-allowed text-[var(--color-text-disabled)]'
|
|
51
60
|
: 'cursor-grab hover:bg-[var(--color-bg-hover)]'), title: readOnly
|
|
52
61
|
? READ_ONLY_CUBE_TITLE
|
|
53
|
-
:
|
|
54
|
-
?
|
|
55
|
-
:
|
|
62
|
+
: otherKind
|
|
63
|
+
? OTHER_SOURCE_KIND_TITLE
|
|
64
|
+
: collapsed
|
|
65
|
+
? `${label}: ${describeItem(definition)}`
|
|
66
|
+
: describeItem(definition), onClick: add, onKeyDown: (event) => {
|
|
56
67
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
57
68
|
event.preventDefault();
|
|
58
69
|
add();
|
|
@@ -68,6 +79,6 @@ export const CubePalette = observer((props) => {
|
|
|
68
79
|
const { editorState } = props;
|
|
69
80
|
const collapsed = editorState.isPaletteCollapsed;
|
|
70
81
|
const { registry } = editorState;
|
|
71
|
-
return (_jsxs("div", { className: clsx('flex h-full shrink-0 flex-col border-r border-[var(--color-border-default)] bg-[var(--color-bg-panel)]', collapsed ? 'w-10' : 'w-56'), "data-testid": LEGEND_CUBE_TEST_ID.PALETTE, children: [_jsxs("div", { className: "flex h-8 shrink-0 items-center border-b border-[var(--color-border-default)] bg-[var(--color-bg-panel-header)] px-2", children: [!collapsed && (_jsx("span", { className: "min-w-0 flex-1 truncate text-base font-medium", children: "Add to the query" })), _jsx("button", { className: "flex h-6 w-6 shrink-0 items-center justify-center text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)]", title: collapsed ? 'Expand the palette' : 'Collapse the palette', onClick: () => editorState.setPaletteCollapsed(!collapsed), children: collapsed ? _jsx(ChevronRightIcon, {}) : _jsx(ChevronLeftIcon, {}) })] }), _jsxs("div", { className: "flex min-h-0 shrink flex-col overflow-auto py-1", role: "group", "aria-label": "Palette", children: [
|
|
82
|
+
return (_jsxs("div", { className: clsx('flex h-full shrink-0 flex-col border-r border-[var(--color-border-default)] bg-[var(--color-bg-panel)]', collapsed ? 'w-10' : 'w-56'), "data-testid": LEGEND_CUBE_TEST_ID.PALETTE, children: [_jsxs("div", { className: "flex h-8 shrink-0 items-center border-b border-[var(--color-border-default)] bg-[var(--color-bg-panel-header)] px-2", children: [!collapsed && (_jsx("span", { className: "min-w-0 flex-1 truncate text-base font-medium", children: "Add to the query" })), _jsx("button", { className: "flex h-6 w-6 shrink-0 items-center justify-center text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)]", title: collapsed ? 'Expand the palette' : 'Collapse the palette', onClick: () => editorState.setPaletteCollapsed(!collapsed), children: collapsed ? _jsx(ChevronRightIcon, {}) : _jsx(ChevronLeftIcon, {}) })] }), _jsxs("div", { className: "flex min-h-0 shrink flex-col overflow-auto py-1", role: "group", "aria-label": "Palette", children: [editorState.offeredSources.map((definition) => (_jsx(CubePaletteItem, { editorState: editorState, definition: definition, collapsed: collapsed }, definition.type))), _jsx("div", { className: "mx-2 my-1 shrink-0 border-t border-[var(--color-border-default)]", role: "separator" }), registry.transforms.map((definition) => (_jsx(CubePaletteItem, { editorState: editorState, definition: definition, collapsed: collapsed }, definition.type)))] }), !collapsed && editorState.document.query.isEmpty && (_jsx("div", { className: "shrink-0 px-3 py-2 text-sm text-[var(--color-text-muted)]", children: PALETTE_EMPTY_HINT }))] }));
|
|
72
83
|
});
|
|
73
84
|
//# sourceMappingURL=CubePalette.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CubePalette.js","sourceRoot":"","sources":["../../../src/components/palette/CubePalette.tsx"],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
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026-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 CubeDataProductTabState } from '../../stores/source-picker/CubeDataProductTabState.js';
|
|
17
|
+
/**
|
|
18
|
+
* The source dialog's Data Product tab (PLAN §6.8), as Data Cube's selection
|
|
19
|
+
* goes: the mode, a deployed data product, one of its access points, and the
|
|
20
|
+
* warehouse. The dialog's Add adds the access point.
|
|
21
|
+
*/
|
|
22
|
+
export declare const CubeDataProductTab: ((props: {
|
|
23
|
+
tab: CubeDataProductTabState;
|
|
24
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=CubeDataProductTab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CubeDataProductTab.d.ts","sourceRoot":"","sources":["../../../src/components/source-picker/CubeDataProductTab.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkBH,OAAO,EAEL,KAAK,uBAAuB,EAE7B,MAAM,uDAAuD,CAAC;AAiJ/D;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,WACrB;IAAE,GAAG,EAAE,uBAAuB,CAAA;CAAE;;CA4MzC,CAAC"}
|