@finos/legend-query-builder 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -1
  2. package/lib/components/QueryBuilderConstantExpressionPanel.js +3 -3
  3. package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
  4. package/lib/components/QueryBuilderParametersPanel.js +2 -2
  5. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  6. package/lib/components/QueryBuilderPropertyExpressionEditor.js +5 -6
  7. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  8. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  9. package/lib/components/QueryBuilderResultPanel.js +7 -12
  10. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  11. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
  12. package/lib/components/explorer/QueryBuilderExplorerPanel.js +6 -6
  13. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
  14. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
  15. package/lib/components/explorer/QueryBuilderMilestoningEditor.js +3 -5
  16. package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
  17. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -1
  18. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +5 -6
  19. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -1
  20. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +1 -1
  21. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  22. package/lib/components/filter/QueryBuilderFilterPanel.js +1 -1
  23. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  24. package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
  25. package/lib/components/shared/BasicValueSpecificationEditor.js +87 -76
  26. package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
  27. package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
  28. package/lib/components/shared/CustomDatePicker.js +13 -14
  29. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  30. package/lib/components/watermark/QueryBuilderWatermark.d.ts.map +1 -1
  31. package/lib/components/watermark/QueryBuilderWatermark.js +1 -1
  32. package/lib/components/watermark/QueryBuilderWatermark.js.map +1 -1
  33. package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts +1 -0
  34. package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts.map +1 -1
  35. package/lib/graphManager/QueryBuilderSupportedFunctions.js +1 -0
  36. package/lib/graphManager/QueryBuilderSupportedFunctions.js.map +1 -1
  37. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
  38. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +8 -8
  39. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
  40. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +17 -26
  41. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
  42. package/lib/index.css +2 -2
  43. package/lib/index.css.map +1 -1
  44. package/lib/package.json +11 -10
  45. package/lib/stores/QueryBuilderChangeDetectionState.d.ts +4 -4
  46. package/lib/stores/QueryBuilderChangeDetectionState.d.ts.map +1 -1
  47. package/lib/stores/QueryBuilderChangeDetectionState.js +9 -9
  48. package/lib/stores/QueryBuilderChangeDetectionState.js.map +1 -1
  49. package/lib/stores/QueryBuilderConstantsState.d.ts.map +1 -1
  50. package/lib/stores/QueryBuilderConstantsState.js +4 -4
  51. package/lib/stores/QueryBuilderConstantsState.js.map +1 -1
  52. package/lib/stores/QueryBuilderPropertyEditorState.d.ts +2 -3
  53. package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
  54. package/lib/stores/QueryBuilderPropertyEditorState.js +9 -12
  55. package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
  56. package/lib/stores/QueryBuilderState.d.ts +4 -2
  57. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  58. package/lib/stores/QueryBuilderState.js +7 -7
  59. package/lib/stores/QueryBuilderState.js.map +1 -1
  60. package/lib/stores/QueryBuilderStateBuilder.d.ts +2 -2
  61. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
  62. package/lib/stores/QueryBuilderStateBuilder.js +10 -12
  63. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  64. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +1 -1
  65. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
  66. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +9 -1
  67. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -1
  68. package/lib/stores/QueryBuilderValueSpecificationHelper.js +22 -1
  69. package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
  70. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -1
  71. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +2 -2
  72. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -1
  73. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +1 -1
  74. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
  75. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.d.ts +1 -1
  76. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +1 -1
  77. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js +22 -15
  78. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -1
  79. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -1
  80. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +2 -1
  81. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -1
  82. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -1
  83. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +2 -1
  84. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -1
  85. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -1
  86. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +6 -3
  87. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -1
  88. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -1
  89. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +4 -2
  90. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -1
  91. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -1
  92. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +4 -2
  93. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -1
  94. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -1
  95. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +2 -1
  96. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
  97. package/lib/stores/filter/QueryBuilderFilterState.js +2 -2
  98. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  99. package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts.map +1 -1
  100. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +1 -14
  101. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -1
  102. package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.d.ts.map +1 -1
  103. package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js +9 -2
  104. package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js.map +1 -1
  105. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
  106. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +1 -1
  107. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -1
  108. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -1
  109. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +1 -1
  110. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -1
  111. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -1
  112. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +4 -3
  113. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -1
  114. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -1
  115. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +2 -2
  116. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -1
  117. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -1
  118. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +2 -2
  119. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -1
  120. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -1
  121. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +2 -2
  122. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +1 -1
  123. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -1
  124. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +2 -2
  125. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -1
  126. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -1
  127. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +1 -1
  128. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
  129. package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -1
  130. package/lib/stores/milestoning/QueryBuilderMilestoningState.js +3 -3
  131. package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
  132. package/lib/stores/shared/LambdaParameterState.d.ts +2 -2
  133. package/lib/stores/shared/LambdaParameterState.d.ts.map +1 -1
  134. package/lib/stores/shared/LambdaParameterState.js +5 -5
  135. package/lib/stores/shared/LambdaParameterState.js.map +1 -1
  136. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +4 -4
  137. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
  138. package/lib/stores/shared/ValueSpecificationEditorHelper.js +11 -15
  139. package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
  140. package/lib/stores/shared/ValueSpecificationModifierHelper.d.ts +8 -8
  141. package/lib/stores/shared/ValueSpecificationModifierHelper.d.ts.map +1 -1
  142. package/lib/stores/shared/ValueSpecificationModifierHelper.js +20 -17
  143. package/lib/stores/shared/ValueSpecificationModifierHelper.js.map +1 -1
  144. package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts.map +1 -1
  145. package/lib/stores/watermark/QueryBuilderWatermarkState.js +1 -1
  146. package/lib/stores/watermark/QueryBuilderWatermarkState.js.map +1 -1
  147. package/package.json +18 -17
  148. package/src/components/QueryBuilderConstantExpressionPanel.tsx +3 -1
  149. package/src/components/QueryBuilderParametersPanel.tsx +2 -2
  150. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +6 -6
  151. package/src/components/QueryBuilderResultPanel.tsx +18 -14
  152. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +10 -11
  153. package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +7 -5
  154. package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +9 -6
  155. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +1 -1
  156. package/src/components/filter/QueryBuilderFilterPanel.tsx +1 -1
  157. package/src/components/shared/BasicValueSpecificationEditor.tsx +180 -106
  158. package/src/components/shared/CustomDatePicker.tsx +54 -26
  159. package/src/components/watermark/QueryBuilderWatermark.tsx +1 -3
  160. package/src/graphManager/QueryBuilderSupportedFunctions.ts +4 -0
  161. package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +1 -1
  162. package/src/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +67 -68
  163. package/src/stores/QueryBuilderChangeDetectionState.ts +13 -11
  164. package/src/stores/QueryBuilderConstantsState.ts +4 -3
  165. package/src/stores/QueryBuilderPropertyEditorState.ts +17 -13
  166. package/src/stores/QueryBuilderState.ts +7 -9
  167. package/src/stores/QueryBuilderStateBuilder.ts +10 -12
  168. package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +1 -1
  169. package/src/stores/QueryBuilderValueSpecificationHelper.ts +36 -0
  170. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +10 -2
  171. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +1 -1
  172. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.ts +26 -20
  173. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +2 -0
  174. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +2 -0
  175. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +14 -3
  176. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +4 -0
  177. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +4 -0
  178. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +2 -0
  179. package/src/stores/filter/QueryBuilderFilterState.ts +2 -2
  180. package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +0 -20
  181. package/src/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.ts +17 -4
  182. package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +1 -0
  183. package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +1 -0
  184. package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +12 -3
  185. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +2 -0
  186. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +2 -0
  187. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +2 -0
  188. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +2 -0
  189. package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +1 -0
  190. package/src/stores/milestoning/QueryBuilderMilestoningState.ts +3 -9
  191. package/src/stores/shared/LambdaParameterState.ts +9 -5
  192. package/src/stores/shared/ValueSpecificationEditorHelper.ts +24 -9
  193. package/src/stores/shared/ValueSpecificationModifierHelper.ts +42 -20
  194. package/src/stores/watermark/QueryBuilderWaterm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+ {"version":3,"file":"QueryBuilderMilestoningState.d.ts","sourceRoot":"","sources":["../../../src/stores/milestoning/QueryBuilderMilestoningState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,sBAAsB,EAEtB,kBAAkB,EAClB,KAAK,kBAAkB,EAGxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,QAAQ,EAGd,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAKjE,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AAGxG,qBAAa,4BAA6B,YAAW,QAAQ;IAC3D,QAAQ,CAAC,0BAA0B,EAAE,qCAAqC,EAAE,CACvE;IAEL,iBAAiB,EAAE,iBAAiB,CAAC;IAErC,qBAAqB,UAAS;IAG9B,YAAY,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC9C,cAAc,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;gBAEpC,iBAAiB,EAAE,iBAAiB;IAkChD,IAAI,iBAAiB,IAAI,OAAO,CAE/B;IAED,wBAAwB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI5C,4BAA4B,CAC1B,UAAU,EAAE,sBAAsB,GACjC,qCAAqC;IAQxC,OAAO,CAAC,oCAAoC;IAQ5C,iBAAiB,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAM5D,eAAe,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAM1D,qBAAqB,IAAI,IAAI;IAK7B,8BAA8B,IAAI,IAAI;IAiBtC,yBAAyB,CAAC,aAAa,EAAE,MAAM,GAAG,kBAAkB;IAsBpE,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO;IAUrD,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF"}
@@ -61,12 +61,12 @@ export class QueryBuilderMilestoningState {
61
61
  }
62
62
  setProcessingDate(val) {
63
63
  this.processingDate = val
64
- ? observe_ValueSpecification(val, this.queryBuilderState.observableContext)
64
+ ? observe_ValueSpecification(val, this.queryBuilderState.observerContext)
65
65
  : val;
66
66
  }
67
67
  setBusinessDate(val) {
68
68
  this.businessDate = val
69
- ? observe_ValueSpecification(val, this.queryBuilderState.observableContext)
69
+ ? observe_ValueSpecification(val, this.queryBuilderState.observerContext)
70
70
  : val;
71
71
  }
72
72
  clearMilestoningDates() {
@@ -89,7 +89,7 @@ export class QueryBuilderMilestoningState {
89
89
  buildMilestoningParameter(parameterName) {
90
90
  const milestoningParameter = new VariableExpression(parameterName, Multiplicity.ONE, GenericTypeExplicitReference.create(new GenericType(PrimitiveType.DATE)));
91
91
  if (!this.queryBuilderState.parametersState.parameterStates.find((p) => p.variableName === parameterName)) {
92
- const variableState = new LambdaParameterState(milestoningParameter, this.queryBuilderState.observableContext, this.queryBuilderState.graphManagerState.graph);
92
+ const variableState = new LambdaParameterState(milestoningParameter, this.queryBuilderState.observerContext, this.queryBuilderState.graphManagerState.graph);
93
93
  variableState.mockParameterValue();
94
94
  this.queryBuilderState.parametersState.addParameter(variableState);
95
95
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderMilestoningState.js","sourceRoot":"","sources":["../../../src/stores/milestoning/QueryBuilderMilestoningState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,4BAA4B,EAC5B,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAElB,YAAY,EACZ,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,SAAS,EACT,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C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,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,iBAAiB;YAC9C,IAAI,CAAC,YAAY,IAAI,EAAE;YACvB,IAAI,CAAC,cAAc,IAAI,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderMilestoningState.js","sourceRoot":"","sources":["../../../src/stores/milestoning/QueryBuilderMilestoningState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,4BAA4B,EAC5B,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAElB,YAAY,EACZ,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,SAAS,EACT,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAE3F,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAChG,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,+CAA+C,EAAE,MAAM,sDAAsD,CAAC;AACvH,OAAO,EAAE,qDAAqD,EAAE,MAAM,4DAA4D,CAAC;AAEnI,OAAO,EAAE,uDAAuD,EAAE,MAAM,8DAA8D,CAAC;AAEvI,MAAM,OAAO,4BAA4B;IAC9B,0BAA0B,GACjC,EAAE,CAAC;IAEL,iBAAiB,CAAoB;IAErC,qBAAqB,GAAG,KAAK,CAAC;IAC9B,iEAAiE;IACjE,yDAAyD;IACzD,YAAY,CAAkC;IAC9C,cAAc,CAAkC;IAEhD,YAAY,iBAAoC;QAC9C,cAAc,CAAC,IAAI,EAAE;YACnB,cAAc,EAAE,UAAU;YAC1B,YAAY,EAAE,UAAU;YACxB,qBAAqB,EAAE,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BAAoB,CAC5C,oBAAoB,EACpB,IAAI,CAAC,iBAAiB,CAAC,eAAe,EACtC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAC/C,CAAC;YACF,aAAa,CAAC,kBAAkB,EAAE,CAAC;YACnC,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;SACpE;QACD,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAED,cAAc,CAAC,QAA4B;QACzC,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY;YACtC,CAAC,CAAC,kCAAkC,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC;YACjE,CAAC,CAAC,KAAK,CAAC;QACV,MAAM,oBAAoB,GAAG,IAAI,CAAC,cAAc;YAC9C,CAAC,CAAC,kCAAkC,CAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC;YACnE,CAAC,CAAC,KAAK,CAAC;QACV,OAAO,cAAc,IAAI,oBAAoB,CAAC;IAChD,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,iBAAiB;YAC9C,IAAI,CAAC,YAAY,IAAI,EAAE;YACvB,IAAI,CAAC,cAAc,IAAI,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -35,9 +35,9 @@ export declare class LambdaParameterState implements Hashable {
35
35
  readonly uuid: string;
36
36
  readonly parameter: VariableExpression;
37
37
  readonly graph: PureModel;
38
- readonly observableContext: ObserverContext;
38
+ readonly observerContext: ObserverContext;
39
39
  value: ValueSpecification | undefined;
40
- constructor(variableExpression: VariableExpression, observableContext: ObserverContext, graph: PureModel);
40
+ constructor(variableExpression: VariableExpression, observerContext: ObserverContext, graph: PureModel);
41
41
  get hashCode(): string;
42
42
  mockParameterValue(): void;
43
43
  setValue(value: ValueSpecification | undefined): void;
@@ -1 +1 @@
1
- {"version":3,"file":"LambdaParameterState.d.ts","sourceRoot":"","sources":["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AED,kBAAkB,IAAI,IAAI;IAU1B,QAAQ,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAWrD,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAUpC,kBAAkB,CAChB,kBAAkB,EAAE,kBAAkB,EACtC,GAAG,EAAE,YAAY,GAChB,IAAI;IAQP,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED,IAAI,YAAY,IAAI,IAAI,GAAG,SAAS,CAEnC;CACF;AAED,qBAAa,kCAAkC;IAC7C,SAAS,UAAS;IAClB,YAAY,EACR;QACE,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;QAC7B,KAAK,EAAE,MAAM,CAAC;KACf,GACD,SAAS,CAAC;;IAYd,YAAY,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIhC,eAAe,CACb,GAAG,EACC;QACE,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;QAC7B,KAAK,EAAE,MAAM,CAAC;KACf,GACD,SAAS,GACZ,IAAI;IAIP,IAAI,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAKvD,KAAK,IAAI,IAAI;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"}
@@ -106,16 +106,16 @@ export class LambdaParameterState {
106
106
  uuid = uuid();
107
107
  parameter;
108
108
  graph;
109
- observableContext;
109
+ observerContext;
110
110
  value;
111
- constructor(variableExpression, observableContext, graph) {
111
+ constructor(variableExpression, observerContext, graph) {
112
112
  makeObservable(this, {
113
113
  value: observable,
114
114
  setValue: action,
115
115
  mockParameterValue: action,
116
116
  hashCode: computed,
117
117
  });
118
- this.observableContext = observableContext;
118
+ this.observerContext = observerContext;
119
119
  this.parameter = observe_VariableExpression(variableExpression);
120
120
  this.graph = graph;
121
121
  }
@@ -126,14 +126,14 @@ export class LambdaParameterState {
126
126
  ]);
127
127
  }
128
128
  mockParameterValue() {
129
- this.setValue(generateVariableExpressionMockValue(this.parameter, this.graph));
129
+ this.setValue(generateVariableExpressionMockValue(this.parameter, this.graph, this.observerContext));
130
130
  }
131
131
  setValue(value) {
132
132
  if (value instanceof VariableExpression) {
133
133
  throw new IllegalStateError('Can not assign a parameter to another parameter');
134
134
  }
135
135
  this.value = value
136
- ? observe_ValueSpecification(value, this.observableContext)
136
+ ? observe_ValueSpecification(value, this.observerContext)
137
137
  : undefined;
138
138
  }
139
139
  changeVariableType(type) {
@@ -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,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAA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Y,GAAG,GAAG,CAAC;IAC1B,CAAC;IAED,IAAI,CAAC,OAA4B,EAAE,KAAa;QAC9C,IAAI,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;QACzC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED,KAAK;QACH,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;QAChC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;CACF;AAED,MAAM,OAAgB,qBAAqB;IACzC,eAAe,GAA2B,EAAE,CAAC;IAC7C,0BAA0B,GAAG,IAAI,kCAAkC,EAAE,CAAC;IAEtE;QACE,cAAc,CAAC,IAAI,EAAE;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;IACL,CAAC;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"}
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,YA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IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;IAC7B,CAAC;CACF"}
@@ -13,11 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type PureModel, VariableExpression, type ValueSpecification, type Type, Enumeration, PrimitiveInstanceValue, PRIMITIVE_TYPE, SimpleFunctionExpression, SUPPORTED_FUNCTIONS } from '@finos/legend-graph';
16
+ import { type PureModel, VariableExpression, type ValueSpecification, type Type, Enumeration, PrimitiveInstanceValue, PRIMITIVE_TYPE, SimpleFunctionExpression, SUPPORTED_FUNCTIONS, type ObserverContext } from '@finos/legend-graph';
17
17
  export declare const createSupportedFunctionExpression: (supportedFuncName: SUPPORTED_FUNCTIONS, expectedReturnType: Type) => SimpleFunctionExpression;
18
18
  export declare const createMockEnumerationProperty: (enumeration: Enumeration) => string;
19
- export declare const buildPrimitiveInstanceValue: (graph: PureModel, type: PRIMITIVE_TYPE, value: unknown) => PrimitiveInstanceValue;
20
- export declare const buildDefaultInstanceValue: (graph: PureModel, type: Type) => ValueSpecification;
21
- export declare const generateVariableExpressionMockValue: (parameter: VariableExpression, graph: PureModel) => ValueSpecification | undefined;
19
+ export declare const buildPrimitiveInstanceValue: (graph: PureModel, type: PRIMITIVE_TYPE, value: unknown, observerContext: ObserverContext) => PrimitiveInstanceValue;
20
+ export declare const buildDefaultInstanceValue: (graph: PureModel, type: Type, observerContext: ObserverContext) => ValueSpecification;
21
+ export declare const generateVariableExpressionMockValue: (parameter: VariableExpression, graph: PureModel, observerContext: ObserverContext) => ValueSpecification | undefined;
22
22
  export declare const getValueSpecificationStringValue: (valueSpecification: ValueSpecification) => string | undefined;
23
23
  //# sourceMappingURL=ValueSpecificationEditorHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ValueSpecificationEditorHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,KAAK,IAAI,EAGT,WAAW,EAMX,sBAAsB,EAEtB,cAAc,EAEd,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAU7B,eAAO,MAAM,iCAAiC,sBACzB,mBAAmB,sBAClB,IAAI,KACvB,wBAOF,CAAC;AAgDF,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,KACvB,MACyE,CAAC;AAE7E,eAAO,MAAM,2BAA2B,UAC/B,SAAS,QACV,cAAc,SACb,OAAO,KACb,sBAQF,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAC7B,SAAS,QACV,IAAI,KACT,kBA4CF,CAAC;AAEF,eAAO,MAAM,mCAAmC,cACnC,kBAAkB,SACtB,SAAS,KACf,kBAAkB,GAAG,SAwBvB,CAAC;AAEF,eAAO,MAAM,gCAAgC,uBACvB,kBAAkB,KACrC,MAAM,GAAG,SAkBX,CAAC"}
1
+ {"version":3,"file":"ValueSpecificationEditorHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,KAAK,IAAI,EAGT,WAAW,EAMX,sBAAsB,EAEtB,cAAc,EAEd,wBAAwB,EACxB,mBAAmB,EACnB,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAC;AAU7B,eAAO,MAAM,iCAAiC,sBACzB,mBAAmB,sBAClB,IAAI,KACvB,wBAOF,CAAC;AAiDF,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,KACvB,MACyE,CAAC;AAE7E,eAAO,MAAM,2BAA2B,UAC/B,SAAS,QACV,cAAc,SACb,OAAO,mBACG,eAAe,KAC/B,sBAQF,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAC7B,SAAS,QACV,IAAI,mBACO,eAAe,KAC/B,kBAgDF,CAAC;AAEF,eAAO,MAAM,mCAAmC,cACnC,kBAAkB,SACtB,SAAS,mBACC,eAAe,KAC/B,kBAAkB,GAAG,SA8BvB,CAAC;AAEF,eAAO,MAAM,gCAAgC,uBACvB,kBAAkB,KACrC,MAAM,GAAG,SAkBX,CAAC"}
@@ -23,7 +23,7 @@ export const createSupportedFunctionExpression = (supportedFuncName, expectedRet
23
23
  valueSpecification_setGenericType(funcExpression, GenericTypeExplicitReference.create(new GenericType(expectedReturnType)));
24
24
  return funcExpression;
25
25
  };
26
- const createMockPrimitiveValueSpecification = (primitiveType, propertyName) => {
26
+ const createMockPrimitiveValueSpecification = (primitiveType, propertyName, observerContext) => {
27
27
  const primitiveTypeName = primitiveType.name;
28
28
  if (primitiveTypeName === PRIMITIVE_TYPE.DATE ||
29
29
  primitiveTypeName === PRIMITIVE_TYPE.DATETIME) {
@@ -53,16 +53,16 @@ const createMockPrimitiveValueSpecification = (primitiveType, propertyName) => {
53
53
  default:
54
54
  value = `${propertyName} ${randomizer.getRandomWholeNumber(100)}`;
55
55
  }
56
- instanceValue_setValues(primitiveInstanceValue, [value]);
56
+ instanceValue_setValues(primitiveInstanceValue, [value], observerContext);
57
57
  return primitiveInstanceValue;
58
58
  };
59
59
  export const createMockEnumerationProperty = (enumeration) => new Randomizer().getRandomItemInCollection(enumeration.values)?.name ?? '';
60
- export const buildPrimitiveInstanceValue = (graph, type, value) => {
60
+ export const buildPrimitiveInstanceValue = (graph, type, value, observerContext) => {
61
61
  const instance = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(graph.getPrimitiveType(type))));
62
- instanceValue_setValues(instance, [value]);
62
+ instanceValue_setValues(instance, [value], observerContext);
63
63
  return instance;
64
64
  };
65
- export const buildDefaultInstanceValue = (graph, type) => {
65
+ export const buildDefaultInstanceValue = (graph, type, observerContext) => {
66
66
  const path = type.path;
67
67
  switch (path) {
68
68
  case PRIMITIVE_TYPE.STRING:
@@ -74,18 +74,16 @@ export const buildDefaultInstanceValue = (graph, type) => {
74
74
  case PRIMITIVE_TYPE.FLOAT:
75
75
  case PRIMITIVE_TYPE.BINARY:
76
76
  case PRIMITIVE_TYPE.INTEGER: {
77
- return buildPrimitiveInstanceValue(graph, path, generateDefaultValueForPrimitiveType(path));
77
+ return buildPrimitiveInstanceValue(graph, path, generateDefaultValueForPrimitiveType(path), observerContext);
78
78
  }
79
79
  case PRIMITIVE_TYPE.DATE: {
80
- return buildPrimitiveInstanceValue(graph, PRIMITIVE_TYPE.STRICTDATE, generateDefaultValueForPrimitiveType(path));
80
+ return buildPrimitiveInstanceValue(graph, PRIMITIVE_TYPE.STRICTDATE, generateDefaultValueForPrimitiveType(path), observerContext);
81
81
  }
82
82
  default:
83
83
  if (type instanceof Enumeration) {
84
84
  if (type.values.length > 0) {
85
85
  const enumValueInstanceValue = new EnumValueInstanceValue(GenericTypeExplicitReference.create(new GenericType(type)));
86
- instanceValue_setValues(enumValueInstanceValue, [
87
- EnumValueExplicitReference.create(type.values[0]),
88
- ]);
86
+ instanceValue_setValues(enumValueInstanceValue, [EnumValueExplicitReference.create(type.values[0])], observerContext);
89
87
  return enumValueInstanceValue;
90
88
  }
91
89
  throw new UnsupportedOperationError(`Can't get default value for enumeration since enumeration '${path}' has no value`);
@@ -93,22 +91,20 @@ export const buildDefaultInstanceValue = (graph, type) => {
93
91
  throw new UnsupportedOperationError(`Can't get default value for type'${path}'`);
94
92
  }
95
93
  };
96
- export const generateVariableExpressionMockValue = (parameter, graph) => {
94
+ export const generateVariableExpressionMockValue = (parameter, graph, observerContext) => {
97
95
  const varType = parameter.genericType?.value.rawType;
98
96
  const multiplicity = parameter.multiplicity;
99
97
  if ((!multiplicity.upperBound || multiplicity.upperBound > 1) && varType) {
100
98
  return new CollectionInstanceValue(multiplicity, GenericTypeExplicitReference.create(new GenericType(varType)));
101
99
  }
102
100
  if (varType instanceof PrimitiveType) {
103
- return createMockPrimitiveValueSpecification(varType, VAR_DEFAULT_NAME);
101
+ return createMockPrimitiveValueSpecification(varType, VAR_DEFAULT_NAME, observerContext);
104
102
  }
105
103
  else if (varType instanceof Enumeration) {
106
104
  const enumValueInstance = new EnumValueInstanceValue(GenericTypeExplicitReference.create(new GenericType(varType)));
107
105
  const mock = createMockEnumerationProperty(varType);
108
106
  if (mock !== '') {
109
- instanceValue_setValues(enumValueInstance, [
110
- EnumValueExplicitReference.create(getEnumValue(varType, mock)),
111
- ]);
107
+ instanceValue_setValues(enumValueInstance, [EnumValueExplicitReference.create(getEnumValue(varType, mock))], observerContext);
112
108
  }
113
109
  return enumValueInstance;
114
110
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ValueSpecificationEditorHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,kBAAkB,EAIlB,uBAAuB,EACvB,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACX,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,yBAAyB,EACzB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EACL,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,uCAAuC,CAAC;AAE/C,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAE/B,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC/C,iBAAsC,EACtC,kBAAwB,EACE,EAAE;IAC5B,MAAM,cAAc,GAAG,IAAI,wBAAwB,CAAC,iBAAiB,CAAC,CAAC;IACvE,iCAAiC,CAC/B,cAAc,EACd,4BAA4B,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,kBAAkB,CAAC,CAAC,CACzE,CAAC;I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AAE;QAChE,OAAO,kBAAkB,CAAC,MAAM;aAC7B,GAAG,CAAC,gCAAgC,CAAC;aACrC,IAAI,CAAC,GAAG,CAAC,CAAC;KACd;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
1
+ {"version":3,"file":"ValueSpecificationEditorHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,kBAAkB,EAIlB,uBAAuB,EACvB,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACX,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,yBAAyB,EACzB,wBAAwB,EACxB,mBAAmB,GAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EACL,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,uCAAuC,CAAC;AAE/C,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAE/B,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC/C,iBAAsC,EACtC,kBAAwB,EACE,EAAE;IAC5B,MAAM,cAAc,GAAG,IAAI,wBAAwB,CAAC,iBAAiB,CAAC,CAAC;IACvE,iCAAiC,CAC/B,cAAc,EACd,4BAA4B,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,kBAAkB,CAAC,CAAC,CACzE,CAAC;IACF,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAEF,MAAM,qCAAqC,GAAG,CAC5C,aAA4B,EAC5B,YAAoB,EACpB,eAAgC,EACZ,EAAE;IACtB,MAAM,iBAAiB,GAAG,aAAa,CAAC,IAAI,CAAC;IAC7C,IACE,iBAAiB,KAAK,cAAc,CAAC,IAAI;QACzC,iBAAiB,KAAK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;KACd;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
@@ -13,21 +13,21 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type Multiplicity, type FunctionExpression, type ValueSpecification, type ObserverContext, type VariableExpression, type InstanceValue, type GraphFetchTree, type AbstractPropertyExpression, type GenericTypeReference, type SimpleFunctionExpression, type PackageableElementReference, type Function, type LambdaFunction, type FunctionType, type CollectionInstanceValue, type PropertyReference } from '@finos/legend-graph';
16
+ import { type Multiplicity, type FunctionExpression, ValueSpecification, type ObserverContext, type VariableExpression, type InstanceValue, type GraphFetchTree, type AbstractPropertyExpression, type GenericTypeReference, type SimpleFunctionExpression, type PackageableElementReference, type Function, type LambdaFunction, type FunctionType, type CollectionInstanceValue, type PropertyReference } from '@finos/legend-graph';
17
17
  export declare const valueSpecification_setGenericType: (target: ValueSpecification, val: GenericTypeReference | undefined) => void;
18
18
  export declare const valueSpecification_setMultiplicity: (target: ValueSpecification, val: Multiplicity) => void;
19
19
  export declare const simpleFunctionExpression_setFunc: (target: SimpleFunctionExpression, val: PackageableElementReference<Function> | undefined) => void;
20
- export declare const functionExpression_setParametersValues: (target: FunctionExpression, val: ValueSpecification[], context: ObserverContext) => void;
20
+ export declare const functionExpression_setParametersValues: (target: FunctionExpression, values: ValueSpecification[], context: ObserverContext) => void;
21
21
  export declare const functionExpression_setParameterValue: (target: FunctionExpression, val: ValueSpecification, idx: number, context: ObserverContext) => void;
22
22
  export declare const functionExpression_addParameterValue: (target: FunctionExpression, val: ValueSpecification, context: ObserverContext) => void;
23
23
  export declare const propertyExpression_setFunc: (target: AbstractPropertyExpression, val: PropertyReference) => void;
24
24
  export declare const variableExpression_setName: (target: VariableExpression, val: string) => void;
25
- export declare const collectionInstanceValue_setValues: (target: CollectionInstanceValue, val: ValueSpecification[], observableContext: ObserverContext) => void;
26
- export declare const instanceValue_setValue: (target: InstanceValue, val: unknown, idx: number) => void;
27
- export declare const instanceValue_setValues: (target: InstanceValue, val: unknown[]) => void;
28
- export declare const graphFetchTree_addSubTree: (target: GraphFetchTree, val: GraphFetchTree) => void;
25
+ export declare const collectionInstanceValue_setValues: (target: CollectionInstanceValue, values: ValueSpecification[], observerContext: ObserverContext) => void;
26
+ export declare const instanceValue_setValue: (target: InstanceValue, val: unknown, idx: number, observerContext: ObserverContext) => void;
27
+ export declare const instanceValue_setValues: (target: InstanceValue, values: unknown[], observerContext: ObserverContext) => void;
28
+ export declare const graphFetchTree_addSubTree: (target: GraphFetchTree, val: GraphFetchTree, observerContext: ObserverContext) => void;
29
29
  export declare const graphFetchTree_removeSubTree: (target: GraphFetchTree, val: GraphFetchTree) => void;
30
- export declare const lambdaFunction_setExpressionSequence: (target: LambdaFunction, val: ValueSpecification[], observableContext: ObserverContext) => void;
31
- export declare const lambdaFunction_setExpression: (target: LambdaFunction, val: ValueSpecification, idx: number, observableContext: ObserverContext) => void;
30
+ export declare const lambdaFunction_setExpressionSequence: (target: LambdaFunction, val: ValueSpecification[], observerContext: ObserverContext) => void;
31
+ export declare const lambdaFunction_setExpression: (target: LambdaFunction, val: ValueSpecification, idx: number, observerContext: ObserverContext) => void;
32
32
  export declare const functionType_setParameters: (target: FunctionType, val: VariableExpression[]) => void;
33
33
  //# sourceMappingURL=ValueSpecificationModifierHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ValueSpecificationModifierHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,QAAQ,EACb,KAAK,cAAc,E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C;AAEF,eAAO,MAAM,4BAA4B,WAE7B,cAAc,OACjB,kBAAkB,OAClB,MAAM,qBACQ,eAAe,SAOrC,CAAC;AAEF,eAAO,MAAM,0BAA0B,WAC5B,YAAY,OAAO,kBAAkB,EAAE,SAGjD,CAAC"}
1
+ {"version":3,"file":"ValueSpecificationModifierHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,kBAAkB,EAClB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EAMvB,MAAM,qBAAqB,CAAC;AAI7B,eAAO,MAAM,iCAAiC,WACnC,kBAAkB,OAAO,oBAAoB,GAAG,SAAS,KAAG,IAGtE,CAAC;AAEF,eAAO,MAAM,kCAAkC,WACpC,kBAAkB,OAAO,YAAY,KAAG,IAGlD,CAAC;AAEF,eAAO,MAAM,gCAAgC,WAEjC,wBAAwB,OAE3B,4BAA4B,QAAQ,CAAC,GAAG,SAAS,KACrD,IAGJ,CAAC;AAEF,eAAO,MAAM,sCAAsC,WAEvC,kBAAkB,UAClB,kBAAkB,EAAE,WACnB,eAAe,KACvB,IAKJ,CAAC;AAEF,eAAO,MAAM,oCAAoC,WAErC,kBAAkB,OACrB,kBAAkB,OAClB,MAAM,WACF,eAAe,KACvB,IAGJ,CAAC;AAEF,eAAO,MAAM,oCAAoC,WAErC,kBAAkB,OACrB,kBAAkB,WACd,eAAe,KACvB,IAGJ,CAAC;AAEF,eAAO,MAAM,0BAA0B,WAC5B,0BAA0B,OAAO,iBAAiB,KAAG,IAG/D,CAAC;AAEF,eAAO,MAAM,0BAA0B,WAC5B,kBAAkB,OAAO,MAAM,KAAG,IAG5C,CAAC;AAEF,eAAO,MAAM,iCAAiC,WAElC,uBAAuB,UACvB,kBAAkB,EAAE,mBACX,eAAe,SAMnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,WAEvB,aAAa,OAChB,OAAO,OACP,MAAM,mBACM,eAAe,SAOnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,WAExB,aAAa,UACb,OAAO,EAAE,mBACA,eAAe,SAQnC,CAAC;AAEF,eAAO,MAAM,yBAAyB,WAE1B,cAAc,OACjB,cAAc,mBACF,eAAe,KAC/B,IAMJ,CAAC;AAEF,eAAO,MAAM,4BAA4B,WAC9B,cAAc,OAAO,cAAc,KAAG,IAGhD,CAAC;AAEF,eAAO,MAAM,oCAAoC,WAErC,cAAc,OACjB,kBAAkB,EAAE,mBACR,eAAe,SAMnC,CAAC;AAEF,eAAO,MAAM,4BAA4B,WAE7B,cAAc,OACjB,kBAAkB,OAClB,MAAM,mBACM,eAAe,SAOnC,CAAC;AAEF,eAAO,MAAM,0BAA0B,WAC5B,YAAY,OAAO,kBAAkB,EAAE,SAGjD,CAAC"}
@@ -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 { observe_ValueSpecification, observe_GenericTypeReference, observe_PackageableElementReference, observe_VariableExpression, } from '@finos/legend-graph';
16
+ import { ValueSpecification, observe_ValueSpecification, observe_GenericTypeReference, observe_PackageableElementReference, observe_VariableExpression, observe_GraphFetchTree, } from '@finos/legend-graph';
17
17
  import { addUniqueEntry, deleteEntry } from '@finos/legend-shared';
18
18
  import { action } from 'mobx';
19
19
  export const valueSpecification_setGenericType = action((target, val) => {
@@ -27,8 +27,8 @@ export const simpleFunctionExpression_setFunc = action((target,
27
27
  val) => {
28
28
  target.func = val ? observe_PackageableElementReference(val) : undefined;
29
29
  });
30
- export const functionExpression_setParametersValues = action((target, val, context) => {
31
- target.parametersValues = val.map((v) => observe_ValueSpecification(v, context));
30
+ export const functionExpression_setParametersValues = action((target, values, context) => {
31
+ target.parametersValues = values.map((val) => observe_ValueSpecification(val, context));
32
32
  });
33
33
  export const functionExpression_setParameterValue = action((target, val, idx, context) => {
34
34
  target.parametersValues[idx] = observe_ValueSpecification(val, context);
@@ -42,28 +42,31 @@ export const propertyExpression_setFunc = action((target, val) => {
42
42
  export const variableExpression_setName = action((target, val) => {
43
43
  target.name = val;
44
44
  });
45
- export const collectionInstanceValue_setValues = action((target, val, observableContext) => {
46
- target.values = val.map((v) => observe_ValueSpecification(v, observableContext));
45
+ export const collectionInstanceValue_setValues = action((target, values, observerContext) => {
46
+ target.values = values.map((val) => observe_ValueSpecification(val, observerContext));
47
47
  });
48
- export const instanceValue_setValue = action((target, val, idx) => {
49
- target.values[idx] = val;
48
+ export const instanceValue_setValue = action((target, val, idx, observerContext) => {
49
+ target.values[idx] =
50
+ val instanceof ValueSpecification
51
+ ? observe_ValueSpecification(val, observerContext)
52
+ : val;
50
53
  });
51
- export const instanceValue_setValues = action((target, val) => {
52
- // TODO?: do we have to observe the values here?
53
- // we might need to do so when we refactor collection value
54
- target.values = val;
54
+ export const instanceValue_setValues = action((target, values, observerContext) => {
55
+ target.values = values.map((val) => val instanceof ValueSpecification
56
+ ? observe_ValueSpecification(val, observerContext)
57
+ : val);
55
58
  });
56
- export const graphFetchTree_addSubTree = action((target, val) => {
57
- addUniqueEntry(target.subTrees, val);
59
+ export const graphFetchTree_addSubTree = action((target, val, observerContext) => {
60
+ addUniqueEntry(target.subTrees, observe_GraphFetchTree(val, observerContext));
58
61
  });
59
62
  export const graphFetchTree_removeSubTree = action((target, val) => {
60
63
  deleteEntry(target.subTrees, val);
61
64
  });
62
- export const lambdaFunction_setExpressionSequence = action((target, val, observableContext) => {
63
- target.expressionSequence = val.map((v) => observe_ValueSpecification(v, observableContext));
65
+ export const lambdaFunction_setExpressionSequence = action((target, val, observerContext) => {
66
+ target.expressionSequence = val.map((v) => observe_ValueSpecification(v, observerContext));
64
67
  });
65
- export const lambdaFunction_setExpression = action((target, val, idx, observableContext) => {
66
- target.expressionSequence[idx] = observe_ValueSpecification(val, observableContext);
68
+ export const lambdaFunction_setExpression = action((target, val, idx, observerContext) => {
69
+ target.expressionSequence[idx] = observe_ValueSpecification(val, observerContext);
67
70
  });
68
71
  export const functionType_setParameters = action((target, val) => {
69
72
  target.parameters = val.map((v) => observe_VariableExpression(v));
@@ -1 +1 @@
1
- {"version":3,"file":"ValueSpecificationModifierHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAiBL,0BAA0B,EAC1B,4BAA4B,EAC5B,mCAAmC,EACnC,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,MAAM,CAAC,MAAM,iCAAiC,GAAG,MAAM,CACrD,CAAC,MAA0B,EAAE,GAAqC,EAAQ,EAAE;IAC1E,MAAM,CAAC,WAAW,GAAG,GAAG,CAAC,CAAC,CAAC,4BAA4B,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CACtD,CAAC,MAA0B,EAAE,GAAiB,EAAQ,EAAE;IACtD,MAAM,CAAC,YAAY,GAAG,GAAG,CAAC;AAC5B,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,MAAM,CACpD,CACE,MAAgC;AAChC,wDAAwD;AACxD,GAAsD,EAChD,EAAE;IACR,MAAM,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,mCAAmC,CAAC,GAAG,C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kB,CAAC,GAAG,CAAC,GAAG,0BAA0B,CACzD,GAAG,EACH,iBAAiB,CAClB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAC9C,CAAC,MAAoB,EAAE,GAAyB,EAAE,EAAE;IAClD,MAAM,CAAC,UAAU,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC;AACpE,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"ValueSpecificationModifierHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,kBAAkB,EAclB,0BAA0B,EAC1B,4BAA4B,EAC5B,mCAAmC,EACnC,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,MAAM,CAAC,MAAM,iCAAiC,GAAG,MAAM,CACrD,CAAC,MAA0B,EAAE,GAAqC,EAAQ,EAAE;IAC1E,MAAM,CAAC,WAAW,GAAG,GAAG,CAAC,CAAC,CAAC,4BAA4B,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CACtD,CAAC,MAA0B,EAAE,GAAiB,EAAQ,EAAE;IACtD,MAAM,CAAC,YAAY,GAAG,GAAG,CAAC;AAC5B,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,MAAM,CACpD,CACE,MAAgC;AAChC,wDAAwD;AACxD,GAAsD,EAChD,EAAE;IACR,MAAM,CAAC,IAAI,GAAG,GAAG,CAAC,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,eAAgC,EAChC,EAAE;IACF,MAAM,CAAC,kBAAkB,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACxC,0BAA0B,CAAC,CAAC,EAAE,eAAe,CAAC,CAC/C,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAChD,CACE,MAAsB,EACtB,GAAuB,EACvB,GAAW,EACX,eAAgC,EAChC,EAAE;IACF,MAAM,CAAC,kBAAkB,CAAC,GAAG,CAAC,GAAG,0BAA0B,CACzD,GAAG,EACH,eAAe,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAC9C,CAAC,MAAoB,EAAE,GAAyB,EAAE,EAAE;IAClD,MAAM,CAAC,UAAU,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC;AACpE,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderWatermarkState.d.ts","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EAMxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGjE,qBAAa,0BAA2B,YAAW,QAAQ;IACzD,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,KAAK,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACvC,kBAAkB,UAAS;gBAEf,iBAAiB,EAAE,iBAAiB;IAchD,UAAU,IAAI,IAAI;IAWlB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIzC,eAAe,IAAI,IAAI;IAQvB,QAAQ,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IASnD,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO;IAMrD,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
1
+ {"version":3,"file":"QueryBuilderWatermarkState.d.ts","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EAMxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGjE,qBAAa,0BAA2B,YAAW,QAAQ;IACzD,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,KAAK,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACvC,kBAAkB,UAAS;gBAEf,iBAAiB,EAAE,iBAAiB;IAchD,UAAU,IAAI,IAAI;IAWlB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIzC,eAAe,IAAI,IAAI;IAQvB,QAAQ,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAMnD,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO;IAMrD,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
@@ -52,7 +52,7 @@ export class QueryBuilderWatermarkState {
52
52
  }
53
53
  setValue(val) {
54
54
  this.value = val
55
- ? observe_ValueSpecification(val, this.queryBuilderState.observableContext)
55
+ ? observe_ValueSpecification(val, this.queryBuilderState.observerContext)
56
56
  : undefined;
57
57
  }
58
58
  isVariableUsed(variable) {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBu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b,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;SAC1B;aAAM;YACL,IAAI,CAAC,UAAU,EAAE,CAAC;SACnB;IACH,CAAC;IAED,QAAQ,CAAC,GAAmC;QAC1C,IAAI,CAAC,KAAK,GAAG,GAAG;YACd,CAAC,CAAC,0BAA0B,CACxB,GAAG,EACH,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CACzC;YACH,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,cAAc,CAAC,QAA4B;QACzC,OAAO,IAAI,CAAC,KAAK;YACf,CAAC,CAAC,kCAAkC,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC;YAC1D,CAAC,CAAC,KAAK,CAAC;IACZ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,eAAe;YAC5C,IAAI,CAAC,KAAK,IAAI,EAAE;SACjB,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderWatermarkState.js","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,0BAA0B,EAC1B,4BAA4B,EAC5B,WAAW,EACX,sBAAsB,EACtB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAE3F,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAEhG,MAAM,OAAO,0BAA0B;IAC5B,iBAAiB,CAAoB;IAC9C,KAAK,CAAkC;IACvC,kBAAkB,GAAG,KAAK,CAAC;IAE3B,YAA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IAAI,CAAC,KAAK,IAAI,EAAE;SACjB,CAAC,CAAC;IACL,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -41,38 +41,39 @@
41
41
  "test:watch": "jest --watch"
42
42
  },
43
43
  "dependencies": {
44
- "@ag-grid-community/client-side-row-model": "29.1.0",
45
- "@ag-grid-community/core": "29.1.0",
46
- "@ag-grid-community/react": "29.1.0",
47
- "@ag-grid-community/styles": "29.1.0",
48
- "@finos/legend-application": "13.0.3",
49
- "@finos/legend-art": "5.0.37",
50
- "@finos/legend-graph": "24.1.0",
51
- "@finos/legend-server-depot": "4.4.7",
52
- "@finos/legend-shared": "8.0.2",
53
- "@finos/legend-storage": "3.0.42",
44
+ "@ag-grid-community/client-side-row-model": "29.2.0",
45
+ "@ag-grid-community/core": "29.2.0",
46
+ "@ag-grid-community/react": "29.2.0",
47
+ "@ag-grid-community/styles": "29.2.0",
48
+ "@finos/legend-application": "13.0.4",
49
+ "@finos/legend-art": "5.0.38",
50
+ "@finos/legend-graph": "25.0.0",
51
+ "@finos/legend-server-depot": "4.4.8",
52
+ "@finos/legend-shared": "8.0.3",
53
+ "@finos/legend-storage": "3.0.43",
54
54
  "@testing-library/react": "14.0.0",
55
55
  "@types/papaparse": "5.3.7",
56
- "@types/react": "18.0.28",
56
+ "@types/react": "18.0.29",
57
57
  "@types/react-dom": "18.0.11",
58
- "mobx": "6.8.0",
58
+ "mathjs": "11.7.0",
59
+ "mobx": "6.9.0",
59
60
  "mobx-react-lite": "3.4.3",
60
61
  "monaco-editor": "0.36.1",
61
- "papaparse": "5.4.0",
62
+ "papaparse": "5.4.1",
62
63
  "react": "18.2.0",
63
64
  "react-dnd": "16.0.1",
64
65
  "react-dom": "18.2.0",
65
66
  "serializr": "3.0.2"
66
67
  },
67
68
  "devDependencies": {
68
- "@finos/legend-dev-utils": "2.0.46",
69
+ "@finos/legend-dev-utils": "2.0.47",
69
70
  "@jest/globals": "29.5.0",
70
71
  "cross-env": "7.0.3",
71
72
  "eslint": "8.36.0",
72
73
  "jest": "29.5.0",
73
74
  "npm-run-all": "4.1.5",
74
- "rimraf": "4.4.0",
75
- "sass": "1.59.3",
75
+ "rimraf": "4.4.1",
76
+ "sass": "1.60.0",
76
77
  "typescript": "5.0.2"
77
78
  },
78
79
  "peerDependencies": {
@@ -100,6 +100,7 @@ const QueryBuilderConstantExpressionEditor = observer(
100
100
  const valSpec = buildDefaultInstanceValue(
101
101
  queryBuilderState.graphManagerState.graph,
102
102
  variableType,
103
+ queryBuilderState.observerContext,
103
104
  );
104
105
  constantState.setValueSpec(valSpec);
105
106
  };
@@ -167,7 +168,7 @@ const QueryBuilderConstantExpressionEditor = observer(
167
168
  constantState.setValueSpec(val);
168
169
  }}
169
170
  graph={queryBuilderState.graphManagerState.graph}
170
- obseverContext={queryBuilderState.observableContext}
171
+ obseverContext={queryBuilderState.observerContext}
171
172
  typeCheckOption={{
172
173
  expectedType: variableType,
173
174
  match: variableType === PrimitiveType.DATETIME,
@@ -209,6 +210,7 @@ export const QueryBuilderConstantExpressionPanel = observer(
209
210
  const defaultVal = buildDefaultInstanceValue(
210
211
  graph,
211
212
  PrimitiveType.STRING,
213
+ queryBuilderState.observerContext,
212
214
  );
213
215
  const constantName = generateEnumerableNameFromToken(
214
216
  varNames,
@@ -249,7 +249,7 @@ export const QueryBuilderParametersPanel = observer(
249
249
  new GenericType(PrimitiveType.STRING),
250
250
  ),
251
251
  ),
252
- queryBuilderState.observableContext,
252
+ queryBuilderState.observerContext,
253
253
  queryBuilderState.graphManagerState.graph,
254
254
  );
255
255
  queryParameterState.setSelectedParameter(parmaterState);
@@ -329,7 +329,7 @@ export const QueryBuilderParametersPanel = observer(
329
329
  {queryParameterState.parameterValuesEditorState.showModal && (
330
330
  <LambdaParameterValuesEditor
331
331
  graph={queryBuilderState.graphManagerState.graph}
332
- observerContext={queryBuilderState.observableContext}
332
+ observerContext={queryBuilderState.observerContext}
333
333
  lambdaParametersState={queryParameterState}
334
334
  />
335
335
  )}
@@ -88,7 +88,7 @@ const DerivedPropertyParameterValueEditor = observer(
88
88
  derivedPropertyExpressionState.propertyExpression,
89
89
  item.variable,
90
90
  idx + 1,
91
- derivedPropertyExpressionState.queryBuilderState.observableContext,
91
+ derivedPropertyExpressionState.queryBuilderState.observerContext,
92
92
  );
93
93
  },
94
94
  [derivedPropertyExpressionState, idx],
@@ -156,7 +156,7 @@ const DerivedPropertyParameterValueEditor = observer(
156
156
  guaranteeType(nextExpression, AbstractPropertyExpression),
157
157
  guaranteeNonNullable(newParameterValue),
158
158
  index + 1,
159
- queryBuilderState.observableContext,
159
+ queryBuilderState.observerContext,
160
160
  );
161
161
  }
162
162
  });
@@ -201,9 +201,10 @@ const DerivedPropertyParameterValueEditor = observer(
201
201
  variable,
202
202
  derivedPropertyExpressionState.queryBuilderState.graphManagerState
203
203
  .graph,
204
+ derivedPropertyExpressionState.queryBuilderState.observerContext,
204
205
  ),
205
206
  idx + 1,
206
- derivedPropertyExpressionState.queryBuilderState.observableContext,
207
+ derivedPropertyExpressionState.queryBuilderState.observerContext,
207
208
  );
208
209
  const derivedPropertyExpressionStates =
209
210
  derivedPropertyExpressionState.propertyExpressionState
@@ -244,13 +245,12 @@ const DerivedPropertyParameterValueEditor = observer(
244
245
  val,
245
246
  idx + 1,
246
247
  derivedPropertyExpressionState.queryBuilderState
247
- .observableContext,
248
+ .observerContext,
248
249
  );
249
250
  }}
250
251
  graph={graph}
251
252
  obseverContext={
252
- derivedPropertyExpressionState.queryBuilderState
253
- .observableContext
253
+ derivedPropertyExpressionState.queryBuilderState.observerContext
254
254
  }
255
255
  typeCheckOption={{
256
256
  expectedType: parameterType,