@finos/legend-query-builder 4.14.37 → 4.14.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. package/lib/components/QueryBuilder.d.ts.map +1 -1
  2. package/lib/components/QueryBuilder.js +10 -9
  3. package/lib/components/QueryBuilder.js.map +1 -1
  4. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  5. package/lib/components/QueryBuilderSideBar.js +3 -3
  6. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  7. package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
  8. package/lib/components/QueryBuilderTextEditor.js +17 -3
  9. package/lib/components/QueryBuilderTextEditor.js.map +1 -1
  10. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts +5 -0
  11. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
  12. package/lib/components/explorer/QueryBuilderMilestoningEditor.js +10 -5
  13. package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
  14. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  15. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +35 -3
  16. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
  17. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  18. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +11 -1
  19. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  20. package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
  21. package/lib/components/result/QueryBuilderResultPanel.js +6 -5
  22. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  23. package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
  24. package/lib/components/workflows/ClassQueryBuilder.js +3 -3
  25. package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
  26. package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
  27. package/lib/components/workflows/MappingQueryBuilder.js +3 -3
  28. package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
  29. package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
  30. package/lib/components/workflows/ServiceQueryBuilder.js +3 -3
  31. package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
  32. package/lib/index.css +2 -2
  33. package/lib/index.css.map +1 -1
  34. package/lib/package.json +1 -1
  35. package/lib/stores/QueryBuilderTextEditorState.d.ts +4 -1
  36. package/lib/stores/QueryBuilderTextEditorState.d.ts.map +1 -1
  37. package/lib/stores/QueryBuilderTextEditorState.js +19 -2
  38. package/lib/stores/QueryBuilderTextEditorState.js.map +1 -1
  39. package/lib/stores/QueryLoaderState.d.ts +2 -2
  40. package/lib/stores/QueryLoaderState.d.ts.map +1 -1
  41. package/lib/stores/QueryLoaderState.js +3 -3
  42. package/lib/stores/QueryLoaderState.js.map +1 -1
  43. package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts +1 -1
  44. package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +1 -1
  45. package/lib/stores/explorer/QueryFunctionsExplorerState.js +2 -1
  46. package/lib/stores/explorer/QueryFunctionsExplorerState.js.map +1 -1
  47. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +1 -0
  48. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  49. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +8 -0
  50. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  51. package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -1
  52. package/lib/stores/milestoning/QueryBuilderMilestoningState.js +9 -3
  53. package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
  54. package/package.json +5 -5
  55. package/src/components/QueryBuilder.tsx +16 -15
  56. package/src/components/QueryBuilderSideBar.tsx +3 -2
  57. package/src/components/QueryBuilderTextEditor.tsx +46 -11
  58. package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +60 -46
  59. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +53 -3
  60. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +116 -19
  61. package/src/components/result/QueryBuilderResultPanel.tsx +21 -23
  62. package/src/components/workflows/ClassQueryBuilder.tsx +3 -2
  63. package/src/components/workflows/MappingQueryBuilder.tsx +3 -2
  64. package/src/components/workflows/ServiceQueryBuilder.tsx +7 -3
  65. package/src/stores/QueryBuilderTextEditorState.ts +20 -2
  66. package/src/stores/QueryLoaderState.ts +5 -7
  67. package/src/stores/explorer/QueryFunctionsExplorerState.ts +6 -2
  68. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +11 -0
  69. package/src/stores/milestoning/QueryBuilderMilestoningState.ts +11 -7
@@ -44,7 +44,6 @@ export class QueryBuilderMilestoningState {
44
44
  startDate: observable,
45
45
  endDate: observable,
46
46
  showMilestoningEditor: observable,
47
- isMilestonedQuery: computed,
48
47
  setProcessingDate: action,
49
48
  setBusinessDate: action,
50
49
  setStartDate: action,
@@ -56,6 +55,9 @@ export class QueryBuilderMilestoningState {
56
55
  initializeAllVersionsInRangeParameters: action,
57
56
  clearAllVersionsInRangeParameters: action,
58
57
  clearGetAllParameters: action,
58
+ isAllVersionsEnabled: computed,
59
+ isAllVersionsInRangeEnabled: computed,
60
+ isMilestonedQuery: computed,
59
61
  hashCode: computed,
60
62
  });
