@finos/legend-query-builder 4.14.51 → 4.14.53

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. package/lib/components/QueryBuilder.d.ts.map +1 -1
  2. package/lib/components/QueryBuilder.js +1 -0
  3. package/lib/components/QueryBuilder.js.map +1 -1
  4. package/lib/components/QueryBuilderConstantExpressionPanel.js +1 -1
  5. package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
  6. package/lib/components/QueryBuilderParametersPanel.js +1 -1
  7. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  8. package/lib/components/QueryBuilderPropertyExpressionEditor.js +1 -1
  9. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  10. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  11. package/lib/components/QueryBuilderSideBar.js +1 -1
  12. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  13. package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts +0 -1
  14. package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts.map +1 -1
  15. package/lib/components/ServiceQuerySetupUtils.d.ts.map +1 -1
  16. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts +1 -1
  17. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
  18. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +4 -2
  19. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
  20. package/lib/components/execution-plan/AllocationExecutionNodeViewer.d.ts +0 -1
  21. package/lib/components/execution-plan/AllocationExecutionNodeViewer.d.ts.map +1 -1
  22. package/lib/components/execution-plan/ConstantExecutionNodeViewer.d.ts +0 -1
  23. package/lib/components/execution-plan/ConstantExecutionNodeViewer.d.ts.map +1 -1
  24. package/lib/components/execution-plan/DataTypeResultTypeViewer.d.ts +0 -1
  25. package/lib/components/execution-plan/DataTypeResultTypeViewer.d.ts.map +1 -1
  26. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts +0 -1
  27. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts.map +1 -1
  28. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js +1 -1
  29. package/lib/components/execution-plan/ImplementationViewer.d.ts +0 -1
  30. package/lib/components/execution-plan/ImplementationViewer.d.ts.map +1 -1
  31. package/lib/components/execution-plan/PartialClassResultViewer.d.ts +0 -1
  32. package/lib/components/execution-plan/PartialClassResultViewer.d.ts.map +1 -1
  33. package/lib/components/execution-plan/PartialClassResultViewer.js +1 -1
  34. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts +0 -1
  35. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -1
  36. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js +1 -1
  37. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +0 -1
  38. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -1
  39. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js +1 -1
  40. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +0 -1
  41. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -1
  42. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js +1 -1
  43. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.d.ts +0 -1
  44. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.d.ts.map +1 -1
  45. package/lib/components/execution-plan/ResultTypeViewer.d.ts +0 -1
  46. package/lib/components/execution-plan/ResultTypeViewer.d.ts.map +1 -1
  47. package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts +0 -1
  48. package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts.map +1 -1
  49. package/lib/components/execution-plan/SQLExecutionNodeViewer.js +1 -1
  50. package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts +0 -1
  51. package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts.map +1 -1
  52. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts +0 -1
  53. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts.map +1 -1
  54. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js +2 -2
  55. package/lib/components/execution-plan/TDSResultTypeViewer.d.ts +0 -1
  56. package/lib/components/execution-plan/TDSResultTypeViewer.d.ts.map +1 -1
  57. package/lib/components/execution-plan/TDSResultTypeViewer.js +1 -1
  58. package/lib/components/execution-plan/TempTableStrategyViewer.d.ts +0 -1
  59. package/lib/components/execution-plan/TempTableStrategyViewer.d.ts.map +1 -1
  60. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +0 -1
  61. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
  62. package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.d.ts +2 -0
  63. package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.d.ts.map +1 -1
  64. package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js +14 -7
  65. package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js.map +1 -1
  66. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +0 -1
  67. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
  68. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  69. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +1 -1
  70. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  71. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  72. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +36 -11
  73. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
  74. package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts +0 -1
  75. package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts.map +1 -1
  76. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  77. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +5 -2
  78. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  79. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  80. package/lib/components/filter/QueryBuilderFilterPanel.js +9 -4
  81. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  82. package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
  83. package/lib/components/result/QueryBuilderResultPanel.js +1 -1
  84. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  85. package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
  86. package/lib/components/result/tds/QueryBuilderTDSGridResult.js +10 -8
  87. package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
  88. package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts +0 -1
  89. package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts.map +1 -1
  90. package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
  91. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js +2 -2
  92. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js.map +1 -1
  93. package/lib/components/shared/BasicValueSpecificationEditor.d.ts +19 -4
  94. package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
  95. package/lib/components/shared/BasicValueSpecificationEditor.js +97 -36
  96. package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
  97. package/lib/components/shared/CustomDatePicker.d.ts +2 -1
  98. package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
  99. package/lib/components/shared/CustomDatePicker.js +8 -5
  100. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  101. package/lib/components/shared/LambdaParameterValuesEditor.js +1 -1
  102. package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
  103. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts +0 -1
  104. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +1 -1
  105. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts +0 -1
  106. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -1
  107. package/lib/components/shared/QueryBuilderRootClassInfoTooltip.d.ts +0 -1
  108. package/lib/components/shared/QueryBuilderRootClassInfoTooltip.d.ts.map +1 -1
  109. package/lib/components/shared/QueryBuilderVariableSelector.d.ts +3 -0
  110. package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
  111. package/lib/components/shared/QueryBuilderVariableSelector.js +3 -3
  112. package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
  113. package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
  114. package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
  115. package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
  116. package/lib/graph/QueryBuilderMetaModelConst.d.ts +1 -0
  117. package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -1
  118. package/lib/graph/QueryBuilderMetaModelConst.js +1 -0
  119. package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -1
  120. package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -1
  121. package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +1 -1
  122. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +1 -2
  123. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
  124. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +68 -8
  125. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
  126. package/lib/index.css +2 -2
  127. package/lib/index.css.map +1 -1
  128. package/lib/index.d.ts +1 -1
  129. package/lib/index.d.ts.map +1 -1
  130. package/lib/index.js +1 -1
  131. package/lib/index.js.map +1 -1
  132. package/lib/package.json +7 -7
  133. package/lib/stores/QueryBuilderState.d.ts +0 -1
  134. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  135. package/lib/stores/QueryBuilderState.js +1 -0
  136. package/lib/stores/QueryBuilderState.js.map +1 -1
  137. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
  138. package/lib/stores/QueryBuilderStateBuilder.js +5 -1
  139. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  140. package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
  141. package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts +1 -2
  142. package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts.map +1 -1
  143. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.d.ts.map +1 -1
  144. package/lib/stores/execution-plan/ExecutionPlanState.d.ts.map +1 -1
  145. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +0 -1
  146. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
  147. package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +1 -1
  148. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -1
  149. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts.map +1 -1
  150. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +2 -0
  151. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  152. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +6 -0
  153. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  154. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts +11 -0
  155. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
  156. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +76 -20
  157. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
  158. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
  159. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +70 -34
  160. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
  161. package/lib/stores/filter/QueryBuilderFilterState.d.ts +2 -0
  162. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  163. package/lib/stores/filter/QueryBuilderFilterState.js +7 -0
  164. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  165. package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts +2 -2
  166. package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -1
  167. package/lib/stores/milestoning/QueryBuilderMilestoningState.js +15 -4
  168. package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
  169. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +5 -2
  170. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
  171. package/lib/stores/shared/ValueSpecificationEditorHelper.js +20 -9
  172. package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
  173. package/lib/stores/shared/ValueSpecificationModifierHelper.d.ts.map +1 -1
  174. package/lib/stores/workflows/ClassQueryBuilderState.d.ts.map +1 -1
  175. package/lib/stores/workflows/MappingQueryBuilderState.d.ts.map +1 -1
  176. package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
  177. package/package.json +15 -15
  178. package/src/components/QueryBuilder.tsx +1 -0
  179. package/src/components/QueryBuilderConstantExpressionPanel.tsx +1 -1
  180. package/src/components/QueryBuilderParametersPanel.tsx +1 -1
  181. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +1 -1
  182. package/src/components/QueryBuilderSideBar.tsx +1 -1
  183. package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +4 -1
  184. package/src/components/execution-plan/FunctionParametersValidationNodeViewer.tsx +1 -1
  185. package/src/components/execution-plan/PartialClassResultViewer.tsx +1 -1
  186. package/src/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.tsx +1 -1
  187. package/src/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +1 -1
  188. package/src/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +1 -1
  189. package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +1 -1
  190. package/src/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.tsx +2 -2
  191. package/src/components/execution-plan/TDSResultTypeViewer.tsx +1 -1
  192. package/src/components/explorer/QueryBuilderMilestoningParameterEditor.tsx +60 -22
  193. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +1 -1
  194. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +156 -60
  195. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +12 -2
  196. package/src/components/filter/QueryBuilderFilterPanel.tsx +18 -4
  197. package/src/components/result/QueryBuilderResultPanel.tsx +1 -0
  198. package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +12 -13
  199. package/src/components/result/tds/QueryBuilderTDSResultShared.tsx +1 -1
  200. package/src/components/result/tds/QueryBuilderTDSSimpleGridResult.tsx +2 -2
  201. package/src/components/shared/BasicValueSpecificationEditor.tsx +257 -55
  202. package/src/components/shared/CustomDatePicker.tsx +36 -11
  203. package/src/components/shared/LambdaParameterValuesEditor.tsx +1 -1
  204. package/src/components/shared/QueryBuilderVariableSelector.tsx +13 -4
  205. package/src/graph/QueryBuilderMetaModelConst.ts +1 -0
  206. package/src/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.ts +1 -1
  207. package/src/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +189 -18
  208. package/src/index.ts +1 -0
  209. package/src/stores/QueryBuilderState.ts +1 -0
  210. package/src/stores/QueryBuilderStateBuilder.ts +6 -1
  211. package/src/stores/QueryBuilderValueSpecificationHelper.ts +2 -2
  212. package/src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts +1 -1
  213. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +7 -0
  214. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +167 -43
  215. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +145 -69
  216. package/src/stores/filter/QueryBuilderFilterState.ts +8 -0
  217. package/src/stores/milestoning/QueryBuilderMilestoningState.ts +22 -9
  218. package/src/stores/shared/ValueSpecificationEditorHelper.ts +47 -7
  219. package/tsconfig.package.json +1 -1
