@finos/legend-application-repl 0.0.56 → 0.0.57

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.
Files changed (143) hide show
  1. package/lib/components/dataCube/editor/DataCubeEditor.d.ts.map +1 -1
  2. package/lib/components/dataCube/editor/DataCubeEditor.js +2 -4
  3. package/lib/components/dataCube/editor/DataCubeEditor.js.map +1 -1
  4. package/lib/components/dataCube/editor/DataCubeEditorColumnsPanel.js +1 -1
  5. package/lib/components/dataCube/editor/DataCubeEditorColumnsPanel.js.map +1 -1
  6. package/lib/components/dataCube/editor/DataCubeEditorHorizontalPivotsPanel.d.ts.map +1 -1
  7. package/lib/components/dataCube/editor/DataCubeEditorHorizontalPivotsPanel.js +5 -1
  8. package/lib/components/dataCube/editor/DataCubeEditorHorizontalPivotsPanel.js.map +1 -1
  9. package/lib/components/dataCube/extend/DataCubeColumnEditor.d.ts.map +1 -1
  10. package/lib/components/dataCube/extend/DataCubeColumnEditor.js +2 -1
  11. package/lib/components/dataCube/extend/DataCubeColumnEditor.js.map +1 -1
  12. package/lib/components/dataCube/grid/DataCubeGrid.js +2 -2
  13. package/lib/components/dataCube/grid/DataCubeGrid.js.map +1 -1
  14. package/lib/components/repl/Form.js +1 -1
  15. package/lib/components/repl/Form.js.map +1 -1
  16. package/lib/index.css +2 -2
  17. package/lib/index.css.map +1 -1
  18. package/lib/package.json +1 -1
  19. package/lib/stores/dataCube/DataCubeEngine.d.ts +1 -1
  20. package/lib/stores/dataCube/DataCubeEngine.d.ts.map +1 -1
  21. package/lib/stores/dataCube/DataCubeEngine.js.map +1 -1
  22. package/lib/stores/dataCube/core/DataCubeConfiguration.d.ts +3 -4
  23. package/lib/stores/dataCube/core/DataCubeConfiguration.d.ts.map +1 -1
  24. package/lib/stores/dataCube/core/DataCubeConfiguration.js +6 -8
  25. package/lib/stores/dataCube/core/DataCubeConfiguration.js.map +1 -1
  26. package/lib/stores/dataCube/core/DataCubeQueryBuilder.d.ts.map +1 -1
  27. package/lib/stores/dataCube/core/DataCubeQueryBuilder.js +26 -13
  28. package/lib/stores/dataCube/core/DataCubeQueryBuilder.js.map +1 -1
  29. package/lib/stores/dataCube/core/DataCubeQueryBuilderUtils.d.ts +4 -2
  30. package/lib/stores/dataCube/core/DataCubeQueryBuilderUtils.d.ts.map +1 -1
  31. package/lib/stores/dataCube/core/DataCubeQueryBuilderUtils.js +83 -13
  32. package/lib/stores/dataCube/core/DataCubeQueryBuilderUtils.js.map +1 -1
  33. package/lib/stores/dataCube/core/DataCubeQueryEngine.d.ts +6 -7
  34. package/lib/stores/dataCube/core/DataCubeQueryEngine.d.ts.map +1 -1
  35. package/lib/stores/dataCube/core/DataCubeQueryEngine.js +4 -7
  36. package/lib/stores/dataCube/core/DataCubeQueryEngine.js.map +1 -1
  37. package/lib/stores/dataCube/core/DataCubeQuerySnapshot.d.ts +1 -10
  38. package/lib/stores/dataCube/core/DataCubeQuerySnapshot.d.ts.map +1 -1
  39. package/lib/stores/dataCube/core/DataCubeQuerySnapshot.js +23 -17
  40. package/lib/stores/dataCube/core/DataCubeQuerySnapshot.js.map +1 -1
  41. package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.d.ts.map +1 -1
  42. package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.js +67 -73
  43. package/lib/stores/dataCube/core/DataCubeQuerySnapshotBuilder.js.map +1 -1
  44. package/lib/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.d.ts +1 -0
  45. package/lib/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.d.ts.map +1 -1
  46. package/lib/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.js +21 -5
  47. package/lib/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.js.map +1 -1
  48. package/lib/stores/dataCube/editor/DataCubeEditorColumnsPanelState.d.ts +9 -1
  49. package/lib/stores/dataCube/editor/DataCubeEditorColumnsPanelState.d.ts.map +1 -1
  50. package/lib/stores/dataCube/editor/DataCubeEditorColumnsPanelState.js +33 -10
  51. package/lib/stores/dataCube/editor/DataCubeEditorColumnsPanelState.js.map +1 -1
  52. package/lib/stores/dataCube/editor/DataCubeEditorHorizontalPivotsPanelState.d.ts +7 -1
  53. package/lib/stores/dataCube/editor/DataCubeEditorHorizontalPivotsPanelState.d.ts.map +1 -1
  54. package/lib/stores/dataCube/editor/DataCubeEditorHorizontalPivotsPanelState.js +41 -3
  55. package/lib/stores/dataCube/editor/DataCubeEditorHorizontalPivotsPanelState.js.map +1 -1
  56. package/lib/stores/dataCube/editor/DataCubeEditorMutableConfiguration.d.ts +1 -2
  57. package/lib/stores/dataCube/editor/DataCubeEditorMutableConfiguration.d.ts.map +1 -1
  58. package/lib/stores/dataCube/editor/DataCubeEditorMutableConfiguration.js +4 -9
  59. package/lib/stores/dataCube/editor/DataCubeEditorMutableConfiguration.js.map +1 -1
  60. package/lib/stores/dataCube/editor/DataCubeEditorSortsPanelState.d.ts +1 -0
  61. package/lib/stores/dataCube/editor/DataCubeEditorSortsPanelState.d.ts.map +1 -1
  62. package/lib/stores/dataCube/editor/DataCubeEditorSortsPanelState.js +7 -2
  63. package/lib/stores/dataCube/editor/DataCubeEditorSortsPanelState.js.map +1 -1
  64. package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts +2 -5
  65. package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts.map +1 -1
  66. package/lib/stores/dataCube/editor/DataCubeEditorState.js +39 -21
  67. package/lib/stores/dataCube/editor/DataCubeEditorState.js.map +1 -1
  68. package/lib/stores/dataCube/editor/DataCubeEditorVerticalPivotsPanelState.d.ts +1 -0
  69. package/lib/stores/dataCube/editor/DataCubeEditorVerticalPivotsPanelState.d.ts.map +1 -1
  70. package/lib/stores/dataCube/editor/DataCubeEditorVerticalPivotsPanelState.js +6 -1
  71. package/lib/stores/dataCube/editor/DataCubeEditorVerticalPivotsPanelState.js.map +1 -1
  72. package/lib/stores/dataCube/extend/DataCubeColumnEditorState.d.ts.map +1 -1
  73. package/lib/stores/dataCube/extend/DataCubeColumnEditorState.js +1 -1
  74. package/lib/stores/dataCube/extend/DataCubeColumnEditorState.js.map +1 -1
  75. package/lib/stores/dataCube/extend/DataCubeExtendManagerState.d.ts +1 -1
  76. package/lib/stores/dataCube/extend/DataCubeExtendManagerState.d.ts.map +1 -1
  77. package/lib/stores/dataCube/extend/DataCubeExtendManagerState.js +8 -2
  78. package/lib/stores/dataCube/extend/DataCubeExtendManagerState.js.map +1 -1
  79. package/lib/stores/dataCube/grid/DataCubeGridClientEngine.d.ts +12 -3
  80. package/lib/stores/dataCube/grid/DataCubeGridClientEngine.d.ts.map +1 -1
  81. package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js +94 -9
  82. package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js.map +1 -1
  83. package/lib/stores/dataCube/grid/DataCubeGridConfigurationBuilder.d.ts +193 -1
  84. package/lib/stores/dataCube/grid/DataCubeGridConfigurationBuilder.d.ts.map +1 -1
  85. package/lib/stores/dataCube/grid/DataCubeGridConfigurationBuilder.js +176 -82
  86. package/lib/stores/dataCube/grid/DataCubeGridConfigurationBuilder.js.map +1 -1
  87. package/lib/stores/dataCube/grid/DataCubeGridControllerState.d.ts +8 -0
  88. package/lib/stores/dataCube/grid/DataCubeGridControllerState.d.ts.map +1 -1
  89. package/lib/stores/dataCube/grid/DataCubeGridControllerState.js +69 -5
  90. package/lib/stores/dataCube/grid/DataCubeGridControllerState.js.map +1 -1
  91. package/lib/stores/dataCube/grid/DataCubeGridMenuBuilder.d.ts.map +1 -1
  92. package/lib/stores/dataCube/grid/DataCubeGridMenuBuilder.js +69 -20
  93. package/lib/stores/dataCube/grid/DataCubeGridMenuBuilder.js.map +1 -1
  94. package/lib/stores/dataCube/grid/DataCubeGridQueryBuilder.d.ts.map +1 -1
  95. package/lib/stores/dataCube/grid/DataCubeGridQueryBuilder.js +0 -2
  96. package/lib/stores/dataCube/grid/DataCubeGridQueryBuilder.js.map +1 -1
  97. package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.js +2 -2
  98. package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.js.map +1 -1
  99. package/lib/stores/dataCube/grid/DataCubeGridState.d.ts +2 -11
  100. package/lib/stores/dataCube/grid/DataCubeGridState.d.ts.map +1 -1
  101. package/lib/stores/dataCube/grid/DataCubeGridState.js +15 -36
  102. package/lib/stores/dataCube/grid/DataCubeGridState.js.map +1 -1
  103. package/package.json +3 -3
  104. package/src/components/dataCube/editor/DataCubeEditor.tsx +2 -7
  105. package/src/components/dataCube/editor/DataCubeEditorColumnsPanel.tsx +1 -1
  106. package/src/components/dataCube/editor/DataCubeEditorHorizontalPivotsPanel.tsx +19 -1
  107. package/src/components/dataCube/extend/DataCubeColumnEditor.tsx +2 -1
  108. package/src/components/dataCube/grid/DataCubeGrid.tsx +2 -2
  109. package/src/components/repl/Form.tsx +1 -1
  110. package/src/stores/dataCube/DataCubeEngine.ts +1 -1
  111. package/src/stores/dataCube/core/DataCubeConfiguration.ts +7 -9
  112. package/src/stores/dataCube/core/DataCubeQueryBuilder.ts +52 -13
  113. package/src/stores/dataCube/core/DataCubeQueryBuilderUtils.ts +142 -18
  114. package/src/stores/dataCube/core/DataCubeQueryEngine.ts +9 -13
  115. package/src/stores/dataCube/core/DataCubeQuerySnapshot.ts +24 -21
  116. package/src/stores/dataCube/core/DataCubeQuerySnapshotBuilder.ts +122 -113
  117. package/src/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.ts +33 -12
  118. package/src/stores/dataCube/editor/DataCubeEditorColumnsPanelState.ts +34 -28
  119. package/src/stores/dataCube/editor/DataCubeEditorHorizontalPivotsPanelState.ts +64 -5
  120. package/src/stores/dataCube/editor/DataCubeEditorMutableConfiguration.ts +4 -11
  121. package/src/stores/dataCube/editor/DataCubeEditorSortsPanelState.ts +17 -5
  122. package/src/stores/dataCube/editor/DataCubeEditorState.tsx +45 -22
  123. package/src/stores/dataCube/editor/DataCubeEditorVerticalPivotsPanelState.ts +12 -0
  124. package/src/stores/dataCube/extend/DataCubeColumnEditorState.tsx +1 -0
  125. package/src/stores/dataCube/extend/DataCubeExtendManagerState.tsx +9 -1
  126. package/src/stores/dataCube/grid/DataCubeGridClientEngine.ts +150 -10
  127. package/src/stores/dataCube/grid/DataCubeGridConfigurationBuilder.tsx +217 -81
  128. package/src/stores/dataCube/grid/DataCubeGridControllerState.ts +97 -4
  129. package/src/stores/dataCube/grid/DataCubeGridMenuBuilder.tsx +91 -24
  130. package/src/stores/dataCube/grid/DataCubeGridQueryBuilder.ts +0 -3
  131. package/src/stores/dataCube/grid/DataCubeGridQuerySnapshotBuilder.ts +2 -2
  132. package/src/stores/dataCube/grid/DataCubeGridState.ts +23 -45
  133. package/tsconfig.json +0 -2
  134. package/lib/components/dataCube/editor/DataCubeEditorCodePanel.d.ts +0 -22
  135. package/lib/components/dataCube/editor/DataCubeEditorCodePanel.d.ts.map +0 -1
  136. package/lib/components/dataCube/editor/DataCubeEditorCodePanel.js +0 -26
  137. package/lib/components/dataCube/editor/DataCubeEditorCodePanel.js.map +0 -1
  138. package/lib/stores/dataCube/editor/DataCubeEditorCodePanelState.d.ts +0 -39
  139. package/lib/stores/dataCube/editor/DataCubeEditorCodePanelState.d.ts.map +0 -1
  140. package/lib/stores/dataCube/editor/DataCubeEditorCodePanelState.js +0 -89
  141. package/lib/stores/dataCube/editor/DataCubeEditorCodePanelState.js.map +0 -1
  142. package/src/components/dataCube/editor/DataCubeEditorCodePanel.tsx +0 -43
  143. package/src/stores/dataCube/editor/DataCubeEditorCodePanelState.ts +0 -167
