@finos/legend-query-builder 4.15.0 → 4.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  2. package/lib/components/QueryBuilderSideBar.js +4 -4
  3. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  4. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
  5. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +2 -1
  6. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
  7. package/lib/components/data-cube/QueryBuilderDataCube.d.ts.map +1 -1
  8. package/lib/components/data-cube/QueryBuilderDataCube.js +3 -10
  9. package/lib/components/data-cube/QueryBuilderDataCube.js.map +1 -1
  10. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +1 -1
  11. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
  12. package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
  13. package/lib/components/result/QueryBuilderResultPanel.js +13 -1
  14. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  15. package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
  16. package/lib/components/result/tds/QueryBuilderTDSGridResult.js +4 -4
  17. package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
  18. package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
  19. package/lib/components/shared/BasicValueSpecificationEditor.js +5 -5
  20. package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
  21. package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
  22. package/lib/components/shared/CustomDatePicker.js +2 -2
  23. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  24. package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
  25. package/lib/components/workflows/ClassQueryBuilder.js +3 -3
  26. package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
  27. package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
  28. package/lib/components/workflows/MappingQueryBuilder.js +3 -3
  29. package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
  30. package/lib/index.css +1 -1
  31. package/lib/package.json +7 -7
  32. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts +1 -3
  33. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts.map +1 -1
  34. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js +1 -7
  35. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js.map +1 -1
  36. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts +5 -2
  37. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts.map +1 -1
  38. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js +14 -2
  39. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js.map +1 -1
  40. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.d.ts +1 -1
  41. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.d.ts.map +1 -1
  42. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.js +8 -1
  43. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.js.map +1 -1
  44. package/lib/stores/shared/LambdaParameterState.d.ts +2 -1
  45. package/lib/stores/shared/LambdaParameterState.d.ts.map +1 -1
  46. package/lib/stores/shared/LambdaParameterState.js +1 -0
  47. package/lib/stores/shared/LambdaParameterState.js.map +1 -1
  48. package/package.json +17 -17
  49. package/src/components/QueryBuilderSideBar.tsx +11 -10
  50. package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +8 -2
  51. package/src/components/data-cube/QueryBuilderDataCube.tsx +4 -16
  52. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +1 -1
  53. package/src/components/result/QueryBuilderResultPanel.tsx +23 -3
  54. package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +11 -6
  55. package/src/components/shared/BasicValueSpecificationEditor.tsx +21 -15
  56. package/src/components/shared/CustomDatePicker.tsx +10 -17
  57. package/src/components/workflows/ClassQueryBuilder.tsx +6 -5
  58. package/src/components/workflows/MappingQueryBuilder.tsx +6 -5
  59. package/src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts +1 -12
  60. package/src/stores/data-cube/QueryBuilderDataCubeEngine.ts +23 -0
  61. package/src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts +16 -1
  62. package/src/stores/shared/LambdaParameterState.ts +1 -0
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { V1_Lambda, RawLambda, TDSExecutionResult, type GraphManagerState, type PureModel, type V1_ValueSpecification } from '@finos/legend-graph';
16
+ import { V1_Lambda, RawLambda, TDSExecutionResult, type GraphManagerState, type PureModel, type V1_ValueSpecification, type ParameterValue } from '@finos/legend-graph';
17
17
  import { DataCubeGetBaseQueryResult, DataCubeEngine, type CompletionItem, DataCubeQuerySource, type DataCubeInfrastructureInfo, type RelationType } from '@finos/legend-data-cube';
18
18
  import { LogService } from '@finos/legend-shared';
