@finos/legend-query-builder 4.14.41 → 4.14.43
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +2 -20
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +14 -5
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts +0 -5
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js +5 -10
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +3 -35
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +1 -19
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.js +1 -2
- package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +9 -7
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.js +1 -8
- package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts +0 -1
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.js +1 -2
- package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +0 -12
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +0 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +0 -8
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.d.ts +0 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js +0 -16
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts +0 -3
- package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js +3 -49
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
- package/package.json +1 -1
- package/src/components/QueryBuilderParametersPanel.tsx +0 -55
- package/src/components/QueryBuilderSideBar.tsx +35 -0
- package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +46 -60
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +3 -53
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +19 -132
- package/src/components/result/QueryBuilderResultPanel.tsx +1 -9
- package/src/components/shared/BasicValueSpecificationEditor.tsx +29 -18
- package/src/components/shared/QueryBuilderVariableSelector.tsx +0 -22
- package/src/stores/QueryBuilderPropertyEditorState.ts +1 -2
- package/src/stores/QueryBuilderState.ts +0 -14
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +0 -11
- package/src/stores/milestoning/QueryBuilderMilestoningHelper.ts +0 -24
- package/src/stores/milestoning/QueryBuilderMilestoningState.ts +7 -65
@@ -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;
|
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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IAAI,IAAI;IAS9C,qBAAqB,IAAI,IAAI;IA4C7B,iCAAiC,IAAI,IAAI;IAiCzC,qBAAqB,IAAI,IAAI;IAK7B,8BAA8B,IAAI,IAAI;IAetC,yBAAyB,CAAC,aAAa,EAAE,MAAM,GAAG,kBAAkB;IAyBpE,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO;IAUrD,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF"}
|
@@ -44,6 +44,7 @@ export class QueryBuilderMilestoningState {
|
|
44
44
|
startDate: observable,
|
45
45
|
endDate: observable,
|
46
46
|
showMilestoningEditor: observable,
|
47
|
+
isMilestonedQuery: computed,
|
47
48
|
setProcessingDate: action,
|
48
49
|
setBusinessDate: action,
|
49
50
|
setStartDate: action,
|
@@ -55,9 +56,6 @@ export class QueryBuilderMilestoningState {
|
|
55
56
|
initializeAllVersionsInRangeParameters: action,
|
56
57
|
clearAllVersionsInRangeParameters: action,
|
57
58
|
clearGetAllParameters: action,
|
58
|
-
isAllVersionsEnabled: computed,
|
59
|
-
isAllVersionsInRangeEnabled: computed,
|
60
|
-
isMilestonedQuery: computed,
|
61
59
|
hashCode: computed,
|
62
60
|
});
|
63
61
|
this.queryBuilderState = queryBuilderState;
|
@@ -247,18 +245,14 @@ export class QueryBuilderMilestoningState {
|
|
247
245
|
exculdeMilestoningState: true,
|
248
246
|
})) {
|
249
247
|
const paramState = this.queryBuilderState.parametersState.parameterStates.find((p) => p.parameter === this.startDate);
|
250
|
-
|
251
|
-
this.queryBuilderState.parametersState.removeParameter(paramState);
|
252
|
-
}
|
248
|
+
this.queryBuilderState.parametersState.removeParameter(guaranteeNonNullable(paramState));
|
253
249
|
}
|
254
250
|
if (this.endDate instanceof VariableExpression &&
|
255
251
|
!this.queryBuilderState.isVariableUsed(this.endDate, {
|
256
252
|
exculdeMilestoningState: true,
|
257
253
|
})) {
|
258
254
|
const paramState = this.queryBuilderState.parametersState.parameterStates.find((p) => p.parameter === this.endDate);
|
259
|
-
|
260
|
-
this.queryBuilderState.parametersState.removeParameter(paramState);
|
261
|
-
}
|
255
|
+
this.queryBuilderState.parametersState.removeParameter(guaranteeNonNullable(paramState));
|
262
256
|
}
|
263
257
|
this.setStartDate(undefined);
|
264
258
|
this.setEndDate(undefined);
|
@@ -288,20 +282,6 @@ export class QueryBuilderMilestoningState {
|
|
288
282
|
}
|
289
283
|
return milestoningParameter;
|
290
284
|
}
|
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
|
-
}
|
305
285
|
isVariableUsed(variable) {
|
306
286
|
const usedInBusiness = this.businessDate
|
307
287
|
? isValueExpressionReferencedInValue(variable, this.businessDate)
|
@@ -311,32 +291,6 @@ export class QueryBuilderMilestoningState {
|
|
311
291
|
: false;
|
312
292
|
return usedInBusiness || usedInProcessingDate;
|
313
293
|
}
|
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
|
-
}
|
340
294
|
get hashCode() {
|
341
295
|
return hashArray([
|
342
296
|
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,EA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,sBAAsB;gBACpB,sBAAsB;oBACtB,SAAS,CAAC,IAAI;wBACZ,aAAa,CAAC,IAAI,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC,IAAI,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"}
|
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,E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AAiB,CAAC,eAAe,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;QACrE,CAAC;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,kCAAkC,CAAC,iBAAiB;YACpD,IAAI,CAAC,YAAY,IAAI,EAAE;YACvB,IAAI,CAAC,cAAc,IAAI,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -29,11 +29,9 @@ import {
|
|
29
29
|
ModalFooterButton,
|
30
30
|
PanelFormValidatedTextField,
|
31
31
|
QuestionCircleIcon,
|
32
|
-
PanelFormSection,
|
33
32
|
} from '@finos/legend-art';
|
34
33
|
import {
|
35
34
|
type Type,
|
36
|
-
type ValueSpecification,
|
37
35
|
VariableExpression,
|
38
36
|
GenericTypeExplicitReference,
|
39
37
|
GenericType,
|
@@ -55,10 +53,6 @@ import {
|
|
55
53
|
getPackageableElementOptionFormatter,
|
56
54
|
type PackageableElementOption,
|
57
55
|
} 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';
|
62
56
|
|
63
57
|
type MultiplicityOption = { label: string; value: Multiplicity };
|
64
58
|
|
@@ -124,13 +118,6 @@ const VariableExpressionEditor = observer(
|
|
124
118
|
const nameInputRef = useCallback((ref: HTMLInputElement | null): void => {
|
125
119
|
ref?.focus();
|
126
120
|
}, []);
|
127
|
-
const [defaultMilestoningValue, setDefaultMilestoningValue] = useState(
|
128
|
-
deepClone(lambdaParameterState.value),
|
129
|
-
);
|
130
|
-
const isMilestoningParameter =
|
131
|
-
queryBuilderState.milestoningState.isMilestoningParameter(
|
132
|
-
lambdaParameterState.parameter,
|
133
|
-
);
|
134
121
|
|
135
122
|
const getValidationMessage = (input: string): string | undefined =>
|
136
123
|
!hasEditedName
|
@@ -159,13 +146,6 @@ const VariableExpressionEditor = observer(
|
|
159
146
|
if (isCreating) {
|
160
147
|
queryParametersState.addParameter(lambdaParameterState);
|
161
148
|
}
|
162
|
-
if (isMilestoningParameter) {
|
163
|
-
queryBuilderState.milestoningState.updateMilestoningParameterValue(
|
164
|
-
lambdaParameterState.parameter,
|
165
|
-
defaultMilestoningValue,
|
166
|
-
);
|
167
|
-
}
|
168
|
-
|
169
149
|
handleCancel();
|
170
150
|
};
|
171
151
|
|
@@ -251,41 +231,6 @@ const VariableExpressionEditor = observer(
|
|
251
231
|
}
|
252
232
|
/>
|
253
233
|
</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
|
-
)}
|
289
234
|
</ModalBody>
|
290
235
|
<ModalFooter>
|
291
236
|
<ModalFooterButton
|
@@ -18,6 +18,7 @@ import {
|
|
18
18
|
CustomSelectorInput,
|
19
19
|
createFilter,
|
20
20
|
CogIcon,
|
21
|
+
ClockIcon,
|
21
22
|
clsx,
|
22
23
|
PanelHeader,
|
23
24
|
compareLabelFn,
|
@@ -33,6 +34,7 @@ import {
|
|
33
34
|
LATEST_DATE,
|
34
35
|
PrimitiveInstanceValue,
|
35
36
|
VariableExpression,
|
37
|
+
getMilestoneTemporalStereotype,
|
36
38
|
PackageableElementExplicitReference,
|
37
39
|
RuntimePointer,
|
38
40
|
VARIABLE_REFERENCE_TOKEN,
|
@@ -73,11 +75,23 @@ const generateClassLabel = (
|
|
73
75
|
val: Class,
|
74
76
|
queryBuilderState: QueryBuilderState,
|
75
77
|
): React.ReactNode => {
|
78
|
+
const milestoneStereotype = getMilestoneTemporalStereotype(
|
79
|
+
val,
|
80
|
+
queryBuilderState.graphManagerState.graph,
|
81
|
+
);
|
82
|
+
|
76
83
|
const isDeprecatedClass = isElementDeprecated(
|
77
84
|
val,
|
78
85
|
queryBuilderState.graphManagerState.graph,
|
79
86
|
);
|
80
87
|
|
88
|
+
let milestoningTooltipText: string | undefined;
|
89
|
+
if (milestoneStereotype) {
|
90
|
+
milestoningTooltipText = queryBuilderState.milestoningState
|
91
|
+
.getMilestoningImplementation(milestoneStereotype)
|
92
|
+
.getMilestoningToolTipText();
|
93
|
+
}
|
94
|
+
|
81
95
|
return (
|
82
96
|
<div
|
83
97
|
className={clsx('query-builder__setup__class-option-label', {
|
@@ -88,6 +102,12 @@ const generateClassLabel = (
|
|
88
102
|
<div className="query-builder__setup__class-option-label__name">
|
89
103
|
{val.name}
|
90
104
|
</div>
|
105
|
+
{milestoningTooltipText && (
|
106
|
+
<ClockIcon
|
107
|
+
className="query-builder__setup__class-option-label__milestoning"
|
108
|
+
title={`This class is milestoned:\n${milestoningTooltipText}`}
|
109
|
+
/>
|
110
|
+
)}
|
91
111
|
</div>
|
92
112
|
);
|
93
113
|
};
|
@@ -131,6 +151,10 @@ export const QueryBuilderClassSelector = observer(
|
|
131
151
|
onClassChange?.(val.value);
|
132
152
|
};
|
133
153
|
|
154
|
+
// milestoning
|
155
|
+
const showMilestoningEditor = (): void =>
|
156
|
+
milestoningState.setShowMilestoningEditor(true);
|
157
|
+
|
134
158
|
return (
|
135
159
|
<div className="query-builder__setup__config-group query-builder__setup__config-group--class">
|
136
160
|
<div className="query-builder__setup__config-group__item ">
|
@@ -168,6 +192,17 @@ export const QueryBuilderClassSelector = observer(
|
|
168
192
|
.TEMPORARY__isLightColorThemeEnabled,
|
169
193
|
})}
|
170
194
|
/>
|
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
|
+
)}
|
171
206
|
{milestoningState.isMilestonedQuery && (
|
172
207
|
<MilestoningParametersEditor
|
173
208
|
queryBuilderState={queryBuilderState}
|
@@ -278,10 +278,12 @@ const AllVersionsInRangelMilestoningParametersEditor = observer(
|
|
278
278
|
},
|
279
279
|
);
|
280
280
|
|
281
|
-
export const
|
281
|
+
export const MilestoningParametersEditor = observer(
|
282
282
|
(props: { queryBuilderState: QueryBuilderState }) => {
|
283
283
|
const { queryBuilderState } = props;
|
284
|
+
const applicationStore = queryBuilderState.applicationStore;
|
284
285
|
const milestoningState = queryBuilderState.milestoningState;
|
286
|
+
const close = (): void => milestoningState.setShowMilestoningEditor(false);
|
285
287
|
const isCompatibleMilestoningParameter = (
|
286
288
|
variable: VariableExpression,
|
287
289
|
): boolean =>
|
@@ -290,62 +292,6 @@ export const MilestoningParametersEditorContent = observer(
|
|
290
292
|
variable.genericType?.value.rawType.name === PRIMITIVE_TYPE.DATE ||
|
291
293
|
variable.genericType?.value.rawType.name === PRIMITIVE_TYPE.DATETIME;
|
292
294
|
|
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);
|
349
295
|
return (
|
350
296
|
<Dialog
|
351
297
|
open={milestoningState.showMilestoningEditor}
|
@@ -364,9 +310,49 @@ export const MilestoningParametersEditor = observer(
|
|
364
310
|
>
|
365
311
|
<ModalHeader title="Milestoning Parameters" />
|
366
312
|
<ModalBody className="query-builder__variables__modal__body">
|
367
|
-
|
368
|
-
|
369
|
-
|
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>
|
370
356
|
</ModalBody>
|
371
357
|
<ModalFooter>
|
372
358
|
<ModalFooterButton text="Close" onClick={close} type="secondary" />
|
@@ -46,7 +46,7 @@ import { useApplicationStore } from '@finos/legend-application';
|
|
46
46
|
import type { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
47
47
|
import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/QueryBuilderTDSColumnState.js';
|
48
48
|
import { COLUMN_SORT_TYPE } from '../../graph/QueryBuilderMetaModelConst.js';
|
49
|
-
import { useCallback, useEffect,
|
49
|
+
import { useCallback, useEffect, useState } from 'react';
|
50
50
|
import type { QueryBuilderProjectionColumnState } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
|
51
51
|
import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
52
52
|
import { VariableSelector } from '../shared/QueryBuilderVariableSelector.js';
|
@@ -63,7 +63,6 @@ import {
|
|
63
63
|
type QueryBuilderVariableDragSource,
|
64
64
|
} from '../shared/BasicValueSpecificationEditor.js';
|
65
65
|
import { useDrop } from 'react-dnd';
|
66
|
-
import { MilestoningParametersEditorContent } from '../explorer/QueryBuilderMilestoningEditor.js';
|
67
66
|
|
68
67
|
const ColumnSortEditor = observer(
|
69
68
|
(props: {
|
@@ -260,31 +259,6 @@ export const QueryResultModifierModal = observer(
|
|
260
259
|
deepClone(watermarkState.value),
|
261
260
|
);
|
262
261
|
|
263
|
-
//milestoning config
|
264
|
-
const milestoningState = tdsState.queryBuilderState.milestoningState;
|
265
|
-
const businessDate = useRef(milestoningState.businessDate);
|
266
|
-
const processingDate = useRef(milestoningState.processingDate);
|
267
|
-
const isAllVersionsEnabled = useRef(milestoningState.isAllVersionsEnabled);
|
268
|
-
const isAllVersionsInRangeEnabled = useRef(
|
269
|
-
milestoningState.isAllVersionsInRangeEnabled,
|
270
|
-
);
|
271
|
-
const startDate = useRef(milestoningState.startDate);
|
272
|
-
const endDate = useRef(milestoningState.endDate);
|
273
|
-
|
274
|
-
const resetMilestoningToInitial = (): void => {
|
275
|
-
if (isAllVersionsInRangeEnabled.current) {
|
276
|
-
milestoningState.setAllVersionsInRange(
|
277
|
-
isAllVersionsInRangeEnabled.current,
|
278
|
-
);
|
279
|
-
milestoningState.setStartDate(startDate.current);
|
280
|
-
milestoningState.setEndDate(endDate.current);
|
281
|
-
} else {
|
282
|
-
milestoningState.setAllVersions(isAllVersionsEnabled.current);
|
283
|
-
}
|
284
|
-
milestoningState.setBusinessDate(businessDate.current);
|
285
|
-
milestoningState.setProcessingDate(processingDate.current);
|
286
|
-
};
|
287
|
-
|
288
262
|
// Sync temp state with tdsState when modal is opened/closed
|
289
263
|
useEffect(() => {
|
290
264
|
setSortColumns(cloneSortColumnStateArray(stateSortColumns));
|
@@ -302,10 +276,7 @@ export const QueryResultModifierModal = observer(
|
|
302
276
|
]);
|
303
277
|
|
304
278
|
// Handle user actions
|
305
|
-
const closeModal = (): void =>
|
306
|
-
resetMilestoningToInitial();
|
307
|
-
resultSetModifierState.setShowModal(false);
|
308
|
-
};
|
279
|
+
const closeModal = (): void => resultSetModifierState.setShowModal(false);
|
309
280
|
const applyChanges = (): void => {
|
310
281
|
resultSetModifierState.setSortColumns(sortColumns);
|
311
282
|
resultSetModifierState.setDistinct(distinct);
|
@@ -317,13 +288,6 @@ export const QueryResultModifierModal = observer(
|
|
317
288
|
}
|
318
289
|
resultSetModifierState.setShowModal(false);
|
319
290
|
watermarkState.setValue(watermarkValue);
|
320
|
-
businessDate.current = milestoningState.businessDate;
|
321
|
-
processingDate.current = milestoningState.processingDate;
|
322
|
-
isAllVersionsEnabled.current = milestoningState.isAllVersionsEnabled;
|
323
|
-
isAllVersionsInRangeEnabled.current =
|
324
|
-
milestoningState.isAllVersionsInRangeEnabled;
|
325
|
-
startDate.current = milestoningState.startDate;
|
326
|
-
endDate.current = milestoningState.endDate;
|
327
291
|
};
|
328
292
|
|
329
293
|
const handleLimitResultsChange: React.ChangeEventHandler<
|
@@ -433,23 +397,9 @@ export const QueryResultModifierModal = observer(
|
|
433
397
|
}
|
434
398
|
className="editor-modal query-builder__projection__modal"
|
435
399
|
>
|
436
|
-
<ModalHeader title="
|
400
|
+
<ModalHeader title="Result Set Modifier" />
|
437
401
|
<ModalBody className="query-builder__projection__modal__body">
|
438
402
|
<div className="query-builder__projection__options">
|
439
|
-
{tdsState.queryBuilderState.milestoningState
|
440
|
-
.isMilestonedQuery && (
|
441
|
-
<>
|
442
|
-
<div className="query-builder__projection__options__section-name">
|
443
|
-
Milestoning
|
444
|
-
</div>
|
445
|
-
<MilestoningParametersEditorContent
|
446
|
-
queryBuilderState={tdsState.queryBuilderState}
|
447
|
-
/>
|
448
|
-
<div className="query-builder__projection__options__section-name">
|
449
|
-
Other
|
450
|
-
</div>
|
451
|
-
</>
|
452
|
-
)}
|
453
403
|
<ColumnsSortEditor
|
454
404
|
projectionColumns={tdsState.projectionColumns}
|
455
405
|
sortColumns={sortColumns}
|