@finos/legend-cube-builder 0.0.4 → 0.0.6
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 +24 -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 +83 -5
- 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 +16 -2
- package/lib/__lib__/LegendCubeHelpText.js.map +1 -1
- package/lib/__lib__/LegendCubeLabels.d.ts +130 -9
- package/lib/__lib__/LegendCubeLabels.d.ts.map +1 -1
- package/lib/__lib__/LegendCubeLabels.js +169 -17
- package/lib/__lib__/LegendCubeLabels.js.map +1 -1
- package/lib/__lib__/LegendCubeNavigation.d.ts +23 -0
- package/lib/__lib__/LegendCubeNavigation.d.ts.map +1 -0
- package/lib/__lib__/LegendCubeNavigation.js +33 -0
- package/lib/__lib__/LegendCubeNavigation.js.map +1 -0
- 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 +10 -1
- package/lib/__lib__/LegendCubeTesting.d.ts.map +1 -1
- package/lib/__lib__/LegendCubeTesting.js +9 -0
- package/lib/__lib__/LegendCubeTesting.js.map +1 -1
- package/lib/__lib__/LegendCubeTour.d.ts +62 -0
- package/lib/__lib__/LegendCubeTour.d.ts.map +1 -0
- package/lib/__lib__/LegendCubeTour.js +149 -0
- package/lib/__lib__/LegendCubeTour.js.map +1 -0
- 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__/CubeExampleTestUtils.d.ts +34 -0
- package/lib/__test-utils__/CubeExampleTestUtils.d.ts.map +1 -0
- package/lib/__test-utils__/CubeExampleTestUtils.js +72 -0
- package/lib/__test-utils__/CubeExampleTestUtils.js.map +1 -0
- 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__/CubeVariantTestUtils.d.ts +16 -0
- package/lib/__test-utils__/CubeVariantTestUtils.d.ts.map +1 -0
- package/lib/__test-utils__/CubeVariantTestUtils.js +66 -0
- package/lib/__test-utils__/CubeVariantTestUtils.js.map +1 -0
- 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 +11 -7
- 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 +22 -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 +78 -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 +6 -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 +40 -6
- 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 +11 -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 +54 -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 +6 -4
- 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/CubeExplodeEditor.d.ts +26 -0
- package/lib/components/editors/CubeExplodeEditor.d.ts.map +1 -0
- package/lib/components/editors/CubeExplodeEditor.js +61 -0
- package/lib/components/editors/CubeExplodeEditor.js.map +1 -0
- 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 +86 -0
- package/lib/components/editors/CubeExpressionFilterEditor.js.map +1 -0
- package/lib/components/editors/CubeExtendEditor.d.ts.map +1 -1
- package/lib/components/editors/CubeExtendEditor.js +13 -12
- 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/CubeJsonFieldsTree.d.ts +46 -0
- package/lib/components/editors/CubeJsonFieldsTree.d.ts.map +1 -0
- package/lib/components/editors/CubeJsonFieldsTree.js +93 -0
- package/lib/components/editors/CubeJsonFieldsTree.js.map +1 -0
- 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 +11 -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 +43 -28
- package/lib/components/grid/CubeGridRegion.js.map +1 -1
- package/lib/components/grid/CubeGridValues.d.ts +36 -4
- package/lib/components/grid/CubeGridValues.d.ts.map +1 -1
- package/lib/components/grid/CubeGridValues.js +116 -4
- package/lib/components/grid/CubeGridValues.js.map +1 -1
- package/lib/components/grid/CubeJsonExplorerDialog.d.ts +27 -0
- package/lib/components/grid/CubeJsonExplorerDialog.d.ts.map +1 -0
- package/lib/components/grid/CubeJsonExplorerDialog.js +102 -0
- package/lib/components/grid/CubeJsonExplorerDialog.js.map +1 -0
- package/lib/components/grid/CubeJsonViewerDialog.d.ts +27 -0
- package/lib/components/grid/CubeJsonViewerDialog.d.ts.map +1 -0
- package/lib/components/grid/CubeJsonViewerDialog.js +68 -0
- package/lib/components/grid/CubeJsonViewerDialog.js.map +1 -0
- package/lib/components/grid/CubeResultGrid.d.ts +81 -6
- package/lib/components/grid/CubeResultGrid.d.ts.map +1 -1
- package/lib/components/grid/CubeResultGrid.js +400 -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 +116 -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 +36 -14
- 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 +2 -2
- package/lib/components/source-picker/CubeIngestTab.d.ts.map +1 -1
- package/lib/components/source-picker/CubeIngestTab.js +49 -20
- 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/components/tour/CubeTour.d.ts +36 -0
- package/lib/components/tour/CubeTour.d.ts.map +1 -0
- package/lib/components/tour/CubeTour.js +183 -0
- package/lib/components/tour/CubeTour.js.map +1 -0
- 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 +13 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +11 -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 +189 -43
- package/lib/stores/CubeEditorState.d.ts.map +1 -1
- package/lib/stores/CubeEditorState.js +532 -117
- 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 +136 -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 +6 -3
- 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 +25 -6
- package/lib/stores/CubeGridQuickActions.d.ts.map +1 -1
- package/lib/stores/CubeGridQuickActions.js +52 -23
- 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/CubePureText.d.ts +20 -0
- package/lib/stores/CubePureText.d.ts.map +1 -0
- package/lib/stores/CubePureText.js +24 -0
- package/lib/stores/CubePureText.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/CubeTourState.d.ts +49 -0
- package/lib/stores/CubeTourState.d.ts.map +1 -0
- package/lib/stores/CubeTourState.js +92 -0
- package/lib/stores/CubeTourState.js.map +1 -0
- package/lib/stores/LegendCubeHost.d.ts +88 -0
- package/lib/stores/LegendCubeHost.d.ts.map +1 -0
- package/lib/stores/LegendCubeHost.js +149 -0
- package/lib/stores/LegendCubeHost.js.map +1 -0
- 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/CubeExplodeDraft.d.ts +87 -0
- package/lib/stores/editors/CubeExplodeDraft.d.ts.map +1 -0
- package/lib/stores/editors/CubeExplodeDraft.js +221 -0
- package/lib/stores/editors/CubeExplodeDraft.js.map +1 -0
- package/lib/stores/editors/CubeExpressionFilterDraft.d.ts +94 -0
- package/lib/stores/editors/CubeExpressionFilterDraft.d.ts.map +1 -0
- package/lib/stores/editors/CubeExpressionFilterDraft.js +258 -0
- package/lib/stores/editors/CubeExpressionFilterDraft.js.map +1 -0
- package/lib/stores/editors/CubeExtendDraft.d.ts +9 -0
- package/lib/stores/editors/CubeExtendDraft.d.ts.map +1 -1
- package/lib/stores/editors/CubeExtendDraft.js +26 -0
- package/lib/stores/editors/CubeExtendDraft.js.map +1 -1
- 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 +25 -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 +27 -0
- package/lib/stores/fixtures/CubeSalesDuckDbModel.d.ts.map +1 -0
- package/lib/stores/fixtures/CubeSalesDuckDbModel.js +52 -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 +62 -15
- package/lib/stores/source-picker/CubeIngestTabState.d.ts.map +1 -1
- package/lib/stores/source-picker/CubeIngestTabState.js +212 -60
- 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/lib/stores/variant/CubeJson.d.ts +48 -0
- package/lib/stores/variant/CubeJson.d.ts.map +1 -0
- package/lib/stores/variant/CubeJson.js +207 -0
- package/lib/stores/variant/CubeJson.js.map +1 -0
- package/lib/stores/variant/CubeJsonExplorerState.d.ts +88 -0
- package/lib/stores/variant/CubeJsonExplorerState.d.ts.map +1 -0
- package/lib/stores/variant/CubeJsonExplorerState.js +297 -0
- package/lib/stores/variant/CubeJsonExplorerState.js.map +1 -0
- package/lib/stores/variant/CubeJsonFieldsState.d.ts +83 -0
- package/lib/stores/variant/CubeJsonFieldsState.d.ts.map +1 -0
- package/lib/stores/variant/CubeJsonFieldsState.js +207 -0
- package/lib/stores/variant/CubeJsonFieldsState.js.map +1 -0
- package/lib/stores/variant/CubeJsonOffers.d.ts +76 -0
- package/lib/stores/variant/CubeJsonOffers.d.ts.map +1 -0
- package/lib/stores/variant/CubeJsonOffers.js +250 -0
- package/lib/stores/variant/CubeJsonOffers.js.map +1 -0
- package/lib/stores/variant/CubeJsonParse.d.ts +28 -0
- package/lib/stores/variant/CubeJsonParse.d.ts.map +1 -0
- package/lib/stores/variant/CubeJsonParse.js +53 -0
- package/lib/stores/variant/CubeJsonParse.js.map +1 -0
- package/lib/stores/variant/CubeJsonSampling.d.ts +41 -0
- package/lib/stores/variant/CubeJsonSampling.d.ts.map +1 -0
- package/lib/stores/variant/CubeJsonSampling.js +59 -0
- package/lib/stores/variant/CubeJsonSampling.js.map +1 -0
- package/lib/stores/variant/CubeJsonShape.d.ts +87 -0
- package/lib/stores/variant/CubeJsonShape.d.ts.map +1 -0
- package/lib/stores/variant/CubeJsonShape.js +209 -0
- package/lib/stores/variant/CubeJsonShape.js.map +1 -0
- package/lib/stores/variant/CubeJsonViewerState.d.ts +33 -0
- package/lib/stores/variant/CubeJsonViewerState.d.ts.map +1 -0
- package/lib/stores/variant/CubeJsonViewerState.js +53 -0
- package/lib/stores/variant/CubeJsonViewerState.js.map +1 -0
- package/package.json +10 -9
- package/src/__lib__/LegendCubeCommand.ts +7 -0
- package/src/__lib__/LegendCubeFunctionLabels.ts +41 -0
- package/src/__lib__/LegendCubeHelpText.ts +27 -1
- package/src/__lib__/LegendCubeLabels.ts +225 -16
- package/src/__lib__/LegendCubeNavigation.ts +48 -0
- package/src/__lib__/LegendCubeProjectSourceLabels.ts +26 -0
- package/src/__lib__/LegendCubeServiceLabels.ts +41 -0
- package/src/__lib__/LegendCubeTesting.ts +9 -0
- package/src/__lib__/LegendCubeTour.ts +173 -0
- package/src/__test-utils__/CubeEngineTestSupport.ts +2 -1
- package/src/__test-utils__/CubeExampleTestUtils.ts +119 -0
- 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__/CubeVariantTestUtils.ts +103 -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 +15 -6
- package/src/components/CubeDialogTheme.ts +25 -0
- package/src/components/CubeEditor.tsx +170 -129
- package/src/components/CubeFileMenu.tsx +129 -0
- package/src/components/CubeLambdaImportBanner.tsx +97 -0
- package/src/components/CubeNodeIcon.tsx +9 -0
- package/src/components/CubeSchemaColumnsTable.tsx +7 -2
- package/src/components/canvas/CubeCanvas.tsx +65 -10
- 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 +37 -3
- package/src/components/dev-settings/CubeDevSettings.tsx +169 -0
- package/src/components/editors/CubeColumnChecklist.tsx +8 -2
- package/src/components/editors/CubeColumnPicker.tsx +9 -3
- package/src/components/editors/CubeConcatEditor.tsx +2 -2
- package/src/components/editors/CubeExplodeEditor.tsx +207 -0
- package/src/components/editors/CubeExpressionFilterEditor.tsx +210 -0
- package/src/components/editors/CubeExtendEditor.tsx +34 -21
- 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/CubeJsonFieldsTree.tsx +316 -0
- package/src/components/editors/CubeNodeEditorPanel.tsx +22 -10
- package/src/components/editors/CubeNodeEditorPopper.tsx +9 -1
- package/src/components/editors/CubeNodeEditorRegistry.ts +15 -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 +190 -56
- package/src/components/grid/CubeGridValues.ts +154 -4
- package/src/components/grid/CubeJsonExplorerDialog.tsx +304 -0
- package/src/components/grid/CubeJsonViewerDialog.tsx +190 -0
- package/src/components/grid/CubeResultGrid.tsx +586 -42
- package/src/components/grid/CubeRunStatsPanel.tsx +156 -0
- package/src/components/grid/CubeServerSideGrid.tsx +213 -0
- package/src/components/grid/CubeSqlDialog.tsx +90 -0
- package/src/components/grid/CubeSqlFormat.ts +37 -0
- package/src/components/palette/CubePalette.tsx +54 -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 +195 -83
- 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/components/tour/CubeTour.tsx +317 -0
- 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 +39 -2
- package/src/stores/CubeAddPlacement.ts +25 -5
- package/src/stores/CubeDevSettingsState.ts +117 -0
- package/src/stores/CubeEditorState.ts +722 -201
- package/src/stores/CubeEngineChecks.ts +240 -0
- package/src/stores/CubeExamples.ts +188 -1
- package/src/stores/CubeExamplesState.ts +13 -3
- 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 +56 -23
- 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/CubePureText.ts +28 -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/CubeTourState.ts +116 -0
- package/src/stores/LegendCubeHost.ts +243 -0
- package/src/stores/LocalModelCatalog.ts +6 -1
- package/src/stores/editors/CubeExplodeDraft.ts +272 -0
- package/src/stores/editors/CubeExpressionFilterDraft.ts +389 -0
- package/src/stores/editors/CubeExtendDraft.ts +29 -0
- package/src/stores/editors/CubeFunctionDraft.ts +92 -0
- package/src/stores/editors/CubeNodeDraftRegistry.ts +34 -2
- package/src/stores/editors/CubePivotDraft.ts +355 -0
- package/src/stores/fixtures/CubeSalesDuckDbModel.ts +60 -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 +331 -106
- 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/src/stores/variant/CubeJson.ts +229 -0
- package/src/stores/variant/CubeJsonExplorerState.ts +378 -0
- package/src/stores/variant/CubeJsonFieldsState.ts +252 -0
- package/src/stores/variant/CubeJsonOffers.ts +359 -0
- package/src/stores/variant/CubeJsonParse.ts +75 -0
- package/src/stores/variant/CubeJsonSampling.ts +90 -0
- package/src/stores/variant/CubeJsonShape.ts +279 -0
- package/src/stores/variant/CubeJsonViewerState.ts +59 -0
- package/tsconfig.json +72 -1
|
@@ -0,0 +1,83 @@
|
|
|
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 Schema, type SchemaColumn } from '@finos/legend-cube';
|
|
17
|
+
import { type GeneratorFn } from '@finos/legend-shared';
|
|
18
|
+
import type { CubeEditorState } from '../CubeEditorState.js';
|
|
19
|
+
import { type CubeJsonField } from './CubeJsonOffers.js';
|
|
20
|
+
import type { CubeJsonSample } from './CubeJsonShape.js';
|
|
21
|
+
/**
|
|
22
|
+
* A Variant input column's fields in an expression editor, Extend's or
|
|
23
|
+
* Filter by Expression's (PLAN §11.20, V.9): opened from the column's chip,
|
|
24
|
+
* read from a sample of the column just before the node being edited, so no
|
|
25
|
+
* run of the cube is needed and stale rows don't matter. The sample is read
|
|
26
|
+
* as Explore JSON reads one (listed in Runs, and it can be stopped); a field
|
|
27
|
+
* clicked writes its expression into the editor's.
|
|
28
|
+
*/
|
|
29
|
+
export declare class CubeJsonFieldsState {
|
|
30
|
+
readonly editorState: CubeEditorState;
|
|
31
|
+
/** The node being edited, whose input is read */
|
|
32
|
+
readonly nodeId: string;
|
|
33
|
+
/** The column whose fields are open; `undefined` while closed */
|
|
34
|
+
column: SchemaColumn | undefined;
|
|
35
|
+
/** What was read, and of which column */
|
|
36
|
+
sample: {
|
|
37
|
+
readonly column: string;
|
|
38
|
+
readonly sample: CubeJsonSample;
|
|
39
|
+
} | undefined;
|
|
40
|
+
isReading: boolean;
|
|
41
|
+
/** Why the column couldn't be read */
|
|
42
|
+
error: string | undefined;
|
|
43
|
+
search: string;
|
|
44
|
+
/** The fields folded, by path; every field starts open */
|
|
45
|
+
readonly folded: import("mobx").ObservableSet<string>;
|
|
46
|
+
/** The field whose other forms show, by path */
|
|
47
|
+
formsOf: string | undefined;
|
|
48
|
+
private controller;
|
|
49
|
+
constructor(editorState: CubeEditorState, nodeId: string);
|
|
50
|
+
/** The node's input: its id and schema, once known */
|
|
51
|
+
get input(): {
|
|
52
|
+
id: string;
|
|
53
|
+
schema: Schema;
|
|
54
|
+
} | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Why the fields can't be read: the database the node's input runs on has
|
|
57
|
+
* no Variant functions; `undefined` when they can, or it isn't known yet
|
|
58
|
+
*/
|
|
59
|
+
get databaseProblem(): string | undefined;
|
|
60
|
+
/** The open column's fields, from what was read of it */
|
|
61
|
+
get fields(): CubeJsonField | undefined;
|
|
62
|
+
/** The fields matching the search, with the fields they are in */
|
|
63
|
+
get shownFields(): CubeJsonField | undefined;
|
|
64
|
+
isOpen(column: string): boolean;
|
|
65
|
+
isFolded(path: readonly string[]): boolean;
|
|
66
|
+
areFormsShown(path: readonly string[]): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Opens a column's fields, reading its first values unless they were read
|
|
69
|
+
* already, or closes them if open. The model's databases are loaded first:
|
|
70
|
+
* a database without JSON functions is refused, with the reason.
|
|
71
|
+
*/
|
|
72
|
+
toggle(column: SchemaColumn): GeneratorFn<void>;
|
|
73
|
+
/** Reads the open column's first values, or every row, before the node */
|
|
74
|
+
read(everyRow: boolean): GeneratorFn<void>;
|
|
75
|
+
/** Stops a read in flight, keeping what was read before it */
|
|
76
|
+
stop(): void;
|
|
77
|
+
/** Closes the fields, keeping what was read for when they open again */
|
|
78
|
+
close(): void;
|
|
79
|
+
setSearch(search: string): void;
|
|
80
|
+
toggleFolded(path: readonly string[]): void;
|
|
81
|
+
toggleForms(path: readonly string[]): void;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=CubeJsonFieldsState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CubeJsonFieldsState.d.ts","sourceRoot":"","sources":["../../../src/stores/variant/CubeJsonFieldsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,MAAM,EACX,KAAK,YAAY,EAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAU3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EACL,KAAK,aAAa,EAGnB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKzD;;;;;;;GAOG;AACH,qBAAa,mBAAmB;IAC9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sC3C,8DAA8D;IAC9D,IAAI,IAAI,IAAI;IAMZ,wEAAwE;IACxE,KAAK,IAAI,IAAI;IAOb,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI/B,YAAY,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI;IAS3C,WAAW,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI;CAI3C"}
|
|
@@ -0,0 +1,207 @@
|
|
|
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 { getVariantDatabaseProblem, } from '@finos/legend-cube';
|
|
17
|
+
import { assertErrorThrown } from '@finos/legend-shared';
|
|
18
|
+
import { action, computed, flow, flowResult, makeObservable, observable, } from 'mobx';
|
|
19
|
+
import { CubeEngineError } from '../../graph-manager/CubeEngine.js';
|
|
20
|
+
import { CubeQueryRunAborted } from '../CubeQueryRun.js';
|
|
21
|
+
import { filterCubeJsonFields, getCubeJsonFields, } from './CubeJsonOffers.js';
|
|
22
|
+
import { readCubeJsonSample } from './CubeJsonSampling.js';
|
|
23
|
+
/** A field's path as one key */
|
|
24
|
+
const pathKey = (path) => JSON.stringify(path);
|
|
25
|
+
/**
|
|
26
|
+
* A Variant input column's fields in an expression editor, Extend's or
|
|
27
|
+
* Filter by Expression's (PLAN §11.20, V.9): opened from the column's chip,
|
|
28
|
+
* read from a sample of the column just before the node being edited, so no
|
|
29
|
+
* run of the cube is needed and stale rows don't matter. The sample is read
|
|
30
|
+
* as Explore JSON reads one (listed in Runs, and it can be stopped); a field
|
|
31
|
+
* clicked writes its expression into the editor's.
|
|
32
|
+
*/
|
|
33
|
+
export class CubeJsonFieldsState {
|
|
34
|
+
editorState;
|
|
35
|
+
/** The node being edited, whose input is read */
|
|
36
|
+
nodeId;
|
|
37
|
+
/** The column whose fields are open; `undefined` while closed */
|
|
38
|
+
column;
|
|
39
|
+
/** What was read, and of which column */
|
|
40
|
+
sample;
|
|
41
|
+
isReading = false;
|
|
42
|
+
/** Why the column couldn't be read */
|
|
43
|
+
error;
|
|
44
|
+
search = '';
|
|
45
|
+
/** The fields folded, by path; every field starts open */
|
|
46
|
+
folded = observable.set();
|
|
47
|
+
/** The field whose other forms show, by path */
|
|
48
|
+
formsOf;
|
|
49
|
+
controller;
|
|
50
|
+
constructor(editorState, nodeId) {
|
|
51
|
+
makeObservable(this, {
|
|
52
|
+
column: observable.ref,
|
|
53
|
+
sample: observable.ref,
|
|
54
|
+
isReading: observable,
|
|
55
|
+
error: observable,
|
|
56
|
+
search: observable,
|
|
57
|
+
formsOf: observable,
|
|
58
|
+
input: computed,
|
|
59
|
+
databaseProblem: computed,
|
|
60
|
+
fields: computed,
|
|
61
|
+
shownFields: computed,
|
|
62
|
+
toggle: flow,
|
|
63
|
+
read: flow,
|
|
64
|
+
stop: action,
|
|
65
|
+
close: action,
|
|
66
|
+
setSearch: action,
|
|
67
|
+
toggleFolded: action,
|
|
68
|
+
toggleForms: action,
|
|
69
|
+
});
|
|
70
|
+
this.editorState = editorState;
|
|
71
|
+
this.nodeId = nodeId;
|
|
72
|
+
}
|
|
73
|
+
/** The node's input: its id and schema, once known */
|
|
74
|
+
get input() {
|
|
75
|
+
const [id] = this.editorState.document.query.getInputIds(this.nodeId);
|
|
76
|
+
const schema = id === undefined ? undefined : this.editorState.analysis.schemas.get(id);
|
|
77
|
+
return id === undefined || !schema ? undefined : { id, schema };
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Why the fields can't be read: the database the node's input runs on has
|
|
81
|
+
* no Variant functions; `undefined` when they can, or it isn't known yet
|
|
82
|
+
*/
|
|
83
|
+
get databaseProblem() {
|
|
84
|
+
const { editorState, input } = this;
|
|
85
|
+
const { context, query } = editorState.document;
|
|
86
|
+
return input === undefined || context?.runtime === undefined
|
|
87
|
+
? undefined
|
|
88
|
+
: getVariantDatabaseProblem(editorState.getRunDatabaseType(query, input.id, context.model, context.runtime));
|
|
89
|
+
}
|
|
90
|
+
/** The open column's fields, from what was read of it */
|
|
91
|
+
get fields() {
|
|
92
|
+
const { column, sample } = this;
|
|
93
|
+
return column && sample?.column === column.name
|
|
94
|
+
? getCubeJsonFields(column.name, sample.sample)
|
|
95
|
+
: undefined;
|
|
96
|
+
}
|
|
97
|
+
/** The fields matching the search, with the fields they are in */
|
|
98
|
+
get shownFields() {
|
|
99
|
+
return this.fields && filterCubeJsonFields(this.fields, this.search);
|
|
100
|
+
}
|
|
101
|
+
isOpen(column) {
|
|
102
|
+
return this.column?.name === column;
|
|
103
|
+
}
|
|
104
|
+
isFolded(path) {
|
|
105
|
+
return this.folded.has(pathKey(path));
|
|
106
|
+
}
|
|
107
|
+
areFormsShown(path) {
|
|
108
|
+
return this.formsOf === pathKey(path);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Opens a column's fields, reading its first values unless they were read
|
|
112
|
+
* already, or closes them if open. The model's databases are loaded first:
|
|
113
|
+
* a database without JSON functions is refused, with the reason.
|
|
114
|
+
*/
|
|
115
|
+
*toggle(column) {
|
|
116
|
+
if (this.isOpen(column.name)) {
|
|
117
|
+
this.close();
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
this.stop();
|
|
121
|
+
this.column = column;
|
|
122
|
+
this.error = undefined;
|
|
123
|
+
this.search = '';
|
|
124
|
+
this.formsOf = undefined;
|
|
125
|
+
if (this.sample?.column === column.name) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const { context } = this.editorState.document;
|
|
129
|
+
if (context) {
|
|
130
|
+
yield flowResult(this.editorState.loadModelOutline(context.model));
|
|
131
|
+
}
|
|
132
|
+
const problem = this.databaseProblem;
|
|
133
|
+
if (problem) {
|
|
134
|
+
this.error = problem;
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
yield flowResult(this.read(false));
|
|
138
|
+
}
|
|
139
|
+
/** Reads the open column's first values, or every row, before the node */
|
|
140
|
+
*read(everyRow) {
|
|
141
|
+
const { editorState, column, input } = this;
|
|
142
|
+
if (!column || !input || this.isReading) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
const controller = new AbortController();
|
|
146
|
+
this.controller = controller;
|
|
147
|
+
this.isReading = true;
|
|
148
|
+
this.error = undefined;
|
|
149
|
+
try {
|
|
150
|
+
const sample = (yield readCubeJsonSample(editorState, {
|
|
151
|
+
document: editorState.document,
|
|
152
|
+
afterId: input.id,
|
|
153
|
+
column,
|
|
154
|
+
everyRow,
|
|
155
|
+
abortController: controller,
|
|
156
|
+
}));
|
|
157
|
+
if (this.controller === controller && sample) {
|
|
158
|
+
this.sample = { column: column.name, sample };
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
catch (error) {
|
|
162
|
+
if (this.controller !== controller ||
|
|
163
|
+
error instanceof CubeQueryRunAborted) {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
assertErrorThrown(error);
|
|
167
|
+
this.error =
|
|
168
|
+
error instanceof CubeEngineError ? error.firstLine : error.message;
|
|
169
|
+
}
|
|
170
|
+
finally {
|
|
171
|
+
if (this.controller === controller) {
|
|
172
|
+
this.controller = undefined;
|
|
173
|
+
this.isReading = false;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
/** Stops a read in flight, keeping what was read before it */
|
|
178
|
+
stop() {
|
|
179
|
+
this.controller?.abort();
|
|
180
|
+
this.controller = undefined;
|
|
181
|
+
this.isReading = false;
|
|
182
|
+
}
|
|
183
|
+
/** Closes the fields, keeping what was read for when they open again */
|
|
184
|
+
close() {
|
|
185
|
+
this.stop();
|
|
186
|
+
this.column = undefined;
|
|
187
|
+
this.error = undefined;
|
|
188
|
+
this.formsOf = undefined;
|
|
189
|
+
}
|
|
190
|
+
setSearch(search) {
|
|
191
|
+
this.search = search;
|
|
192
|
+
}
|
|
193
|
+
toggleFolded(path) {
|
|
194
|
+
const key = pathKey(path);
|
|
195
|
+
if (this.folded.has(key)) {
|
|
196
|
+
this.folded.delete(key);
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
this.folded.add(key);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
toggleForms(path) {
|
|
203
|
+
const key = pathKey(path);
|
|
204
|
+
this.formsOf = this.formsOf === key ? undefined : key;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
//# sourceMappingURL=CubeJsonFieldsState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CubeJsonFieldsState.js","sourceRoot":"","sources":["../../../src/stores/variant/CubeJsonFieldsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,yBAAyB,GAG1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAoB,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,cAAc,EACd,UAAU,GACX,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAEL,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB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ACzB,CAAC;QACH,CAAC;IACH,CAAC;IAED,8DAA8D;IAC9D,IAAI;QACF,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IACzB,CAAC;IAED,wEAAwE;IACxE,KAAK;QACH,IAAI,CAAC,IAAI,EAAE,CAAC;QACZ,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QACxB,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;IAC3B,CAAC;IAED,SAAS,CAAC,MAAc;QACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,YAAY,CAAC,IAAuB;QAClC,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAC1B,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YACzB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACvB,CAAC;IACH,CAAC;IAED,WAAW,CAAC,IAAuB;QACjC,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAC1B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC;IACxD,CAAC;CACF"}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 CubeJsonSample } from './CubeJsonShape.js';
|
|
17
|
+
/** One column a field can become */
|
|
18
|
+
export interface CubeJsonOffer {
|
|
19
|
+
/** Unique among the field's offers, e.g. `value`, `count`, `contains:FR` */
|
|
20
|
+
readonly key: string;
|
|
21
|
+
/** What the dialog shows, e.g. `the value, as Integer` */
|
|
22
|
+
readonly label: string;
|
|
23
|
+
/** The column's default name, e.g. `payload_user_tier` */
|
|
24
|
+
readonly name: string;
|
|
25
|
+
/** The Pure type it should take, `Variant` for JSON: a suggestion, the engine types the column */
|
|
26
|
+
readonly type: string;
|
|
27
|
+
/** An Extend column's text, `x | …`; `undefined` for an explode */
|
|
28
|
+
readonly code: string | undefined;
|
|
29
|
+
/** One row per element of the array at this path: an Explode Array node */
|
|
30
|
+
readonly explode?: {
|
|
31
|
+
readonly column: string;
|
|
32
|
+
readonly path: readonly string[];
|
|
33
|
+
} | undefined;
|
|
34
|
+
}
|
|
35
|
+
/** A position in the documents, and what it can become */
|
|
36
|
+
export interface CubeJsonField {
|
|
37
|
+
/** The keys from the column to it; empty for the column itself */
|
|
38
|
+
readonly path: readonly string[];
|
|
39
|
+
/** What it held, e.g. `text`, `list of object` */
|
|
40
|
+
readonly description: string;
|
|
41
|
+
/** Its share, 0 to 1, of the places it could be: the rows read, or its object's occurrences */
|
|
42
|
+
readonly presence: number;
|
|
43
|
+
/** Its most frequent values, for a scalar */
|
|
44
|
+
readonly topValues: readonly string[];
|
|
45
|
+
readonly offers: readonly CubeJsonOffer[];
|
|
46
|
+
readonly children: readonly CubeJsonField[];
|
|
47
|
+
}
|
|
48
|
+
/** The default name of an array's element, as Explode Array makes it: its last key's, or its column's, then `_element` */
|
|
49
|
+
export declare const getCubeJsonElementName: (column: string, path: readonly string[]) => string;
|
|
50
|
+
/**
|
|
51
|
+
* A column's fields, from a sample of its documents: the column itself, its
|
|
52
|
+
* object's fields, theirs, and so on, each with what it held, how often it was
|
|
53
|
+
* there and what it can become. An array's elements' fields are reached
|
|
54
|
+
* through the array's offers (first element's, total of), not as fields.
|
|
55
|
+
*/
|
|
56
|
+
export declare const getCubeJsonFields: (column: string, sample: CubeJsonSample) => CubeJsonField;
|
|
57
|
+
/** A name no taken column has, compared folded: `name`, else `name_2`, `name_3`, … */
|
|
58
|
+
export declare const getFreeCubeColumnName: (name: string, taken: readonly string[]) => string;
|
|
59
|
+
/** An offer's expression of the row, as an editor writes it: its text without `x | ` */
|
|
60
|
+
export declare const getCubeJsonOfferExpression: (offer: CubeJsonOffer) => string | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* What clicking a field in an expression editor writes (PLAN §11.20, V.9):
|
|
63
|
+
* a value as its suggested type, anything else as JSON (the column itself
|
|
64
|
+
* for its root); and the column "+ column" would add, but for the root,
|
|
65
|
+
* which is the column already
|
|
66
|
+
*/
|
|
67
|
+
export declare const getCubeJsonFieldDefault: (column: string, field: CubeJsonField) => {
|
|
68
|
+
expression: string;
|
|
69
|
+
column?: {
|
|
70
|
+
name: string;
|
|
71
|
+
code: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
/** The fields whose keys match a search, with the fields they are in; all without a search */
|
|
75
|
+
export declare const filterCubeJsonFields: (field: CubeJsonField, search: string) => CubeJsonField | undefined;
|
|
76
|
+
//# sourceMappingURL=CubeJsonOffers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CubeJsonOffers.d.ts","sourceRoot":"","sources":["../../../src/stores/variant/CubeJsonOffers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;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AACtF,eAAO,MAAM,qBAAqB,GAChC,MAAM,MAAM,EACZ,OAAO,SAAS,MAAM,EAAE,KACvB,MAUF,CAAC;AAEF,wFAAwF;AACxF,eAAO,MAAM,0BAA0B,GACrC,OAAO,aAAa,KACnB,MAAM,GAAG,SAA+C,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAClC,QAAQ,MAAM,EACd,OAAO,aAAa,KACnB;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAS/D,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,oBAAoB,GAC/B,OAAO,aAAa,EACpB,QAAQ,MAAM,KACb,aAAa,GAAG,SAYlB,CAAC"}
|
|
@@ -0,0 +1,250 @@
|
|
|
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 { foldColumnName } from '@finos/legend-cube';
|
|
17
|
+
import { columnAccessOf, pureStringLiteral } from '../CubePureText.js';
|
|
18
|
+
import { CUBE_JSON_PURE_TYPE, CubeJsonScalarKind, describeCubeJsonShape, getCubeJsonScalarType, getCubeJsonTopValues, isCubeJsonScalarShape, } from './CubeJsonShape.js';
|
|
19
|
+
// The fields of a Variant column's documents, and the columns each can become
|
|
20
|
+
// (PLAN §11.20), after legend-lite's Data Cube: picking one writes the Pure
|
|
21
|
+
// text of an Extend column, which the engine parses and types like any typed
|
|
22
|
+
// there. Only forms run on legend-engine are offered: `contains` goes through
|
|
23
|
+
// `toMany(@Variant)->map(…to(@T))`, since `toMany(@String)->contains` writes
|
|
24
|
+
// invalid SQL on DuckDB; no `exists` (an engine error); no tuple explode
|
|
25
|
+
// (`toVariant(newMap(…))`, nested maps excluded on Snowflake and DuckDB).
|
|
26
|
+
/** The Variant type, as an expression names it */
|
|
27
|
+
const VARIANT = 'Variant';
|
|
28
|
+
/** How many of an array's top values get a "contains" offer */
|
|
29
|
+
const CONTAINS_OFFERS = 8;
|
|
30
|
+
/** A column name from parts: joined by `_`, letters, digits and `_` only */
|
|
31
|
+
const nameOf = (parts) => parts
|
|
32
|
+
.join('_')
|
|
33
|
+
.replace(/[^A-Za-z0-9_]+/gu, '_')
|
|
34
|
+
.replace(/_+/gu, '_')
|
|
35
|
+
.replace(/^_|_$/gu, '') || 'value';
|
|
36
|
+
/** The default name of an array's element, as Explode Array makes it: its last key's, or its column's, then `_element` */
|
|
37
|
+
export const getCubeJsonElementName = (column, path) => nameOf([path[path.length - 1] ?? column, 'element']);
|
|
38
|
+
/** `$x.c->get('a')->get('b')` */
|
|
39
|
+
const pathOf = (column, path) => path.reduce((expression, key) => `${expression}->get(${pureStringLiteral(key)})`, columnAccessOf(column));
|
|
40
|
+
/** A function of the row */
|
|
41
|
+
const ofRow = (body) => `x | ${body}`;
|
|
42
|
+
/**
|
|
43
|
+
* A seen value as a Pure literal of the kind it is read as: a number in a
|
|
44
|
+
* Float list with a point (`2.0`); `undefined` for a number Pure can't write
|
|
45
|
+
* as a literal (an exponent)
|
|
46
|
+
*/
|
|
47
|
+
const literalOf = (kind, text) => kind === CubeJsonScalarKind.INTEGER || kind === CubeJsonScalarKind.FLOAT
|
|
48
|
+
? !/^-?\d+(?:\.\d+)?$/u.test(text)
|
|
49
|
+
? undefined
|
|
50
|
+
: kind === CubeJsonScalarKind.FLOAT && !text.includes('.')
|
|
51
|
+
? `${text}.0`
|
|
52
|
+
: text
|
|
53
|
+
: kind === CubeJsonScalarKind.BOOLEAN
|
|
54
|
+
? String(text === 'true')
|
|
55
|
+
: pureStringLiteral(text);
|
|
56
|
+
/** The kinds "contains" compares as typed literals: text, numbers and booleans */
|
|
57
|
+
const COMPARABLE_KINDS = new Set([
|
|
58
|
+
CubeJsonScalarKind.TEXT,
|
|
59
|
+
CubeJsonScalarKind.INTEGER,
|
|
60
|
+
CubeJsonScalarKind.FLOAT,
|
|
61
|
+
CubeJsonScalarKind.BOOLEAN,
|
|
62
|
+
]);
|
|
63
|
+
const arrayOffers = (column, path, shape) => {
|
|
64
|
+
const array = pathOf(column, path);
|
|
65
|
+
const names = [column, ...path];
|
|
66
|
+
const many = `${array}->toMany(@${VARIANT})`;
|
|
67
|
+
const offers = [
|
|
68
|
+
{
|
|
69
|
+
key: 'explode',
|
|
70
|
+
label: 'one row per element',
|
|
71
|
+
name: getCubeJsonElementName(column, path),
|
|
72
|
+
type: VARIANT,
|
|
73
|
+
code: undefined,
|
|
74
|
+
explode: { column, path },
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
key: 'count',
|
|
78
|
+
label: 'number of elements',
|
|
79
|
+
name: nameOf([...names, 'count']),
|
|
80
|
+
type: 'Integer',
|
|
81
|
+
code: ofRow(`${many}->size()`),
|
|
82
|
+
},
|
|
83
|
+
];
|
|
84
|
+
const { element } = shape;
|
|
85
|
+
if (!element) {
|
|
86
|
+
return offers;
|
|
87
|
+
}
|
|
88
|
+
const elementKind = getCubeJsonScalarType(element);
|
|
89
|
+
if (elementKind && isCubeJsonScalarShape(element)) {
|
|
90
|
+
offers.push({
|
|
91
|
+
key: 'list',
|
|
92
|
+
label: 'all values, as text',
|
|
93
|
+
name: nameOf([...names, 'list']),
|
|
94
|
+
type: 'String',
|
|
95
|
+
code: ofRow(`${many}->map(e | $e->to(@String))->joinStrings(', ')`),
|
|
96
|
+
});
|
|
97
|
+
if (COMPARABLE_KINDS.has(elementKind)) {
|
|
98
|
+
const type = CUBE_JSON_PURE_TYPE[elementKind];
|
|
99
|
+
getCubeJsonTopValues(element, CONTAINS_OFFERS).forEach((value) => {
|
|
100
|
+
const literal = literalOf(elementKind, value);
|
|
101
|
+
if (literal !== undefined) {
|
|
102
|
+
offers.push({
|
|
103
|
+
key: `contains:${value}`,
|
|
104
|
+
label: `contains ${value}`,
|
|
105
|
+
name: nameOf([...names, 'has', value]),
|
|
106
|
+
type: 'Boolean',
|
|
107
|
+
code: ofRow(`${many}->map(e | $e->to(@${type}))->contains(${literal})`),
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
if (element.objects > 0) {
|
|
114
|
+
offers.push({
|
|
115
|
+
key: 'first',
|
|
116
|
+
label: 'first element, as JSON',
|
|
117
|
+
name: nameOf([...names, 'first']),
|
|
118
|
+
type: VARIANT,
|
|
119
|
+
code: ofRow(`${array}->get(0)`),
|
|
120
|
+
});
|
|
121
|
+
[...element.fields.entries()]
|
|
122
|
+
.sort(([left], [right]) => left.localeCompare(right))
|
|
123
|
+
.forEach(([key, field]) => {
|
|
124
|
+
const kind = getCubeJsonScalarType(field);
|
|
125
|
+
if (!kind || !isCubeJsonScalarShape(field)) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const type = CUBE_JSON_PURE_TYPE[kind];
|
|
129
|
+
offers.push({
|
|
130
|
+
key: `first:${key}`,
|
|
131
|
+
label: `first element's ${key}`,
|
|
132
|
+
name: nameOf([...names, 'first', key]),
|
|
133
|
+
type,
|
|
134
|
+
code: ofRow(`${array}->get(0)->get(${pureStringLiteral(key)})->to(@${type})`),
|
|
135
|
+
});
|
|
136
|
+
if (kind === CubeJsonScalarKind.INTEGER ||
|
|
137
|
+
kind === CubeJsonScalarKind.FLOAT) {
|
|
138
|
+
offers.push({
|
|
139
|
+
key: `total:${key}`,
|
|
140
|
+
label: `total of ${key}`,
|
|
141
|
+
name: nameOf([...names, key, 'total']),
|
|
142
|
+
type,
|
|
143
|
+
code: ofRow(`${many}->map(e | $e->get(${pureStringLiteral(key)})->to(@${type}))->sum()`),
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
return offers;
|
|
149
|
+
};
|
|
150
|
+
const offersOf = (column, path, shape) => {
|
|
151
|
+
const names = [column, ...path];
|
|
152
|
+
const offers = [];
|
|
153
|
+
const kind = getCubeJsonScalarType(shape);
|
|
154
|
+
if (kind && isCubeJsonScalarShape(shape)) {
|
|
155
|
+
const type = CUBE_JSON_PURE_TYPE[kind];
|
|
156
|
+
offers.push({
|
|
157
|
+
key: 'value',
|
|
158
|
+
label: `the value, as ${type}`,
|
|
159
|
+
name: nameOf(path.length ? names : [...names, 'value']),
|
|
160
|
+
type,
|
|
161
|
+
code: ofRow(`${pathOf(column, path)}->to(@${type})`),
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
// a nested object or array, as a Variant column of its own, to explore again
|
|
165
|
+
if (path.length > 0 && (shape.objects > 0 || shape.arrays > 0)) {
|
|
166
|
+
offers.push({
|
|
167
|
+
key: 'json',
|
|
168
|
+
label: 'as JSON',
|
|
169
|
+
name: nameOf(names),
|
|
170
|
+
type: VARIANT,
|
|
171
|
+
code: ofRow(pathOf(column, path)),
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
if (shape.objects > 0) {
|
|
175
|
+
offers.push({
|
|
176
|
+
key: 'keys',
|
|
177
|
+
label: 'its keys, as text',
|
|
178
|
+
name: nameOf([...names, 'keys']),
|
|
179
|
+
type: 'String',
|
|
180
|
+
code: ofRow(`${pathOf(column, path)}->to(@Map<String, ${VARIANT}>)->toOne()->keys()->joinStrings(', ')`),
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
if (shape.arrays > 0) {
|
|
184
|
+
offers.push(...arrayOffers(column, path, shape));
|
|
185
|
+
}
|
|
186
|
+
return offers;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* A column's fields, from a sample of its documents: the column itself, its
|
|
190
|
+
* object's fields, theirs, and so on, each with what it held, how often it was
|
|
191
|
+
* there and what it can become. An array's elements' fields are reached
|
|
192
|
+
* through the array's offers (first element's, total of), not as fields.
|
|
193
|
+
*/
|
|
194
|
+
export const getCubeJsonFields = (column, sample) => {
|
|
195
|
+
const build = (shape, path, places) => ({
|
|
196
|
+
path,
|
|
197
|
+
description: describeCubeJsonShape(shape),
|
|
198
|
+
presence: Math.min(1, (shape.present - shape.nulls) / Math.max(1, places)),
|
|
199
|
+
topValues: isCubeJsonScalarShape(shape) ? getCubeJsonTopValues(shape) : [],
|
|
200
|
+
offers: offersOf(column, path, shape),
|
|
201
|
+
children: shape.objects > 0
|
|
202
|
+
? [...shape.fields.entries()]
|
|
203
|
+
.sort(([left], [right]) => left.localeCompare(right))
|
|
204
|
+
.map(([key, field]) => build(field, [...path, key], shape.objects))
|
|
205
|
+
: [],
|
|
206
|
+
});
|
|
207
|
+
return build(sample.shape, [], sample.rows);
|
|
208
|
+
};
|
|
209
|
+
/** A name no taken column has, compared folded: `name`, else `name_2`, `name_3`, … */
|
|
210
|
+
export const getFreeCubeColumnName = (name, taken) => {
|
|
211
|
+
const folded = new Set(taken.map(foldColumnName));
|
|
212
|
+
if (!folded.has(foldColumnName(name))) {
|
|
213
|
+
return name;
|
|
214
|
+
}
|
|
215
|
+
let index = 2;
|
|
216
|
+
while (folded.has(foldColumnName(`${name}_${index}`))) {
|
|
217
|
+
index += 1;
|
|
218
|
+
}
|
|
219
|
+
return `${name}_${index}`;
|
|
220
|
+
};
|
|
221
|
+
/** An offer's expression of the row, as an editor writes it: its text without `x | ` */
|
|
222
|
+
export const getCubeJsonOfferExpression = (offer) => offer.code?.replace(/^x \| /u, '');
|
|
223
|
+
/**
|
|
224
|
+
* What clicking a field in an expression editor writes (PLAN §11.20, V.9):
|
|
225
|
+
* a value as its suggested type, anything else as JSON (the column itself
|
|
226
|
+
* for its root); and the column "+ column" would add, but for the root,
|
|
227
|
+
* which is the column already
|
|
228
|
+
*/
|
|
229
|
+
export const getCubeJsonFieldDefault = (column, field) => {
|
|
230
|
+
const offer = field.offers.find(({ key }) => key === 'value' || key === 'json');
|
|
231
|
+
const expression = (offer && getCubeJsonOfferExpression(offer)) ?? pathOf(column, field.path);
|
|
232
|
+
return offer?.code && field.path.length
|
|
233
|
+
? { expression, column: { name: offer.name, code: offer.code } }
|
|
234
|
+
: { expression };
|
|
235
|
+
};
|
|
236
|
+
/** The fields whose keys match a search, with the fields they are in; all without a search */
|
|
237
|
+
export const filterCubeJsonFields = (field, search) => {
|
|
238
|
+
const needle = search.trim().toLowerCase();
|
|
239
|
+
if (!needle) {
|
|
240
|
+
return field;
|
|
241
|
+
}
|
|
242
|
+
const children = field.children
|
|
243
|
+
.map((child) => filterCubeJsonFields(child, search))
|
|
244
|
+
.filter((child) => child !== undefined);
|
|
245
|
+
return children.length ||
|
|
246
|
+
field.path.some((key) => key.toLowerCase().includes(needle))
|
|
247
|
+
? { ...field, children }
|
|
248
|
+
: undefined;
|
|
249
|
+
};
|
|
250
|
+
//# sourceMappingURL=CubeJsonOffers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CubeJsonOffers.js","sourceRoot":"","sources":["../../../src/stores/variant/CubeJsonOffers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAGlB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAE5B,8EAA8E;AAC9E,4EAA4E;AAC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