19
19
  export declare class _DataCubeQuery {
@@ -30,8 +30,10 @@ export declare class QueryBuilderDataCubeEngine extends DataCubeEngine {
30
30
  readonly graphState: GraphManagerState;
31
31
  readonly selectInitialQuery: RawLambda;
32
32
  readonly mappingPath: string | undefined;
33
+ readonly parameterValues: ParameterValue[] | undefined;
33
34
  readonly runtimePath: string;
34
- constructor(selectQuery: RawLambda, mappingPath: string | undefined, runtimePath: string, graphManagerState: GraphManagerState);
35
+ _parameters: object | undefined;
36
+ constructor(selectQuery: RawLambda, parameterValues: ParameterValue[] | undefined, mappingPath: string | undefined, runtimePath: string, graphManagerState: GraphManagerState);
35
37
  get sourceLabel(): string;
36
38
  getBaseQuery(): Promise<DataCubeGetBaseQueryResult>;
37
39
  buildBaseQuery(): Promise<DataCubeGetBaseQueryResult>;
@@ -40,6 +42,7 @@ export declare class QueryBuilderDataCubeEngine extends DataCubeEngine {
40
42
  getInfrastructureInfo(): Promise<DataCubeInfrastructureInfo>;
41
43
  getQueryTypeahead(code: string, query: V1_ValueSpecification): Promise<CompletionItem[]>;
42
44
  parseQuery(code: string, returnSourceInformation?: boolean): Promise<V1_ValueSpecification>;
45
+ getQueryCode(query: V1_ValueSpecification, pretty?: boolean | undefined): Promise<string>;
43
46
  getQueryRelationType(query: V1_ValueSpecification): Promise<RelationType>;
44
47
  getRelationalType(query: RawLambda): Promise<RelationType>;
45
48
  getQueryCodeRelationReturnType(code: string, baseQuery: V1_ValueSpecification): Promise<RelationType>;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDataCubeEngine.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,SAAS,EACT,SAAS,EAET,kBAAkB,EAKlB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,0BAA0B,EAC1B,cAAc,EACd,KAAK,cAAc,EACnB,mBAAmB,EACnB,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EAElB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAiB,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEjE,qBAAa,cAAc;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,mBAAmB,CAAC;gBAG1B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,mBAAmB;CAO9B;AAED,qBAAa,+BAAgC,SAAQ,mBAAmB;CAAG;AAC3E,qBAAa,0BAA2B,SAAQ,cAAc;IAC5D,QAAQ,CAAC,UAAU,aAAoB;IACvC,QAAQ,CAAC,UA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M,CAExB;IACQ,YAAY,IAAI,OAAO,CAAC,0BAA0B,CAAC;IAItD,cAAc,IAAI,OAAO,CAAC,0BAA0B,CAAC;IAsD3D,IAAI,KAAK,IAAI,SAAS,CAErB;IAED,OAAO,CAAC,2BAA2B;IAU1B,qBAAqB,IAAI,OAAO,CAAC,0BAA0B,CAAC;IAQtD,iBAAiB,CAC9B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,qBAAqB,GAC3B,OAAO,CAAC,cAAc,EAAE,CAAC;IAcb,UAAU,CACvB,IAAI,EAAE,MAAM,EACZ,uBAAuB,CAAC,EAAE,OAAO,GAChC,OAAO,CAAC,qBAAqB,CAAC;IAUxB,YAAY,CACnB,KAAK,EAAE,qBAAqB,EAC5B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,GAC3B,OAAO,CAAC,MAAM,CAAC;IAOT,oBAAoB,CAC3B,KAAK,EAAE,qBAAqB,GAC3B,OAAO,CAAC,YAAY,CAAC;IAKlB,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC;IASjD,8BAA8B,CAC3C,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,qBAAqB,GAC/B,OAAO,CAAC,YAAY,CAAC;IAWT,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC;QACrD,MAAM,EAAE,kBAAkB,CAAC;QAC3B,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CA+BH"}
@@ -35,13 +35,16 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
35
35
  graphState;
36
36
  selectInitialQuery;
37
37
  mappingPath;
38
+ parameterValues;
38
39
  runtimePath;
39
- constructor(selectQuery, mappingPath, runtimePath, graphManagerState) {
40
+ _parameters;
41
+ constructor(selectQuery, parameterValues, mappingPath, runtimePath, graphManagerState) {
40
42
  super();
41
43
  this.graphState = graphManagerState;
42
44
  this.selectInitialQuery = selectQuery;
43
45
  this.mappingPath = mappingPath;
44
46
  this.runtimePath = runtimePath;
47
+ this.parameterValues = parameterValues;
45
48
  }
46
49
  get sourceLabel() {
47
50
  return `Query Builder Report`;
@@ -59,6 +62,7 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
59
62
  srcFuncExp.body[0]) {
60
63
  srcFuncExp = srcFuncExp.body[0];
61
64
  }
65
+ this._parameters = this.selectInitialQuery.parameters;
62
66
  const fromFuncExp = new V1_AppliedFunction();
63
67
  fromFuncExp.function = _functionName(SUPPORTED_FUNCTIONS.FROM);
64
68
  fromFuncExp.parameters = [srcFuncExp];
@@ -101,6 +105,8 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
101
105
  // we return undefined as we assume the grid license is set at the application level where query builder is built
102
106
  return Promise.resolve({
103
107
  gridClientLicense: undefined,
108
+ simpleSampleDataTableName: '',
109
+ complexSampleDataTableName: '',
104
110
  });
105
111
  }
106
112
  async getQueryTypeahead(code, query) {
@@ -114,6 +120,9 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
114
120
  async parseQuery(code, returnSourceInformation) {
115
121
  return V1_deserializeValueSpecification(await this.graphState.graphManager.pureCodeToValueSpecification(code, returnSourceInformation), []);
116
122
  }
123
+ getQueryCode(query, pretty) {
124
+ return this.graphState.graphManager.valueSpecificationToPureCode(V1_serializeValueSpecification(query, []), pretty);
125
+ }
117
126
  getQueryRelationType(query) {
118
127
  const lambda = this.buildRawLambdaFromValueSpec(query);
119
128
  return this.getRelationalType(lambda);
@@ -129,8 +138,11 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
129
138
  }
130
139
  async executeQuery(query) {
131
140
  const lambda = this.buildRawLambdaFromValueSpec(query);
141
+ lambda.parameters = this._parameters;
132
142
  const [executionWithMetadata, queryString] = await Promise.all([
133
- this.graphState.graphManager.runQuery(lambda, undefined, undefined, this.graph),
143
+ this.graphState.graphManager.runQuery(lambda, undefined, undefined, this.graph, {
144
+ parameterValues: this.parameterValues ?? [],
145
+ }),
134
146
  this.graphState.graphManager.lambdaToPureCode(lambda),
135
147
  ]);
136
148
  const expectedTDS = guaranteeType(executionWithMetadata.executionResult, TDSExecutionResult, 'Query returned expected to be of tabular data set');
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDataCubeEngine.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,6BAA6B,EAC7B,kBAAkB,EAClB,mCAAmC,EACnC,gCAAgC,EAChC,YAAY,EACZ,8BAA8B,GAI/B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,aAAa,EACb,0BAA0B,EAC1B,cAAc,EAEd,mBAAmB,EAGnB,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,OAAO,cAAc;IACzB,IAAI,CAAS;IACb,KAAK,CAAS;IACd,YAAY,CAAS;IACrB,MAAM,CAAsB;IAE5B,YACE,IAAY,EACZ,KAAa,EACb,YAAoB,EACpB,MAA2B;QAE3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAED,MAAM,OAAO,+BAAgC,SAAQ,mBAAmB;CAAG;AAC3E,MAAM,OAAO,0BAA2B,SAAQ,cAAc;IACnD,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;IAC9B,UAAU,CAAoB;IAC9B,kBAAkB,CAAY;IAC9B,WAAW,CAAqB;IAChC,WAAW,CAAS;IAC7B,YACE,WAAsB,EACtB,WAA+B,EAC/B,WAAmB,EACnB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AAC,CAAC;QACxC,IAAI,SAAS,GAAG,kBAAkB,CAAC;QACnC,IAAI,GAAG,YAAY,6BAA6B,EAAE,CAAC;YACjD,SAAS,GAAG,GAAG,CAAC,GAAG,CAAC;QACtB,CAAC;QACD,OAAO;YACL,MAAM,EAAE,WAAW;YACnB,aAAa,EAAE,WAAW;YAC1B,WAAW,EAAE,SAAS;SACvB,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderDataCubeEngine.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,6BAA6B,EAC7B,kBAAkB,EAClB,mCAAmC,EACnC,gCAAgC,EAChC,YAAY,EACZ,8BAA8B,GAK/B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,aAAa,EACb,0BAA0B,EAC1B,cAAc,EAEd,mBAAmB,EAGnB,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,OAAO,cAAc;IACzB,IAAI,CAAS;IACb,KAAK,CAAS;IACd,YAAY,CAAS;IACrB,MAAM,CAAsB;IAE5B,YACE,IAAY,EACZ,KAAa,EACb,YAAoB,EACpB,MAA2B;QAE3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAED,MAAM,OAAO,+BAAgC,SAAQ,mBAAmB;CAAG;AAC3E,MAAM,OAAO,0BAA2B,SAAQ,cAAc;IACnD,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;IAC9B,UAAU,CA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CAAC,KAAgB;QAK1C,MAAM,MAAM,GAAG,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC;QACvD,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC;QACrC,MAAM,CAAC,qBAAqB,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAC7D,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,QAAQ,CACnC,MAAM,EACN,SAAS,EACT,SAAS,EACT,IAAI,CAAC,KAAK,EACV;gBACE,eAAe,EAAE,IAAI,CAAC,eAAe,IAAI,EAAE;aAC5C,CACF;YACD,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,gBAAgB,CAAC,MAAM,CAAC;SACtD,CAAC,CAAC;QACH,MAAM,WAAW,GAAG,aAAa,CAC/B,qBAAqB,CAAC,eAAe,EACrC,kBAAkB,EAClB,mDAAmD,CACpD,CAAC;QACF,MAAM,GAAG,GAAG,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;QACxC,IAAI,SAAS,GAAG,kBAAkB,CAAC;QACnC,IAAI,GAAG,YAAY,6BAA6B,EAAE,CAAC;YACjD,SAAS,GAAG,GAAG,CAAC,GAAG,CAAC;QACtB,CAAC;QACD,OAAO;YACL,MAAM,EAAE,WAAW;YACnB,aAAa,EAAE,WAAW;YAC1B,WAAW,EAAE,SAAS;SACvB,CAAC;IACJ,CAAC;CACF"}
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { type DataCubeEngine } from '@finos/legend-data-cube';
17
- import type { QueryBuilderState } from '../QueryBuilderState.js';
17
+ import { type QueryBuilderState } from '../QueryBuilderState.js';
18
18
  export declare const createDataCubeEngineFromQueryBuilder: (queryBuilderState: QueryBuilderState) => DataCubeEngine | undefined;
19
19
  //# sourceMappingURL=QueryBuilderDataCubeEngineHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDataCubeEngineHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAIjE,eAAO,MAAM,oCAAoC,sBAC5B,iBAAiB,KACnC,cAAc,GAAG,SAiBnB,CAAC"}
1
+ {"version":3,"file":"QueryBuilderDataCubeEngineHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,yBAAyB,CAAC;AAKjC,eAAO,MAAM,oCAAoC,sBAC5B,iBAAiB,KACnC,cAAc,GAAG,SA4BnB,CAAC"}
@@ -14,8 +14,10 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import {} from '@finos/legend-data-cube';
17
+ import { QUERY_BUILDER_LAMBDA_WRITER_MODE, } from '../QueryBuilderState.js';
17
18
  import { RuntimePointer } from '@finos/legend-graph';
18
19
  import { QueryBuilderDataCubeEngine } from './QueryBuilderDataCubeEngine.js';
20
+ import { buildExecutionParameterValues } from '../shared/LambdaParameterState.js';
19
21
  export const createDataCubeEngineFromQueryBuilder = (queryBuilderState) => {
20
22
  const runtime = queryBuilderState.executionContextState.runtimeValue instanceof
21
23
  RuntimePointer
@@ -25,7 +27,12 @@ export const createDataCubeEngineFromQueryBuilder = (queryBuilderState) => {
25
27
  if (!runtime) {
26
28
  return undefined;
27
29
  }
28
- const queryBuilderEngine = new QueryBuilderDataCubeEngine(queryBuilderState.buildQuery(), queryBuilderState.executionContextState.mapping?.path, runtime, queryBuilderState.graphManagerState);
30
+ const currentLambdaWriterMode = queryBuilderState.lambdaWriteMode;
31
+ // ensure we write in new tds mode
32
+ queryBuilderState.setLambdaWriteMode(QUERY_BUILDER_LAMBDA_WRITER_MODE.TYPED_FETCH_STRUCTURE);
33
+ const parameterValues = buildExecutionParameterValues(queryBuilderState.parametersState.parameterStates, queryBuilderState.graphManagerState);
34
+ const queryBuilderEngine = new QueryBuilderDataCubeEngine(queryBuilderState.buildQuery(), parameterValues, queryBuilderState.executionContextState.mapping?.path, runtime, queryBuilderState.graphManagerState);
35
+ queryBuilderState.setLambdaWriteMode(currentLambdaWriterMode);
29
36
  return queryBuilderEngine;
30
37
  };
31
38
  //# sourceMappingURL=QueryBuilderDataCubeEngineHelper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDataCubeEngineHelper.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAuB,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAClD,iBAAoC,EACR,EAAE;IAC9B,MAAM,OAAO,GACX,iBAAiB,CAAC,qBAAqB,CAAC,YAAY;QACpD,cAAc;QACZ,CAAC,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,YAAY,CAAC,kBAAkB;aACpE,KAAK,CAAC,IAAI;QACf,CAAC,CAAC,SAAS,CAAC;IAChB,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,kBAAkB,GAAG,IAAI,0BAA0B,CACvD,iBAAiB,CAAC,UAAU,EAAE,EAC9B,iBAAiB,CAAC,qBAAqB,CAAC,OAAO,EAAE,IAAI,EACrD,OAAO,EACP,iBAAiB,CAAC,iBAAiB,CACpC,CAAC;IACF,OAAO,kBAAkB,CAAC;AAC5B,CAAC,CAAC"}
1
+ {"version":3,"file":"QueryBuilderDataCubeEngineHelper.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAuB,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EACL,gCAAgC,GAEjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAElF,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAClD,iBAAoC,EACR,EAAE;IAC9B,MAAM,OAAO,GACX,iBAAiB,CAAC,qBAAqB,CAAC,YAAY;QACpD,cAAc;QACZ,CAAC,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,YAAY,CAAC,kBAAkB;aACpE,KAAK,CAAC,IAAI;QACf,CAAC,CAAC,SAAS,CAAC;IAChB,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,eAAe,CAAC;IAClE,kCAAkC;IAClC,iBAAiB,CAAC,kBAAkB,CAClC,gCAAgC,CAAC,qBAAqB,CACvD,CAAC;IACF,MAAM,eAAe,GAAG,6BAA6B,CACnD,iBAAiB,CAAC,eAAe,CAAC,eAAe,EACjD,iBAAiB,CAAC,iBAAiB,CACpC,CAAC;IACF,MAAM,kBAAkB,GAAG,IAAI,0BAA0B,CACvD,iBAAiB,CAAC,UAAU,EAAE,EAC9B,eAAe,EACf,iBAAiB,CAAC,qBAAqB,CAAC,OAAO,EAAE,IAAI,EACrD,OAAO,EACP,iBAAiB,CAAC,iBAAiB,CACpC,CAAC;IACF,iBAAiB,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;IAC9D,OAAO,kBAAkB,CAAC;AAC5B,CAAC,CAAC"}
@@ -17,7 +17,8 @@ import { type ObserverContext, type Type, type ValueSpecification, type PureMode
17
17
  import { type Hashable } from '@finos/legend-shared';
18
18
  export declare enum PARAMETER_SUBMIT_ACTION {
19
19
  RUN = "RUN",
20
- EXPORT = "EXPORT"
20
+ EXPORT = "EXPORT",
21
+ DATA_CUBE = "DATA_CUBE"
21
22
  }
22
23
  export declare const buildParametersLetLambdaFunc: (graph: PureModel, lambdaParametersStates: LambdaParameterState[]) => LambdaFunction;
23
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"LambdaParameterState.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/LambdaParameterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,SAAS,EAKd,kBAAkB,EAGlB,cAAc,EAId,YAAY,EAKZ,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,KAAK,QAAQ,EAMd,MAAM,sBAAsB,CAAC;AAQ9B,oBAAY,uBAAuB;IACjC,GAAG,QAAQ;IACX,MAAM,WAAW;CAClB;AAOD,eAAO,MAAM,4BAA4B,UAChC,SAAS,0BACQ,oBAAoB,EAAE,KAC7C,cA6BF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,6CAA6C,mBACxC,oBAAoB,KACnC,OAIA,CAAC;AAEJ,eAAO,MAAM,oCAAoC,oBAC9B,oBAAoB,EAAE,KACtC,oBAAoB,EACgD,CAAC;AAExE,eAAO,MAAM,6BAA6B,gBAC3B,oBAAoB,EAAE,cACvB,iBAAiB,KAC5B,cAAc,EAUX,CAAC;AAEP,eAAO,MAAM,8BAA8B,cAC9B,SAAS,mBACH,oBAAoB,EAAE,qBACpB,iBAAiB,K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AAI;CAId;AAED,8BAAsB,qBAAsB,YAAW,QAAQ;IAC7D,eAAe,EAAE,oBAAoB,EAAE,CAAM;IAC7C,0BAA0B,qCAA4C;;IAQtE,IAAI,QAAQ,IAAI,MAAM,CAKrB;IAED,YAAY,CAAC,GAAG,EAAE,oBAAoB,GAAG,IAAI;IAI7C,eAAe,CAAC,GAAG,EAAE,oBAAoB,GAAG,IAAI;IAIhD,aAAa,CAAC,GAAG,EAAE,oBAAoB,EAAE,GAAG,IAAI;CAGjD"}
@@ -22,6 +22,7 @@ export var PARAMETER_SUBMIT_ACTION;
22
22
  (function (PARAMETER_SUBMIT_ACTION) {
23
23
  PARAMETER_SUBMIT_ACTION["RUN"] = "RUN";
24
24
  PARAMETER_SUBMIT_ACTION["EXPORT"] = "EXPORT";
25
+ PARAMETER_SUBMIT_ACTION["DATA_CUBE"] = "DATA_CUBE";
25
26
  })(PARAMETER_SUBMIT_ACTION || (PARAMETER_SUBMIT_ACTION = {}));
26
27
  var LAMABA_PARAMETER_HASH_STRUCTURE;
27
28
  (function (LAMABA_PARAMETER_HASH_STRUCTURE) {
@@ -1 +1 @@
1
- {"version":3,"file":"LambdaParameterState.js","sourceRoot":"","sources":["../../../src/stores/shared/LambdaParameterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAOL,WAAW,EACX,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,kBAAkB,EAClB,wBAAwB,EACxB,mCAAmC,EACnC,cAAc,EACd,YAAY,EACZ,cAAc,EACd,0BAA0B,EAC1B,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,gCAAgC,GACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,WAAW,EAEX,SAAS,EACT,iBAAiB,EACjB,IAAI,EACJ,aAAa,EACb,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,E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AAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,+BAA+B,CAAC,uBAAuB;YACvD,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC;SAChC,CAAC,CAAC;IACL,CAAC;IAED,YAAY,CAAC,GAAyB;QACpC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED,eAAe,CAAC,GAAyB;QACvC,WAAW,CAAC,IAAI,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;IACzC,CAAC;IAED,aAAa,CAAC,GAA2B;QACvC,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;IAC7B,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.15.0",
3
+ "version": "4.15.2",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,21 +42,21 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "16.0.1",
46
- "@finos/legend-art": "7.1.60",
47
- "@finos/legend-code-editor": "2.0.2",
48
- "@finos/legend-data-cube": "0.0.6",
49
- "@finos/legend-graph": "31.10.36",
50
- "@finos/legend-lego": "2.0.3",
51
- "@finos/legend-server-depot": "6.0.61",
52
- "@finos/legend-shared": "10.0.56",
53
- "@finos/legend-storage": "3.0.106",
45
+ "@finos/legend-application": "16.0.3",
46
+ "@finos/legend-art": "7.1.62",
47
+ "@finos/legend-code-editor": "2.0.3",
48
+ "@finos/legend-data-cube": "0.0.8",
49
+ "@finos/legend-graph": "31.10.37",
50
+ "@finos/legend-lego": "2.0.5",
51
+ "@finos/legend-server-depot": "6.0.62",
52
+ "@finos/legend-shared": "10.0.57",
53
+ "@finos/legend-storage": "3.0.107",
54
54
  "@testing-library/dom": "10.4.0",
55
55
  "@testing-library/react": "16.0.1",
56
- "@types/react": "18.3.9",
56
+ "@types/react": "18.3.11",
57
57
  "@types/react-dom": "18.3.0",
58
58
  "chart.js": "4.4.4",
59
- "mathjs": "13.1.1",
59
+ "mathjs": "13.2.0",
60
60
  "mobx": "6.13.3",
61
61
  "mobx-react-lite": "4.0.7",
62
62
  "monaco-editor": "0.52.0",
@@ -65,18 +65,18 @@
65
65
  "react-dnd": "16.0.1",
66
66
  "react-dom": "18.3.1",
67
67
  "serializr": "3.0.2",
68
- "sql-formatter": "15.4.2"
68
+ "sql-formatter": "15.4.3"
69
69
  },
70
70
  "devDependencies": {
71
- "@finos/legend-dev-utils": "2.1.23",
71
+ "@finos/legend-dev-utils": "2.1.25",
72
72
  "@jest/globals": "29.7.0",
73
73
  "cross-env": "7.0.3",
74
- "eslint": "8.57.1",
74
+ "eslint": "9.12.0",
75
75
  "jest": "29.7.0",
76
76
  "npm-run-all": "4.1.5",
77
77
  "rimraf": "6.0.1",
78
- "sass": "1.79.3",
79
- "typescript": "5.6.2"
78
+ "sass": "1.79.4",
79
+ "typescript": "5.6.3"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "react": "^18.0.0"
@@ -105,8 +105,8 @@ export const QueryBuilderClassSelector = observer(
105
105
  const elementFilterOption = createFilter({
106
106
  ignoreCase: true,
107
107
  ignoreAccents: false,
108
- stringify: (option: PackageableElementOption<Class>): string =>
109
- option.value.path,
108
+ stringify: (option: { data: PackageableElementOption<Class> }): string =>
109
+ option.data.value.path,
110
110
  });
111
111
 
112
112
  const classOptions = classes
@@ -114,12 +114,12 @@ export const QueryBuilderClassSelector = observer(
114
114
  .map((_class) => ({
115
115
  value: _class,
116
116
  label: generateClassLabel(_class, queryBuilderState),
117
- }));
117
+ })) as PackageableElementOption<Class>[];
118
118
  const selectedClassOption = queryBuilderState.class
119
- ? {
119
+ ? ({
120
120
  value: queryBuilderState.class,
121
121
  label: generateClassLabel(queryBuilderState.class, queryBuilderState),
122
- }
122
+ } as PackageableElementOption<Class>)
123
123
  : null;
124
124
  const changeClass = (val: PackageableElementOption<Class>): void => {
125
125
  if (val.value === queryBuilderState.class) {
@@ -233,8 +233,9 @@ const BasicQueryBuilderSetup = observer(
233
233
  const mappingFilterOption = createFilter({
234
234
  ignoreCase: true,
235
235
  ignoreAccents: false,
236
- stringify: (option: PackageableElementOption<Mapping>): string =>
237
- option.value.path,
236
+ stringify: (option: {
237
+ data: PackageableElementOption<Mapping>;
238
+ }): string => option.data.value.path,
238
239
  });
239
240
 
240
241
  // runtime
@@ -263,9 +264,9 @@ const BasicQueryBuilderSetup = observer(
263
264
  const runtimeFilterOption = createFilter({
264
265
  ignoreCase: true,
265
266
  ignoreAccents: false,
266
- stringify: (option: { value: Runtime }): string =>
267
- option.value instanceof RuntimePointer
268
- ? option.value.packageableRuntime.value.path
267
+ stringify: (option: { data: { value: Runtime } }): string =>
268
+ option.data.value instanceof RuntimePointer
269
+ ? option.data.value.packageableRuntime.value.path
269
270
  : 'custom',
270
271
  });
271
272
 
@@ -55,6 +55,7 @@ import {
55
55
  import { STYLE_PREFIX, STYLE_PREFIX__DARK } from '@finos/legend-art';
56
56
  import { expect } from '@jest/globals';
57
57
  import { QueryBuilderAdvancedWorkflowState } from '../../stores/query-workflow/QueryBuilderWorkFlowState.js';
58
+ import { Route, Routes } from '@finos/legend-application/browser';
58
59
 
59
60
  const getSelectorContainerClassName = (lightMode?: boolean): string =>
60
61
  '.' + `${lightMode ? STYLE_PREFIX : STYLE_PREFIX__DARK}__value-container`;
@@ -254,9 +255,14 @@ export const TEST__setUpQueryBuilder = async (
254
255
 
255
256
  const renderResult = render(
256
257
  <ApplicationStoreProvider store={MOCK__applicationStore}>
257
- <TEST__BrowserEnvironmentProvider>
258
+ <TEST__BrowserEnvironmentProvider initialEntries={['/']}>
258
259
  <ApplicationFrameworkProvider>
259
- <QueryBuilder queryBuilderState={queryBuilderState} />
260
+ <Routes>
261
+ <Route
262
+ path="*"
263
+ element={<QueryBuilder queryBuilderState={queryBuilderState} />}
264
+ />
265
+ </Routes>
260
266
  </ApplicationFrameworkProvider>
261
267
  </TEST__BrowserEnvironmentProvider>
262
268
  </ApplicationStoreProvider>,
@@ -27,8 +27,7 @@ import {
27
27
  WindowMaximizeIcon,
28
28
  } from '@finos/legend-art';
29
29
  import { useState } from 'react';
30
- import { RuntimePointer } from '@finos/legend-graph';
31
- import { QueryBuilderDataCubeEngine } from '../../stores/data-cube/QueryBuilderDataCubeEngine.js';
30
+ import { createDataCubeEngineFromQueryBuilder } from '../../stores/data-cube/QueryBuilderDataCubeEngineHelper.js';
32
31
 
33
32
  const QueryBuilderDataCube = observer(
34
33
  (props: { queryBuilderState: QueryBuilderState }) => {
@@ -36,22 +35,11 @@ const QueryBuilderDataCube = observer(
36
35
  const applicationStore = new QueryBuilderDataCubeApplicationEngine(
37
36
  queryBuilderState.applicationStore,
38
37
  );
39
- const runtime =
40
- queryBuilderState.executionContextState.runtimeValue instanceof
41
- RuntimePointer
42
- ? queryBuilderState.executionContextState.runtimeValue
43
- .packageableRuntime.value.path
44
- : undefined;
45
- if (!runtime) {
46
- // TODO: add better message
38
+ const queryBuilderEngine =
39
+ createDataCubeEngineFromQueryBuilder(queryBuilderState);
40
+ if (!queryBuilderEngine) {
47
41
  return null;
48
42
  }
49
- const queryBuilderEngine = new QueryBuilderDataCubeEngine(
50
- queryBuilderState.buildQuery(),
51
- queryBuilderState.executionContextState.mapping?.path,
52
- runtime,
53
- queryBuilderState.graphManagerState,
54
- );
55
43
 
56
44
  return (
57
45
  <DataCubeProvider
@@ -105,7 +105,7 @@ const ColumnSortEditor = observer(
105
105
  }));
106
106
  const value = {
107
107
  label: sortState.columnState.columnName,
108
- value: sortState,
108
+ value: sortState.columnState,
109
109
  };
110
110
  const sortType = sortState.sortType;
111
111
 
@@ -408,6 +408,28 @@ export const QueryBuilderResultPanel = observer(
408
408
  }
409
409
  resultState.pressedRunQuery.complete();
410
410
  };
411
+
412
+ const openDataCube = (): void => {
413
+ if (
414
+ queryParametersState.parameterStates.length &&
415
+ queryParametersState.parameterStates.find(
416
+ (param) =>
417
+ !queryBuilderState.milestoningState.isMilestoningParameter(
418
+ param.parameter,
419
+ ),
420
+ )
421
+ ) {
422
+ queryParametersState.parameterValuesEditorState.open(
423
+ (): Promise<void> => {
424
+ queryBuilderState.setIsCubeEnabled(true);
425
+ return Promise.resolve();
426
+ },
427
+ PARAMETER_SUBMIT_ACTION.DATA_CUBE,
428
+ );
429
+ } else {
430
+ queryBuilderState.setIsCubeEnabled(true);
431
+ }
432
+ };
411
433
  const cancelQuery = applicationStore.guardUnhandledError(() =>
412
434
  flowResult(resultState.cancelQuery()),
413
435
  );
@@ -841,9 +863,7 @@ export const QueryBuilderResultPanel = observer(
841
863
  </MenuContentItem>
842
864
  {queryBuilderState.config?.TEMPORARY__enableExportToCube && (
843
865
  <MenuContentItem
844
- onClick={(): void =>
845
- queryBuilderState.setIsCubeEnabled(true)
846
- }
866
+ onClick={openDataCube}
847
867
  disabled={
848
868
  !queryBuilderState.fetchStructureState.implementation
849
869
  .canBeExportedToCube ||
@@ -44,6 +44,7 @@ import { QueryBuilderTDSState } from '../../../stores/fetch-structure/tds/QueryB
44
44
  import { DEFAULT_LOCALE } from '../../../graph-manager/QueryBuilderConst.js';
45
45
  import {
46
46
  assertErrorThrown,
47
+ guaranteeNonNullable,
47
48
  isBoolean,
48
49
  isNumber,
49
50
  isString,
@@ -393,18 +394,22 @@ export const QueryBuilderTDSGridResult = observer(
393
394
  aggFuncParams.colDef.field,
394
395
  )
395
396
  ? {
396
- label: resultState.wavgAggregationState.weightedColumnIdPairs.get(
397
- aggFuncParams.colDef.field,
397
+ label: guaranteeNonNullable(
398
+ resultState.wavgAggregationState.weightedColumnIdPairs.get(
399
+ aggFuncParams.colDef.field,
400
+ ),
398
401
  ),
399
- value: resultState.wavgAggregationState.weightedColumnIdPairs.get(
400
- aggFuncParams.colDef.field,
402
+ value: guaranteeNonNullable(
403
+ resultState.wavgAggregationState.weightedColumnIdPairs.get(
404
+ aggFuncParams.colDef.field,
405
+ ),
401
406
  ),
402
407
  }
403
408
  : null;
404
409
 
405
- const onWeightedColumnOptionChange = async (
410
+ const onWeightedColumnOptionChange = (
406
411
  option: { label: string; value: string } | null,
407
- ): Promise<void> => {
412
+ ) => {
408
413
  if (aggFuncParams?.colDef.field && option?.value) {
409
414
  resultState.wavgAggregationState?.addWeightedColumnIdPair(
410
415
  aggFuncParams.colDef.field,
@@ -233,9 +233,7 @@ const StringPrimitiveInstanceValueEditor = observer(
233
233
  selectorConfig?: BasicValueSpecificationEditorSelectorConfig | undefined;
234
234
  observerContext: ObserverContext;
235
235
  handleBlur?: (() => void) | undefined;
236
- handleKeyDown?:
237
- | ((event: React.KeyboardEvent<HTMLInputElement>) => void)
238
- | undefined;
236
+ handleKeyDown?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
239
237
  }
240
238
  >(function StringPrimitiveInstanceValueEditor(props, ref) {
241
239
  const {
@@ -261,7 +259,7 @@ const StringPrimitiveInstanceValueEditor = observer(
261
259
  updateValueSpec(event.target.value);
262
260
  };
263
261
  // custom select
264
- const selectedValue = { value: value, label: value };
262
+ const selectedValue = value ? { value: value, label: value } : null;
265
263
  const reloadValuesFunc = selectorConfig?.reloadValues;
266
264
  const changeValue = (
267
265
  val: null | { value: number | string; label: string },
@@ -318,7 +316,7 @@ const StringPrimitiveInstanceValueEditor = observer(
318
316
  className="value-spec-editor__enum-selector"
319
317
  options={queryOptions}
320
318
  onChange={changeValue}
321
- value={selectedValue.label === '' ? '' : selectedValue}
319
+ value={selectedValue}
322
320
  inputValue={value ?? ''}
323
321
  onInputChange={handleInputChange}
324
322
  darkMode={
@@ -333,8 +331,10 @@ const StringPrimitiveInstanceValueEditor = observer(
333
331
  }}
334
332
  hasError={!isValidInstanceValue(valueSpecification)}
335
333
  placeholder={value === '' ? '(empty)' : undefined}
336
- ref={ref as React.Ref<SelectComponent>}
337
- onKeyDown={handleKeyDown}
334
+ inputRef={ref as React.Ref<SelectComponent>}
335
+ onKeyDown={
336
+ handleKeyDown as React.KeyboardEventHandler<HTMLDivElement>
337
+ }
338
338
  inputName={inputName}
339
339
  />
340
340
  ) : (
@@ -911,14 +911,18 @@ const PrimitiveCollectionInstanceValueEditor = observer(
911
911
  saveEdit();
912
912
  };
913
913
 
914
- const handleKeyDown = (event: KeyboardEvent): void => {
914
+ const handleKeyDown: React.KeyboardEventHandler<HTMLDivElement> = (
915
+ event,
916
+ ) => {
915
917
  if ((event.key === 'Enter' || event.key === ',') && !event.shiftKey) {
916
918
  addInputValueToSelectedOptions();
917
919
  event.preventDefault();
918
920
  }
919
921
  };
920
922
 
921
- const handlePaste = (event: React.ClipboardEvent<string>): void => {
923
+ const handlePaste: React.ClipboardEventHandler<HTMLInputElement> = (
924
+ event,
925
+ ) => {
922
926
  const pastedText = event.clipboardData.getData('text');
923
927
  const parsedData = parseCSVString(pastedText);
924
928
  if (!parsedData) {
@@ -982,8 +986,7 @@ const PrimitiveCollectionInstanceValueEditor = observer(
982
986
  }
983
987
  isLoading={isLoading}
984
988
  noMatchMessage={noMatchMessage}
985
- placeholder={null}
986
- inputPlaceholder={getPlaceHolder(expectedType)}
989
+ placeholder={getPlaceHolder(expectedType)}
987
990
  components={{
988
991
  DropdownIndicator: null,
989
992
  }}
@@ -1121,14 +1124,18 @@ const EnumCollectionInstanceValueEditor = observer(
1121
1124
  }
1122
1125
  };
1123
1126
 
1124
- const handleKeyDown = (event: KeyboardEvent): void => {
1127
+ const handleKeyDown: React.KeyboardEventHandler<HTMLDivElement> = (
1128
+ event,
1129
+ ) => {
1125
1130
  if ((event.key === 'Enter' || event.key === ',') && !event.shiftKey) {
1126
1131
  addInputValueToSelectedOptions();
1127
1132
  event.preventDefault();
1128
1133
  }
1129
1134
  };
1130
1135
 
1131
- const handlePaste = (event: React.ClipboardEvent<string>): void => {
1136
+ const handlePaste: React.ClipboardEventHandler<HTMLInputElement> = (
1137
+ event,
1138
+ ) => {
1132
1139
  const pastedText = event.clipboardData.getData('text');
1133
1140
  const parsedData = parseCSVString(pastedText);
1134
1141
  if (!parsedData) {
@@ -1199,8 +1206,7 @@ const EnumCollectionInstanceValueEditor = observer(
1199
1206
  darkMode={
1200
1207
  !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
1201
1208
  }
1202
- placeholder={null}
1203
- inputPlaceholder="Add"
1209
+ placeholder="Add"
1204
1210
  menuIsOpen={true}
1205
1211
  inputName={inputName}
1206
1212
  />