@finos/legend-query-builder 0.4.3 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +11 -2
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.d.ts +23 -0
- package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderConstantExpressionPanel.js +104 -0
- package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -0
- package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.js +1 -2
- package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts +0 -9
- package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +10 -30
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +60 -12
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts +2 -1
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +6 -14
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js +12 -18
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
- package/lib/components/fetch-structure/{QueryBuilderOLAPGroupByPanel_.d.ts → QueryBuilderOLAPGroupByPanel.d.ts} +2 -2
- package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/{QueryBuilderOLAPGroupByPanel_.js → QueryBuilderOLAPGroupByPanel.js} +2 -2
- package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +9 -11
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +4 -4
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +8 -9
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts +12 -1
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +11 -7
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
- package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
- package/lib/components/shared/LambdaEditor.js +1 -15
- package/lib/components/shared/LambdaEditor.js.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts +36 -0
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -0
- package/lib/components/shared/QueryBuilderVariableSelector.js +50 -0
- package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -0
- package/lib/components/watermark/QueryBuilderWatermark.d.ts.map +1 -1
- package/lib/components/watermark/QueryBuilderWatermark.js +9 -11
- package/lib/components/watermark/QueryBuilderWatermark.js.map +1 -1
- package/lib/graphManager/QueryBuilderHashUtils.d.ts +2 -0
- package/lib/graphManager/QueryBuilderHashUtils.d.ts.map +1 -1
- package/lib/graphManager/QueryBuilderHashUtils.js +2 -0
- package/lib/graphManager/QueryBuilderHashUtils.js.map +1 -1
- package/lib/index.css +17 -1
- package/lib/index.css.map +1 -1
- package/lib/package.json +8 -8
- package/lib/stores/QueryBuilderConfig.d.ts +1 -0
- package/lib/stores/QueryBuilderConfig.d.ts.map +1 -1
- package/lib/stores/QueryBuilderConfig.js +1 -0
- package/lib/stores/QueryBuilderConfig.js.map +1 -1
- package/lib/stores/QueryBuilderConstantsState.d.ts +43 -0
- package/lib/stores/QueryBuilderConstantsState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderConstantsState.js +116 -0
- package/lib/stores/QueryBuilderConstantsState.js.map +1 -0
- package/lib/stores/QueryBuilderParametersState.d.ts +0 -4
- package/lib/stores/QueryBuilderParametersState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderParametersState.js +0 -1
- package/lib/stores/QueryBuilderParametersState.js.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts +3 -10
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.js +6 -140
- package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
- package/lib/stores/QueryBuilderResultState.d.ts +1 -2
- package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderResultState.js +7 -12
- package/lib/stores/QueryBuilderResultState.js.map +1 -1
- package/lib/stores/QueryBuilderState.d.ts +9 -3
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +19 -4
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts +4 -3
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +50 -42
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js +32 -29
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +14 -78
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +4 -20
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts +3 -3
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +4 -4
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +2 -2
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.d.ts +3 -3
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js +6 -6
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByOperatorLoader_.d.ts → QueryBuilderOLAPGroupByOperatorLoader.d.ts} +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByOperatorLoader_.js → QueryBuilderOLAPGroupByOperatorLoader.js} +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByState_.d.ts → QueryBuilderOLAPGroupByState.d.ts} +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByState_.js → QueryBuilderOLAPGroupByState.js} +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByStateBuilder_.d.ts → QueryBuilderOLAPGroupByStateBuilder.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByStateBuilder_.js → QueryBuilderOLAPGroupByStateBuilder.js} +4 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByValueSpecificationBuilder_.d.ts → QueryBuilderOLAPGroupByValueSpecificationBuilder.d.ts} +2 -2
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByValueSpecificationBuilder_.js → QueryBuilderOLAPGroupByValueSpecificationBuilder.js} +2 -2
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts +5 -5
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +10 -10
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts +2 -2
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +6 -4
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.d.ts +27 -0
- package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.d.ts.map +1 -0
- package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.js +93 -0
- package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.js.map +1 -0
- package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.d.ts +26 -0
- package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.d.ts.map +1 -0
- package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.js +60 -0
- package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.js.map +1 -0
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.d.ts +70 -0
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.d.ts.map +1 -0
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js +199 -0
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js.map +1 -0
- package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.d.ts +49 -0
- package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.d.ts.map +1 -0
- package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.js +24 -0
- package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.js.map +1 -0
- package/lib/stores/{QueryBuilderMilestoningState.d.ts → milestoning/QueryBuilderMilestoningState.d.ts} +6 -2
- package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -0
- package/lib/stores/{QueryBuilderMilestoningState.js → milestoning/QueryBuilderMilestoningState.js} +20 -20
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -0
- package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.d.ts +26 -0
- package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.d.ts.map +1 -0
- package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.js +55 -0
- package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.js.map +1 -0
- package/lib/stores/shared/LambdaParameterState.d.ts +14 -2
- package/lib/stores/shared/LambdaParameterState.d.ts.map +1 -1
- package/lib/stores/shared/LambdaParameterState.js +79 -6
- package/lib/stores/shared/LambdaParameterState.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +3 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +58 -2
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.d.ts +2 -2
- package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.d.ts.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.js +2 -2
- package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.js.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.d.ts +2 -2
- package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js +7 -4
- package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.js +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
- package/package.json +15 -15
- package/src/components/QueryBuilder.tsx +38 -0
- package/src/components/QueryBuilderConstantExpressionPanel.tsx +284 -0
- package/src/components/QueryBuilderDiffPanel.tsx +0 -2
- package/src/components/QueryBuilderParametersPanel.tsx +24 -110
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +119 -36
- package/src/components/QueryBuilderSideBar.tsx +5 -22
- package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +29 -39
- package/src/components/fetch-structure/{QueryBuilderOLAPGroupByPanel_.tsx → QueryBuilderOLAPGroupByPanel.tsx} +1 -1
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +18 -19
- package/src/components/fetch-structure/QueryBuilderPostTDSPanel.tsx +1 -1
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +9 -9
- package/src/components/filter/QueryBuilderFilterPanel.tsx +16 -17
- package/src/components/shared/BasicValueSpecificationEditor.tsx +47 -22
- package/src/components/shared/LambdaEditor.tsx +0 -15
- package/src/components/shared/QueryBuilderVariableSelector.tsx +186 -0
- package/src/components/watermark/QueryBuilderWatermark.tsx +19 -31
- package/src/graphManager/QueryBuilderHashUtils.ts +2 -0
- package/src/stores/QueryBuilderConfig.ts +1 -0
- package/src/stores/QueryBuilderConstantsState.ts +173 -0
- package/src/stores/QueryBuilderParametersState.ts +0 -6
- package/src/stores/QueryBuilderPropertyEditorState.ts +6 -235
- package/src/stores/QueryBuilderResultState.ts +19 -17
- package/src/stores/QueryBuilderState.ts +25 -4
- package/src/stores/QueryBuilderStateBuilder.ts +111 -52
- package/src/stores/QueryBuilderValueSpecificationBuilder.ts +48 -58
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +16 -105
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +10 -29
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +5 -0
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +2 -2
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.ts +7 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByOperatorLoader_.ts → QueryBuilderOLAPGroupByOperatorLoader.ts} +0 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByState_.ts → QueryBuilderOLAPGroupByState.ts} +0 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByStateBuilder_.ts → QueryBuilderOLAPGroupByStateBuilder.ts} +3 -1
- package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByValueSpecificationBuilder_.ts → QueryBuilderOLAPGroupByValueSpecificationBuilder.ts} +1 -1
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +1 -1
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +11 -0
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +1 -1
- package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +10 -5
- package/src/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.ts +165 -0
- package/src/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.ts +96 -0
- package/src/stores/milestoning/QueryBuilderMilestoningHelper.ts +311 -0
- package/src/stores/milestoning/QueryBuilderMilestoningImplementation.ts +77 -0
- package/src/stores/{QueryBuilderMilestoningState.ts → milestoning/QueryBuilderMilestoningState.ts} +55 -39
- package/src/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.ts +88 -0
- package/src/stores/shared/LambdaParameterState.ts +151 -10
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +84 -2
- package/src/stores/watermark/QueryBuilderWatermarkStateBuilder.ts +3 -0
- package/src/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.ts +11 -5
- package/src/stores/workflows/ServiceQueryBuilderState.ts +1 -1
- package/tsconfig.json +14 -6
- package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel_.d.ts.map +0 -1
- package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel_.js.map +0 -1
- package/lib/stores/QueryBuilderMilestoningState.d.ts.map +0 -1
- package/lib/stores/QueryBuilderMilestoningState.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder_.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder_.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState_.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState_.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder_.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder_.js.map +0 -1
package/lib/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.5.0",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -52,9 +52,9 @@
|
|
52
52
|
"@finos/legend-storage": "workspace:*",
|
53
53
|
"@testing-library/react": "13.4.0",
|
54
54
|
"@types/papaparse": "5.3.5",
|
55
|
-
"@types/react": "18.0.
|
56
|
-
"@types/react-dom": "18.0.
|
57
|
-
"mobx": "6.
|
55
|
+
"@types/react": "18.0.25",
|
56
|
+
"@types/react-dom": "18.0.9",
|
57
|
+
"mobx": "6.7.0",
|
58
58
|
"mobx-react-lite": "3.4.0",
|
59
59
|
"monaco-editor": "0.34.1",
|
60
60
|
"papaparse": "5.3.2",
|
@@ -65,13 +65,13 @@
|
|
65
65
|
},
|
66
66
|
"devDependencies": {
|
67
67
|
"@finos/legend-dev-utils": "workspace:*",
|
68
|
-
"@jest/globals": "29.
|
68
|
+
"@jest/globals": "29.3.1",
|
69
69
|
"cross-env": "7.0.3",
|
70
|
-
"eslint": "8.
|
71
|
-
"jest": "29.
|
70
|
+
"eslint": "8.27.0",
|
71
|
+
"jest": "29.3.1",
|
72
72
|
"npm-run-all": "4.1.5",
|
73
73
|
"rimraf": "3.0.2",
|
74
|
-
"sass": "1.
|
74
|
+
"sass": "1.56.1",
|
75
75
|
"typescript": "4.8.4"
|
76
76
|
},
|
77
77
|
"peerDependencies": {
|
@@ -19,6 +19,7 @@ export declare enum QUERY_BUILDER_SOURCE_ID_LABEL {
|
|
19
19
|
}
|
20
20
|
export declare const DEFAULT_LAMBDA_VARIABLE_NAME = "x";
|
21
21
|
export declare const DEFAULT_VARIABLE_NAME = "var";
|
22
|
+
export declare const DEFAULT_CONSTANT_VARIABLE_NAME = "c_var";
|
22
23
|
export declare const DEFAULT_POST_FILTER_LAMBDA_VARIABLE_NAME = "row";
|
23
24
|
export declare const QUERY_BUILDER_PROPERTY_SEARCH_MAX_DEPTH = 5;
|
24
25
|
export declare const QUERY_BUILDER_PROPERTY_SEARCH_MAX_NODES = 10000;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderConfig.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,6BAA6B;IACvC,aAAa,kBAAkB;IAC/B,UAAU,eAAe;CAC1B;AAED,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,qBAAqB,QAAQ,CAAC;AAC3C,eAAO,MAAM,wCAAwC,QAAQ,CAAC;AAE9D,eAAO,MAAM,uCAAuC,IAAI,CAAC;AACzD,eAAO,MAAM,uCAAuC,QAAQ,CAAC;AAC7D,eAAO,MAAM,2CAA2C,MAAM,CAAC;AAE/D,oBAAY,kCAAkC;IAC5C,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd"}
|
1
|
+
{"version":3,"file":"QueryBuilderConfig.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,6BAA6B;IACvC,aAAa,kBAAkB;IAC/B,UAAU,eAAe;CAC1B;AAED,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,qBAAqB,QAAQ,CAAC;AAC3C,eAAO,MAAM,8BAA8B,UAAU,CAAC;AACtD,eAAO,MAAM,wCAAwC,QAAQ,CAAC;AAE9D,eAAO,MAAM,uCAAuC,IAAI,CAAC;AACzD,eAAO,MAAM,uCAAuC,QAAQ,CAAC;AAC7D,eAAO,MAAM,2CAA2C,MAAM,CAAC;AAE/D,oBAAY,kCAAkC;IAC5C,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd"}
|
@@ -20,6 +20,7 @@ export var QUERY_BUILDER_SOURCE_ID_LABEL;
|
|
20
20
|
})(QUERY_BUILDER_SOURCE_ID_LABEL = QUERY_BUILDER_SOURCE_ID_LABEL || (QUERY_BUILDER_SOURCE_ID_LABEL = {}));
|
21
21
|
export const DEFAULT_LAMBDA_VARIABLE_NAME = 'x';
|
22
22
|
export const DEFAULT_VARIABLE_NAME = 'var';
|
23
|
+
export const DEFAULT_CONSTANT_VARIABLE_NAME = 'c_var';
|
23
24
|
export const DEFAULT_POST_FILTER_LAMBDA_VARIABLE_NAME = 'row';
|
24
25
|
export const QUERY_BUILDER_PROPERTY_SEARCH_MAX_DEPTH = 5;
|
25
26
|
export const QUERY_BUILDER_PROPERTY_SEARCH_MAX_NODES = 10000;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderConfig.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,6BAGX;AAHD,WAAY,6BAA6B;IACvC,gEAA+B,CAAA;IAC/B,0DAAyB,CAAA;AAC3B,CAAC,EAHW,6BAA6B,GAA7B,6BAA6B,KAA7B,6BAA6B,QAGxC;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,CAAC;AAChD,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAC3C,MAAM,CAAC,MAAM,wCAAwC,GAAG,KAAK,CAAC;AAE9D,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,uCAAuC,GAAG,KAAK,CAAC;AAC7D,MAAM,CAAC,MAAM,2CAA2C,GAAG,GAAG,CAAC;AAE/D,MAAM,CAAN,IAAY,kCAMX;AAND,WAAY,kCAAkC;IAC5C,qDAAe,CAAA;IACf,uDAAiB,CAAA;IACjB,yDAAmB,CAAA;IACnB,uDAAiB,CAAA;IACjB,mDAAa,CAAA;AACf,CAAC,EANW,kCAAkC,GAAlC,kCAAkC,KAAlC,kCAAkC,QAM7C"}
|
1
|
+
{"version":3,"file":"QueryBuilderConfig.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,6BAGX;AAHD,WAAY,6BAA6B;IACvC,gEAA+B,CAAA;IAC/B,0DAAyB,CAAA;AAC3B,CAAC,EAHW,6BAA6B,GAA7B,6BAA6B,KAA7B,6BAA6B,QAGxC;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,CAAC;AAChD,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAC3C,MAAM,CAAC,MAAM,8BAA8B,GAAG,OAAO,CAAC;AACtD,MAAM,CAAC,MAAM,wCAAwC,GAAG,KAAK,CAAC;AAE9D,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,uCAAuC,GAAG,KAAK,CAAC;AAC7D,MAAM,CAAC,MAAM,2CAA2C,GAAG,GAAG,CAAC;AAE/D,MAAM,CAAN,IAAY,kCAMX;AAND,WAAY,kCAAkC;IAC5C,qDAAe,CAAA;IACf,uDAAiB,CAAA;IACjB,yDAAmB,CAAA;IACnB,uDAAiB,CAAA;IACjB,mDAAa,CAAA;AACf,CAAC,EANW,kCAAkC,GAAlC,kCAAkC,KAAlC,kCAAkC,QAM7C"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { type Type, type ValueSpecification, VariableExpression } from '@finos/legend-graph';
|
17
|
+
import { type Hashable } from '@finos/legend-shared';
|
18
|
+
import type { QueryBuilderState } from './QueryBuilderState.js';
|
19
|
+
export declare class QueryBuilderConstantExpressionState implements Hashable {
|
20
|
+
readonly queryBuilderState: QueryBuilderState;
|
21
|
+
readonly uuid: string;
|
22
|
+
variable: VariableExpression;
|
23
|
+
value: ValueSpecification;
|
24
|
+
constructor(queryBuilderState: QueryBuilderState, variable: VariableExpression, value: ValueSpecification);
|
25
|
+
changeValSpecType(type: Type): void;
|
26
|
+
setValueSpec(value: ValueSpecification): void;
|
27
|
+
get hashCode(): string;
|
28
|
+
}
|
29
|
+
export declare class QueryBuilderConstantsState implements Hashable {
|
30
|
+
readonly queryBuilderState: QueryBuilderState;
|
31
|
+
showConstantPanel: boolean;
|
32
|
+
constants: QueryBuilderConstantExpressionState[];
|
33
|
+
selectedConstant: QueryBuilderConstantExpressionState | undefined;
|
34
|
+
constructor(queryBuilderState: QueryBuilderState);
|
35
|
+
get isEmpty(): boolean;
|
36
|
+
setShowConstantPanel(val: boolean): void;
|
37
|
+
addConstant(val: QueryBuilderConstantExpressionState): void;
|
38
|
+
removeConstant(val: QueryBuilderConstantExpressionState): void;
|
39
|
+
setSelectedConstant(val: QueryBuilderConstantExpressionState | undefined): void;
|
40
|
+
isValueSpecConstant(value: ValueSpecification): boolean;
|
41
|
+
get hashCode(): string;
|
42
|
+
}
|
43
|
+
//# sourceMappingURL=QueryBuilderConstantsState.d.ts.map
|
@@ -0,0 +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,EAIvB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,Q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this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { GenericType, GenericTypeExplicitReference, observe_ValueSpecification, VariableExpression, } from '@finos/legend-graph';
|
17
|
+
import { hashArray, deleteEntry, addUniqueEntry, IllegalStateError, uuid, assertErrorThrown, } from '@finos/legend-shared';
|
18
|
+
import { action, makeObservable, observable } from 'mobx';
|
19
|
+
import { QUERY_BUILDER_HASH_STRUCTURE } from '../graphManager/QueryBuilderHashUtils.js';
|
20
|
+
import { buildDefaultInstanceValue } from './shared/ValueSpecificationEditorHelper.js';
|
21
|
+
import { valueSpecification_setGenericType } from './shared/ValueSpecificationModifierHelper.js';
|
22
|
+
export class QueryBuilderConstantExpressionState {
|
23
|
+
queryBuilderState;
|
24
|
+
uuid = uuid();
|
25
|
+
variable;
|
26
|
+
value;
|
27
|
+
constructor(queryBuilderState, variable, value) {
|
28
|
+
makeObservable(this, {
|
29
|
+
variable: observable,
|
30
|
+
value: observable,
|
31
|
+
setValueSpec: action,
|
32
|
+
changeValSpecType: action,
|
33
|
+
});
|
34
|
+
this.queryBuilderState = queryBuilderState;
|
35
|
+
this.value = observe_ValueSpecification(value, this.queryBuilderState.observableContext);
|
36
|
+
observe_ValueSpecification(variable, this.queryBuilderState.observableContext);
|
37
|
+
this.variable = variable;
|
38
|
+
}
|
39
|
+
changeValSpecType(type) {
|
40
|
+
const variableType = this.value.genericType?.value.rawType;
|
41
|
+
if (variableType !== type) {
|
42
|
+
try {
|
43
|
+
const valSpec = buildDefaultInstanceValue(this.queryBuilderState.graphManagerState.graph, type);
|
44
|
+
this.setValueSpec(valSpec);
|
45
|
+
}
|
46
|
+
catch (error) {
|
47
|
+
assertErrorThrown(error);
|
48
|
+
this.queryBuilderState.applicationStore.notifyError(error.message);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
setValueSpec(value) {
|
53
|
+
if (value instanceof VariableExpression) {
|
54
|
+
throw new IllegalStateError('Can not assign a parameter to another parameter');
|
55
|
+
}
|
56
|
+
this.value = observe_ValueSpecification(value, this.queryBuilderState.observableContext);
|
57
|
+
const valueSpecType = value.genericType?.value.rawType;
|
58
|
+
if (valueSpecType &&
|
59
|
+
valueSpecType !== this.variable.genericType?.value.rawType) {
|
60
|
+
valueSpecification_setGenericType(this.variable, GenericTypeExplicitReference.create(new GenericType(valueSpecType)));
|
61
|
+
}
|
62
|
+
}
|
63
|
+
get hashCode() {
|
64
|
+
return hashArray([
|
65
|
+
QUERY_BUILDER_HASH_STRUCTURE.CONSTANT_EXPRESSION_STATE,
|
66
|
+
this.variable.name,
|
67
|
+
this.value,
|
68
|
+
]);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
export class QueryBuilderConstantsState {
|
72
|
+
queryBuilderState;
|
73
|
+
showConstantPanel = false;
|
74
|
+
constants = [];
|
75
|
+
selectedConstant;
|
76
|
+
constructor(queryBuilderState) {
|
77
|
+
this.queryBuilderState = queryBuilderState;
|
78
|
+
makeObservable(this, {
|
79
|
+
constants: observable,
|
80
|
+
showConstantPanel: observable,
|
81
|
+
selectedConstant: observable,
|
82
|
+
addConstant: action,
|
83
|
+
removeConstant: action,
|
84
|
+
setShowConstantPanel: action,
|
85
|
+
setSelectedConstant: action,
|
86
|
+
});
|
87
|
+
}
|
88
|
+
get isEmpty() {
|
89
|
+
return !this.constants.length;
|
90
|
+
}
|
91
|
+
setShowConstantPanel(val) {
|
92
|
+
this.showConstantPanel = val;
|
93
|
+
}
|
94
|
+
addConstant(val) {
|
95
|
+
addUniqueEntry(this.constants, val);
|
96
|
+
}
|
97
|
+
removeConstant(val) {
|
98
|
+
deleteEntry(this.constants, val);
|
99
|
+
}
|
100
|
+
setSelectedConstant(val) {
|
101
|
+
this.selectedConstant = val;
|
102
|
+
}
|
103
|
+
isValueSpecConstant(value) {
|
104
|
+
if (value instanceof VariableExpression) {
|
105
|
+
return Boolean(this.constants.find((v) => v.variable.name === value.name));
|
106
|
+
}
|
107
|
+
return false;
|
108
|
+
}
|
109
|
+
get hashCode() {
|
110
|
+
return hashArray([
|
111
|
+
QUERY_BUILDER_HASH_STRUCTURE.CONSTANT_STATE,
|
112
|
+
hashArray(this.constants),
|
113
|
+
]);
|
114
|
+
}
|
115
|
+
}
|
116
|
+
//# sourceMappingURL=QueryBuilderConstantsState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderConstantsState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderConstantsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,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,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAExF,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,iCAAiC,EAAE,MAAM,8CAA8C,CAAC;AAEjG,MAAM,OAAO,mCAAmC;IACrC,iBAAiB,CAAoB;IACrC,IAAI,GAAG,IAAI,EAAE,CAAC;IACvB,QAAQ,CAAqB;IAC7B,KAAK,CAAqB;IAE1B,YACE,iBAAoC,EACpC,QAA4B,EAC5B,KAAyB;QAEzB,cAAc,CAAC,IAAI,EAAE;Y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;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,4BAA4B,CAAC,cAAc;YAC3C,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -16,10 +16,6 @@
|
|
16
16
|
import { type Hashable } from '@finos/legend-shared';
|
17
17
|
import type { QueryBuilderState } from './QueryBuilderState.js';
|
18
18
|
import { type LambdaParameterState, LambdaParametersState } from './shared/LambdaParameterState.js';
|
19
|
-
export declare const QUERY_BUILDER_PARAMETER_DND_TYPE = "PARAMETER";
|
20
|
-
export interface QueryBuilderParameterDragSource {
|
21
|
-
variable: LambdaParameterState;
|
22
|
-
}
|
23
19
|
export declare class QueryBuilderParametersState extends LambdaParametersState implements Hashable {
|
24
20
|
readonly queryBuilderState: QueryBuilderState;
|
25
21
|
selectedParameter: LambdaParameterState | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderParametersState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderParametersState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EACL,KAAK,oBAAoB,EACzB,qBAAqB,EACtB,MAAM,kCAAkC,CAAC;AAE1C,
|
1
|
+
{"version":3,"file":"QueryBuilderParametersState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderParametersState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EACL,KAAK,oBAAoB,EACzB,qBAAqB,EACtB,MAAM,kCAAkC,CAAC;AAE1C,qBAAa,2BACX,SAAQ,qBACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAE9C,iBAAiB,EAAE,oBAAoB,GAAG,SAAS,CAAC;gBAExC,iBAAiB,EAAE,iBAAiB;IAiBhD,IAAa,QAAQ,IAAI,MAAM,CAK9B;IAED,oBAAoB,CAAC,GAAG,EAAE,oBAAoB,GAAG,SAAS,GAAG,IAAI;CAGlE"}
|
@@ -17,7 +17,6 @@ import { hashArray } from '@finos/legend-shared';
|
|
17
17
|
import { observable, makeObservable, action, override } from 'mobx';
|
18
18
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../graphManager/QueryBuilderHashUtils.js';
|
19
19
|
import { LambdaParametersState, } from './shared/LambdaParameterState.js';
|
20
|
-
export const QUERY_BUILDER_PARAMETER_DND_TYPE = 'PARAMETER';
|
21
20
|
export class QueryBuilderParametersState extends LambdaParametersState {
|
22
21
|
queryBuilderState;
|
23
22
|
selectedParameter;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderParametersState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderParametersState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAExF,OAAO,EAEL,qBAAqB,GACtB,MAAM,kCAAkC,CAAC;AAE1C,MAAM,
|
1
|
+
{"version":3,"file":"QueryBuilderParametersState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderParametersState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAExF,OAAO,EAEL,qBAAqB,GACtB,MAAM,kCAAkC,CAAC;AAE1C,MAAM,OAAO,2BACX,SAAQ,qBAAqB;IAGpB,iBAAiB,CAAoB;IAE9C,iBAAiB,CAAmC;IAEpD,YAAY,iBAAoC;QAC9C,KAAK,EAAE,CAAC;QAER,cAAc,CAAC,IAAI,EAAE;YACnB,0BAA0B,EAAE,UAAU;YACtC,eAAe,EAAE,UAAU;YAC3B,YAAY,EAAE,MAAM;YACpB,eAAe,EAAE,MAAM;YACvB,aAAa,EAAE,MAAM;YACrB,iBAAiB,EAAE,UAAU;YAC7B,oBAAoB,EAAE,MAAM;YAC5B,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,gBAAgB;YAC7C,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC;SAChC,CAAC,CAAC;IACL,CAAC;IAED,oBAAoB,CAAC,GAAqC;QACxD,IAAI,CAAC,iBAAiB,GAAG,GAAG,CAAC;IAC/B,CAAC;CACF"}
|
@@ -14,17 +14,9 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { type Hashable } from '@finos/legend-shared';
|
17
|
-
import { type AbstractProperty, type ValueSpecification, type PureModel, AbstractPropertyExpression, DerivedProperty, VariableExpression
|
17
|
+
import { type AbstractProperty, type ValueSpecification, type PureModel, AbstractPropertyExpression, DerivedProperty, VariableExpression } from '@finos/legend-graph';
|
18
18
|
import type { QueryBuilderState } from './QueryBuilderState.js';
|
19
|
-
export declare const getDerivedPropertyMilestoningSteoreotype: (property: DerivedProperty, graph: PureModel) => MILESTONING_STEREOTYPE | undefined;
|
20
19
|
export declare const prettyPropertyName: (value: string) => string;
|
21
|
-
/**
|
22
|
-
* Generate a parameter value for the derived property given the index if the property is milestoned.
|
23
|
-
*
|
24
|
-
* This method considers different scenarios for milestoning and take into account date propagation
|
25
|
-
* See https://github.com/finos/legend-studio/pull/891
|
26
|
-
*/
|
27
|
-
export declare const generateMilestonedPropertyParameterValue: (derivedPropertyExpressionState: QueryBuilderDerivedPropertyExpressionState, idx: number) => ValueSpecification | undefined;
|
28
20
|
export declare const getPropertyChainName: (propertyExpression: AbstractPropertyExpression, humanizePropertyName: boolean) => string;
|
29
21
|
export declare const getPropertyPath: (propertyExpression: AbstractPropertyExpression) => string;
|
30
22
|
/**
|
@@ -40,7 +32,8 @@ export declare class QueryBuilderDerivedPropertyExpressionState {
|
|
40
32
|
readonly propertyExpression: AbstractPropertyExpression;
|
41
33
|
readonly derivedProperty: DerivedProperty;
|
42
34
|
readonly parameters: VariableExpression[];
|
43
|
-
|
35
|
+
readonly propertyExpressionState: QueryBuilderPropertyExpressionState;
|
36
|
+
constructor(queryBuilderState: QueryBuilderState, propertyExpression: AbstractPropertyExpression, propertyExpressionState: QueryBuilderPropertyExpressionState);
|
44
37
|
get property(): AbstractProperty;
|
45
38
|
get parameterValues(): ValueSpecification[];
|
46
39
|
get isValid(): boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPropertyEditorState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderPropertyEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAIL,KAAK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I,QAAQ,IAAI,gBAAgB,CAE/B;IAED,IAAI,eAAe,IAAI,kBAAkB,EAAE,CAE1C;IAED,IAAI,OAAO,IAAI,OAAO,CAuBrB;CACF;AAED,qBAAa,mCAAoC,YAAW,QAAQ;IAClE,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,kBAAkB,EAAE,0BAA0B,CAAC;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC,UAAS;IAG3C,+BAA+B,EAAE,0CAA0C,EAAE,CACxE;IACL;;;;;;OAMG;IACH,sBAAsB,UAAS;gBAG7B,iBAAiB,EAAE,iBAAiB,EACpC,kBAAkB,EAAE,0BAA0B;IAwBhD,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,2BAA2B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI/C,OAAO,CAAC,mCAAmC;IAgE3C,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
|
@@ -15,149 +15,13 @@
|
|
15
15
|
*/
|
16
16
|
import { action, computed, makeObservable, observable } from 'mobx';
|
17
17
|
import { getNullableFirstElement, guaranteeNonNullable, guaranteeType, hashArray, isCamelCase, prettyCamelCase, prettyCONSTName, } from '@finos/legend-shared';
|
18
|
-
import { Class, AbstractPropertyExpression, DerivedProperty, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, InstanceValue, PrimitiveInstanceValue,
|
18
|
+
import { Class, AbstractPropertyExpression, DerivedProperty, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, InstanceValue, PrimitiveInstanceValue, VariableExpression, SimpleFunctionExpression, matchFunctionName, TYPE_CAST_TOKEN, observe_AbstractPropertyExpression, GenericTypeExplicitReference, GenericType, PropertyExplicitReference, PrimitiveType, } from '@finos/legend-graph';
|
19
19
|
import { createNullishValue, generateDefaultValueForPrimitiveType, } from './QueryBuilderValueSpecificationHelper.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
|
21
21
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../graphManager/QueryBuilderHashUtils.js';
|
22
22
|
import { propertyExpression_setFunc, functionExpression_setParametersValues, instanceValue_setValues, } from './shared/ValueSpecificationModifierHelper.js';
|
23
|
-
|
24
|
-
const owner = property._OWNER;
|
25
|
-
if (owner instanceof Class) {
|
26
|
-
return getMilestoneTemporalStereotype(owner, graph);
|
27
|
-
}
|
28
|
-
else if (owner instanceof Association) {
|
29
|
-
const generatedMilestonedProperties = getGeneratedMilestonedPropertiesForAssociation(owner, property);
|
30
|
-
if (generatedMilestonedProperties.length) {
|
31
|
-
const ownerClass = generatedMilestonedProperties[0]?.genericType.value.rawType;
|
32
|
-
return getMilestoneTemporalStereotype(guaranteeType(ownerClass, Class), graph);
|
33
|
-
}
|
34
|
-
}
|
35
|
-
return undefined;
|
36
|
-
};
|
37
|
-
/**
|
38
|
-
* Check if the parameter value of the milestoned property is
|
39
|
-
* the same as those specified in global scope, so that we can
|
40
|
-
* potentially replace them with propgated value.
|
41
|
-
*/
|
42
|
-
const matchMilestoningParameterValue = (stereotype, idx, parameterValue, milestoningDate) => {
|
43
|
-
const checkIfEquivalent = (param1, param2) => {
|
44
|
-
if (param1 instanceof VariableExpression &&
|
45
|
-
param2 instanceof VariableExpression) {
|
46
|
-
return param1.name === param2.name;
|
47
|
-
}
|
48
|
-
else if (param1 instanceof PrimitiveInstanceValue &&
|
49
|
-
param2 instanceof PrimitiveInstanceValue) {
|
50
|
-
if (param1.genericType.value.rawType.name === PRIMITIVE_TYPE.LATESTDATE &&
|
51
|
-
param2.genericType.value.rawType.name === PRIMITIVE_TYPE.LATESTDATE) {
|
52
|
-
return true;
|
53
|
-
}
|
54
|
-
return (param1.genericType.value.rawType.name ===
|
55
|
-
param2.genericType.value.rawType.name &&
|
56
|
-
param1.values[0] === param2.values[0]);
|
57
|
-
}
|
58
|
-
return false;
|
59
|
-
};
|
60
|
-
switch (stereotype) {
|
61
|
-
case MILESTONING_STEREOTYPE.BITEMPORAL:
|
62
|
-
return ((idx === 0 &&
|
63
|
-
checkIfEquivalent(parameterValue, milestoningDate.processingDate)) ||
|
64
|
-
(idx === 1 &&
|
65
|
-
checkIfEquivalent(parameterValue, milestoningDate.businessDate)));
|
66
|
-
case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL:
|
67
|
-
return checkIfEquivalent(parameterValue, milestoningDate.processingDate);
|
68
|
-
case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL:
|
69
|
-
return checkIfEquivalent(parameterValue, milestoningDate.businessDate);
|
70
|
-
default:
|
71
|
-
}
|
72
|
-
return false;
|
73
|
-
};
|
23
|
+
import { generateMilestonedPropertyParameterValue } from './milestoning/QueryBuilderMilestoningHelper.js';
|
74
24
|
export const prettyPropertyName = (value) => isCamelCase(value) ? prettyCamelCase(value) : prettyCONSTName(value);
|
75
|
-
/**
|
76
|
-
* Generate a parameter value for the derived property given the index if the property is milestoned.
|
77
|
-
*
|
78
|
-
* This method considers different scenarios for milestoning and take into account date propagation
|
79
|
-
* See https://github.com/finos/legend-studio/pull/891
|
80
|
-
*/
|
81
|
-
export const generateMilestonedPropertyParameterValue = (derivedPropertyExpressionState, idx) => {
|
82
|
-
// Milestoning transformations should not be done on actual derived properties.
|
83
|
-
if (derivedPropertyExpressionState.derivedProperty._OWNER.derivedProperties.includes(derivedPropertyExpressionState.derivedProperty)) {
|
84
|
-
return undefined;
|
85
|
-
}
|
86
|
-
const milestoningState = derivedPropertyExpressionState.queryBuilderState.milestoningState;
|
87
|
-
const temporalSource = getDerivedPropertyMilestoningSteoreotype(derivedPropertyExpressionState.derivedProperty, derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph);
|
88
|
-
const temporalTarget = derivedPropertyExpressionState.propertyExpression.func.value.genericType
|
89
|
-
.value.rawType instanceof Class &&
|
90
|
-
derivedPropertyExpressionState.propertyExpression.func.value._OWNER
|
91
|
-
._generatedMilestonedProperties.length !== 0
|
92
|
-
? getMilestoneTemporalStereotype(derivedPropertyExpressionState.propertyExpression.func.value
|
93
|
-
.genericType.value.rawType, derivedPropertyExpressionState.queryBuilderState.graphManagerState
|
94
|
-
.graph)
|
95
|
-
: undefined;
|
96
|
-
const shouldReturnMilestoningParameter = temporalTarget &&
|
97
|
-
((idx < derivedPropertyExpressionState.parameterValues.length &&
|
98
|
-
(matchMilestoningParameterValue(temporalTarget, idx, guaranteeNonNullable(derivedPropertyExpressionState.parameterValues[idx]), milestoningState) ||
|
99
|
-
/**
|
100
|
-
* Checks if the given milestoning needs to be overwritten or not.
|
101
|
-
* Specially, we would need to rewrite the query if the user passes a single parameter
|
102
|
-
* to the `bitemporal` property expression with `processing temporal` source.
|
103
|
-
*/
|
104
|
-
(getDerivedPropertyMilestoningSteoreotype(derivedPropertyExpressionState.derivedProperty, derivedPropertyExpressionState.queryBuilderState.graphManagerState
|
105
|
-
.graph) === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
|
106
|
-
temporalTarget === MILESTONING_STEREOTYPE.BITEMPORAL &&
|
107
|
-
derivedPropertyExpressionState.parameterValues.length === 1))) ||
|
108
|
-
idx >= derivedPropertyExpressionState.parameterValues.length);
|
109
|
-
if (!shouldReturnMilestoningParameter) {
|
110
|
-
return undefined;
|
111
|
-
}
|
112
|
-
switch (temporalTarget) {
|
113
|
-
case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL: {
|
114
|
-
if (!milestoningState.businessDate) {
|
115
|
-
milestoningState.setBusinessDate(derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(BUSINESS_DATE_MILESTONING_PROPERTY_NAME));
|
116
|
-
}
|
117
|
-
const parameter = new INTERNAL__PropagatedValue(() => guaranteeNonNullable(milestoningState.businessDate));
|
118
|
-
return parameter;
|
119
|
-
}
|
120
|
-
case MILESTONING_STEREOTYPE.BITEMPORAL: {
|
121
|
-
if (!milestoningState.processingDate) {
|
122
|
-
milestoningState.setProcessingDate(derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(PROCESSING_DATE_MILESTONING_PROPERTY_NAME));
|
123
|
-
}
|
124
|
-
if (!milestoningState.businessDate) {
|
125
|
-
milestoningState.setBusinessDate(derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(BUSINESS_DATE_MILESTONING_PROPERTY_NAME));
|
126
|
-
}
|
127
|
-
if (idx === 0) {
|
128
|
-
if (temporalSource === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
|
129
|
-
derivedPropertyExpressionState.parameterValues.length === 1) {
|
130
|
-
return guaranteeType(derivedPropertyExpressionState.propertyExpression
|
131
|
-
.parametersValues[0], AbstractPropertyExpression).parametersValues[1];
|
132
|
-
}
|
133
|
-
const parameter = new INTERNAL__PropagatedValue(() => guaranteeNonNullable(milestoningState.processingDate));
|
134
|
-
return parameter;
|
135
|
-
}
|
136
|
-
else {
|
137
|
-
if (temporalSource === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
|
138
|
-
derivedPropertyExpressionState.parameterValues.length === 1) {
|
139
|
-
return derivedPropertyExpressionState.parameterValues[0];
|
140
|
-
}
|
141
|
-
else if (temporalSource === MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL &&
|
142
|
-
derivedPropertyExpressionState.parameterValues.length === 1) {
|
143
|
-
return guaranteeType(derivedPropertyExpressionState.propertyExpression
|
144
|
-
.parametersValues[0], AbstractPropertyExpression).parametersValues[1];
|
145
|
-
}
|
146
|
-
const parameter = new INTERNAL__PropagatedValue(() => guaranteeNonNullable(milestoningState.businessDate));
|
147
|
-
return parameter;
|
148
|
-
}
|
149
|
-
}
|
150
|
-
case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL: {
|
151
|
-
if (!milestoningState.processingDate) {
|
152
|
-
milestoningState.setProcessingDate(derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(PROCESSING_DATE_MILESTONING_PROPERTY_NAME));
|
153
|
-
}
|
154
|
-
const parameter = new INTERNAL__PropagatedValue(() => guaranteeNonNullable(milestoningState.processingDate));
|
155
|
-
return parameter;
|
156
|
-
}
|
157
|
-
default:
|
158
|
-
return undefined;
|
159
|
-
}
|
160
|
-
};
|
161
25
|
export const getPropertyChainName = (propertyExpression, humanizePropertyName) => {
|
162
26
|
const propertyNameDecorator = humanizePropertyName
|
163
27
|
? prettyPropertyName
|
@@ -269,12 +133,14 @@ export class QueryBuilderDerivedPropertyExpressionState {
|
|
269
133
|
propertyExpression;
|
270
134
|
derivedProperty;
|
271
135
|
parameters = [];
|
272
|
-
|
136
|
+
propertyExpressionState;
|
137
|
+
constructor(queryBuilderState, propertyExpression, propertyExpressionState) {
|
273
138
|
this.path = getPropertyPath(propertyExpression);
|
274
139
|
this.title = getPropertyChainName(propertyExpression, true);
|
275
140
|
this.propertyExpression = observe_AbstractPropertyExpression(propertyExpression, queryBuilderState.observableContext);
|
276
141
|
this.queryBuilderState = queryBuilderState;
|
277
142
|
this.derivedProperty = guaranteeType(propertyExpression.func.value, DerivedProperty);
|
143
|
+
this.propertyExpressionState = propertyExpressionState;
|
278
144
|
// build the parameters of the derived properties
|
279
145
|
if (Array.isArray(this.derivedProperty.parameters)) {
|
280
146
|
this.parameters = this.derivedProperty.parameters.map((parameter) => guaranteeType(this.queryBuilderState.graphManagerState.graphManager.buildValueSpecification(parameter, this.queryBuilderState.graphManagerState.graph), VariableExpression));
|
@@ -369,7 +235,7 @@ export class QueryBuilderPropertyExpressionState {
|
|
369
235
|
}
|
370
236
|
// Create states to hold derived properties' parameters and arguments for editing
|
371
237
|
if (currentExpression.func.value instanceof DerivedProperty) {
|
372
|
-
const derivedPropertyExpressionState = new QueryBuilderDerivedPropertyExpressionState(this.queryBuilderState, currentExpression);
|
238
|
+
const derivedPropertyExpressionState = new QueryBuilderDerivedPropertyExpressionState(this.queryBuilderState, currentExpression, this);
|
373
239
|
result.push(derivedPropertyExpressionState);
|
374
240
|
}
|
375
241
|
currentExpression = getNullableFirstElement(currentExpression.parametersValues);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPropertyEditorState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderPropertyEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,EAEb,SAAS,EACT,WAAW,EACX,eAAe,EACf,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,EAKL,0BAA0B,EAC1B,eAAe,EACf,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,aAAa,EACb,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,EACf,kCAAkC,EAClC,4BAA4B,EAC5B,WAAW,EACX,uCAAuC,EACvC,yCAAyC,EACzC,yBAAyB,EACzB,WAAW,EACX,8CAA8C,EAC9C,yBAAyB,EACzB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAClB,oCAAoC,GACrC,MAAM,2CAA2C,CAAC;AAGnD,OAAO,EAAE,iCAAiC,EAAE,MAAM,mDAAmD,CAAC;AACtG,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EACL,0BAA0B,EAC1B,sCAAsC,EACtC,uBAAuB,GACxB,MAAM,8CAA8C,CAAC;AAEtD,MAAM,CAAC,MAAM,wCAAwC,GAAG,CACtD,QAAyB,EACzB,KAAgB,EACoB,EAAE;IACtC,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC9B,IAAI,KAAK,YAAY,KAAK,EAAE;QAC1B,OAAO,8BAA8B,CAAC,KAAK,EAAE,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AC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;gBAC/C,MAAM,QAAQ,GACZ,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,8BAA8B,CAAC,IAAI,CACrE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CACvB,CAAC;gBACJ,IAAI,QAAQ,EAAE;oBACZ,0BAA0B,CACxB,iBAAiB,EACjB,yBAAyB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAC3C,CAAC;iBACH;aACF;YAED,iFAAiF;YACjF,IAAI,iBAAiB,CAAC,IAAI,CAAC,KAAK,YAAY,eAAe,EAAE;gBAC3D,MAAM,8BAA8B,GAClC,IAAI,0CAA0C,CAC5C,IAAI,CAAC,iBAAiB,EACtB,iBAAiB,CAClB,CAAC;gBACJ,MAAM,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;aAC7C;YACD,iBAAiB,GAAG,uBAAuB,CACzC,iBAAiB,CAAC,gBAAgB,CACnC,CAAC;YACF,oGAAoG;YACpG,kDAAkD;YAClD,OACE,iBAAiB,YAAY,wBAAwB;gBACrD,iBAAiB,CACf,iBAAiB,CAAC,YAAY,EAC9B,iCAAiC,CAAC,OAAO,CAC1C,EACD;gBACA,iBAAiB,GAAG,uBAAuB,CACzC,iBAAiB,CAAC,gBAAgB,CACnC,CAAC;aACH;SACF;QACD,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,+BAA+B,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,CAAC;IAClE,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,yBAAyB;YACtD,IAAI,CAAC,kBAAkB;SACxB,CAAC,CAAC;IACL,CAAC;CACF"}
|
1
|
+
{"version":3,"file":"QueryBuilderPropertyEditorState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderPropertyEditorState.ts"],"names":[],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CAAC;aACH;SACF;QACD,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,+BAA+B,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,CAAC;IAClE,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,yBAAyB;YACtD,IAAI,CAAC,kBAAkB;SACxB,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
import { type GeneratorFn, ActionState } from '@finos/legend-shared';
|
17
17
|
import type { QueryBuilderState } from './QueryBuilderState.js';
|
18
|
-
import { type ExecutionResult, type RawLambda, EXECUTION_SERIALIZATION_FORMAT
|
18
|
+
import { type ExecutionResult, type RawLambda, EXECUTION_SERIALIZATION_FORMAT } from '@finos/legend-graph';
|
19
19
|
import { ExecutionPlanState } from '@finos/legend-application';
|
20
20
|
export declare class QueryBuilderResultState {
|
21
21
|
readonly queryBuilderState: QueryBuilderState;
|
@@ -36,7 +36,6 @@ export declare class QueryBuilderResultState {
|
|
36
36
|
setQueryRunPromise: (promise: Promise<ExecutionResult> | undefined) => void;
|
37
37
|
get checkForStaleResults(): boolean;
|
38
38
|
buildExecutionRawLambda(): RawLambda;
|
39
|
-
buildExecutionParameterValues(): ParameterValue[];
|
40
39
|
exportData(serializationFormat: EXECUTION_SERIALIZATION_FORMAT): GeneratorFn<void>;
|
41
40
|
runQuery(): GeneratorFn<void>;
|
42
41
|
generatePlan(debug: boolean): GeneratorFn<void>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderResultState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,WAAW,EAQhB,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAA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