@finos/legend-query-builder 4.14.50 → 4.14.52
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilderConstantExpressionPanel.js +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +1 -1
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +1 -1
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts +0 -1
- package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/components/ServiceQuerySetupUtils.d.ts.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +4 -2
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
- package/lib/components/execution-plan/AllocationExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/AllocationExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/ConstantExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/ConstantExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/DataTypeResultTypeViewer.d.ts +0 -1
- package/lib/components/execution-plan/DataTypeResultTypeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/ExecutionPlanViewer.d.ts +0 -1
- package/lib/components/execution-plan/ExecutionPlanViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js +1 -1
- package/lib/components/execution-plan/ImplementationViewer.d.ts +0 -1
- package/lib/components/execution-plan/ImplementationViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/PartialClassResultViewer.d.ts +0 -1
- package/lib/components/execution-plan/PartialClassResultViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/PartialClassResultViewer.js +1 -1
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js +1 -1
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js +1 -1
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js +1 -1
- package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/ResultTypeViewer.d.ts +0 -1
- package/lib/components/execution-plan/ResultTypeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js +1 -1
- package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js +2 -2
- package/lib/components/execution-plan/TDSResultTypeViewer.d.ts +0 -1
- package/lib/components/execution-plan/TDSResultTypeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/TDSResultTypeViewer.js +1 -1
- package/lib/components/execution-plan/TempTableStrategyViewer.d.ts +0 -1
- package/lib/components/execution-plan/TempTableStrategyViewer.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +0 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +1 -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 +9 -4
- 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 +1 -1
- package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js +10 -8
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts +0 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js +2 -2
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts +19 -4
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +97 -36
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
- package/lib/components/shared/CustomDatePicker.d.ts +2 -1
- package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
- package/lib/components/shared/CustomDatePicker.js +8 -5
- package/lib/components/shared/CustomDatePicker.js.map +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.js +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts +0 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts +0 -1
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderRootClassInfoTooltip.d.ts +0 -1
- package/lib/components/shared/QueryBuilderRootClassInfoTooltip.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.js +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.d.ts +1 -0
- package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.js +1 -0
- package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -1
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +1 -2
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +68 -8
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +7 -7
- package/lib/stores/QueryBuilderState.d.ts +0 -1
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +5 -1
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts +0 -1
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts.map +1 -1
- package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.d.ts.map +1 -1
- package/lib/stores/execution-plan/ExecutionPlanState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +0 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts.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 +6 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts +11 -0
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +76 -20
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +70 -34
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts +2 -0
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.js +7 -0
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +5 -2
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +20 -9
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationModifierHelper.d.ts.map +1 -1
- package/lib/stores/workflows/ClassQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/MappingQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
- package/package.json +15 -15
- package/src/components/QueryBuilderConstantExpressionPanel.tsx +1 -1
- package/src/components/QueryBuilderParametersPanel.tsx +1 -1
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +1 -1
- package/src/components/QueryBuilderSideBar.tsx +1 -1
- package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +4 -1
- package/src/components/execution-plan/FunctionParametersValidationNodeViewer.tsx +1 -1
- package/src/components/execution-plan/PartialClassResultViewer.tsx +1 -1
- package/src/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.tsx +1 -1
- package/src/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +1 -1
- package/src/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +1 -1
- package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +1 -1
- package/src/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.tsx +2 -2
- package/src/components/execution-plan/TDSResultTypeViewer.tsx +1 -1
- package/src/components/explorer/QueryBuilderMilestoningParameterEditor.tsx +1 -1
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +1 -1
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +1 -1
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +1 -1
- package/src/components/filter/QueryBuilderFilterPanel.tsx +18 -4
- package/src/components/result/QueryBuilderResultPanel.tsx +1 -0
- package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +12 -13
- package/src/components/result/tds/QueryBuilderTDSResultShared.tsx +1 -1
- package/src/components/result/tds/QueryBuilderTDSSimpleGridResult.tsx +2 -2
- package/src/components/shared/BasicValueSpecificationEditor.tsx +257 -55
- package/src/components/shared/CustomDatePicker.tsx +36 -11
- package/src/components/shared/LambdaParameterValuesEditor.tsx +1 -1
- package/src/components/shared/QueryBuilderVariableSelector.tsx +4 -1
- package/src/graph/QueryBuilderMetaModelConst.ts +1 -0
- package/src/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.ts +1 -1
- package/src/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +189 -18
- package/src/stores/QueryBuilderStateBuilder.ts +6 -1
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +2 -2
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +7 -0
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +167 -43
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +145 -69
- package/src/stores/filter/QueryBuilderFilterState.ts +8 -0
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +47 -7
- package/tsconfig.package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTDSResultShared.d.ts","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSResultShared.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
1
|
+
{"version":3,"file":"QueryBuilderTDSResultShared.d.ts","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSResultShared.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EACL,KAAK,kBAAkB,EAKvB,KAAK,eAAe,EAErB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EAEpC,MAAM,2BAA2B,CAAC;AA2BnC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AAKxG,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EACV,uBAAuB,EACvB,6BAA6B,EAC7B,0BAA0B,EAC3B,MAAM,4CAA4C,CAAC;AAQpD,eAAO,MAAM,cAAc,QAAS,MAAM,KAAG,MAY5C,CAAC;AAEF,eAAO,MAAM,iCAAiC,eAChC,eAAe,WAClB,OAAO,KACf,MAAM,GAAG,SAkBX,CAAC;AAEF,eAAO,MAAM,6BAA6B,oBACvB,kBAAkB,KAClC,0BAA0B,EAW5B,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,0BAA0B,GAAG;IAC1E,WAAW,EAAE,uBAAuB,CAAC;IACrC,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAAC;AAyQF,eAAO,MAAM,mBAAmB,qBACZ,gBAAgB,CAChC,uBAAuB,EACvB,8BAA8B,CAAC,uBAAuB,CAAC,CACxD,QACK,6BAA6B,GAAG,IAAI,cAC9B,OAAO,YACT,oBAAoB,KAC7B,IAIF,CAAC;AAEF,eAAO,MAAM,iCAAiC;UAIlC,6BAA6B,GAAG,IAAI;cAChC,oBAAoB;uBACX,MAAM,IAAI;0BACP,MAAM,IAAI;2GAsCrC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTDSResultShared.js","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSResultShared.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,eAAe,EACf,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAGL,aAAa,EACb,sBAAsB,EACtB,0BAA0B,EAE1B,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAKL,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB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"version":3,"file":"QueryBuilderTDSResultShared.js","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSResultShared.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,eAAe,EACf,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAGL,aAAa,EACb,sBAAsB,EACtB,0BAA0B,EAE1B,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAKL,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EACL,2CAA2C,EAC3C,iCAAiC,GAClC,MAAM,qFAAqF,CAAC;AAC7F,OAAO,EAGL,wBAAwB,EACxB,2CAA2C,EAC3C,sCAAsC,GACvC,MAAM,gFAAgF,CAAC;AACxF,OAAO,EACL,oCAAoC,EACpC,uCAAuC,GACxC,MAAM,mGAAmG,CAAC;AAC3G,OAAO,EACL,iCAAiC,EACjC,oCAAoC,GACrC,MAAM,gGAAgG,CAAC;AAGxG,OAAO,EACL,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAmC,MAAM,8BAA8B,CAAC;AAM/E,OAAO,EACL,sCAAsC,EACtC,yCAAyC,GAC1C,MAAM,qGAAqG,CAAC;AAC7G,OAAO,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAC;AAGjG,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAW,EAAU,EAAE;IACpD,IAAI,CAAC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OAAO,EAAE,iBAAiB,gCAEzB,EAClB,KAAC,eAAe,IAAC,OAAO,EAAE,oBAAoB,+BAE5B,IACN,CACf,CAAC;AACJ,CAAC,CAAC,CACH,CAAC"}
|
@@ -64,10 +64,10 @@ const QueryResultCellRenderer = observer((params) => {
|
|
64
64
|
!(resultState.executionResult instanceof TDSExecutionResult)) {
|
65
65
|
return undefined;
|
66
66
|
}
|
67
|
-
if (params.
|
67
|
+
if (params.api.getColumnState()[colIndex]?.sort === 'asc') {
|
68
68
|
resultState.executionResult.result.rows.sort((a, b) => getTDSRowRankByColumnInAsc(a, b, colIndex));
|
69
69
|
}
|
70
|
-
else if (params.
|
70
|
+
else if (params.api.getColumnState()[colIndex]?.sort === 'desc') {
|
71
71
|
resultState.executionResult.result.rows.sort((a, b) => getTDSRowRankByColumnInAsc(b, a, colIndex));
|
72
72
|
}
|
73
73
|
return resultState.executionResult.result.rows[rowIndex]?.values[colIndex];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTDSSimpleGridResult.js","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSSimpleGridResult.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EACL,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,QAAQ,GAET,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,6BAA6B,EAC7B,iCAAiC,GAElC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAC7E,OAAO,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,UAAU,GACX,MAAM,sBAAsB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S,CAC1D,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,KAAK,CACvB,CAAC;QACF,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrD,CAAC,CAAC;IAEF,MAAM,sBAAsB,GAAG,8BAA8B,CAC3D,UAAU,EACV,MAAM,CAAC,QAAQ,CAChB,CAAC;IACF,MAAM,qBAAqB,GAAG,WAAW,CAAC,aAAa,CAAC,IAAI,CAC1D,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,WAAW,CAAC,QAAQ,KAAK,sBAAsB,CAAC,QAAQ;QAC/D,MAAM,CAAC,WAAW,CAAC,QAAQ,KAAK,sBAAsB,CAAC,QAAQ,CAClE,CAAC;IAEF,MAAM,yBAAyB,GAAG,CAChC,QAAgB,EACmB,EAAE;QACrC,IACE,CAAC,WAAW,CAAC,eAAe;YAC5B,CAAC,CAAC,WAAW,CAAC,eAAe,YAAY,kBAAkB,CAAC,EAC5D,CAAC;YACD,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO,WAAW,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC9D,CAAC,CAAC;IAEF,MAAM,8BAA8B,GAAG,CACrC,gBAAkC,EACC,EAAE;QACrC,MAAM,QAAQ,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;QACrC,MAAM,QAAQ,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;QAErC,IACE,CAAC,WAAW,CAAC,eAAe;YAC5B,CAAC,CAAC,WAAW,CAAC,eAAe,YAAY,kBAAkB,CAAC,EAC5D,CAAC;YACD,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,IAAI,MAAM,CAAC,
|
1
|
+
{"version":3,"file":"QueryBuilderTDSSimpleGridResult.js","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSSimpleGridResult.tsx"],"names":[],"mappings":";AAAA;;;;;;;;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EAAE,IAAI,EAAE,CAAC,CAAC;gBAC3C,CAAC,EACD,wBAAwB,EAAE,IAAI,EAC9B,mBAAmB,EAAE,KAAK,EAC1B,UAAU,EAAE,OAAO,GACnB,GACE,GACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -13,9 +13,8 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
/// <reference types="lodash" resolution-mode="require"/>
|
17
16
|
import { type TooltipPlacement } from '@finos/legend-art';
|
18
|
-
import { type Type, type ValueSpecification, type PureModel,
|
17
|
+
import { type Type, type ValueSpecification, type PureModel, type ObserverContext, VariableExpression } from '@finos/legend-graph';
|
19
18
|
import { type DebouncedFunc, type GeneratorFn } from '@finos/legend-shared';
|
20
19
|
import React from 'react';
|
21
20
|
type TypeCheckOption = {
|
@@ -53,13 +52,29 @@ interface BasicValueSpecificationEditorSelectorConfig {
|
|
53
52
|
export declare const BasicValueSpecificationEditor: React.ForwardRefExoticComponent<{
|
54
53
|
valueSpecification: ValueSpecification;
|
55
54
|
graph: PureModel;
|
56
|
-
|
55
|
+
observerContext: ObserverContext;
|
57
56
|
typeCheckOption: TypeCheckOption;
|
58
57
|
className?: string | undefined;
|
59
58
|
setValueSpecification: (val: ValueSpecification) => void;
|
60
59
|
resetValue: () => void;
|
61
|
-
isConstant?: boolean;
|
60
|
+
isConstant?: boolean | undefined;
|
62
61
|
selectorConfig?: BasicValueSpecificationEditorSelectorConfig | undefined;
|
62
|
+
handleBlur?: (() => void) | undefined;
|
63
|
+
handleKeyDown?: ((event: React.KeyboardEvent<HTMLInputElement>) => void) | undefined;
|
64
|
+
displayDateEditorAsEditableValue?: boolean | undefined;
|
63
65
|
} & React.RefAttributes<HTMLInputElement>>;
|
66
|
+
export declare const EditableBasicValueSpecificationEditor: ((props: {
|
67
|
+
valueSpecification: ValueSpecification;
|
68
|
+
setValueSpecification: (valueSpec: ValueSpecification) => void;
|
69
|
+
graph: PureModel;
|
70
|
+
observerContext: ObserverContext;
|
71
|
+
typeCheckOption: TypeCheckOption;
|
72
|
+
resetValue: () => void;
|
73
|
+
selectorConfig?: BasicValueSpecificationEditorSelectorConfig | undefined;
|
74
|
+
isConstant?: boolean;
|
75
|
+
initializeAsEditable?: boolean;
|
76
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
77
|
+
displayName: string;
|
78
|
+
};
|
64
79
|
export {};
|
65
80
|
//# sourceMappingURL=BasicValueSpecificationEditor.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BasicValueSpecificationEditor.d.ts","sourceRoot":"","sources":["../../../src/components/shared/BasicValueSpecificationEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
1
|
+
{"version":3,"file":"BasicValueSpecificationEditor.d.ts","sourceRoot":"","sources":["../../../src/components/shared/BasicValueSpecificationEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EACL,KAAK,gBAAgB,EAiBtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,eAAe,EAMpB,kBAAkB,EAWnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,WAAW,EASjB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAMN,MAAM,OAAO,CAAC;AAkBf,KAAK,eAAe,GAAG;IACrB,YAAY,EAAE,IAAI,CAAC;IACnB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC;IACzC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,SAAS,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CAC1C,CAkDA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x as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
16
16
|
*/
|
17
17
|
import { DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH, useApplicationStore, } from '@finos/legend-application';
|
18
18
|
import { Tooltip, DollarIcon, clsx, InfoCircleIcon, RefreshIcon, CheckSquareIcon, SquareIcon, CustomSelectorInput, SaveIcon, PencilIcon, DragPreviewLayer, CalculateIcon, InputWithInlineValidation, } from '@finos/legend-art';
|
19
|
-
import { PrimitiveInstanceValue, CollectionInstanceValue, EnumValueInstanceValue, INTERNAL__PropagatedValue, SimpleFunctionExpression, VariableExpression, EnumValueExplicitReference, PrimitiveType, PRIMITIVE_TYPE, GenericTypeExplicitReference, GenericType, Enumeration, getMultiplicityDescription, matchFunctionName, isSubType, } from '@finos/legend-graph';
|
19
|
+
import { PrimitiveInstanceValue, CollectionInstanceValue, EnumValueInstanceValue, INTERNAL__PropagatedValue, SimpleFunctionExpression, VariableExpression, EnumValueExplicitReference, PrimitiveType, PRIMITIVE_TYPE, GenericTypeExplicitReference, GenericType, Enumeration, getMultiplicityDescription, matchFunctionName, isSubType, InstanceValue, } from '@finos/legend-graph';
|
20
20
|
import { guaranteeNonNullable, isNonNullable, guaranteeIsNumber, csvStringify, guaranteeType, isNonEmptyString, parseCSVString, uniq, } from '@finos/legend-shared';
|
21
21
|
import { flowResult } from 'mobx';
|
22
22
|
import { observer } from 'mobx-react-lite';
|
@@ -51,12 +51,12 @@ const VariableExpressionParameterEditor = observer((props) => {
|
|
51
51
|
}), children: [_jsx("div", { className: "value-spec-editor__variable__icon", children: isConstant ? _jsx("div", { className: "icon", children: "C" }) : _jsx(DollarIcon, {}) }), _jsxs("div", { className: "value-spec-editor__variable__label", children: [_jsx("div", { className: "value-spec-editor__variable__text", children: varName }), _jsx(VariableInfoTooltip, { variable: valueSpecification, children: _jsx("div", { className: "value-spec-editor__variable__info", children: _jsx(InfoCircleIcon, {}) }) }), _jsx("button", { className: "value-spec-editor__variable__reset-btn", name: "Reset", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] })] })] }));
|
52
52
|
});
|
53
53
|
const StringPrimitiveInstanceValueEditor = observer(forwardRef(function StringPrimitiveInstanceValueEditor(props, ref) {
|
54
|
-
const { valueSpecification, className, resetValue, setValueSpecification, selectorConfig,
|
54
|
+
const { valueSpecification, className, resetValue, setValueSpecification, selectorConfig, observerContext, handleBlur, handleKeyDown, } = props;
|
55
55
|
const useSelector = Boolean(selectorConfig);
|
56
56
|
const applicationStore = useApplicationStore();
|
57
57
|
const value = valueSpecification.values[0];
|
58
58
|
const updateValueSpec = (val) => {
|
59
|
-
instanceValue_setValue(valueSpecification, val, 0,
|
59
|
+
instanceValue_setValue(valueSpecification, val, 0, observerContext);
|
60
60
|
setValueSpecification(valueSpecification);
|
61
61
|
};
|
62
62
|
const changeInputValue = (event) => {
|
@@ -91,18 +91,26 @@ const StringPrimitiveInstanceValueEditor = observer(forwardRef(function StringPr
|
|
91
91
|
}))
|
92
92
|
: undefined;
|
93
93
|
const noOptionsMessage = selectorConfig?.values === undefined ? () => null : undefined;
|
94
|
-
|
94
|
+
const resetButtonName = `reset-${valueSpecification.hashCode}`;
|
95
|
+
const inputName = `input-${valueSpecification.hashCode}`;
|
96
|
+
const onBlur = (event) => {
|
97
|
+
if (event.relatedTarget?.name !== resetButtonName &&
|
98
|
+
event.relatedTarget?.name !== inputName) {
|
99
|
+
handleBlur?.();
|
100
|
+
}
|
101
|
+
};
|
102
|
+
return (_jsxs("div", { className: clsx('value-spec-editor', className), onBlur: onBlur, children: [useSelector ? (_jsx(CustomSelectorInput, { className: "value-spec-editor__enum-selector", options: queryOptions, onChange: changeValue, value: selectedValue.label === '' ? '' : selectedValue, inputValue: value ?? '', onInputChange: handleInputChange, darkMode: !applicationStore.layoutService
|
95
103
|
.TEMPORARY__isLightColorThemeEnabled, isLoading: isLoading, allowCreateWhileLoading: true, noOptionsMessage: noOptionsMessage, components: {
|
96
104
|
DropdownIndicator: null,
|
97
|
-
}, hasError: !isValidInstanceValue(valueSpecification), placeholder: value === '' ? '(empty)' : undefined })) : (_jsx(InputWithInlineValidation, { className: "panel__content__form__section__input value-spec-editor__input", spellCheck: false, value: value ?? '', placeholder: value === '' ? '(empty)' : undefined, onChange: changeInputValue, ref: ref, error: !isValidInstanceValue(valueSpecification)
|
105
|
+
}, hasError: !isValidInstanceValue(valueSpecification), placeholder: value === '' ? '(empty)' : undefined, ref: ref, onKeyDown: handleKeyDown, inputName: inputName })) : (_jsx(InputWithInlineValidation, { className: "panel__content__form__section__input value-spec-editor__input", spellCheck: false, value: value ?? '', placeholder: value === '' ? '(empty)' : undefined, onChange: changeInputValue, ref: ref, error: !isValidInstanceValue(valueSpecification)
|
98
106
|
? 'Invalid String value'
|
99
|
-
: undefined })), _jsx("button", { className: "value-spec-editor__reset-btn", name:
|
107
|
+
: undefined, onKeyDown: handleKeyDown, name: inputName })), _jsx("button", { className: "value-spec-editor__reset-btn", name: resetButtonName, title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }));
|
100
108
|
}));
|
101
109
|
const BooleanPrimitiveInstanceValueEditor = observer((props) => {
|
102
|
-
const { valueSpecification, className, resetValue, setValueSpecification,
|
110
|
+
const { valueSpecification, className, resetValue, setValueSpecification, observerContext, } = props;
|
103
111
|
const value = valueSpecification.values[0];
|
104
112
|
const toggleValue = () => {
|
105
|
-
instanceValue_setValue(valueSpecification, !value, 0,
|
113
|
+
instanceValue_setValue(valueSpecification, !value, 0, observerContext);
|
106
114
|
setValueSpecification(valueSpecification);
|
107
115
|
};
|
108
116
|
return (_jsxs("div", { className: clsx('value-spec-editor', className), children: [_jsx("button", { className: clsx('value-spec-editor__toggler__btn', {
|
@@ -110,7 +118,7 @@ const BooleanPrimitiveInstanceValueEditor = observer((props) => {
|
|
110
118
|
}), onClick: toggleValue, children: value ? _jsx(CheckSquareIcon, {}) : _jsx(SquareIcon, {}) }), _jsx("button", { className: "value-spec-editor__reset-btn", name: "Reset", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }));
|
111
119
|
});
|
112
120
|
const NumberPrimitiveInstanceValueEditor = observer(forwardRef(function NumberPrimitiveInstanceValueEditor(props, ref) {
|
113
|
-
const { valueSpecification, isInteger, className, resetValue, setValueSpecification,
|
121
|
+
const { valueSpecification, isInteger, className, resetValue, setValueSpecification, observerContext, handleBlur, handleKeyDown, } = props;
|
114
122
|
const [value, setValue] = useState(valueSpecification.values[0] === null
|
115
123
|
? ''
|
116
124
|
: valueSpecification.values[0].toString());
|
@@ -128,7 +136,7 @@ const NumberPrimitiveInstanceValueEditor = observer(forwardRef(function NumberPr
|
|
128
136
|
: Number(val);
|
129
137
|
if (!isNaN(parsedValue) &&
|
130
138
|
parsedValue !== valueSpecification.values[0]) {
|
131
|
-
instanceValue_setValue(valueSpecification, parsedValue, 0,
|
139
|
+
instanceValue_setValue(valueSpecification, parsedValue, 0, observerContext);
|
132
140
|
setValueSpecification(valueSpecification);
|
133
141
|
}
|
134
142
|
}
|
@@ -188,13 +196,26 @@ const NumberPrimitiveInstanceValueEditor = observer(forwardRef(function NumberPr
|
|
188
196
|
setValue(valueFromValueSpec);
|
189
197
|
}
|
190
198
|
}, [numericValue, valueSpecification]);
|
191
|
-
|
199
|
+
const resetButtonName = `reset-${valueSpecification.hashCode}`;
|
200
|
+
const inputName = `input-${valueSpecification.hashCode}`;
|
201
|
+
const calculateButtonName = `calculate-${valueSpecification.hashCode}`;
|
202
|
+
const onBlur = (event) => {
|
203
|
+
if (event.relatedTarget?.name !== resetButtonName &&
|
204
|
+
event.relatedTarget?.name !== inputName &&
|
205
|
+
event.relatedTarget?.name !== calculateButtonName) {
|
206
|
+
handleBlur?.();
|
207
|
+
}
|
208
|
+
};
|
209
|
+
return (_jsxs("div", { className: clsx('value-spec-editor', className), onBlur: onBlur, children: [_jsxs("div", { className: "value-spec-editor__number__input-container", children: [_jsx("input", { ref: inputRef, className: clsx('panel__content__form__section__input', 'value-spec-editor__input', 'value-spec-editor__number__input', {
|
192
210
|
'value-spec-editor__number__input--error': !isValidInstanceValue(valueSpecification),
|
193
211
|
}), spellCheck: false, type: "text" // NOTE: we leave this as text so that we can support expression evaluation
|
194
|
-
, inputMode: "numeric", value: value, onChange: handleInputChange, onBlur: calculateExpression, onKeyDown:
|
212
|
+
, inputMode: "numeric", value: value, onChange: handleInputChange, onBlur: calculateExpression, onKeyDown: (event) => {
|
213
|
+
onKeyDown(event);
|
214
|
+
handleKeyDown?.(event);
|
215
|
+
}, name: inputName }), _jsx("div", { className: "value-spec-editor__number__actions", children: _jsx("button", { className: "value-spec-editor__number__action", title: "Evaluate Expression (Enter)", name: calculateButtonName, onClick: calculateExpression, children: _jsx(CalculateIcon, {}) }) })] }), _jsx("button", { className: "value-spec-editor__reset-btn", name: resetButtonName, title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }));
|
195
216
|
}));
|
196
217
|
const EnumValueInstanceValueEditor = observer((props) => {
|
197
|
-
const { valueSpecification, className, resetValue, setValueSpecification,
|
218
|
+
const { valueSpecification, className, resetValue, setValueSpecification, observerContext, handleBlur, } = props;
|
198
219
|
const applicationStore = useApplicationStore();
|
199
220
|
const enumType = guaranteeType(valueSpecification.genericType?.value.rawType, Enumeration);
|
200
221
|
const enumValue = valueSpecification.values[0] === undefined
|
@@ -204,11 +225,20 @@ const EnumValueInstanceValueEditor = observer((props) => {
|
|
204
225
|
label: value.name,
|
205
226
|
value: value,
|
206
227
|
}));
|
228
|
+
const resetButtonName = `reset-${valueSpecification.hashCode}`;
|
229
|
+
const inputName = `input-${valueSpecification.hashCode}`;
|
207
230
|
const changeValue = (val) => {
|
208
|
-
instanceValue_setValue(valueSpecification, EnumValueExplicitReference.create(val.value), 0,
|
231
|
+
instanceValue_setValue(valueSpecification, EnumValueExplicitReference.create(val.value), 0, observerContext);
|
209
232
|
setValueSpecification(valueSpecification);
|
233
|
+
handleBlur?.();
|
210
234
|
};
|
211
|
-
|
235
|
+
const onBlur = (event) => {
|
236
|
+
if (event.relatedTarget?.name !== resetButtonName &&
|
237
|
+
event.relatedTarget?.name !== inputName) {
|
238
|
+
handleBlur?.();
|
239
|
+
}
|
240
|
+
};
|
241
|
+
return (_jsxs("div", { className: clsx('value-spec-editor', className), onBlur: onBlur, children: [_jsx(CustomSelectorInput, { className: "value-spec-editor__enum-selector", options: options, onChange: changeValue, value: enumValue ? { value: enumValue, label: enumValue.name } : null, darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, hasError: !isValidInstanceValue(valueSpecification), placeholder: "Select value", autoFocus: true, inputName: inputName }), _jsx("button", { className: "value-spec-editor__reset-btn", name: resetButtonName, title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }));
|
212
242
|
});
|
213
243
|
const stringifyValue = (values) => {
|
214
244
|
if (values.length === 0) {
|
@@ -250,7 +280,7 @@ const PrimitiveCollectionInstanceValueEditor = observer((props) => {
|
|
250
280
|
const [inputValue, setInputValue] = useState('');
|
251
281
|
const [inputValueIsError, setInputValueIsError] = useState(false);
|
252
282
|
const [selectedOptions, setSelectedOptions] = useState(valueSpecification.values
|
253
|
-
.map((valueSpec) => getValueSpecificationStringValue(valueSpec))
|
283
|
+
.map((valueSpec) => getValueSpecificationStringValue(valueSpec, applicationStore))
|
254
284
|
.filter(isNonEmptyString)
|
255
285
|
.map((value) => ({
|
256
286
|
label: value,
|
@@ -276,7 +306,7 @@ const PrimitiveCollectionInstanceValueEditor = observer((props) => {
|
|
276
306
|
const noMatchMessage = isTypeaheadSearchEnabled && isLoading ? 'Loading...' : undefined;
|
277
307
|
// helper functions
|
278
308
|
const buildOptionForValueSpec = (value) => {
|
279
|
-
const stringValue = guaranteeNonNullable(getValueSpecificationStringValue(value));
|
309
|
+
const stringValue = guaranteeNonNullable(getValueSpecificationStringValue(value, applicationStore));
|
280
310
|
return {
|
281
311
|
label: stringValue,
|
282
312
|
value: stringValue,
|
@@ -294,8 +324,9 @@ const PrimitiveCollectionInstanceValueEditor = observer((props) => {
|
|
294
324
|
if (trimmedInputValue.length) {
|
295
325
|
const newValueSpec = convertTextToPrimitiveInstanceValue(expectedType, trimmedInputValue, observerContext);
|
296
326
|
if (newValueSpec === null ||
|
297
|
-
getValueSpecificationStringValue(newValueSpec) ===
|
298
|
-
|
327
|
+
getValueSpecificationStringValue(newValueSpec, applicationStore) ===
|
328
|
+
undefined ||
|
329
|
+
isValueAlreadySelected(guaranteeNonNullable(getValueSpecificationStringValue(newValueSpec, applicationStore)))) {
|
299
330
|
return null;
|
300
331
|
}
|
301
332
|
return newValueSpec;
|
@@ -369,7 +400,7 @@ const PrimitiveCollectionInstanceValueEditor = observer((props) => {
|
|
369
400
|
.map((value) => {
|
370
401
|
const newValueSpec = convertTextToPrimitiveInstanceValue(expectedType, value, observerContext);
|
371
402
|
return newValueSpec
|
372
|
-
? getValueSpecificationStringValue(newValueSpec)
|
403
|
+
? getValueSpecificationStringValue(newValueSpec, applicationStore)
|
373
404
|
: null;
|
374
405
|
})
|
375
406
|
.filter(isNonNullable)).filter((value) => !isValueAlreadySelected(value));
|
@@ -424,7 +455,7 @@ const EnumCollectionInstanceValueEditor = observer((props) => {
|
|
424
455
|
});
|
425
456
|
const COLLECTION_PREVIEW_CHAR_LIMIT = 50;
|
426
457
|
const CollectionValueInstanceValueEditor = observer((props) => {
|
427
|
-
const { valueSpecification, expectedType, className, resetValue, setValueSpecification, selectorConfig,
|
458
|
+
const { valueSpecification, expectedType, className, resetValue, setValueSpecification, selectorConfig, observerContext, } = props;
|
428
459
|
const [editable, setEditable] = useState(false);
|
429
460
|
const valueText = stringifyValue(valueSpecification.values);
|
430
461
|
const previewText = `List(${valueSpecification.values.length === 0
|
@@ -442,7 +473,7 @@ const CollectionValueInstanceValueEditor = observer((props) => {
|
|
442
473
|
}
|
443
474
|
};
|
444
475
|
if (editable) {
|
445
|
-
return (_jsx(_Fragment, { children: _jsxs("div", { className: clsx('value-spec-editor', className), children: [expectedType instanceof Enumeration ? (_jsx(EnumCollectionInstanceValueEditor, { valueSpecification: valueSpecification, observerContext:
|
476
|
+
return (_jsx(_Fragment, { children: _jsxs("div", { className: clsx('value-spec-editor', className), children: [expectedType instanceof Enumeration ? (_jsx(EnumCollectionInstanceValueEditor, { valueSpecification: valueSpecification, observerContext: observerContext, saveEdit: saveEdit })) : (_jsx(PrimitiveCollectionInstanceValueEditor, { valueSpecification: valueSpecification, expectedType: expectedType, saveEdit: saveEdit, selectorConfig: selectorConfig, observerContext: observerContext })), _jsx("button", { className: "value-spec-editor__reset-btn", name: "Reset", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }) }));
|
446
477
|
}
|
447
478
|
return (_jsxs("div", { className: clsx('value-spec-editor', className), onClick: enableEdit, title: "Click to edit", children: [_jsx("div", { className: clsx('value-spec-editor__list-editor__preview', {
|
448
479
|
'value-spec-editor__list-editor__preview--error': !isValidInstanceValue(valueSpecification),
|
@@ -450,9 +481,9 @@ const CollectionValueInstanceValueEditor = observer((props) => {
|
|
450
481
|
});
|
451
482
|
const UnsupportedValueSpecificationEditor = () => (_jsx("div", { className: "value-spec-editor--unsupported", children: "unsupported" }));
|
452
483
|
const DateInstanceValueEditor = observer((props) => {
|
453
|
-
const { valueSpecification, setValueSpecification, graph,
|
454
|
-
return (_jsxs("div", { className: "value-spec-editor", children: [_jsx(CustomDatePicker, { valueSpecification: valueSpecification, graph: graph, observerContext:
|
455
|
-
!isValidInstanceValue(valueSpecification) }), _jsx("button", { className: "value-spec-editor__reset-btn", name: "Reset", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }));
|
484
|
+
const { valueSpecification, setValueSpecification, graph, observerContext, typeCheckOption, resetValue, handleBlur, displayAsEditableValue, } = props;
|
485
|
+
return (_jsxs("div", { className: "value-spec-editor", children: [_jsx(CustomDatePicker, { valueSpecification: valueSpecification, graph: graph, observerContext: observerContext, typeCheckOption: typeCheckOption, setValueSpecification: setValueSpecification, hasError: valueSpecification instanceof PrimitiveInstanceValue &&
|
486
|
+
!isValidInstanceValue(valueSpecification), handleBlur: handleBlur, displayAsEditableValue: displayAsEditableValue }), !displayAsEditableValue && (_jsx("button", { className: "value-spec-editor__reset-btn", name: "Reset", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) }))] }));
|
456
487
|
});
|
457
488
|
/**
|
458
489
|
* TODO we should pass in the props `resetValueSpecification`. Reset
|
@@ -461,51 +492,51 @@ const DateInstanceValueEditor = observer((props) => {
|
|
461
492
|
* See https://github.com/finos/legend-studio/pull/1021
|
462
493
|
*/
|
463
494
|
export const BasicValueSpecificationEditor = forwardRef(function BasicValueSpecificationEditor(props, ref) {
|
464
|
-
const { className, valueSpecification, graph,
|
495
|
+
const { className, valueSpecification, graph, observerContext, typeCheckOption, setValueSpecification, resetValue, selectorConfig, isConstant, handleBlur, handleKeyDown, displayDateEditorAsEditableValue, } = props;
|
465
496
|
if (valueSpecification instanceof PrimitiveInstanceValue) {
|
466
497
|
const _type = valueSpecification.genericType.value.rawType;
|
467
498
|
switch (_type.path) {
|
468
499
|
case PRIMITIVE_TYPE.STRING:
|
469
|
-
return (_jsx(StringPrimitiveInstanceValueEditor, { valueSpecification: valueSpecification, setValueSpecification: setValueSpecification, className: className, resetValue: resetValue, selectorConfig: selectorConfig,
|
500
|
+
return (_jsx(StringPrimitiveInstanceValueEditor, { valueSpecification: valueSpecification, setValueSpecification: setValueSpecification, className: className, resetValue: resetValue, selectorConfig: selectorConfig, observerContext: observerContext, ref: ref, handleBlur: handleBlur, handleKeyDown: handleKeyDown }));
|
470
501
|
case PRIMITIVE_TYPE.BOOLEAN:
|
471
|
-
return (_jsx(BooleanPrimitiveInstanceValueEditor, { valueSpecification: valueSpecification, setValueSpecification: setValueSpecification, className: className, resetValue: resetValue,
|
502
|
+
return (_jsx(BooleanPrimitiveInstanceValueEditor, { valueSpecification: valueSpecification, setValueSpecification: setValueSpecification, className: className, resetValue: resetValue, observerContext: observerContext }));
|
472
503
|
case PRIMITIVE_TYPE.NUMBER:
|
473
504
|
case PRIMITIVE_TYPE.FLOAT:
|
474
505
|
case PRIMITIVE_TYPE.DECIMAL:
|
475
506
|
case PRIMITIVE_TYPE.BINARY:
|
476
507
|
case PRIMITIVE_TYPE.BYTE:
|
477
508
|
case PRIMITIVE_TYPE.INTEGER:
|
478
|
-
return (_jsx(NumberPrimitiveInstanceValueEditor, { valueSpecification: valueSpecification, isInteger: _type.path === PRIMITIVE_TYPE.INTEGER, setValueSpecification: setValueSpecification, className: className, resetValue: resetValue,
|
509
|
+
return (_jsx(NumberPrimitiveInstanceValueEditor, { valueSpecification: valueSpecification, isInteger: _type.path === PRIMITIVE_TYPE.INTEGER, setValueSpecification: setValueSpecification, className: className, resetValue: resetValue, observerContext: observerContext, ref: ref, handleBlur: handleBlur, handleKeyDown: handleKeyDown }));
|
479
510
|
case PRIMITIVE_TYPE.DATE:
|
480
511
|
case PRIMITIVE_TYPE.STRICTDATE:
|
481
512
|
case PRIMITIVE_TYPE.DATETIME:
|
482
513
|
case PRIMITIVE_TYPE.LATESTDATE:
|
483
|
-
return (_jsx(DateInstanceValueEditor, { valueSpecification: valueSpecification, graph: graph,
|
514
|
+
return (_jsx(DateInstanceValueEditor, { valueSpecification: valueSpecification, graph: graph, observerContext: observerContext, typeCheckOption: typeCheckOption, className: className, setValueSpecification: setValueSpecification, resetValue: resetValue, handleBlur: handleBlur, displayAsEditableValue: displayDateEditorAsEditableValue }));
|
484
515
|
default:
|
485
516
|
return _jsx(UnsupportedValueSpecificationEditor, {});
|
486
517
|
}
|
487
518
|
}
|
488
519
|
else if (valueSpecification instanceof EnumValueInstanceValue) {
|
489
|
-
return (_jsx(EnumValueInstanceValueEditor, { valueSpecification: valueSpecification, className: className, resetValue: resetValue, setValueSpecification: setValueSpecification,
|
520
|
+
return (_jsx(EnumValueInstanceValueEditor, { valueSpecification: valueSpecification, className: className, resetValue: resetValue, setValueSpecification: setValueSpecification, observerContext: observerContext, handleBlur: handleBlur }));
|
490
521
|
}
|
491
522
|
else if (valueSpecification instanceof CollectionInstanceValue &&
|
492
523
|
valueSpecification.genericType) {
|
493
524
|
// NOTE: since when we fill in the arguments, `[]` (or `nullish` value in Pure)
|
494
525
|
// is used for parameters we don't handle, we should not attempt to support empty collection
|
495
526
|
// without generic type here as that is equivalent to `[]`
|
496
|
-
return (_jsx(CollectionValueInstanceValueEditor, { valueSpecification: valueSpecification, graph: graph, expectedType: typeCheckOption.expectedType, className: className, resetValue: resetValue, setValueSpecification: setValueSpecification, selectorConfig: selectorConfig,
|
527
|
+
return (_jsx(CollectionValueInstanceValueEditor, { valueSpecification: valueSpecification, graph: graph, expectedType: typeCheckOption.expectedType, className: className, resetValue: resetValue, setValueSpecification: setValueSpecification, selectorConfig: selectorConfig, observerContext: observerContext }));
|
497
528
|
}
|
498
529
|
// property expression
|
499
530
|
else if (valueSpecification instanceof VariableExpression) {
|
500
531
|
return (_jsx(VariableExpressionParameterEditor, { valueSpecification: valueSpecification, className: className, resetValue: resetValue, isConstant: Boolean(isConstant) }));
|
501
532
|
}
|
502
533
|
else if (valueSpecification instanceof INTERNAL__PropagatedValue) {
|
503
|
-
return (_jsx(BasicValueSpecificationEditor, { valueSpecification: valueSpecification.getValue(), graph: graph,
|
534
|
+
return (_jsx(BasicValueSpecificationEditor, { valueSpecification: valueSpecification.getValue(), graph: graph, observerContext: observerContext, typeCheckOption: typeCheckOption, setValueSpecification: setValueSpecification, resetValue: resetValue, handleBlur: handleBlur, handleKeyDown: handleKeyDown, displayDateEditorAsEditableValue: displayDateEditorAsEditableValue }));
|
504
535
|
}
|
505
536
|
else if (valueSpecification instanceof SimpleFunctionExpression) {
|
506
537
|
if (isSubType(typeCheckOption.expectedType, PrimitiveType.DATE)) {
|
507
538
|
if (isUsedDateFunctionSupportedInFormMode(valueSpecification)) {
|
508
|
-
return (_jsx(DateInstanceValueEditor, { valueSpecification: valueSpecification, graph: graph,
|
539
|
+
return (_jsx(DateInstanceValueEditor, { valueSpecification: valueSpecification, graph: graph, observerContext: observerContext, typeCheckOption: typeCheckOption, className: className, setValueSpecification: setValueSpecification, resetValue: resetValue, handleBlur: handleBlur, displayAsEditableValue: displayDateEditorAsEditableValue }));
|
509
540
|
}
|
510
541
|
else {
|
511
542
|
return _jsx(UnsupportedValueSpecificationEditor, {});
|
@@ -516,14 +547,44 @@ export const BasicValueSpecificationEditor = forwardRef(function BasicValueSpeci
|
|
516
547
|
// an expression value to simple value, not just handling minus() function only
|
517
548
|
isSubType(typeCheckOption.expectedType, PrimitiveType.NUMBER) &&
|
518
549
|
matchFunctionName(valueSpecification.functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.MINUS)) {
|
519
|
-
const simplifiedValue = simplifyValueExpression(valueSpecification,
|
550
|
+
const simplifiedValue = simplifyValueExpression(valueSpecification, observerContext);
|
520
551
|
if (simplifiedValue instanceof PrimitiveInstanceValue &&
|
521
552
|
isSubType(simplifiedValue.genericType.value.rawType, PrimitiveType.NUMBER)) {
|
522
553
|
return (_jsx(NumberPrimitiveInstanceValueEditor, { valueSpecification: simplifiedValue, isInteger: simplifiedValue.genericType.value.rawType ===
|
523
|
-
PrimitiveType.INTEGER, setValueSpecification: setValueSpecification, className: className, resetValue: resetValue,
|
554
|
+
PrimitiveType.INTEGER, setValueSpecification: setValueSpecification, className: className, resetValue: resetValue, observerContext: observerContext, ref: ref, handleBlur: handleBlur, handleKeyDown: handleKeyDown }));
|
524
555
|
}
|
525
556
|
}
|
526
557
|
}
|
527
558
|
return _jsx(UnsupportedValueSpecificationEditor, {});
|
528
559
|
});
|
560
|
+
export const EditableBasicValueSpecificationEditor = observer((props) => {
|
561
|
+
const { valueSpecification, setValueSpecification, graph, observerContext, typeCheckOption, resetValue, selectorConfig, isConstant, initializeAsEditable, } = props;
|
562
|
+
const applicationStore = useApplicationStore();
|
563
|
+
const [isEditingValue, setIsEditingValue] = useState(initializeAsEditable ?? false);
|
564
|
+
const inputRef = useRef(null);
|
565
|
+
useEffect(() => {
|
566
|
+
if (isEditingValue) {
|
567
|
+
inputRef.current?.focus();
|
568
|
+
}
|
569
|
+
}, [isEditingValue, inputRef]);
|
570
|
+
const editableDisplayValueSupported = (valueSpecification instanceof PrimitiveInstanceValue &&
|
571
|
+
!isSubType(valueSpecification.genericType.value.rawType, PrimitiveType.DATE) &&
|
572
|
+
valueSpecification.genericType.value.rawType !==
|
573
|
+
PrimitiveType.BOOLEAN) ||
|
574
|
+
valueSpecification instanceof EnumValueInstanceValue;
|
575
|
+
const shouldRenderEditor = isEditingValue || !editableDisplayValueSupported;
|
576
|
+
const valueSpecStringValue = getValueSpecificationStringValue(valueSpecification, applicationStore, {
|
577
|
+
omitEnumOwnerName: true,
|
578
|
+
});
|
579
|
+
return shouldRenderEditor ? (_jsx(BasicValueSpecificationEditor, { valueSpecification: valueSpecification, setValueSpecification: setValueSpecification, graph: graph, observerContext: observerContext, typeCheckOption: typeCheckOption, resetValue: resetValue, selectorConfig: selectorConfig, isConstant: isConstant, ref: inputRef, handleBlur: () => setIsEditingValue(false), handleKeyDown: (event) => {
|
580
|
+
if (event.key === 'Enter') {
|
581
|
+
setIsEditingValue(false);
|
582
|
+
}
|
583
|
+
}, displayDateEditorAsEditableValue: true })) : (_jsx("div", { className: "value-spec-editor__editable__display", children: _jsx("span", { className: clsx('value-spec-editor__editable__display--content editable-value', {
|
584
|
+
'value-spec-editor__editable__display--content--error': valueSpecification instanceof InstanceValue &&
|
585
|
+
!isValidInstanceValue(valueSpecification),
|
586
|
+
}), onClick: () => {
|
587
|
+
setIsEditingValue(true);
|
588
|
+
}, children: `"${valueSpecStringValue !== undefined ? valueSpecStringValue : ''}"` }) }));
|
589
|
+
});
|
529
590
|
//# sourceMappingURL=BasicValueSpecificationEditor.js.map
|