@finos/legend-query-builder 4.14.40 → 4.14.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
  2. package/lib/components/QueryBuilderParametersPanel.js +20 -2
  3. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  4. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  5. package/lib/components/QueryBuilderSideBar.js +5 -14
  6. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  7. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  8. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +12 -4
  9. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  10. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  11. package/lib/components/filter/QueryBuilderFilterPanel.js +6 -2
  12. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  13. package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
  14. package/lib/components/result/QueryBuilderResultPanel.js +2 -1
  15. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  16. package/lib/components/shared/BasicValueSpecificationEditor.d.ts +11 -9
  17. package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
  18. package/lib/components/shared/BasicValueSpecificationEditor.js +158 -143
  19. package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
  20. package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
  21. package/lib/components/shared/QueryBuilderVariableSelector.js +8 -1
  22. package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
  23. package/lib/index.css +2 -2
  24. package/lib/index.css.map +1 -1
  25. package/lib/package.json +1 -1
  26. package/lib/stores/QueryBuilderPropertyEditorState.d.ts +1 -0
  27. package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
  28. package/lib/stores/QueryBuilderPropertyEditorState.js +2 -1
  29. package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
  30. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  31. package/lib/stores/QueryBuilderState.js +12 -0
  32. package/lib/stores/QueryBuilderState.js.map +1 -1
  33. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js +2 -2
  34. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -1
  35. package/lib/stores/filter/QueryBuilderFilterState.d.ts +1 -1
  36. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  37. package/lib/stores/filter/QueryBuilderFilterState.js +4 -3
  38. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  39. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +2 -2
  40. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -1
  41. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.d.ts +1 -0
  42. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.d.ts.map +1 -1
  43. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js +16 -0
  44. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js.map +1 -1
  45. package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts +3 -0
  46. package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -1
  47. package/lib/stores/milestoning/QueryBuilderMilestoningState.js +40 -0
  48. package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
  49. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +1 -0
  50. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
  51. package/lib/stores/shared/ValueSpecificationEditorHelper.js +48 -0
  52. package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
  53. package/package.json +8 -8
  54. package/src/components/QueryBuilderParametersPanel.tsx +55 -0
  55. package/src/components/QueryBuilderSideBar.tsx +0 -35
  56. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +22 -6
  57. package/src/components/filter/QueryBuilderFilterPanel.tsx +13 -5
  58. package/src/components/result/QueryBuilderResultPanel.tsx +9 -1
  59. package/src/components/shared/BasicValueSpecificationEditor.tsx +288 -285
  60. package/src/components/shared/QueryBuilderVariableSelector.tsx +22 -0
  61. package/src/stores/QueryBuilderPropertyEditorState.ts +2 -1
  62. package/src/stores/QueryBuilderState.ts +14 -0
  63. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +2 -2
  64. package/src/stores/filter/QueryBuilderFilterState.ts +6 -3
  65. package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +2 -2
  66. package/src/stores/milestoning/QueryBuilderMilestoningHelper.ts +24 -0
  67. package/src/stores/milestoning/QueryBuilderMilestoningState.ts +54 -0
  68. package/src/stores/shared/ValueSpecificationEditorHelper.ts +63 -0
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderFilterOperator_In.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_In.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAGL,kBAAkB,EAClB,uBAAuB,EACvB,4BAA4B,EAC5B,WAAW,EACX,WAAW,EACX,cAAc,EACd,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,yBAAyB,EACzB,8BAA8B,GAC/B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,8CAA8C,CAAC;AACjG,OAAO,EACL,kBAAkB,EAClB,mCAAmC,EACnC,mBAAmB,GACpB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAEzF,MAAM,OAAO,6BACX,SAAQ,0BAA0B;IAGlC,QAAQ,CA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ACV,iCAAiC,CAAC,EAAE,EACpC,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC,CAAC,kCAAkC,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AAED,MAAM,OAAO,gCAAiC,SAAQ,6BAA6B;IACxE,QAAQ,CAAC,oBAA0C;QAC1D,OAAO,WAAW,CAAC;IACrB,CAAC;IAEQ,8BAA8B,CACrC,oBAA0C,EAC1C,mBAAwC;QAExC,OAAO,kBAAkB,CACvB,KAAK,CAAC,8BAA8B,CAClC,oBAAoB,EACpB,mBAAmB,CACpB,CACF,CAAC;IACJ,CAAC;IAEQ,yBAAyB,CAChC,WAAoC,EACpC,UAAoC;QAEpC,MAAM,eAAe,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACxD,OAAO,eAAe;YACpB,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,WAAW,EAAE,eAAe,CAAC;YAC/D,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,sBAAsB;SAC1D,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderFilterOperator_In.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_In.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAGL,kBAAkB,EAClB,uBAAuB,EACvB,4BAA4B,EAC5B,WAAW,EACX,WAAW,EACX,cAAc,EACd,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,yBAAyB,EACzB,8BAA8B,GAC/B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,8CAA8C,CAAC;AACjG,OAAO,EACL,kBAAkB,EAClB,mCA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AA0C,EAC1C,mBAAwC;QAExC,OAAO,8BAA8B,CACnC,oBAAoB,EACpB,iCAAiC,CAAC,EAAE,EACpC,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED,yBAAyB,CACvB,WAAoC,EACpC,UAAoC;QAEpC,OAAO,yBAAyB,CAC9B,WAAW,EACX,UAAU,EACV,iCAAiC,CAAC,EAAE,EACpC,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC,CAAC,kCAAkC,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AAED,MAAM,OAAO,gCAAiC,SAAQ,6BAA6B;IACxE,QAAQ,CAAC,oBAA0C;QAC1D,OAAO,mBAAmB,CAAC;IAC7B,CAAC;IAEQ,8BAA8B,CACrC,oBAA0C,EAC1C,mBAAwC;QAExC,OAAO,kBAAkB,CACvB,KAAK,CAAC,8BAA8B,CAClC,oBAAoB,EACpB,mBAAmB,CACpB,CACF,CAAC;IACJ,CAAC;IAEQ,yBAAyB,CAChC,WAAoC,EACpC,UAAoC;QAEpC,MAAM,eAAe,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACxD,OAAO,eAAe;YACpB,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,WAAW,EAAE,eAAe,CAAC;YAC/D,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,sBAAsB;SAC1D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -67,5 +67,6 @@ export declare const matchMilestoningParameterValue: (stereotype: MILESTONING_ST
67
67
  * See https://github.com/finos/legend-studio/pull/891
68
68
  */
69
69
  export declare const generateMilestonedPropertyParameterValue: (derivedPropertyExpressionState: QueryBuilderDerivedPropertyExpressionState, idx: number) => ValueSpecification | undefined;
70
+ export declare const initializeMilestoningStateFromDerivedProperty: (derivedPropertyExpressionState: QueryBuilderDerivedPropertyExpressionState) => void;
70
71
  export declare const validateMilestoningPropertyExpressionChain: (sourceStereotype: MILESTONING_STEREOTYPE | undefined, targetStereotype: MILESTONING_STEREOTYPE, propertyExpression: AbstractPropertyExpression) => void;
71
72
  //# sourceMappingURL=QueryBuilderMilestoningHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderMilestoningHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/milestoning/QueryBuilderMilestoningHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAC1B,eAAe,EAEf,sBAAsB,EAEtB,KAAK,kBAAkB,EAKvB,KAAK,SAAS,EAEf,MAAM,qBAAqB,CAAC;AAM7B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,uCAAuC,CAAC;AACxG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,eAAO,MAAM,wCAAwC,aACzC,eAAe,SAClB,SAAS,KACf,sBAAsB,GAAG,SAiB3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,iCAAiC,8BACjB,0BAA0B,qBAClC,iBAAiB,2BACX,0BAA0B,GAAG,SAAS,KAC9D,OAyCF,CAAC;AAEF,eAAO,MAAM,iBAAiB,WACpB,kBAAkB,GAAG,SAAS,UAC9B,kBAAkB,GAAG,SAAS,KACrC,OA6BF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,eAC7B,sBAAsB,OAC7B,MAAM,kBACK,kBAAkB,mBACjB,4BAA4B,KAC5C,OAgBF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,wCAAwC,mCACnB,0CAA0C,OACrE,MAAM,KACV,kBAAkB,GAAG,SA6EvB,CAAC;AAEF,eAAO,MAAM,0CAA0C,qBACnC,sBAAsB,GAAG,SAAS,oBAClC,sBAAsB,sBACpB,0BAA0B,KAC7C,IA4BF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderMilestoningHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/milestoning/QueryBuilderMilestoningHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAC1B,eAAe,EAEf,sBAAsB,EAEtB,KAAK,kBAAkB,EAKvB,KAAK,SAAS,EAEf,MAAM,qBAAqB,CAAC;AAM7B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,uCAAuC,CAAC;AACxG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,eAAO,MAAM,wCAAwC,aACzC,eAAe,SAClB,SAAS,KACf,sBAAsB,GAAG,SAiB3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,iCAAiC,8BACjB,0BAA0B,qBAClC,iBAAiB,2BACX,0BAA0B,GAAG,SAAS,KAC9D,OAyCF,CAAC;AAEF,eAAO,MAAM,iBAAiB,WACpB,kBAAkB,GAAG,SAAS,UAC9B,kBAAkB,GAAG,SAAS,KACrC,OA6BF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,eAC7B,sBAAsB,OAC7B,MAAM,kBACK,kBAAkB,mBACjB,4BAA4B,KAC5C,OAgBF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,wCAAwC,mCACnB,0CAA0C,OACrE,MAAM,KACV,kBAAkB,GAAG,SA6EvB,CAAC;AAEF,eAAO,MAAM,6CAA6C,mCACxB,0CAA0C,KACzE,IAoBF,CAAC;AAEF,eAAO,MAAM,0CAA0C,qBACnC,sBAAsB,GAAG,SAAS,oBAClC,sBAAsB,sBACpB,0BAA0B,KAC7C,IA4BF,CAAC"}
@@ -185,6 +185,22 @@ export const generateMilestonedPropertyParameterValue = (derivedPropertyExpressi
185
185
  .getMilestoningImplementation(temporalTarget)
186
186
  .generateMilestoningDate(isDatePropagationSupported, hasDefaultMilestoningDate ?? false, prevPropertyExpression, temporalSource, idx, derivedPropertyExpressionState);
187
187
  };
188
+ export const initializeMilestoningStateFromDerivedProperty = (derivedPropertyExpressionState) => {
189
+ const milestoningState = derivedPropertyExpressionState.queryBuilderState.milestoningState;
190
+ const temporalTarget = derivedPropertyExpressionState.propertyExpression.func.value.genericType
191
+ .value.rawType instanceof Class &&
192
+ derivedPropertyExpressionState.propertyExpression.func.value._OWNER
193
+ ._generatedMilestonedProperties.length !== 0
194
+ ? getMilestoneTemporalStereotype(derivedPropertyExpressionState.propertyExpression.func.value
195
+ .genericType.value.rawType, derivedPropertyExpressionState.queryBuilderState.graphManagerState
196
+ .graph)
197
+ : undefined;
198
+ if (temporalTarget) {
199
+ milestoningState
200
+ .getMilestoningImplementation(temporalTarget)
201
+ .initializeMilestoningParameters();
202
+ }
203
+ };
188
204
  export const validateMilestoningPropertyExpressionChain = (sourceStereotype, targetStereotype, propertyExpression) => {
189
205
  if (sourceStereotype !== MILESTONING_STEREOTYPE.BITEMPORAL &&
190
206
  targetStereotype !== sourceStereotype) {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderMilestoningHelper.js","sourceRoot":"","sources":["../../../src/stores/milestoning/QueryBuilderMilestoningHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAC1B,eAAe,EACf,KAAK,EACL,sBAAsB,EACtB,8BAA8B,EAE9B,WAAW,EACX,8CAA8C,EAC9C,sBAAsB,EACtB,cAAc,EAEd,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAK9B,MAAM,CAAC,MAAM,w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,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC1D,MAAM,IAAI,yBAAyB,CACjC,sCAAsC,sBAAsB,CAAC,UAAU,sCAAsC,CAC9G,CAAC;YACJ,CAAC;iBAAM,IAAI,kBAAkB,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC1D,MAAM,IAAI,yBAAyB,CACjC,sCAAsC,sBAAsB,CAAC,UAAU,4CAA4C,CACpH,CAAC;YACJ,CAAC;QACH,CAAC;aAAM,IAAI,kBAAkB,CAAC,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC5D,MAAM,IAAI,yBAAyB,CACjC,sCAAsC,gBAAgB,qCAAqC,CAC5F,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"QueryBuilderMilestoningHelper.js","sourceRoot":"","sources":["../../../src/stores/milestoning/QueryBuilderMilestoningHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAC1B,eAAe,EACf,KAAK,EACL,sBAAsB,EACtB,8BAA8B,EAE9B,WAAW,EACX,8CAA8C,EAC9C,sBAAsB,EACtB,cAAc,EAEd,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAK9B,MAAM,CAAC,MAAM,wCAAwC,GAAG,CACtD,QAAyB,EACzB,KAAgB,EACoB,EAAE;IACtC,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC9B,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,OAAO,8BAA8B,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACtD,CAAC;SAAM,IAAI,KAAK,YAAY,WAAW,EAAE,CAAC;QACxC,MAAM,6BAA6B,GACjC,8CAA8C,CAAC,KAAK,EA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,EACpD,gBAAwC,EACxC,kBAA8C,EACxC,EAAE;IACR,IACE,gBAAgB,KAAK,sBAAsB,CAAC,UAAU;QACtD,gBAAgB,KAAK,gBAAgB,EACrC,CAAC;QACD,IAAI,gBAAgB,KAAK,sBAAsB,CAAC,UAAU,EAAE,CAAC;YAC3D,IACE,kBAAkB,CAAC,gBAAgB,CAAC,MAAM,KAAK,CAAC;gBAChD,CAAC,gBAAgB,EACjB,CAAC;gBACD,MAAM,IAAI,yBAAyB,CACjC,sCAAsC,sBAAsB,CAAC,UAAU,sCAAsC,CAC9G,CAAC;YACJ,CAAC;iBAAM,IAAI,kBAAkB,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC1D,MAAM,IAAI,yBAAyB,CACjC,sCAAsC,sBAAsB,CAAC,UAAU,sCAAsC,CAC9G,CAAC;YACJ,CAAC;iBAAM,IAAI,kBAAkB,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC1D,MAAM,IAAI,yBAAyB,CACjC,sCAAsC,sBAAsB,CAAC,UAAU,4CAA4C,CACpH,CAAC;YACJ,CAAC;QACH,CAAC;aAAM,IAAI,kBAAkB,CAAC,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC5D,MAAM,IAAI,yBAAyB,CACjC,sCAAsC,gBAAgB,qCAAqC,CAC5F,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC,CAAC"}
@@ -48,7 +48,10 @@ export declare class QueryBuilderMilestoningState implements Hashable {
48
48
  clearMilestoningDates(): void;
49
49
  updateMilestoningConfiguration(): void;
50
50
  buildMilestoningParameter(parameterName: string): ValueSpecification;
51
+ updateMilestoningParameterValue(parameter: VariableExpression, value: ValueSpecification | undefined): void;
52
+ getMilestoningParameterValue(milestoningParameter: ValueSpecification): ValueSpecification | undefined;
51
53
  isVariableUsed(variable: VariableExpression): boolean;
54
+ isMilestoningParameter(parameter: VariableExpression): boolean;
52
55
  get hashCode(): string;
53
56
  }
54
57
  //# sourceMappingURL=QueryBuilderMilestoningState.d.ts.map
@@ -1 +1 @@
1
- {"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,EAOxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,QAAQ,EAId,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAKjE,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AAWxG,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;IAEhD,SAAS,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC3C,OAAO,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;gBAE7B,iBAAiB,EAAE,iBAAiB;IAmDhD,uBAAuB,IAAI,IAAI;IA8D/B,IAAI,iBAAiB,IAAI,OAAO,CAQ/B;IAED,IAAI,wBAAwB,IAAI,OAAO,CAUtC;IAED,IAAI,qCAAqC,IAAI,OAAO,CAanD;IAED,IAAI,oBAAoB,IAAI,OAAO,CAOlC;IAED,IAAI,2BAA2B,IAAI,OAAO,CAKzC;IAED,IAAI,2BAA2B,IAAI,OAAO,CAQzC;IAED,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI;IAcrD,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,SAA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AkB;IAyBpE,+BAA+B,CAC7B,SAAS,EAAE,kBAAkB,EAC7B,KAAK,EAAE,kBAAkB,GAAG,SAAS,GACpC,IAAI;IAUP,4BAA4B,CAC1B,oBAAoB,EAAE,kBAAkB,GACvC,kBAAkB,GAAG,SAAS;IAYjC,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO;IAUrD,sBAAsB,CAAC,SAAS,EAAE,kBAAkB,GAAG,OAAO;IA2B9D,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF"}
@@ -288,6 +288,20 @@ export class QueryBuilderMilestoningState {
288
288
  }
289
289
  return milestoningParameter;
290
290
  }
291
+ updateMilestoningParameterValue(parameter, value) {
292
+ const variableState = this.queryBuilderState.parametersState.parameterStates.find((param) => param.parameter.name === parameter.name);
293
+ if (variableState) {
294
+ variableState.setValue(value);
295
+ }
296
+ }
297
+ getMilestoningParameterValue(milestoningParameter) {
298
+ let value = milestoningParameter;
299
+ if (milestoningParameter instanceof VariableExpression) {
300
+ const paramState = this.queryBuilderState.parametersState.parameterStates.find((param) => param.parameter.name === milestoningParameter.name);
301
+ value = paramState?.value;
302
+ }
303
+ return value;
304
+ }
291
305
  isVariableUsed(variable) {
292
306
  const usedInBusiness = this.businessDate
293
307
  ? isValueExpressionReferencedInValue(variable, this.businessDate)
@@ -297,6 +311,32 @@ export class QueryBuilderMilestoningState {
297
311
  : false;
298
312
  return usedInBusiness || usedInProcessingDate;
299
313
  }
314
+ isMilestoningParameter(parameter) {
315
+ let isMilestoningParameter = false;
316
+ if (this.businessDate instanceof VariableExpression) {
317
+ isMilestoningParameter =
318
+ parameter.name ===
319
+ guaranteeType(this.businessDate, VariableExpression).name;
320
+ }
321
+ if (this.processingDate instanceof VariableExpression) {
322
+ isMilestoningParameter =
323
+ isMilestoningParameter ||
324
+ parameter.name ===
325
+ guaranteeType(this.processingDate, VariableExpression).name;
326
+ }
327
+ if (this.startDate instanceof VariableExpression) {
328
+ isMilestoningParameter =
329
+ isMilestoningParameter ||
330
+ parameter.name ===
331
+ guaranteeType(this.startDate, VariableExpression).name;
332
+ }
333
+ if (this.endDate instanceof VariableExpression) {
334
+ isMilestoningParameter =
335
+ isMilestoningParameter ||
336
+ parameter.name === guaranteeType(this.endDate, VariableExpression).name;
337
+ }
338
+ return isMilestoningParameter;
339
+ }
300
340
  get hashCode() {
301
341
  return hashArray([
302
342
  QUERY_BUILDER_STATE_HASH_STRUCTURE.MILESTONING_STATE,
@@ -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,EACb,yBAAyB,EACzB,qCAAqC,EACrC,mCAAmC,EACnC,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,SAAS,EACT,oBAAoB,EACpB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,kCAAkC,CAAC;AAEtF,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;AACvI,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO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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,kCAAkC,CAAC,iBAAiB;YACpD,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,EACb,yBAAyB,EACzB,qCAAqC,EACrC,mCAAmC,EACnC,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,SAAS,EACT,oBAAoB,EACpB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,kCAAkC,CAAC;AAEtF,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;AACvI,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,uCAAuC,E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,CAAC;QAClE,CAAC;QACD,IAAI,IAAI,CAAC,SAAS,YAAY,kBAAkB,EAAE,CAAC;YACjD,sBAAsB;gBACpB,sBAAsB;oBACtB,SAAS,CAAC,IAAI;wBACZ,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAAC,IAAI,CAAC;QAC7D,CAAC;QACD,IAAI,IAAI,CAAC,OAAO,YAAY,kBAAkB,EAAE,CAAC;YAC/C,sBAAsB;gBACpB,sBAAsB;oBACtB,SAAS,CAAC,IAAI,KAAK,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,IAAI,CAAC;QAC5E,CAAC;QACD,OAAO,sBAAsB,CAAC;IAChC,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,iBAAiB;YACpD,IAAI,CAAC,YAAY,IAAI,EAAE;YACvB,IAAI,CAAC,cAAc,IAAI,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -28,4 +28,5 @@ export declare const generateVariableExpressionMockValue: (parameter: VariableEx
28
28
  }) => ValueSpecification | undefined;
29
29
  export declare const getValueSpecificationStringValue: (valueSpecification: ValueSpecification) => string | undefined;
30
30
  export declare const valueSpecReturnTDS: (val: ValueSpecification, graph: PureModel) => boolean;
31
+ export declare const convertTextToPrimitiveInstanceValue: (expectedType: Type, value: string, obseverContext: ObserverContext) => PrimitiveInstanceValue | null;
31
32
  //# 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,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,IAAI,EAET,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,kBAAkB,EAElB,WAAW,EAMX,sBAAsB,EACtB,aAAa,EACb,cAAc,EAEd,wBAAwB,EACxB,cAAc,EAOf,MAAM,qBAAqB,CAAC;AAgB7B,eAAO,MAAM,iCAAiC,sBACzB,MAAM,sBACL,IAAI,KACvB,wBAOF,CAAC;AACF,eAAO,MAAM,2BAA2B,UAC/B,SAAS,QACV,cAAc,SACb,OAAO,mBACG,eAAe,KAC/B,sBAQF,CAAC;AAEF,eAAO,MAAM,qCAAqC,kBACjC,aAAa,SACrB,SAAS,mBACC,eAAe,YACtB;IACR,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC5C,KACA,kBAgCF,CAAC;AAEF,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,KACvB,MACyE,CAAC;AAE7E,eAAO,MAAM,yBAAyB,UAC7B,SAAS,QACV,IAAI,mBACO,eAAe,kCACA,OAAO,KACtC,kBA+DF,CAAC;AAEF,eAAO,MAAM,6BAA6B,UACjC,SAAS,mBACC,eAAe,KAC/B,cAgBF,CAAC;AAEF,eAAO,MAAM,gCAAgC,eAC/B,iBAAiB,mBACZ,eAAe,KAC/B,SAIA,CAAC;AAEJ,eAAO,MAAM,mCAAmC,cACnC,kBAAkB,SACtB,SAAS,mBACC,eAAe,YACtB;IACR,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC5C,KACA,kBAAkB,GAAG,SAyCvB,CAAC;AAEF,eAAO,MAAM,gCAAgC,uBACvB,kBAAkB,KACrC,MAAM,GAAG,SAkBX,CAAC;AAEF,eAAO,MAAM,kBAAkB,QACxB,kBAAkB,SAChB,SAAS,KACf,OAeF,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,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,IAAI,EAET,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,kBAAkB,EAElB,WAAW,EAMX,sBAAsB,EACtB,aAAa,EACb,cAAc,EAEd,wBAAwB,EACxB,cAAc,EAOf,MAAM,qBAAqB,CAAC;AAgB7B,eAAO,MAAM,iCAAiC,sBACzB,MAAM,sBACL,IAAI,KACvB,wBAOF,CAAC;AACF,eAAO,MAAM,2BAA2B,UAC/B,SAAS,QACV,cAAc,SACb,OAAO,mBACG,eAAe,KAC/B,sBAQF,CAAC;AAEF,eAAO,MAAM,qCAAqC,kBACjC,aAAa,SACrB,SAAS,mBACC,eAAe,YACtB;IACR,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC5C,KACA,kBAgCF,CAAC;AAEF,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,KACvB,MACyE,CAAC;AAE7E,eAAO,MAAM,yBAAyB,UAC7B,SAAS,QACV,IAAI,mBACO,eAAe,kCACA,OAAO,KACtC,kBA+DF,CAAC;AAEF,eAAO,MAAM,6BAA6B,UACjC,SAAS,mBACC,eAAe,KAC/B,cAgBF,CAAC;AAEF,eAAO,MAAM,gCAAgC,eAC/B,iBAAiB,mBACZ,eAAe,KAC/B,SAIA,CAAC;AAEJ,eAAO,MAAM,mCAAmC,cACnC,kBAAkB,SACtB,SAAS,mBACC,eAAe,YACtB;IACR,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC5C,KACA,kBAAkB,GAAG,SAyCvB,CAAC;AAEF,eAAO,MAAM,gCAAgC,uBACvB,kBAAkB,KACrC,MAAM,GAAG,SAkBX,CAAC;AAEF,eAAO,MAAM,kBAAkB,QACxB,kBAAkB,SAChB,SAAS,KACf,OAeF,CAAC;AAEF,eAAO,MAAM,mCAAmC,iBAChC,IAAI,SACX,MAAM,kBACG,eAAe,KAC9B,sBAAsB,GAAG,IAyD3B,CAAC"}
@@ -150,4 +150,52 @@ export const valueSpecReturnTDS = (val, graph) => {
150
150
  // We should fix this to properly build filter functions after a tds function
151
151
  return Boolean(retunType && tdsType && (retunType === tdsType || retunType === tdsRowType));
152
152
  };
153
+ export const convertTextToPrimitiveInstanceValue = (expectedType, value, obseverContext) => {
154
+ let result = null;
155
+ if (expectedType instanceof PrimitiveType) {
156
+ switch (expectedType.path) {
157
+ case PRIMITIVE_TYPE.STRING: {
158
+ result = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(expectedType)));
159
+ instanceValue_setValues(result, [value.toString()], obseverContext);
160
+ break;
161
+ }
162
+ case PRIMITIVE_TYPE.NUMBER:
163
+ case PRIMITIVE_TYPE.FLOAT:
164
+ case PRIMITIVE_TYPE.DECIMAL:
165
+ case PRIMITIVE_TYPE.INTEGER: {
166
+ if (isNaN(Number(value))) {
167
+ return null;
168
+ }
169
+ result = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(expectedType)));
170
+ instanceValue_setValues(result, [Number(value)], obseverContext);
171
+ break;
172
+ }
173
+ case PRIMITIVE_TYPE.DATE:
174
+ case PRIMITIVE_TYPE.STRICTDATE: {
175
+ if (isNaN(Date.parse(value))) {
176
+ return null;
177
+ }
178
+ result = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(expectedType)));
179
+ instanceValue_setValues(result, [value], obseverContext);
180
+ break;
181
+ }
182
+ case PRIMITIVE_TYPE.DATETIME: {
183
+ if (isNaN(Date.parse(value)) ||
184
+ !new Date(value).getTime() ||
185
+ (value.includes('%') &&
186
+ (isNaN(Date.parse(value.slice(1))) ||
187
+ !new Date(value.slice(1)).getTime()))) {
188
+ return null;
189
+ }
190
+ result = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(expectedType)));
191
+ instanceValue_setValues(result, [value], obseverContext);
192
+ break;
193
+ }
194
+ default:
195
+ // unsupported expected type, just escape
196
+ return null;
197
+ }
198
+ }
199
+ return result;
200
+ };
153
201
  //# sourceMappingURL=ValueSpecificationEditorHelper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ValueSpecificationEditorHelper.js","sourceRoot":"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ditorHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAQL,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACX,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,yBAAyB,EACzB,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,mCAAmC,EACnC,YAAY,EACZ,cAAc,EACd,gCAAgC,EAChC,+BAA+B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EACL,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,2CAA2C,CAAC;AAEnD,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC/C,iBAAyB,EACzB,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;AACF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,KAAgB,EAChB,IAAoB,EACpB,KAAc,EACd,eAAgC,EACR,EAAE;IAC1B,MAAM,QAAQ,GAAG,IAAI,sBAAsB,CACzC,4BAA4B,CAAC,MAAM,CACjC,IAAI,WAAW,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAC9C,CACF,CAAC;IACF,uBAAuB,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AAM,CAAC,IAAI,WAAW,CAAC,YAAY,CAAC,CAAC,CACnE,CAAC;gBACF,uBAAuB,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,CAAC;gBACzD,MAAM;YACR,CAAC;YACD,KAAK,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;gBAC7B,IACE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;oBACxB,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE;oBAC1B,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;wBAClB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;4BAChC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,EACzC,CAAC;oBACD,OAAO,IAAI,CAAC;gBACd,CAAC;gBACD,MAAM,GAAG,IAAI,sBAAsB,CACjC,4BAA4B,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,YAAY,CAAC,CAAC,CACnE,CAAC;gBACF,uBAAuB,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,CAAC;gBACzD,MAAM;YACR,CAAC;YACD;gBACE,yCAAyC;gBACzC,OAAO,IAAI,CAAC;QAChB,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.14.40",
