@finos/legend-application-repl 0.0.31 → 0.0.32
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/lib/components/LegendREPLFrameworkProvider.js +1 -1
- package/lib/components/LegendREPLFrameworkProvider.js.map +1 -1
- package/lib/components/REPLStoreProvider.d.ts +1 -1
- package/lib/components/REPLStoreProvider.d.ts.map +1 -1
- package/lib/components/REPLStoreProvider.js +1 -1
- package/lib/components/REPLStoreProvider.js.map +1 -1
- package/lib/components/REPLWindow.d.ts +33 -0
- package/lib/components/REPLWindow.d.ts.map +1 -0
- package/lib/components/REPLWindow.js +117 -0
- package/lib/components/REPLWindow.js.map +1 -0
- package/lib/components/dataCube/DataCube.js +1 -1
- package/lib/components/dataCube/DataCube.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditor.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditor.js +12 -91
- package/lib/components/dataCube/editor/DataCubeEditor.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.js +3 -2
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.js +161 -87
- package/lib/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnsPanel.js +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnsPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnsSelector.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnsSelector.js +0 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnsSelector.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorDeveloperPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorDeveloperPanel.js +3 -2
- package/lib/components/dataCube/editor/DataCubeEditorDeveloperPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.js +3 -2
- package/lib/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorFilterPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorFilterPanel.js +3 -2
- package/lib/components/dataCube/editor/DataCubeEditorFilterPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.js +96 -55
- package/lib/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorHPivotsPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorHPivotsPanel.js +3 -2
- package/lib/components/dataCube/editor/DataCubeEditorHPivotsPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorShared.d.ts +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorShared.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorShared.js +44 -27
- package/lib/components/dataCube/editor/DataCubeEditorShared.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorSortsPanel.js +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorSortsPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorVPivotsPanel.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorVPivotsPanel.js +3 -2
- package/lib/components/dataCube/editor/DataCubeEditorVPivotsPanel.js.map +1 -1
- package/lib/components/dataCube/grid/DataCubeGrid.d.ts +3 -0
- package/lib/components/dataCube/grid/DataCubeGrid.d.ts.map +1 -1
- package/lib/components/dataCube/grid/DataCubeGrid.js +186 -75
- package/lib/components/dataCube/grid/DataCubeGrid.js.map +1 -1
- package/lib/components/dataCube/grid/DataCubeGridShared.d.ts +1 -1
- package/lib/components/dataCube/grid/DataCubeGridShared.d.ts.map +1 -1
- package/lib/components/dataCube/grid/DataCubeGridShared.js +1 -1
- package/lib/components/dataCube/grid/DataCubeGridShared.js.map +1 -1
- package/lib/components/dataCube/grid/menu/DataCubeGridMenu.d.ts.map +1 -1
- package/lib/components/dataCube/grid/menu/DataCubeGridMenu.js +60 -29
- package/lib/components/dataCube/grid/menu/DataCubeGridMenu.js.map +1 -1
- package/lib/components/dataCube/grid/menu/DataCubeGridSortsMenu.d.ts.map +1 -1
- package/lib/components/dataCube/grid/menu/DataCubeGridSortsMenu.js +10 -10
- package/lib/components/dataCube/grid/menu/DataCubeGridSortsMenu.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +14 -14
- package/lib/stores/{dataCube/REPLStore.d.ts → REPLStore.d.ts} +5 -3
- package/lib/stores/REPLStore.d.ts.map +1 -0
- package/lib/stores/{dataCube/REPLStore.js → REPLStore.js} +5 -2
- package/lib/stores/REPLStore.js.map +1 -0
- package/lib/stores/dataCube/{core/DataCubeEngine.d.ts → DataCubeInfrastructure.d.ts} +20 -4
- package/lib/stores/dataCube/DataCubeInfrastructure.d.ts.map +1 -0
- package/lib/stores/dataCube/{core/DataCubeEngine.js → DataCubeInfrastructure.js} +31 -3
- package/lib/stores/dataCube/DataCubeInfrastructure.js.map +1 -0
- package/lib/stores/dataCube/DataCubeState.d.ts +4 -4
- package/lib/stores/dataCube/DataCubeState.d.ts.map +1 -1
- package/lib/stores/dataCube/DataCubeState.js +7 -8
- package/lib/stores/dataCube/DataCubeState.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeConfiguration.d.ts +42 -38
- package/lib/stores/dataCube/core/DataCubeConfiguration.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeConfiguration.js +84 -78
- package/lib/stores/dataCube/core/DataCubeConfiguration.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeConfigurationBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeConfigurationBuilder.js +2 -1
- package/lib/stores/dataCube/core/DataCubeConfigurationBuilder.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeCoreState.d.ts +1 -1
- package/lib/stores/dataCube/core/DataCubeCoreState.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeCoreState.js +1 -1
- package/lib/stores/dataCube/core/DataCubeCoreState.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.js +6 -6
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQueryEngine.d.ts +46 -29
- package/lib/stores/dataCube/core/DataCubeQueryEngine.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQueryEngine.js +68 -50
- package/lib/stores/dataCube/core/DataCubeQueryEngine.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.js +5 -5
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.d.ts +1 -3
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.js +2 -3
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.js.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.d.ts +3 -0
- package/lib/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.d.ts.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.js +9 -0
- package/lib/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.js.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts +8 -7
- package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorState.js +21 -17
- package/lib/stores/dataCube/editor/DataCubeEditorState.js.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeMutableConfiguration.d.ts +43 -38
- package/lib/stores/dataCube/editor/DataCubeMutableConfiguration.d.ts.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeMutableConfiguration.js +209 -128
- package/lib/stores/dataCube/editor/DataCubeMutableConfiguration.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.d.ts +32 -0
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js +34 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.d.ts +4 -1
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.js +327 -36
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridState.d.ts +16 -2
- package/lib/stores/dataCube/grid/DataCubeGridState.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridState.js +51 -21
- package/lib/stores/dataCube/grid/DataCubeGridState.js.map +1 -1
- package/package.json +20 -20
- package/src/components/LegendREPLFrameworkProvider.tsx +1 -1
- package/src/components/REPLStoreProvider.tsx +1 -1
- package/src/components/REPLWindow.tsx +179 -0
- package/src/components/dataCube/DataCube.tsx +1 -1
- package/src/components/dataCube/editor/DataCubeEditor.tsx +79 -190
- package/src/components/dataCube/editor/DataCubeEditorCodePanel.tsx +3 -1
- package/src/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.tsx +480 -279
- package/src/components/dataCube/editor/DataCubeEditorColumnsPanel.tsx +1 -1
- package/src/components/dataCube/editor/DataCubeEditorColumnsSelector.tsx +0 -1
- package/src/components/dataCube/editor/DataCubeEditorDeveloperPanel.tsx +3 -1
- package/src/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.tsx +3 -1
- package/src/components/dataCube/editor/DataCubeEditorFilterPanel.tsx +3 -1
- package/src/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.tsx +235 -174
- package/src/components/dataCube/editor/DataCubeEditorHPivotsPanel.tsx +3 -1
- package/src/components/dataCube/editor/DataCubeEditorShared.tsx +69 -33
- package/src/components/dataCube/editor/DataCubeEditorSortsPanel.tsx +1 -1
- package/src/components/dataCube/editor/DataCubeEditorVPivotsPanel.tsx +3 -1
- package/src/components/dataCube/grid/DataCubeGrid.tsx +310 -149
- package/src/components/dataCube/grid/DataCubeGridShared.tsx +5 -1
- package/src/components/dataCube/grid/menu/DataCubeGridMenu.tsx +76 -29
- package/src/components/dataCube/grid/menu/DataCubeGridSortsMenu.tsx +10 -11
- package/src/stores/{dataCube/REPLStore.ts → REPLStore.ts} +6 -3
- package/src/stores/dataCube/{core/DataCubeEngine.ts → DataCubeInfrastructure.ts} +40 -3
- package/src/stores/dataCube/DataCubeState.ts +9 -9
- package/src/stores/dataCube/core/DataCubeConfiguration.ts +106 -86
- package/src/stores/dataCube/core/DataCubeConfigurationBuilder.ts +5 -1
- package/src/stores/dataCube/core/DataCubeCoreState.ts +4 -1
- package/src/stores/dataCube/core/DataCubeQueryBuilder.ts +11 -11
- package/src/stores/dataCube/core/DataCubeQueryEngine.ts +70 -49
- package/src/stores/dataCube/core/DataCubeQuerySnapshotBuilder.ts +6 -7
- package/src/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.ts +6 -5
- package/src/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.ts +14 -0
- package/src/stores/dataCube/editor/DataCubeEditorState.ts +26 -19
- package/src/stores/dataCube/editor/DataCubeMutableConfiguration.ts +247 -139
- package/src/stores/dataCube/grid/DataCubeGridClientEngine.ts +55 -1
- package/src/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.tsx +491 -43
- package/src/stores/dataCube/grid/DataCubeGridState.ts +73 -20
- package/tsconfig.json +3 -2
- package/lib/stores/dataCube/REPLStore.d.ts.map +0 -1
- package/lib/stores/dataCube/REPLStore.js.map +0 -1
- package/lib/stores/dataCube/core/DataCubeEngine.d.ts.map +0 -1
- package/lib/stores/dataCube/core/DataCubeEngine.js.map +0 -1
|
@@ -25,5 +25,5 @@ const LegendREPLBaseStoreProvider = ({ children }) => {
|
|
|
25
25
|
const store = useLocalObservable(() => new LegendREPLBaseStore(applicationStore));
|
|
26
26
|
return (_jsx(LegendREPLBaseStoreContext.Provider, { value: store, children: children }));
|
|
27
27
|
};
|
|
28
|
-
export const LegendREPLFrameworkProvider = ({ children }) => (_jsx(ApplicationFrameworkProvider, { children: _jsx(LegendREPLBaseStoreProvider, { children: children }) }));
|
|
28
|
+
export const LegendREPLFrameworkProvider = ({ children }) => (_jsx(ApplicationFrameworkProvider, { simple: true, children: _jsx(LegendREPLBaseStoreProvider, { children: children }) }));
|
|
29
29
|
//# sourceMappingURL=LegendREPLFrameworkProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendREPLFrameworkProvider.js","sourceRoot":"","sources":["../../src/components/LegendREPLFrameworkProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAEL,mBAAmB,GACpB,MAAM,kCAAkC,CAAC;AAE1C,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAA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CAAC,CAChD,CAAC;IACF,OAAO,CACL,KAAC,0BAA0B,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAC9C,QAAQ,GAC2B,CACvC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAEnC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACrB,KAAC,4BAA4B,IAAC,MAAM,EAAE,IAAI,YACxC,KAAC,2BAA2B,cAAE,QAAQ,GAA+B,GACxC,CAChC,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 { REPLStore } from '../stores/
|
|
16
|
+
import { REPLStore } from '../stores/REPLStore.js';
|
|
17
17
|
export declare const REPLStoreProvider: ({ children, }: {
|
|
18
18
|
children: React.ReactNode;
|
|
19
19
|
}) => React.ReactElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"REPLStoreProvider.d.ts","sourceRoot":"","sources":["../../src/components/REPLStoreProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"REPLStoreProvider.d.ts","sourceRoot":"","sources":["../../src/components/REPLStoreProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAQnD,eAAO,MAAM,iBAAiB,kBAE3B;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,KAAG,KAAK,CAAC,YAWT,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,SAI7B,CAAC;AAEJ,eAAO,MAAM,aAAa,qBAAsB,KAAK,CAAC,EAAE,KAAG,KAAK,CAAC,EAO9D,CAAC"}
|
|
@@ -16,7 +16,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
16
16
|
*/
|
|
17
17
|
import { createContext, useContext } from 'react';
|
|
18
18
|
import { useLocalObservable } from 'mobx-react-lite';
|
|
19
|
-
import { REPLStore } from '../stores/
|
|
19
|
+
import { REPLStore } from '../stores/REPLStore.js';
|
|
20
20
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
21
21
|
import { useApplicationStore } from '@finos/legend-application';
|
|
22
22
|
const REPLStoreContext = createContext(undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"REPLStoreProvider.js","sourceRoot":"","sources":["../../src/components/REPLStoreProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"REPLStoreProvider.js","sourceRoot":"","sources":["../../src/components/REPLStoreProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAIhE,MAAM,gBAAgB,GAAG,aAAa,CAAwB,SAAS,CAAC,CAAC;AAEzE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC,QAAQ,GAGT,EAAsB,EAAE;IACvB,MAAM,gBAAgB,GAAG,mBAAmB,EAGzC,CAAC;IACJ,MAAM,KAAK,GAAG,kBAAkB,CAAC,GAAG,EAAE,CAAC,IAAI,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACxE,OAAO,CACL,KAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACpC,QAAQ,GACiB,CAC7B,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAc,EAAE,CAC1C,oBAAoB,CAClB,UAAU,CAAC,gBAAgB,CAAC,EAC5B,kCAAkC,CACnC,CAAC;AAEJ,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,gBAA0B,EAAY,EAAE,CACpE,SAAS,aAAa;IACpB,OAAO,CACL,KAAC,iBAAiB,cAChB,KAAC,gBAAgB,KAAG,GACF,CACrB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export type REPLWindowConfig = {
|
|
17
|
+
title: string;
|
|
18
|
+
uuid: string;
|
|
19
|
+
x?: number | undefined;
|
|
20
|
+
y?: number | undefined;
|
|
21
|
+
width?: number | undefined;
|
|
22
|
+
height?: number | undefined;
|
|
23
|
+
minWidth?: number | undefined;
|
|
24
|
+
minHeight?: number | undefined;
|
|
25
|
+
center?: boolean | undefined;
|
|
26
|
+
};
|
|
27
|
+
export declare const REPLWindow: (props: {
|
|
28
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
29
|
+
children: React.ReactNode;
|
|
30
|
+
config: REPLWindowConfig;
|
|
31
|
+
onClose: () => void;
|
|
32
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=REPLWindow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"REPLWindow.d.ts","sourceRoot":"","sources":["../../src/components/REPLWindow.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IAEb,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW;IAChC,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC9C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,gBAAgB,CAAC;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,4CAuIA,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { useState } from 'react';
|
|
18
|
+
import { DataCubeIcon, ResizableAndDraggableBox, cn } from '@finos/legend-art';
|
|
19
|
+
const WINDOW_DEFAULT_OFFSET = 50;
|
|
20
|
+
const WINDOW_DEFAULT_WIDTH = 800;
|
|
21
|
+
const WINDOW_DEFAULT_HEIGHT = 600;
|
|
22
|
+
const WINDOW_DEFAULT_MIN_WIDTH = 300;
|
|
23
|
+
const WINDOW_DEFAULT_MIN_HEIGHT = 300;
|
|
24
|
+
export const REPLWindow = (props) => {
|
|
25
|
+
const { containerRef, children, onClose, config } = props;
|
|
26
|
+
const [windowSpec, setWindowSpec] = useState(() => {
|
|
27
|
+
const x = config.x ?? WINDOW_DEFAULT_OFFSET;
|
|
28
|
+
const y = config.y ?? WINDOW_DEFAULT_OFFSET;
|
|
29
|
+
const width = config.width ?? WINDOW_DEFAULT_WIDTH;
|
|
30
|
+
const height = config.height ?? WINDOW_DEFAULT_HEIGHT;
|
|
31
|
+
if (containerRef.current) {
|
|
32
|
+
const { width: containerWidth, height: containerHeight } = containerRef.current.getBoundingClientRect();
|
|
33
|
+
if (config.center) {
|
|
34
|
+
const finalWidth = width + WINDOW_DEFAULT_OFFSET * 2 > containerWidth
|
|
35
|
+
? containerWidth - WINDOW_DEFAULT_OFFSET * 2
|
|
36
|
+
: width;
|
|
37
|
+
const finalHeight = height + WINDOW_DEFAULT_OFFSET * 2 > containerHeight
|
|
38
|
+
? containerHeight - WINDOW_DEFAULT_OFFSET * 2
|
|
39
|
+
: height;
|
|
40
|
+
return {
|
|
41
|
+
x: (containerWidth - finalWidth) / 2,
|
|
42
|
+
y: (containerHeight - finalHeight) / 2,
|
|
43
|
+
width: finalWidth,
|
|
44
|
+
height: finalHeight,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
x,
|
|
49
|
+
y,
|
|
50
|
+
width: width + x + WINDOW_DEFAULT_OFFSET > containerWidth
|
|
51
|
+
? containerWidth - x - WINDOW_DEFAULT_OFFSET
|
|
52
|
+
: width,
|
|
53
|
+
height: height + y + WINDOW_DEFAULT_OFFSET > containerHeight
|
|
54
|
+
? containerHeight - y - WINDOW_DEFAULT_OFFSET
|
|
55
|
+
: height,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
x,
|
|
60
|
+
y,
|
|
61
|
+
width,
|
|
62
|
+
height,
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
return (_jsx(ResizableAndDraggableBox, { className: "absolute z-10", handle: `.data-cube__window-${config.uuid}`, position: { x: windowSpec.x, y: windowSpec.y }, size: { width: windowSpec.width, height: windowSpec.height }, minWidth: config.minWidth ?? WINDOW_DEFAULT_MIN_WIDTH, minHeight: config.minHeight ?? WINDOW_DEFAULT_MIN_HEIGHT, onDragStop: (event, data) => {
|
|
66
|
+
setWindowSpec({ ...windowSpec, x: data.x, y: data.y });
|
|
67
|
+
}, dragHandleClassName: `data-cube__window-${config.uuid}`, onResize: (event, direction, ref, delta, position) => {
|
|
68
|
+
setWindowSpec({
|
|
69
|
+
...position,
|
|
70
|
+
width: ref.offsetWidth,
|
|
71
|
+
height: ref.offsetHeight,
|
|
72
|
+
});
|
|
73
|
+
}, enableResizing: {
|
|
74
|
+
top: true,
|
|
75
|
+
right: true,
|
|
76
|
+
bottom: true,
|
|
77
|
+
left: true,
|
|
78
|
+
topRight: true,
|
|
79
|
+
bottomRight: true,
|
|
80
|
+
bottomLeft: true,
|
|
81
|
+
topLeft: true,
|
|
82
|
+
}, resizeHandleStyles: {
|
|
83
|
+
top: { cursor: 'ns-resize' },
|
|
84
|
+
right: { cursor: 'ew-resize' },
|
|
85
|
+
bottom: { cursor: 'ns-resize' },
|
|
86
|
+
left: { cursor: 'ew-resize' },
|
|
87
|
+
topRight: {
|
|
88
|
+
cursor: 'nesw-resize',
|
|
89
|
+
width: 14,
|
|
90
|
+
height: 14,
|
|
91
|
+
top: -7,
|
|
92
|
+
right: -7,
|
|
93
|
+
},
|
|
94
|
+
bottomRight: {
|
|
95
|
+
cursor: 'nwse-resize',
|
|
96
|
+
width: 14,
|
|
97
|
+
height: 14,
|
|
98
|
+
bottom: -7,
|
|
99
|
+
right: -7,
|
|
100
|
+
},
|
|
101
|
+
bottomLeft: {
|
|
102
|
+
cursor: 'nesw-resize',
|
|
103
|
+
width: 14,
|
|
104
|
+
height: 14,
|
|
105
|
+
bottom: -7,
|
|
106
|
+
left: -7,
|
|
107
|
+
},
|
|
108
|
+
topLeft: {
|
|
109
|
+
cursor: 'nwse-resize',
|
|
110
|
+
width: 14,
|
|
111
|
+
height: 14,
|
|
112
|
+
top: -7,
|
|
113
|
+
left: -7,
|
|
114
|
+
},
|
|
115
|
+
}, children: _jsxs("div", { className: "h-full w-full border border-neutral-400 bg-neutral-200 shadow-xl", children: [_jsxs("div", { className: cn(`data-cube__window-${config.uuid}`, 'flex h-6 w-full select-none items-center justify-between border-b border-b-neutral-300 bg-white active:cursor-move'), children: [_jsx("div", { className: "px-2", children: config.title }), _jsx("button", { className: "flex h-[23px] w-6 items-center justify-center hover:bg-red-500 hover:text-white", onClick: onClose, children: _jsx(DataCubeIcon.X, {}) })] }), _jsx("div", { className: "h-[calc(100%_-_24px)] w-full", children: children })] }) }));
|
|
116
|
+
};
|
|
117
|
+
//# sourceMappingURL=REPLWindow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"REPLWindow.js","sourceRoot":"","sources":["../../src/components/REPLWindow.tsx"],"names":[],"mappings":";AAAA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AC,CAAC;gBACV,IAAI,EAAE,CAAC,CAAC;aACT;YACD,OAAO,EAAE;gBACP,MAAM,EAAE,aAAa;gBACrB,KAAK,EAAE,EAAE;gBACT,MAAM,EAAE,EAAE;gBACV,GAAG,EAAE,CAAC,CAAC;gBACP,IAAI,EAAE,CAAC,CAAC;aACT;SACF,YAED,eAAK,SAAS,EAAC,kEAAkE,aAC/E,eACE,SAAS,EAAE,EAAE,CACX,qBAAqB,MAAM,CAAC,IAAI,EAAE,EAClC,oHAAoH,CACrH,aAED,cAAK,SAAS,EAAC,MAAM,YAAE,MAAM,CAAC,KAAK,GAAO,EAC1C,iBACE,SAAS,EAAC,iFAAiF,EAC3F,OAAO,EAAE,OAAO,YAEhB,KAAC,YAAY,CAAC,CAAC,KAAG,GACX,IACL,EACN,cAAK,SAAS,EAAC,8BAA8B,YAAE,QAAQ,GAAO,IAC1D,GACmB,CAC5B,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -24,7 +24,7 @@ import { DataCubeIcon, ProgressBar } from '@finos/legend-art';
|
|
|
24
24
|
const DataCubeStatusBar = observer(() => {
|
|
25
25
|
const dataCubeStore = useREPLStore();
|
|
26
26
|
const dataCube = dataCubeStore.dataCube;
|
|
27
|
-
return (_jsxs("div", { className: "flex h-5 w-full justify-between bg-neutral-100", children: [_jsxs("div", { className: "flex flex-1", children: [_jsx("button", { className: "pl-2 text-sky-600 hover:text-sky-700", title: "See Documentation", children: _jsx(DataCubeIcon.Documentation, { className: "text-xl" }) }), _jsxs("button", { className: "flex items-center px-3 text-sky-600 hover:text-sky-700", onClick: () => dataCube.editor.openPanel(), children: [_jsx(DataCubeIcon.Settings, { className: "text-xl" }), _jsx("div", { className: "pl-0.5 underline", children: "Properties" })] }), _jsx("div", { className: "flex-1", children: _jsxs("button", { className: "flex items-center text-sky-600 hover:text-sky-700", children: [_jsx(DataCubeIcon.TableFilter, { className: "text-lg" }), _jsx("div", { className: "pl-0.5 underline", children: "Filter" })] }) })] }), _jsx("div", { className: "flex items-center px-2", children: _jsx("div", { className: "flex h-3.5 w-48 border-[0.5px] border-neutral-300", children: dataCube.
|
|
27
|
+
return (_jsxs("div", { className: "flex h-5 w-full justify-between bg-neutral-100", children: [_jsxs("div", { className: "flex flex-1", children: [_jsx("button", { className: "pl-2 text-sky-600 hover:text-sky-700", title: "See Documentation", children: _jsx(DataCubeIcon.Documentation, { className: "text-xl" }) }), _jsxs("button", { className: "flex items-center px-3 text-sky-600 hover:text-sky-700", onClick: () => dataCube.editor.openPanel(), children: [_jsx(DataCubeIcon.Settings, { className: "text-xl" }), _jsx("div", { className: "pl-0.5 underline", children: "Properties" })] }), _jsx("div", { className: "flex-1", children: _jsxs("button", { className: "flex items-center text-sky-600 hover:text-sky-700", children: [_jsx(DataCubeIcon.TableFilter, { className: "text-lg" }), _jsx("div", { className: "pl-0.5 underline", children: "Filter" })] }) })] }), _jsx("div", { className: "flex items-center px-2", children: _jsx("div", { className: "flex h-3.5 w-48 border-[0.5px] border-neutral-300", children: dataCube.runningTasks.size > 0 && (_jsx(ProgressBar, { classes: {
|
|
28
28
|
root: 'h-3.5 w-full bg-transparent',
|
|
29
29
|
bar1Indeterminate: 'bg-green-500',
|
|
30
30
|
bar2Indeterminate: 'bg-green-500',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCube.js","sourceRoot":"","sources":["../../../src/components/dataCube/DataCube.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AA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;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DataCubeEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiBH,eAAO,MAAM,cAAc,WACjB;IAAE,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CAAE;;CAiG1D,CAAC"}
|
|
@@ -15,9 +15,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import { observer } from 'mobx-react-lite';
|
|
18
|
-
import { DataCubeIcon, ResizableAndDraggableBox, cn } from '@finos/legend-art';
|
|
19
18
|
import { DATA_CUBE_EDITOR_TAB } from '../../../stores/dataCube/editor/DataCubeEditorState.js';
|
|
20
|
-
import { useEffect, useState } from 'react';
|
|
21
19
|
import { useREPLStore } from '../../REPLStoreProvider.js';
|
|
22
20
|
import { DataCubeEditorSortsPanel } from './DataCubeEditorSortsPanel.js';
|
|
23
21
|
import { DataCubeEditorGeneralPropertiesPanel } from './DataCubeEditorGeneralPropertiesPanel.js';
|
|
@@ -28,106 +26,29 @@ import { DataCubeEditorFilterPanel } from './DataCubeEditorFilterPanel.js';
|
|
|
28
26
|
import { DataCubeEditorExtendedColumnsPanel } from './DataCubeEditorExtendedColumnsPanel.js';
|
|
29
27
|
import { DataCubeEditorCodePanel } from './DataCubeEditorCodePanel.js';
|
|
30
28
|
import { DataCubeEditorColumnPropertiesPanel } from './DataCubeEditorColumnPropertiesPanel.js';
|
|
31
|
-
import {
|
|
32
|
-
|
|
33
|
-
const PANEL_DEFAULT_OFFSET = 50;
|
|
34
|
-
const PANEL_DEFAULT_HEIGHT = 600;
|
|
35
|
-
const PANEL_DEFAULT_WIDTH = 800;
|
|
36
|
-
const PANEL_DEFALT_MIN_HEIGHT = 300;
|
|
37
|
-
const PANEL_DEFAULT_MIN_WIDTH = 300;
|
|
29
|
+
import { REPLWindow } from '../../REPLWindow.js';
|
|
30
|
+
import { cn } from '@finos/legend-art';
|
|
38
31
|
export const DataCubeEditor = observer((props) => {
|
|
39
32
|
const { containerRef } = props;
|
|
40
|
-
const [windowSpec, setWindowSpec] = useState({
|
|
41
|
-
x: PANEL_DEFAULT_OFFSET,
|
|
42
|
-
y: PANEL_DEFAULT_OFFSET,
|
|
43
|
-
width: PANEL_DEFAULT_WIDTH,
|
|
44
|
-
height: PANEL_DEFAULT_HEIGHT,
|
|
45
|
-
});
|
|
46
33
|
const replStore = useREPLStore();
|
|
47
34
|
const editor = replStore.dataCube.editor;
|
|
48
35
|
const selectedTab = editor.currentTab;
|
|
49
36
|
const tabs = [
|
|
37
|
+
DATA_CUBE_EDITOR_TAB.GENERAL_PROPERTIES,
|
|
38
|
+
DATA_CUBE_EDITOR_TAB.FILTER,
|
|
39
|
+
DATA_CUBE_EDITOR_TAB.EXTENDED_COLUMNS,
|
|
50
40
|
DATA_CUBE_EDITOR_TAB.COLUMNS,
|
|
41
|
+
DATA_CUBE_EDITOR_TAB.COLUMN_PROPERTIES,
|
|
51
42
|
DATA_CUBE_EDITOR_TAB.VERTICAL_PIVOTS,
|
|
52
43
|
DATA_CUBE_EDITOR_TAB.HORIZONTAL_PIVOTS,
|
|
53
|
-
DATA_CUBE_EDITOR_TAB.EXTENDED_COLUMNS,
|
|
54
|
-
DATA_CUBE_EDITOR_TAB.FILTER,
|
|
55
44
|
DATA_CUBE_EDITOR_TAB.SORTS,
|
|
56
|
-
DATA_CUBE_EDITOR_TAB.GENERAL_PROPERTIES,
|
|
57
|
-
DATA_CUBE_EDITOR_TAB.COLUMN_PROPERTIES,
|
|
58
45
|
DATA_CUBE_EDITOR_TAB.CODE,
|
|
59
|
-
DATA_CUBE_EDITOR_TAB.DEVELOPER,
|
|
60
46
|
];
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
width: PANEL_DEFAULT_WIDTH + PANEL_DEFAULT_OFFSET * 2 > containerWidth
|
|
68
|
-
? containerWidth - PANEL_DEFAULT_OFFSET * 2
|
|
69
|
-
: PANEL_DEFAULT_WIDTH,
|
|
70
|
-
height: PANEL_DEFAULT_HEIGHT + PANEL_DEFAULT_OFFSET * 2 > containerHeight
|
|
71
|
-
? containerHeight - PANEL_DEFAULT_OFFSET * 2
|
|
72
|
-
: PANEL_DEFAULT_HEIGHT,
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
}, [containerRef]);
|
|
76
|
-
return (_jsx(ResizableAndDraggableBox, { className: "absolute z-10", handle: `.${__DATA_CUBE_EDITOR_HEADER_CLASS_NAME}`, position: { x: windowSpec.x, y: windowSpec.y }, size: { width: windowSpec.width, height: windowSpec.height }, minWidth: PANEL_DEFAULT_MIN_WIDTH, minHeight: PANEL_DEFALT_MIN_HEIGHT, onDragStop: (event, data) => {
|
|
77
|
-
setWindowSpec({ ...windowSpec, x: data.x, y: data.y });
|
|
78
|
-
}, dragHandleClassName: __DATA_CUBE_EDITOR_HEADER_CLASS_NAME, onResize: (event, direction, ref, delta, position) => {
|
|
79
|
-
setWindowSpec({
|
|
80
|
-
...position,
|
|
81
|
-
width: ref.offsetWidth,
|
|
82
|
-
height: ref.offsetHeight,
|
|
83
|
-
});
|
|
84
|
-
}, enableResizing: {
|
|
85
|
-
top: true,
|
|
86
|
-
right: true,
|
|
87
|
-
bottom: true,
|
|
88
|
-
left: true,
|
|
89
|
-
topRight: true,
|
|
90
|
-
bottomRight: true,
|
|
91
|
-
bottomLeft: true,
|
|
92
|
-
topLeft: true,
|
|
93
|
-
}, resizeHandleStyles: {
|
|
94
|
-
top: { cursor: 'ns-resize' },
|
|
95
|
-
right: { cursor: 'ew-resize' },
|
|
96
|
-
bottom: { cursor: 'ns-resize' },
|
|
97
|
-
left: { cursor: 'ew-resize' },
|
|
98
|
-
topRight: {
|
|
99
|
-
cursor: 'nesw-resize',
|
|
100
|
-
width: 14,
|
|
101
|
-
height: 14,
|
|
102
|
-
top: -7,
|
|
103
|
-
right: -7,
|
|
104
|
-
},
|
|
105
|
-
bottomRight: {
|
|
106
|
-
cursor: 'nwse-resize',
|
|
107
|
-
width: 14,
|
|
108
|
-
height: 14,
|
|
109
|
-
bottom: -7,
|
|
110
|
-
right: -7,
|
|
111
|
-
},
|
|
112
|
-
bottomLeft: {
|
|
113
|
-
cursor: 'nesw-resize',
|
|
114
|
-
width: 14,
|
|
115
|
-
height: 14,
|
|
116
|
-
bottom: -7,
|
|
117
|
-
left: -7,
|
|
118
|
-
},
|
|
119
|
-
topLeft: {
|
|
120
|
-
cursor: 'nwse-resize',
|
|
121
|
-
width: 14,
|
|
122
|
-
height: 14,
|
|
123
|
-
top: -7,
|
|
124
|
-
left: -7,
|
|
125
|
-
},
|
|
126
|
-
}, children: _jsxs("div", { className: "h-full w-full border border-neutral-400 bg-neutral-200 shadow-xl", children: [_jsxs("div", { className: cn(__DATA_CUBE_EDITOR_HEADER_CLASS_NAME, 'flex h-6 w-full select-none items-center justify-between border-b border-b-neutral-300 bg-white active:cursor-move'), children: [_jsx("div", { className: "px-2", children: "Properties" }), _jsx("button", { className: "flex h-[23px] w-6 items-center justify-center hover:bg-red-500 hover:text-white", onClick: () => editor.closePanel(), children: _jsx(DataCubeIcon.X, {}) })] }), _jsxs("div", { className: "relative h-[calc(100%_-_64px)] flex-1 px-2 pt-8", children: [_jsx("div", { className: "absolute top-0 flex h-9 w-[calc(100%_-_16px)] min-w-[400px] overflow-auto px-0.5 pt-2", children: tabs.map((tab) => (_jsx("button", { onClick: () => editor.setCurrentTab(tab), className: cn('relative flex h-6 items-center justify-center whitespace-nowrap border border-b-0 border-l-0 border-neutral-300 px-2 first:border-l focus:z-10', {
|
|
127
|
-
'-top-0.5 h-[27px] border-b-0 bg-white': tab === selectedTab,
|
|
128
|
-
}), children: tab }, tab))) }), _jsxs("div", { className: "h-full w-full overflow-auto border border-neutral-300 bg-white", children: [selectedTab === DATA_CUBE_EDITOR_TAB.COLUMNS && (_jsx(DataCubeEditorColumnsPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.SORTS && (_jsx(DataCubeEditorSortsPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.VERTICAL_PIVOTS && (_jsx(DataCubeEditorVPivotsPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.HORIZONTAL_PIVOTS && (_jsx(DataCubeEditorHPivotsPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.EXTENDED_COLUMNS && (_jsx(DataCubeEditorExtendedColumnsPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.FILTER && (_jsx(DataCubeEditorFilterPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.GENERAL_PROPERTIES && (_jsx(DataCubeEditorGeneralPropertiesPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.COLUMN_PROPERTIES && (_jsx(DataCubeEditorColumnPropertiesPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.CODE && (_jsx(DataCubeEditorCodePanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.DEVELOPER && (_jsx(DataCubeEditorDeveloperPanel, {}))] })] }), _jsxs("div", { className: "flex h-10 items-center justify-end px-2", children: [_jsx("button", { className: "h-6 w-20 border border-neutral-400 bg-neutral-300 px-2 hover:brightness-95", onClick: () => {
|
|
129
|
-
editor.applyChanges();
|
|
130
|
-
editor.closePanel();
|
|
131
|
-
}, children: "OK" }), _jsx("button", { className: "ml-2 h-6 w-20 border border-neutral-400 bg-neutral-300 px-2 hover:brightness-95", onClick: () => editor.closePanel(), children: "Cancel" }), _jsx("button", { className: "ml-2 h-6 w-20 border border-neutral-400 bg-neutral-300 px-2 hover:brightness-95", onClick: () => editor.applyChanges(), children: "Apply" })] })] }) }));
|
|
47
|
+
return (_jsxs(REPLWindow, { containerRef: containerRef, config: editor.window, onClose: () => editor.closePanel(), children: [_jsxs("div", { className: "relative h-[calc(100%_-_40px)] flex-1 px-2 pt-8", children: [_jsx("div", { className: "absolute top-0 flex h-9 w-[calc(100%_-_16px)] min-w-[400px] overflow-auto pt-2", children: tabs.map((tab) => (_jsx("button", { onClick: () => editor.setCurrentTab(tab), className: cn('relative flex h-6 items-center justify-center whitespace-nowrap border border-b-0 border-l-0 border-neutral-300 px-2 first:border-l focus:z-10', {
|
|
48
|
+
'-top-0.5 h-[27px] border-b-0 bg-white': tab === selectedTab,
|
|
49
|
+
}), children: tab }, tab))) }), _jsxs("div", { className: "h-full w-full overflow-auto border border-neutral-300 bg-white", children: [selectedTab === DATA_CUBE_EDITOR_TAB.COLUMNS && (_jsx(DataCubeEditorColumnsPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.SORTS && (_jsx(DataCubeEditorSortsPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.VERTICAL_PIVOTS && (_jsx(DataCubeEditorVPivotsPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.HORIZONTAL_PIVOTS && (_jsx(DataCubeEditorHPivotsPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.EXTENDED_COLUMNS && (_jsx(DataCubeEditorExtendedColumnsPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.FILTER && (_jsx(DataCubeEditorFilterPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.GENERAL_PROPERTIES && (_jsx(DataCubeEditorGeneralPropertiesPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.COLUMN_PROPERTIES && (_jsx(DataCubeEditorColumnPropertiesPanel, {})), selectedTab === DATA_CUBE_EDITOR_TAB.CODE && (_jsx(DataCubeEditorCodePanel, {}))] })] }), _jsxs("div", { className: "flex h-10 items-center justify-end px-2", children: [_jsx("button", { className: "h-6 w-20 border border-neutral-400 bg-neutral-300 px-2 hover:brightness-95", onClick: () => {
|
|
50
|
+
editor.applyChanges();
|
|
51
|
+
editor.closePanel();
|
|
52
|
+
}, children: "OK" }), _jsx("button", { className: "ml-2 h-6 w-20 border border-neutral-400 bg-neutral-300 px-2 hover:brightness-95", onClick: () => editor.closePanel(), children: "Cancel" }), _jsx("button", { className: "ml-2 h-6 w-20 border border-neutral-400 bg-neutral-300 px-2 hover:brightness-95", onClick: () => editor.applyChanges(), children: "Apply" })] })] }));
|
|
132
53
|
});
|
|
133
54
|
//# sourceMappingURL=DataCubeEditor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeEditor.js","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DataCubeEditor.js","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EA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/C,KAAC,0BAA0B,KAAG,CAC/B,EACA,WAAW,KAAK,oBAAoB,CAAC,KAAK,IAAI,CAC7C,KAAC,wBAAwB,KAAG,CAC7B,EACA,WAAW,KAAK,oBAAoB,CAAC,eAAe,IAAI,CACvD,KAAC,0BAA0B,KAAG,CAC/B,EACA,WAAW,KAAK,oBAAoB,CAAC,iBAAiB,IAAI,CACzD,KAAC,0BAA0B,KAAG,CAC/B,EACA,WAAW,KAAK,oBAAoB,CAAC,gBAAgB,IAAI,CACxD,KAAC,kCAAkC,KAAG,CACvC,EACA,WAAW,KAAK,oBAAoB,CAAC,MAAM,IAAI,CAC9C,KAAC,yBAAyB,KAAG,CAC9B,EACA,WAAW,KAAK,oBAAoB,CAAC,kBAAkB,IAAI,CAC1D,KAAC,oCAAoC,KAAG,CACzC,EACA,WAAW,KAAK,oBAAoB,CAAC,iBAAiB,IAAI,CACzD,KAAC,mCAAmC,KAAG,CACxC,EACA,WAAW,KAAK,oBAAoB,CAAC,IAAI,IAAI,CAC5C,KAAC,uBAAuB,KAAG,CAC5B,IACG,IACF,EACN,eAAK,SAAS,EAAC,yCAAyC,aACtD,iBACE,SAAS,EAAC,4EAA4E,EACtF,OAAO,EAAE,GAAS,EAAE;4BAClB,MAAM,CAAC,YAAY,EAAE,CAAC;4BACtB,MAAM,CAAC,UAAU,EAAE,CAAC;wBACtB,CAAC,mBAGM,EACT,iBACE,SAAS,EAAC,iFAAiF,EAC3F,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,uBAG3B,EACT,iBACE,SAAS,EAAC,iFAAiF,EAC3F,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,YAAY,EAAE,sBAG7B,IACL,IACK,CACd,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeEditorCodePanel.d.ts","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditorCodePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DataCubeEditorCodePanel.d.ts","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditorCodePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkIH,eAAO,MAAM,uBAAuB;;CAgFlC,CAAC"}
|
|
@@ -18,6 +18,7 @@ import { observer } from 'mobx-react-lite';
|
|
|
18
18
|
import { DataCubeIcon } from '@finos/legend-art';
|
|
19
19
|
import { useEffect } from 'react';
|
|
20
20
|
import { useREPLStore } from '../../REPLStoreProvider.js';
|
|
21
|
+
import { WIP_Badge } from './DataCubeEditorShared.js';
|
|
21
22
|
// const DataCubeCodeEditor = observer(() => {
|
|
22
23
|
// const replStore = useREPLStore();
|
|
23
24
|
// const applicationStore = replStore.applicationStore;
|
|
@@ -131,7 +132,7 @@ import { useREPLStore } from '../../REPLStoreProvider.js';
|
|
|
131
132
|
// });
|
|
132
133
|
export const DataCubeEditorCodePanel = observer(() => {
|
|
133
134
|
const replStore = useREPLStore();
|
|
134
|
-
const panel = replStore.dataCube.editor.
|
|
135
|
+
const panel = replStore.dataCube.editor.sorts;
|
|
135
136
|
// const executeLambda = (): void => {
|
|
136
137
|
// // TODO: @akphi
|
|
137
138
|
// // flowResult(dataCubeState.executeLambda()).catch(
|
|
@@ -139,7 +140,7 @@ export const DataCubeEditorCodePanel = observer(() => {
|
|
|
139
140
|
// // );
|
|
140
141
|
// };
|
|
141
142
|
useEffect(() => { }, [panel]); // TODO: @akphi - remove this dummy useEffect
|
|
142
|
-
return (_jsxs("div", { className: "h-full w-full select-none p-2", children: [_jsxs("div", { className: "flex h-6", children: [_jsx("div", { className: "flex h-6 items-center text-xl font-medium", children: _jsx(DataCubeIcon.Code, {}) }),
|
|
143
|
+
return (_jsxs("div", { className: "h-full w-full select-none p-2", children: [_jsxs("div", { className: "flex h-6", children: [_jsx("div", { className: "flex h-6 items-center text-xl font-medium", children: _jsx(DataCubeIcon.Code, {}) }), _jsxs("div", { className: "ml-1 flex h-6 items-center text-xl font-medium", children: ["Code", _jsx(WIP_Badge, {})] })] }), _jsx("div", { className: "flex h-[calc(100%_-_24px)] w-full" })] })
|
|
143
144
|
// <div className="repl__content__query">
|
|
144
145
|
// <div className="repl__query">
|
|
145
146
|
// <div className="repl__query__editor">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeEditorCodePanel.js","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditorCodePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"DataCubeEditorCodePanel.js","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditorCodePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,8CAA8C;AAC9C,sCAAsC;AACtC,yDAAyD;AACzD,mDAAmD;AACnD,8EAA8E;AAC9E,kFAAkF;AAClF,iBAAiB;AACjB,OAAO;AACP,+DAA+D;AAC/D,sDAAsD;AACtD,0CAA0C;AAC1C,wDAAwD;AACxD,SAAS;AACT,uDAAuD;AACvD,2DAA2D;AAC3D,8BAA8B;AAC9B,kBA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,gEAAgE;IAChE,gEAAgE;IAChE,gBAAgB;IAChB,mDAAmD;IACnD,gCAAgC;IAChC,2BAA2B;IAC3B,qEAAqE;IACrE,gBAAgB;IAChB,mCAAmC;IACnC,iCAAiC;IACjC,eAAe;IACf,iBAAiB;IACjB,eAAe;IACf,aAAa;IACb,WAAW;IACX,SAAS;KACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeEditorColumnPropertiesPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DataCubeEditorColumnPropertiesPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiCH,eAAO,MAAM,mCAAmC;;CAigC9C,CAAC"}
|