@@ -42,6 +42,7 @@ import {
42
42
  CORE_PURE_PATH,
43
43
  buildRawLambdaFromLambdaFunction,
44
44
  getValueSpecificationReturnType,
45
+ isSubType,
45
46
  } from '@finos/legend-graph';
46
47
  import {
47
48
  Randomizer,
@@ -58,6 +59,13 @@ import {
58
59
  QUERY_BUILDER_PURE_PATH,
59
60
  QUERY_BUILDER_SUPPORTED_FUNCTIONS,
60
61
  } from '../../graph/QueryBuilderMetaModelConst.js';
62
+ import { buildDatePickerOption } from '../../components/shared/CustomDatePicker.js';
63
+ import type {
64
+ ApplicationStore,
65
+ LegendApplicationConfig,
66
+ LegendApplicationPlugin,
67
+ LegendApplicationPluginManager,
68
+ } from '@finos/legend-application';
61
69
 
62
70
  export const createSupportedFunctionExpression = (
63
71
  supportedFuncName: string,
@@ -293,21 +301,53 @@ export const generateVariableExpressionMockValue = (
293
301
 
294
302
  export const getValueSpecificationStringValue = (
295
303
  valueSpecification: ValueSpecification,
304
+ applicationStore: ApplicationStore<
305
+ LegendApplicationConfig,
306
+ LegendApplicationPluginManager<LegendApplicationPlugin>
307
+ >,
308
+ options?: {
309
+ omitEnumOwnerName?: boolean;
310
+ },
296
311
  ): string | undefined => {
297
312
  if (valueSpecification instanceof PrimitiveInstanceValue) {
313
+ if (
314
+ isSubType(
315
+ valueSpecification.genericType.value.rawType,
316
+ PrimitiveType.DATE,
317
+ )
318
+ ) {
319
+ return buildDatePickerOption(valueSpecification, applicationStore).label;
320
+ }
298
321
  return valueSpecification.values[0]?.toString();
299
322
  } else if (valueSpecification instanceof EnumValueInstanceValue) {
300
323
  const _enum = valueSpecification.values[0];
324
+ if (options?.omitEnumOwnerName) {
325
+ return _enum?.value.name;
326
+ }
301
327
  return `${_enum?.ownerReference.value.name}.${_enum?.value.name}`;
302
328
  } else if (valueSpecification instanceof VariableExpression) {
303
329
  return valueSpecification.name;
304
330
  } else if (valueSpecification instanceof INTERNAL__PropagatedValue) {
305
- return getValueSpecificationStringValue(valueSpecification.getValue());
331
+ return getValueSpecificationStringValue(
332
+ valueSpecification.getValue(),
333
+ applicationStore,
334
+ );
306
335
  } else if (valueSpecification instanceof SimpleFunctionExpression) {
336
+ if (
337
+ valueSpecification.genericType?.value.rawType !== undefined &&
338
+ isSubType(
339
+ valueSpecification.genericType.value.rawType,
340
+ PrimitiveType.DATE,
341
+ )
342
+ ) {
343
+ return buildDatePickerOption(valueSpecification, applicationStore).label;
344
+ }
307
345
  return valueSpecification.functionName;
308
346
  } else if (valueSpecification instanceof CollectionInstanceValue) {
309
347
  return valueSpecification.values
310
- .map(getValueSpecificationStringValue)
348
+ .map((valueSpec) =>
349
+ getValueSpecificationStringValue(valueSpec, applicationStore),
350
+ )
311
351
  .join(',');
312
352
  }
313
353
  return undefined;
@@ -336,7 +376,7 @@ export const valueSpecReturnTDS = (
336
376
  export const convertTextToPrimitiveInstanceValue = (
337
377
  expectedType: Type,
338
378
  value: string,
339
- obseverContext: ObserverContext,
379
+ observerContext: ObserverContext,
340
380
  ): PrimitiveInstanceValue | null => {
341
381
  let result = null;
342
382
  if (expectedType instanceof PrimitiveType) {
@@ -345,7 +385,7 @@ export const convertTextToPrimitiveInstanceValue = (
345
385
  result = new PrimitiveInstanceValue(
346
386
  GenericTypeExplicitReference.create(new GenericType(expectedType)),
347
387
  );
348
- instanceValue_setValues(result, [value.toString()], obseverContext);
388
+ instanceValue_setValues(result, [value.toString()], observerContext);
349
389
  break;
350
390
  }
351
391
  case PRIMITIVE_TYPE.NUMBER:
@@ -358,7 +398,7 @@ export const convertTextToPrimitiveInstanceValue = (
358
398
  result = new PrimitiveInstanceValue(
359
399
  GenericTypeExplicitReference.create(new GenericType(expectedType)),
360
400
  );
361
- instanceValue_setValues(result, [Number(value)], obseverContext);
401
+ instanceValue_setValues(result, [Number(value)], observerContext);
362
402
  break;
363
403
  }
364
404
  case PRIMITIVE_TYPE.DATE:
@@ -369,7 +409,7 @@ export const convertTextToPrimitiveInstanceValue = (
369
409
  result = new PrimitiveInstanceValue(
370
410
  GenericTypeExplicitReference.create(new GenericType(expectedType)),
371
411
  );
372
- instanceValue_setValues(result, [value], obseverContext);
412
+ instanceValue_setValues(result, [value], observerContext);
373
413
  break;
374
414
  }
375
415
  case PRIMITIVE_TYPE.DATETIME: {
@@ -385,7 +425,7 @@ export const convertTextToPrimitiveInstanceValue = (
385
425
  result = new PrimitiveInstanceValue(
386
426
  GenericTypeExplicitReference.create(new GenericType(expectedType)),
387
427
  );
388
- instanceValue_setValues(result, [value], obseverContext);
428
+ instanceValue_setValues(result, [value], observerContext);
389
429
  break;
390
430
  }
391
431
  default:
@@ -48,6 +48,6 @@
48
48
  "package.json"
49
49
  ],
50
50
  "exclude": [
51
- "lib"
51
+ "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/lib"
52
52
  ]
53
53
  }