3
+ "version": "4.14.41",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,13 +42,13 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "15.1.4",
46
- "@finos/legend-art": "7.1.33",
47
- "@finos/legend-graph": "31.10.1",
48
- "@finos/legend-lego": "1.2.34",
49
- "@finos/legend-server-depot": "6.0.42",
50
- "@finos/legend-shared": "10.0.37",
51
- "@finos/legend-storage": "3.0.87",
45
+ "@finos/legend-application": "15.1.5",
46
+ "@finos/legend-art": "7.1.34",
47
+ "@finos/legend-graph": "31.10.2",
48
+ "@finos/legend-lego": "1.2.35",
49
+ "@finos/legend-server-depot": "6.0.43",
50
+ "@finos/legend-shared": "10.0.38",
51
+ "@finos/legend-storage": "3.0.88",
52
52
  "@testing-library/react": "15.0.7",
53
53
  "@types/react": "18.3.3",
54
54
  "@types/react-dom": "18.3.0",
@@ -29,9 +29,11 @@ import {
29
29
  ModalFooterButton,
30
30
  PanelFormValidatedTextField,
31
31
  QuestionCircleIcon,
32
+ PanelFormSection,
32
33
  } from '@finos/legend-art';
33
34
  import {
34
35
  type Type,
36
+ type ValueSpecification,
35
37
  VariableExpression,
36
38
  GenericTypeExplicitReference,
37
39
  GenericType,
@@ -53,6 +55,10 @@ import {
53
55
  getPackageableElementOptionFormatter,
54
56
  type PackageableElementOption,
55
57
  } from '@finos/legend-lego/graph-editor';
58
+ import { deepClone } from '@finos/legend-shared';
59
+ import { BasicValueSpecificationEditor } from './shared/BasicValueSpecificationEditor.js';
60
+ import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graph/QueryBuilderMetaModelConst.js';
61
+ import { createSupportedFunctionExpression } from '../stores/shared/ValueSpecificationEditorHelper.js';
56
62
 
57
63
  type MultiplicityOption = { label: string; value: Multiplicity };
58
64
 
@@ -118,6 +124,13 @@ const VariableExpressionEditor = observer(
118
124
  const nameInputRef = useCallback((ref: HTMLInputElement | null): void => {
119
125
  ref?.focus();
120
126
  }, []);
127
+ const [defaultMilestoningValue, setDefaultMilestoningValue] = useState(
128
+ deepClone(lambdaParameterState.value),
129
+ );
130
+ const isMilestoningParameter =
131
+ queryBuilderState.milestoningState.isMilestoningParameter(
132
+ lambdaParameterState.parameter,
133
+ );
121
134
 
122
135
  const getValidationMessage = (input: string): string | undefined =>
123
136
  !hasEditedName
@@ -146,6 +159,13 @@ const VariableExpressionEditor = observer(
146
159
  if (isCreating) {
147
160
  queryParametersState.addParameter(lambdaParameterState);
148
161
  }
162
+ if (isMilestoningParameter) {
163
+ queryBuilderState.milestoningState.updateMilestoningParameterValue(
164
+ lambdaParameterState.parameter,
165
+ defaultMilestoningValue,
166
+ );
167
+ }
168
+
149
169
  handleCancel();
150
170
  };
151
171
 
@@ -231,6 +251,41 @@ const VariableExpressionEditor = observer(
231
251
  }
232
252
  />
233
253
  </div>
254
+ {isMilestoningParameter && defaultMilestoningValue && (
255
+ <PanelFormSection>
256
+ <div className="panel__content__form__section__header__label">
257
+ Value
258
+ </div>
259
+ <div className="panel__content__form__section__header__prompt">
260
+ Choose a default value for this milestoning parameter
261
+ </div>
262
+ <div className="query-builder__variable-editor">
263
+ <BasicValueSpecificationEditor
264
+ valueSpecification={defaultMilestoningValue}
265
+ setValueSpecification={(val: ValueSpecification): void => {
266
+ setDefaultMilestoningValue(deepClone(val));
267
+ }}
268
+ graph={queryBuilderState.graphManagerState.graph}
269
+ obseverContext={queryBuilderState.observerContext}
270
+ typeCheckOption={{
271
+ expectedType: selectedType.value,
272
+ match: selectedType.value === PrimitiveType.DATETIME,
273
+ }}
274
+ resetValue={() => {
275
+ const now = createSupportedFunctionExpression(
276
+ QUERY_BUILDER_SUPPORTED_FUNCTIONS.NOW,
277
+ PrimitiveType.DATETIME,
278
+ );
279
+ setDefaultMilestoningValue(now);
280
+ queryBuilderState.milestoningState.updateMilestoningParameterValue(
281
+ lambdaParameterState.parameter,
282
+ now,
283
+ );
284
+ }}
285
+ />
286
+ </div>
287
+ </PanelFormSection>
288
+ )}
234
289
  </ModalBody>
235
290
  <ModalFooter>
236
291
  <ModalFooterButton
@@ -18,7 +18,6 @@ import {
18
18
  CustomSelectorInput,
19
19
  createFilter,
20
20
  CogIcon,
21
- ClockIcon,
22
21
  clsx,
23
22
  PanelHeader,
24
23
  compareLabelFn,
@@ -34,7 +33,6 @@ import {
34
33
  LATEST_DATE,
35
34
  PrimitiveInstanceValue,
36
35
  VariableExpression,
37
- getMilestoneTemporalStereotype,
38
36
  PackageableElementExplicitReference,
39
37
  RuntimePointer,
40
38
  VARIABLE_REFERENCE_TOKEN,
@@ -75,23 +73,11 @@ const generateClassLabel = (
75
73
  val: Class,
76
74
  queryBuilderState: QueryBuilderState,
77
75
  ): React.ReactNode => {
78
- const milestoneStereotype = getMilestoneTemporalStereotype(
79
- val,
80
- queryBuilderState.graphManagerState.graph,
81
- );
82
-
83
76
  const isDeprecatedClass = isElementDeprecated(
84
77
  val,
85
78
  queryBuilderState.graphManagerState.graph,
86
79
  );
87
80
 
88
- let milestoningTooltipText: string | undefined;
89
- if (milestoneStereotype) {
90
- milestoningTooltipText = queryBuilderState.milestoningState
91
- .getMilestoningImplementation(milestoneStereotype)
92
- .getMilestoningToolTipText();
93
- }
94
-
95
81
  return (
96
82
  <div
97
83
  className={clsx('query-builder__setup__class-option-label', {
@@ -102,12 +88,6 @@ const generateClassLabel = (
102
88
  <div className="query-builder__setup__class-option-label__name">
103
89
  {val.name}
104
90
  </div>
105
- {milestoningTooltipText && (
106
- <ClockIcon
107
- className="query-builder__setup__class-option-label__milestoning"
108
- title={`This class is milestoned:\n${milestoningTooltipText}`}
109
- />
110
- )}
111
91
  </div>
112
92
  );
113
93
  };
@@ -151,10 +131,6 @@ export const QueryBuilderClassSelector = observer(
151
131
  onClassChange?.(val.value);
152
132
  };
153
133
 
154
- // milestoning
155
- const showMilestoningEditor = (): void =>
156
- milestoningState.setShowMilestoningEditor(true);
157
-
158
134
  return (
159
135
  <div className="query-builder__setup__config-group query-builder__setup__config-group--class">
160
136
  <div className="query-builder__setup__config-group__item ">
@@ -192,17 +168,6 @@ export const QueryBuilderClassSelector = observer(
192
168
  .TEMPORARY__isLightColorThemeEnabled,
193
169
  })}
194
170
  />
195
- {queryBuilderState.isQuerySupported && (
196
- <button
197
- className="btn--dark btn__icon--dark query-builder__setup__milestoning"
198
- tabIndex={-1}
199
- onClick={showMilestoningEditor}
200
- disabled={!milestoningState.isMilestonedQuery}
201
- title="Edit Milestoning Parameters"
202
- >
203
- <ClockIcon />
204
- </button>
205
- )}
206
171
  {milestoningState.isMilestonedQuery && (
207
172
  <MilestoningParametersEditor
208
173
  queryBuilderState={queryBuilderState}
@@ -1163,8 +1163,12 @@ export const QueryBuilderTDSPanel = observer(
1163
1163
  >
1164
1164
  <div className="query-builder__projection__result-modifier-prompt__header__label__title">
1165
1165
  {getNameOfValueSpecification(
1166
- tdsState.queryBuilderState.milestoningState
1167
- .businessDate,
1166
+ tdsState.queryBuilderState.milestoningState.getMilestoningParameterValue(
1167
+ tdsState.queryBuilderState.milestoningState
1168
+ .businessDate,
1169
+ ) ??
1170
+ tdsState.queryBuilderState.milestoningState
1171
+ .businessDate,
1168
1172
  tdsState.queryBuilderState,
1169
1173
  )}
1170
1174
  </div>
@@ -1182,8 +1186,12 @@ export const QueryBuilderTDSPanel = observer(
1182
1186
  >
1183
1187
  <div className="query-builder__projection__result-modifier-prompt__header__label__title">
1184
1188
  {getNameOfValueSpecification(
1185
- tdsState.queryBuilderState.milestoningState
1186
- .processingDate,
1189
+ tdsState.queryBuilderState.milestoningState.getMilestoningParameterValue(
1190
+ tdsState.queryBuilderState.milestoningState
1191
+ .processingDate,
1192
+ ) ??
1193
+ tdsState.queryBuilderState.milestoningState
1194
+ .processingDate,
1187
1195
  tdsState.queryBuilderState,
1188
1196
  )}
1189
1197
  </div>
@@ -1223,12 +1231,20 @@ export const QueryBuilderTDSPanel = observer(
1223
1231
  <div className="query-builder__projection__result-modifier-prompt__header__label__title">
1224
1232
  (
1225
1233
  {getNameOfValueSpecification(
1226
- tdsState.queryBuilderState.milestoningState.startDate,
1234
+ tdsState.queryBuilderState.milestoningState.getMilestoningParameterValue(
1235
+ tdsState.queryBuilderState.milestoningState
1236
+ .startDate,
1237
+ ) ??
1238
+ tdsState.queryBuilderState.milestoningState
1239
+ .startDate,
1227
1240
  tdsState.queryBuilderState,
1228
1241
  )}{' '}
1229
1242
  -{' '}
1230
1243
  {getNameOfValueSpecification(
1231
- tdsState.queryBuilderState.milestoningState.endDate,
1244
+ tdsState.queryBuilderState.milestoningState.getMilestoningParameterValue(
1245
+ tdsState.queryBuilderState.milestoningState.endDate,
1246
+ ) ??
1247
+ tdsState.queryBuilderState.milestoningState.endDate,
1232
1248
  tdsState.queryBuilderState,
1233
1249
  )}
1234
1250
  )
@@ -92,6 +92,7 @@ import {
92
92
  SimpleFunctionExpression,
93
93
  type ValueSpecification,
94
94
  VariableExpression,
95
+ PrimitiveType,
95
96
  } from '@finos/legend-graph';
96
97
  import {
97
98
  type QueryBuilderProjectionColumnDragSource,
@@ -111,6 +112,7 @@ import { getPropertyChainName } from '../../stores/QueryBuilderPropertyEditorSta
111
112
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../graph/QueryBuilderMetaModelConst.js';
112
113
  import { buildPropertyExpressionChain } from '../../stores/QueryBuilderValueSpecificationBuilderHelper.js';
113
114
  import { QueryBuilderPanelIssueCountBadge } from '../shared/QueryBuilderPanelIssueCountBadge.js';
115
+ import { convertTextToPrimitiveInstanceValue } from '../../stores/shared/ValueSpecificationEditorHelper.js';
114
116
 
115
117
  const isCollectionProperty = (
116
118
  propertyExpression: AbstractPropertyExpression,
@@ -771,11 +773,17 @@ const QueryBuilderFilterConditionEditor = observer(
771
773
  };
772
774
  const debouncedTypeaheadSearch = useMemo(
773
775
  () =>
774
- debounce(
775
- (inputVal: string) => node.condition.handleTypeaheadSearch(),
776
- 1000,
777
- ),
778
- [node],
776
+ debounce((inputValue: string) => {
777
+ const inputValueSpec = convertTextToPrimitiveInstanceValue(
778
+ PrimitiveType.STRING,
779
+ inputValue,
780
+ queryBuilderState.observerContext,
781
+ );
782
+ return node.condition.handleTypeaheadSearch(
783
+ inputValueSpec ?? undefined,
784
+ );
785
+ }, 1000),
786
+ [node, queryBuilderState.observerContext],
779
787
  );
780
788
  const cleanUpReloadValues = (): void => {
781
789
  node.condition.typeaheadSearchState.complete();