@finos/legend-query-builder 4.5.1 → 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderTesting.d.ts +1 -0
- package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderTesting.js +1 -0
- package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.js +11 -4
- package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js +1 -1
- package/lib/components/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
- package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
- package/lib/components/shared/CustomDatePicker.js +6 -2
- package/lib/components/shared/CustomDatePicker.js.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.js +11 -3
- package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderConstantsState.d.ts +10 -3
- package/lib/stores/QueryBuilderConstantsState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderConstantsState.js +23 -8
- package/lib/stores/QueryBuilderConstantsState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +9 -4
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js +1 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
- package/package.json +3 -3
- package/src/__lib__/QueryBuilderTesting.ts +1 -0
- package/src/components/QueryBuilderConstantExpressionPanel.tsx +18 -9
- package/src/components/QueryBuilderResultPanel.tsx +4 -1
- package/src/components/shared/BasicValueSpecificationEditor.tsx +1 -1
- package/src/components/shared/CustomDatePicker.tsx +6 -7
- package/src/components/shared/QueryBuilderVariableSelector.tsx +19 -8
- package/src/stores/QueryBuilderConstantsState.ts +43 -9
- package/src/stores/QueryBuilderStateBuilder.ts +20 -8
- package/src/stores/QueryBuilderValueSpecificationBuilder.ts +1 -1
@@ -15,7 +15,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
17
|
import { DollarIcon, DragPreviewLayer, InfoCircleIcon, PanelFormListItems, PencilIcon, TimesIcon, useDragPreviewLayer, } from '@finos/legend-art';
|
18
|
-
import { SimpleFunctionExpression, } from '@finos/legend-graph';
|
18
|
+
import { SimpleFunctionExpression, INTERNAL__UnknownValueSpecification, } from '@finos/legend-graph';
|
19
19
|
import { observer } from 'mobx-react-lite';
|
20
20
|
import { useDrag } from 'react-dnd';
|
21
21
|
import { getValueSpecificationStringValue } from '../../stores/shared/ValueSpecificationEditorHelper.js';
|
@@ -30,9 +30,12 @@ export const VariableViewer = observer((props) => {
|
|
30
30
|
return possibleDateLabel;
|
31
31
|
}
|
32
32
|
}
|
33
|
+
else if (value instanceof INTERNAL__UnknownValueSpecification) {
|
34
|
+
return '(calculated)';
|
35
|
+
}
|
33
36
|
return getValueSpecificationStringValue(value);
|
34
37
|
};
|
35
|
-
const
|
38
|
+
const constantValueString = constantValue
|
36
39
|
? getNameOfValue(constantValue)
|
37
40
|
: undefined;
|
38
41
|
const name = variable.name;
|
@@ -41,6 +44,11 @@ export const VariableViewer = observer((props) => {
|
|
41
44
|
const isVariableUsed = queryBuilderState.isVariableUsed(variable);
|
42
45
|
const deleteDisabled = isReadOnly || isVariableUsed;
|
43
46
|
const deleteTitle = isVariableUsed ? 'Used in query' : 'Remove';
|
47
|
+
const isEditDisabled = isReadOnly ||
|
48
|
+
constantValue instanceof INTERNAL__UnknownValueSpecification;
|
49
|
+
const editMessage = constantValue instanceof INTERNAL__UnknownValueSpecification
|
50
|
+
? 'Calculated constants can only be edited via text mode'
|
51
|
+
: 'Edit';
|
44
52
|
const editVariable = () => {
|
45
53
|
actions?.editVariable();
|
46
54
|
};
|
@@ -52,7 +60,7 @@ export const VariableViewer = observer((props) => {
|
|
52
60
|
item: { variable: variable },
|
53
61
|
}), [variable]);
|
54
62
|
useDragPreviewLayer(dragPreviewConnector);
|
55
|
-
return (_jsxs("div", { className: "query-builder__variables__variable", ref: dragConnector, children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.variable.name === '' ? '(unknown)' : item.variable.name, types: [QUERY_BUILDER_VARIABLE_DND_TYPE] }), _jsxs("div", { onClick: editVariable, className: "query-builder__variables__variable__content", children: [_jsx("div", { className: "query-builder__variables__variable__icon", children: _jsx("div", { className: "query-builder__variables__variable-icon", children: constantValue ? (_jsx("div", { className: "icon query-builder__variables__variable-icon", children: "C" })) : (_jsx(DollarIcon, {})) }) }), _jsxs("div", { className: "query-builder__variables__variable__label", children: [name,
|
63
|
+
return (_jsxs("div", { className: "query-builder__variables__variable", ref: dragConnector, children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.variable.name === '' ? '(unknown)' : item.variable.name, types: [QUERY_BUILDER_VARIABLE_DND_TYPE] }), _jsxs("div", { onClick: editVariable, className: "query-builder__variables__variable__content", children: [_jsx("div", { className: "query-builder__variables__variable__icon", children: _jsx("div", { className: "query-builder__variables__variable-icon", children: constantValue ? (_jsx("div", { className: "icon query-builder__variables__variable-icon", children: "C" })) : (_jsx(DollarIcon, {})) }) }), _jsxs("div", { className: "query-builder__variables__variable__label", children: [name, constantValueString ? (_jsx("div", { className: "query-builder__constants__value", children: constantValueString })) : (_jsx("div", { className: "query-builder__variables__variable__type", children: _jsx("div", { className: "query-builder__variables__variable__type__label", children: typeName ?? 'unknown' }) }))] })] }), actions && (_jsxs("div", { className: "query-builder__variables__variable__actions", children: [_jsx("button", { className: "query-builder__variables__variable__action", tabIndex: -1, disabled: isEditDisabled, onClick: editVariable, title: editMessage, children: _jsx(PencilIcon, {}) }), _jsx("button", { className: "query-builder__variables__variable__action", tabIndex: -1, onClick: deleteVariable, disabled: deleteDisabled, title: deleteTitle, children: _jsx(TimesIcon, {}) }), _jsx(VariableInfoTooltip, { variable: variable, children: _jsx("div", { className: "query-builder__variables__variable__action value-spec-editor__variable__info", children: _jsx(InfoCircleIcon, {}) }) })] }))] }));
|
56
64
|
});
|
57
65
|
export const VariableSelector = observer((props) => {
|
58
66
|
const { queryBuilderState, filterBy } = props;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderVariableSelector.js","sourceRoot":"","sources":["../../../src/components/shared/QueryBuilderVariableSelector.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderVariableSelector.js","sourceRoot":"","sources":["../../../src/components/shared/QueryBuilderVariableSelector.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,wBAAwB,EAExB,mCAAmC,GACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,gCAAgC,EAAE,MAAM,uDAAuD,CAAC;AACzG,OAAO,EAEL,+BAA+B,EAC/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vC,CAAC;IAEJ,OAAO,CACL,8BACE,MAAC,kBAAkB,IAAC,KAAK,EAAC,sBAAsB,aAC7C,uBAAuB,CAAC,MAAM,KAAK,CAAC,IAAI,CACvC,0DAA8B,CAC/B,EACA,uBAAuB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvC,KAAC,cAAc,IAEb,QAAQ,EAAE,MAAM,CAAC,SAAS,EAC1B,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,iBAAiB,IAH/B,MAAM,CAAC,IAAI,CAIhB,CACH,CAAC,IACiB,EACpB,OAAO,CAAC,qBAAqB,CAAC,MAAM,CAAC,IAAI,CACxC,KAAC,kBAAkB,IAAC,KAAK,EAAC,qBAAqB,YAC5C,qBAAqB,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,EAAE,CAAC,CAC5C,KAAC,cAAc,IAEb,QAAQ,EAAE,aAAa,CAAC,QAAQ,EAChC,aAAa,EAAE,aAAa,CAAC,KAAK,EAClC,iBAAiB,EAAE,iBAAiB,EACpC,UAAU,EAAE,UAAU,IAJjB,aAAa,CAAC,IAAI,CAKvB,CACH,CAAC,GACiB,CACtB,IACA,CACJ,CAAC;AACJ,CAAC,CACF,CAAC"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
@@ -13,18 +13,25 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type Type, type ValueSpecification, VariableExpression } from '@finos/legend-graph';
|
16
|
+
import { type Type, type ValueSpecification, type INTERNAL__UnknownValueSpecification, VariableExpression } from '@finos/legend-graph';
|
17
17
|
import { type Hashable } from '@finos/legend-shared';
|
18
18
|
import type { QueryBuilderState } from './QueryBuilderState.js';
|
19
|
-
export declare class QueryBuilderConstantExpressionState implements Hashable {
|
19
|
+
export declare abstract class QueryBuilderConstantExpressionState implements Hashable {
|
20
20
|
readonly queryBuilderState: QueryBuilderState;
|
21
21
|
readonly uuid: string;
|
22
22
|
variable: VariableExpression;
|
23
23
|
value: ValueSpecification;
|
24
|
+
constructor(queryBuilderState: QueryBuilderState, variable: VariableExpression, value: ValueSpecification);
|
25
|
+
get hashCode(): string;
|
26
|
+
}
|
27
|
+
export declare class QueryBuilderSimpleConstantExpressionState extends QueryBuilderConstantExpressionState implements Hashable {
|
24
28
|
constructor(queryBuilderState: QueryBuilderState, variable: VariableExpression, value: ValueSpecification);
|
25
29
|
changeValSpecType(type: Type): void;
|
26
30
|
setValueSpec(value: ValueSpecification): void;
|
27
|
-
|
31
|
+
}
|
32
|
+
export declare class QueryBuilderCalculatedConstantExpressionState extends QueryBuilderConstantExpressionState implements Hashable {
|
33
|
+
value: INTERNAL__UnknownValueSpecification;
|
34
|
+
constructor(queryBuilderState: QueryBuilderState, variable: VariableExpression, value: INTERNAL__UnknownValueSpecification);
|
28
35
|
}
|
29
36
|
export declare class QueryBuilderConstantsState implements Hashable {
|
30
37
|
readonly queryBuilderState: QueryBuilderState;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderConstantsState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderConstantsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,
|
1
|
+
{"version":3,"file":"QueryBuilderConstantsState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderConstantsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,mCAAmC,EAIxC,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,QAAQ,EAOd,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAIhE,8BAAsB,mCAAoC,YAAW,QAAQ;IAC3E,QAAQ,CAAC,iB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AM,CAKrB;CACF"}
|
@@ -25,16 +25,29 @@ export class QueryBuilderConstantExpressionState {
|
|
25
25
|
variable;
|
26
26
|
value;
|
27
27
|
constructor(queryBuilderState, variable, value) {
|
28
|
+
this.queryBuilderState = queryBuilderState;
|
29
|
+
this.variable = variable;
|
30
|
+
this.value = value;
|
31
|
+
}
|
32
|
+
get hashCode() {
|
33
|
+
return hashArray([
|
34
|
+
QUERY_BUILDER_STATE_HASH_STRUCTURE.CONSTANT_EXPRESSION_STATE,
|
35
|
+
this.variable.name,
|
36
|
+
this.value,
|
37
|
+
]);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
export class QueryBuilderSimpleConstantExpressionState extends QueryBuilderConstantExpressionState {
|
41
|
+
constructor(queryBuilderState, variable, value) {
|
42
|
+
super(queryBuilderState, variable, value);
|
28
43
|
makeObservable(this, {
|
29
44
|
variable: observable,
|
30
45
|
value: observable,
|
31
46
|
setValueSpec: action,
|
32
47
|
changeValSpecType: action,
|
33
48
|
});
|
34
|
-
this.queryBuilderState = queryBuilderState;
|
35
49
|
this.value = observe_ValueSpecification(value, this.queryBuilderState.observerContext);
|
36
50
|
observe_ValueSpecification(variable, this.queryBuilderState.observerContext);
|
37
|
-
this.variable = variable;
|
38
51
|
}
|
39
52
|
changeValSpecType(type) {
|
40
53
|
const variableType = this.value.genericType?.value.rawType;
|
@@ -60,12 +73,14 @@ export class QueryBuilderConstantExpressionState {
|
|
60
73
|
valueSpecification_setGenericType(this.variable, GenericTypeExplicitReference.create(new GenericType(valueSpecType)));
|
61
74
|
}
|
62
75
|
}
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
76
|
+
}
|
77
|
+
export class QueryBuilderCalculatedConstantExpressionState extends QueryBuilderConstantExpressionState {
|
78
|
+
constructor(queryBuilderState, variable, value) {
|
79
|
+
super(queryBuilderState, variable, value);
|
80
|
+
makeObservable(this, {
|
81
|
+
variable: observable,
|
82
|
+
value: observable,
|
83
|
+
});
|
69
84
|
}
|
70
85
|
}
|
71
86
|
export class QueryBuilderConstantsState {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderConstantsState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderConstantsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderConstantsState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderConstantsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,WAAW,EACX,4BAA4B,EAC5B,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,SAAS,EACT,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,IAAI,EACJ,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,kCAAkC,EAAE,MAAM,iCAAiC,CAAC;AAErF,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,iCAAiC,EAAE,MAAM,8CAA8C,CAAC;AAEjG,MAAM,OAAgB,mCAAmC;IAC9C,iBAAiB,CAAoB;IACrC,IAAI,GAAG,IAAI,EAAE,CAAC;IACvB,QAAQ,CAAqB;IAC7B,KAAK,CAAqB;IAE1B,YACE,iBAAoC,EACpC,QAA4B,EAC5B,KAAyB;QAEzB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,yBAAyB;YAC5D,IAAI,CAAC,QAAQ,CAAC,IAAI;YAClB,IAAI,CAAC,KAAK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;IAC/B,CAAC;IAED,WAAW,CAAC,GAAwC;QAClD,cAAc,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;IACtC,CAAC;IAED,cAAc,CAAC,GAAwC;QACrD,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC;IAED,mBAAmB,CACjB,GAAoD;QAEpD,IAAI,CAAC,gBAAgB,GAAG,GAAG,CAAC;IAC9B,CAAC;IAED,mBAAmB,CAAC,KAAyB;QAC3C,IAAI,KAAK,YAAY,kBAAkB,EAAE;YACvC,OAAO,OAAO,CACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC,CAC3D,CAAC;SACH;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,cAAc;YACjD,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -14,7 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import type { QueryBuilderState } from './QueryBuilderState.js';
|
17
|
-
import { type EnumValueInstanceValue, type FunctionExpression, type GraphFetchTreeInstanceValue, type ValueSpecificationVisitor, InstanceValue,
|
17
|
+
import { type EnumValueInstanceValue, type FunctionExpression, type GraphFetchTreeInstanceValue, type ValueSpecificationVisitor, InstanceValue, INTERNAL__UnknownValueSpecification, type LambdaFunction, type KeyExpressionInstanceValue, type CollectionInstanceValue, type LambdaFunctionInstanceValue, PrimitiveInstanceValue, SimpleFunctionExpression, VariableExpression, type AbstractPropertyExpression, type INTERNAL__PropagatedValue, type ValueSpecification } from '@finos/legend-graph';
|
18
18
|
import type { QueryBuilderParameterValue } from './QueryBuilderParametersState.js';
|
19
19
|
/**
|
20
20
|
* This is the value specification processor (a.k.a state builder) for query builder.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderStateBuilder.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,aAAa,EACb,
|
1
|
+
{"version":3,"file":"QueryBuilderStateBuilder.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,aAAa,EACb,mCAAmC,EACnC,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAG/B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,KAAK,0BAA0B,EAE/B,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EAQxB,MAAM,qBAAqB,CAAC;AAmC7B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AA2HnF;;;;;;;;;;;;;GAaG;AACH,qBAAa,uCACX,YAAW,yBAAyB,CAAC,IAAI,CAAC;IAE1C,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4DG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;IACjE,QAAQ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CAAC;AAEF,eAAO,MAAM,0BAA0B,mBACrB,cAAc,qBACX,iBAAiB,qBACjB;IACjB,eAAe,CAAC,EAAE,IAAI,MAAM,EAAE,0BAA0B,CAAC,GAAG,SAAS,CAAC;CACvE,KACA,IAeF,CAAC"}
|
@@ -14,7 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { assertNonNullable, assertTrue, assertType, guaranteeIsString, guaranteeNonNullable, guaranteeType, isString, UnsupportedOperationError, } from '@finos/legend-shared';
|
17
|
-
import { InstanceValue, matchFunctionName, Class, PrimitiveInstanceValue, SimpleFunctionExpression, VariableExpression, getMilestoneTemporalStereotype, SUPPORTED_FUNCTIONS, isSuperType, PackageableElementReference, Mapping, PackageableRuntime, RuntimePointer, PackageableElementExplicitReference, } from '@finos/legend-graph';
|
17
|
+
import { InstanceValue, INTERNAL__UnknownValueSpecification, matchFunctionName, Class, PrimitiveInstanceValue, SimpleFunctionExpression, VariableExpression, getMilestoneTemporalStereotype, SUPPORTED_FUNCTIONS, isSuperType, PackageableElementReference, Mapping, PackageableRuntime, RuntimePointer, PackageableElementExplicitReference, } from '@finos/legend-graph';
|
18
18
|
import { processTDSPostFilterExpression } from './fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js';
|
19
19
|
import { processFilterExpression } from './filter/QueryBuilderFilterStateBuilder.js';
|
20
20
|
import { processTDSAggregateExpression, processTDSGroupByExpression, } from './fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js';
|
@@ -24,7 +24,7 @@ import { QUERY_BUILDER_SUPPORTED_FUNCTIONS, QUERY_BUILDER_SUPPORTED_CALENDAR_AGG
|
|
24
24
|
import { LambdaParameterState } from './shared/LambdaParameterState.js';
|
25
25
|
import { processTDS_OLAPGroupByExpression } from './fetch-structure/tds/window/QueryBuilderWindowStateBuilder.js';
|
26
26
|
import { processWatermarkExpression } from './watermark/QueryBuilderWatermarkStateBuilder.js';
|
27
|
-
import {
|
27
|
+
import { QueryBuilderCalculatedConstantExpressionState, QueryBuilderSimpleConstantExpressionState, } from './QueryBuilderConstantsState.js';
|
28
28
|
import { checkIfEquivalent } from './milestoning/QueryBuilderMilestoningHelper.js';
|
29
29
|
import { QueryBuilderEmbeddedFromExecutionContextState } from './QueryBuilderExecutionContextState.js';
|
30
30
|
const processGetAllExpression = (expression, queryBuilderState) => {
|
@@ -53,8 +53,13 @@ const processLetExpression = (expression, queryBuilderState, parentLambda) => {
|
|
53
53
|
const varExp = guaranteeNonNullable(parentLambda.openVariables.get(letVariable), `Unable to find variable ${letVariable} in lambda function`);
|
54
54
|
// process right side (value)
|
55
55
|
const rightSide = guaranteeNonNullable(parameters[1]);
|
56
|
-
|
57
|
-
|
56
|
+
let constantExpression;
|
57
|
+
if (rightSide instanceof INTERNAL__UnknownValueSpecification) {
|
58
|
+
constantExpression = new QueryBuilderCalculatedConstantExpressionState(queryBuilderState, varExp, rightSide);
|
59
|
+
}
|
60
|
+
else {
|
61
|
+
constantExpression = new QueryBuilderSimpleConstantExpressionState(queryBuilderState, varExp, rightSide);
|
62
|
+
}
|
58
63
|
queryBuilderState.constantState.setShowConstantPanel(true);
|
59
64
|
queryBuilderState.constantState.addConstant(constantExpression);
|
60
65
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderStateBuilder.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,QAAQ,EACR,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAKL,aAAa,EAIb,iBAAiB,EACjB,KAAK,EAGL,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAElB,8BAA8B,EAG9B,mBAAmB,EACnB,WAAW,EACX,2BAA2B,EAC3B,OAAO,EACP,kBAAkB,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AAS,GAAG,SAAS,CAAC,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC;oBACvD,IACE,YAAY;wBACZ,SAAS;wBACT,WAAW,CAAC,SAAS,EAAE,YAAY,CAAC,EACpC;wBACA,sBAAsB,GAAG,KAAK,CAAC,KAAK,CAAC;qBACtC;iBACF;YACH,CAAC,CAAC,CAAC;SACJ;QACD,MAAM,cAAc,GAAG,IAAI,oBAAoB,CAC7C,SAAS,EACT,iBAAiB,CAAC,eAAe,EACjC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAC1C,CAAC;QACF,IAAI,sBAAsB,EAAE;YAC1B,cAAc,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC;SACjD;aAAM;YACL,cAAc,CAAC,kBAAkB,EAAE,CAAC;SACrC;QACD,mBAAmB,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IACH,iBAAiB,CAAC,eAAe,GAAG,mBAAmB,CAAC;AAC1D,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,cAA8B,EAC9B,iBAAoC,EACpC,gBAEC,EACK,EAAE;IACR,IAAI,cAAc,CAAC,YAAY,CAAC,UAAU,CAAC,MAAM,EAAE;QACjD,iBAAiB,CACf,cAAc,CAAC,YAAY,CAAC,UAAU,EACtC,iBAAiB,EACjB,gBAAgB,CACjB,CAAC;KACH;IACD,cAAc,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CACnD,uCAAuC,CAAC,OAAO,CAC7C,UAAU,EACV,cAAc,EACd,iBAAiB,CAClB,CACF,CAAC;AACJ,CAAC,CAAC"}
|
1
|
+
{"version":3,"file":"QueryBuilderStateBuilder.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,iBAAiB,EAC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c,CAAC,YAAY,CAAC,UAAU,EACtC,iBAAiB,EACjB,gBAAgB,CACjB,CAAC;KACH;IACD,cAAc,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CACnD,uCAAuC,CAAC,OAAO,CAC7C,UAAU,EACV,cAAc,EACd,iBAAiB,CAClB,CACF,CAAC;AACJ,CAAC,CAAC"}
|
@@ -19,6 +19,7 @@ import { buildFilterExpression } from './filter/QueryBuilderFilterValueSpecifica
|
|
19
19
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graph/QueryBuilderMetaModelConst.js';
|
20
20
|
import { buildWatermarkExpression } from './watermark/QueryBuilderWatermarkValueSpecificationBuilder.js';
|
21
21
|
import { buildExecutionQueryFromLambdaFunction } from './shared/LambdaParameterState.js';
|
22
|
+
import {} from './QueryBuilderConstantsState.js';
|
22
23
|
import { QueryBuilderEmbeddedFromExecutionContextState, } from './QueryBuilderExecutionContextState.js';
|
23
24
|
export const buildGetAllFunction = (_class, multiplicity) => {
|
24
25
|
const _func = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.GET_ALL));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderValueSpecificationBuilder.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAEL,YAAY,EACZ,8BAA8B,EAC9B,0BAA0B,EAC1B,aAAa,EACb,mCAAmC,EACnC,cAAc,EACd,YAAY,EACZ,WAAW,EACX,4BAA4B,EAC5B,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,cAAc,GACf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAGhG,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AACzG,OAAO,EAAE,qCAAqC,EAAE,MAAM,kCAAkC,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderValueSpecificationBuilder.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAEL,YAAY,EACZ,8BAA8B,EAC9B,0BAA0B,EAC1B,aAAa,EACb,mCAAmC,EACnC,cAAc,EACd,YAAY,EACZ,WAAW,EACX,4BAA4B,EAC5B,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,cAAc,GACf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAGhG,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AACzG,OAAO,EAAE,qCAAqC,EAAE,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAA4C,MAAM,iCAAiC,CAAC;AAC3F,OAAO,EACL,6CAA6C,GAE9C,MAAM,wCAAwC,CAAC;AAEhD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,MAAa,EACb,YAA0B,EACA,EAAE;IAC5B,MAAM,KAAK,GAAG,IAAI,wBAAwB,CACxC,0BAA0B,CAAC,iCAAiC,CAAC,OAAO,CAAC,CACtE,CAAC;IACF,MAAM,aAAa,GAAG,IAAI,aAAa,CACrC,YAAY,EACZ,4BAA4B,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC,CAC7D,CAAC;IACF,aAAa,CAA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,EACrC,cAAc,EACd,OAAO,CACR,CAAC;IACF,wBAAwB;IACxB,0BAA0B,CACxB,iBAAiB,CAAC,qBAAqB,EACvC,cAAc,CACf,CAAC;IAEF,6BAA6B;IAC7B,IAAI,iBAAiB,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE;QACpD,MAAM,cAAc,GAClB,iBAAiB,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;QACpE,cAAc,CAAC,kBAAkB,GAAG;YAClC,GAAG,cAAc;YACjB,GAAG,cAAc,CAAC,kBAAkB;SACrC,CAAC;KACH;IACD,mBAAmB;IACnB,IACE,iBAAiB,CAAC,eAAe,CAAC,eAAe,CAAC,MAAM;QACxD,CAAC,OAAO,EAAE,4BAA4B,EACtC;QACA,IAAI,OAAO,EAAE,wBAAwB,EAAE;YACrC,qCAAqC,CACnC,cAAc,EACd,iBAAiB,CAAC,eAAe,CAAC,eAAe,EACjD,iBAAiB,CAAC,iBAAiB,CACpC,CAAC;SACH;aAAM;YACL,cAAc,CAAC,YAAY,CAAC,UAAU;gBACpC,iBAAiB,CAAC,eAAe,CAAC,eAAe,CAAC,GAAG,CACnD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CACnB,CAAC;SACL;KACF;IACD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.6.0",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -44,8 +44,8 @@
|
|
44
44
|
"dependencies": {
|
45
45
|
"@finos/legend-application": "15.0.40",
|
46
46
|
"@finos/legend-art": "7.0.40",
|
47
|
-
"@finos/legend-graph": "31.2.
|
48
|
-
"@finos/legend-lego": "1.1.
|
47
|
+
"@finos/legend-graph": "31.2.1",
|
48
|
+
"@finos/legend-lego": "1.1.29",
|
49
49
|
"@finos/legend-server-depot": "6.0.29",
|
50
50
|
"@finos/legend-shared": "10.0.25",
|
51
51
|
"@finos/legend-storage": "3.0.75",
|
@@ -27,6 +27,7 @@ export enum QUERY_BUILDER_TEST_ID {
|
|
27
27
|
QUERY_BUILDER_EXPLORER = 'query__builder__explorer',
|
28
28
|
QUERY_BUILDER_PROPERTY_SEARCH_PANEL = 'query__builder__property__search__panel',
|
29
29
|
QUERY_BUILDER_RESULT_PANEL = 'query__builder__result__panel',
|
30
|
+
QUERY_BUILDER_RESULT_ANALYTICS = 'query__builder__result__analytics',
|
30
31
|
QUERY_BUILDER_PARAMETERS = 'query-builder__parameters',
|
31
32
|
QUERY_BUILDER_CONSTANTS = 'query-builder__constants',
|
32
33
|
}
|
@@ -45,19 +45,22 @@ import { generateEnumerableNameFromToken } from '@finos/legend-shared';
|
|
45
45
|
import { observer } from 'mobx-react-lite';
|
46
46
|
import { DEFAULT_CONSTANT_VARIABLE_NAME } from '../stores/QueryBuilderConfig.js';
|
47
47
|
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
48
|
-
import {
|
48
|
+
import {
|
49
|
+
type QueryBuilderConstantExpressionState,
|
50
|
+
QueryBuilderSimpleConstantExpressionState,
|
51
|
+
} from '../stores/QueryBuilderConstantsState.js';
|
49
52
|
import { buildDefaultInstanceValue } from '../stores/shared/ValueSpecificationEditorHelper.js';
|
50
53
|
import { BasicValueSpecificationEditor } from './shared/BasicValueSpecificationEditor.js';
|
51
54
|
import { VariableViewer } from './shared/QueryBuilderVariableSelector.js';
|
52
55
|
import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
|
53
56
|
import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
|
54
|
-
import { useState } from 'react';
|
57
|
+
import React, { useState } from 'react';
|
55
58
|
import { variableExpression_setName } from '../stores/shared/ValueSpecificationModifierHelper.js';
|
56
59
|
|
57
60
|
// NOTE: We currently only allow constant variables for primitive types of multiplicity ONE.
|
58
61
|
// This is why we don't show multiplicity in the editor.
|
59
62
|
const QueryBuilderConstantExpressionEditor = observer(
|
60
|
-
(props: { constantState:
|
63
|
+
(props: { constantState: QueryBuilderSimpleConstantExpressionState }) => {
|
61
64
|
const { constantState } = props;
|
62
65
|
const queryBuilderState = constantState.queryBuilderState;
|
63
66
|
const applicationStore = queryBuilderState.applicationStore;
|
@@ -232,7 +235,7 @@ export const QueryBuilderConstantExpressionPanel = observer(
|
|
232
235
|
Multiplicity.ONE,
|
233
236
|
);
|
234
237
|
variableEx.genericType = defaultVal.genericType;
|
235
|
-
const constState = new
|
238
|
+
const constState = new QueryBuilderSimpleConstantExpressionState(
|
236
239
|
queryBuilderState,
|
237
240
|
variableEx,
|
238
241
|
defaultVal,
|
@@ -241,6 +244,15 @@ export const QueryBuilderConstantExpressionPanel = observer(
|
|
241
244
|
}
|
242
245
|
};
|
243
246
|
|
247
|
+
const renderConstantModal = (
|
248
|
+
val: QueryBuilderConstantExpressionState,
|
249
|
+
): React.ReactNode => {
|
250
|
+
if (val instanceof QueryBuilderSimpleConstantExpressionState) {
|
251
|
+
return <QueryBuilderConstantExpressionEditor constantState={val} />;
|
252
|
+
}
|
253
|
+
return null;
|
254
|
+
};
|
255
|
+
|
244
256
|
return (
|
245
257
|
<div
|
246
258
|
data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_CONSTANTS}
|
@@ -300,11 +312,8 @@ export const QueryBuilderConstantExpressionPanel = observer(
|
|
300
312
|
)}
|
301
313
|
</>
|
302
314
|
</div>
|
303
|
-
{constantState.selectedConstant &&
|
304
|
-
|
305
|
-
constantState={constantState.selectedConstant}
|
306
|
-
/>
|
307
|
-
)}
|
315
|
+
{constantState.selectedConstant &&
|
316
|
+
renderConstantModal(constantState.selectedConstant)}
|
308
317
|
</div>
|
309
318
|
);
|
310
319
|
},
|
@@ -1069,7 +1069,10 @@ export const QueryBuilderResultPanel = observer(
|
|
1069
1069
|
</div>
|
1070
1070
|
)}
|
1071
1071
|
|
1072
|
-
<div
|
1072
|
+
<div
|
1073
|
+
data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_ANALYTICS}
|
1074
|
+
className="query-builder__result__analytics"
|
1075
|
+
>
|
1073
1076
|
{resultDescription ?? ''}
|
1074
1077
|
</div>
|
1075
1078
|
{executionResult && resultState.checkForStaleResults && (
|
@@ -121,7 +121,7 @@ export const VariableInfoTooltip: React.FC<{
|
|
121
121
|
Type
|
122
122
|
</div>
|
123
123
|
<div className="value-spec-paramater__tooltip__item__value">
|
124
|
-
{type?.name ?? ''}
|
124
|
+
{type?.name ?? '(unknown)'}
|
125
125
|
</div>
|
126
126
|
</div>
|
127
127
|
<div className="value-spec-paramater__tooltip__item">
|
@@ -840,22 +840,21 @@ const AbsoluteTimeValueSpecificationEditor: React.FC<{
|
|
840
840
|
const updateAbsoluteTimeValue: React.ChangeEventHandler<HTMLInputElement> = (
|
841
841
|
event,
|
842
842
|
) => {
|
843
|
+
//
|
844
|
+
const value = new Date(event.target.value).getUTCSeconds()
|
845
|
+
? event.target.value
|
846
|
+
: `${event.target.value}:00`;
|
843
847
|
if (valueSpecification instanceof SimpleFunctionExpression) {
|
844
848
|
setValueSpecification(
|
845
849
|
buildPrimitiveInstanceValue(
|
846
850
|
graph,
|
847
851
|
PRIMITIVE_TYPE.DATETIME,
|
848
|
-
|
852
|
+
value,
|
849
853
|
observerContext,
|
850
854
|
),
|
851
855
|
);
|
852
856
|
} else {
|
853
|
-
instanceValue_setValue(
|
854
|
-
valueSpecification,
|
855
|
-
event.target.value,
|
856
|
-
0,
|
857
|
-
observerContext,
|
858
|
-
);
|
857
|
+
instanceValue_setValue(valueSpecification, value, 0, observerContext);
|
859
858
|
if (
|
860
859
|
valueSpecification.genericType.value.rawType.path !==
|
861
860
|
PRIMITIVE_TYPE.DATETIME
|
@@ -24,9 +24,10 @@ import {
|
|
24
24
|
useDragPreviewLayer,
|
25
25
|
} from '@finos/legend-art';
|
26
26
|
import {
|
27
|
-
SimpleFunctionExpression,
|
28
27
|
type ValueSpecification,
|
28
|
+
SimpleFunctionExpression,
|
29
29
|
type VariableExpression,
|
30
|
+
INTERNAL__UnknownValueSpecification,
|
30
31
|
} from '@finos/legend-graph';
|
31
32
|
import { observer } from 'mobx-react-lite';
|
32
33
|
import { useDrag } from 'react-dnd';
|
@@ -62,11 +63,12 @@ export const VariableViewer = observer(
|
|
62
63
|
if (possibleDateLabel) {
|
63
64
|
return possibleDateLabel;
|
64
65
|
}
|
66
|
+
} else if (value instanceof INTERNAL__UnknownValueSpecification) {
|
67
|
+
return '(calculated)';
|
65
68
|
}
|
66
69
|
return getValueSpecificationStringValue(value);
|
67
70
|
};
|
68
|
-
|
69
|
-
const valueString = constantValue
|
71
|
+
const constantValueString = constantValue
|
70
72
|
? getNameOfValue(constantValue)
|
71
73
|
: undefined;
|
72
74
|
const name = variable.name;
|
@@ -75,6 +77,15 @@ export const VariableViewer = observer(
|
|
75
77
|
const isVariableUsed = queryBuilderState.isVariableUsed(variable);
|
76
78
|
const deleteDisabled = isReadOnly || isVariableUsed;
|
77
79
|
const deleteTitle = isVariableUsed ? 'Used in query' : 'Remove';
|
80
|
+
|
81
|
+
const isEditDisabled =
|
82
|
+
isReadOnly ||
|
83
|
+
constantValue instanceof INTERNAL__UnknownValueSpecification;
|
84
|
+
|
85
|
+
const editMessage =
|
86
|
+
constantValue instanceof INTERNAL__UnknownValueSpecification
|
87
|
+
? 'Calculated constants can only be edited via text mode'
|
88
|
+
: 'Edit';
|
78
89
|
const editVariable = (): void => {
|
79
90
|
actions?.editVariable();
|
80
91
|
};
|
@@ -115,14 +126,14 @@ export const VariableViewer = observer(
|
|
115
126
|
</div>
|
116
127
|
<div className="query-builder__variables__variable__label">
|
117
128
|
{name}
|
118
|
-
{
|
129
|
+
{constantValueString ? (
|
119
130
|
<div className="query-builder__constants__value">
|
120
|
-
{
|
131
|
+
{constantValueString}
|
121
132
|
</div>
|
122
133
|
) : (
|
123
134
|
<div className="query-builder__variables__variable__type">
|
124
135
|
<div className="query-builder__variables__variable__type__label">
|
125
|
-
{typeName}
|
136
|
+
{typeName ?? 'unknown'}
|
126
137
|
</div>
|
127
138
|
</div>
|
128
139
|
)}
|
@@ -133,9 +144,9 @@ export const VariableViewer = observer(
|
|
133
144
|
<button
|
134
145
|
className="query-builder__variables__variable__action"
|
135
146
|
tabIndex={-1}
|
136
|
-
disabled={
|
147
|
+
disabled={isEditDisabled}
|
137
148
|
onClick={editVariable}
|
138
|
-
title=
|
149
|
+
title={editMessage}
|
139
150
|
>
|
140
151
|
<PencilIcon />
|
141
152
|
</button>
|