@finos/legend-cube-builder 0.0.4 → 0.0.5
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 +9 -3
- package/docs/adding-an-operation.md +22 -12
- package/docs/demo/DEMO-FAST-NOTES.md +67 -0
- package/docs/demo/README.md +102 -0
- package/docs/demo/specs/duckdb-sales-pivot.cube.json +110 -0
- package/docs/demo/specs/trades-desks-1-joined.cube.json +123 -0
- package/docs/demo/specs/trades-desks-2-grouped.cube.json +140 -0
- package/docs/demo/specs/trades-desks-3-ranked.cube.json +158 -0
- package/docs/demo/specs/trades-desks-4-extended.cube.json +208 -0
- package/docs/demo/specs/trades-desks-5-final.cube.json +248 -0
- package/docs/hosting.md +50 -3
- package/docs/testing.md +32 -0
- package/lib/__lib__/LegendCubeCommand.d.ts +2 -0
- package/lib/__lib__/LegendCubeCommand.d.ts.map +1 -1
- package/lib/__lib__/LegendCubeCommand.js +7 -0
- package/lib/__lib__/LegendCubeCommand.js.map +1 -1
- package/lib/__lib__/LegendCubeFunctionLabels.d.ts +29 -0
- package/lib/__lib__/LegendCubeFunctionLabels.d.ts.map +1 -0
- package/lib/__lib__/LegendCubeFunctionLabels.js +31 -0
- package/lib/__lib__/LegendCubeFunctionLabels.js.map +1 -0
- package/lib/__lib__/LegendCubeHelpText.d.ts +5 -1
- package/lib/__lib__/LegendCubeHelpText.d.ts.map +1 -1
- package/lib/__lib__/LegendCubeHelpText.js +14 -2
- package/lib/__lib__/LegendCubeHelpText.js.map +1 -1
- package/lib/__lib__/LegendCubeLabels.d.ts +100 -8
- package/lib/__lib__/LegendCubeLabels.d.ts.map +1 -1
- package/lib/__lib__/LegendCubeLabels.js +129 -14
- package/lib/__lib__/LegendCubeLabels.js.map +1 -1
- package/lib/__lib__/LegendCubeProjectSourceLabels.d.ts +26 -0
- package/lib/__lib__/LegendCubeProjectSourceLabels.d.ts.map +1 -0
- package/lib/__lib__/LegendCubeProjectSourceLabels.js +26 -0
- package/lib/__lib__/LegendCubeProjectSourceLabels.js.map +1 -0
- package/lib/__lib__/LegendCubeServiceLabels.d.ts +27 -0
- package/lib/__lib__/LegendCubeServiceLabels.d.ts.map +1 -0
- package/lib/__lib__/LegendCubeServiceLabels.js +32 -0
- package/lib/__lib__/LegendCubeServiceLabels.js.map +1 -0
- package/lib/__lib__/LegendCubeTesting.d.ts +7 -0
- package/lib/__lib__/LegendCubeTesting.d.ts.map +1 -1
- package/lib/__lib__/LegendCubeTesting.js +7 -0
- package/lib/__lib__/LegendCubeTesting.js.map +1 -1
- package/lib/__test-utils__/CubeEngineTestSupport.d.ts +1 -1
- package/lib/__test-utils__/CubeEngineTestSupport.d.ts.map +1 -1
- package/lib/__test-utils__/CubeEngineTestSupport.js +2 -2
- package/lib/__test-utils__/CubeEngineTestSupport.js.map +1 -1
- package/lib/__test-utils__/CubeExpressionTestUtils.d.ts +8 -1
- package/lib/__test-utils__/CubeExpressionTestUtils.d.ts.map +1 -1
- package/lib/__test-utils__/CubeExpressionTestUtils.js +20 -3
- package/lib/__test-utils__/CubeExpressionTestUtils.js.map +1 -1
- package/lib/__test-utils__/CubeFunctionTestOutline.d.ts +26 -0
- package/lib/__test-utils__/CubeFunctionTestOutline.d.ts.map +1 -0
- package/lib/__test-utils__/CubeFunctionTestOutline.js +56 -0
- package/lib/__test-utils__/CubeFunctionTestOutline.js.map +1 -0
- package/lib/__test-utils__/CubeLambdaCorpus.d.ts +36 -0
- package/lib/__test-utils__/CubeLambdaCorpus.d.ts.map +1 -0
- package/lib/__test-utils__/CubeLambdaCorpus.js +83 -0
- package/lib/__test-utils__/CubeLambdaCorpus.js.map +1 -0
- package/lib/__test-utils__/CubePageTestUtils.d.ts +6 -0
- package/lib/__test-utils__/CubePageTestUtils.d.ts.map +1 -1
- package/lib/__test-utils__/CubePageTestUtils.js +21 -0
- package/lib/__test-utils__/CubePageTestUtils.js.map +1 -1
- package/lib/__test-utils__/CubeTestApplication.d.ts +9 -0
- package/lib/__test-utils__/CubeTestApplication.d.ts.map +1 -1
- package/lib/__test-utils__/CubeTestApplication.js +16 -0
- package/lib/__test-utils__/CubeTestApplication.js.map +1 -1
- package/lib/__test-utils__/FakeCubeEngine.d.ts +5 -0
- package/lib/__test-utils__/FakeCubeEngine.d.ts.map +1 -1
- package/lib/__test-utils__/FakeCubeEngine.js +17 -0
- package/lib/__test-utils__/FakeCubeEngine.js.map +1 -1
- package/lib/__test-utils__/FakeCubeIngestCatalog.d.ts +7 -1
- package/lib/__test-utils__/FakeCubeIngestCatalog.d.ts.map +1 -1
- package/lib/__test-utils__/FakeCubeIngestCatalog.js +16 -0
- package/lib/__test-utils__/FakeCubeIngestCatalog.js.map +1 -1
- package/lib/__test-utils__/FakeCubeServiceCatalog.d.ts +26 -0
- package/lib/__test-utils__/FakeCubeServiceCatalog.d.ts.map +1 -0
- package/lib/__test-utils__/FakeCubeServiceCatalog.js +40 -0
- package/lib/__test-utils__/FakeCubeServiceCatalog.js.map +1 -0
- package/lib/components/CubeAddItems.d.ts.map +1 -1
- package/lib/components/CubeAddItems.js +9 -6
- package/lib/components/CubeAddItems.js.map +1 -1
- package/lib/components/CubeDialogTheme.d.ts +25 -0
- package/lib/components/CubeDialogTheme.d.ts.map +1 -0
- package/lib/components/CubeDialogTheme.js +25 -0
- package/lib/components/CubeDialogTheme.js.map +1 -0
- package/lib/components/CubeEditor.d.ts +12 -1
- package/lib/components/CubeEditor.d.ts.map +1 -1
- package/lib/components/CubeEditor.js +16 -14
- package/lib/components/CubeEditor.js.map +1 -1
- package/lib/components/CubeFileMenu.d.ts +28 -0
- package/lib/components/CubeFileMenu.d.ts.map +1 -0
- package/lib/components/CubeFileMenu.js +77 -0
- package/lib/components/CubeFileMenu.js.map +1 -0
- package/lib/components/CubeLambdaImportBanner.d.ts +26 -0
- package/lib/components/CubeLambdaImportBanner.d.ts.map +1 -0
- package/lib/components/CubeLambdaImportBanner.js +47 -0
- package/lib/components/CubeLambdaImportBanner.js.map +1 -0
- package/lib/components/CubeNodeIcon.d.ts.map +1 -1
- package/lib/components/CubeNodeIcon.js +5 -1
- package/lib/components/CubeNodeIcon.js.map +1 -1
- package/lib/components/CubeSchemaColumnsTable.d.ts.map +1 -1
- package/lib/components/CubeSchemaColumnsTable.js +2 -2
- package/lib/components/CubeSchemaColumnsTable.js.map +1 -1
- package/lib/components/canvas/CubeCanvas.d.ts.map +1 -1
- package/lib/components/canvas/CubeCanvas.js +38 -5
- package/lib/components/canvas/CubeCanvas.js.map +1 -1
- package/lib/components/canvas/CubeCanvasContextMenu.d.ts.map +1 -1
- package/lib/components/canvas/CubeCanvasContextMenu.js +2 -1
- package/lib/components/canvas/CubeCanvasContextMenu.js.map +1 -1
- package/lib/components/canvas/CubeCanvasElements.d.ts +18 -1
- package/lib/components/canvas/CubeCanvasElements.d.ts.map +1 -1
- package/lib/components/canvas/CubeCanvasElements.js +58 -3
- package/lib/components/canvas/CubeCanvasElements.js.map +1 -1
- package/lib/components/canvas/CubeCanvasLayout.js +1 -1
- package/lib/components/canvas/CubeCanvasNode.d.ts.map +1 -1
- package/lib/components/canvas/CubeCanvasNode.js +8 -4
- package/lib/components/canvas/CubeCanvasNode.js.map +1 -1
- package/lib/components/dev-settings/CubeDevSettings.d.ts +35 -0
- package/lib/components/dev-settings/CubeDevSettings.d.ts.map +1 -0
- package/lib/components/dev-settings/CubeDevSettings.js +50 -0
- package/lib/components/dev-settings/CubeDevSettings.js.map +1 -0
- package/lib/components/editors/CubeColumnChecklist.d.ts.map +1 -1
- package/lib/components/editors/CubeColumnChecklist.js +2 -2
- package/lib/components/editors/CubeColumnChecklist.js.map +1 -1
- package/lib/components/editors/CubeColumnPicker.d.ts.map +1 -1
- package/lib/components/editors/CubeColumnPicker.js +3 -3
- package/lib/components/editors/CubeColumnPicker.js.map +1 -1
- package/lib/components/editors/CubeConcatEditor.js +2 -2
- package/lib/components/editors/CubeConcatEditor.js.map +1 -1
- package/lib/components/editors/CubeExpressionFilterEditor.d.ts +25 -0
- package/lib/components/editors/CubeExpressionFilterEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeExpressionFilterEditor.js +83 -0
- package/lib/components/editors/CubeExpressionFilterEditor.js.map +1 -0
- package/lib/components/editors/CubeExtendEditor.d.ts +2 -0
- package/lib/components/editors/CubeExtendEditor.d.ts.map +1 -1
- package/lib/components/editors/CubeExtendEditor.js +3 -3
- package/lib/components/editors/CubeExtendEditor.js.map +1 -1
- package/lib/components/editors/CubeFilterEditor.d.ts.map +1 -1
- package/lib/components/editors/CubeFilterEditor.js +13 -2
- package/lib/components/editors/CubeFilterEditor.js.map +1 -1
- package/lib/components/editors/CubeFunctionSourceEditor.d.ts +25 -0
- package/lib/components/editors/CubeFunctionSourceEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeFunctionSourceEditor.js +55 -0
- package/lib/components/editors/CubeFunctionSourceEditor.js.map +1 -0
- package/lib/components/editors/CubeJoinEditor.d.ts.map +1 -1
- package/lib/components/editors/CubeJoinEditor.js +16 -4
- package/lib/components/editors/CubeJoinEditor.js.map +1 -1
- package/lib/components/editors/CubeNodeEditorPanel.d.ts.map +1 -1
- package/lib/components/editors/CubeNodeEditorPanel.js +18 -8
- package/lib/components/editors/CubeNodeEditorPanel.js.map +1 -1
- package/lib/components/editors/CubeNodeEditorPopper.d.ts +5 -1
- package/lib/components/editors/CubeNodeEditorPopper.d.ts.map +1 -1
- package/lib/components/editors/CubeNodeEditorPopper.js +10 -2
- package/lib/components/editors/CubeNodeEditorPopper.js.map +1 -1
- package/lib/components/editors/CubeNodeEditorRegistry.d.ts.map +1 -1
- package/lib/components/editors/CubeNodeEditorRegistry.js +9 -1
- package/lib/components/editors/CubeNodeEditorRegistry.js.map +1 -1
- package/lib/components/editors/CubePivotEditor.d.ts +26 -0
- package/lib/components/editors/CubePivotEditor.d.ts.map +1 -0
- package/lib/components/editors/CubePivotEditor.js +93 -0
- package/lib/components/editors/CubePivotEditor.js.map +1 -0
- package/lib/components/editors/CubeRestrictEditor.d.ts.map +1 -1
- package/lib/components/editors/CubeRestrictEditor.js +2 -2
- package/lib/components/editors/CubeRestrictEditor.js.map +1 -1
- package/lib/components/editors/CubeServiceSourceEditor.d.ts +25 -0
- package/lib/components/editors/CubeServiceSourceEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeServiceSourceEditor.js +41 -0
- package/lib/components/editors/CubeServiceSourceEditor.js.map +1 -0
- package/lib/components/grid/CubeColumnFormatDialog.d.ts +28 -0
- package/lib/components/grid/CubeColumnFormatDialog.d.ts.map +1 -0
- package/lib/components/grid/CubeColumnFormatDialog.js +94 -0
- package/lib/components/grid/CubeColumnFormatDialog.js.map +1 -0
- package/lib/components/grid/CubeDrilldownBar.d.ts +37 -0
- package/lib/components/grid/CubeDrilldownBar.d.ts.map +1 -0
- package/lib/components/grid/CubeDrilldownBar.js +77 -0
- package/lib/components/grid/CubeDrilldownBar.js.map +1 -0
- package/lib/components/grid/CubeGridRegion.d.ts.map +1 -1
- package/lib/components/grid/CubeGridRegion.js +40 -26
- package/lib/components/grid/CubeGridRegion.js.map +1 -1
- package/lib/components/grid/CubeGridValues.d.ts +31 -1
- package/lib/components/grid/CubeGridValues.d.ts.map +1 -1
- package/lib/components/grid/CubeGridValues.js +108 -1
- package/lib/components/grid/CubeGridValues.js.map +1 -1
- package/lib/components/grid/CubeResultGrid.d.ts +68 -5
- package/lib/components/grid/CubeResultGrid.d.ts.map +1 -1
- package/lib/components/grid/CubeResultGrid.js +308 -35
- package/lib/components/grid/CubeResultGrid.js.map +1 -1
- package/lib/components/grid/CubeRunStatsPanel.d.ts +28 -0
- package/lib/components/grid/CubeRunStatsPanel.d.ts.map +1 -0
- package/lib/components/grid/CubeRunStatsPanel.js +61 -0
- package/lib/components/grid/CubeRunStatsPanel.js.map +1 -0
- package/lib/components/grid/CubeServerSideGrid.d.ts +36 -0
- package/lib/components/grid/CubeServerSideGrid.d.ts.map +1 -0
- package/lib/components/grid/CubeServerSideGrid.js +114 -0
- package/lib/components/grid/CubeServerSideGrid.js.map +1 -0
- package/lib/components/grid/CubeSqlDialog.d.ts +24 -0
- package/lib/components/grid/CubeSqlDialog.d.ts.map +1 -0
- package/lib/components/grid/CubeSqlDialog.js +39 -0
- package/lib/components/grid/CubeSqlDialog.js.map +1 -0
- package/lib/components/grid/CubeSqlFormat.d.ts +20 -0
- package/lib/components/grid/CubeSqlFormat.d.ts.map +1 -0
- package/lib/components/grid/CubeSqlFormat.js +32 -0
- package/lib/components/grid/CubeSqlFormat.js.map +1 -0
- package/lib/components/palette/CubePalette.d.ts.map +1 -1
- package/lib/components/palette/CubePalette.js +32 -13
- package/lib/components/palette/CubePalette.js.map +1 -1
- package/lib/components/show-pure/CubeShowPureDialog.d.ts +4 -1
- package/lib/components/show-pure/CubeShowPureDialog.d.ts.map +1 -1
- package/lib/components/show-pure/CubeShowPureDialog.js +8 -4
- package/lib/components/show-pure/CubeShowPureDialog.js.map +1 -1
- package/lib/components/source-picker/CubeDataProductTab.d.ts.map +1 -1
- package/lib/components/source-picker/CubeDataProductTab.js +37 -16
- package/lib/components/source-picker/CubeDataProductTab.js.map +1 -1
- package/lib/components/source-picker/CubeDirectConnectionTab.d.ts.map +1 -1
- package/lib/components/source-picker/CubeDirectConnectionTab.js +6 -4
- package/lib/components/source-picker/CubeDirectConnectionTab.js.map +1 -1
- package/lib/components/source-picker/CubeFunctionSteps.d.ts +36 -0
- package/lib/components/source-picker/CubeFunctionSteps.d.ts.map +1 -0
- package/lib/components/source-picker/CubeFunctionSteps.js +76 -0
- package/lib/components/source-picker/CubeFunctionSteps.js.map +1 -0
- package/lib/components/source-picker/CubeIngestTab.d.ts.map +1 -1
- package/lib/components/source-picker/CubeIngestTab.js +39 -16
- package/lib/components/source-picker/CubeIngestTab.js.map +1 -1
- package/lib/components/source-picker/CubeInlineModelTab.d.ts +3 -2
- package/lib/components/source-picker/CubeInlineModelTab.d.ts.map +1 -1
- package/lib/components/source-picker/CubeInlineModelTab.js +23 -13
- package/lib/components/source-picker/CubeInlineModelTab.js.map +1 -1
- package/lib/components/source-picker/CubePickerListItem.d.ts +47 -0
- package/lib/components/source-picker/CubePickerListItem.d.ts.map +1 -0
- package/lib/components/source-picker/CubePickerListItem.js +62 -0
- package/lib/components/source-picker/CubePickerListItem.js.map +1 -0
- package/lib/components/source-picker/CubeProjectTab.d.ts +4 -3
- package/lib/components/source-picker/CubeProjectTab.d.ts.map +1 -1
- package/lib/components/source-picker/CubeProjectTab.js +7 -4
- package/lib/components/source-picker/CubeProjectTab.js.map +1 -1
- package/lib/components/source-picker/CubeServiceTab.d.ts +27 -0
- package/lib/components/source-picker/CubeServiceTab.d.ts.map +1 -0
- package/lib/components/source-picker/CubeServiceTab.js +36 -0
- package/lib/components/source-picker/CubeServiceTab.js.map +1 -0
- package/lib/components/source-picker/CubeSourcePicker.d.ts.map +1 -1
- package/lib/components/source-picker/CubeSourcePicker.js +16 -3
- package/lib/components/source-picker/CubeSourcePicker.js.map +1 -1
- package/lib/components/source-picker/CubeTablePreview.d.ts +29 -0
- package/lib/components/source-picker/CubeTablePreview.d.ts.map +1 -0
- package/lib/components/source-picker/CubeTablePreview.js +10 -0
- package/lib/components/source-picker/CubeTablePreview.js.map +1 -0
- package/lib/components/spec-transfer/CubeImportPureDialog.d.ts +27 -0
- package/lib/components/spec-transfer/CubeImportPureDialog.d.ts.map +1 -0
- package/lib/components/spec-transfer/CubeImportPureDialog.js +38 -0
- package/lib/components/spec-transfer/CubeImportPureDialog.js.map +1 -0
- package/lib/components/spec-transfer/CubeSpecTransferDialog.d.ts.map +1 -1
- package/lib/components/spec-transfer/CubeSpecTransferDialog.js +9 -3
- package/lib/components/spec-transfer/CubeSpecTransferDialog.js.map +1 -1
- package/lib/graph-manager/CubeDataProductCatalog.d.ts +10 -0
- package/lib/graph-manager/CubeDataProductCatalog.d.ts.map +1 -1
- package/lib/graph-manager/CubeDataProductCatalog.js.map +1 -1
- package/lib/graph-manager/CubeEngine.d.ts +46 -1
- package/lib/graph-manager/CubeEngine.d.ts.map +1 -1
- package/lib/graph-manager/CubeEngine.js.map +1 -1
- package/lib/graph-manager/CubeEngineClientSettings.d.ts +43 -0
- package/lib/graph-manager/CubeEngineClientSettings.d.ts.map +1 -0
- package/lib/graph-manager/CubeEngineClientSettings.js +51 -0
- package/lib/graph-manager/CubeEngineClientSettings.js.map +1 -0
- package/lib/graph-manager/CubeIngest.d.ts +5 -0
- package/lib/graph-manager/CubeIngest.d.ts.map +1 -1
- package/lib/graph-manager/CubeIngest.js +10 -0
- package/lib/graph-manager/CubeIngest.js.map +1 -1
- package/lib/graph-manager/CubeIngestCatalog.d.ts +26 -0
- package/lib/graph-manager/CubeIngestCatalog.d.ts.map +1 -1
- package/lib/graph-manager/CubeIngestCatalog.js +6 -0
- package/lib/graph-manager/CubeIngestCatalog.js.map +1 -1
- package/lib/graph-manager/CubeLakehouseRuntime.d.ts +29 -0
- package/lib/graph-manager/CubeLakehouseRuntime.d.ts.map +1 -0
- package/lib/graph-manager/CubeLakehouseRuntime.js +40 -0
- package/lib/graph-manager/CubeLakehouseRuntime.js.map +1 -0
- package/lib/graph-manager/CubeProjectCatalog.d.ts +3 -3
- package/lib/graph-manager/CubeService.d.ts +20 -0
- package/lib/graph-manager/CubeService.d.ts.map +1 -0
- package/lib/graph-manager/CubeService.js +22 -0
- package/lib/graph-manager/CubeService.js.map +1 -0
- package/lib/graph-manager/CubeServiceCatalog.d.ts +31 -0
- package/lib/graph-manager/CubeServiceCatalog.d.ts.map +1 -0
- package/lib/graph-manager/CubeServiceCatalog.js +17 -0
- package/lib/graph-manager/CubeServiceCatalog.js.map +1 -0
- package/lib/graph-manager/protocol/pure/CubeEngineBuilder.d.ts +52 -5
- package/lib/graph-manager/protocol/pure/CubeEngineBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/CubeEngineBuilder.js +63 -5
- package/lib/graph-manager/protocol/pure/CubeEngineBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDataProductModel.d.ts +9 -6
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDataProductModel.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDataProductModel.js +12 -8
- package/lib/graph-manager/protocol/pure/v1/V1_CubeDataProductModel.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeFunctionOutlineBuilder.d.ts +30 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeFunctionOutlineBuilder.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeFunctionOutlineBuilder.js +229 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeFunctionOutlineBuilder.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeIngestDefinition.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeIngestDefinition.js +18 -9
- package/lib/graph-manager/protocol/pure/v1/V1_CubeIngestDefinition.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeIngestModel.d.ts +4 -9
- package/lib/graph-manager/protocol/pure/v1/V1_CubeIngestModel.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeIngestModel.js +2 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeIngestModel.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeLambdaReader.d.ts +34 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeLambdaReader.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeLambdaReader.js +332 -0
- package/lib/graph-manager/protocol/pure/v1/V1_CubeLambdaReader.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 +49 -10
- package/lib/graph-manager/protocol/pure/v1/V1_CubeLambdaSerializer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeModelOutlineBuilder.d.ts +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 +3 -1
- package/lib/graph-manager/protocol/pure/v1/V1_CubeModelOutlineBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeConnectionExplorer.d.ts +2 -1
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeConnectionExplorer.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeConnectionExplorer.js +2 -1
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeConnectionExplorer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeEngine.d.ts +18 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeEngine.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeEngine.js +74 -6
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeEngine.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeProjectCatalog.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeProjectCatalog.js +7 -4
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeProjectCatalog.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeServiceCatalog.d.ts +31 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeServiceCatalog.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeServiceCatalog.js +69 -0
- package/lib/graph-manager/protocol/pure/v1/V1_LegendCubeServiceCatalog.js.map +1 -0
- 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 +6 -2
- 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 +12 -3
- 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 +10 -3
- package/lib/stores/CubeAddPlacement.d.ts.map +1 -1
- package/lib/stores/CubeAddPlacement.js +16 -5
- package/lib/stores/CubeAddPlacement.js.map +1 -1
- package/lib/stores/CubeDevSettingsState.d.ts +47 -0
- package/lib/stores/CubeDevSettingsState.d.ts.map +1 -0
- package/lib/stores/CubeDevSettingsState.js +99 -0
- package/lib/stores/CubeDevSettingsState.js.map +1 -0
- package/lib/stores/CubeEditorState.d.ts +173 -43
- package/lib/stores/CubeEditorState.d.ts.map +1 -1
- package/lib/stores/CubeEditorState.js +498 -113
- package/lib/stores/CubeEditorState.js.map +1 -1
- package/lib/stores/CubeEngineChecks.d.ts +59 -0
- package/lib/stores/CubeEngineChecks.d.ts.map +1 -0
- package/lib/stores/CubeEngineChecks.js +100 -0
- package/lib/stores/CubeEngineChecks.js.map +1 -0
- package/lib/stores/CubeExamples.d.ts.map +1 -1
- package/lib/stores/CubeExamples.js +39 -2
- package/lib/stores/CubeExamples.js.map +1 -1
- package/lib/stores/CubeExamplesState.d.ts +1 -1
- package/lib/stores/CubeExamplesState.d.ts.map +1 -1
- package/lib/stores/CubeExamplesState.js +2 -2
- package/lib/stores/CubeExamplesState.js.map +1 -1
- package/lib/stores/CubeExecutionState.d.ts.map +1 -1
- package/lib/stores/CubeExecutionState.js +24 -33
- package/lib/stores/CubeExecutionState.js.map +1 -1
- package/lib/stores/CubeExportState.d.ts +41 -0
- package/lib/stores/CubeExportState.d.ts.map +1 -0
- package/lib/stores/CubeExportState.js +134 -0
- package/lib/stores/CubeExportState.js.map +1 -0
- package/lib/stores/CubeExpressionFilterCheck.d.ts +51 -0
- package/lib/stores/CubeExpressionFilterCheck.d.ts.map +1 -0
- package/lib/stores/CubeExpressionFilterCheck.js +134 -0
- package/lib/stores/CubeExpressionFilterCheck.js.map +1 -0
- package/lib/stores/CubeExtendTyping.d.ts +6 -14
- package/lib/stores/CubeExtendTyping.d.ts.map +1 -1
- package/lib/stores/CubeExtendTyping.js +6 -33
- package/lib/stores/CubeExtendTyping.js.map +1 -1
- package/lib/stores/CubeFunctionRecheck.d.ts +30 -0
- package/lib/stores/CubeFunctionRecheck.d.ts.map +1 -0
- package/lib/stores/CubeFunctionRecheck.js +67 -0
- package/lib/stores/CubeFunctionRecheck.js.map +1 -0
- package/lib/stores/CubeGridFetcher.d.ts +75 -0
- package/lib/stores/CubeGridFetcher.d.ts.map +1 -0
- package/lib/stores/CubeGridFetcher.js +197 -0
- package/lib/stores/CubeGridFetcher.js.map +1 -0
- package/lib/stores/CubeGridQuickActions.d.ts +18 -6
- package/lib/stores/CubeGridQuickActions.d.ts.map +1 -1
- package/lib/stores/CubeGridQuickActions.js +32 -12
- package/lib/stores/CubeGridQuickActions.js.map +1 -1
- package/lib/stores/CubeGridState.d.ts +136 -0
- package/lib/stores/CubeGridState.d.ts.map +1 -0
- package/lib/stores/CubeGridState.js +317 -0
- package/lib/stores/CubeGridState.js.map +1 -0
- package/lib/stores/CubeHost.d.ts +42 -0
- package/lib/stores/CubeHost.d.ts.map +1 -1
- package/lib/stores/CubeHost.js +4 -0
- package/lib/stores/CubeHost.js.map +1 -1
- package/lib/stores/CubeLambdaImportState.d.ts +118 -0
- package/lib/stores/CubeLambdaImportState.d.ts.map +1 -0
- package/lib/stores/CubeLambdaImportState.js +302 -0
- package/lib/stores/CubeLambdaImportState.js.map +1 -0
- package/lib/stores/CubeLambdaSources.d.ts +45 -0
- package/lib/stores/CubeLambdaSources.d.ts.map +1 -0
- package/lib/stores/CubeLambdaSources.js +261 -0
- package/lib/stores/CubeLambdaSources.js.map +1 -0
- package/lib/stores/CubeQueryRun.d.ts +59 -0
- package/lib/stores/CubeQueryRun.d.ts.map +1 -0
- package/lib/stores/CubeQueryRun.js +101 -0
- package/lib/stores/CubeQueryRun.js.map +1 -0
- package/lib/stores/CubeRunStatsState.d.ts +61 -0
- package/lib/stores/CubeRunStatsState.d.ts.map +1 -0
- package/lib/stores/CubeRunStatsState.js +54 -0
- package/lib/stores/CubeRunStatsState.js.map +1 -0
- package/lib/stores/CubeRunningStepLambda.d.ts +25 -0
- package/lib/stores/CubeRunningStepLambda.d.ts.map +1 -0
- package/lib/stores/CubeRunningStepLambda.js +45 -0
- package/lib/stores/CubeRunningStepLambda.js.map +1 -0
- package/lib/stores/CubeServiceRecheck.d.ts +29 -0
- package/lib/stores/CubeServiceRecheck.d.ts.map +1 -0
- package/lib/stores/CubeServiceRecheck.js +33 -0
- package/lib/stores/CubeServiceRecheck.js.map +1 -0
- package/lib/stores/CubeShowPureState.d.ts +14 -1
- package/lib/stores/CubeShowPureState.d.ts.map +1 -1
- package/lib/stores/CubeShowPureState.js +41 -11
- package/lib/stores/CubeShowPureState.js.map +1 -1
- package/lib/stores/CubeSourcePickerState.d.ts +20 -4
- package/lib/stores/CubeSourcePickerState.d.ts.map +1 -1
- package/lib/stores/CubeSourcePickerState.js +75 -14
- package/lib/stores/CubeSourcePickerState.js.map +1 -1
- package/lib/stores/LocalModelCatalog.d.ts.map +1 -1
- package/lib/stores/LocalModelCatalog.js +3 -1
- package/lib/stores/LocalModelCatalog.js.map +1 -1
- package/lib/stores/editors/CubeExpressionFilterDraft.d.ts +91 -0
- package/lib/stores/editors/CubeExpressionFilterDraft.d.ts.map +1 -0
- package/lib/stores/editors/CubeExpressionFilterDraft.js +254 -0
- package/lib/stores/editors/CubeExpressionFilterDraft.js.map +1 -0
- package/lib/stores/editors/CubeFunctionDraft.d.ts +34 -0
- package/lib/stores/editors/CubeFunctionDraft.d.ts.map +1 -0
- package/lib/stores/editors/CubeFunctionDraft.js +69 -0
- package/lib/stores/editors/CubeFunctionDraft.js.map +1 -0
- package/lib/stores/editors/CubeNodeDraftRegistry.d.ts +4 -2
- package/lib/stores/editors/CubeNodeDraftRegistry.d.ts.map +1 -1
- package/lib/stores/editors/CubeNodeDraftRegistry.js +20 -3
- package/lib/stores/editors/CubeNodeDraftRegistry.js.map +1 -1
- package/lib/stores/editors/CubePivotDraft.d.ts +93 -0
- package/lib/stores/editors/CubePivotDraft.d.ts.map +1 -0
- package/lib/stores/editors/CubePivotDraft.js +267 -0
- package/lib/stores/editors/CubePivotDraft.js.map +1 -0
- package/lib/stores/fixtures/CubeSalesDuckDbModel.d.ts +26 -0
- package/lib/stores/fixtures/CubeSalesDuckDbModel.d.ts.map +1 -0
- package/lib/stores/fixtures/CubeSalesDuckDbModel.js +46 -0
- package/lib/stores/fixtures/CubeSalesDuckDbModel.js.map +1 -0
- package/lib/stores/fixtures/CubeTradesModel.d.ts +4 -0
- package/lib/stores/fixtures/CubeTradesModel.d.ts.map +1 -1
- package/lib/stores/fixtures/CubeTradesModel.js +31 -1
- package/lib/stores/fixtures/CubeTradesModel.js.map +1 -1
- package/lib/stores/source-picker/CubeDataProductTabState.d.ts +34 -5
- package/lib/stores/source-picker/CubeDataProductTabState.d.ts.map +1 -1
- package/lib/stores/source-picker/CubeDataProductTabState.js +111 -26
- package/lib/stores/source-picker/CubeDataProductTabState.js.map +1 -1
- package/lib/stores/source-picker/CubeDirectConnectionTabState.d.ts +25 -2
- package/lib/stores/source-picker/CubeDirectConnectionTabState.d.ts.map +1 -1
- package/lib/stores/source-picker/CubeDirectConnectionTabState.js +183 -31
- package/lib/stores/source-picker/CubeDirectConnectionTabState.js.map +1 -1
- package/lib/stores/source-picker/CubeIngestTabState.d.ts +22 -9
- package/lib/stores/source-picker/CubeIngestTabState.d.ts.map +1 -1
- package/lib/stores/source-picker/CubeIngestTabState.js +84 -29
- package/lib/stores/source-picker/CubeIngestTabState.js.map +1 -1
- package/lib/stores/source-picker/CubeInlineModelTabState.d.ts +100 -4
- package/lib/stores/source-picker/CubeInlineModelTabState.d.ts.map +1 -1
- package/lib/stores/source-picker/CubeInlineModelTabState.js +415 -28
- package/lib/stores/source-picker/CubeInlineModelTabState.js.map +1 -1
- package/lib/stores/source-picker/CubeProjectTabState.d.ts +18 -3
- package/lib/stores/source-picker/CubeProjectTabState.d.ts.map +1 -1
- package/lib/stores/source-picker/CubeProjectTabState.js +26 -1
- package/lib/stores/source-picker/CubeProjectTabState.js.map +1 -1
- package/lib/stores/source-picker/CubeServiceTabState.d.ts +74 -0
- package/lib/stores/source-picker/CubeServiceTabState.d.ts.map +1 -0
- package/lib/stores/source-picker/CubeServiceTabState.js +216 -0
- package/lib/stores/source-picker/CubeServiceTabState.js.map +1 -0
- package/lib/stores/source-picker/CubeSourcePickerTab.d.ts +15 -3
- package/lib/stores/source-picker/CubeSourcePickerTab.d.ts.map +1 -1
- package/lib/stores/source-picker/CubeSourcePickerTab.js +21 -0
- package/lib/stores/source-picker/CubeSourcePickerTab.js.map +1 -1
- package/package.json +10 -9
- package/src/__lib__/LegendCubeCommand.ts +7 -0
- package/src/__lib__/LegendCubeFunctionLabels.ts +41 -0
- package/src/__lib__/LegendCubeHelpText.ts +23 -1
- package/src/__lib__/LegendCubeLabels.ts +170 -13
- package/src/__lib__/LegendCubeProjectSourceLabels.ts +26 -0
- package/src/__lib__/LegendCubeServiceLabels.ts +41 -0
- package/src/__lib__/LegendCubeTesting.ts +7 -0
- package/src/__test-utils__/CubeEngineTestSupport.ts +2 -1
- package/src/__test-utils__/CubeExpressionTestUtils.ts +29 -2
- package/src/__test-utils__/CubeFunctionTestOutline.ts +78 -0
- package/src/__test-utils__/CubeLambdaCorpus.ts +137 -0
- package/src/__test-utils__/CubePageTestUtils.tsx +34 -0
- package/src/__test-utils__/CubeTestApplication.ts +25 -0
- package/src/__test-utils__/FakeCubeEngine.ts +27 -0
- package/src/__test-utils__/FakeCubeIngestCatalog.ts +18 -0
- package/src/__test-utils__/FakeCubeServiceCatalog.ts +57 -0
- package/src/components/CubeAddItems.tsx +13 -6
- package/src/components/CubeDialogTheme.ts +25 -0
- package/src/components/CubeEditor.tsx +155 -129
- package/src/components/CubeFileMenu.tsx +127 -0
- package/src/components/CubeLambdaImportBanner.tsx +97 -0
- package/src/components/CubeNodeIcon.tsx +7 -0
- package/src/components/CubeSchemaColumnsTable.tsx +7 -2
- package/src/components/canvas/CubeCanvas.tsx +52 -13
- package/src/components/canvas/CubeCanvasContextMenu.tsx +33 -2
- package/src/components/canvas/CubeCanvasElements.ts +76 -3
- package/src/components/canvas/CubeCanvasLayout.ts +1 -1
- package/src/components/canvas/CubeCanvasNode.tsx +30 -3
- package/src/components/dev-settings/CubeDevSettings.tsx +154 -0
- package/src/components/editors/CubeColumnChecklist.tsx +8 -2
- package/src/components/editors/CubeColumnPicker.tsx +6 -3
- package/src/components/editors/CubeConcatEditor.tsx +2 -2
- package/src/components/editors/CubeExpressionFilterEditor.tsx +193 -0
- package/src/components/editors/CubeExtendEditor.tsx +3 -3
- package/src/components/editors/CubeFilterEditor.tsx +13 -1
- package/src/components/editors/CubeFunctionSourceEditor.tsx +140 -0
- package/src/components/editors/CubeJoinEditor.tsx +23 -4
- package/src/components/editors/CubeNodeEditorPanel.tsx +22 -10
- package/src/components/editors/CubeNodeEditorPopper.tsx +9 -1
- package/src/components/editors/CubeNodeEditorRegistry.ts +12 -0
- package/src/components/editors/CubePivotEditor.tsx +277 -0
- package/src/components/editors/CubeRestrictEditor.tsx +8 -2
- package/src/components/editors/CubeServiceSourceEditor.tsx +77 -0
- package/src/components/grid/CubeColumnFormatDialog.tsx +289 -0
- package/src/components/grid/CubeDrilldownBar.tsx +219 -0
- package/src/components/grid/CubeGridRegion.tsx +170 -54
- package/src/components/grid/CubeGridValues.ts +146 -1
- package/src/components/grid/CubeResultGrid.tsx +443 -41
- package/src/components/grid/CubeRunStatsPanel.tsx +156 -0
- package/src/components/grid/CubeServerSideGrid.tsx +200 -0
- package/src/components/grid/CubeSqlDialog.tsx +90 -0
- package/src/components/grid/CubeSqlFormat.ts +37 -0
- package/src/components/palette/CubePalette.tsx +45 -12
- package/src/components/show-pure/CubeShowPureDialog.tsx +19 -5
- package/src/components/source-picker/CubeDataProductTab.tsx +169 -75
- package/src/components/source-picker/CubeDirectConnectionTab.tsx +42 -30
- package/src/components/source-picker/CubeFunctionSteps.tsx +244 -0
- package/src/components/source-picker/CubeIngestTab.tsx +159 -79
- package/src/components/source-picker/CubeInlineModelTab.tsx +110 -81
- package/src/components/source-picker/CubePickerListItem.tsx +118 -0
- package/src/components/source-picker/CubeProjectTab.tsx +6 -3
- package/src/components/source-picker/CubeServiceTab.tsx +151 -0
- package/src/components/source-picker/CubeSourcePicker.tsx +54 -18
- package/src/components/source-picker/CubeTablePreview.tsx +49 -0
- package/src/components/spec-transfer/CubeImportPureDialog.tsx +122 -0
- package/src/components/spec-transfer/CubeSpecTransferDialog.tsx +21 -8
- package/src/graph-manager/CubeDataProductCatalog.ts +11 -0
- package/src/graph-manager/CubeEngine.ts +51 -1
- package/src/graph-manager/CubeEngineClientSettings.ts +64 -0
- package/src/graph-manager/CubeIngest.ts +15 -0
- package/src/graph-manager/CubeIngestCatalog.ts +33 -0
- package/src/graph-manager/CubeLakehouseRuntime.ts +43 -0
- package/src/graph-manager/CubeProjectCatalog.ts +3 -3
- package/src/graph-manager/CubeService.ts +29 -0
- package/src/graph-manager/CubeServiceCatalog.ts +35 -0
- package/src/graph-manager/protocol/pure/CubeEngineBuilder.ts +115 -5
- package/src/graph-manager/protocol/pure/v1/V1_CubeDataProductModel.ts +13 -7
- package/src/graph-manager/protocol/pure/v1/V1_CubeFunctionOutlineBuilder.ts +312 -0
- package/src/graph-manager/protocol/pure/v1/V1_CubeIngestDefinition.ts +35 -9
- package/src/graph-manager/protocol/pure/v1/V1_CubeIngestModel.ts +6 -15
- package/src/graph-manager/protocol/pure/v1/V1_CubeLambdaReader.ts +471 -0
- package/src/graph-manager/protocol/pure/v1/V1_CubeLambdaSerializer.ts +70 -15
- package/src/graph-manager/protocol/pure/v1/V1_CubeModelOutlineBuilder.ts +3 -1
- package/src/graph-manager/protocol/pure/v1/V1_LegendCubeConnectionExplorer.ts +7 -1
- package/src/graph-manager/protocol/pure/v1/V1_LegendCubeEngine.ts +122 -7
- package/src/graph-manager/protocol/pure/v1/V1_LegendCubeProjectCatalog.ts +9 -4
- package/src/graph-manager/protocol/pure/v1/V1_LegendCubeServiceCatalog.ts +92 -0
- package/src/graph-manager/protocol/pure/v1/__test-utils__/V1_CubeEngineTestUtils.ts +6 -1
- package/src/index.ts +32 -2
- package/src/stores/CubeAddPlacement.ts +25 -5
- package/src/stores/CubeDevSettingsState.ts +117 -0
- package/src/stores/CubeEditorState.ts +687 -197
- package/src/stores/CubeEngineChecks.ts +240 -0
- package/src/stores/CubeExamples.ts +70 -1
- package/src/stores/CubeExamplesState.ts +4 -2
- package/src/stores/CubeExecutionState.ts +26 -57
- package/src/stores/CubeExportState.ts +196 -0
- package/src/stores/CubeExpressionFilterCheck.ts +218 -0
- package/src/stores/CubeExtendTyping.ts +6 -46
- package/src/stores/CubeFunctionRecheck.ts +97 -0
- package/src/stores/CubeGridFetcher.ts +302 -0
- package/src/stores/CubeGridQuickActions.ts +33 -11
- package/src/stores/CubeGridState.ts +450 -0
- package/src/stores/CubeHost.ts +48 -0
- package/src/stores/CubeLambdaImportState.ts +434 -0
- package/src/stores/CubeLambdaSources.ts +390 -0
- package/src/stores/CubeQueryRun.ts +169 -0
- package/src/stores/CubeRunStatsState.ts +91 -0
- package/src/stores/CubeRunningStepLambda.ts +62 -0
- package/src/stores/CubeServiceRecheck.ts +53 -0
- package/src/stores/CubeShowPureState.ts +51 -12
- package/src/stores/CubeSourcePickerState.ts +89 -13
- package/src/stores/LocalModelCatalog.ts +6 -1
- package/src/stores/editors/CubeExpressionFilterDraft.ts +385 -0
- package/src/stores/editors/CubeFunctionDraft.ts +92 -0
- package/src/stores/editors/CubeNodeDraftRegistry.ts +27 -2
- package/src/stores/editors/CubePivotDraft.ts +355 -0
- package/src/stores/fixtures/CubeSalesDuckDbModel.ts +54 -0
- package/src/stores/fixtures/CubeTradesModel.ts +36 -1
- package/src/stores/source-picker/CubeDataProductTabState.ts +162 -35
- package/src/stores/source-picker/CubeDirectConnectionTabState.ts +246 -47
- package/src/stores/source-picker/CubeIngestTabState.ts +112 -38
- package/src/stores/source-picker/CubeInlineModelTabState.ts +514 -34
- package/src/stores/source-picker/CubeProjectTabState.ts +35 -3
- package/src/stores/source-picker/CubeServiceTabState.ts +288 -0
- package/src/stores/source-picker/CubeSourcePickerTab.ts +31 -2
- package/tsconfig.json +50 -0
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { TypeFamily, } from '@finos/legend-cube';
|
|
16
17
|
import { CubeTableFlag } from '../graph-manager/CubeEngine.js';
|
|
17
18
|
// The page's own text and settings; validation messages live in the core's
|
|
18
19
|
// CubeMessages (PLAN §4.11)
|
|
@@ -28,6 +29,10 @@ export var LEGEND_CUBE_USER_DATA_KEY;
|
|
|
28
29
|
LEGEND_CUBE_USER_DATA_KEY["PALETTE_COLLAPSED"] = "legend-cube.palette-collapsed";
|
|
29
30
|
/** The warehouse the viewer last picked for a data product cube (PLAN §6.8) */
|
|
30
31
|
LEGEND_CUBE_USER_DATA_KEY["DATA_PRODUCT_WAREHOUSE"] = "legend-cube.data-product-warehouse";
|
|
32
|
+
/** Server-side or local (PLAN §11.10) */
|
|
33
|
+
LEGEND_CUBE_USER_DATA_KEY["GRID_MODE"] = "legend-cube.grid-mode";
|
|
34
|
+
/** Engine requests sent uncompressed, for the browser's Network tab (PLAN §11.16) */
|
|
35
|
+
LEGEND_CUBE_USER_DATA_KEY["UNCOMPRESSED_REQUESTS"] = "legend-cube.uncompressed-requests";
|
|
31
36
|
})(LEGEND_CUBE_USER_DATA_KEY || (LEGEND_CUBE_USER_DATA_KEY = {}));
|
|
32
37
|
export const UNSAVED_CUBE_NAME = 'Unsaved Query';
|
|
33
38
|
/** Why a source is disabled on a cube: it reads database tables or data products, never both (PLAN §6.8) */
|
|
@@ -38,23 +43,40 @@ export const UNSERVED_SOURCE_KIND_TITLE = "This Legend deployment doesn't serve
|
|
|
38
43
|
export const READ_ONLY_CUBE_TITLE = "This cube was saved by a newer version of Legend Cube, so it can't be changed or exported";
|
|
39
44
|
/** How a SQL NULL shows in the grid, distinct from an empty string */
|
|
40
45
|
export const NULL_CELL_TEXT = '(null)';
|
|
46
|
+
/** What the Runs panel calls a run (PLAN §11.10, §11.16); a fetch of the grid's rows is described by its level */
|
|
47
|
+
export const CUBE_RUN_LABEL = {
|
|
48
|
+
EXECUTE: 'Execute',
|
|
49
|
+
EXPORT_CSV: 'Export CSV',
|
|
50
|
+
pivotValues: (column) => `Values of ${column}`,
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Above a run's Pure (PLAN §11.16): unlike Show Pure, it shows the limit a
|
|
54
|
+
* grid run adds, one more than the row limit, to tell whether there are more
|
|
55
|
+
*/
|
|
56
|
+
export const CUBE_RUN_PURE_NOTE = 'As it ran, with any row limit Cube added to it.';
|
|
41
57
|
/** Pending labels: lower-case gerunds, shown as they are (spec §17.13) */
|
|
42
58
|
export var CUBE_PENDING_LABEL;
|
|
43
59
|
(function (CUBE_PENDING_LABEL) {
|
|
44
60
|
CUBE_PENDING_LABEL["LOADING_MODEL"] = "loading model";
|
|
45
61
|
CUBE_PENDING_LABEL["RESOLVING_SOURCE"] = "resolving source";
|
|
46
62
|
CUBE_PENDING_LABEL["EXECUTING_QUERY"] = "executing query";
|
|
63
|
+
CUBE_PENDING_LABEL["FETCHING_ROWS"] = "fetching rows";
|
|
64
|
+
CUBE_PENDING_LABEL["EXPORTING_CSV"] = "exporting CSV";
|
|
47
65
|
CUBE_PENDING_LABEL["RENDERING_QUERY"] = "rendering query";
|
|
48
66
|
CUBE_PENDING_LABEL["REFRESHING_SOURCE"] = "refreshing source";
|
|
49
|
-
CUBE_PENDING_LABEL["
|
|
67
|
+
CUBE_PENDING_LABEL["CHECKING_EXPRESSIONS"] = "checking expressions";
|
|
50
68
|
})(CUBE_PENDING_LABEL || (CUBE_PENDING_LABEL = {}));
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
69
|
+
/**
|
|
70
|
+
* Why a row limit can't be taken: the number its text holds
|
|
71
|
+
* (`parseWholeNumberText`, so `0x10`, `1e3` and `1.0` hold none, PLAN
|
|
72
|
+
* §11.14) isn't a safe whole number of at least 1
|
|
73
|
+
*/
|
|
74
|
+
export const getRowLimitError = (value) => value === undefined || !Number.isSafeInteger(value) || value < 1
|
|
75
|
+
? 'The row limit must be a whole number of at least 1.'
|
|
76
|
+
: undefined;
|
|
57
77
|
export const getTruncationMessage = (rowLimit) => `Showing the first ${rowLimit.toLocaleString('en-US')} rows; the query returned more.`;
|
|
78
|
+
/** In server-side mode, when a drill-down level or a sorted level was cut at the row limit (PLAN §11.10) */
|
|
79
|
+
export const getLevelTruncationMessage = (rowLimit) => `Some levels show only their first ${rowLimit.toLocaleString('en-US')} rows or groups.`;
|
|
58
80
|
/** How the picker shows a table's problem, and why (PLAN §6.2.6) */
|
|
59
81
|
export const CUBE_TABLE_FLAG_LABELS = {
|
|
60
82
|
[CubeTableFlag.UNAVAILABLE]: {
|
|
@@ -70,8 +92,29 @@ export const CUBE_TABLE_FLAG_LABELS = {
|
|
|
70
92
|
description: "A column's type (OTHER or ARRAY) is not known to Cube.",
|
|
71
93
|
},
|
|
72
94
|
};
|
|
73
|
-
/** A column's type
|
|
74
|
-
export const
|
|
95
|
+
/** A column's exact type: its display name, `?` when it takes NULL, e.g. `Varchar(5)?`; for hover and type messages */
|
|
96
|
+
export const getExactColumnTypeLabel = (column) => `${column.type.displayName}${column.nullable ? '?' : ''}`;
|
|
97
|
+
/** The kind of value a type family holds, as the editors name it (the review of the demo, 2026-10-13) */
|
|
98
|
+
const TYPE_FAMILY_LABELS = {
|
|
99
|
+
[TypeFamily.BOOLEAN]: 'True or false',
|
|
100
|
+
[TypeFamily.STRING]: 'Text',
|
|
101
|
+
[TypeFamily.INTEGER]: 'Whole number',
|
|
102
|
+
[TypeFamily.FLOAT]: 'Number',
|
|
103
|
+
[TypeFamily.DECIMAL]: 'Decimal',
|
|
104
|
+
[TypeFamily.NUMBER]: 'Number',
|
|
105
|
+
[TypeFamily.STRICT_DATE]: 'Date',
|
|
106
|
+
[TypeFamily.DATETIME]: 'Date and time',
|
|
107
|
+
[TypeFamily.DATE]: 'Date',
|
|
108
|
+
[TypeFamily.STRICT_TIME]: 'Time',
|
|
109
|
+
[TypeFamily.VARIANT]: 'Variant',
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* A column's type as the editors show it: the kind of value, and whether it
|
|
113
|
+
* can be empty, e.g. `Text, can be empty`; an enumeration, or a type Cube
|
|
114
|
+
* doesn't know, by its name. The exact type (`getExactColumnTypeLabel`) is
|
|
115
|
+
* on hover.
|
|
116
|
+
*/
|
|
117
|
+
export const getColumnTypeLabel = (column) => `${TYPE_FAMILY_LABELS[column.type.family] ?? column.type.displayName}${column.nullable ? ', can be empty' : ''}`;
|
|
75
118
|
const listColumns = (columns) => columns.map((column) => column.name).join(', ');
|
|
76
119
|
/** Why Execute (and Show Pure) can't run, one reason a line, for a tooltip */
|
|
77
120
|
export const formatDisabledReasons = (reasons) => reasons.map((reason) => `• ${reason}`).join('\n');
|
|
@@ -83,7 +126,7 @@ export const getSchemaChangeList = (diff) => {
|
|
|
83
126
|
...(diff.changed.length
|
|
84
127
|
? [
|
|
85
128
|
`changed ${diff.changed
|
|
86
|
-
.map((change) => `${change.after.name} (${
|
|
129
|
+
.map((change) => `${change.after.name} (${getExactColumnTypeLabel(change.before)} to ${getExactColumnTypeLabel(change.after)})`)
|
|
87
130
|
.join(', ')}`,
|
|
88
131
|
]
|
|
89
132
|
: []),
|
|
@@ -104,10 +147,21 @@ export const CUBE_QUICK_ACTION_DISABLED_REASON = {
|
|
|
104
147
|
RUNNING: 'Wait for the run to finish.',
|
|
105
148
|
EDITING: "Close the node editor first: these rows don't show the changes in it.",
|
|
106
149
|
UNREADABLE_VALUE: "This value can't be used in a filter.",
|
|
150
|
+
/** On a group row's cell that holds its aggregation (PLAN §11.10) */
|
|
151
|
+
AGGREGATE_VALUE: "This cell holds its group's aggregation, not a row's value, so it can't be used in a filter.",
|
|
152
|
+
/** On a group row's cell that shows nothing */
|
|
153
|
+
NO_VALUE: 'This cell has no value to filter by.',
|
|
107
154
|
notSortable: (typeName) => `Values of type ${typeName} can't be sorted.`,
|
|
108
155
|
notGroupable: (typeName) => `Values of type ${typeName} can't be grouped.`,
|
|
109
156
|
notComparable: (typeName) => `Values of type ${typeName} can't be compared.`,
|
|
110
157
|
};
|
|
158
|
+
/** Why 'Format Column' can't be used on a column (spec §13.1) */
|
|
159
|
+
export const CUBE_FORMAT_NOT_A_NUMBER = 'Only number columns can be formatted.';
|
|
160
|
+
/** Why 'Drilldown by' can't be used on a column (PLAN §11.10) */
|
|
161
|
+
export const CUBE_DRILLDOWN_BLOCKER = {
|
|
162
|
+
ALREADY_A_LEVEL: 'The results already drill down by this column.',
|
|
163
|
+
notGroupable: (typeName) => `Values of type ${typeName} can't be grouped.`,
|
|
164
|
+
};
|
|
111
165
|
/** Beside a condition comparing a floating-point column for equality (R133) */
|
|
112
166
|
export const FILTER_FLOAT_COMPARISON_HINT = 'exact comparison on floating-point columns may not match';
|
|
113
167
|
/** The Filter and Join editors' warning on a column that can hold both dates and timestamps (PLAN §11.5) */
|
|
@@ -164,6 +218,35 @@ export const GROUP_EDITOR_NOTES = [
|
|
|
164
218
|
'Distinct Value is the value when the group has exactly one distinct value that is not empty, and empty otherwise.',
|
|
165
219
|
'With no group column, the result is one row, even when there are no rows.',
|
|
166
220
|
];
|
|
221
|
+
/** Why the Pivot editor won't take a column (PLAN §11.12), shown after the column's type */
|
|
222
|
+
export const PIVOT_COLUMN_DISABLED_REASON = {
|
|
223
|
+
/** a row column that can't be compared */
|
|
224
|
+
NOT_GROUPABLE: "can't be grouped",
|
|
225
|
+
/** a pivot column of another type than a String, an integer, a StrictDate or a Boolean */
|
|
226
|
+
NOT_PIVOTABLE: "can't be pivoted",
|
|
227
|
+
/** a column the pivot uses for another part */
|
|
228
|
+
PIVOT_COLUMN: 'the pivot column',
|
|
229
|
+
ROW_COLUMN: 'a row column',
|
|
230
|
+
AGGREGATED: 'the aggregated column',
|
|
231
|
+
};
|
|
232
|
+
/** Why the Pivot editor won't tick a value (PLAN §11.12) */
|
|
233
|
+
export const PIVOT_VALUE_DISABLED_REASON = {
|
|
234
|
+
NOT_A_COLUMN_NAME: "can't name a column",
|
|
235
|
+
/** another value ticked has the same text in another case */
|
|
236
|
+
DIFFERS_ONLY_IN_CASE: 'only its case differs from a ticked value',
|
|
237
|
+
/** as many values are ticked as a Pivot takes */
|
|
238
|
+
TOO_MANY: 'as many values as a Pivot takes are ticked',
|
|
239
|
+
};
|
|
240
|
+
/** What the Pivot editor says (PLAN §11.12) */
|
|
241
|
+
export const PIVOT_EDITOR_NOTES = [
|
|
242
|
+
'Each picked value becomes a column, named by the value, holding the aggregation of its rows; each combination of the row columns with a picked value becomes a row. Values not picked, and combinations holding only them, are left out.',
|
|
243
|
+
"Load values lists the pivot column's values, each once, up to 100. An empty value can't be pivoted, nor one that can't name a column; of two values that differ only in case, one can be ticked, as some databases would mix up their columns.",
|
|
244
|
+
"Pivot runs on Snowflake, Databricks, SingleStore and DuckDB; other databases, such as H2 and Postgres, can't run it.",
|
|
245
|
+
];
|
|
246
|
+
/** Says that Load values found no value to list (PLAN §11.12) */
|
|
247
|
+
export const PIVOT_NO_VALUES_NOTICE = 'The pivot column has no value to list: its rows are all empty, or there are none.';
|
|
248
|
+
/** Says that the engine has more values than the Pivot editor lists (PLAN §11.12) */
|
|
249
|
+
export const getPivotValuesCutNotice = (shown) => `Only the first ${shown} values are listed.`;
|
|
167
250
|
/** Why the Partition editor won't tick a column that can't be compared (PLAN §11.6) */
|
|
168
251
|
export const CUBE_PARTITION_COLUMN_DISABLED_REASON = "can't be partitioned by";
|
|
169
252
|
/** What a Partition row shows in the column's place for a function that takes none (PLAN §11.6) */
|
|
@@ -207,20 +290,52 @@ export const EXTEND_APPLY_DISABLED_REASON = Object.freeze({
|
|
|
207
290
|
});
|
|
208
291
|
/** The warning on an Extend whose saved types the engine couldn't check again, e.g. offline (PLAN §11.7) */
|
|
209
292
|
export const getExtendRetypeWarning = (firstLine) => `Could not check these columns' types again, so they keep their saved ones: ${firstLine}`;
|
|
293
|
+
/** The warning on a Filter by Expression whose condition the engine couldn't check again, e.g. offline (PLAN §11.11) */
|
|
294
|
+
export const getConditionRecheckWarning = (firstLine) => `Could not check this condition again, so it keeps its last check: ${firstLine}`;
|
|
210
295
|
/** The notice of a node editor kept open, since its changes can't be applied yet, e.g. an Extend's expressions not validated */
|
|
211
296
|
export const getEditorKeptOpenNotice = (nodeId, waiting) => `The editor of ${nodeId} stays open, since its changes can't be applied yet: ${waiting}, or Cancel to drop them.`;
|
|
297
|
+
/** Why the Filter by Expression editor's Apply waits (PLAN §11.11) */
|
|
298
|
+
export const EXPRESSION_FILTER_APPLY_DISABLED_REASON = Object.freeze({
|
|
299
|
+
NOT_VALIDATED: 'Validate the condition first (F10)',
|
|
300
|
+
VALIDATING: 'Validating the condition',
|
|
301
|
+
});
|
|
302
|
+
/**
|
|
303
|
+
* The hint after an engine error on `and`, `or` or `not` given something
|
|
304
|
+
* other than a Boolean, which Pure's precedence usually causes: comparisons
|
|
305
|
+
* bind no tighter than `&&`, `||` and `!` (PLAN §11.11)
|
|
306
|
+
*/
|
|
307
|
+
export const EXPRESSION_FILTER_PARENTHESES_HINT = 'Put each comparison in parentheses: ($x.A > 1) && ($x.B > 3).';
|
|
308
|
+
/** What the Filter by Expression editor says about conditions (PLAN §11.11) */
|
|
309
|
+
export const EXPRESSION_FILTER_EDITOR_NOTES = [
|
|
310
|
+
"A condition of one row, written as in Query's text mode: x | $x.SHIPPED_DATE > $x.REQUIRED_DATE. The rows for which it is true are kept, in their order.",
|
|
311
|
+
'Put each comparison in parentheses when you combine them: ($x.A > 1) && ($x.B > 3). In Pure, &&, || and ! bind as tightly as >, <, >= and <=; == binds tighter.',
|
|
312
|
+
'A column that can be empty, compared directly ($x.A > 6), fails the condition when it is empty and passes its negation. After ->toOne(), an empty value fails both.',
|
|
313
|
+
"Validate (F10) checks the condition with the engine and plans it for the cube's database.",
|
|
314
|
+
"startsWith, endsWith and contains can't take a value with a backslash (\\) yet, nor, on DuckDB, one with % or _.",
|
|
315
|
+
];
|
|
212
316
|
/** The hint after an engine error on a column that can be empty, in arithmetic (PLAN §11.7) */
|
|
213
317
|
export const EXTEND_TO_ONE_HINT = 'A column that can be empty needs ->toOne() first, such as $x.QTY->toOne() + 1.';
|
|
214
|
-
/** The problem a database refusing an Extend's plan gives (PLAN §11.7) */
|
|
318
|
+
/** The problem a database refusing an Extend's or a Filter by Expression's plan gives (PLAN §11.7, §11.11) */
|
|
215
319
|
export const getExtendPlanProblem = (databaseType, detail) => `${databaseType ? `${databaseType} can't run it` : "The database can't run it"}: ${detail}`;
|
|
216
320
|
/** Under the Rename editor's rows: the rule for new column names (PLAN §11.4) */
|
|
217
321
|
export const COLUMN_NAME_RULES_HINT = 'Names can\'t start or end with a space, or contain " or \\ or control characters, and have at most 128 characters.';
|
|
322
|
+
/** Words a title leaves in lower case, but first */
|
|
323
|
+
const TITLE_SMALL_WORDS = new Set(['a', 'an', 'of']);
|
|
218
324
|
/**
|
|
219
325
|
* A node type's label as the node editor's title shows it, each word
|
|
220
|
-
* capitalised (QUESTIONS.md U1(a)), e.g. 'Take
|
|
221
|
-
* keeps its own wording
|
|
326
|
+
* capitalised but `a`, `an` and `of` (QUESTIONS.md U1(a)), e.g. 'Take a Range
|
|
327
|
+
* of Rows'; the registry keeps its own wording
|
|
222
328
|
*/
|
|
223
|
-
export const toEditorTitle = (label) => label.replace(/(?<=^|\s)[a-z]
|
|
329
|
+
export const toEditorTitle = (label) => label.replace(/(?<=^|\s)[a-z]+/gu, (word, offset) => offset > 0 && TITLE_SMALL_WORDS.has(word)
|
|
330
|
+
? word
|
|
331
|
+
: `${word[0]?.toUpperCase() ?? ''}${word.slice(1)}`);
|
|
224
332
|
/** The source dialog's body until a tab is chosen, opened from the empty canvas (spec §17.8, U4(b)) */
|
|
225
333
|
export const SELECT_SOURCE_TYPE_PROMPT = 'Select source type above';
|
|
334
|
+
/** Why the source dialog's Add is disabled: nothing picked yet, or not ready */
|
|
335
|
+
export const CUBE_PICK_TO_ADD_TITLE = 'Pick what to add first';
|
|
336
|
+
/**
|
|
337
|
+
* The badge a node type shows beside its name: WIP for one that doesn't
|
|
338
|
+
* work yet (a service, PLAN §6.4), else BETA for one in beta, else none
|
|
339
|
+
*/
|
|
340
|
+
export const getCubeNodeBadge = (definition) => definition.wip ? 'WIP' : definition.beta ? 'BETA' : undefined;
|
|
226
341
|
//# sourceMappingURL=LegendCubeLabels.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendCubeLabels.js","sourceRoot":"","sources":["../../src/__lib__/LegendCubeLabels.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"LegendCubeLabels.js","sourceRoot":"","sources":["../../src/__lib__/LegendCubeLabels.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,UAAU,GACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,2EAA2E;AAC3E,4BAA4B;AAE5B,uEAAuE;AACvE,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,CAAC;AACtC,6FAA6F;AAC7F,MAAM,CAAC,MAAM,2BAA2B,GAAG,OAAO,CAAC;AACnD,4CAA4C;AAC5C,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC;AAElC,MAAM,CAAN,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,gEAAmC,CAAA;IACnC,gFAAmD,CAAA;IACnD,+EAA+E;IAC/E,0FAA6D,C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AAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* What the source dialog says on a host that reads one project's own
|
|
18
|
+
* sources (`CubeHost.project`), e.g. Studio
|
|
19
|
+
*/
|
|
20
|
+
export declare const CUBE_PROJECT_SOURCE_LABEL: {
|
|
21
|
+
readonly RUNS_ON: (runtime: string) => string;
|
|
22
|
+
readonly READING_RUNTIME: "reading the project's lakehouse runtime";
|
|
23
|
+
readonly NO_INGEST_DEFINITIONS: "The project has no ingest definitions.";
|
|
24
|
+
readonly NO_DATA_PRODUCTS: "The project has no data products.";
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=LegendCubeProjectSourceLabels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendCubeProjectSourceLabels.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendCubeProjectSourceLabels.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;GAGG;AACH,eAAO,MAAM,yBAAyB;gCACjB,MAAM,KAAG,MAAM;;;;CAI1B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* What the source dialog says on a host that reads one project's own
|
|
18
|
+
* sources (`CubeHost.project`), e.g. Studio
|
|
19
|
+
*/
|
|
20
|
+
export const CUBE_PROJECT_SOURCE_LABEL = {
|
|
21
|
+
RUNS_ON: (runtime) => `Runs on ${runtime}`,
|
|
22
|
+
READING_RUNTIME: "reading the project's lakehouse runtime",
|
|
23
|
+
NO_INGEST_DEFINITIONS: 'The project has no ingest definitions.',
|
|
24
|
+
NO_DATA_PRODUCTS: 'The project has no data products.',
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=LegendCubeProjectSourceLabels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendCubeProjectSourceLabels.js","sourceRoot":"","sources":["../../src/__lib__/LegendCubeProjectSourceLabels.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,OAAO,EAAE,CAAC,OAAe,EAAU,EAAE,CAAC,WAAW,OAAO,EAAE;IAC1D,eAAe,EAAE,yCAAyC;IAC1D,qBAAqB,EAAE,wCAAwC;IAC/D,gBAAgB,EAAE,mCAAmC;CAC7C,CAAC"}
|
|
@@ -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
|
+
export declare const CUBE_SERVICE_MESSAGE: {
|
|
17
|
+
/** Why a service source isn't valid yet: its first line is the node's error */
|
|
18
|
+
readonly NOT_READABLE: "Cube can't read services yet\nPicking a service works; reading its columns and rows is still being built.";
|
|
19
|
+
readonly NO_CATALOG: "This Legend deployment doesn't list services";
|
|
20
|
+
readonly CUBE_CHANGED: "The cube changed while the service was being added; pick it again.";
|
|
21
|
+
readonly NONE: "No services are deployed.";
|
|
22
|
+
readonly NO_MATCH: "No service matches the search.";
|
|
23
|
+
readonly IN_PROGRESS: "Services are in progress: a service can be added to the canvas, but Cube can't read it yet.";
|
|
24
|
+
};
|
|
25
|
+
/** How many of the matching services the tab shows, when it doesn't show them all */
|
|
26
|
+
export declare const getShownServicesLabel: (shown: number, matching: number) => string | undefined;
|
|
27
|
+
//# sourceMappingURL=LegendCubeServiceLabels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendCubeServiceLabels.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendCubeServiceLabels.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,eAAO,MAAM,oBAAoB;IAC/B,+EAA+E;;;;;;;CASvE,CAAC;AAEX,qFAAqF;AACrF,eAAO,MAAM,qBAAqB,GAChC,OAAO,MAAM,EACb,UAAU,MAAM,KACf,MAAM,GAAG,SAGG,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { MESSAGE_SERVICE_NOT_READABLE } from '@finos/legend-cube';
|
|
17
|
+
// The text of service sources (PLAN §6.4), in progress: the source dialog's
|
|
18
|
+
// Service tab and a service's panel
|
|
19
|
+
export const CUBE_SERVICE_MESSAGE = {
|
|
20
|
+
/** Why a service source isn't valid yet: its first line is the node's error */
|
|
21
|
+
NOT_READABLE: `${MESSAGE_SERVICE_NOT_READABLE}\nPicking a service works; reading its columns and rows is still being built.`,
|
|
22
|
+
NO_CATALOG: "This Legend deployment doesn't list services",
|
|
23
|
+
CUBE_CHANGED: 'The cube changed while the service was being added; pick it again.',
|
|
24
|
+
NONE: 'No services are deployed.',
|
|
25
|
+
NO_MATCH: 'No service matches the search.',
|
|
26
|
+
IN_PROGRESS: "Services are in progress: a service can be added to the canvas, but Cube can't read it yet.",
|
|
27
|
+
};
|
|
28
|
+
/** How many of the matching services the tab shows, when it doesn't show them all */
|
|
29
|
+
export const getShownServicesLabel = (shown, matching) => shown < matching
|
|
30
|
+
? `Showing ${shown} of ${matching} services: search to narrow the list`
|
|
31
|
+
: undefined;
|
|
32
|
+
//# sourceMappingURL=LegendCubeServiceLabels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendCubeServiceLabels.js","sourceRoot":"","sources":["../../src/__lib__/LegendCubeServiceLabels.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAElE,4EAA4E;AAC5E,oCAAoC;AAEpC,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,+EAA+E;IAC/E,YAAY,EAAE,GAAG,4BAA4B,+EAA+E;IAC5H,UAAU,EAAE,8CAA8C;IAC1D,YAAY,EACV,oEAAoE;IACtE,IAAI,EAAE,2BAA2B;IACjC,QAAQ,EAAE,gCAAgC;IAC1C,WAAW,EACT,6FAA6F;CACvF,CAAC;AAEX,qFAAqF;AACrF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,KAAa,EACb,QAAgB,EACI,EAAE,CACtB,KAAK,GAAG,QAAQ;IACd,CAAC,CAAC,WAAW,KAAK,OAAO,QAAQ,sCAAsC;IACvE,CAAC,CAAC,SAAS,CAAC"}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export declare enum LEGEND_CUBE_TEST_ID {
|
|
17
|
+
RUNNING_NODE_BADGE = "legend-cube__running-node-badge",
|
|
17
18
|
EDITOR = "legend-cube__editor",
|
|
18
19
|
GRAPH_REGION = "legend-cube__graph-region",
|
|
19
20
|
GRID_REGION = "legend-cube__grid-region",
|
|
@@ -25,8 +26,14 @@ export declare enum LEGEND_CUBE_TEST_ID {
|
|
|
25
26
|
NODE_EDITOR = "legend-cube__node-editor",
|
|
26
27
|
EDITOR_NOTICE = "legend-cube__editor-notice",
|
|
27
28
|
ENTRY_SOURCE_ERROR = "legend-cube__entry-source-error",
|
|
29
|
+
LAMBDA_IMPORT = "legend-cube__lambda-import",
|
|
30
|
+
IMPORT_PURE = "legend-cube__import-pure",
|
|
28
31
|
FILTER_CONDITION = "legend-cube__filter-condition",
|
|
29
32
|
RESULT_GRID = "legend-cube__result-grid",
|
|
33
|
+
DRILLDOWN_BAR = "legend-cube__drilldown-bar",
|
|
34
|
+
RUN_STATS = "legend-cube__run-stats",
|
|
35
|
+
COLUMN_FORMAT = "legend-cube__column-format",
|
|
36
|
+
DRILLDOWN_SETTINGS = "legend-cube__drilldown-settings",
|
|
30
37
|
GRID_TOOLBAR = "legend-cube__grid-toolbar",
|
|
31
38
|
EXECUTION_ERROR = "legend-cube__execution-error",
|
|
32
39
|
SQL_PANEL = "legend-cube__sql-panel"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendCubeTesting.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendCubeTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,mBAAmB;IAC7B,MAAM,wBAAwB;IAC9B,YAAY,8BAA8B;IAC1C,WAAW,6BAA6B;IACxC,MAAM,wBAAwB;IAC9B,WAAW,6BAA6B;IACxC,iBAAiB,mCAAmC;IACpD,OAAO,yBAAyB;IAChC,YAAY,8BAA8B;IAC1C,WAAW,6BAA6B;IACxC,aAAa,+BAA+B;IAC5C,kBAAkB,oCAAoC;IACtD,gBAAgB,kCAAkC;IAClD,WAAW,6BAA6B;IACxC,YAAY,8BAA8B;IAC1C,eAAe,iCAAiC;IAChD,SAAS,2BAA2B;CACrC"}
|
|
1
|
+
{"version":3,"file":"LegendCubeTesting.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendCubeTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,mBAAmB;IAC7B,kBAAkB,oCAAoC;IACtD,MAAM,wBAAwB;IAC9B,YAAY,8BAA8B;IAC1C,WAAW,6BAA6B;IACxC,MAAM,wBAAwB;IAC9B,WAAW,6BAA6B;IACxC,iBAAiB,mCAAmC;IACpD,OAAO,yBAAyB;IAChC,YAAY,8BAA8B;IAC1C,WAAW,6BAA6B;IACxC,aAAa,+BAA+B;IAC5C,kBAAkB,oCAAoC;IACtD,aAAa,+BAA+B;IAC5C,WAAW,6BAA6B;IACxC,gBAAgB,kCAAkC;IAClD,WAAW,6BAA6B;IACxC,aAAa,+BAA+B;IAC5C,SAAS,2BAA2B;IACpC,aAAa,+BAA+B;IAC5C,kBAAkB,oCAAoC;IACtD,YAAY,8BAA8B;IAC1C,eAAe,iCAAiC;IAChD,SAAS,2BAA2B;CACrC"}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export var LEGEND_CUBE_TEST_ID;
|
|
17
17
|
(function (LEGEND_CUBE_TEST_ID) {
|
|
18
|
+
LEGEND_CUBE_TEST_ID["RUNNING_NODE_BADGE"] = "legend-cube__running-node-badge";
|
|
18
19
|
LEGEND_CUBE_TEST_ID["EDITOR"] = "legend-cube__editor";
|
|
19
20
|
LEGEND_CUBE_TEST_ID["GRAPH_REGION"] = "legend-cube__graph-region";
|
|
20
21
|
LEGEND_CUBE_TEST_ID["GRID_REGION"] = "legend-cube__grid-region";
|
|
@@ -26,8 +27,14 @@ export var LEGEND_CUBE_TEST_ID;
|
|
|
26
27
|
LEGEND_CUBE_TEST_ID["NODE_EDITOR"] = "legend-cube__node-editor";
|
|
27
28
|
LEGEND_CUBE_TEST_ID["EDITOR_NOTICE"] = "legend-cube__editor-notice";
|
|
28
29
|
LEGEND_CUBE_TEST_ID["ENTRY_SOURCE_ERROR"] = "legend-cube__entry-source-error";
|
|
30
|
+
LEGEND_CUBE_TEST_ID["LAMBDA_IMPORT"] = "legend-cube__lambda-import";
|
|
31
|
+
LEGEND_CUBE_TEST_ID["IMPORT_PURE"] = "legend-cube__import-pure";
|
|
29
32
|
LEGEND_CUBE_TEST_ID["FILTER_CONDITION"] = "legend-cube__filter-condition";
|
|
30
33
|
LEGEND_CUBE_TEST_ID["RESULT_GRID"] = "legend-cube__result-grid";
|
|
34
|
+
LEGEND_CUBE_TEST_ID["DRILLDOWN_BAR"] = "legend-cube__drilldown-bar";
|
|
35
|
+
LEGEND_CUBE_TEST_ID["RUN_STATS"] = "legend-cube__run-stats";
|
|
36
|
+
LEGEND_CUBE_TEST_ID["COLUMN_FORMAT"] = "legend-cube__column-format";
|
|
37
|
+
LEGEND_CUBE_TEST_ID["DRILLDOWN_SETTINGS"] = "legend-cube__drilldown-settings";
|
|
31
38
|
LEGEND_CUBE_TEST_ID["GRID_TOOLBAR"] = "legend-cube__grid-toolbar";
|
|
32
39
|
LEGEND_CUBE_TEST_ID["EXECUTION_ERROR"] = "legend-cube__execution-error";
|
|
33
40
|
LEGEND_CUBE_TEST_ID["SQL_PANEL"] = "legend-cube__sql-panel";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendCubeTesting.js","sourceRoot":"","sources":["../../src/__lib__/LegendCubeTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"LegendCubeTesting.js","sourceRoot":"","sources":["../../src/__lib__/LegendCubeTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,mBAwBX;AAxBD,WAAY,mBAAmB;IAC7B,6EAAsD,CAAA;IACtD,qDAA8B,CAAA;IAC9B,iEAA0C,CAAA;IAC1C,+DAAwC,CAAA;IACxC,qDAA8B,CAAA;IAC9B,+DAAwC,CAAA;IACxC,2EAAoD,CAAA;IACpD,uDAAgC,CAAA;IAChC,iEAA0C,CAAA;IAC1C,+DAAwC,CAAA;IACxC,mEAA4C,CAAA;IAC5C,6EAAsD,CAAA;IACtD,mEAA4C,CAAA;IAC5C,+DAAwC,CAAA;IACxC,yEAAkD,CAAA;IAClD,+DAAwC,CAAA;IACxC,mEAA4C,CAAA;IAC5C,2DAAoC,CAAA;IACpC,mEAA4C,CAAA;IAC5C,6EAAsD,CAAA;IACtD,iEAA0C,CAAA;IAC1C,uEAAgD,CAAA;IAChD,2DAAoC,CAAA;AACtC,CAAC,EAxBW,mBAAmB,KAAnB,mBAAmB,QAwB9B"}
|
|
@@ -33,7 +33,7 @@ export declare const CUBE_ENGINE_TEST__jsonToGrammar_lambda: (lambda: PlainObjec
|
|
|
33
33
|
* does in the browser. A body given as text (with lossless numbers) is sent
|
|
34
34
|
* as it is.
|
|
35
35
|
*/
|
|
36
|
-
export declare const CUBE_ENGINE_TEST__execute: (input: object | string) => Promise<{
|
|
36
|
+
export declare const CUBE_ENGINE_TEST__execute: (input: object | string, serializationFormat?: string) => Promise<{
|
|
37
37
|
ok: boolean;
|
|
38
38
|
status: number;
|
|
39
39
|
text: () => Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CubeEngineTestSupport.d.ts","sourceRoot":"","sources":["../../src/__test-utils__/CubeEngineTestSupport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAa9B,qDAAqD;AACrD,eAAO,MAAM,2BAA2B,QAAa,OAAO,CAAC,MAAM,CAMlE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sCAAsC,GACjD,MAAM,MAAM,KACX,OAAO,CAAC,OAAO,CAcf,CAAC;AAEJ,uFAAuF;AACvF,eAAO,MAAM,yCAAyC,GACpD,OAAO,MAAM,KACZ,OAAO,CAAC,WAAW,CAOd,CAAC;AAET,4EAA4E;AAC5E,eAAO,MAAM,yBAAyB,GACpC,OAAO,MAAM,KACZ,OAAO,CAAC,WAAW,CAOd,CAAC;AAET,0DAA0D;AAC1D,eAAO,MAAM,sCAAsC,GACjD,QAAQ,WAAW,EACnB,cAAc,MAAM,GAAG,SAAS,KAC/B,OAAO,CAAC,MAAM,CAeT,CAAC;AAET;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GACpC,OAAO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AM,OAAO,CAAC,MAAM,CAAC,CAAA;CAAE,CAiBtE,CAAC;AAEF,uGAAuG;AACvG,eAAO,MAAM,8BAA8B,GACzC,OAAO,MAAM,GAAG,MAAM,KACrB,OAAO,CAAC,WAAW,CAOd,CAAC"}
|
|
@@ -59,10 +59,10 @@ export const CUBE_ENGINE_TEST__jsonToGrammar_lambda = async (lambda, renderStyle
|
|
|
59
59
|
* does in the browser. A body given as text (with lossless numbers) is sent
|
|
60
60
|
* as it is.
|
|
61
61
|
*/
|
|
62
|
-
export const CUBE_ENGINE_TEST__execute = async (input) => {
|
|
62
|
+
export const CUBE_ENGINE_TEST__execute = async (input, serializationFormat = 'DEFAULT') => {
|
|
63
63
|
const response = await axios.post(`${PURE_API}/execution/execute`, input, {
|
|
64
64
|
headers: JSON_HEADERS,
|
|
65
|
-
params: { serializationFormat
|
|
65
|
+
params: { serializationFormat },
|
|
66
66
|
responseType: 'text',
|
|
67
67
|
transformResponse: (data) => data,
|
|
68
68
|
validateStatus: () => true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CubeEngineTestSupport.js","sourceRoot":"","sources":["../../src/__test-utils__/CubeEngineTestSupport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,EAAsB,MAAM,OAAO,CAAC;AAClD,OAAO,EACL,WAAW,EACX,UAAU,EACV,iBAAiB,GAElB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAEvE,kFAAkF;AAClF,2EAA2E;AAC3E,wEAAwE;AAExE,MAAM,QAAQ,GAAG,GAAG,2BAA2B,UAAU,CAAC;AAE1D,MAAM,YAAY,GAAG;IACnB,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,WAAW,CAAC,gBAAgB;CACxD,CAAC;AAEF,qDAAqD;AACrD,MAAM,CAAC,MAAM,2BAA2B,GAAG,KAAK,IAAqB,EAAE;IACrE,M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AAK,EACjD,KAAsB,EACA,EAAE,CACxB,CACE,MAAM,KAAK,CAAC,IAAI,CACd,GAAG,QAAQ,yBAAyB,EACpC,KAAK,EACL,EAAE,OAAO,EAAE,YAAY,EAAE,CAC1B,CACF,CAAC,IAAI,CAAC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { Extend, type JsonObject, type Query } from '@finos/legend-cube';
|
|
16
|
+
import { ExpressionFilter, Extend, type JsonObject, type Query } from '@finos/legend-cube';
|
|
17
17
|
/** `x | <body>` and the pieces of a body */
|
|
18
18
|
export declare const TEST__expression: {
|
|
19
19
|
lambda: (body: JsonObject) => JsonObject;
|
|
@@ -23,6 +23,7 @@ export declare const TEST__expression: {
|
|
|
23
23
|
/** The two operands of `+`, `*`, … */
|
|
24
24
|
pair: (first: JsonObject, second: JsonObject) => JsonObject;
|
|
25
25
|
integer: (value: number) => JsonObject;
|
|
26
|
+
string: (value: string) => JsonObject;
|
|
26
27
|
};
|
|
27
28
|
/** A new column: its name, its lambda, and the type the engine gives it */
|
|
28
29
|
export type TEST__ExtendColumn = readonly [string, JsonObject, string];
|
|
@@ -32,6 +33,12 @@ export type TEST__ExtendColumn = readonly [string, JsonObject, string];
|
|
|
32
33
|
* tests check the types are the engine's. With an invalid input, untyped.
|
|
33
34
|
*/
|
|
34
35
|
export declare const TEST__typedExtend: (id: string, input: Query, columns: readonly TEST__ExtendColumn[]) => Extend;
|
|
36
|
+
/**
|
|
37
|
+
* A Filter by Expression of this condition, checked for the input Cube infers
|
|
38
|
+
* for `input`'s selected node, so it is valid without the engine; the engine
|
|
39
|
+
* tests check the engine takes it. With an invalid input, not checked.
|
|
40
|
+
*/
|
|
41
|
+
export declare const TEST__checkedExpressionFilter: (id: string, input: Query, code: string, lambda: JsonObject) => ExpressionFilter;
|
|
35
42
|
/** `a: x | $x.ORDER_ID + 1` and `b: x | $x.a * 2`, the second using the first, both Integer */
|
|
36
43
|
export declare const TEST__ORDER_ID_EXTEND_COLUMNS: readonly TEST__ExtendColumn[];
|
|
37
44
|
//# sourceMappingURL=CubeExpressionTestUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CubeExpressionTestUtils.d.ts","sourceRoot":"","sources":["../../src/__test-utils__/CubeExpressionTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,MAAM,
|
|
1
|
+
{"version":3,"file":"CubeExpressionTestUtils.d.ts","sourceRoot":"","sources":["../../src/__test-utils__/CubeExpressionTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,gBAAgB,EAChB,MAAM,EAGN,KAAK,UAAU,EAEf,KAAK,KAAK,EACX,MAAM,oBAAoB,CAAC;AAM5B,4CAA4C;AAC5C,eAAO,MAAM,gBAAgB;mBACZ,UAAU,KAAG,UAAU;IAKtC,kBAAkB;mBACH,MAAM,KAAG,UAAU;iBAKrB,MAAM,iBAAiB,UAAU,EAAE,KAAG,UAAU;IAK7D,sCAAsC;kBACxB,UAAU,UAAU,UAAU,KAAG,UAAU;qBAKxC,MAAM,KAAG,UAAU;oBAIpB,MAAM,KAAG,UAAU;CACpC,CAAC;AAEF,2EAA2E;AAC3E,MAAM,MAAM,kBAAkB,GAAG,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;AAEvE;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,IAAI,MAAM,EACV,OAAO,KAAK,EACZ,SAAS,SAAS,kBAAkB,EAAE,KACrC,MAkBF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GACxC,IAAI,MAAM,EACV,OAAO,KAAK,EACZ,MAAM,MAAM,EACZ,QAAQ,UAAU,KACjB,gBAWF,CAAC;AAEF,+FAA+F;AAC/F,eAAO,MAAM,6BAA6B,EAAE,SAAS,kBAAkB,EA2BtE,CAAC"}
|
|
@@ -13,9 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { buildSchemasAndValidity, Extend, getExtendSignature, PrimitiveType, } from '@finos/legend-cube';
|
|
17
|
-
// Extend columns for tests (PLAN §11.7
|
|
18
|
-
//
|
|
16
|
+
import { buildSchemasAndValidity, ExpressionFilter, Extend, getExpressionFilterSignature, getExtendSignature, PrimitiveType, } from '@finos/legend-cube';
|
|
17
|
+
// Extend columns and filter conditions for tests (PLAN §11.7, §11.11),
|
|
18
|
+
// written as the engine's JSON, as a node stores it: number literals as their
|
|
19
|
+
// digits
|
|
19
20
|
/** `x | <body>` and the pieces of a body */
|
|
20
21
|
export const TEST__expression = {
|
|
21
22
|
lambda: (body) => ({
|
|
@@ -44,6 +45,7 @@ export const TEST__expression = {
|
|
|
44
45
|
_type: 'integer',
|
|
45
46
|
value: String(value),
|
|
46
47
|
}),
|
|
48
|
+
string: (value) => ({ _type: 'string', value }),
|
|
47
49
|
};
|
|
48
50
|
/**
|
|
49
51
|
* An Extend of these columns, typed as given for the input Cube infers for
|
|
@@ -67,6 +69,21 @@ export const TEST__typedExtend = (id, input, columns) => {
|
|
|
67
69
|
types: columns.map(([, , type]) => PrimitiveType.get(type)),
|
|
68
70
|
});
|
|
69
71
|
};
|
|
72
|
+
/**
|
|
73
|
+
* A Filter by Expression of this condition, checked for the input Cube infers
|
|
74
|
+
* for `input`'s selected node, so it is valid without the engine; the engine
|
|
75
|
+
* tests check the engine takes it. With an invalid input, not checked.
|
|
76
|
+
*/
|
|
77
|
+
export const TEST__checkedExpressionFilter = (id, input, code, lambda) => {
|
|
78
|
+
const filter = new ExpressionFilter(id, code, lambda);
|
|
79
|
+
const schema = buildSchemasAndValidity(input).schemas.get(input.selected ?? '');
|
|
80
|
+
return schema
|
|
81
|
+
? filter.withCheck({
|
|
82
|
+
kind: 'checked',
|
|
83
|
+
signature: getExpressionFilterSignature(schema, lambda),
|
|
84
|
+
})
|
|
85
|
+
: filter;
|
|
86
|
+
};
|
|
70
87
|
/** `a: x | $x.ORDER_ID + 1` and `b: x | $x.a * 2`, the second using the first, both Integer */
|
|
71
88
|
export const TEST__ORDER_ID_EXTEND_COLUMNS = [
|
|
72
89
|
[
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CubeExpressionTestUtils.js","sourceRoot":"","sources":["../../src/__test-utils__/CubeExpressionTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,EACvB,MAAM,EACN,kBAAkB,EAElB,aAAa,GAEd,MAAM,oBAAoB,CAAC;AAE5B,
|
|
1
|
+
{"version":3,"file":"CubeExpressionTestUtils.js","sourceRoot":"","sources":["../../src/__test-utils__/CubeExpressionTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,EACvB,gBAAgB,EAChB,MAAM,EACN,4BAA4B,EAC5B,kBAAkB,EAElB,aAAa,GAEd,MAAM,oBAAoB,CAAC;AAE5B,uEAAuE;AACvE,8EAA8E;AAC9E,SAAS;AAET,4CAA4C;AAC5C,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM,EAAE,CAAC,IAAgB,EAAc,EAAE,CAAC,CAAC;QACzC,KAAK,EAAE,QAAQ;QACf,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;QACzC,IAAI,EAAE,CAAC,IAAI,CAAC;KACb,CAAC;IACF,kBAAkB;IAClB,MAAM,EAAE,CAAC,IAAY,EAAc,EAAE,CAAC,CAAC;QACrC,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,CAA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