@finos/legend-application-repl 0.0.36 → 0.0.38
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 +1 -1
- package/lib/__lib__/LegendREPLEvent.d.ts +1 -1
- package/lib/__lib__/LegendREPLEvent.d.ts.map +1 -1
- package/lib/__lib__/LegendREPLEvent.js +5 -5
- package/lib/__lib__/LegendREPLEvent.js.map +1 -1
- package/lib/__lib__/LegendREPLSetting.d.ts +1 -1
- package/lib/__lib__/LegendREPLSetting.d.ts.map +1 -1
- package/lib/__lib__/LegendREPLSetting.js +4 -4
- package/lib/__lib__/LegendREPLSetting.js.map +1 -1
- package/lib/application/LegendREPL.d.ts +1 -1
- package/lib/application/LegendREPL.d.ts.map +1 -1
- package/lib/application/LegendREPL.js +2 -2
- package/lib/application/LegendREPL.js.map +1 -1
- package/lib/application/LegendREPLDocumentation.d.ts +21 -0
- package/lib/application/LegendREPLDocumentation.d.ts.map +1 -0
- package/lib/application/LegendREPLDocumentation.js +22 -0
- package/lib/application/LegendREPLDocumentation.js.map +1 -0
- package/lib/components/Core_LegendREPLApplicationPlugin.js +2 -2
- package/lib/components/Core_LegendREPLApplicationPlugin.js.map +1 -1
- package/lib/components/LegendREPLApplication.d.ts.map +1 -1
- package/lib/components/LegendREPLApplication.js +3 -2
- package/lib/components/LegendREPLApplication.js.map +1 -1
- package/lib/components/LegendREPLFrameworkProvider.d.ts.map +1 -1
- package/lib/components/LegendREPLFrameworkProvider.js +2 -2
- package/lib/components/LegendREPLFrameworkProvider.js.map +1 -1
- package/lib/components/REPLStoreProvider.d.ts +4 -2
- package/lib/components/REPLStoreProvider.d.ts.map +1 -1
- package/lib/components/REPLStoreProvider.js +13 -7
- package/lib/components/REPLStoreProvider.js.map +1 -1
- package/lib/components/dataCube/DataCube.d.ts.map +1 -1
- package/lib/components/dataCube/DataCube.js +31 -13
- package/lib/components/dataCube/DataCube.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditor.d.ts +1 -3
- package/lib/components/dataCube/editor/DataCubeEditor.d.ts.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditor.js +18 -20
- package/lib/components/dataCube/editor/DataCubeEditor.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.js +12 -12
- 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 +45 -43
- package/lib/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorColumnsPanel.js +4 -4
- package/lib/components/dataCube/editor/DataCubeEditorColumnsPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.js +4 -4
- package/lib/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorFilterPanel.js +4 -4
- 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 +22 -22
- package/lib/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorHorizontalPivotsPanel.js +4 -4
- package/lib/components/dataCube/editor/DataCubeEditorHorizontalPivotsPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorSortsPanel.js +5 -5
- package/lib/components/dataCube/editor/DataCubeEditorSortsPanel.js.map +1 -1
- package/lib/components/dataCube/editor/DataCubeEditorVerticalPivotsPanel.js +2 -2
- package/lib/components/dataCube/editor/DataCubeEditorVerticalPivotsPanel.js.map +1 -1
- package/lib/components/dataCube/grid/DataCubeGrid.d.ts.map +1 -1
- package/lib/components/dataCube/grid/DataCubeGrid.js +37 -45
- package/lib/components/dataCube/grid/DataCubeGrid.js.map +1 -1
- package/lib/components/dataCube/grid/DataCubeGridShared.js +2 -2
- package/lib/components/dataCube/grid/DataCubeGridShared.js.map +1 -1
- package/lib/components/repl/Alert.d.ts +23 -0
- package/lib/components/repl/Alert.d.ts.map +1 -0
- package/lib/components/repl/Alert.js +73 -0
- package/lib/components/repl/Alert.js.map +1 -0
- package/lib/components/repl/DocumentationPanel.d.ts +24 -0
- package/lib/components/repl/DocumentationPanel.d.ts.map +1 -0
- package/lib/components/repl/DocumentationPanel.js +56 -0
- package/lib/components/repl/DocumentationPanel.js.map +1 -0
- package/lib/components/{dataCube/editor/DataCubeEditorShared.d.ts → repl/Form.d.ts} +11 -11
- package/lib/components/repl/Form.d.ts.map +1 -0
- package/lib/components/{dataCube/editor/DataCubeEditorShared.js → repl/Form.js} +13 -13
- package/lib/components/repl/Form.js.map +1 -0
- package/lib/components/{REPLWindow.d.ts → repl/LayoutManager.d.ts} +11 -17
- package/lib/components/repl/LayoutManager.d.ts.map +1 -0
- package/lib/components/repl/LayoutManager.js +116 -0
- package/lib/components/repl/LayoutManager.js.map +1 -0
- package/lib/components/{dataCube/editor/DataCubeEditorDeveloperPanel.d.ts → repl/SettingsPanel.d.ts} +2 -2
- package/lib/components/repl/SettingsPanel.d.ts.map +1 -0
- package/lib/components/repl/SettingsPanel.js +47 -0
- package/lib/components/repl/SettingsPanel.js.map +1 -0
- package/lib/index.css +1 -1
- package/lib/package.json +19 -22
- package/lib/server/DataCubeQuery.d.ts.map +1 -0
- package/lib/server/{models/DataCubeQuery.js → DataCubeQuery.js} +6 -6
- package/lib/server/DataCubeQuery.js.map +1 -0
- package/lib/server/{models/DataCubeEngineModels.d.ts → REPLEngine.d.ts} +7 -1
- package/lib/server/REPLEngine.d.ts.map +1 -0
- package/lib/server/{models/DataCubeEngineModels.js → REPLEngine.js} +9 -1
- package/lib/server/REPLEngine.js.map +1 -0
- package/lib/server/REPLServerClient.d.ts +2 -2
- package/lib/server/REPLServerClient.d.ts.map +1 -1
- package/lib/server/REPLServerClient.js +2 -2
- package/lib/server/REPLServerClient.js.map +1 -1
- package/lib/stores/LayoutManagerState.d.ts +62 -0
- package/lib/stores/LayoutManagerState.d.ts.map +1 -0
- package/lib/stores/LayoutManagerState.js +121 -0
- package/lib/stores/LayoutManagerState.js.map +1 -0
- package/lib/stores/LegendREPLApplicationPlugin.d.ts +1 -0
- package/lib/stores/LegendREPLApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendREPLApplicationPlugin.js +8 -0
- package/lib/stores/LegendREPLApplicationPlugin.js.map +1 -1
- package/lib/stores/LegendREPLBaseStore.d.ts +2 -2
- package/lib/stores/LegendREPLBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendREPLBaseStore.js +4 -4
- package/lib/stores/LegendREPLBaseStore.js.map +1 -1
- package/lib/stores/REPLStore.d.ts +12 -4
- package/lib/stores/REPLStore.d.ts.map +1 -1
- package/lib/stores/REPLStore.js +77 -25
- package/lib/stores/REPLStore.js.map +1 -1
- package/lib/stores/dataCube/{DataCubeInfrastructure.d.ts → DataCubeEngine.d.ts} +21 -21
- package/lib/stores/dataCube/DataCubeEngine.d.ts.map +1 -0
- package/lib/stores/dataCube/{DataCubeInfrastructure.js → DataCubeEngine.js} +50 -35
- package/lib/stores/dataCube/DataCubeEngine.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 +13 -8
- package/lib/stores/dataCube/DataCubeState.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/DataCubeQueryEngine.d.ts +2 -2
- package/lib/stores/dataCube/core/DataCubeQueryEngine.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQueryEngine.js +2 -2
- package/lib/stores/dataCube/core/DataCubeQueryEngine.js.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.d.ts +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotManager.d.ts +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotManager.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.d.ts.map +1 -1
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.js +4 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.js.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorCodePanelState.js +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorCodePanelState.js.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts +5 -8
- package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts.map +1 -1
- package/lib/stores/dataCube/editor/DataCubeEditorState.js +19 -29
- package/lib/stores/dataCube/editor/DataCubeEditorState.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.d.ts +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js +31 -28
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientExportEngine.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridClientExportEngine.js +7 -2
- package/lib/stores/dataCube/grid/DataCubeGridClientExportEngine.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridConfigurationBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridConfigurationBuilder.js +9 -8
- package/lib/stores/dataCube/grid/DataCubeGridConfigurationBuilder.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridMenuBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridMenuBuilder.js +2 -6
- package/lib/stores/dataCube/grid/DataCubeGridMenuBuilder.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.js +0 -2
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.js.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridState.d.ts +0 -2
- package/lib/stores/dataCube/grid/DataCubeGridState.d.ts.map +1 -1
- package/lib/stores/dataCube/grid/DataCubeGridState.js +1 -7
- package/lib/stores/dataCube/grid/DataCubeGridState.js.map +1 -1
- package/package.json +25 -28
- package/src/__lib__/LegendREPLEvent.ts +1 -1
- package/src/__lib__/LegendREPLSetting.ts +1 -1
- package/src/application/LegendREPL.tsx +2 -2
- package/{lib/grammar/parser.d.ts → src/application/LegendREPLDocumentation.ts} +6 -1
- package/src/components/Core_LegendREPLApplicationPlugin.tsx +2 -2
- package/src/components/LegendREPLApplication.tsx +2 -0
- package/src/components/LegendREPLFrameworkProvider.tsx +2 -4
- package/src/components/REPLStoreProvider.tsx +24 -18
- package/src/components/dataCube/DataCube.tsx +69 -26
- package/src/components/dataCube/editor/DataCubeEditor.tsx +89 -98
- package/src/components/dataCube/editor/DataCubeEditorCodePanel.tsx +12 -12
- package/src/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.tsx +112 -115
- package/src/components/dataCube/editor/DataCubeEditorColumnsPanel.tsx +4 -4
- package/src/components/dataCube/editor/DataCubeEditorExtendedColumnsPanel.tsx +4 -4
- package/src/components/dataCube/editor/DataCubeEditorFilterPanel.tsx +4 -4
- package/src/components/dataCube/editor/DataCubeEditorGeneralPropertiesPanel.tsx +76 -88
- package/src/components/dataCube/editor/DataCubeEditorHorizontalPivotsPanel.tsx +4 -4
- package/src/components/dataCube/editor/DataCubeEditorSortsPanel.tsx +5 -5
- package/src/components/dataCube/editor/DataCubeEditorVerticalPivotsPanel.tsx +2 -2
- package/src/components/dataCube/grid/DataCubeGrid.tsx +45 -53
- package/src/components/dataCube/grid/DataCubeGridShared.tsx +2 -2
- package/src/components/repl/Alert.tsx +138 -0
- package/src/components/repl/DocumentationPanel.tsx +88 -0
- package/src/components/{dataCube/editor/DataCubeEditorShared.tsx → repl/Form.tsx} +12 -12
- package/src/components/repl/LayoutManager.tsx +190 -0
- package/src/components/repl/SettingsPanel.tsx +148 -0
- package/src/server/{models/DataCubeQuery.ts → DataCubeQuery.ts} +3 -3
- package/src/server/{models/DataCubeEngineModels.ts → REPLEngine.ts} +13 -0
- package/src/server/REPLServerClient.ts +4 -3
- package/src/stores/LayoutManagerState.ts +168 -0
- package/src/stores/LegendREPLApplicationPlugin.ts +9 -0
- package/src/stores/LegendREPLBaseStore.ts +4 -4
- package/src/stores/REPLStore.tsx +145 -0
- package/src/stores/dataCube/{DataCubeInfrastructure.ts → DataCubeEngine.ts} +66 -46
- package/src/stores/dataCube/DataCubeState.ts +14 -9
- package/src/stores/dataCube/core/DataCubeCoreState.ts +1 -1
- package/src/stores/dataCube/core/DataCubeQueryEngine.ts +2 -3
- package/src/stores/dataCube/core/DataCubeQuerySnapshotBuilder.ts +1 -1
- package/src/stores/dataCube/core/DataCubeQuerySnapshotManager.ts +1 -1
- package/src/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.ts +10 -0
- package/src/stores/dataCube/editor/DataCubeEditorCodePanelState.ts +1 -1
- package/src/stores/dataCube/editor/{DataCubeEditorState.ts → DataCubeEditorState.tsx} +12 -24
- package/src/stores/dataCube/grid/DataCubeGridClientEngine.ts +23 -12
- package/src/stores/dataCube/grid/DataCubeGridClientExportEngine.ts +4 -1
- package/src/stores/dataCube/grid/DataCubeGridConfigurationBuilder.tsx +9 -11
- package/src/stores/dataCube/grid/DataCubeGridMenuBuilder.tsx +2 -6
- package/src/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.ts +0 -3
- package/src/stores/dataCube/grid/DataCubeGridState.ts +1 -11
- package/tsconfig.json +12 -8
- package/grammar/datacube_filter__lexer.g4 +0 -40
- package/grammar/datacube_filter__parser.g4 +0 -14
- package/grammar/generateGrammar.js +0 -43
- package/grammar/parser/generated/datacube_filter__lexer.interp +0 -59
- package/grammar/parser/generated/datacube_filter__lexer.tokens +0 -14
- package/grammar/parser/generated/datacube_filter__lexer.ts +0 -142
- package/grammar/parser/generated/datacube_filter__parser.interp +0 -38
- package/grammar/parser/generated/datacube_filter__parser.tokens +0 -14
- package/grammar/parser/generated/datacube_filter__parser.ts +0 -514
- package/grammar/parser/parser.ts +0 -55
- package/lib/components/REPLWindow.d.ts.map +0 -1
- package/lib/components/REPLWindow.js +0 -117
- package/lib/components/REPLWindow.js.map +0 -1
- package/lib/components/dataCube/editor/DataCubeEditorDeveloperPanel.d.ts.map +0 -1
- package/lib/components/dataCube/editor/DataCubeEditorDeveloperPanel.js +0 -28
- package/lib/components/dataCube/editor/DataCubeEditorDeveloperPanel.js.map +0 -1
- package/lib/components/dataCube/editor/DataCubeEditorShared.d.ts.map +0 -1
- package/lib/components/dataCube/editor/DataCubeEditorShared.js.map +0 -1
- package/lib/grammar/generated/datacube_filter__lexer.d.ts +0 -31
- package/lib/grammar/generated/datacube_filter__lexer.js +0 -118
- package/lib/grammar/generated/datacube_filter__parser.d.ts +0 -91
- package/lib/grammar/generated/datacube_filter__parser.js +0 -485
- package/lib/grammar/parser.js +0 -39
- package/lib/server/models/DataCubeEngineModels.d.ts.map +0 -1
- package/lib/server/models/DataCubeEngineModels.js.map +0 -1
- package/lib/server/models/DataCubeQuery.d.ts.map +0 -1
- package/lib/server/models/DataCubeQuery.js.map +0 -1
- package/lib/stores/dataCube/DataCubeInfrastructure.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubeInfrastructure.js.map +0 -1
- package/src/components/REPLWindow.tsx +0 -179
- package/src/components/dataCube/editor/DataCubeEditorDeveloperPanel.tsx +0 -43
- package/src/stores/REPLStore.ts +0 -48
- /package/lib/server/{models/DataCubeQuery.d.ts → DataCubeQuery.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -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
|
-
export declare enum
|
|
16
|
+
export declare enum ApplicationEvent {
|
|
17
17
|
FETCH_TDS_FAILURE = "repl.fetch-tds.failure",
|
|
18
18
|
BUILD_TDS_EQUEST_FAILURE = "repl.build-tds-request.failure"
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendREPLEvent.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendREPLEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,
|
|
1
|
+
{"version":3,"file":"LegendREPLEvent.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendREPLEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,gBAAgB;IAC1B,iBAAiB,2BAA2B;IAC5C,wBAAwB,mCAAmC;CAC5D"}
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export var
|
|
17
|
-
(function (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
})(
|
|
16
|
+
export var ApplicationEvent;
|
|
17
|
+
(function (ApplicationEvent) {
|
|
18
|
+
ApplicationEvent["FETCH_TDS_FAILURE"] = "repl.fetch-tds.failure";
|
|
19
|
+
ApplicationEvent["BUILD_TDS_EQUEST_FAILURE"] = "repl.build-tds-request.failure";
|
|
20
|
+
})(ApplicationEvent || (ApplicationEvent = {}));
|
|
21
21
|
//# sourceMappingURL=LegendREPLEvent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendREPLEvent.js","sourceRoot":"","sources":["../../src/__lib__/LegendREPLEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"LegendREPLEvent.js","sourceRoot":"","sources":["../../src/__lib__/LegendREPLEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,gEAA4C,CAAA;IAC5C,+EAA2D,CAAA;AAC7D,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B"}
|
|
@@ -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
|
-
export declare enum
|
|
16
|
+
export declare enum SettingsKey {
|
|
17
17
|
PAGINATION = "application.pagination.enabled"
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=LegendREPLSetting.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendREPLSetting.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendREPLSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,
|
|
1
|
+
{"version":3,"file":"LegendREPLSetting.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendREPLSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,WAAW;IACrB,UAAU,mCAAmC;CAC9C"}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export var
|
|
17
|
-
(function (
|
|
18
|
-
|
|
19
|
-
})(
|
|
16
|
+
export var SettingsKey;
|
|
17
|
+
(function (SettingsKey) {
|
|
18
|
+
SettingsKey["PAGINATION"] = "application.pagination.enabled";
|
|
19
|
+
})(SettingsKey || (SettingsKey = {}));
|
|
20
20
|
//# sourceMappingURL=LegendREPLSetting.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendREPLSetting.js","sourceRoot":"","sources":["../../src/__lib__/LegendREPLSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"LegendREPLSetting.js","sourceRoot":"","sources":["../../src/__lib__/LegendREPLSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,WAEX;AAFD,WAAY,WAAW;IACrB,4DAA6C,CAAA;AAC/C,CAAC,EAFW,WAAW,KAAX,WAAW,QAEtB"}
|
|
@@ -22,6 +22,6 @@ export declare class LegendREPL extends LegendApplication {
|
|
|
22
22
|
pluginManager: LegendREPLPluginManager;
|
|
23
23
|
static create(): LegendREPL;
|
|
24
24
|
configureApplication(input: LegendApplicationConfigurationInput<LegendREPLApplicationConfigData>): Promise<LegendApplicationConfig>;
|
|
25
|
-
loadApplication(
|
|
25
|
+
loadApplication(application: LegendREPLApplicationStore): Promise<void>;
|
|
26
26
|
}
|
|
27
27
|
//# sourceMappingURL=LegendREPL.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendREPL.d.ts","sourceRoot":"","sources":["../../src/application/LegendREPL.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,mCAAmC,EACxC,iBAAiB,EAIlB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,2BAA2B,EAC3B,KAAK,+BAA+B,EACrC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAGvE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAEnF,qBAAa,UAAW,SAAQ,iBAAiB;IACvC,MAAM,EAAE,2BAA2B,CAAC;IACpC,aAAa,EAAE,uBAAuB,CAAC;IAE/C,MAAM,CAAC,MAAM,IAAI,UAAU;IAUrB,oBAAoB,CACxB,KAAK,EAAE,mCAAmC,CAAC,+BAA+B,CAAC,GAC1E,OAAO,CAAC,uBAAuB,CAAC;IAI7B,eAAe,CACnB,
|
|
1
|
+
{"version":3,"file":"LegendREPL.d.ts","sourceRoot":"","sources":["../../src/application/LegendREPL.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,mCAAmC,EACxC,iBAAiB,EAIlB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,2BAA2B,EAC3B,KAAK,+BAA+B,EACrC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAGvE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAEnF,qBAAa,UAAW,SAAQ,iBAAiB;IACvC,MAAM,EAAE,2BAA2B,CAAC;IACpC,aAAa,EAAE,uBAAuB,CAAC;IAE/C,MAAM,CAAC,MAAM,IAAI,UAAU;IAUrB,oBAAoB,CACxB,KAAK,EAAE,mCAAmC,CAAC,+BAA+B,CAAC,GAC1E,OAAO,CAAC,uBAAuB,CAAC;IAI7B,eAAe,CACnB,WAAW,EAAE,0BAA0B,GACtC,OAAO,CAAC,IAAI,CAAC;CAOjB"}
|
|
@@ -33,8 +33,8 @@ export class LegendREPL extends LegendApplication {
|
|
|
33
33
|
async configureApplication(input) {
|
|
34
34
|
return new LegendREPLApplicationConfig(input);
|
|
35
35
|
}
|
|
36
|
-
async loadApplication(
|
|
37
|
-
createRoot(getApplicationRootElement()).render(_jsx(ApplicationStoreProvider, { store:
|
|
36
|
+
async loadApplication(application) {
|
|
37
|
+
createRoot(getApplicationRootElement()).render(_jsx(ApplicationStoreProvider, { store: application, children: _jsx(LegendREPLWebApplication, { baseUrl: this.baseAddress }) }));
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
//# sourceMappingURL=LegendREPL.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendREPL.js","sourceRoot":"","sources":["../../src/application/LegendREPL.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAGL,iBAAiB,EACjB,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,2BAA2B,GAE5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AAGrG,MAAM,OAAO,UAAW,SAAQ,iBAAiB;IAI/C,MAAM,CAAC,MAAM;QACX,MAAM,WAAW,GAAG,IAAI,UAAU,CAAC,uBAAuB,CAAC,MAAM,EAAE,CAAC,CAAC;QACrE,WAAW,CAAC,eAAe,CAAC;YAC1B,IAAI,4BAA4B,EAAE;YAClC,IAAI,gCAAgC,EAAE;SACvC,CAAC,CAAC;QACH,WAAW,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QAChC,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,KAA2E;QAE3E,OAAO,IAAI,2BAA2B,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,
|
|
1
|
+
{"version":3,"file":"LegendREPL.js","sourceRoot":"","sources":["../../src/application/LegendREPL.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAGL,iBAAiB,EACjB,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,2BAA2B,GAE5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AAGrG,MAAM,OAAO,UAAW,SAAQ,iBAAiB;IAI/C,MAAM,CAAC,MAAM;QACX,MAAM,WAAW,GAAG,IAAI,UAAU,CAAC,uBAAuB,CAAC,MAAM,EAAE,CAAC,CAAC;QACrE,WAAW,CAAC,eAAe,CAAC;YAC1B,IAAI,4BAA4B,EAAE;YAClC,IAAI,gCAAgC,EAAE;SACvC,CAAC,CAAC;QACH,WAAW,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QAChC,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,KAA2E;QAE3E,OAAO,IAAI,2BAA2B,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,WAAuC;QAEvC,UAAU,CAAC,yBAAyB,EAAE,CAAC,CAAC,MAAM,CAC5C,KAAC,wBAAwB,IAAC,KAAK,EAAE,WAAW,YAC1C,KAAC,wBAAwB,IAAC,OAAO,EAAE,IAAI,CAAC,WAAW,GAAI,GAC9B,CAC5B,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 declare enum DocumentationKey {
|
|
17
|
+
DATA_CUBE_EXTENDED_COLUMN_LEVELS = "data-cube.extended-column.levels",
|
|
18
|
+
DATA_CUBE_COLUMN_KINDS = "data-cube.column.kinds",
|
|
19
|
+
DATA_CUBE_COLUMN_DISPLAY_AS_LINK = "data-cube.column.display-as-link"
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=LegendREPLDocumentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLDocumentation.d.ts","sourceRoot":"","sources":["../../src/application/LegendREPLDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,gBAAgB;IAC1B,gCAAgC,qCAAqC;IACrE,sBAAsB,2BAA2B;IACjD,gCAAgC,qCAAqC;CACtE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 var DocumentationKey;
|
|
17
|
+
(function (DocumentationKey) {
|
|
18
|
+
DocumentationKey["DATA_CUBE_EXTENDED_COLUMN_LEVELS"] = "data-cube.extended-column.levels";
|
|
19
|
+
DocumentationKey["DATA_CUBE_COLUMN_KINDS"] = "data-cube.column.kinds";
|
|
20
|
+
DocumentationKey["DATA_CUBE_COLUMN_DISPLAY_AS_LINK"] = "data-cube.column.display-as-link";
|
|
21
|
+
})(DocumentationKey || (DocumentationKey = {}));
|
|
22
|
+
//# sourceMappingURL=LegendREPLDocumentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLDocumentation.js","sourceRoot":"","sources":["../../src/application/LegendREPLDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,yFAAqE,CAAA;IACrE,qEAAiD,CAAA;IACjD,yFAAqE,CAAA;AACvE,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B"}
|
|
@@ -23,8 +23,8 @@ export class Core_LegendREPLApplicationPlugin extends LegendREPLApplicationPlugi
|
|
|
23
23
|
}
|
|
24
24
|
getExtraApplicationSetups() {
|
|
25
25
|
return [
|
|
26
|
-
async (
|
|
27
|
-
await configureCodeEditorComponent(
|
|
26
|
+
async (application) => {
|
|
27
|
+
await configureCodeEditorComponent(application);
|
|
28
28
|
setupPureLanguageService();
|
|
29
29
|
},
|
|
30
30
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Core_LegendREPLApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/Core_LegendREPLApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,WAAW,MAAM,oBAAoB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AACvF,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,gCAAiC,SAAQ,2BAA2B;IAC/E,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAE3D;QACE,KAAK,CAAC,gCAAgC,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACpE,CAAC;IAEQ,yBAAyB;QAChC,OAAO;YACL,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Core_LegendREPLApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/Core_LegendREPLApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,WAAW,MAAM,oBAAoB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AACvF,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,gCAAiC,SAAQ,2BAA2B;IAC/E,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAE3D;QACE,KAAK,CAAC,gCAAgC,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACpE,CAAC;IAEQ,yBAAyB;QAChC,OAAO;YACL,KAAK,EAAE,WAAW,EAAE,EAAE;gBACpB,MAAM,4BAA4B,CAAC,WAAW,CAAC,CAAC;gBAChD,wBAAwB,EAAE,CAAC;YAC7B,CAAC;SACF,CAAC;IACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendREPLApplication.d.ts","sourceRoot":"","sources":["../../src/components/LegendREPLApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"LegendREPLApplication.d.ts","sourceRoot":"","sources":["../../src/components/LegendREPLApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAcH,eAAO,MAAM,qCAAqC;;EAEhD,CAAC;AAEH,eAAO,MAAM,gBAAgB,wBAe5B,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC9C,OAAO,EAAE,MAAM,CAAC;CACjB,CAWA,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
4
|
*
|
|
@@ -19,6 +19,7 @@ import { DataCube } from './dataCube/DataCube.js';
|
|
|
19
19
|
import { LegendREPLFrameworkProvider } from './LegendREPLFrameworkProvider.js';
|
|
20
20
|
import { observer } from 'mobx-react-lite';
|
|
21
21
|
import { withREPLStore } from './REPLStoreProvider.js';
|
|
22
|
+
import { ActionAlert } from './repl/Alert.js';
|
|
22
23
|
export const LEGEND_REPL_GRID_CLIENT_ROUTE_PATTERN = Object.freeze({
|
|
23
24
|
DATA_CUBE: `/dataCube`,
|
|
24
25
|
});
|
|
@@ -27,6 +28,6 @@ export const LegendREPLRouter = withREPLStore(observer(() => (_jsx("div", { clas
|
|
|
27
28
|
DataCube }) }) }))));
|
|
28
29
|
export const LegendREPLWebApplication = (props) => {
|
|
29
30
|
const { baseUrl } = props;
|
|
30
|
-
return (_jsx(BrowserEnvironmentProvider, { baseUrl: baseUrl, children:
|
|
31
|
+
return (_jsx(BrowserEnvironmentProvider, { baseUrl: baseUrl, children: _jsxs(LegendREPLFrameworkProvider, { children: [_jsx(LegendREPLRouter, {}), _jsx(ActionAlert, {})] }) }));
|
|
31
32
|
};
|
|
32
33
|
//# sourceMappingURL=LegendREPLApplication.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendREPLApplication.js","sourceRoot":"","sources":["../../src/components/LegendREPLApplication.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAC1B,KAAK,EACL,MAAM,GAEP,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendREPLApplication.js","sourceRoot":"","sources":["../../src/components/LegendREPLApplication.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAC1B,KAAK,EACL,MAAM,GAEP,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,CAAC,MAAM,qCAAqC,GAAG,MAAM,CAAC,MAAM,CAAC;IACjE,SAAS,EAAE,WAAW;CACvB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAC3C,QAAQ,CAAC,GAAG,EAAE,CAAC,CACb,cAAK,SAAS,EAAC,KAAK,YAClB,KAAC,MAAM,cACL,KAAC,KAAK,IACJ,KAAK,EAAE,IAAI,EACX,IAAI,EAAE,CAAC,qCAAqC,CAAC,SAAS,CAAC,EACvD,SAAS;YACP,mEAAmE;YACnE,QAA+C,GAEjD,GACK,GACL,CACP,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAEhC,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE1B,OAAO,CACL,KAAC,0BAA0B,IAAC,OAAO,EAAE,OAAO,YAC1C,MAAC,2BAA2B,eAC1B,KAAC,gBAAgB,KAAG,EACpB,KAAC,WAAW,KAAG,IACa,GACH,CAC9B,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendREPLFrameworkProvider.d.ts","sourceRoot":"","sources":["../../src/components/LegendREPLFrameworkProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,6BAA6B,QAAO,0BAC4B,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendREPLFrameworkProvider.d.ts","sourceRoot":"","sources":["../../src/components/LegendREPLFrameworkProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,6BAA6B,QAAO,0BAC4B,CAAC;AAkB9E,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC;IACjD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAIA,CAAC"}
|
|
@@ -21,8 +21,8 @@ import { LegendREPLBaseStore, } from '../stores/LegendREPLBaseStore.js';
|
|
|
21
21
|
export const useLegendREPLApplicationStore = () => useApplicationStore();
|
|
22
22
|
const LegendREPLBaseStoreContext = createContext(undefined);
|
|
23
23
|
const LegendREPLBaseStoreProvider = ({ children }) => {
|
|
24
|
-
const
|
|
25
|
-
const store = useLocalObservable(() => new LegendREPLBaseStore(
|
|
24
|
+
const application = useLegendREPLApplicationStore();
|
|
25
|
+
const store = useLocalObservable(() => new LegendREPLBaseStore(application));
|
|
26
26
|
return (_jsx(LegendREPLBaseStoreContext.Provider, { value: store, children: children }));
|
|
27
27
|
};
|
|
28
28
|
export const LegendREPLFrameworkProvider = ({ children }) => (_jsx(ApplicationFrameworkProvider, { simple: true, children: _jsx(LegendREPLBaseStoreProvider, { children: children }) }));
|
|
@@ -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+B,EAAE,CAC5E,mBAAmB,EAAwD,CAAC;AAE9E,MAAM,0BAA0B,GAAG,aAAa,CAE9C,SAAS,CAAC,CAAC;AAEb,MAAM,2BAA2B,GAE5B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpB,MAAM,
|
|
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+B,EAAE,CAC5E,mBAAmB,EAAwD,CAAC;AAE9E,MAAM,0BAA0B,GAAG,aAAa,CAE9C,SAAS,CAAC,CAAC;AAEb,MAAM,2BAA2B,GAE5B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpB,MAAM,WAAW,GAAG,6BAA6B,EAAE,CAAC;IACpD,MAAM,KAAK,GAAG,kBAAkB,CAAC,GAAG,EAAE,CAAC,IAAI,mBAAmB,CAAC,WAAW,CAAC,CAAC,CAAC;IAC7E,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"}
|
|
@@ -14,9 +14,11 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { REPLStore } from '../stores/REPLStore.js';
|
|
17
|
-
export declare const REPLStoreProvider: ({ children
|
|
17
|
+
export declare const REPLStoreProvider: (({ children }: {
|
|
18
18
|
children: React.ReactNode;
|
|
19
|
-
}) => React.ReactElement
|
|
19
|
+
}) => React.ReactElement) & {
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
20
22
|
export declare const useREPLStore: () => REPLStore;
|
|
21
23
|
export declare const withREPLStore: (WrappedComponent: React.FC) => React.FC;
|
|
22
24
|
//# sourceMappingURL=REPLStoreProvider.d.ts.map
|
|
@@ -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,wBAAwB,CAAC;AAQnD,eAAO,MAAM,iBAAiB,
|
|
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,kBACb;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,KAAG,KAAK,CAAC,YAAY;;CAoBlE,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,SAI7B,CAAC;AAEJ,eAAO,MAAM,aAAa,qBAAsB,KAAK,CAAC,EAAE,KAAG,KAAK,CAAC,EAO9D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
4
|
*
|
|
@@ -14,17 +14,23 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import { createContext, useContext } from 'react';
|
|
18
|
-
import { useLocalObservable } from 'mobx-react-lite';
|
|
17
|
+
import { createContext, useContext, useEffect } from 'react';
|
|
18
|
+
import { observer, useLocalObservable } from 'mobx-react-lite';
|
|
19
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);
|
|
23
|
-
export const REPLStoreProvider = ({ children
|
|
24
|
-
const
|
|
25
|
-
const store = useLocalObservable(() => new REPLStore(
|
|
23
|
+
export const REPLStoreProvider = observer(({ children }) => {
|
|
24
|
+
const application = useApplicationStore();
|
|
25
|
+
const store = useLocalObservable(() => new REPLStore(application));
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
store.initialize().catch(application.logUnhandledError);
|
|
28
|
+
}, [store, application]);
|
|
29
|
+
if (!store.initState.hasSucceeded) {
|
|
30
|
+
return _jsx(_Fragment, {});
|
|
31
|
+
}
|
|
26
32
|
return (_jsx(REPLStoreContext.Provider, { value: store, children: children }));
|
|
27
|
-
};
|
|
33
|
+
});
|
|
28
34
|
export const useREPLStore = () => guaranteeNonNullable(useContext(REPLStoreContext), `Can't find REPL store in context`);
|
|
29
35
|
export const withREPLStore = (WrappedComponent) => function WithREPLStore() {
|
|
30
36
|
return (_jsx(REPLStoreProvider, { children: _jsx(WrappedComponent, {}) }));
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"REPLStoreProvider.js","sourceRoot":"","sources":["../../src/components/REPLStoreProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,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,QAAQ,CACvC,CAAC,EAAE,QAAQ,EAAiC,EAAsB,EAAE;IAClE,MAAM,WAAW,GAAG,mBAAmB,EAGpC,CAAC;IACJ,MAAM,KAAK,GAAG,kBAAkB,CAAC,GAAG,EAAE,CAAC,IAAI,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;IAEnE,SAAS,CAAC,GAAG,EAAE;QACb,KAAK,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAC1D,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC;IAEzB,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC;QAClC,OAAO,mBAAK,CAAC;IACf,CAAC;IACD,OAAO,CACL,KAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACpC,QAAQ,GACiB,CAC7B,CAAC;AACJ,CAAC,CACF,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCube.d.ts","sourceRoot":"","sources":["../../../src/components/dataCube/DataCube.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DataCube.d.ts","sourceRoot":"","sources":["../../../src/components/dataCube/DataCube.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAqHH,eAAO,MAAM,QAAQ;;CAiBnB,CAAC"}
|
|
@@ -16,33 +16,51 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
16
16
|
*/
|
|
17
17
|
import { observer } from 'mobx-react-lite';
|
|
18
18
|
import { useREPLStore } from '../REPLStoreProvider.js';
|
|
19
|
-
import { useEffect
|
|
19
|
+
import { useEffect } from 'react';
|
|
20
20
|
import { DataCubeGrid } from './grid/DataCubeGrid.js';
|
|
21
|
-
import { DataCubeEditor } from './editor/DataCubeEditor.js';
|
|
22
21
|
import { useApplicationStore } from '@finos/legend-application';
|
|
23
|
-
import { DataCubeIcon, ProgressBar } from '@finos/legend-art';
|
|
22
|
+
import { DataCubeIcon, DropdownMenu, DropdownMenuItem, ProgressBar, useDropdownMenu, } from '@finos/legend-art';
|
|
23
|
+
import { LayoutManager } from '../repl/LayoutManager.js';
|
|
24
24
|
const DataCubeStatusBar = observer(() => {
|
|
25
|
-
const
|
|
26
|
-
const dataCube =
|
|
27
|
-
return (_jsxs("div", { className: "flex h-5 w-full justify-between bg-neutral-100", children: [_jsxs("div", { className: "flex
|
|
25
|
+
const repl = useREPLStore();
|
|
26
|
+
const dataCube = repl.dataCube;
|
|
27
|
+
return (_jsxs("div", { className: "flex h-5 w-full justify-between bg-neutral-100", children: [_jsxs("div", { className: "flex", children: [_jsxs("button", { className: "flex items-center px-2 text-sky-600 hover:text-sky-700", onClick: () => dataCube.editor.display.open(), children: [_jsx(DataCubeIcon.Settings, { className: "text-xl" }), _jsx("div", { className: "pl-0.5 underline", children: "Properties" })] }), _jsx("div", { className: "flex", 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',
|
|
31
31
|
}, variant: "indeterminate" })) }) })] }));
|
|
32
32
|
});
|
|
33
33
|
const DataCubeTitleBar = observer(() => {
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
|
|
34
|
+
const application = useApplicationStore();
|
|
35
|
+
const repl = useREPLStore();
|
|
36
|
+
const dataCube = repl.dataCube;
|
|
37
|
+
const [openMenuDropdown, closeMenuDropdown, menuDropdownProps] = useDropdownMenu();
|
|
38
|
+
return (_jsxs("div", { className: "flex h-6 justify-between bg-neutral-100", children: [_jsxs("div", { className: "flex select-none items-center pl-1 pr-2 text-lg font-medium", children: [_jsx(DataCubeIcon.Cube, { className: "mr-1 h-4 w-4" }), _jsx("div", { children: dataCube.core.name })] }), _jsxs("div", { children: [_jsx("button", { className: "flex h-6 w-6 flex-shrink-0 items-center justify-center text-lg", onClick: openMenuDropdown, children: _jsx(DataCubeIcon.Menu, {}) }), _jsxs(DropdownMenu, { ...menuDropdownProps, menuProps: {
|
|
39
|
+
anchorOrigin: { vertical: 'top', horizontal: 'left' },
|
|
40
|
+
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
|
41
|
+
classes: {
|
|
42
|
+
paper: 'rounded-none mt-[1px]',
|
|
43
|
+
list: 'w-36 p-0 rounded-none border border-neutral-400 bg-white max-h-40 overflow-y-auto py-0.5',
|
|
44
|
+
},
|
|
45
|
+
}, children: [_jsx(DropdownMenuItem, { className: "flex h-[22px] w-full items-center px-2.5 text-base hover:bg-neutral-100 focus-visible:bg-neutral-100", onClick: () => {
|
|
46
|
+
if (application.documentationService.url) {
|
|
47
|
+
application.navigationService.navigator.visitAddress(application.documentationService.url);
|
|
48
|
+
}
|
|
49
|
+
closeMenuDropdown();
|
|
50
|
+
},
|
|
51
|
+
// disabled={!application.documentationService.url}
|
|
52
|
+
disabled: true, children: "See Documentation" }), _jsx("div", { className: "my-0.5 h-[1px] w-full bg-neutral-200" }), _jsx(DropdownMenuItem, { className: "flex h-[22px] w-full items-center px-2.5 text-base hover:bg-neutral-100 focus-visible:bg-neutral-100", onClick: () => {
|
|
53
|
+
repl.settingsDisplay.open();
|
|
54
|
+
closeMenuDropdown();
|
|
55
|
+
}, children: "Settings..." })] })] })] }));
|
|
37
56
|
});
|
|
38
57
|
export const DataCube = observer(() => {
|
|
39
|
-
const
|
|
40
|
-
const ref = useRef(null);
|
|
58
|
+
const repl = useREPLStore();
|
|
41
59
|
const application = useApplicationStore();
|
|
42
|
-
const dataCube =
|
|
60
|
+
const dataCube = repl.dataCube;
|
|
43
61
|
useEffect(() => {
|
|
44
62
|
dataCube.initialize().catch(application.logUnhandledError);
|
|
45
63
|
}, [dataCube, application]);
|
|
46
|
-
return (_jsxs("div", {
|
|
64
|
+
return (_jsxs("div", { className: "data-cube relative flex h-full w-full flex-col bg-white", children: [_jsx(DataCubeTitleBar, {}), _jsx(DataCubeGrid, {}), _jsx(DataCubeStatusBar, {}), _jsx(LayoutManager, { layoutManagerState: repl.layout })] }));
|
|
47
65
|
});
|
|
48
66
|
//# sourceMappingURL=DataCube.js.map
|
|
@@ -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,
|
|
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,OAAO,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CA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AI,EAAE,CAAC;oCAC5B,iBAAiB,EAAE,CAAC;gCACtB,CAAC,4BAGgB,IACN,IACX,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,GAAG,EAAE;IACpC,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,WAAW,GAAG,mBAAmB,EAAE,CAAC;IAC1C,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IAE/B,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAC7D,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;IAE5B,OAAO,CACL,eAAK,SAAS,EAAC,yDAAyD,aACtE,KAAC,gBAAgB,KAAG,EACpB,KAAC,YAAY,KAAG,EAChB,KAAC,iBAAiB,KAAG,EACrB,KAAC,aAAa,IAAC,kBAAkB,EAAE,IAAI,CAAC,MAAM,GAAI,IAC9C,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export declare const DataCubeEditor: ((
|
|
17
|
-
containerRef: React.RefObject<HTMLDivElement>;
|
|
18
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
|
16
|
+
export declare const DataCubeEditor: (() => import("react/jsx-runtime").JSX.Element) & {
|
|
19
17
|
displayName: string;
|
|
20
18
|
};
|
|
21
19
|
//# sourceMappingURL=DataCubeEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DataCubeEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAgBH,eAAO,MAAM,cAAc;;CA0FzB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
4
|
*
|
|
@@ -15,7 +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 {
|
|
18
|
+
import { DataCubeEditorTab } from '../../../stores/dataCube/editor/DataCubeEditorState.js';
|
|
19
19
|
import { useREPLStore } from '../../REPLStoreProvider.js';
|
|
20
20
|
import { DataCubeEditorSortsPanel } from './DataCubeEditorSortsPanel.js';
|
|
21
21
|
import { DataCubeEditorGeneralPropertiesPanel } from './DataCubeEditorGeneralPropertiesPanel.js';
|
|
@@ -26,29 +26,27 @@ import { DataCubeEditorFilterPanel } from './DataCubeEditorFilterPanel.js';
|
|
|
26
26
|
import { DataCubeEditorExtendedColumnsPanel } from './DataCubeEditorExtendedColumnsPanel.js';
|
|
27
27
|
import { DataCubeEditorCodePanel } from './DataCubeEditorCodePanel.js';
|
|
28
28
|
import { DataCubeEditorColumnPropertiesPanel } from './DataCubeEditorColumnPropertiesPanel.js';
|
|
29
|
-
import { REPLWindow } from '../../REPLWindow.js';
|
|
30
29
|
import { cn } from '@finos/legend-art';
|
|
31
|
-
export const DataCubeEditor = observer((
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const editor = replStore.dataCube.editor;
|
|
30
|
+
export const DataCubeEditor = observer(() => {
|
|
31
|
+
const repl = useREPLStore();
|
|
32
|
+
const editor = repl.dataCube.editor;
|
|
35
33
|
const selectedTab = editor.currentTab;
|
|
36
34
|
const tabs = [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
35
|
+
DataCubeEditorTab.GENERAL_PROPERTIES,
|
|
36
|
+
DataCubeEditorTab.COLUMN_PROPERTIES,
|
|
37
|
+
DataCubeEditorTab.FILTER,
|
|
38
|
+
DataCubeEditorTab.EXTENDED_COLUMNS,
|
|
39
|
+
DataCubeEditorTab.COLUMNS,
|
|
40
|
+
DataCubeEditorTab.VERTICAL_PIVOTS,
|
|
41
|
+
DataCubeEditorTab.HORIZONTAL_PIVOTS,
|
|
42
|
+
DataCubeEditorTab.SORTS,
|
|
43
|
+
DataCubeEditorTab.CODE,
|
|
46
44
|
];
|
|
47
|
-
return (_jsxs(
|
|
45
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "relative h-[calc(100%_-_40px)] w-full 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
46
|
'-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 ===
|
|
47
|
+
}), children: tab }, tab))) }), _jsxs("div", { className: "h-full w-full overflow-auto border border-neutral-300 bg-white", children: [selectedTab === DataCubeEditorTab.GENERAL_PROPERTIES && (_jsx(DataCubeEditorGeneralPropertiesPanel, {})), selectedTab === DataCubeEditorTab.COLUMN_PROPERTIES && (_jsx(DataCubeEditorColumnPropertiesPanel, {})), selectedTab === DataCubeEditorTab.FILTER && (_jsx(DataCubeEditorFilterPanel, {})), selectedTab === DataCubeEditorTab.EXTENDED_COLUMNS && (_jsx(DataCubeEditorExtendedColumnsPanel, {})), selectedTab === DataCubeEditorTab.COLUMNS && (_jsx(DataCubeEditorColumnsPanel, {})), selectedTab === DataCubeEditorTab.SORTS && (_jsx(DataCubeEditorSortsPanel, {})), selectedTab === DataCubeEditorTab.VERTICAL_PIVOTS && (_jsx(DataCubeEditorVerticalPivotsPanel, {})), selectedTab === DataCubeEditorTab.HORIZONTAL_PIVOTS && (_jsx(DataCubeEditorHorizontalPivotsPanel, {})), selectedTab === DataCubeEditorTab.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
48
|
editor.applyChanges();
|
|
51
|
-
editor.
|
|
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.
|
|
49
|
+
editor.display.close();
|
|
50
|
+
}, 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.display.close(), 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" })] })] }));
|
|
53
51
|
});
|
|
54
52
|
//# 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;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SAAS,EAAC,yCAAyC,aACtD,iBACE,SAAS,EAAC,4EAA4E,EACtF,OAAO,EAAE,GAAS,EAAE;4BAClB,MAAM,CAAC,YAAY,EAAE,CAAC;4BACtB,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;wBACzB,CAAC,mBAGM,EACT,iBACE,SAAS,EAAC,iFAAiF,EAC3F,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,uBAG9B,EACT,iBACE,SAAS,EAAC,iFAAiF,EAC3F,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,YAAY,EAAE,sBAG7B,IACL,IACL,CACJ,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -18,11 +18,11 @@ 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 {
|
|
21
|
+
import { FormBadge_WIP } from '../../repl/Form.js';
|
|
22
22
|
// const DataCubeCodeEditor = observer(() => {
|
|
23
|
-
// const
|
|
24
|
-
// const
|
|
25
|
-
// const dataCubeState =
|
|
23
|
+
// const repl = userepl();
|
|
24
|
+
// const application = repl.application;
|
|
25
|
+
// const dataCubeState = repl.dataCubeState;
|
|
26
26
|
// const queryEditorState = dataCubeState.editor.codePanel.queryEditorState;
|
|
27
27
|
// const onDidChangeModelContentEventDisposer = useRef<IDisposable | undefined>(
|
|
28
28
|
// undefined,
|
|
@@ -40,10 +40,10 @@ import { WIP_Badge } from './DataCubeEditorShared.js';
|
|
|
40
40
|
// () =>
|
|
41
41
|
// debounce((): void => {
|
|
42
42
|
// flowResult(dataCubeState.editor.codePanel.parseQuery()).catch(
|
|
43
|
-
//
|
|
43
|
+
// repl.application.logUnhandledError,
|
|
44
44
|
// );
|
|
45
45
|
// }, 1000),
|
|
46
|
-
// [dataCubeState,
|
|
46
|
+
// [dataCubeState, repl.application.logUnhandledError],
|
|
47
47
|
// );
|
|
48
48
|
// if (editor) {
|
|
49
49
|
// onDidChangeModelContentEventDisposer.current?.dispose();
|
|
@@ -103,7 +103,7 @@ import { WIP_Badge } from './DataCubeEditorShared.js';
|
|
|
103
103
|
// const _editor = monacoEditorAPI.create(element, {
|
|
104
104
|
// ...getBaseCodeEditorOptions(),
|
|
105
105
|
// language: CODE_EDITOR_LANGUAGE.PURE,
|
|
106
|
-
// theme:
|
|
106
|
+
// theme: application.layoutService
|
|
107
107
|
// .TEMPORARY__isLightColorThemeEnabled
|
|
108
108
|
// ? CODE_EDITOR_THEME.BUILT_IN__VSCODE_LIGHT
|
|
109
109
|
// : CODE_EDITOR_THEME.DEFAULT_DARK,
|
|
@@ -111,7 +111,7 @@ import { WIP_Badge } from './DataCubeEditorShared.js';
|
|
|
111
111
|
// setEditor(_editor);
|
|
112
112
|
// }
|
|
113
113
|
// }, [
|
|
114
|
-
//
|
|
114
|
+
// application.layoutService.TEMPORARY__isLightColorThemeEnabled,
|
|
115
115
|
// editor,
|
|
116
116
|
// ]);
|
|
117
117
|
// // dispose editor
|
|
@@ -131,16 +131,16 @@ import { WIP_Badge } from './DataCubeEditorShared.js';
|
|
|
131
131
|
// );
|
|
132
132
|
// });
|
|
133
133
|
export const DataCubeEditorCodePanel = observer(() => {
|
|
134
|
-
const
|
|
135
|
-
const panel =
|
|
134
|
+
const repl = useREPLStore();
|
|
135
|
+
const panel = repl.dataCube.editor.sorts;
|
|
136
136
|
// const executeLambda = (): void => {
|
|
137
137
|
// // TODO: @akphi
|
|
138
138
|
// // flowResult(dataCubeState.executeLambda()).catch(
|
|
139
|
-
// // editorStore.
|
|
139
|
+
// // editorStore.application.logUnhandledError,
|
|
140
140
|
// // );
|
|
141
141
|
// };
|
|
142
142
|
useEffect(() => { }, [panel]); // TODO: @akphi - remove this dummy useEffect
|
|
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(
|
|
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(FormBadge_WIP, {})] })] }), _jsx("div", { className: "flex h-[calc(100%_-_24px)] w-full" })] })
|
|
144
144
|
// <div className="repl__content__query">
|
|
145
145
|
// <div className="repl__query">
|
|
146
146
|
// <div className="repl__query__editor">
|