@@ -43,7 +43,7 @@ export function buildQuerySnapshot(
43
43
  // --------------------------------- GROUP BY ---------------------------------
44
44
 
45
45
  if (request.rowGroupCols.length) {
46
- const availableCols = baseSnapshot.stageCols('aggregation');
46
+ const availableCols = baseSnapshot.stageCols('group-by');
47
47
  const newGroupByColumns = request.rowGroupCols.map((col) => ({
48
48
  name: col.id,
49
49
  type: _getCol(availableCols, col.id).type,
@@ -74,5 +74,5 @@ export function buildQuerySnapshot(
74
74
 
75
75
  // --------------------------------- FINALIZE ---------------------------------
76
76
 
77
- return snapshot.finalize();
77
+ return snapshot;
78
78
  }
@@ -14,15 +14,16 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { guaranteeNonNullable, hashArray } from '@finos/legend-shared';
18
- import { action, makeObservable, observable, runInAction } from 'mobx';
17
+ import { guaranteeNonNullable } from '@finos/legend-shared';
18
+ import { action, makeObservable, observable } from 'mobx';
19
19
  import type { GridApi } from '@ag-grid-community/core';
20
20
  import type { DataCubeState } from '../DataCubeState.js';
21
21
  import {
22
22
  DataCubeGridClientServerSideDataSource,
23
23
  INTERNAL__GRID_CLIENT_DEFAULT_CACHE_BLOCK_SIZE,
24
- INTERNAL__GRID_CLIENT_FILTER_TRIGGER_COLUMN_ID,
24
+ INTERNAL__GRID_CLIENT_DATA_FETCH_MANUAL_TRIGGER_COLUMN_ID,
25
25
  INTERNAL__GRID_CLIENT_MAX_CACHE_BLOCK_SIZE,
26
+ computeHashCodeForDataFetchManualTrigger,
26
27
  } from './DataCubeGridClientEngine.js';
27
28
  import { DataCubeQuerySnapshotController } from '../core/DataCubeQuerySnapshotManager.js';
28
29
  import type { DataCubeQuerySnapshot } from '../core/DataCubeQuerySnapshot.js';
@@ -31,22 +32,6 @@ import { DataCubeConfiguration } from '../core/DataCubeConfiguration.js';
31
32
  import { DataCubeGridControllerState } from './DataCubeGridControllerState.js';
32
33
  import { DataCubeGridClientExportEngine } from './DataCubeGridClientExportEngine.js';
33
34
 
34
- class DataCubeGridDatasourceConfiguration {
35
- readonly limit?: number | undefined;
36
-
37
- constructor(input: {
38
- snapshot?: DataCubeQuerySnapshot | undefined;
39
- queryConfiguration?: DataCubeConfiguration | undefined;
40
- }) {
41
- const { snapshot } = input;
42
- this.limit = snapshot?.data.limit;
43
- }
44
-
45
- get hashCode() {
46
- return hashArray([`limit: ${this.limit ?? ''}`]);
47
- }
48
- }
49
-
50
35
  /**
51
36
  * This query editor state is responsible for syncing the internal state of ag-grid
52
37
  * server-side row model data source with the data cube query state. When new snapshot
@@ -69,29 +54,32 @@ export class DataCubeGridState extends DataCubeQuerySnapshotController {
69
54
 
70
55
  clientDataSource: DataCubeGridClientServerSideDataSource;
71
56
 
57
+ queryConfiguration: DataCubeConfiguration;
58
+ rowLimit?: number | undefined;
72
59
  isPaginationEnabled = false;
73
60
  scrollHintText?: string | undefined;
74
- datasourceConfiguration: DataCubeGridDatasourceConfiguration;
75
- queryConfiguration: DataCubeConfiguration;
76
61
 
77
62
  constructor(dataCube: DataCubeState) {
78
63
  super(dataCube);
79
64
 
80
65
  makeObservable(this, {
81
66
  clientDataSource: observable,
82
- datasourceConfiguration: observable,
67
+
83
68
  queryConfiguration: observable,
84
69
 
70
+ rowLimit: observable,
71
+
85
72
  isPaginationEnabled: observable,
86
73
  setPaginationEnabled: action,
87
74
 
88
75
  scrollHintText: observable,
89
76
  setScrollHintText: action,
77
+
78
+ applySnapshot: action,
90
79
  });
91
80
 
92
81
  this.controller = new DataCubeGridControllerState(this.dataCube);
93
82
  this.exportEngine = new DataCubeGridClientExportEngine(this);
94
- this.datasourceConfiguration = new DataCubeGridDatasourceConfiguration({});
95
83
  this.queryConfiguration = new DataCubeConfiguration();
96
84
  this.clientDataSource = new DataCubeGridClientServerSideDataSource(this);
97
85
  }
@@ -129,28 +117,11 @@ export class DataCubeGridState extends DataCubeQuerySnapshotController {
129
117
  snapshot: DataCubeQuerySnapshot,
130
118
  previousSnapshot: DataCubeQuerySnapshot | undefined,
131
119
  ) {
132
- const existingExtraConfiguration = this.datasourceConfiguration;
133
120
  const queryConfiguration = DataCubeConfiguration.serialization.fromJson(
134
121
  snapshot.data.configuration,
135
122
  );
136
-
137
- // NOTE: if one of the change affects the structure of the data cube but cannot be captured
138
- // in the grid client options, we will need to manually reset the grid by resetting the
139
- // datasource to ensure we don't fetch the result twice while forcing the data to be refreshed
140
- runInAction(() => {
141
- this.datasourceConfiguration = new DataCubeGridDatasourceConfiguration({
142
- snapshot,
143
- queryConfiguration,
144
- });
145
- this.queryConfiguration = queryConfiguration;
146
- });
147
- if (
148
- existingExtraConfiguration.hashCode !==
149
- this.datasourceConfiguration.hashCode
150
- ) {
151
- // reset the entire grid
152
- this.clientDataSource = new DataCubeGridClientServerSideDataSource(this);
153
- }
123
+ this.queryConfiguration = queryConfiguration;
124
+ this.rowLimit = snapshot.data.limit;
154
125
 
155
126
  const gridOptions = generateGridOptionsFromSnapshot(
156
127
  snapshot,
@@ -165,11 +136,18 @@ export class DataCubeGridState extends DataCubeQuerySnapshotController {
165
136
  ? INTERNAL__GRID_CLIENT_DEFAULT_CACHE_BLOCK_SIZE
166
137
  : INTERNAL__GRID_CLIENT_MAX_CACHE_BLOCK_SIZE,
167
138
  });
168
- // NOTE: change the value to the hashcode of the filter to trigger data fetch when filter is modified
139
+
140
+ // NOTE: when there are changes that affect the data query specification but cannot be captured
141
+ // in the grid client options, we will need to manually trigger data fetching by updating the
142
+ // following hash code which is computed from those parts of the new snapshot then making use of
143
+ // the filter configuration mechanism to trigger getRows() method of server-side row model data source
169
144
  this.client.setFilterModel({
170
- [INTERNAL__GRID_CLIENT_FILTER_TRIGGER_COLUMN_ID]: {
145
+ [INTERNAL__GRID_CLIENT_DATA_FETCH_MANUAL_TRIGGER_COLUMN_ID]: {
171
146
  type: 'equals',
172
- filter: snapshot.hashCode,
147
+ filter: computeHashCodeForDataFetchManualTrigger(
148
+ snapshot,
149
+ queryConfiguration,
150
+ ),
173
151
  },
174
152
  });
175
153
  }
package/tsconfig.json CHANGED
@@ -75,7 +75,6 @@
75
75
  "./src/stores/dataCube/core/aggregation/DataCubeQueryAggregateOperation.ts",
76
76
  "./src/stores/dataCube/core/filter/DataCubeQueryFilterEditorState.ts",
77
77
  "./src/stores/dataCube/core/filter/DataCubeQueryFilterOperation.ts",
78
- "./src/stores/dataCube/editor/DataCubeEditorCodePanelState.ts",
79
78
  "./src/stores/dataCube/editor/DataCubeEditorColumnPropertiesPanelState.ts",
80
79
  "./src/stores/dataCube/editor/DataCubeEditorColumnsPanelState.ts",
81
80
  "./src/stores/dataCube/editor/DataCubeEditorColumnsSelectorState.ts",
@@ -99,7 +98,6 @@
99
98
  "./src/components/REPLStoreProvider.tsx",
100
99
  "./src/components/dataCube/DataCube.tsx",
101
100
  "./src/components/dataCube/editor/DataCubeEditor.tsx",
102
- "./src/components/dataCube/editor/DataCubeEditorCodePanel.tsx",
103
101
  "./src/components/dataCube/editor/DataCubeEditorColumnPropertiesPanel.tsx",
104
102
  "./src/components/dataCube/editor/DataCubeEditorColumnsPanel.tsx",
105
103
  "./src/components/dataCube/editor/DataCubeEditorColumnsSelector.tsx",
@@ -1,22 +0,0 @@
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 '../../../stores/dataCube/DataCubeState.js';
17
- export declare const DataCubeEditorCodePanel: ((props: {
18
- dataCube: DataCubeState;
19
- }) => import("react/jsx-runtime").JSX.Element) & {
20
- displayName: string;
21
- };
22
- //# sourceMappingURL=DataCubeEditorCodePanel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataCubeEditorCodePanel.d.ts","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditorCodePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAE/E,eAAO,MAAM,uBAAuB,WAC1B;IAAE,QAAQ,EAAE,aAAa,CAAA;CAAE;;CAmBpC,CAAC"}
@@ -1,26 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /**
3
- * Copyright (c) 2020-present, Goldman Sachs
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { observer } from 'mobx-react-lite';
18
- import { DataCubeIcon } from '@finos/legend-art';
19
- import { useEffect } from 'react';
20
- import { FormBadge_WIP } from '../../repl/Form.js';
21
- export const DataCubeEditorCodePanel = observer((props) => {
22
- /** TODO: @datacube cleanup - this dummy useEffect */
23
- useEffect(() => { }, []);
24
- 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" })] }));
25
- });
26
- //# sourceMappingURL=DataCubeEditorCodePanel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataCubeEditorCodePanel.js","sourceRoot":"","sources":["../../../../src/components/dataCube/editor/DataCubeEditorCodePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAC7C,CAAC,KAAkC,EAAE,EAAE;IACrC,qDAAqD;IACrD,SAAS,CAAC,GAAG,EAAE,GAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAExB,OAAO,CACL,eAAK,SAAS,EAAC,+BAA+B,aAC5C,eAAK,SAAS,EAAC,UAAU,aACvB,cAAK,SAAS,EAAC,2CAA2C,YACxD,KAAC,YAAY,CAAC,IAAI,KAAG,GACjB,EACN,eAAK,SAAS,EAAC,gDAAgD,qBAE7D,KAAC,aAAa,KAAG,IACb,IACF,EACN,cAAK,SAAS,EAAC,mCAAmC,GAAO,IACrD,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,39 +0,0 @@
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 { type GeneratorFn } from '@finos/legend-shared';
18
- import { ParserError, SourceInformation } from '@finos/legend-graph';
19
- import type { DataCubeEditorState } from './DataCubeEditorState.js';
20
- declare class DataCubeQueryEditorState {
21
- uuid: string;
22
- query: string;
23
- parserError?: ParserError | undefined;
24
- constructor(query: string);
25
- setQuery(val: string): void;
26
- setParserError(parserError: ParserError | undefined): void;
27
- processSourceInformation(sourceInformation: SourceInformation): SourceInformation;
28
- }
29
- export declare class DataCubeEditorCodePanelState {
30
- readonly dataCube: DataCubeState;
31
- readonly editor: DataCubeEditorState;
32
- queryEditorState: DataCubeQueryEditorState;
33
- currentSubQuery?: string | undefined;
34
- constructor(editor: DataCubeEditorState);
35
- setCurrentSubQuery(val: string | undefined): void;
36
- parseQuery(): GeneratorFn<void>;
37
- }
38
- export {};
39
- //# sourceMappingURL=DataCubeEditorCodePanelState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataCubeEditorCodePanelState.d.ts","sourceRoot":"","sources":["../../../../src/stores/dataCube/editor/DataCubeEditorCodePanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAKL,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,EACX,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,cAAM,wBAAwB;IAC5B,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;IAIpB,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,SAAS;IAUnD,wBAAwB,CAAC,iBAAiB,EAAE,iBAAiB;CAa9D;AAED,qBAAa,4BAA4B;IACvC,QAAQ,CAAC,QAAQ,EAAG,aAAa,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IAErC,gBAAgB,EAAG,wBAAwB,CAAC;IAC5C,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAEzB,MAAM,EAAE,mBAAmB;IAavC,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS;IAIzC,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC;CAgEjC"}
@@ -1,89 +0,0 @@
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, flow, flowResult, makeObservable, observable } from 'mobx';
17
- import { HttpStatus, NetworkClientError, assertErrorThrown, uuid, } from '@finos/legend-shared';
18
- import { ParserError, SourceInformation, V1_ParserError, } from '@finos/legend-graph';
19
- 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
- export class DataCubeEditorCodePanelState {
50
- dataCube;
51
- editor;
52
- queryEditorState;
53
- currentSubQuery;
54
- constructor(editor) {
55
- makeObservable(this, {
56
- currentSubQuery: observable,
57
- queryEditorState: observable,
58
- setCurrentSubQuery: action,
59
- parseQuery: flow,
60
- });
61
- this.editor = editor;
62
- this.dataCube = editor.dataCube;
63
- this.queryEditorState = new DataCubeQueryEditorState('');
64
- }
65
- setCurrentSubQuery(val) {
66
- this.currentSubQuery = val;
67
- }
68
- *parseQuery() {
69
- try {
70
- this.queryEditorState.setParserError(undefined);
71
- yield flowResult(this.dataCube.repl.client.parseQuery({
72
- code: `|${this.queryEditorState.query}`,
73
- }));
74
- }
75
- catch (error) {
76
- assertErrorThrown(error);
77
- if (error instanceof NetworkClientError &&
78
- error.response.status === HttpStatus.BAD_REQUEST) {
79
- const protocol = V1_ParserError.serialization.fromJson(error.payload);
80
- const parserError = new ParserError(protocol.message);
81
- if (protocol.sourceInformation) {
82
- parserError.sourceInformation = new SourceInformation(protocol.sourceInformation.sourceId, protocol.sourceInformation.startLine, protocol.sourceInformation.startColumn, protocol.sourceInformation.endLine, protocol.sourceInformation.endColumn);
83
- }
84
- this.queryEditorState.setParserError(parserError);
85
- }
86
- }
87
- }
88
- }
89
- //# sourceMappingURL=DataCubeEditorCodePanelState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataCubeEditorCodePanelState.js","sourceRoot":"","sources":["../../../../src/stores/dataCube/editor/DataCubeEditorCodePanelState.ts"],"names":[],"mappings":"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"}
@@ -1,43 +0,0 @@
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
-
17
- import { observer } from 'mobx-react-lite';
18
- import { DataCubeIcon } from '@finos/legend-art';
19
- import { useEffect } from 'react';
20
- import { FormBadge_WIP } from '../../repl/Form.js';
21
- import type { DataCubeState } from '../../../stores/dataCube/DataCubeState.js';
22
-
23
- export const DataCubeEditorCodePanel = observer(
24
- (props: { dataCube: DataCubeState }) => {
25
- /** TODO: @datacube cleanup - this dummy useEffect */
26
- useEffect(() => {}, []);
27
-
28
- return (
29
- <div className="h-full w-full select-none p-2">
30
- <div className="flex h-6">
31
- <div className="flex h-6 items-center text-xl font-medium">
32
- <DataCubeIcon.Code />
33
- </div>
34
- <div className="ml-1 flex h-6 items-center text-xl font-medium">
35
- Code
36
- <FormBadge_WIP />
37
- </div>
38
- </div>
39
- <div className="flex h-[calc(100%_-_24px)] w-full"></div>
40
- </div>
41
- );
42
- },
43
- );
@@ -1,167 +0,0 @@
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
-
17
- import { action, flow, flowResult, makeObservable, observable } from 'mobx';
18
- import type { DataCubeState } from '../DataCubeState.js';
19
- import {
20
- HttpStatus,
21
- NetworkClientError,
22
- assertErrorThrown,
23
- uuid,
24
- type GeneratorFn,
25
- type PlainObject,
26
- } from '@finos/legend-shared';
27
- import {
28
- ParserError,
29
- SourceInformation,
30
- V1_ParserError,
31
- } from '@finos/legend-graph';
32
- import type { DataCubeEditorState } from './DataCubeEditorState.js';
33
-
34
- class DataCubeQueryEditorState {
35
- uuid = uuid();
36
- query: string;
37
- parserError?: ParserError | undefined;
38
-
39
- constructor(query: string) {
40
- makeObservable(this, {
41
- query: observable,
42
- parserError: observable,
43
- setQuery: action,
44
- setParserError: action,
45
- });
46
-
47
- this.query = query;
48
- }
49
-
50
- setQuery(val: string) {
51
- this.query = val;
52
- }
53
-
54
- setParserError(parserError: ParserError | undefined) {
55
- // account for the lambda prefix offset in source information
56
- if (parserError?.sourceInformation) {
57
- parserError.sourceInformation = this.processSourceInformation(
58
- parserError.sourceInformation,
59
- );
60
- }
61
- this.parserError = parserError;
62
- }
63
-
64
- processSourceInformation(sourceInformation: SourceInformation) {
65
- const { sourceId, startLine, startColumn, endLine, endColumn } =
66
- sourceInformation;
67
- const lineOffset = 0;
68
- const columnOffset = 0;
69
- return new SourceInformation(
70
- sourceId,
71
- startLine + lineOffset,
72
- startColumn - (startLine === 1 ? columnOffset : 0),
73
- endLine + lineOffset,
74
- endColumn - (endLine === 1 ? columnOffset : 0),
75
- );
76
- }
77
- }
78
-
79
- export class DataCubeEditorCodePanelState {
80
- readonly dataCube!: DataCubeState;
81
- readonly editor: DataCubeEditorState;
82
-
83
- queryEditorState!: DataCubeQueryEditorState;
84
- currentSubQuery?: string | undefined;
85
-
86
- constructor(editor: DataCubeEditorState) {
87
- makeObservable(this, {
88
- currentSubQuery: observable,
89
- queryEditorState: observable,
90
- setCurrentSubQuery: action,
91
- parseQuery: flow,
92
- });
93
-
94
- this.editor = editor;
95
- this.dataCube = editor.dataCube;
96
- this.queryEditorState = new DataCubeQueryEditorState('');
97
- }
98
-
99
- setCurrentSubQuery(val: string | undefined) {
100
- this.currentSubQuery = val;
101
- }
102
-
103
- *parseQuery(): GeneratorFn<void> {
104
- try {
105
- this.queryEditorState.setParserError(undefined);
106
- yield flowResult(
107
- this.dataCube.repl.client.parseQuery({
108
- code: `|${this.queryEditorState.query}`,
109
- }),
110
- );
111
- } catch (error) {
112
- assertErrorThrown(error);
113
- if (
114
- error instanceof NetworkClientError &&
115
- error.response.status === HttpStatus.BAD_REQUEST
116
- ) {
117
- const protocol = V1_ParserError.serialization.fromJson(
118
- error.payload as PlainObject<V1_ParserError>,
119
- );
120
- const parserError = new ParserError(protocol.message);
121
- if (protocol.sourceInformation) {
122
- parserError.sourceInformation = new SourceInformation(
123
- protocol.sourceInformation.sourceId,
124
- protocol.sourceInformation.startLine,
125
- protocol.sourceInformation.startColumn,
126
- protocol.sourceInformation.endLine,
127
- protocol.sourceInformation.endColumn,
128
- );
129
- }
130
- this.queryEditorState.setParserError(parserError);
131
- }
132
- }
133
- }
134
-
135
- // async getTypeaheadResults(
136
- // position: IPosition,
137
- // model: monacoEditorAPI.ITextModel,
138
- // ): Promise<monacoLanguagesAPI.CompletionItem[]> {
139
- // try {
140
- // const textUntilPosition = model.getValueInRange({
141
- // startLineNumber: 1,
142
- // startColumn: 1,
143
- // endLineNumber: position.lineNumber,
144
- // endColumn: position.column,
145
- // });
146
- // const resultObj =
147
- // await this.editorStore.client.getTypeaheadResults(textUntilPosition);
148
- // const result = resultObj.map((res) =>
149
- // CompletionItem.serialization.fromJson(res),
150
- // );
151
- // const currentWord = model.getWordUntilPosition(position);
152
- // return result.map((res) => ({
153
- // label: res.display,
154
- // kind: monacoLanguagesAPI.CompletionItemKind.Text,
155
- // range: {
156
- // startLineNumber: position.lineNumber,
157
- // startColumn: currentWord.startColumn + 1,
158
- // endLineNumber: position.lineNumber,
159
- // endColumn: currentWord.endColumn + 1,
160
- // },
161
- // insertText: res.completion,
162
- // })) as monacoLanguagesAPI.CompletionItem[];
163
- // } catch (e) {
164
- // return [];
165
- // }
166
- // }
167
- }