61
63
  this.queryBuilderState = queryBuilderState;
@@ -245,14 +247,18 @@ export class QueryBuilderMilestoningState {
245
247
  exculdeMilestoningState: true,
246
248
  })) {
247
249
  const paramState = this.queryBuilderState.parametersState.parameterStates.find((p) => p.parameter === this.startDate);
248
- this.queryBuilderState.parametersState.removeParameter(guaranteeNonNullable(paramState));
250
+ if (paramState) {
251
+ this.queryBuilderState.parametersState.removeParameter(paramState);
252
+ }
249
253
  }
250
254
  if (this.endDate instanceof VariableExpression &&
251
255
  !this.queryBuilderState.isVariableUsed(this.endDate, {
252
256
  exculdeMilestoningState: true,
253
257
  })) {
254
258
  const paramState = this.queryBuilderState.parametersState.parameterStates.find((p) => p.parameter === this.endDate);
255
- this.queryBuilderState.parametersState.removeParameter(guaranteeNonNullable(paramState));
259
+ if (paramState) {
260
+ this.queryBuilderState.parametersState.removeParameter(paramState);
261
+ }
256
262
  }
257
263
  this.setStartDate(undefined);
258
264
  this.setEndDate(undefined);
@@ -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,EAAE,uCAAuC,EAAE,MAAM,wEAAwE,CAAC;AACjI,OAAO,EAAE,gCAAgC,EAAE,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ACpD,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,EAAE,MAAM,wEAAwE,CAAC;AACjI,OAAO,EAAE,gCAAgC,EAAE,MAAM,oEAAoE,CAAC;AACtH,OAAO,EACL,uCAAuC,EACvC,oCAAoC,GACrC,MAAM,sCAAsC,CAAC;AAE9C,MAAM,OAAO,4BAA4B;I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YAAY,IAAI,EAAE;YACvB,IAAI,CAAC,cAAc,IAAI,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.14.37",
3
+ "version": "4.14.38",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,10 +42,10 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "15.1.1",
46
- "@finos/legend-art": "7.1.30",
47
- "@finos/legend-graph": "31.9.15",
48
- "@finos/legend-lego": "1.2.31",
45
+ "@finos/legend-application": "15.1.2",
46
+ "@finos/legend-art": "7.1.31",
47
+ "@finos/legend-graph": "31.9.16",
48
+ "@finos/legend-lego": "1.2.32",
49
49
  "@finos/legend-server-depot": "6.0.40",
50
50
  "@finos/legend-shared": "10.0.35",
51
51
  "@finos/legend-storage": "3.0.85",
