@finos/legend-query-builder 4.14.35 → 4.14.37
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderDocumentation.d.ts +2 -1
- package/lib/__lib__/QueryBuilderDocumentation.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderDocumentation.js +1 -0
- package/lib/__lib__/QueryBuilderDocumentation.js.map +1 -1
- package/lib/__lib__/QueryBuilderTesting.d.ts +1 -0
- package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderTesting.js +1 -0
- package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +55 -19
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.js +30 -13
- package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +2 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts +0 -16
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +32 -104
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +2 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +50 -5
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +2 -1
- 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 +2 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.js +18 -6
- package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +62 -28
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
- package/lib/components/shared/CustomDatePicker.d.ts +1 -0
- package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
- package/lib/components/shared/CustomDatePicker.js +13 -9
- package/lib/components/shared/CustomDatePicker.js.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts +1 -0
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.js +2 -2
- package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.js +19 -16
- package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.js +18 -15
- package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.js +13 -10
- package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderConstantsState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderConstantsState.js +2 -1
- package/lib/stores/QueryBuilderConstantsState.js.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.js +12 -34
- package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
- package/lib/stores/QueryBuilderState.d.ts +3 -0
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +15 -1
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +2 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +23 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts +29 -0
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +2 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +2 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +2 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +6 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +2 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +15 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +3 -0
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +42 -3
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.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 +6 -5
- 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 +6 -5
- 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 +8 -37
- 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 +7 -10
- 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 +7 -10
- 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 +6 -5
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts +3 -0
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.js +30 -2
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +5 -4
- 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 +5 -4
- 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 +7 -35
- 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 +6 -8
- 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 +6 -8
- 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 +6 -8
- 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 +6 -8
- 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 +5 -4
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/query-workflow/QueryBuilderWorkFlowState.d.ts +5 -0
- package/lib/stores/query-workflow/QueryBuilderWorkFlowState.d.ts.map +1 -1
- package/lib/stores/query-workflow/QueryBuilderWorkFlowState.js +7 -0
- package/lib/stores/query-workflow/QueryBuilderWorkFlowState.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +20 -10
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts +0 -2
- package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkState.js +0 -6
- package/lib/stores/watermark/QueryBuilderWatermarkState.js.map +1 -1
- package/lib/stores/workflows/MappingQueryBuilderState.d.ts +2 -2
- package/lib/stores/workflows/MappingQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/MappingQueryBuilderState.js +2 -1
- package/lib/stores/workflows/MappingQueryBuilderState.js.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts +2 -2
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.js +2 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
- package/package.json +4 -4
- package/src/__lib__/QueryBuilderDocumentation.ts +1 -0
- package/src/__lib__/QueryBuilderTesting.ts +1 -0
- package/src/components/QueryBuilder.tsx +179 -54
- package/src/components/QueryBuilderConstantExpressionPanel.tsx +36 -14
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +2 -0
- package/src/components/QueryBuilderSideBar.tsx +138 -339
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +6 -1
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +139 -1
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +17 -0
- package/src/components/filter/QueryBuilderFilterPanel.tsx +6 -0
- package/src/components/result/QueryBuilderResultPanel.tsx +63 -6
- package/src/components/shared/BasicValueSpecificationEditor.tsx +96 -34
- package/src/components/shared/CustomDatePicker.tsx +18 -11
- package/src/components/shared/QueryBuilderVariableSelector.tsx +2 -2
- package/src/components/workflows/ClassQueryBuilder.tsx +79 -77
- package/src/components/workflows/MappingQueryBuilder.tsx +75 -76
- package/src/components/workflows/ServiceQueryBuilder.tsx +71 -70
- package/src/index.ts +2 -1
- package/src/stores/QueryBuilderConstantsState.ts +2 -0
- package/src/stores/QueryBuilderPropertyEditorState.ts +15 -53
- package/src/stores/QueryBuilderState.ts +23 -1
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +32 -0
- package/src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts +39 -0
- package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +4 -0
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +8 -0
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +32 -0
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +59 -0
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +5 -5
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +5 -5
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +10 -69
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +7 -18
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +7 -18
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +5 -5
- package/src/stores/filter/QueryBuilderFilterState.ts +48 -2
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +5 -5
- package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +5 -5
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +10 -71
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +6 -14
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +6 -14
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +6 -14
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +6 -14
- package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +5 -5
- package/src/stores/query-workflow/QueryBuilderWorkFlowState.ts +10 -0
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +32 -16
- package/src/stores/watermark/QueryBuilderWatermarkState.ts +0 -7
- package/src/stores/workflows/MappingQueryBuilderState.ts +7 -1
- package/src/stores/workflows/ServiceQueryBuilderState.ts +6 -1
- package/tsconfig.json +0 -1
- package/lib/components/watermark/QueryBuilderWatermark.d.ts +0 -22
- package/lib/components/watermark/QueryBuilderWatermark.d.ts.map +0 -1
- package/lib/components/watermark/QueryBuilderWatermark.js +0 -83
- package/lib/components/watermark/QueryBuilderWatermark.js.map +0 -1
- package/src/components/watermark/QueryBuilderWatermark.tsx +0 -218
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterOperator_LessThanEqual.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,cAAc,GAIf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,yBAAyB,EACzB,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,yBAAyB,EACzB,8BAA8B,GAC/B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,8CAA8C,CAAC;AACjG,OAAO,EACL,
|
1
|
+
{"version":3,"file":"QueryBuilderFilterOperator_LessThanEqual.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,cAAc,GAIf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,yBAAyB,EACzB,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,yBAAyB,EACzB,8BAA8B,GAC/B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,8CAA8C,CAAC;AACjG,OAAO,EACL,sCAAsC,EACtC,6BAA6B,GAC9B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AACzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAE3F,MAAM,OAAO,wCACX,SAAQ,0BAA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CAAC,CAAC,iCAAiC,CAAC,eAAe,EACrD,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,+BAA+B;SACnE,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterOperator_StartWith.d.ts","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAE9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,QAAQ,EAGd,MAAM,sBAAsB,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderFilterOperator_StartWith.d.ts","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAE9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,QAAQ,EAGd,MAAM,sBAAsB,CAAC;AAc9B,qBAAa,oCACX,SAAQ,0BACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,MAAM;IAI5D,uCAAuC,CACrC,oBAAoB,EAAE,oBAAoB,GACzC,OAAO;IAQV,oCAAoC,CAClC,oBAAoB,EAAE,oBAAoB,GACzC,OAAO;IAOV,8BAA8B,CAC5B,oBAAoB,EAAE,oBAAoB,GACzC,kBAAkB,GAAG,SAAS;IAwBjC,8BAA8B,CAC5B,oBAAoB,EAAE,oBAAoB,EAC1C,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,GACvC,kBAAkB;IAQrB,yBAAyB,CACvB,WAAW,EAAE,uBAAuB,EACpC,UAAU,EAAE,wBAAwB,GACnC,oBAAoB,GAAG,SAAS;IASnC,IAAI,QAAQ,IAAI,MAAM,CAIrB;CACF;AAED,qBAAa,uCAAwC,SAAQ,oCAAoC;IACtF,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,MAAM;IAI5D,8BAA8B,CACrC,oBAAoB,EAAE,oBAAoB,EAC1C,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,GACvC,kBAAkB;IASZ,yBAAyB,CAChC,WAAW,EAAE,uBAAuB,EACpC,UAAU,EAAE,wBAAwB,GACnC,oBAAoB,GAAG,SAAS;IAOnC,IAAa,QAAQ,IAAI,MAAM,CAI9B;CACF"}
|
@@ -18,9 +18,9 @@ import { PRIMITIVE_TYPE, PrimitiveType, } from '@finos/legend-graph';
|
|
18
18
|
import { UnsupportedOperationError, hashArray, } from '@finos/legend-shared';
|
19
19
|
import { buildFilterConditionState, buildFilterConditionExpression, } from './QueryBuilderFilterOperatorValueSpecificationBuilder.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graph/QueryBuilderMetaModelConst.js';
|
21
|
-
import { buildNotExpression,
|
21
|
+
import { buildNotExpression, getNonCollectionValueSpecificationType, unwrapNotExpression, } from '../../QueryBuilderValueSpecificationHelper.js';
|
22
22
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../QueryBuilderStateHashUtils.js';
|
23
|
-
import {
|
23
|
+
import { buildDefaultInstanceValue } from '../../shared/ValueSpecificationEditorHelper.js';
|
24
24
|
export class QueryBuilderFilterOperator_StartWith extends QueryBuilderFilterOperator {
|
25
25
|
getLabel(filterConditionState) {
|
26
26
|
return 'starts with';
|
@@ -41,8 +41,9 @@ export class QueryBuilderFilterOperator_StartWith extends QueryBuilderFilterOper
|
|
41
41
|
.genericType.value.rawType;
|
42
42
|
switch (propertyType.path) {
|
43
43
|
case PRIMITIVE_TYPE.STRING: {
|
44
|
-
return
|
45
|
-
.graph, propertyType
|
44
|
+
return buildDefaultInstanceValue(filterConditionState.filterState.queryBuilderState.graphManagerState
|
45
|
+
.graph, propertyType, filterConditionState.filterState.queryBuilderState.observerContext, filterConditionState.filterState.queryBuilderState
|
46
|
+
.INTERNAL__enableInitializingDefaultSimpleExpressionValue);
|
46
47
|
}
|
47
48
|
default:
|
48
49
|
throw new UnsupportedOperationError(`Can't get default value for filter operator '${this.getLabel(filterConditionState)}' when the LHS property is of type '${propertyType.path}'`);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterOperator_StartWith.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,cAAc,EAGd,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,yBAAyB,EACzB,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,yBAAyB,EACzB,8BAA8B,GAC/B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,8CAA8C,CAAC;AACjG,OAAO,EACL,kBAAkB,EAClB,
|
1
|
+
{"version":3,"file":"QueryBuilderFilterOperator_StartWith.js","sourceRoot":"","sources":["../../../../src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E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AC;IAChB,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,8BAA8B;SAClE,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -18,9 +18,14 @@ export interface FetchStructureLayoutConfig {
|
|
18
18
|
label: string;
|
19
19
|
showInFetchPanel: boolean;
|
20
20
|
}
|
21
|
+
export declare class QueryBuilderActionConfig {
|
22
|
+
static INSTANCE: QueryBuilderActionConfig;
|
23
|
+
}
|
21
24
|
export declare abstract class QueryBuilderWorkflowState {
|
25
|
+
actionConfig: QueryBuilderActionConfig;
|
22
26
|
abstract get showStatusBar(): boolean;
|
23
27
|
abstract getFetchStructureLayoutConfig(state: QueryBuilderState): FetchStructureLayoutConfig;
|
28
|
+
updateActionConfig(actionConfig: QueryBuilderActionConfig): void;
|
24
29
|
}
|
25
30
|
export declare class QueryBuilderAdvancedWorkflowState extends QueryBuilderWorkflowState {
|
26
31
|
get showStatusBar(): boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderWorkFlowState.d.ts","sourceRoot":"","sources":["../../../src/stores/query-workflow/QueryBuilderWorkFlowState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,8BAAsB,yBAAyB;IAC7C,QAAQ,KAAK,aAAa,IAAI,OAAO,CAAC;IAEtC,QAAQ,CAAC,6BAA6B,CACpC,KAAK,EAAE,iBAAiB,GACvB,0BAA0B;
|
1
|
+
{"version":3,"file":"QueryBuilderWorkFlowState.d.ts","sourceRoot":"","sources":["../../../src/stores/query-workflow/QueryBuilderWorkFlowState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,qBAAa,wBAAwB;IACnC,MAAM,CAAC,QAAQ,2BAAkC;CAClD;AAED,8BAAsB,yBAAyB;IAC7C,YAAY,2BAAqC;IAEjD,QAAQ,KAAK,aAAa,IAAI,OAAO,CAAC;IAEtC,QAAQ,CAAC,6BAA6B,CACpC,KAAK,EAAE,iBAAiB,GACvB,0BAA0B;IAE7B,kBAAkB,CAAC,YAAY,EAAE,wBAAwB,GAAG,IAAI;CAGjE;AAED,qBAAa,iCAAkC,SAAQ,yBAAyB;IAC9E,IAAI,aAAa,IAAI,OAAO,CAE3B;IAEQ,6BAA6B,CACpC,KAAK,EAAE,iBAAiB,GACvB,0BAA0B;IAO7B,MAAM,CAAC,QAAQ,oCAA2C;CAC3D;AAED,qBAAa,+BAAgC,SAAQ,yBAAyB;IAC5E,IAAa,aAAa,IAAI,OAAO,CAEpC;IAEQ,6BAA6B,CACpC,KAAK,EAAE,iBAAiB,GACvB,0BAA0B;IAO7B,MAAM,CAAC,QAAQ,CAAC,QAAQ,kCAAyC;CAClE"}
|
@@ -13,7 +13,14 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
+
export class QueryBuilderActionConfig {
|
17
|
+
static INSTANCE = new QueryBuilderActionConfig();
|
18
|
+
}
|
16
19
|
export class QueryBuilderWorkflowState {
|
20
|
+
actionConfig = QueryBuilderActionConfig.INSTANCE;
|
21
|
+
updateActionConfig(actionConfig) {
|
22
|
+
this.actionConfig = actionConfig;
|
23
|
+
}
|
17
24
|
}
|
18
25
|
export class QueryBuilderAdvancedWorkflowState extends QueryBuilderWorkflowState {
|
19
26
|
get showStatusBar() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderWorkFlowState.js","sourceRoot":"","sources":["../../../src/stores/query-workflow/QueryBuilderWorkFlowState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,MAAM,OAAgB,yBAAyB;
|
1
|
+
{"version":3,"file":"QueryBuilderWorkFlowState.js","sourceRoot":"","sources":["../../../src/stores/query-workflow/QueryBuilderWorkFlowState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,MAAM,OAAO,wBAAwB;IACnC,MAAM,CAAC,QAAQ,GAAG,IAAI,wBAAwB,EAAE,CAAC;;AAGnD,MAAM,OAAgB,yBAAyB;IAC7C,YAAY,GAAG,wBAAwB,CAAC,QAAQ,CAAC;IAQjD,kBAAkB,CAAC,YAAsC;QACvD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;CACF;AAED,MAAM,OAAO,iCAAkC,SAAQ,yBAAyB;IAC9E,IAAI,aAAa;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAEQ,6BAA6B,CACpC,KAAwB;QAExB,OAAO;YACL,KAAK,EAAE,iBAAiB;YACxB,gBAAgB,EAAE,IAAI;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,QAAQ,GAAG,IAAI,iCAAiC,EAAE,CAAC;;AAG5D,MAAM,OAAO,+BAAgC,SAAQ,yBAAyB;IAC5E,IAAa,aAAa;QACxB,OAAO,KAAK,CAAC;IACf,CAAC;IAEQ,6BAA6B,CACpC,KAAwB;QAExB,OAAO;YACL,KAAK,EAAE,KAAK,CAAC,mBAAmB,CAAC,cAAc,CAAC,UAAU;YAC1D,gBAAgB,EAAE,KAAK;SACxB,CAAC;IACJ,CAAC;IAED,MAAM,CAAU,QAAQ,GAAG,IAAI,+BAA+B,EAAE,CAAC"}
|
@@ -20,7 +20,7 @@ export declare const createMockPrimitiveValueSpecification: (primitiveType: Prim
|
|
20
20
|
useCurrentDateDependentFunctions?: boolean;
|
21
21
|
}) => ValueSpecification;
|
22
22
|
export declare const createMockEnumerationProperty: (enumeration: Enumeration) => string;
|
23
|
-
export declare const buildDefaultInstanceValue: (graph: PureModel, type: Type, observerContext: ObserverContext) => ValueSpecification;
|
23
|
+
export declare const buildDefaultInstanceValue: (graph: PureModel, type: Type, observerContext: ObserverContext, enableInitializingDefaultValue: boolean) => ValueSpecification;
|
24
24
|
export declare const buildDefaultEmptyStringLambda: (graph: PureModel, observerContext: ObserverContext) => LambdaFunction;
|
25
25
|
export declare const buildDefaultEmptyStringRawLambda: (graphState: GraphManagerState, observerContext: ObserverContext) => RawLambda;
|
26
26
|
export declare const generateVariableExpressionMockValue: (parameter: VariableExpression, graph: PureModel, observerContext: ObserverContext, options?: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ValueSpecificationEditorHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,IAAI,EAET,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,kBAAkB,EAElB,WAAW,EAMX,sBAAsB,EACtB,aAAa,EACb,cAAc,EAEd,wBAAwB,EACxB,cAAc,EAOf,MAAM,qBAAqB,CAAC;AAgB7B,eAAO,MAAM,iCAAiC,sBACzB,MAAM,sBACL,IAAI,KACvB,wBAOF,CAAC;AACF,eAAO,MAAM,2BAA2B,UAC/B,SAAS,QACV,cAAc,SACb,OAAO,mBACG,eAAe,KAC/B,sBAQF,CAAC;AAEF,eAAO,MAAM,qCAAqC,kBACjC,aAAa,SACrB,SAAS,mBACC,eAAe,YACtB;IACR,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC5C,KACA,kBAgCF,CAAC;AAEF,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,KACvB,MACyE,CAAC;AAE7E,eAAO,MAAM,yBAAyB,UAC7B,SAAS,QACV,IAAI,mBACO,eAAe,
|
1
|
+
{"version":3,"file":"ValueSpecificationEditorHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,IAAI,EAET,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,kBAAkB,EAElB,WAAW,EAMX,sBAAsB,EACtB,aAAa,EACb,cAAc,EAEd,wBAAwB,EACxB,cAAc,EAOf,MAAM,qBAAqB,CAAC;AAgB7B,eAAO,MAAM,iCAAiC,sBACzB,MAAM,sBACL,IAAI,KACvB,wBAOF,CAAC;AACF,eAAO,MAAM,2BAA2B,UAC/B,SAAS,QACV,cAAc,SACb,OAAO,mBACG,eAAe,KAC/B,sBAQF,CAAC;AAEF,eAAO,MAAM,qCAAqC,kBACjC,aAAa,SACrB,SAAS,mBACC,eAAe,YACtB;IACR,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC5C,KACA,kBAgCF,CAAC;AAEF,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,KACvB,MACyE,CAAC;AAE7E,eAAO,MAAM,yBAAyB,UAC7B,SAAS,QACV,IAAI,mBACO,eAAe,kCACA,OAAO,KACtC,kBA+DF,CAAC;AAEF,eAAO,MAAM,6BAA6B,UACjC,SAAS,mBACC,eAAe,KAC/B,cAgBF,CAAC;AAEF,eAAO,MAAM,gCAAgC,eAC/B,iBAAiB,mBACZ,eAAe,KAC/B,SAIA,CAAC;AAEJ,eAAO,MAAM,mCAAmC,cACnC,kBAAkB,SACtB,SAAS,mBACC,eAAe,YACtB;IACR,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC5C,KACA,kBAAkB,GAAG,SAyCvB,CAAC;AAEF,eAAO,MAAM,gCAAgC,uBACvB,kBAAkB,KACrC,MAAM,GAAG,SAkBX,CAAC;AAEF,eAAO,MAAM,kBAAkB,QACxB,kBAAkB,SAChB,SAAS,KACf,OAeF,CAAC"}
|
@@ -45,11 +45,10 @@ export const createMockPrimitiveValueSpecification = (primitiveType, graph, obse
|
|
45
45
|
return buildPrimitiveInstanceValue(graph, primitiveTypeName, generateDefaultValueForPrimitiveType(primitiveTypeName), observerContext);
|
46
46
|
};
|
47
47
|
export const createMockEnumerationProperty = (enumeration) => new Randomizer().getRandomItemInCollection(enumeration.values)?.name ?? '';
|
48
|
-
export const buildDefaultInstanceValue = (graph, type, observerContext) => {
|
48
|
+
export const buildDefaultInstanceValue = (graph, type, observerContext, enableInitializingDefaultValue) => {
|
49
49
|
const path = type.path;
|
50
50
|
switch (path) {
|
51
51
|
case PRIMITIVE_TYPE.STRING:
|
52
|
-
case PRIMITIVE_TYPE.BOOLEAN:
|
53
52
|
case PRIMITIVE_TYPE.STRICTDATE:
|
54
53
|
case PRIMITIVE_TYPE.DATETIME:
|
55
54
|
case PRIMITIVE_TYPE.NUMBER:
|
@@ -58,26 +57,37 @@ export const buildDefaultInstanceValue = (graph, type, observerContext) => {
|
|
58
57
|
case PRIMITIVE_TYPE.BINARY:
|
59
58
|
case PRIMITIVE_TYPE.BYTE:
|
60
59
|
case PRIMITIVE_TYPE.INTEGER: {
|
60
|
+
return buildPrimitiveInstanceValue(graph, path, enableInitializingDefaultValue
|
61
|
+
? generateDefaultValueForPrimitiveType(path)
|
62
|
+
: null, observerContext);
|
63
|
+
}
|
64
|
+
case PRIMITIVE_TYPE.BOOLEAN: {
|
61
65
|
return buildPrimitiveInstanceValue(graph, path, generateDefaultValueForPrimitiveType(path), observerContext);
|
62
66
|
}
|
63
67
|
case PRIMITIVE_TYPE.DATE: {
|
64
|
-
return buildPrimitiveInstanceValue(graph, PRIMITIVE_TYPE.STRICTDATE,
|
68
|
+
return buildPrimitiveInstanceValue(graph, PRIMITIVE_TYPE.STRICTDATE, enableInitializingDefaultValue
|
69
|
+
? generateDefaultValueForPrimitiveType(path)
|
70
|
+
: null, observerContext);
|
65
71
|
}
|
66
72
|
default:
|
67
73
|
if (type instanceof Enumeration) {
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
74
|
+
const enumValueInstanceValue = new EnumValueInstanceValue(GenericTypeExplicitReference.create(new GenericType(type)));
|
75
|
+
if (enableInitializingDefaultValue) {
|
76
|
+
if (type.values.length > 0) {
|
77
|
+
instanceValue_setValues(enumValueInstanceValue, [EnumValueExplicitReference.create(type.values[0])], observerContext);
|
78
|
+
}
|
79
|
+
else {
|
80
|
+
throw new UnsupportedOperationError(`Can't get default value for enumeration since enumeration '${path}' has no value`);
|
81
|
+
}
|
72
82
|
}
|
73
|
-
|
83
|
+
return enumValueInstanceValue;
|
74
84
|
}
|
75
|
-
throw new UnsupportedOperationError(`Can't get default value for type'${path}'`);
|
85
|
+
throw new UnsupportedOperationError(`Can't get default value for type '${path}'`);
|
76
86
|
}
|
77
87
|
};
|
78
88
|
export const buildDefaultEmptyStringLambda = (graph, observerContext) => {
|
79
89
|
const lambdaFunction = new LambdaFunction(new FunctionType(PackageableElementExplicitReference.create(graph.getType(CORE_PURE_PATH.ANY)), Multiplicity.ONE));
|
80
|
-
lambdaFunction.expressionSequence[0] = buildDefaultInstanceValue(graph, PrimitiveType.STRING, observerContext);
|
90
|
+
lambdaFunction.expressionSequence[0] = buildDefaultInstanceValue(graph, PrimitiveType.STRING, observerContext, true);
|
81
91
|
return lambdaFunction;
|
82
92
|
};
|
83
93
|
export const buildDefaultEmptyStringRawLambda = (graphState, observerContext) => buildRawLambdaFromLambdaFunction(buildDefaultEmptyStringLambda(graphState.graph, observerContext), graphState);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ValueSpecificationEditorHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAQL,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACX,4BAA4B,E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ACtB,MAAM,iBAAiB,GAAG,aAAa,CAAC,IAAI,CAAC;IAC7C,IAAI,OAAO,EAAE,gCAAgC,EAAE,CAAC;QAC9C,IACE,iBAAiB,KAAK,cAAc,CAAC,IAAI;YACzC,iBAAiB,KAAK,cAAc,CAAC,QAAQ,EAC7C,CAAC;YACD,OAAO,iCAAiC,CACtC,iCAAiC,CAAC,GAAG,EACrC,aAAa,CAAC,QAAQ,CACvB,CAAC;QACJ,CAAC;aAAM,IAAI,iBAAiB,KAAK,cAAc,CAAC,UAAU,EAAE,CAAC;YAC3D,OAAO,iCAAiC,CACtC,iCAAiC,CAAC,KAAK,EACvC,aAAa,CAAC,UAAU,CACzB,CAAC;QACJ,CAAC;IACH,CAAC;IACD,IAAI,iBAAiB,KAAK,cAAc,CAAC,IAAI,EAAE,CAAC;QAC9C,OAAO,2BAA2B,CAChC,KAAK,EACL,cAAc,CAAC,UAAU,EACzB,oCAAoC,CAAC,iBAAiB,CAAC,EACvD,eAAe,CAChB,CAAC;IACJ,CAAC;IACD,OAAO,2BAA2B,CAChC,KAAK,EACL,iBAAmC,EACnC,oCAAoC,CAAC,iBAAmC,CAAC,EACzE,eAAe,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,WAAwB,EAChB,EAAE,CACV,IAAI,UAAU,EAAE,CAAC,yBAAyB,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,IAAI,IAAI,EAAE,CAAC;AAE7E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,KAAgB,EAChB,IAAU,EACV,eAAgC,
|
1
|
+
{"version":3,"file":"ValueSpecificationEditorHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAQL,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACX,4B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,CAAC;IACjC,CAAC;SAAM,IAAI,kBAAkB,YAAY,yBAAyB,EAAE,CAAC;QACnE,OAAO,gCAAgC,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CAAC,CAAC;IACzE,CAAC;SAAM,IAAI,kBAAkB,YAAY,wBAAwB,EAAE,CAAC;QAClE,OAAO,kBAAkB,CAAC,YAAY,CAAC;IACzC,CAAC;SAAM,IAAI,kBAAkB,YAAY,uBAAuB,EAAE,CAAC;QACjE,OAAO,kBAAkB,CAAC,MAAM;aAC7B,GAAG,CAAC,gCAAgC,CAAC;aACrC,IAAI,CAAC,GAAG,CAAC,CAAC;IACf,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,GAAuB,EACvB,KAAgB,EACP,EAAE;IACX,MAAM,SAAS,GAAG,kBAAkB,CAAC,GAAG,EAAE,CACxC,+BAA+B,CAAC,GAAG,CAAC,CACrC,CAAC;IACF,MAAM,OAAO,GAAG,kBAAkB,CAAC,GAAG,EAAE,CACtC,KAAK,CAAC,QAAQ,CAAC,uBAAuB,CAAC,mBAAmB,CAAC,CAC5D,CAAC;IACF,MAAM,UAAU,GAAG,kBAAkB,CAAC,GAAG,EAAE,CACzC,KAAK,CAAC,QAAQ,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAChD,CAAC;IACF,2HAA2H;IAC3H,6EAA6E;IAC7E,OAAO,OAAO,CACZ,SAAS,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,UAAU,CAAC,CAC5E,CAAC;AACJ,CAAC,CAAC"}
|
@@ -19,10 +19,8 @@ import type { QueryBuilderState } from '../QueryBuilderState.js';
|
|
19
19
|
export declare class QueryBuilderWatermarkState implements Hashable {
|
20
20
|
readonly queryBuilderState: QueryBuilderState;
|
21
21
|
value?: ValueSpecification | undefined;
|
22
|
-
isEditingWatermark: boolean;
|
23
22
|
constructor(queryBuilderState: QueryBuilderState);
|
24
23
|
getDefaultValue(): ValueSpecification;
|
25
|
-
setIsEditingWatermark(val: boolean): void;
|
26
24
|
setValue(val: ValueSpecification | undefined): void;
|
27
25
|
isVariableUsed(variable: VariableExpression): boolean;
|
28
26
|
get hashCode(): string;
|
@@ -1 +1 @@
|
|
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;
|
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;gBAE3B,iBAAiB,EAAE,iBAAiB;IAUhD,eAAe,IAAI,kBAAkB;IAWrC,QAAQ,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAMnD,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO;IAMrD,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
|
@@ -21,13 +21,10 @@ import { isValueExpressionReferencedInValue } from '../QueryBuilderValueSpecific
|
|
21
21
|
export class QueryBuilderWatermarkState {
|
22
22
|
queryBuilderState;
|
23
23
|
value;
|
24
|
-
isEditingWatermark = false;
|
25
24
|
constructor(queryBuilderState) {
|
26
25
|
makeObservable(this, {
|
27
26
|
value: observable,
|
28
|
-
isEditingWatermark: observable,
|
29
27
|
setValue: action,
|
30
|
-
setIsEditingWatermark: action,
|
31
28
|
hashCode: computed,
|
32
29
|
});
|
33
30
|
this.queryBuilderState = queryBuilderState;
|
@@ -37,9 +34,6 @@ export class QueryBuilderWatermarkState {
|
|
37
34
|
watermarkConstant.values = ['watermarkValue'];
|
38
35
|
return watermarkConstant;
|
39
36
|
}
|
40
|
-
setIsEditingWatermark(val) {
|
41
|
-
this.isEditingWatermark = val;
|
42
|
-
}
|
43
37
|
setValue(val) {
|
44
38
|
this.value = val
|
45
39
|
? observe_ValueSpecification(val, this.queryBuilderState.observerContext)
|
@@ -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,kCAAkC,EAAE,MAAM,kCAAkC,CAAC;AAEtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CA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YACzE,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,cAAc,CAAC,QAA4B;QACzC,OAAO,IAAI,CAAC,KAAK;YACf,CAAC,CAAC,kCAAkC,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC;YAC1D,CAAC,CAAC,KAAK,CAAC;IACZ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,eAAe;YAClD,IAAI,CAAC,KAAK,IAAI,EAAE;SACjB,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -17,12 +17,12 @@ import type { GenericLegendApplicationStore } from '@finos/legend-application';
|
|
17
17
|
import { type Mapping, type Runtime, type GraphManagerState } from '@finos/legend-graph';
|
18
18
|
import { QueryBuilderState } from '../QueryBuilderState.js';
|
19
19
|
import type { QueryBuilderConfig } from '../../graph-manager/QueryBuilderConfig.js';
|
20
|
-
import type { QueryBuilderWorkflowState } from '../query-workflow/QueryBuilderWorkFlowState.js';
|
20
|
+
import type { QueryBuilderActionConfig, QueryBuilderWorkflowState } from '../query-workflow/QueryBuilderWorkFlowState.js';
|
21
21
|
export declare class MappingQueryBuilderState extends QueryBuilderState {
|
22
22
|
readonly onMappingChange?: ((val: Mapping) => void) | undefined;
|
23
23
|
readonly onRuntimeChange?: ((val: Runtime) => void) | undefined;
|
24
24
|
TEMPORARY__setupPanelContentRenderer: () => React.ReactNode;
|
25
|
-
constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, workflowState: QueryBuilderWorkflowState, onMappingChange?: ((val: Mapping) => void) | undefined, onRuntimeChange?: ((val: Runtime) => void) | undefined, config?: QueryBuilderConfig | undefined, sourceInfo?: object | undefined);
|
25
|
+
constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, workflowState: QueryBuilderWorkflowState, actionConfig: QueryBuilderActionConfig, onMappingChange?: ((val: Mapping) => void) | undefined, onRuntimeChange?: ((val: Runtime) => void) | undefined, config?: QueryBuilderConfig | undefined, sourceInfo?: object | undefined);
|
26
26
|
/**
|
27
27
|
* Propagation after changing the mapping:
|
28
28
|
* - If no runtime is chosen, try to choose a compatible runtime
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MappingQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/workflows/MappingQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,iBAAiB,EAKvB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"MappingQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/workflows/MappingQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,iBAAiB,EAKvB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,KAAK,EACV,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,gDAAgD,CAAC;AAExD,qBAAa,wBAAyB,SAAQ,iBAAiB;IAC7D,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAChE,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAEvD,oCAAoC,QAAO,MAAM,SAAS,CAChB;gBAGjD,gBAAgB,EAAE,6BAA6B,EAC/C,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,yBAAyB,EACxC,YAAY,EAAE,wBAAwB,EACtC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACtD,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACtD,MAAM,CAAC,EAAE,kBAAkB,GAAG,SAAS,EACvC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS;IAgBjC;;;;;;OAMG;IACH,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;CA6B/C"}
|
@@ -21,10 +21,11 @@ export class MappingQueryBuilderState extends QueryBuilderState {
|
|
21
21
|
onMappingChange;
|
22
22
|
onRuntimeChange;
|
23
23
|
TEMPORARY__setupPanelContentRenderer = () => renderMappingQueryBuilderSetupPanelContent(this);
|
24
|
-
constructor(applicationStore, graphManagerState, workflowState, onMappingChange, onRuntimeChange, config, sourceInfo) {
|
24
|
+
constructor(applicationStore, graphManagerState, workflowState, actionConfig, onMappingChange, onRuntimeChange, config, sourceInfo) {
|
25
25
|
super(applicationStore, graphManagerState, workflowState, config, sourceInfo);
|
26
26
|
this.onMappingChange = onMappingChange;
|
27
27
|
this.onRuntimeChange = onRuntimeChange;
|
28
|
+
this.workflowState.updateActionConfig(actionConfig);
|
28
29
|
}
|
29
30
|
/**
|
30
31
|
* Propagation after changing the mapping:
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MappingQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/MappingQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAIL,4BAA4B,EAC5B,cAAc,EACd,mCAAmC,EACnC,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;
|
1
|
+
{"version":3,"file":"MappingQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/MappingQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAIL,4BAA4B,EAC5B,cAAc,EACd,mCAAmC,EACnC,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAO5D,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IACpD,eAAe,CAAwC;IACvD,eAAe,CAAwC;IAEvD,oCAAoC,GAAG,GAAoB,EAAE,CACpE,0CAA0C,CAAC,IAAI,CAAC,CAAC;IAEnD,YACE,gBAA+C,EAC/C,iBAAoC,EACpC,aAAwC,EACxC,YAAsC,EACtC,eAAsD,EACtD,eAAsD,EACtD,MAAuC,EACvC,UAA+B;QAE/B,KAAK,CACH,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EAEb,MAAM,EACN,UAAU,CACX,CAAC;QAEF,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;IACtD,CAAC;IAED;;;;;;OAMG;IACH,sBAAsB,CAAC,OAAgB;QACrC,8CAA8C;QAC9C,sDAAsD;QACtD,MAAM,kBAAkB,GAAG,4BAA4B,CACrD,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,cAAc,CACtC,CAAC;QACF,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;QACrE,IAAI,kBAAkB,EAAE,CAAC;YACvB,IAAI,CAAC,aAAa,CAChB,IAAI,cAAc,CAChB,mCAAmC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAC/D,CACF,CAAC;QACJ,CAAC;QAED,MAAM,iBAAiB,GAAG,2BAA2B,CACnD,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,aAAa,CACrC,CAAC;QACF,kEAAkE;QAClE,4DAA4D;QAC5D,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;YAClE,IAAI,gBAAgB,EAAE,CAAC;gBACrB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;YACrC,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
@@ -17,7 +17,7 @@ import type { GenericLegendApplicationStore } from '@finos/legend-application';
|
|
17
17
|
import { type Mapping, type Runtime, type GraphManagerState, type Service } from '@finos/legend-graph';
|
18
18
|
import { QueryBuilderState } from '../QueryBuilderState.js';
|
19
19
|
import type { QueryBuilderConfig } from '../../graph-manager/QueryBuilderConfig.js';
|
20
|
-
import type { QueryBuilderWorkflowState } from '../query-workflow/QueryBuilderWorkFlowState.js';
|
20
|
+
import type { QueryBuilderActionConfig, QueryBuilderWorkflowState } from '../query-workflow/QueryBuilderWorkFlowState.js';
|
21
21
|
export type ServiceExecutionContext = {
|
22
22
|
key: string;
|
23
23
|
mapping: Mapping;
|
@@ -31,7 +31,7 @@ export declare class ServiceQueryBuilderState extends QueryBuilderState {
|
|
31
31
|
readonly onExecutionContextChange?: ((val: ServiceExecutionContext) => void) | undefined;
|
32
32
|
TEMPORARY__setupPanelContentRenderer: () => React.ReactNode;
|
33
33
|
selectedExecutionContext?: ServiceExecutionContext | undefined;
|
34
|
-
constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, workflowState: QueryBuilderWorkflowState, service: Service, usableServices: Service[] | undefined, executionContextKey?: string | undefined, onServiceChange?: ((val: Service) => void) | undefined, onExecutionContextChange?: ((val: ServiceExecutionContext) => void) | undefined, config?: QueryBuilderConfig | undefined, sourceInfo?: object | undefined);
|
34
|
+
constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, workflowState: QueryBuilderWorkflowState, actionConfig: QueryBuilderActionConfig, service: Service, usableServices: Service[] | undefined, executionContextKey?: string | undefined, onServiceChange?: ((val: Service) => void) | undefined, onExecutionContextChange?: ((val: ServiceExecutionContext) => void) | undefined, config?: QueryBuilderConfig | undefined, sourceInfo?: object | undefined);
|
35
35
|
setSelectedExecutionContext(val: ServiceExecutionContext): void;
|
36
36
|
get sideBarClassName(): string | undefined;
|
37
37
|
get isMappingReadOnly(): boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ServiceQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/workflows/ServiceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,iBAAiB,EACtB,KAAK,OAAO,EAIb,MAAM,qBAAqB,CAAC;AAS7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"ServiceQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/workflows/ServiceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;G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ACxC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACtD,wBAAwB,CAAC,EACrB,CAAC,CAAC,GAAG,EAAE,uBAAuB,KAAK,IAAI,CAAC,GACxC,SAAS,EACb,MAAM,CAAC,EAAE,kBAAkB,GAAG,SAAS,EACvC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS;IA2DjC,2BAA2B,CAAC,GAAG,EAAE,uBAAuB,GAAG,IAAI;IAI/D,IAAa,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAIlD;IAED,IAAa,iBAAiB,IAAI,OAAO,CAExC;IAED,IAAa,iBAAiB,IAAI,OAAO,CAExC;IAED;;;;;;OAMG;IACH,+BAA+B,CAC7B,gBAAgB,EAAE,uBAAuB,GACxC,IAAI;CAkBR"}
|
@@ -26,7 +26,7 @@ export class ServiceQueryBuilderState extends QueryBuilderState {
|
|
26
26
|
onExecutionContextChange;
|
27
27
|
TEMPORARY__setupPanelContentRenderer = () => renderServiceQueryBuilderSetupPanelContent(this);
|
28
28
|
selectedExecutionContext;
|
29
|
-
constructor(applicationStore, graphManagerState, workflowState, service, usableServices, executionContextKey, onServiceChange, onExecutionContextChange, config, sourceInfo) {
|
29
|
+
constructor(applicationStore, graphManagerState, workflowState, actionConfig, service, usableServices, executionContextKey, onServiceChange, onExecutionContextChange, config, sourceInfo) {
|
30
30
|
super(applicationStore, graphManagerState, workflowState, config, sourceInfo);
|
31
31
|
makeObservable(this, {
|
32
32
|
selectedExecutionContext: observable,
|
@@ -36,6 +36,7 @@ export class ServiceQueryBuilderState extends QueryBuilderState {
|
|
36
36
|
this.usableServices = usableServices;
|
37
37
|
this.onServiceChange = onServiceChange;
|
38
38
|
this.onExecutionContextChange = onExecutionContextChange;
|
39
|
+
this.workflowState.updateActionConfig(actionConfig);
|
39
40
|
if (service.execution instanceof PureSingleExecution) {
|
40
41
|
this.executionContextState.mapping = service.execution.mapping?.value;
|
41
42
|
this.executionContextState.runtimeValue = service.execution.runtime;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ServiceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/ServiceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAKL,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;
|
1
|
+
{"version":3,"file":"ServiceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/ServiceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAKL,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAa5D,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IACpD,OAAO,CAAU;IACjB,cAAc,CAAwB;IACtC,iBAAiB,GAA8B,EAAE,CAAC;IAClD,eAAe,CAAwC;IACvD,wBAAwB,CAEnB;IAEL,oCAAoC,GAAG,GAAoB,EAAE,CACpE,0CAA0C,CA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G,gBAAgB,CAAC,OAAO,CAAC;QACzC,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC;QACxD,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;QAElD,MAAM,iBAAiB,GAAG,2BAA2B,CACnD,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,aAAa,CACrC,CAAC;QACF,kEAAkE;QAClE,4DAA4D;QAC5D,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;YAClE,IAAI,gBAAgB,EAAE,CAAC;gBACrB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;YACrC,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "4.14.
|
3
|
+
"version": "4.14.37",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -42,10 +42,10 @@
|
|
42
42
|
"test:watch": "jest --watch"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@finos/legend-application": "15.
|
46
|
-
"@finos/legend-art": "7.1.
|
45
|
+
"@finos/legend-application": "15.1.1",
|
46
|
+
"@finos/legend-art": "7.1.30",
|
47
47
|
"@finos/legend-graph": "31.9.15",
|
48
|
-
"@finos/legend-lego": "1.2.
|
48
|
+
"@finos/legend-lego": "1.2.31",
|
49
49
|
"@finos/legend-server-depot": "6.0.40",
|
50
50
|
"@finos/legend-shared": "10.0.35",
|
51
51
|
"@finos/legend-storage": "3.0.85",
|
@@ -19,4 +19,5 @@ export enum QUERY_BUILDER_DOCUMENTATION_KEY {
|
|
19
19
|
QUESTION_HOW_TO_ADD_PARAMETERS_TO_QUERY = 'question.how-to-add-parameters-to-query',
|
20
20
|
QUESTION_HOW_TO_ADD_CONSTANTS_TO_QUERY = 'question.how-to-add-constants-to-query',
|
21
21
|
QUESTION_HOW_TO_USE_LOCAL_GRID_MODE = 'question.how-to-use-local-grid-mode',
|
22
|
+
TUTORIAL_QUERY_BUILDER = 'tutorial.query.builder',
|
22
23
|
}
|
@@ -18,6 +18,7 @@ export enum QUERY_BUILDER_TEST_ID {
|
|
18
18
|
LAMBDA_EDITOR__EDITOR_INPUT = 'lambda-editor__editor__input',
|
19
19
|
|
20
20
|
QUERY_BUILDER = 'query__builder',
|
21
|
+
QUERY_BUILDER_ACTIONS = 'query__builder__actions',
|
21
22
|
QUERY_BUILDER_SETUP = 'query__builder__setup',
|
22
23
|
QUERY_BUILDER_FETCH_STRUCTURE = 'query__builder__fetch__structure',
|
23
24
|
QUERY_BUILDER_TDS_PROJECTION = 'query__builder__tds__projection',
|