@finos/legend-query-builder 1.0.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.js +4 -4
- package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +2 -2
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +5 -6
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js +8 -13
- package/lib/components/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.js +6 -6
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js +3 -5
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +5 -6
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +91 -41
- 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 +13 -14
- package/lib/components/shared/CustomDatePicker.js.map +1 -1
- package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
- package/lib/components/shared/LambdaEditor.js +1 -1
- package/lib/components/shared/LambdaEditor.js.map +1 -1
- package/lib/components/watermark/QueryBuilderWatermark.d.ts.map +1 -1
- package/lib/components/watermark/QueryBuilderWatermark.js +1 -1
- package/lib/components/watermark/QueryBuilderWatermark.js.map +1 -1
- package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts +1 -0
- package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts.map +1 -1
- package/lib/graphManager/QueryBuilderSupportedFunctions.js +1 -0
- package/lib/graphManager/QueryBuilderSupportedFunctions.js.map +1 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +8 -8
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +17 -26
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +11 -10
- package/lib/stores/QueryBuilderChangeDetectionState.d.ts +4 -4
- package/lib/stores/QueryBuilderChangeDetectionState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderChangeDetectionState.js +9 -9
- package/lib/stores/QueryBuilderChangeDetectionState.js.map +1 -1
- package/lib/stores/QueryBuilderConstantsState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderConstantsState.js +4 -4
- package/lib/stores/QueryBuilderConstantsState.js.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts +2 -3
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.js +9 -12
- package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
- package/lib/stores/QueryBuilderState.d.ts +8 -5
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +25 -21
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts +2 -2
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +16 -12
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderTextEditorState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderTextEditorState.js +4 -1
- package/lib/stores/QueryBuilderTextEditorState.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +9 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +22 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +2 -2
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js +21 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +2 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +2 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +6 -3
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +4 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +4 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +2 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.js +2 -2
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js +9 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +4 -3
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js +3 -3
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
- package/lib/stores/shared/LambdaParameterState.d.ts +2 -2
- package/lib/stores/shared/LambdaParameterState.d.ts.map +1 -1
- package/lib/stores/shared/LambdaParameterState.js +5 -5
- package/lib/stores/shared/LambdaParameterState.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +4 -4
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +11 -15
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationModifierHelper.d.ts +8 -8
- package/lib/stores/shared/ValueSpecificationModifierHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationModifierHelper.js +20 -17
- package/lib/stores/shared/ValueSpecificationModifierHelper.js.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkState.js +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkState.js.map +1 -1
- package/package.json +18 -17
- package/src/components/QueryBuilderConstantExpressionPanel.tsx +4 -2
- package/src/components/QueryBuilderParametersPanel.tsx +2 -2
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +6 -6
- package/src/components/QueryBuilderResultPanel.tsx +19 -15
- package/src/components/explorer/QueryBuilderExplorerPanel.tsx +10 -11
- package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +7 -5
- package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +9 -6
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +1 -1
- package/src/components/filter/QueryBuilderFilterPanel.tsx +1 -1
- package/src/components/shared/BasicValueSpecificationEditor.tsx +192 -48
- package/src/components/shared/CustomDatePicker.tsx +54 -26
- package/src/components/shared/LambdaEditor.tsx +0 -1
- package/src/components/watermark/QueryBuilderWatermark.tsx +1 -3
- package/src/graphManager/QueryBuilderSupportedFunctions.ts +4 -0
- package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +1 -1
- package/src/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +67 -68
- package/src/stores/QueryBuilderChangeDetectionState.ts +13 -11
- package/src/stores/QueryBuilderConstantsState.ts +4 -3
- package/src/stores/QueryBuilderPropertyEditorState.ts +17 -13
- package/src/stores/QueryBuilderState.ts +35 -24
- package/src/stores/QueryBuilderStateBuilder.ts +20 -18
- package/src/stores/QueryBuilderTextEditorState.ts +4 -1
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +1 -1
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +36 -0
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +10 -2
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +1 -1
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.ts +26 -1
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +2 -0
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +2 -0
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +14 -3
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +4 -0
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +4 -0
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +2 -0
- package/src/stores/filter/QueryBuilderFilterState.ts +2 -2
- package/src/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.ts +17 -4
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +1 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +1 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +12 -3
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +2 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +2 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +2 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +2 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +1 -0
- package/src/stores/milestoning/QueryBuilderMilestoningState.ts +3 -9
- package/src/stores/shared/LambdaParameterState.ts +9 -5
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +24 -9
- package/src/stores/shared/ValueSpecificationModifierHelper.ts +42 -20
- package/src/stores/watermark/QueryBuilderWatermarkState.ts +1 -4
@@ -13,21 +13,21 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type Multiplicity, type FunctionExpression,
|
16
|
+
import { type Multiplicity, type FunctionExpression, ValueSpecification, type ObserverContext, type VariableExpression, type InstanceValue, type GraphFetchTree, type AbstractPropertyExpression, type GenericTypeReference, type SimpleFunctionExpression, type PackageableElementReference, type Function, type LambdaFunction, type FunctionType, type CollectionInstanceValue, type PropertyReference } from '@finos/legend-graph';
|
17
17
|
export declare const valueSpecification_setGenericType: (target: ValueSpecification, val: GenericTypeReference | undefined) => void;
|
18
18
|
export declare const valueSpecification_setMultiplicity: (target: ValueSpecification, val: Multiplicity) => void;
|
19
19
|
export declare const simpleFunctionExpression_setFunc: (target: SimpleFunctionExpression, val: PackageableElementReference<Function> | undefined) => void;
|
20
|
-
export declare const functionExpression_setParametersValues: (target: FunctionExpression,
|
20
|
+
export declare const functionExpression_setParametersValues: (target: FunctionExpression, values: ValueSpecification[], context: ObserverContext) => void;
|
21
21
|
export declare const functionExpression_setParameterValue: (target: FunctionExpression, val: ValueSpecification, idx: number, context: ObserverContext) => void;
|
22
22
|
export declare const functionExpression_addParameterValue: (target: FunctionExpression, val: ValueSpecification, context: ObserverContext) => void;
|
23
23
|
export declare const propertyExpression_setFunc: (target: AbstractPropertyExpression, val: PropertyReference) => void;
|
24
24
|
export declare const variableExpression_setName: (target: VariableExpression, val: string) => void;
|
25
|
-
export declare const collectionInstanceValue_setValues: (target: CollectionInstanceValue,
|
26
|
-
export declare const instanceValue_setValue: (target: InstanceValue, val: unknown, idx: number) => void;
|
27
|
-
export declare const instanceValue_setValues: (target: InstanceValue,
|
28
|
-
export declare const graphFetchTree_addSubTree: (target: GraphFetchTree, val: GraphFetchTree) => void;
|
25
|
+
export declare const collectionInstanceValue_setValues: (target: CollectionInstanceValue, values: ValueSpecification[], observerContext: ObserverContext) => void;
|
26
|
+
export declare const instanceValue_setValue: (target: InstanceValue, val: unknown, idx: number, observerContext: ObserverContext) => void;
|
27
|
+
export declare const instanceValue_setValues: (target: InstanceValue, values: unknown[], observerContext: ObserverContext) => void;
|
28
|
+
export declare const graphFetchTree_addSubTree: (target: GraphFetchTree, val: GraphFetchTree, observerContext: ObserverContext) => void;
|
29
29
|
export declare const graphFetchTree_removeSubTree: (target: GraphFetchTree, val: GraphFetchTree) => void;
|
30
|
-
export declare const lambdaFunction_setExpressionSequence: (target: LambdaFunction, val: ValueSpecification[],
|
31
|
-
export declare const lambdaFunction_setExpression: (target: LambdaFunction, val: ValueSpecification, idx: number,
|
30
|
+
export declare const lambdaFunction_setExpressionSequence: (target: LambdaFunction, val: ValueSpecification[], observerContext: ObserverContext) => void;
|
31
|
+
export declare const lambdaFunction_setExpression: (target: LambdaFunction, val: ValueSpecification, idx: number, observerContext: ObserverContext) => void;
|
32
32
|
export declare const functionType_setParameters: (target: FunctionType, val: VariableExpression[]) => void;
|
33
33
|
//# sourceMappingURL=ValueSpecificationModifierHelper.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ValueSpecificationModifierHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,
|
1
|
+
{"version":3,"file":"ValueSpecificationModifierHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,kBAAkB,EAClB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EAMvB,MAAM,qBAAqB,CAAC;AAI7B,eAAO,MAAM,iCAAiC,WACnC,kBAAkB,OAAO,oBAAoB,GAAG,SAAS,KAAG,IAGtE,CAAC;AAEF,eAAO,MAAM,kCAAkC,WACpC,kBAAkB,OAAO,YAAY,KAAG,IAGlD,CAAC;AAEF,eAAO,MAAM,gCAAgC,WAEjC,wBAAwB,OAE3B,4BAA4B,QAAQ,CAAC,GAAG,SAAS,KACrD,IAGJ,CAAC;AAEF,eAAO,MAAM,sCAAsC,WAEvC,kBAAkB,UAClB,kBAAkB,EAAE,WACnB,eAAe,KACvB,IAKJ,CAAC;AAEF,eAAO,MAAM,oCAAoC,WAErC,kBAAkB,OACrB,kBAAkB,OAClB,MAAM,WACF,eAAe,KACvB,IAGJ,CAAC;AAEF,eAAO,MAAM,oCAAoC,WAErC,kBAAkB,OACrB,kBAAkB,WACd,eAAe,KACvB,IAGJ,CAAC;AAEF,eAAO,MAAM,0BAA0B,WAC5B,0BAA0B,OAAO,iBAAiB,KAAG,IAG/D,CAAC;AAEF,eAAO,MAAM,0BAA0B,WAC5B,kBAAkB,OAAO,MAAM,KAAG,IAG5C,CAAC;AAEF,eAAO,MAAM,iCAAiC,WAElC,uBAAuB,UACvB,kBAAkB,EAAE,mBACX,eAAe,SAMnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,WAEvB,aAAa,OAChB,OAAO,OACP,MAAM,mBACM,eAAe,SAOnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,WAExB,aAAa,UACb,OAAO,EAAE,mBACA,eAAe,SAQnC,CAAC;AAEF,eAAO,MAAM,yBAAyB,WAE1B,cAAc,OACjB,cAAc,mBACF,eAAe,KAC/B,IAMJ,CAAC;AAEF,eAAO,MAAM,4BAA4B,WAC9B,cAAc,OAAO,cAAc,KAAG,IAGhD,CAAC;AAEF,eAAO,MAAM,oCAAoC,WAErC,cAAc,OACjB,kBAAkB,EAAE,mBACR,eAAe,SAMnC,CAAC;AAEF,eAAO,MAAM,4BAA4B,WAE7B,cAAc,OACjB,kBAAkB,OAClB,MAAM,mBACM,eAAe,SAOnC,CAAC;AAEF,eAAO,MAAM,0BAA0B,WAC5B,YAAY,OAAO,kBAAkB,EAAE,SAGjD,CAAC"}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { observe_ValueSpecification, observe_GenericTypeReference, observe_PackageableElementReference, observe_VariableExpression, } from '@finos/legend-graph';
|
16
|
+
import { ValueSpecification, observe_ValueSpecification, observe_GenericTypeReference, observe_PackageableElementReference, observe_VariableExpression, observe_GraphFetchTree, } from '@finos/legend-graph';
|
17
17
|
import { addUniqueEntry, deleteEntry } from '@finos/legend-shared';
|
18
18
|
import { action } from 'mobx';
|
19
19
|
export const valueSpecification_setGenericType = action((target, val) => {
|
@@ -27,8 +27,8 @@ export const simpleFunctionExpression_setFunc = action((target,
|
|
27
27
|
val) => {
|
28
28
|
target.func = val ? observe_PackageableElementReference(val) : undefined;
|
29
29
|
});
|
30
|
-
export const functionExpression_setParametersValues = action((target,
|
31
|
-
target.parametersValues =
|
30
|
+
export const functionExpression_setParametersValues = action((target, values, context) => {
|
31
|
+
target.parametersValues = values.map((val) => observe_ValueSpecification(val, context));
|
32
32
|
});
|
33
33
|
export const functionExpression_setParameterValue = action((target, val, idx, context) => {
|
34
34
|
target.parametersValues[idx] = observe_ValueSpecification(val, context);
|
@@ -42,28 +42,31 @@ export const propertyExpression_setFunc = action((target, val) => {
|
|
42
42
|
export const variableExpression_setName = action((target, val) => {
|
43
43
|
target.name = val;
|
44
44
|
});
|
45
|
-
export const collectionInstanceValue_setValues = action((target,
|
46
|
-
target.values =
|
45
|
+
export const collectionInstanceValue_setValues = action((target, values, observerContext) => {
|
46
|
+
target.values = values.map((val) => observe_ValueSpecification(val, observerContext));
|
47
47
|
});
|
48
|
-
export const instanceValue_setValue = action((target, val, idx) => {
|
49
|
-
target.values[idx] =
|
48
|
+
export const instanceValue_setValue = action((target, val, idx, observerContext) => {
|
49
|
+
target.values[idx] =
|
50
|
+
val instanceof ValueSpecification
|
51
|
+
? observe_ValueSpecification(val, observerContext)
|
52
|
+
: val;
|
50
53
|
});
|
51
|
-
export const instanceValue_setValues = action((target,
|
52
|
-
|
53
|
-
|
54
|
-
|
54
|
+
export const instanceValue_setValues = action((target, values, observerContext) => {
|
55
|
+
target.values = values.map((val) => val instanceof ValueSpecification
|
56
|
+
? observe_ValueSpecification(val, observerContext)
|
57
|
+
: val);
|
55
58
|
});
|
56
|
-
export const graphFetchTree_addSubTree = action((target, val) => {
|
57
|
-
addUniqueEntry(target.subTrees, val);
|
59
|
+
export const graphFetchTree_addSubTree = action((target, val, observerContext) => {
|
60
|
+
addUniqueEntry(target.subTrees, observe_GraphFetchTree(val, observerContext));
|
58
61
|
});
|
59
62
|
export const graphFetchTree_removeSubTree = action((target, val) => {
|
60
63
|
deleteEntry(target.subTrees, val);
|
61
64
|
});
|
62
|
-
export const lambdaFunction_setExpressionSequence = action((target, val,
|
63
|
-
target.expressionSequence = val.map((v) => observe_ValueSpecification(v,
|
65
|
+
export const lambdaFunction_setExpressionSequence = action((target, val, observerContext) => {
|
66
|
+
target.expressionSequence = val.map((v) => observe_ValueSpecification(v, observerContext));
|
64
67
|
});
|
65
|
-
export const lambdaFunction_setExpression = action((target, val, idx,
|
66
|
-
target.expressionSequence[idx] = observe_ValueSpecification(val,
|
68
|
+
export const lambdaFunction_setExpression = action((target, val, idx, observerContext) => {
|
69
|
+
target.expressionSequence[idx] = observe_ValueSpecification(val, observerContext);
|
67
70
|
});
|
68
71
|
export const functionType_setParameters = action((target, val) => {
|
69
72
|
target.parameters = val.map((v) => observe_VariableExpression(v));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ValueSpecificationModifierHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"ValueSpecificationModifierHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,kBAAkB,EAclB,0BAA0B,EAC1B,4BAA4B,EAC5B,mCAAmC,EACnC,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,MAA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":3,"file":"QueryBuilderWatermarkState.d.ts","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EAMxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGjE,qBAAa,0BAA2B,YAAW,QAAQ;IACzD,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,KAAK,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACvC,kBAAkB,UAAS;gBAEf,iBAAiB,EAAE,iBAAiB;IAchD,UAAU,IAAI,IAAI;IAWlB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIzC,eAAe,IAAI,IAAI;IAQvB,QAAQ,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;
|
1
|
+
{"version":3,"file":"QueryBuilderWatermarkState.d.ts","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EAMxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGjE,qBAAa,0BAA2B,YAAW,QAAQ;IACzD,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,KAAK,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACvC,kBAAkB,UAAS;gBAEf,iBAAiB,EAAE,iBAAiB;IAchD,UAAU,IAAI,IAAI;IAWlB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIzC,eAAe,IAAI,IAAI;IAQvB,QAAQ,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAMnD,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO;IAMrD,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
|
@@ -52,7 +52,7 @@ export class QueryBuilderWatermarkState {
|
|
52
52
|
}
|
53
53
|
setValue(val) {
|
54
54
|
this.value = val
|
55
|
-
? observe_ValueSpecification(val, this.queryBuilderState.
|
55
|
+
? observe_ValueSpecification(val, this.queryBuilderState.observerContext)
|
56
56
|
: undefined;
|
57
57
|
}
|
58
58
|
isVariableUsed(variable) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderWatermarkState.js","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,0BAA0B,EAC1B,4BAA4B,EAC5B,WAAW,EACX,sBAAsB,EACtB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAE3F,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAEhG,MAAM,OAAO,0BAA0B;IAC5B,iBAAiB,CAAoB;IAC9C,KAAK,CAAkC;IACvC,kBAAkB,GAAG,KAAK,CAAC;IAE3B,YAAY,iBAAoC;QAC9C,cAAc,CAAC,IAAI,EAAE;YACnB,KAAK,EAAE,UAAU;YACjB,kBAAkB,EAAE,UAAU;YAC9B,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE,MAAM;YAClB,eAAe,EAAE,MAAM;YACvB,qBAAqB,EAAE,MAAM;YAC7B,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;IAED,UAAU;QACR,MAAM,iBAAiB,GAAG,IAAI,sBAAsB,CAClD,4BAA4B,CAAC,MAAM,CACjC,IAAI,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,CACtC,CACF,CAAC;QAEF,iBAAiB,CAAC,MAAM,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAC9C,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IACnC,CAAC;IAED,qBAAqB,CAAC,GAAY;QAChC,IAAI,CAAC,kBAAkB,GAAG,GAAG,CAAC;IAChC,CAAC;IAED,eAAe;QACb,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;SAC1B;aAAM;YACL,IAAI,CAAC,UAAU,EAAE,CAAC;SACnB;IACH,CAAC;IAED,QAAQ,CAAC,GAAmC;QAC1C,IAAI,CAAC,KAAK,GAAG,GAAG;YACd,CAAC,CAAC,0BAA0B,
|
1
|
+
{"version":3,"file":"QueryBuilderWatermarkState.js","sourceRoot":"","sources":["../../../src/stores/watermark/QueryBuilderWatermarkState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,0BAA0B,EAC1B,4BAA4B,EAC5B,WAAW,EACX,sBAAsB,EACtB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAE3F,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;A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1D,CAAC,CAAC,KAAK,CAAC;IACZ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,eAAe;YAC5C,IAAI,CAAC,KAAK,IAAI,EAAE;SACjB,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.4",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -41,38 +41,39 @@
|
|
41
41
|
"test:watch": "jest --watch"
|
42
42
|
},
|
43
43
|
"dependencies": {
|
44
|
-
"@ag-grid-community/client-side-row-model": "29.
|
45
|
-
"@ag-grid-community/core": "29.
|
46
|
-
"@ag-grid-community/react": "29.
|
47
|
-
"@ag-grid-community/styles": "29.
|
48
|
-
"@finos/legend-application": "13.0.
|
49
|
-
"@finos/legend-art": "5.0.
|
50
|
-
"@finos/legend-graph": "
|
51
|
-
"@finos/legend-server-depot": "4.4.
|
52
|
-
"@finos/legend-shared": "8.0.
|
53
|
-
"@finos/legend-storage": "3.0.
|
44
|
+
"@ag-grid-community/client-side-row-model": "29.2.0",
|
45
|
+
"@ag-grid-community/core": "29.2.0",
|
46
|
+
"@ag-grid-community/react": "29.2.0",
|
47
|
+
"@ag-grid-community/styles": "29.2.0",
|
48
|
+
"@finos/legend-application": "13.0.4",
|
49
|
+
"@finos/legend-art": "5.0.38",
|
50
|
+
"@finos/legend-graph": "25.0.0",
|
51
|
+
"@finos/legend-server-depot": "4.4.8",
|
52
|
+
"@finos/legend-shared": "8.0.3",
|
53
|
+
"@finos/legend-storage": "3.0.43",
|
54
54
|
"@testing-library/react": "14.0.0",
|
55
55
|
"@types/papaparse": "5.3.7",
|
56
|
-
"@types/react": "18.0.
|
56
|
+
"@types/react": "18.0.29",
|
57
57
|
"@types/react-dom": "18.0.11",
|
58
|
-
"
|
58
|
+
"mathjs": "11.7.0",
|
59
|
+
"mobx": "6.9.0",
|
59
60
|
"mobx-react-lite": "3.4.3",
|
60
61
|
"monaco-editor": "0.36.1",
|
61
|
-
"papaparse": "5.4.
|
62
|
+
"papaparse": "5.4.1",
|
62
63
|
"react": "18.2.0",
|
63
64
|
"react-dnd": "16.0.1",
|
64
65
|
"react-dom": "18.2.0",
|
65
66
|
"serializr": "3.0.2"
|
66
67
|
},
|
67
68
|
"devDependencies": {
|
68
|
-
"@finos/legend-dev-utils": "2.0.
|
69
|
+
"@finos/legend-dev-utils": "2.0.47",
|
69
70
|
"@jest/globals": "29.5.0",
|
70
71
|
"cross-env": "7.0.3",
|
71
72
|
"eslint": "8.36.0",
|
72
73
|
"jest": "29.5.0",
|
73
74
|
"npm-run-all": "4.1.5",
|
74
|
-
"rimraf": "4.4.
|
75
|
-
"sass": "1.
|
75
|
+
"rimraf": "4.4.1",
|
76
|
+
"sass": "1.60.0",
|
76
77
|
"typescript": "5.0.2"
|
77
78
|
},
|
78
79
|
"peerDependencies": {
|
@@ -52,7 +52,7 @@ import { BasicValueSpecificationEditor } from './shared/BasicValueSpecificationE
|
|
52
52
|
import { VariableViewer } from './shared/QueryBuilderVariableSelector.js';
|
53
53
|
import { QUERY_BUILDER_TEST_ID } from '../application/QueryBuilderTesting.js';
|
54
54
|
|
55
|
-
//
|
55
|
+
// NOTE: We currently only allow constant variables for primitive types of multiplicity ONE.
|
56
56
|
// This is why we don't show multiplicity in the editor.
|
57
57
|
const QueryBuilderConstantExpressionEditor = observer(
|
58
58
|
(props: { constantState: QueryBuilderConstantExpressionState }) => {
|
@@ -100,6 +100,7 @@ const QueryBuilderConstantExpressionEditor = observer(
|
|
100
100
|
const valSpec = buildDefaultInstanceValue(
|
101
101
|
queryBuilderState.graphManagerState.graph,
|
102
102
|
variableType,
|
103
|
+
queryBuilderState.observerContext,
|
103
104
|
);
|
104
105
|
constantState.setValueSpec(valSpec);
|
105
106
|
};
|
@@ -167,7 +168,7 @@ const QueryBuilderConstantExpressionEditor = observer(
|
|
167
168
|
constantState.setValueSpec(val);
|
168
169
|
}}
|
169
170
|
graph={queryBuilderState.graphManagerState.graph}
|
170
|
-
obseverContext={queryBuilderState.
|
171
|
+
obseverContext={queryBuilderState.observerContext}
|
171
172
|
typeCheckOption={{
|
172
173
|
expectedType: variableType,
|
173
174
|
match: variableType === PrimitiveType.DATETIME,
|
@@ -209,6 +210,7 @@ export const QueryBuilderConstantExpressionPanel = observer(
|
|
209
210
|
const defaultVal = buildDefaultInstanceValue(
|
210
211
|
graph,
|
211
212
|
PrimitiveType.STRING,
|
213
|
+
queryBuilderState.observerContext,
|
212
214
|
);
|
213
215
|
const constantName = generateEnumerableNameFromToken(
|
214
216
|
varNames,
|
@@ -249,7 +249,7 @@ export const QueryBuilderParametersPanel = observer(
|
|
249
249
|
new GenericType(PrimitiveType.STRING),
|
250
250
|
),
|
251
251
|
),
|
252
|
-
queryBuilderState.
|
252
|
+
queryBuilderState.observerContext,
|
253
253
|
queryBuilderState.graphManagerState.graph,
|
254
254
|
);
|
255
255
|
queryParameterState.setSelectedParameter(parmaterState);
|
@@ -329,7 +329,7 @@ export const QueryBuilderParametersPanel = observer(
|
|
329
329
|
{queryParameterState.parameterValuesEditorState.showModal && (
|
330
330
|
<LambdaParameterValuesEditor
|
331
331
|
graph={queryBuilderState.graphManagerState.graph}
|
332
|
-
observerContext={queryBuilderState.
|
332
|
+
observerContext={queryBuilderState.observerContext}
|
333
333
|
lambdaParametersState={queryParameterState}
|
334
334
|
/>
|
335
335
|
)}
|
@@ -88,7 +88,7 @@ const DerivedPropertyParameterValueEditor = observer(
|
|
88
88
|
derivedPropertyExpressionState.propertyExpression,
|
89
89
|
item.variable,
|
90
90
|
idx + 1,
|
91
|
-
derivedPropertyExpressionState.queryBuilderState.
|
91
|
+
derivedPropertyExpressionState.queryBuilderState.observerContext,
|
92
92
|
);
|
93
93
|
},
|
94
94
|
[derivedPropertyExpressionState, idx],
|
@@ -156,7 +156,7 @@ const DerivedPropertyParameterValueEditor = observer(
|
|
156
156
|
guaranteeType(nextExpression, AbstractPropertyExpression),
|
157
157
|
guaranteeNonNullable(newParameterValue),
|
158
158
|
index + 1,
|
159
|
-
queryBuilderState.
|
159
|
+
queryBuilderState.observerContext,
|
160
160
|
);
|
161
161
|
}
|
162
162
|
});
|
@@ -201,9 +201,10 @@ const DerivedPropertyParameterValueEditor = observer(
|
|
201
201
|
variable,
|
202
202
|
derivedPropertyExpressionState.queryBuilderState.graphManagerState
|
203
203
|
.graph,
|
204
|
+
derivedPropertyExpressionState.queryBuilderState.observerContext,
|
204
205
|
),
|
205
206
|
idx + 1,
|
206
|
-
derivedPropertyExpressionState.queryBuilderState.
|
207
|
+
derivedPropertyExpressionState.queryBuilderState.observerContext,
|
207
208
|
);
|
208
209
|
const derivedPropertyExpressionStates =
|
209
210
|
derivedPropertyExpressionState.propertyExpressionState
|
@@ -244,13 +245,12 @@ const DerivedPropertyParameterValueEditor = observer(
|
|
244
245
|
val,
|
245
246
|
idx + 1,
|
246
247
|
derivedPropertyExpressionState.queryBuilderState
|
247
|
-
.
|
248
|
+
.observerContext,
|
248
249
|
);
|
249
250
|
}}
|
250
251
|
graph={graph}
|
251
252
|
obseverContext={
|
252
|
-
derivedPropertyExpressionState.queryBuilderState
|
253
|
-
.observableContext
|
253
|
+
derivedPropertyExpressionState.queryBuilderState.observerContext
|
254
254
|
}
|
255
255
|
typeCheckOption={{
|
256
256
|
expectedType: parameterType,
|
@@ -155,6 +155,7 @@ const QueryBuilderGridResultContextMenu = observer(
|
|
155
155
|
)
|
156
156
|
: event?.value,
|
157
157
|
0,
|
158
|
+
tdsState.queryBuilderState.observerContext,
|
158
159
|
);
|
159
160
|
}
|
160
161
|
};
|
@@ -230,10 +231,11 @@ const QueryBuilderGridResultContextMenu = observer(
|
|
230
231
|
conditionState.changeOperator(
|
231
232
|
isFilterBy ? postFilterInOperator : postFilterNotInOperator,
|
232
233
|
);
|
233
|
-
instanceValue_setValues(
|
234
|
-
|
235
|
-
newValueSpecification,
|
236
|
-
|
234
|
+
instanceValue_setValues(
|
235
|
+
conditionState.value as InstanceValue,
|
236
|
+
[currentValueSpecificaton, newValueSpecification],
|
237
|
+
tdsState.queryBuilderState.observerContext,
|
238
|
+
);
|
237
239
|
}
|
238
240
|
} else {
|
239
241
|
const doesValueAlreadyExist =
|
@@ -252,10 +254,14 @@ const QueryBuilderGridResultContextMenu = observer(
|
|
252
254
|
isFilterBy ? postFilterEqualOperator : postFilterNotEqualOperator
|
253
255
|
).getDefaultFilterConditionValue(conditionState);
|
254
256
|
updateFilterConditionValue(newValueSpecification as InstanceValue);
|
255
|
-
instanceValue_setValues(
|
256
|
-
|
257
|
-
|
258
|
-
|
257
|
+
instanceValue_setValues(
|
258
|
+
conditionState.value as InstanceValue,
|
259
|
+
[
|
260
|
+
...(conditionState.value as InstanceValue).values,
|
261
|
+
newValueSpecification,
|
262
|
+
],
|
263
|
+
tdsState.queryBuilderState.observerContext,
|
264
|
+
);
|
259
265
|
}
|
260
266
|
}
|
261
267
|
};
|
@@ -326,18 +332,16 @@ const QueryBuilderGridResult = observer(
|
|
326
332
|
const [cellDoubleClickedEvent, setCellDoubleClickedEvent] =
|
327
333
|
useState<CellMouseOverEvent | null>(null);
|
328
334
|
const columns = executionResult.result.columns;
|
329
|
-
|
330
|
-
const rowData = executionResult.result.rows.map((_row) => {
|
335
|
+
const rowData = executionResult.result.rows.map((_row, rowIdx) => {
|
331
336
|
const row: PlainObject = {};
|
332
337
|
const cols = executionResult.result.columns;
|
333
|
-
_row.values.forEach((value,
|
338
|
+
_row.values.forEach((value, colIdx) => {
|
334
339
|
// `ag-grid` shows `false` value as empty string so we have
|
335
340
|
// call `.toString()` to avoid this behavior.
|
336
341
|
// See https://github.com/finos/legend-studio/issues/1008
|
337
|
-
row[cols[
|
338
|
-
row.rowNumber = rowNumber;
|
342
|
+
row[cols[colIdx] as string] = isBoolean(value) ? String(value) : value;
|
339
343
|
});
|
340
|
-
rowNumber
|
344
|
+
row.rowNumber = rowIdx;
|
341
345
|
return row;
|
342
346
|
});
|
343
347
|
|
@@ -370,7 +374,7 @@ const QueryBuilderGridResult = observer(
|
|
370
374
|
},
|
371
375
|
}}
|
372
376
|
modules={[ClientSideRowModelModule]}
|
373
|
-
//
|
377
|
+
// NOTE: we use onCellMouseOver as a bit of a workaround
|
374
378
|
// since we use the context menu so we want the user to be
|
375
379
|
// able to right click any cell and have the context menu
|
376
380
|
// options use the data belonging to the row that they are
|
@@ -69,10 +69,7 @@ import { useDrag } from 'react-dnd';
|
|
69
69
|
import { QueryBuilderPropertyInfoTooltip } from '../shared/QueryBuilderPropertyInfoTooltip.js';
|
70
70
|
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
71
71
|
import { flowResult } from 'mobx';
|
72
|
-
import {
|
73
|
-
getPropertyChainName,
|
74
|
-
prettyPropertyName,
|
75
|
-
} from '../../stores/QueryBuilderPropertyEditorState.js';
|
72
|
+
import { getPropertyChainName } from '../../stores/QueryBuilderPropertyEditorState.js';
|
76
73
|
import {
|
77
74
|
type Type,
|
78
75
|
type Multiplicity,
|
@@ -92,7 +89,11 @@ import {
|
|
92
89
|
import { useApplicationStore } from '@finos/legend-application';
|
93
90
|
import { getClassPropertyIcon } from '../shared/ElementIconUtils.js';
|
94
91
|
import { QUERY_BUILDER_TEST_ID } from '../../application/QueryBuilderTesting.js';
|
95
|
-
import {
|
92
|
+
import {
|
93
|
+
filterByType,
|
94
|
+
guaranteeNonNullable,
|
95
|
+
prettyCONSTName,
|
96
|
+
} from '@finos/legend-shared';
|
96
97
|
import { QueryBuilderPropertySearchPanel } from './QueryBuilderPropertySearchPanel.js';
|
97
98
|
import { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
98
99
|
import { QueryBuilderSimpleProjectionColumnState } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
|
@@ -226,9 +227,7 @@ const QueryBuilderExplorerPreviewDataModal = observer(
|
|
226
227
|
darkMode={true}
|
227
228
|
className="editor-modal query-builder__explorer__preview-data-modal"
|
228
229
|
>
|
229
|
-
<ModalHeader
|
230
|
-
title={prettyPropertyName(previewDataState.propertyName)}
|
231
|
-
/>
|
230
|
+
<ModalHeader title={prettyCONSTName(previewDataState.propertyName)} />
|
232
231
|
<PanelLoadingIndicator
|
233
232
|
isLoading={previewDataState.isGeneratingPreviewData}
|
234
233
|
/>
|
@@ -577,8 +576,8 @@ const QueryBuilderExplorerTreeNodeContainer = observer(
|
|
577
576
|
>
|
578
577
|
{explorerState.humanizePropertyName
|
579
578
|
? node instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
580
|
-
? TYPE_CAST_TOKEN +
|
581
|
-
:
|
579
|
+
? TYPE_CAST_TOKEN + prettyCONSTName(node.label)
|
580
|
+
: prettyCONSTName(node.label)
|
582
581
|
: node instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
583
582
|
? TYPE_CAST_TOKEN + node.label
|
584
583
|
: node.label}
|
@@ -942,7 +941,7 @@ export const QueryBuilderExplorerPanel = observer(
|
|
942
941
|
<DragPreviewLayer
|
943
942
|
labelGetter={(item: QueryBuilderExplorerTreeDragSource): string =>
|
944
943
|
explorerState.humanizePropertyName
|
945
|
-
?
|
944
|
+
? prettyCONSTName(item.node.label)
|
946
945
|
: item.node.label
|
947
946
|
}
|
948
947
|
types={Object.values(QUERY_BUILDER_EXPLORER_TREE_DND_TYPE)}
|
@@ -104,11 +104,13 @@ const MilestoningParameterEditor = observer(
|
|
104
104
|
new GenericType(PrimitiveType.STRICTDATE),
|
105
105
|
),
|
106
106
|
),
|
107
|
-
queryBuilderState.
|
107
|
+
queryBuilderState.observerContext,
|
108
|
+
);
|
109
|
+
instanceValue_setValues(
|
110
|
+
parameter,
|
111
|
+
[generateDefaultValueForPrimitiveType(PRIMITIVE_TYPE.STRICTDATE)],
|
112
|
+
queryBuilderState.observerContext,
|
108
113
|
);
|
109
|
-
instanceValue_setValues(parameter, [
|
110
|
-
generateDefaultValueForPrimitiveType(PRIMITIVE_TYPE.STRICTDATE),
|
111
|
-
]);
|
112
114
|
if (stereotype === MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL) {
|
113
115
|
queryBuilderState.milestoningState.setBusinessDate(parameter);
|
114
116
|
} else {
|
@@ -126,7 +128,7 @@ const MilestoningParameterEditor = observer(
|
|
126
128
|
<BasicValueSpecificationEditor
|
127
129
|
valueSpecification={milestoningParameter}
|
128
130
|
graph={queryBuilderState.graphManagerState.graph}
|
129
|
-
obseverContext={queryBuilderState.
|
131
|
+
obseverContext={queryBuilderState.observerContext}
|
130
132
|
setValueSpecification={(val: ValueSpecification): void =>
|
131
133
|
stereotype === MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL
|
132
134
|
? queryBuilderState.milestoningState.setBusinessDate(val)
|
@@ -38,7 +38,11 @@ import {
|
|
38
38
|
getAllClassProperties,
|
39
39
|
getAllOwnClassProperties,
|
40
40
|
} from '@finos/legend-graph';
|
41
|
-
import {
|
41
|
+
import {
|
42
|
+
debounce,
|
43
|
+
guaranteeNonNullable,
|
44
|
+
prettyCONSTName,
|
45
|
+
} from '@finos/legend-shared';
|
42
46
|
import { observer } from 'mobx-react-lite';
|
43
47
|
import { useDrag } from 'react-dnd';
|
44
48
|
import { QUERY_BUILDER_PROPERTY_SEARCH_TYPE } from '../../stores/QueryBuilderConfig.js';
|
@@ -50,7 +54,6 @@ import {
|
|
50
54
|
getQueryBuilderPropertyNodeData,
|
51
55
|
type QueryBuilderExplorerState,
|
52
56
|
} from '../../stores/explorer/QueryBuilderExplorerState.js';
|
53
|
-
import { prettyPropertyName } from '../../stores/QueryBuilderPropertyEditorState.js';
|
54
57
|
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
55
58
|
import {
|
56
59
|
QueryBuilderSubclassInfoTooltip,
|
@@ -62,7 +65,7 @@ import { TextSearchAdvancedConfigMenu } from '@finos/legend-application';
|
|
62
65
|
|
63
66
|
const prettyPropertyNameFromNodeId = (name: string): string => {
|
64
67
|
let propNameArray = name.split('.');
|
65
|
-
propNameArray = propNameArray.map(
|
68
|
+
propNameArray = propNameArray.map(prettyCONSTName);
|
66
69
|
let propName = '';
|
67
70
|
propNameArray.forEach((p) => {
|
68
71
|
propName = `${propName + p}/`;
|
@@ -76,7 +79,7 @@ const prettyPropertyNameForSubType = (name: string): string => {
|
|
76
79
|
propNameArray = propNameArray
|
77
80
|
.map((p) => p.replace(/.*::/, ''))
|
78
81
|
.filter((p) => p !== '')
|
79
|
-
.map((p) =>
|
82
|
+
.map((p) => prettyCONSTName(p));
|
80
83
|
let propName = '';
|
81
84
|
propNameArray.slice(0, -1).forEach((p) => {
|
82
85
|
propName = `${propName}(@${p})/`;
|
@@ -84,7 +87,7 @@ const prettyPropertyNameForSubType = (name: string): string => {
|
|
84
87
|
propNameArray = guaranteeNonNullable(
|
85
88
|
propNameArray[propNameArray.length - 1],
|
86
89
|
).split('.');
|
87
|
-
propNameArray = propNameArray.map((p) =>
|
90
|
+
propNameArray = propNameArray.map((p) => prettyCONSTName(p));
|
88
91
|
propName = `${propName}(@${propNameArray[0]})/`;
|
89
92
|
propNameArray.slice(1).forEach((p) => {
|
90
93
|
propName = `${propName + p}/`;
|
@@ -98,7 +101,7 @@ const prettyPropertyNameForSubTypeClass = (name: string): string => {
|
|
98
101
|
propNameArray = propNameArray
|
99
102
|
.map((p) => p.replace(/.*::/, ''))
|
100
103
|
.filter((p) => p !== '')
|
101
|
-
.map((p) =>
|
104
|
+
.map((p) => prettyCONSTName(p));
|
102
105
|
let propName = '';
|
103
106
|
propNameArray.forEach((p) => {
|
104
107
|
propName = `${propName}@${p}`;
|
@@ -416,7 +416,7 @@ const QueryBuilderPostFilterConditionEditor = observer(
|
|
416
416
|
valueSpecification={node.condition.value}
|
417
417
|
setValueSpecification={changeValueSpecification}
|
418
418
|
graph={graph}
|
419
|
-
obseverContext={queryBuilderState.
|
419
|
+
obseverContext={queryBuilderState.observerContext}
|
420
420
|
typeCheckOption={{
|
421
421
|
expectedType: guaranteeNonNullable(
|
422
422
|
node.condition.columnState.getColumnType(),
|
@@ -269,7 +269,7 @@ const QueryBuilderFilterConditionEditor = observer(
|
|
269
269
|
valueSpecification={node.condition.value}
|
270
270
|
setValueSpecification={changeValueSpecification}
|
271
271
|
graph={graph}
|
272
|
-
obseverContext={queryBuilderState.
|
272
|
+
obseverContext={queryBuilderState.observerContext}
|
273
273
|
typeCheckOption={{
|
274
274
|
expectedType:
|
275
275
|
node.condition.propertyExpressionState
|