@@ -224,7 +224,7 @@ const QueryBuilderStatusBar = observer(
224
224
  title={
225
225
  !queryBuilderState.canBuildQuery
226
226
  ? 'Please fix query errors to edit in Pure'
227
- : 'Edit Query in Pure'
227
+ : 'Edit Pure'
228
228
  }
229
229
  >
230
230
  <HackerIcon />
@@ -260,6 +260,11 @@ export const QueryBuilder = observer(
260
260
  fetchStructureState.implementation instanceof QueryBuilderTDSState;
261
261
  const openLambdaEditor = (mode: QueryBuilderTextEditorMode): void =>
262
262
  queryBuilderState.textEditorState.openModal(mode);
263
+ const openPure = (): void =>
264
+ queryBuilderState.textEditorState.openModal(
265
+ QueryBuilderTextEditorMode.TEXT,
266
+ true,
267
+ );
263
268
  const toggleShowFunctionPanel = (): void => {
264
269
  queryBuilderState.setShowFunctionsExplorerPanel(
265
270
  !queryBuilderState.showFunctionsExplorerPanel,
@@ -373,13 +378,13 @@ export const QueryBuilder = observer(
373
378
  }
374
379
  };
375
380
 
376
- const editQueryInPure = (): void => {
381
+ const editPure = (): void => {
377
382
  openLambdaEditor(QueryBuilderTextEditorMode.TEXT);
378
383
  };
379
- const showQueryInPure = (): void => {
380
- openLambdaEditor(QueryBuilderTextEditorMode.TEXT);
384
+ const showPure = (): void => {
385
+ openPure();
381
386
  };
382
- const showQueryProtocol = (): void => {
387
+ const showProtocol = (): void => {
383
388
  openLambdaEditor(QueryBuilderTextEditorMode.JSON);
384
389
  };
385
390
 
@@ -773,7 +778,7 @@ export const QueryBuilder = observer(
773
778
  </MenuContentItemLabel>
774
779
  </MenuContentItem>
775
780
  <MenuContentItem
776
- onClick={editQueryInPure}
781
+ onClick={editPure}
777
782
  disabled={!queryBuilderState.canBuildQuery}
778
783
  title={
779
784
  !queryBuilderState.canBuildQuery
@@ -784,12 +789,10 @@ export const QueryBuilder = observer(
784
789
  <MenuContentItemIcon>
785
790
  <HackerIcon />
786
791
  </MenuContentItemIcon>
787
- <MenuContentItemLabel>
788
- Edit Query in Pure
789
- </MenuContentItemLabel>
792
+ <MenuContentItemLabel>Edit Pure</MenuContentItemLabel>
790
793
  </MenuContentItem>
791
794
  <MenuContentItem
792
- onClick={showQueryInPure}
795
+ onClick={showPure}
793
796
  disabled={!queryBuilderState.canBuildQuery}
794
797
  title={
795
798
  !queryBuilderState.canBuildQuery
@@ -800,12 +803,10 @@ export const QueryBuilder = observer(
800
803
  <MenuContentItemIcon>
801
804
  <CodeIcon />
802
805
  </MenuContentItemIcon>
803
- <MenuContentItemLabel>
804
- Show Query in Pure
805
- </MenuContentItemLabel>
806
+ <MenuContentItemLabel>Show Pure</MenuContentItemLabel>
806
807
  </MenuContentItem>
807
808
  <MenuContentItem
808
- onClick={showQueryProtocol}
809
+ onClick={showProtocol}
809
810
  disabled={!queryBuilderState.canBuildQuery}
810
811
  title={
811
812
  !queryBuilderState.canBuildQuery
@@ -817,7 +818,7 @@ export const QueryBuilder = observer(
817
818
  <SerializeIcon />
818
819
  </MenuContentItemIcon>
819
820
  <MenuContentItemLabel>
820
- Show Query Protocol
821
+ Show Protocol
821
822
  </MenuContentItemLabel>
822
823
  </MenuContentItem>
823
824
  <MenuContentItem onClick={compileQuery}>
@@ -21,6 +21,7 @@ import {
21
21
  ClockIcon,
22
22
  clsx,
23
23
  PanelHeader,
24
+ compareLabelFn,
24
25
  } from '@finos/legend-art';
25
26
  import { observer } from 'mobx-react-lite';
26
27
  import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
@@ -256,7 +257,7 @@ const BasicQueryBuilderSetup = observer(
256
257
  // mapping
257
258
  const mappingOptions = queryBuilderState.graphManagerState.usableMappings
258
259
  .map(buildElementOption)
259
- .sort((a, b) => a.label.localeCompare(b.label));
260
+ .sort(compareLabelFn);
260
261
  const selectedMappingOption = queryBuilderState.executionContextState
261
262
  .mapping
262
263
  ? buildElementOption(queryBuilderState.executionContextState.mapping)
@@ -285,7 +286,7 @@ const BasicQueryBuilderSetup = observer(
285
286
  new RuntimePointer(PackageableElementExplicitReference.create(rt)),
286
287
  )
287
288
  .map(buildRuntimeValueOption)
288
- .sort((a, b) => a.label.localeCompare(b.label));
289
+ .sort(compareLabelFn);
289
290
  const selectedRuntimeOption = queryBuilderState.executionContextState
290
291
  .runtimeValue
291
292
  ? buildRuntimeValueOption(
@@ -43,6 +43,7 @@ export const QueryBuilderTextEditor = observer(
43
43
  const { queryBuilderState } = props;
44
44
  const applicationStore = useApplicationStore();
45
45
  const queryTextEditorState = queryBuilderState.textEditorState;
46
+ const isReadOnly = queryTextEditorState.isReadOnly;
46
47
  const close = applicationStore.guardUnhandledError(() =>
47
48
  flowResult(queryBuilderState.textEditorState.closeModal()),
48
49
  );
@@ -52,6 +53,27 @@ export const QueryBuilderTextEditor = observer(
52
53
  applicationStore.layoutService.setShowBackdrop(false);
53
54
  };
54
55
  const mode = queryTextEditorState.mode;
56
+ const isEditingPure =
57
+ mode === QueryBuilderTextEditorMode.TEXT && !isReadOnly;
58
+ const title =
59
+ mode === QueryBuilderTextEditorMode.TEXT
60
+ ? isReadOnly
61
+ ? 'Pure Query'
62
+ : 'Edit Pure Query'
63
+ : 'Pure Query Protocol';
64
+
65
+ const copyExpression = (): void => {
66
+ applicationStore.clipboardService
67
+ .copyTextToClipboard(queryTextEditorState.text ?? '')
68
+ .then(() =>
69
+ applicationStore.notificationService.notifySuccess(
70
+ 'Query Copied',
71
+ undefined,
72
+ 2500,
73
+ ),
74
+ )
75
+ .catch(applicationStore.alertUnhandledError);
76
+ };
55
77
  useEffect(() => {
56
78
  flowResult(
57
79
  queryTextEditorState.convertLambdaObjectToGrammarString({
@@ -81,7 +103,7 @@ export const QueryBuilderTextEditor = observer(
81
103
  })}
82
104
  >
83
105
  <ModalHeader>
84
- <div className="modal__title">Query</div>
106
+ <div className="modal__title">{title}</div>
85
107
  {queryTextEditorState.parserError && (
86
108
  <div className="modal__title__error-badge">
87
109
  Failed to parse query
@@ -99,15 +121,22 @@ export const QueryBuilderTextEditor = observer(
99
121
  backdrop__element: Boolean(queryTextEditorState.parserError),
100
122
  })}
101
123
  >
102
- {mode === QueryBuilderTextEditorMode.TEXT && (
103
- <LambdaEditor
104
- className="query-builder-text-mode__lambda-editor"
105
- disabled={queryTextEditorState.isConvertingLambdaToString}
106
- lambdaEditorState={queryTextEditorState}
107
- forceBackdrop={false}
108
- autoFocus={true}
109
- />
110
- )}
124
+ {mode === QueryBuilderTextEditorMode.TEXT &&
125
+ (isReadOnly ? (
126
+ <CodeEditor
127
+ language={CODE_EDITOR_LANGUAGE.PURE}
128
+ inputValue={queryTextEditorState.fullLambdaString}
129
+ isReadOnly={true}
130
+ />
131
+ ) : (
132
+ <LambdaEditor
133
+ className="query-builder-text-mode__lambda-editor"
134
+ disabled={queryTextEditorState.isConvertingLambdaToString}
135
+ lambdaEditorState={queryTextEditorState}
136
+ forceBackdrop={false}
137
+ autoFocus={true}
138
+ />
139
+ ))}
111
140
  {mode === QueryBuilderTextEditorMode.JSON && (
112
141
  <CodeEditor
113
142
  language={CODE_EDITOR_LANGUAGE.JSON}
@@ -130,12 +159,18 @@ export const QueryBuilderTextEditor = observer(
130
159
  Compiling Query...
131
160
  </ModalFooterStatus>
132
161
  )}
133
- {mode === QueryBuilderTextEditorMode.TEXT && (
162
+ {isEditingPure ? (
134
163
  <ModalFooterButton
135
164
  className="btn--caution"
136
165
  onClick={discardChanges}
137
166
  text="Discard Changes"
138
167
  />
168
+ ) : (
169
+ <ModalFooterButton
170
+ formatText={false}
171
+ onClick={copyExpression}
172
+ text="Copy to Clipboard"
173
+ />
139
174
  )}
140
175
  <ModalFooterButton
141
176
  onClick={close}
@@ -278,12 +278,10 @@ const AllVersionsInRangelMilestoningParametersEditor = observer(
278
278
  },
279
279
  );
280
280
 
281
- export const MilestoningParametersEditor = observer(
281
+ export const MilestoningParametersEditorContent = observer(
282
282
  (props: { queryBuilderState: QueryBuilderState }) => {
283
283
  const { queryBuilderState } = props;
284
- const applicationStore = queryBuilderState.applicationStore;
285
284
  const milestoningState = queryBuilderState.milestoningState;
286
- const close = (): void => milestoningState.setShowMilestoningEditor(false);
287
285
  const isCompatibleMilestoningParameter = (
288
286
  variable: VariableExpression,
289
287
  ): boolean =>
@@ -292,6 +290,62 @@ export const MilestoningParametersEditor = observer(
292
290
  variable.genericType?.value.rawType.name === PRIMITIVE_TYPE.DATE ||
293
291
  variable.genericType?.value.rawType.name === PRIMITIVE_TYPE.DATETIME;
294
292
 
293
+ return (
294
+ <>
295
+ {milestoningState.isCurrentClassMilestoned && (
296
+ <PanelFormBooleanField
297
+ isReadOnly={false}
298
+ value={milestoningState.isAllVersionsEnabled}
299
+ name="all Versions"
300
+ prompt="Query All Milestoned Versions of the Root Class"
301
+ update={(value: boolean | undefined): void =>
302
+ milestoningState.setAllVersions(value)
303
+ }
304
+ />
305
+ )}
306
+ {milestoningState.isAllVersionsEnabled &&
307
+ milestoningState.isCurrentClassSupportsVersionsInRange && (
308
+ <>
309
+ <PanelFormBooleanField
310
+ isReadOnly={false}
311
+ value={milestoningState.isAllVersionsInRangeEnabled}
312
+ name=" All Versions In Range"
313
+ prompt="Optionally apply a date range to get All Versions for"
314
+ update={(value: boolean | undefined): void =>
315
+ milestoningState.setAllVersionsInRange(value)
316
+ }
317
+ />
318
+
319
+ {milestoningState.isAllVersionsInRangeEnabled && (
320
+ <AllVersionsInRangelMilestoningParametersEditor
321
+ queryBuilderState={queryBuilderState}
322
+ />
323
+ )}
324
+ </>
325
+ )}
326
+ <TemporalMilestoningEditor queryBuilderState={queryBuilderState} />
327
+ <PanelFormSection>
328
+ <div className="panel__content__form__section__header__label">
329
+ List of compatible milestoning parameters
330
+ </div>
331
+ </PanelFormSection>
332
+ <div className="panel__content__form__section__list__items">
333
+ <VariableSelector
334
+ queryBuilderState={queryBuilderState}
335
+ filterBy={isCompatibleMilestoningParameter}
336
+ />
337
+ </div>
338
+ </>
339
+ );
340
+ },
341
+ );
342
+
343
+ export const MilestoningParametersEditor = observer(
344
+ (props: { queryBuilderState: QueryBuilderState }) => {
345
+ const { queryBuilderState } = props;
346
+ const applicationStore = queryBuilderState.applicationStore;
347
+ const milestoningState = queryBuilderState.milestoningState;
348
+ const close = (): void => milestoningState.setShowMilestoningEditor(false);
295
349
  return (
296
350
  <Dialog
297
351
  open={milestoningState.showMilestoningEditor}
@@ -310,49 +364,9 @@ export const MilestoningParametersEditor = observer(
310
364
  >
311
365
  <ModalHeader title="Milestoning Parameters" />
312
366
  <ModalBody className="query-builder__variables__modal__body">
313
- {milestoningState.isCurrentClassMilestoned && (
314
- <PanelFormBooleanField
315
- isReadOnly={false}
316
- value={milestoningState.isAllVersionsEnabled}
317
- name="all Versions"
318
- prompt="Query All Milestoned Versions of the Root Class"
319
- update={(value: boolean | undefined): void =>
320
- milestoningState.setAllVersions(value)
321
- }
322
- />
323
- )}
324
- {milestoningState.isAllVersionsEnabled &&
325
- milestoningState.isCurrentClassSupportsVersionsInRange && (
326
- <>
327
- <PanelFormBooleanField
328
- isReadOnly={false}
329
- value={milestoningState.isAllVersionsInRangeEnabled}
330
- name=" All Versions In Range"
331
- prompt="Optionally apply a date range to get All Versions for"
332
- update={(value: boolean | undefined): void =>
333
- milestoningState.setAllVersionsInRange(value)
334
- }
335
- />
336
-
337
- {milestoningState.isAllVersionsInRangeEnabled && (
338
- <AllVersionsInRangelMilestoningParametersEditor
339
- queryBuilderState={queryBuilderState}
340
- />
341
- )}
342
- </>
343
- )}
344
- <TemporalMilestoningEditor queryBuilderState={queryBuilderState} />
345
- <PanelFormSection>
346
- <div className="panel__content__form__section__header__label">
347
- List of compatible milestoning parameters
348
- </div>
349
- </PanelFormSection>
350
- <div className="panel__content__form__section__list__items">
351
- <VariableSelector
352
- queryBuilderState={queryBuilderState}
353
- filterBy={isCompatibleMilestoningParameter}
354
- />
355
- </div>
367
+ <MilestoningParametersEditorContent
368
+ queryBuilderState={queryBuilderState}
369
+ />
356
370
  </ModalBody>
357
371
  <ModalFooter>
358
372
  <ModalFooterButton text="Close" onClick={close} type="secondary" />
@@ -48,7 +48,7 @@ import { useApplicationStore } from '@finos/legend-application';
48
48
  import type { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
49
49
  import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/QueryBuilderTDSColumnState.js';
50
50
  import { COLUMN_SORT_TYPE } from '../../graph/QueryBuilderMetaModelConst.js';
51
- import { useCallback, useEffect, useState } from 'react';
51
+ import { useCallback, useEffect, useRef, useState } from 'react';
52
52
  import type { QueryBuilderProjectionColumnState } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
53
53
  import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
54
54
  import { VariableSelector } from '../shared/QueryBuilderVariableSelector.js';
@@ -65,6 +65,7 @@ import {
65
65
  type QueryBuilderVariableDragSource,
66
66
  } from '../shared/BasicValueSpecificationEditor.js';
67
67
  import { useDrop } from 'react-dnd';
68
+ import { MilestoningParametersEditorContent } from '../explorer/QueryBuilderMilestoningEditor.js';
68
69
 
69
70
  const ColumnSortEditor = observer(
70
71
  (props: {
@@ -270,6 +271,31 @@ export const QueryResultModifierModal = observer(
270
271
  deepClone(watermarkState.value),
271
272
  );
272
273
 
274
+ //milestoning config
275
+ const milestoningState = tdsState.queryBuilderState.milestoningState;
276
+ const businessDate = useRef(milestoningState.businessDate);
277
+ const processingDate = useRef(milestoningState.processingDate);
278
+ const isAllVersionsEnabled = useRef(milestoningState.isAllVersionsEnabled);
279
+ const isAllVersionsInRangeEnabled = useRef(
280
+ milestoningState.isAllVersionsInRangeEnabled,
281
+ );
282
+ const startDate = useRef(milestoningState.startDate);
283
+ const endDate = useRef(milestoningState.endDate);
284
+
285
+ const resetMilestoningToInitial = (): void => {
286
+ if (isAllVersionsInRangeEnabled.current) {
287
+ milestoningState.setAllVersionsInRange(
288
+ isAllVersionsInRangeEnabled.current,
289
+ );
290
+ milestoningState.setStartDate(startDate.current);
291
+ milestoningState.setEndDate(endDate.current);
292
+ } else {
293
+ milestoningState.setAllVersions(isAllVersionsEnabled.current);
294
+ }
295
+ milestoningState.setBusinessDate(businessDate.current);
296
+ milestoningState.setProcessingDate(processingDate.current);
297
+ };
298
+
273
299
  // Sync temp state with tdsState when modal is opened/closed
274
300
  useEffect(() => {
275
301
  setSortColumns(cloneSortColumnStateArray(stateSortColumns));
@@ -287,7 +313,10 @@ export const QueryResultModifierModal = observer(
287
313
  ]);
288
314
 
289
315
  // Handle user actions
290
- const closeModal = (): void => resultSetModifierState.setShowModal(false);
316
+ const closeModal = (): void => {
317
+ resetMilestoningToInitial();
318
+ resultSetModifierState.setShowModal(false);
319
+ };
291
320
  const applyChanges = (): void => {
292
321
  resultSetModifierState.setSortColumns(sortColumns);
293
322
  resultSetModifierState.setDistinct(distinct);
@@ -299,6 +328,13 @@ export const QueryResultModifierModal = observer(
299
328
  }
300
329
  resultSetModifierState.setShowModal(false);
301
330
  watermarkState.setValue(watermarkValue);
331
+ businessDate.current = milestoningState.businessDate;
332
+ processingDate.current = milestoningState.processingDate;
333
+ isAllVersionsEnabled.current = milestoningState.isAllVersionsEnabled;
334
+ isAllVersionsInRangeEnabled.current =
335
+ milestoningState.isAllVersionsInRangeEnabled;
336
+ startDate.current = milestoningState.startDate;
337
+ endDate.current = milestoningState.endDate;
302
338
  };
303
339
 
304
340
  const handleLimitResultsChange: React.ChangeEventHandler<
@@ -408,9 +444,23 @@ export const QueryResultModifierModal = observer(
408
444
  }
409
445
  className="editor-modal query-builder__projection__modal"
410
446
  >
411
- <ModalHeader title="Result Set Modifier" />
447
+ <ModalHeader title="Query Options" />
412
448
  <ModalBody className="query-builder__projection__modal__body">
413
449
  <div className="query-builder__projection__options">
450
+ {tdsState.queryBuilderState.milestoningState
451
+ .isMilestonedQuery && (
452
+ <>
453
+ <div className="query-builder__projection__options__section-name">
454
+ Milestoning
455
+ </div>
456
+ <MilestoningParametersEditorContent
457
+ queryBuilderState={tdsState.queryBuilderState}
458
+ />
459
+ <div className="query-builder__projection__options__section-name">
460
+ Other
461
+ </div>
462
+ </>
463
+ )}
414
464
  <ColumnsSortEditor
415
465
  projectionColumns={tdsState.projectionColumns}
416
466
  sortColumns={sortColumns}