@finos/legend-application-repl 0.0.20 → 0.0.21
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/application/LegendREPLGridClient.d.ts +0 -2
- package/lib/application/LegendREPLGridClient.d.ts.map +1 -1
- package/lib/application/LegendREPLGridClient.js +6 -33
- package/lib/application/LegendREPLGridClient.js.map +1 -1
- package/lib/components/AgGrid.d.ts +3 -2
- package/lib/components/AgGrid.d.ts.map +1 -1
- package/lib/components/AgGrid.js +1 -1
- package/lib/components/AgGrid.js.map +1 -1
- package/lib/components/LegendREPLGridClientApplication.d.ts +7 -0
- package/lib/components/LegendREPLGridClientApplication.d.ts.map +1 -1
- package/lib/components/LegendREPLGridClientApplication.js +12 -5
- package/lib/components/LegendREPLGridClientApplication.js.map +1 -1
- package/lib/components/REPLGridClient.d.ts +11 -2
- package/lib/components/REPLGridClient.d.ts.map +1 -1
- package/lib/components/REPLGridClient.js +107 -30
- package/lib/components/REPLGridClient.js.map +1 -1
- package/lib/components/dataCube/DataCubeGridEditor.d.ts +22 -0
- package/lib/components/dataCube/DataCubeGridEditor.d.ts.map +1 -0
- package/lib/components/dataCube/DataCubeGridEditor.js +37 -0
- package/lib/components/dataCube/DataCubeGridEditor.js.map +1 -0
- package/lib/components/dataCube/DataCubeQueryTextEditor.d.ts +22 -0
- package/lib/components/dataCube/DataCubeQueryTextEditor.d.ts.map +1 -0
- package/lib/components/{REPLQueryEditor.js → dataCube/DataCubeQueryTextEditor.js} +26 -44
- package/lib/components/dataCube/DataCubeQueryTextEditor.js.map +1 -0
- package/lib/components/grid/GridUtils.d.ts +4 -2
- package/lib/components/grid/GridUtils.d.ts.map +1 -1
- package/lib/components/grid/GridUtils.js +37 -2
- package/lib/components/grid/GridUtils.js.map +1 -1
- package/lib/components/grid/ServerSideDataSource.d.ts.map +1 -1
- package/lib/components/grid/ServerSideDataSource.js +8 -5
- package/lib/components/grid/ServerSideDataSource.js.map +1 -1
- package/lib/components/grid/TDSLambdaBuilder.d.ts.map +1 -1
- package/lib/components/grid/TDSLambdaBuilder.js +1 -1
- package/lib/components/grid/TDSLambdaBuilder.js.map +1 -1
- package/lib/components/grid/TDSQuery.d.ts +25 -0
- package/lib/components/grid/TDSQuery.d.ts.map +1 -0
- package/lib/components/grid/TDSQuery.js +32 -0
- package/lib/components/grid/TDSQuery.js.map +1 -0
- package/lib/components/grid/TDSRequest.d.ts +15 -2
- package/lib/components/grid/TDSRequest.d.ts.map +1 -1
- package/lib/components/grid/TDSRequest.js +52 -0
- package/lib/components/grid/TDSRequest.js.map +1 -1
- package/lib/grid.css +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +12 -12
- package/lib/repl.css +2 -2
- package/lib/repl.css.map +1 -1
- package/lib/server/REPLServerClient.d.ts +3 -0
- package/lib/server/REPLServerClient.d.ts.map +1 -1
- package/lib/server/REPLServerClient.js +2 -0
- package/lib/server/REPLServerClient.js.map +1 -1
- package/lib/stores/REPLGridClientStore.d.ts +2 -13
- package/lib/stores/REPLGridClientStore.d.ts.map +1 -1
- package/lib/stores/REPLGridClientStore.js +6 -144
- package/lib/stores/REPLGridClientStore.js.map +1 -1
- package/lib/stores/dataCube/DataCubeConfigState.d.ts +32 -0
- package/lib/stores/dataCube/DataCubeConfigState.d.ts.map +1 -0
- package/lib/stores/dataCube/DataCubeConfigState.js +62 -0
- package/lib/stores/dataCube/DataCubeConfigState.js.map +1 -0
- package/lib/stores/{REPLGridState.d.ts → dataCube/DataCubeGridState.d.ts} +11 -12
- package/lib/stores/dataCube/DataCubeGridState.d.ts.map +1 -0
- package/lib/stores/dataCube/DataCubeGridState.js +108 -0
- package/lib/stores/dataCube/DataCubeGridState.js.map +1 -0
- package/lib/stores/dataCube/DataCubePanelState.d.ts +23 -0
- package/lib/stores/dataCube/DataCubePanelState.d.ts.map +1 -0
- package/lib/stores/dataCube/DataCubePanelState.js +22 -0
- package/lib/stores/dataCube/DataCubePanelState.js.map +1 -0
- package/lib/stores/dataCube/DataCubePropertiesPanelState.d.ts +34 -0
- package/lib/stores/dataCube/DataCubePropertiesPanelState.d.ts.map +1 -0
- package/lib/stores/dataCube/DataCubePropertiesPanelState.js +57 -0
- package/lib/stores/dataCube/DataCubePropertiesPanelState.js.map +1 -0
- package/lib/{components/REPLQueryEditor.d.ts → stores/dataCube/DataCubeQueryEditorState.d.ts} +2 -5
- package/lib/stores/dataCube/DataCubeQueryEditorState.d.ts.map +1 -0
- package/lib/stores/dataCube/DataCubeQueryEditorState.js +49 -0
- package/lib/stores/dataCube/DataCubeQueryEditorState.js.map +1 -0
- package/lib/stores/dataCube/DataCubeQueryTextEditorState.d.ts +25 -0
- package/lib/stores/dataCube/DataCubeQueryTextEditorState.d.ts.map +1 -0
- package/lib/stores/dataCube/DataCubeQueryTextEditorState.js +35 -0
- package/lib/stores/dataCube/DataCubeQueryTextEditorState.js.map +1 -0
- package/lib/stores/dataCube/DataCubeState.d.ts +41 -0
- package/lib/stores/dataCube/DataCubeState.d.ts.map +1 -0
- package/lib/stores/dataCube/DataCubeState.js +208 -0
- package/lib/stores/dataCube/DataCubeState.js.map +1 -0
- package/lib/stores/dataCube/HPivotAndSortPanelState.d.ts +40 -0
- package/lib/stores/dataCube/HPivotAndSortPanelState.d.ts.map +1 -0
- package/lib/stores/dataCube/HPivotAndSortPanelState.js +130 -0
- package/lib/stores/dataCube/HPivotAndSortPanelState.js.map +1 -0
- package/package.json +18 -18
- package/src/application/LegendREPLGridClient.tsx +5 -55
- package/src/components/AgGrid.tsx +2 -6
- package/src/components/LegendREPLGridClientApplication.tsx +18 -1
- package/src/components/REPLGridClient.tsx +445 -111
- package/src/components/dataCube/DataCubeGridEditor.tsx +69 -0
- package/src/components/{REPLQueryEditor.tsx → dataCube/DataCubeQueryTextEditor.tsx} +87 -58
- package/src/components/grid/GridUtils.ts +47 -3
- package/src/components/grid/ServerSideDataSource.ts +17 -4
- package/src/components/grid/TDSLambdaBuilder.ts +5 -1
- package/src/components/grid/TDSQuery.ts +37 -0
- package/src/components/grid/TDSRequest.ts +80 -2
- package/src/server/REPLServerClient.ts +17 -0
- package/src/stores/REPLGridClientStore.ts +6 -248
- package/src/stores/dataCube/DataCubeConfigState.ts +79 -0
- package/src/stores/{REPLGridState.ts → dataCube/DataCubeGridState.ts} +65 -30
- package/src/stores/dataCube/DataCubePanelState.ts +28 -0
- package/src/stores/dataCube/DataCubePropertiesPanelState.ts +65 -0
- package/src/stores/dataCube/DataCubeQueryEditorState.ts +66 -0
- package/src/stores/dataCube/DataCubeQueryTextEditorState.ts +41 -0
- package/src/stores/dataCube/DataCubeState.ts +333 -0
- package/src/stores/dataCube/HPivotAndSortPanelState.ts +170 -0
- package/tsconfig.json +11 -2
- package/lib/components/REPLQueryEditor.d.ts.map +0 -1
- package/lib/components/REPLQueryEditor.js.map +0 -1
- package/lib/stores/REPLGridState.d.ts.map +0 -1
- package/lib/stores/REPLGridState.js +0 -86
- package/lib/stores/REPLGridState.js.map +0 -1
|
@@ -13,28 +13,27 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { type TDSRowDataType } from '
|
|
16
|
+
import { type TDSRowDataType } from '../../components/grid/GridUtils.js';
|
|
17
17
|
import type { ColDef } from '@ag-grid-community/core';
|
|
18
18
|
import type { V1_Lambda, TDSExecutionResult } from '@finos/legend-graph';
|
|
19
|
-
import {
|
|
20
|
-
|
|
19
|
+
import { type TDSRequest } from '../../components/grid/TDSRequest.js';
|
|
20
|
+
import type { DataCubeState } from './DataCubeState.js';
|
|
21
|
+
export declare class DataCubeGridState {
|
|
22
|
+
readonly dataCubeState: DataCubeState;
|
|
21
23
|
initialResult?: TDSExecutionResult | undefined;
|
|
22
24
|
currentResult?: TDSExecutionResult | undefined;
|
|
23
25
|
columns?: string[] | undefined;
|
|
24
|
-
queryEditorState: QueryEditorState;
|
|
25
|
-
currentSubQuery?: string | undefined;
|
|
26
|
-
licenseKey?: string | undefined;
|
|
27
26
|
initialQueryLambda?: V1_Lambda | undefined;
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
currentQueryTDSRequest?: TDSRequest | undefined;
|
|
28
|
+
lastQueryTDSRequest?: TDSRequest | undefined;
|
|
29
|
+
constructor(dataCubeState: DataCubeState);
|
|
30
|
+
setLastQueryTDSRequest(val: TDSRequest | undefined): void;
|
|
31
|
+
setCurrentQueryTDSRequest(val: TDSRequest | undefined): void;
|
|
30
32
|
setInitialQueryLambda(val: V1_Lambda | undefined): void;
|
|
31
|
-
setCurrentSubQuery(val: string | undefined): void;
|
|
32
33
|
setInitialResult(val: TDSExecutionResult | undefined): void;
|
|
33
34
|
setCurrentResult(val: TDSExecutionResult | undefined): void;
|
|
34
35
|
setColumns(val: string[]): void;
|
|
35
|
-
setLicenseKey(val: string | undefined): void;
|
|
36
|
-
setIsPaginationEnabled(val: boolean): void;
|
|
37
36
|
get rowData(): TDSRowDataType[];
|
|
38
37
|
get columnDefs(): ColDef[];
|
|
39
38
|
}
|
|
40
|
-
//# sourceMappingURL=
|
|
39
|
+
//# sourceMappingURL=DataCubeGridState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeGridState.d.ts","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubeGridState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAEL,KAAK,UAAU,EAChB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAMxD,qBAAa,iBAAiB;IAC5B,QAAQ,CAAC,aAAa,EAAG,aAAa,CAAC;IAEvC,aAAa,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC/C,aAAa,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC/C,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/B,kBAAkB,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAC3C,sBAAsB,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAChD,mBAAmB,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;gBAEjC,aAAa,EAAE,aAAa;IAqBxC,sBAAsB,CAAC,GAAG,EAAE,UAAU,GAAG,SAAS,GAAG,IAAI;IAIzD,yBAAyB,CAAC,GAAG,EAAE,UAAU,GAAG,SAAS,GAAG,IAAI;IAI5D,qBAAqB,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;IAIvD,gBAAgB,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAI3D,gBAAgB,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAI3D,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI;IAI/B,IAAI,OAAO,IAAI,cAAc,EAAE,CAE9B;IAED,IAAI,UAAU,IAAI,MAAM,EAAE,CA6CzB;CACF"}
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
17
|
+
import { getAggregationTDSColumnCustomizations, getFilterModeltype, getTDSColumnCustomizations, getTDSRowData, } from '../../components/grid/GridUtils.js';
|
|
18
|
+
import { action, computed, makeObservable, observable } from 'mobx';
|
|
19
|
+
import { TDS_FILTER_GROUP, } from '../../components/grid/TDSRequest.js';
|
|
20
|
+
export class DataCubeGridState {
|
|
21
|
+
dataCubeState;
|
|
22
|
+
initialResult;
|
|
23
|
+
currentResult;
|
|
24
|
+
columns;
|
|
25
|
+
initialQueryLambda;
|
|
26
|
+
currentQueryTDSRequest;
|
|
27
|
+
lastQueryTDSRequest;
|
|
28
|
+
constructor(dataCubeState) {
|
|
29
|
+
makeObservable(this, {
|
|
30
|
+
initialResult: observable,
|
|
31
|
+
initialQueryLambda: observable,
|
|
32
|
+
currentResult: observable,
|
|
33
|
+
columns: observable,
|
|
34
|
+
currentQueryTDSRequest: observable,
|
|
35
|
+
lastQueryTDSRequest: observable,
|
|
36
|
+
setInitialResult: action,
|
|
37
|
+
setColumns: action,
|
|
38
|
+
setInitialQueryLambda: action,
|
|
39
|
+
setCurrentResult: action,
|
|
40
|
+
setCurrentQueryTDSRequest: action,
|
|
41
|
+
setLastQueryTDSRequest: action,
|
|
42
|
+
rowData: computed,
|
|
43
|
+
columnDefs: computed,
|
|
44
|
+
});
|
|
45
|
+
this.dataCubeState = dataCubeState;
|
|
46
|
+
}
|
|
47
|
+
setLastQueryTDSRequest(val) {
|
|
48
|
+
this.lastQueryTDSRequest = val;
|
|
49
|
+
}
|
|
50
|
+
setCurrentQueryTDSRequest(val) {
|
|
51
|
+
this.currentQueryTDSRequest = val;
|
|
52
|
+
}
|
|
53
|
+
setInitialQueryLambda(val) {
|
|
54
|
+
this.initialQueryLambda = val;
|
|
55
|
+
}
|
|
56
|
+
setInitialResult(val) {
|
|
57
|
+
this.initialResult = val;
|
|
58
|
+
}
|
|
59
|
+
setCurrentResult(val) {
|
|
60
|
+
this.currentResult = val;
|
|
61
|
+
}
|
|
62
|
+
setColumns(val) {
|
|
63
|
+
this.columns = val;
|
|
64
|
+
}
|
|
65
|
+
get rowData() {
|
|
66
|
+
return this.initialResult ? getTDSRowData(this.initialResult.result) : [];
|
|
67
|
+
}
|
|
68
|
+
get columnDefs() {
|
|
69
|
+
const filterModel = {};
|
|
70
|
+
this.currentQueryTDSRequest?.filter.forEach((filter) => {
|
|
71
|
+
if (filter.conditions.length === 1) {
|
|
72
|
+
filterModel[filter.column] = {
|
|
73
|
+
filter: filter.conditions[0]?.value,
|
|
74
|
+
filterType: getFilterModeltype(filter.columnType),
|
|
75
|
+
type: filter.conditions[0]?.operation,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
filterModel[filter.column] = {
|
|
80
|
+
filterType: getFilterModeltype(filter.columnType),
|
|
81
|
+
operator: filter.groupOperation === TDS_FILTER_GROUP.AND ? 'AND' : 'OR',
|
|
82
|
+
condition1: {
|
|
83
|
+
filter: filter.conditions[0]?.value,
|
|
84
|
+
filterType: getFilterModeltype(filter.columnType),
|
|
85
|
+
type: filter.conditions[0]?.operation,
|
|
86
|
+
},
|
|
87
|
+
condition2: {
|
|
88
|
+
filter: filter.conditions[1]?.value,
|
|
89
|
+
filterType: getFilterModeltype(filter.columnType),
|
|
90
|
+
type: filter.conditions[1]?.operation,
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
if (this.currentQueryTDSRequest) {
|
|
96
|
+
this.dataCubeState.configState.gridApi?.setFilterModel(filterModel);
|
|
97
|
+
}
|
|
98
|
+
return this.columns
|
|
99
|
+
? this.columns.map((c) => ({
|
|
100
|
+
field: c,
|
|
101
|
+
headerName: c,
|
|
102
|
+
...getAggregationTDSColumnCustomizations(guaranteeNonNullable(this.initialResult), c),
|
|
103
|
+
...getTDSColumnCustomizations(guaranteeNonNullable(this.initialResult), c, this.currentQueryTDSRequest),
|
|
104
|
+
}))
|
|
105
|
+
: [];
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=DataCubeGridState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeGridState.js","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubeGridState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,qCAAqC,EACrC,kBAAkB,EAClB,0BAA0B,EAC1B,aAAa,GAEd,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGpE,OAAO,EACL,gBAAgB,GAEjB,MAAM,qCAAqC,CAAC;AAO7C,MAAM,OAAO,iBAAiB;IACnB,aAAa,CAAiB;IAEvC,aAAa,CAAkC;IAC/C,aAAa,CAAkC;IAC/C,OAAO,CAAwB;IAC/B,kBAAkB,CAAyB;IAC3C,sBAAsB,CAA0B;IAChD,mBAAmB,CAA0B;IAE7C,YAAY,aAA4B;QACtC,cAAc,CAAC,IAAI,EAAE;YACnB,aAAa,EAAE,UAAU;YACzB,kBAAkB,EAAE,UAAU;YAC9B,aAAa,EAAE,UAAU;YACzB,OAAO,EAAE,UAAU;YACnB,sBAAsB,EAAE,UAAU;YAClC,mBAAmB,EAAE,UAAU;YAC/B,gBAAgB,EAAE,MAAM;YACxB,UAAU,EAAE,MAAM;YAClB,qBAAqB,EAAE,MAAM;YAC7B,gBAAgB,EAAE,MAAM;YACxB,yBAAyB,EAAE,MAAM;YACjC,sBAAsB,EAAE,MAAM;YAC9B,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;SACrB,CAAC,CAAC;QAEH,IAAI,CA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
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
|
+
import type { DataCubeState } from './DataCubeState.js';
|
|
17
|
+
export declare abstract class DataCubePanelState {
|
|
18
|
+
readonly dataCubeState: DataCubeState;
|
|
19
|
+
constructor(dataCubeState: DataCubeState);
|
|
20
|
+
abstract initialize(): void;
|
|
21
|
+
abstract applyChanges(): void;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=DataCubePanelState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubePanelState.d.ts","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubePanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,8BAAsB,kBAAkB;IACtC,QAAQ,CAAC,aAAa,EAAG,aAAa,CAAC;gBAE3B,aAAa,EAAE,aAAa;IAIxC,QAAQ,CAAC,UAAU,IAAI,IAAI;IAC3B,QAAQ,CAAC,YAAY,IAAI,IAAI;CAC9B"}
|
|
@@ -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 class DataCubePanelState {
|
|
17
|
+
dataCubeState;
|
|
18
|
+
constructor(dataCubeState) {
|
|
19
|
+
this.dataCubeState = dataCubeState;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=DataCubePanelState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubePanelState.js","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubePanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,OAAgB,kBAAkB;IAC7B,aAAa,CAAiB;IAEvC,YAAY,aAA4B;QACtC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;CAIF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
import type { DataCubeState } from './DataCubeState.js';
|
|
17
|
+
import { HPivotAndSortPanelState } from './HPivotAndSortPanelState.js';
|
|
18
|
+
export declare enum PIVOT_PANEL_TABS {
|
|
19
|
+
COLUMNS_AND_PIVOTS = "Colums/Pivots",
|
|
20
|
+
HPIVOTS_AND_SORTS = "HPivots/Sorts",
|
|
21
|
+
GENERAL_PROPERTIES = "General Properties",
|
|
22
|
+
COLUMN_PROPERTIES = "Column Properties",
|
|
23
|
+
DEVELOPER_OPTIONS = "Developer",
|
|
24
|
+
PIVOT_LAYOUT = "Pivot Layout"
|
|
25
|
+
}
|
|
26
|
+
export declare class DataCubePropertiesPanelState {
|
|
27
|
+
readonly dataCubeState: DataCubeState;
|
|
28
|
+
selectedPivotPanelTab: PIVOT_PANEL_TABS;
|
|
29
|
+
hpivotAndSortPanelState: HPivotAndSortPanelState;
|
|
30
|
+
constructor(dataCubeState: DataCubeState);
|
|
31
|
+
setSelectedPivotPanelTab(val: PIVOT_PANEL_TABS): void;
|
|
32
|
+
applyChanges(): void;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=DataCubePropertiesPanelState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubePropertiesPanelState.d.ts","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubePropertiesPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,oBAAY,gBAAgB;IAC1B,kBAAkB,kBAAkB;IACpC,iBAAiB,kBAAkB;IACnC,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IACvC,iBAAiB,cAAc;IAC/B,YAAY,iBAAiB;CAC9B;AAED,qBAAa,4BAA4B;IACvC,QAAQ,CAAC,aAAa,EAAG,aAAa,CAAC;IACvC,qBAAqB,mBAAuC;IAC5D,uBAAuB,EAAG,uBAAuB,CAAC;gBAEtC,aAAa,EAAE,aAAa;IAcxC,wBAAwB,CAAC,GAAG,EAAE,gBAAgB,GAAG,IAAI;IAarD,YAAY,IAAI,IAAI;CAGrB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
import { action, makeObservable, observable } from 'mobx';
|
|
17
|
+
import { HPivotAndSortPanelState } from './HPivotAndSortPanelState.js';
|
|
18
|
+
export var PIVOT_PANEL_TABS;
|
|
19
|
+
(function (PIVOT_PANEL_TABS) {
|
|
20
|
+
PIVOT_PANEL_TABS["COLUMNS_AND_PIVOTS"] = "Colums/Pivots";
|
|
21
|
+
PIVOT_PANEL_TABS["HPIVOTS_AND_SORTS"] = "HPivots/Sorts";
|
|
22
|
+
PIVOT_PANEL_TABS["GENERAL_PROPERTIES"] = "General Properties";
|
|
23
|
+
PIVOT_PANEL_TABS["COLUMN_PROPERTIES"] = "Column Properties";
|
|
24
|
+
PIVOT_PANEL_TABS["DEVELOPER_OPTIONS"] = "Developer";
|
|
25
|
+
PIVOT_PANEL_TABS["PIVOT_LAYOUT"] = "Pivot Layout";
|
|
26
|
+
})(PIVOT_PANEL_TABS || (PIVOT_PANEL_TABS = {}));
|
|
27
|
+
export class DataCubePropertiesPanelState {
|
|
28
|
+
dataCubeState;
|
|
29
|
+
selectedPivotPanelTab = PIVOT_PANEL_TABS.COLUMNS_AND_PIVOTS;
|
|
30
|
+
hpivotAndSortPanelState;
|
|
31
|
+
constructor(dataCubeState) {
|
|
32
|
+
makeObservable(this, {
|
|
33
|
+
selectedPivotPanelTab: observable,
|
|
34
|
+
hpivotAndSortPanelState: observable,
|
|
35
|
+
setSelectedPivotPanelTab: action,
|
|
36
|
+
applyChanges: action,
|
|
37
|
+
});
|
|
38
|
+
this.dataCubeState = dataCubeState;
|
|
39
|
+
this.hpivotAndSortPanelState = new HPivotAndSortPanelState(this.dataCubeState);
|
|
40
|
+
}
|
|
41
|
+
setSelectedPivotPanelTab(val) {
|
|
42
|
+
this.selectedPivotPanelTab = val;
|
|
43
|
+
switch (val) {
|
|
44
|
+
case PIVOT_PANEL_TABS.HPIVOTS_AND_SORTS: {
|
|
45
|
+
this.hpivotAndSortPanelState.initialize();
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
default: {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
applyChanges() {
|
|
54
|
+
this.hpivotAndSortPanelState.applyChanges();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=DataCubePropertiesPanelState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubePropertiesPanelState.js","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubePropertiesPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,MAAM,CAAN,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,wDAAoC,CAAA;IACpC,uDAAmC,CAAA;IACnC,6DAAyC,CAAA;IACzC,2DAAuC,CAAA;IACvC,mDAA+B,CAAA;IAC/B,iDAA6B,CAAA;AAC/B,CAAC,EAPW,gBAAgB,KAAhB,gBAAgB,QAO3B;AAED,MAAM,OAAO,4BAA4B;IAC9B,aAAa,CAAiB;IACvC,qBAAqB,GAAG,gBAAgB,CAAC,kBAAkB,CAAC;IAC5D,uBAAuB,CAA2B;IAElD,YAAY,aAA4B;QACtC,cAAc,CAAC,IAAI,EAAE;YACnB,qBAAqB,EAAE,UAAU;YACjC,uBAAuB,EAAE,UAAU;YACnC,wBAAwB,EAAE,MAAM;YAChC,YAAY,EAAE,MAAM;SACrB,CAAC,CAAC;QAEH,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,uBAAuB,GAAG,IAAI,uBAAuB,CACxD,IAAI,CAAC,aAAa,CACnB,CAAC;IACJ,CAAC;IAED,wBAAwB,CAAC,GAAqB;QAC5C,IAAI,CAAC,qBAAqB,GAAG,GAAG,CAAC;QACjC,QAAQ,GAAG,EAAE,CAAC;YACZ,KAAK,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAC;gBACxC,IAAI,CAAC,uBAAuB,CAAC,UAAU,EAAE,CAAC;gBAC1C,MAAM;YACR,CAAC;YACD,OAAO,CAAC,CAAC,CAAC;gBACR,OAAO;YACT,CAAC;QACH,CAAC;IACH,CAAC;IAED,YAAY;QACV,IAAI,CAAC,uBAAuB,CAAC,YAAY,EAAE,CAAC;IAC9C,CAAC;CACF"}
|
package/lib/{components/REPLQueryEditor.d.ts → stores/dataCube/DataCubeQueryEditorState.d.ts}
RENAMED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { SourceInformation, type ParserError } from '@finos/legend-graph';
|
|
17
|
-
export declare class
|
|
17
|
+
export declare class DataCubeQueryEditorState {
|
|
18
18
|
uuid: string;
|
|
19
19
|
query: string;
|
|
20
20
|
parserError?: ParserError | undefined;
|
|
@@ -23,7 +23,4 @@ export declare class QueryEditorState {
|
|
|
23
23
|
setParserError(parserError: ParserError | undefined): void;
|
|
24
24
|
processSourceInformation(sourceInformation: SourceInformation): SourceInformation;
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
displayName: string;
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=REPLQueryEditor.d.ts.map
|
|
26
|
+
//# sourceMappingURL=DataCubeQueryEditorState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeQueryEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubeQueryEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAI1E,qBAAa,wBAAwB;IACnC,IAAI,SAAU;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;gBAE1B,KAAK,EAAE,MAAM;IAWzB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI3B,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI;IAU1D,wBAAwB,CACtB,iBAAiB,EAAE,iBAAiB,GACnC,iBAAiB;CAarB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
import { SourceInformation } from '@finos/legend-graph';
|
|
17
|
+
import { uuid } from '@finos/legend-shared';
|
|
18
|
+
import { action, makeObservable, observable } from 'mobx';
|
|
19
|
+
export class DataCubeQueryEditorState {
|
|
20
|
+
uuid = uuid();
|
|
21
|
+
query;
|
|
22
|
+
parserError;
|
|
23
|
+
constructor(query) {
|
|
24
|
+
makeObservable(this, {
|
|
25
|
+
query: observable,
|
|
26
|
+
parserError: observable,
|
|
27
|
+
setQuery: action,
|
|
28
|
+
setParserError: action,
|
|
29
|
+
});
|
|
30
|
+
this.query = query;
|
|
31
|
+
}
|
|
32
|
+
setQuery(val) {
|
|
33
|
+
this.query = val;
|
|
34
|
+
}
|
|
35
|
+
setParserError(parserError) {
|
|
36
|
+
// account for the lambda prefix offset in source information
|
|
37
|
+
if (parserError?.sourceInformation) {
|
|
38
|
+
parserError.sourceInformation = this.processSourceInformation(parserError.sourceInformation);
|
|
39
|
+
}
|
|
40
|
+
this.parserError = parserError;
|
|
41
|
+
}
|
|
42
|
+
processSourceInformation(sourceInformation) {
|
|
43
|
+
const { sourceId, startLine, startColumn, endLine, endColumn } = sourceInformation;
|
|
44
|
+
const lineOffset = 0;
|
|
45
|
+
const columnOffset = 0;
|
|
46
|
+
return new SourceInformation(sourceId, startLine + lineOffset, startColumn - (startLine === 1 ? columnOffset : 0), endLine + lineOffset, endColumn - (endLine === 1 ? columnOffset : 0));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=DataCubeQueryEditorState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeQueryEditorState.js","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubeQueryEditorState.ts"],"names":[],"mappings":"AAAA;;;;;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,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAC/C,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
import type { DataCubeState } from './DataCubeState.js';
|
|
17
|
+
import { DataCubeQueryEditorState } from './DataCubeQueryEditorState.js';
|
|
18
|
+
export declare class DataCubeQueryTextEditorState {
|
|
19
|
+
readonly dataCubeState: DataCubeState;
|
|
20
|
+
queryEditorState: DataCubeQueryEditorState;
|
|
21
|
+
currentSubQuery?: string | undefined;
|
|
22
|
+
constructor(dataCubeState: DataCubeState);
|
|
23
|
+
setCurrentSubQuery(val: string | undefined): void;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=DataCubeQueryTextEditorState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeQueryTextEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubeQueryTextEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,qBAAa,4BAA4B;IACvC,QAAQ,CAAC,aAAa,EAAG,aAAa,CAAC;IAEvC,gBAAgB,EAAG,wBAAwB,CAAC;IAC5C,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAEzB,aAAa,EAAE,aAAa;IAWxC,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;CAGlD"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
import { action, makeObservable, observable } from 'mobx';
|
|
17
|
+
import { DataCubeQueryEditorState } from './DataCubeQueryEditorState.js';
|
|
18
|
+
export class DataCubeQueryTextEditorState {
|
|
19
|
+
dataCubeState;
|
|
20
|
+
queryEditorState;
|
|
21
|
+
currentSubQuery;
|
|
22
|
+
constructor(dataCubeState) {
|
|
23
|
+
makeObservable(this, {
|
|
24
|
+
currentSubQuery: observable,
|
|
25
|
+
queryEditorState: observable,
|
|
26
|
+
setCurrentSubQuery: action,
|
|
27
|
+
});
|
|
28
|
+
this.dataCubeState = dataCubeState;
|
|
29
|
+
this.queryEditorState = new DataCubeQueryEditorState('');
|
|
30
|
+
}
|
|
31
|
+
setCurrentSubQuery(val) {
|
|
32
|
+
this.currentSubQuery = val;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=DataCubeQueryTextEditorState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeQueryTextEditorState.js","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubeQueryTextEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,MAAM,OAAO,4BAA4B;IAC9B,aAAa,CAAiB;IAEvC,gBAAgB,CAA4B;IAC5C,eAAe,CAAsB;IAErC,YAAY,aAA4B;QACtC,cAAc,CAAC,IAAI,EAAE;YACnB,eAAe,EAAE,UAAU;YAC3B,gBAAgB,EAAE,UAAU;YAC5B,kBAAkB,EAAE,MAAM;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,gBAAgB,GAAG,IAAI,wBAAwB,CAAC,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,kBAAkB,CAAC,GAAuB;QACxC,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;IAC7B,CAAC;CACF"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
import type { REPLGridClientStore } from '../REPLGridClientStore.js';
|
|
17
|
+
import { DataCubeGridState } from './DataCubeGridState.js';
|
|
18
|
+
import { DataCubeQueryTextEditorState } from './DataCubeQueryTextEditorState.js';
|
|
19
|
+
import { DataCubeConfigState } from './DataCubeConfigState.js';
|
|
20
|
+
import { DataCubePropertiesPanelState } from './DataCubePropertiesPanelState.js';
|
|
21
|
+
import { ActionState, type GeneratorFn } from '@finos/legend-shared';
|
|
22
|
+
import { languages as monacoLanguagesAPI, type IPosition, type editor as monacoEditorAPI } from 'monaco-editor';
|
|
23
|
+
import { TDSRequest } from '../../components/grid/TDSRequest.js';
|
|
24
|
+
export declare class DataCubeState {
|
|
25
|
+
readonly editorStore: REPLGridClientStore;
|
|
26
|
+
gridState: DataCubeGridState;
|
|
27
|
+
queryTextEditorState: DataCubeQueryTextEditorState;
|
|
28
|
+
configState: DataCubeConfigState;
|
|
29
|
+
propertiesPanelState: DataCubePropertiesPanelState;
|
|
30
|
+
executeAction: ActionState;
|
|
31
|
+
constructor(editorStore: REPLGridClientStore);
|
|
32
|
+
getREPLGridServerResult(tdsRequest: TDSRequest): GeneratorFn<void>;
|
|
33
|
+
getTypeaheadResults(position: IPosition, model: monacoEditorAPI.ITextModel): Promise<monacoLanguagesAPI.CompletionItem[]>;
|
|
34
|
+
executeLambda(): GeneratorFn<void>;
|
|
35
|
+
parseQuery(): GeneratorFn<void>;
|
|
36
|
+
saveQuery(): GeneratorFn<void>;
|
|
37
|
+
getInitialQueryLambda(queryId?: string): GeneratorFn<void>;
|
|
38
|
+
getInitialREPLGridServerResult(queryId?: string): GeneratorFn<void>;
|
|
39
|
+
getLicenseKey(): GeneratorFn<void>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=DataCubeState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeState.d.ts","sour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