@finos/legend-query-builder 4.14.51 → 4.14.53

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. package/lib/components/QueryBuilder.d.ts.map +1 -1
  2. package/lib/components/QueryBuilder.js +1 -0
  3. package/lib/components/QueryBuilder.js.map +1 -1
  4. package/lib/components/QueryBuilderConstantExpressionPanel.js +1 -1
  5. package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
  6. package/lib/components/QueryBuilderParametersPanel.js +1 -1
  7. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  8. package/lib/components/QueryBuilderPropertyExpressionEditor.js +1 -1
  9. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  10. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  11. package/lib/components/QueryBuilderSideBar.js +1 -1
  12. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  13. package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts +0 -1
  14. package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts.map +1 -1
  15. package/lib/components/ServiceQuerySetupUtils.d.ts.map +1 -1
  16. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts +1 -1
  17. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
  18. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +4 -2
  19. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
  20. package/lib/components/execution-plan/AllocationExecutionNodeViewer.d.ts +0 -1
  21. package/lib/components/execution-plan/AllocationExecutionNodeViewer.d.ts.map +1 -1
  22. package/lib/components/execution-plan/ConstantExecutionNodeViewer.d.ts +0 -1
  23. package/lib/components/execution-plan/ConstantExecutionNodeViewer.d.ts.map +1 -1
  24. package/lib/components/execution-plan/DataTypeResultTypeViewer.d.ts +0 -1
  25. package/lib/components/execution-plan/DataTypeResultTypeViewer.d.ts.map +1 -1
  26. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts +0 -1
  27. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts.map +1 -1
  28. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js +1 -1
  29. package/lib/components/execution-plan/ImplementationViewer.d.ts +0 -1
  30. package/lib/components/execution-plan/ImplementationViewer.d.ts.map +1 -1
  31. package/lib/components/execution-plan/PartialClassResultViewer.d.ts +0 -1
  32. package/lib/components/execution-plan/PartialClassResultViewer.d.ts.map +1 -1
  33. package/lib/components/execution-plan/PartialClassResultViewer.js +1 -1
  34. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts +0 -1
  35. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -1
  36. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js +1 -1
  37. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +0 -1
  38. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -1
  39. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js +1 -1
  40. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +0 -1
  41. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -1
  42. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js +1 -1
  43. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.d.ts +0 -1
  44. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.d.ts.map +1 -1
  45. package/lib/components/execution-plan/ResultTypeViewer.d.ts +0 -1
  46. package/lib/components/execution-plan/ResultTypeViewer.d.ts.map +1 -1
  47. package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts +0 -1
  48. package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts.map +1 -1
  49. package/lib/components/execution-plan/SQLExecutionNodeViewer.js +1 -1
  50. package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts +0 -1
  51. package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts.map +1 -1
  52. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts +0 -1
  53. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts.map +1 -1
  54. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js +2 -2
  55. package/lib/components/execution-plan/TDSResultTypeViewer.d.ts +0 -1
  56. package/lib/components/execution-plan/TDSResultTypeViewer.d.ts.map +1 -1
  57. package/lib/components/execution-plan/TDSResultTypeViewer.js +1 -1
  58. package/lib/components/execution-plan/TempTableStrategyViewer.d.ts +0 -1
  59. package/lib/components/execution-plan/TempTableStrategyViewer.d.ts.map +1 -1
  60. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +0 -1
  61. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
  62. package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.d.ts +2 -0
  63. package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.d.ts.map +1 -1
  64. package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js +14 -7
  65. package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js.map +1 -1
  66. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +0 -1
  67. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
  68. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  69. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +1 -1
  70. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  71. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  72. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +36 -11
  73. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
  74. package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts +0 -1
  75. package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts.map +1 -1
  76. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  77. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +5 -2
  78. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  79. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  80. package/lib/components/filter/QueryBuilderFilterPanel.js +9 -4
  81. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  82. package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
  83. package/lib/components/result/QueryBuilderResultPanel.js +1 -1
  84. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  85. package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
  86. package/lib/components/result/tds/QueryBuilderTDSGridResult.js +10 -8
  87. package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
  88. package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts +0 -1
  89. package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts.map +1 -1
  90. package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
  91. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js +2 -2
  92. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js.map +1 -1
  93. package/lib/components/shared/BasicValueSpecificationEditor.d.ts +19 -4
  94. package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
  95. package/lib/components/shared/BasicValueSpecificationEditor.js +97 -36
  96. package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
  97. package/lib/components/shared/CustomDatePicker.d.ts +2 -1
  98. package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
  99. package/lib/components/shared/CustomDatePicker.js +8 -5
  100. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  101. package/lib/components/shared/LambdaParameterValuesEditor.js +1 -1
  102. package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
  103. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts +0 -1
  104. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +1 -1
  105. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts +0 -1
  106. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -1
  107. package/lib/components/shared/QueryBuilderRootClassInfoTooltip.d.ts +0 -1
  108. package/lib/components/shared/QueryBuilderRootClassInfoTooltip.d.ts.map +1 -1
  109. package/lib/components/shared/QueryBuilderVariableSelector.d.ts +3 -0
  110. package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
  111. package/lib/components/shared/QueryBuilderVariableSelector.js +3 -3
  112. package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
  113. package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
  114. package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
  115. package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
  116. package/lib/graph/QueryBuilderMetaModelConst.d.ts +1 -0
  117. package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -1
  118. package/lib/graph/QueryBuilderMetaModelConst.js +1 -0
  119. package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -1
  120. package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -1
  121. package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +1 -1
  122. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +1 -2
  123. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
  124. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +68 -8
  125. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
  126. package/lib/index.css +2 -2
  127. package/lib/index.css.map +1 -1
  128. package/lib/index.d.ts +1 -1
  129. package/lib/index.d.ts.map +1 -1
  130. package/lib/index.js +1 -1
  131. package/lib/index.js.map +1 -1
  132. package/lib/package.json +7 -7
  133. package/lib/stores/QueryBuilderState.d.ts +0 -1
  134. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  135. package/lib/stores/QueryBuilderState.js +1 -0
  136. package/lib/stores/QueryBuilderState.js.map +1 -1
  137. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
  138. package/lib/stores/QueryBuilderStateBuilder.js +5 -1
  139. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  140. package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
  141. package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts +1 -2
  142. package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts.map +1 -1
  143. package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.d.ts.map +1 -1
  144. package/lib/stores/execution-plan/ExecutionPlanState.d.ts.map +1 -1
  145. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +0 -1
  146. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
  147. package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +1 -1
  148. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -1
  149. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts.map +1 -1
  150. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +2 -0
  151. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  152. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +6 -0
  153. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  154. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts +11 -0
  155. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
  156. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +76 -20
  157. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
  158. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
  159. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +70 -34
  160. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
  161. package/lib/stores/filter/QueryBuilderFilterState.d.ts +2 -0
  162. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  163. package/lib/stores/filter/QueryBuilderFilterState.js +7 -0
  164. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  165. package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts +2 -2
  166. package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -1
  167. package/lib/stores/milestoning/QueryBuilderMilestoningState.js +15 -4
  168. package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
  169. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +5 -2
  170. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
  171. package/lib/stores/shared/ValueSpecificationEditorHelper.js +20 -9
  172. package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
  173. package/lib/stores/shared/ValueSpecificationModifierHelper.d.ts.map +1 -1
  174. package/lib/stores/workflows/ClassQueryBuilderState.d.ts.map +1 -1
  175. package/lib/stores/workflows/MappingQueryBuilderState.d.ts.map +1 -1
  176. package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
  177. package/package.json +15 -15
  178. package/src/components/QueryBuilder.tsx +1 -0
  179. package/src/components/QueryBuilderConstantExpressionPanel.tsx +1 -1
  180. package/src/components/QueryBuilderParametersPanel.tsx +1 -1
  181. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +1 -1
  182. package/src/components/QueryBuilderSideBar.tsx +1 -1
  183. package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +4 -1
  184. package/src/components/execution-plan/FunctionParametersValidationNodeViewer.tsx +1 -1
  185. package/src/components/execution-plan/PartialClassResultViewer.tsx +1 -1
  186. package/src/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.tsx +1 -1
  187. package/src/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +1 -1
  188. package/src/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +1 -1
  189. package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +1 -1
  190. package/src/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.tsx +2 -2
  191. package/src/components/execution-plan/TDSResultTypeViewer.tsx +1 -1
  192. package/src/components/explorer/QueryBuilderMilestoningParameterEditor.tsx +60 -22
  193. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +1 -1
  194. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +156 -60
  195. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +12 -2
  196. package/src/components/filter/QueryBuilderFilterPanel.tsx +18 -4
  197. package/src/components/result/QueryBuilderResultPanel.tsx +1 -0
  198. package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +12 -13
  199. package/src/components/result/tds/QueryBuilderTDSResultShared.tsx +1 -1
  200. package/src/components/result/tds/QueryBuilderTDSSimpleGridResult.tsx +2 -2
  201. package/src/components/shared/BasicValueSpecificationEditor.tsx +257 -55
  202. package/src/components/shared/CustomDatePicker.tsx +36 -11
  203. package/src/components/shared/LambdaParameterValuesEditor.tsx +1 -1
  204. package/src/components/shared/QueryBuilderVariableSelector.tsx +13 -4
  205. package/src/graph/QueryBuilderMetaModelConst.ts +1 -0
  206. package/src/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.ts +1 -1
  207. package/src/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +189 -18
  208. package/src/index.ts +1 -0
  209. package/src/stores/QueryBuilderState.ts +1 -0
  210. package/src/stores/QueryBuilderStateBuilder.ts +6 -1
  211. package/src/stores/QueryBuilderValueSpecificationHelper.ts +2 -2
  212. package/src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts +1 -1
  213. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +7 -0
  214. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +167 -43
  215. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +145 -69
  216. package/src/stores/filter/QueryBuilderFilterState.ts +8 -0
  217. package/src/stores/milestoning/QueryBuilderMilestoningState.ts +22 -9
  218. package/src/stores/shared/ValueSpecificationEditorHelper.ts +47 -7
  219. package/tsconfig.package.json +1 -1
@@ -16,7 +16,7 @@ import { jsx 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, obseverContext, } = props;
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, obseverContext);
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
- return (_jsxs("div", { className: clsx('value-spec-editor', className), 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
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: "Reset", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }));
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, obseverContext, } = props;
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, obseverContext);
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, obseverContext, } = props;
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, obseverContext);
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
- return (_jsxs("div", { className: clsx('value-spec-editor', className), 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', {
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: onKeyDown }), _jsx("div", { className: "value-spec-editor__number__actions", children: _jsx("button", { className: "value-spec-editor__number__action", title: "Evaluate Expression (Enter)", onClick: calculateExpression, children: _jsx(CalculateIcon, {}) }) })] }), _jsx("button", { className: "value-spec-editor__reset-btn", name: "Reset", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }));
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, obseverContext, } = props;
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, obseverContext);
231
+ instanceValue_setValue(valueSpecification, EnumValueExplicitReference.create(val.value), 0, observerContext);
209
232
  setValueSpecification(valueSpecification);
233
+ handleBlur?.();
210
234
  };
211
- return (_jsxs("div", { className: clsx('value-spec-editor', className), 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" }), _jsx("button", { className: "value-spec-editor__reset-btn", name: "Reset", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }));
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) === undefined ||
298
- isValueAlreadySelected(guaranteeNonNullable(getValueSpecificationStringValue(newValueSpec)))) {
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, obseverContext, } = props;
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: obseverContext, saveEdit: saveEdit })) : (_jsx(PrimitiveCollectionInstanceValueEditor, { valueSpecification: valueSpecification, expectedType: expectedType, saveEdit: saveEdit, selectorConfig: selectorConfig, observerContext: obseverContext })), _jsx("button", { className: "value-spec-editor__reset-btn", name: "Reset", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }) }));
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, obseverContext, typeCheckOption, resetValue, } = props;
454
- return (_jsxs("div", { className: "value-spec-editor", children: [_jsx(CustomDatePicker, { valueSpecification: valueSpecification, graph: graph, observerContext: obseverContext, typeCheckOption: typeCheckOption, setValueSpecification: setValueSpecification, hasError: valueSpecification instanceof PrimitiveInstanceValue &&
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, obseverContext, typeCheckOption, setValueSpecification, resetValue, selectorConfig, isConstant, } = props;
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, obseverContext: obseverContext, ref: ref }));
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, obseverContext: obseverContext }));
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, obseverContext: obseverContext, ref: ref }));
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, obseverContext: obseverContext, typeCheckOption: typeCheckOption, className: className, setValueSpecification: setValueSpecification, resetValue: resetValue }));
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, obseverContext: obseverContext }));
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, obseverContext: obseverContext }));
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, obseverContext: obseverContext, typeCheckOption: typeCheckOption, setValueSpecification: setValueSpecification, resetValue: resetValue }));
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, obseverContext: obseverContext, typeCheckOption: typeCheckOption, className: className, setValueSpecification: setValueSpecification, resetValue: resetValue }));
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, obseverContext);
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, obseverContext: obseverContext, ref: ref }));
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
@@ -1 +1 @@
1
- {"version":3,"file":"BasicValueSpecificationEditor.js","sourceRoot":"","sources":["../../../src/components/shared/BasicValueSpecificationEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,8CAA8C,EAC9C,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAIL,OAAO,EACP,U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CAAC;gBACD,OAAO,CACL,KAAC,kCAAkC,IACjC,kBAAkB,EAAE,eAAe,EACnC,SAAS,EACP,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO;wBACzC,aAAa,CAAC,OAAO,EAEvB,qBAAqB,EAAE,qBAAqB,EAC5C,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,GAAG,EAAE,GAAG,GACR,CACH,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,KAAC,mCAAmC,KAAG,CAAC;AACjD,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"BasicValueSpecificationEditor.js","sourceRoot":"","sources":["../../../src/components/shared/BasicValueSpecificationEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,8CAA8C,EAC9C,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAKL,OAAO,EACP,UAAU,EACV,IAAI,EACJ,cAAc,EACd,WAAW,EACX,eAAe,EACf,UAAU,EACV,mBAAmB,EACnB,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAML,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,EAClB,0BAA0B,EAC1B,aAAa,EACb,cAAc,EACd,4BAA4B,EAC5B,WAAW,EACX,WAAW,EACX,0BAA0B,EAC1B,iBAAiB,EACjB,SAAS,EACT,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EA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C9D;gBACE,sDAAsD,EACpD,kBAAkB,YAAY,aAAa;oBAC3C,CAAC,oBAAoB,CAAC,kBAAkB,CAAC;aAC5C,CACF,EACD,OAAO,EAAE,GAAG,EAAE;gBACZ,iBAAiB,CAAC,IAAI,CAAC,CAAC;YAC1B,CAAC,YAEA,IAAI,oBAAoB,KAAK,SAAS,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,GAAG,GACjE,GACH,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /// <reference types="react" resolution-mode="require"/>
17
16
  import { type PureModel, type Type, type ValueSpecification, SimpleFunctionExpression, PrimitiveInstanceValue, type ObserverContext } from '@finos/legend-graph';
18
17
  import { type ApplicationStore, type LegendApplicationConfig, type LegendApplicationPlugin, type LegendApplicationPluginManager } from '@finos/legend-application';
19
18
  export declare enum CUSTOM_DATE_PICKER_OPTION {
@@ -68,7 +67,9 @@ export declare const CustomDatePicker: React.FC<{
68
67
  */
69
68
  match?: boolean;
70
69
  };
70
+ displayAsEditableValue?: boolean | undefined;
71
71
  setValueSpecification: (val: ValueSpecification) => void;
72
+ handleBlur?: (() => void) | undefined;
72
73
  }>;
73
74
  export {};
74
75
  //# sourceMappingURL=CustomDatePicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomDatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/shared/CustomDatePicker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AASH,OAAO,EACL,KAAK,SAAS,EAEd,KAAK,IAAI,EACT,KAAK,kBAAkB,EAEvB,wBAAwB,EAGxB,sBAAsB,EAKtB,KAAK,eAAe,EAErB,MAAM,qBAAqB,CAAC;AAuB7B,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACpC,MAAM,2BAA2B,CAAC;AAEnC,oBAAY,yBAAyB;IACnC,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,oBAAoB,yBAAyB;IAC7C,YAAY,oBAAoB;IAChC,WAAW,gBAAgB;CAC5B;AAyCD;;GAEG;AACH,cAAM,gBAAgB;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;gBAEF,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAIzC;AAmhBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,uBACZ,wBAAwB,GAAG,sBAAsB,oBACnD,iBAChB,uBAAuB,EACvB,+BAA+B,uBAAuB,CAAC,CACxD,KACA,gBAgEF,CAAC;AAieF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,kBAAkB,EAAE,sBAAsB,GAAG,wBAAwB,CAAC;IACtE,KAAK,EAAE,SAAS,CAAC;IACjB,eAAe,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE;QACf,YAAY,EAAE,IAAI,CAAC;QACnB;;;;;;;;;;WAUG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC;IACF,qBAAqB,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC1D,CAwMA,CAAC"}
1
+ {"version":3,"file":"CustomDatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/shared/CustomDatePicker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EACL,KAAK,SAAS,EAEd,KAAK,IAAI,EACT,KAAK,kBAAkB,EAEvB,wBAAwB,EAGxB,sB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AAU,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACvC,CA+NA,CAAC"}
@@ -562,7 +562,7 @@ const CustomPreviousDayOfWeekValueSpecificationEditor = (props) => {
562
562
  : null, darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled }) }) }));
563
563
  };
564
564
  export const CustomDatePicker = (props) => {
565
- const { valueSpecification, setValueSpecification, graph, observerContext, hasError, typeCheckOption, } = props;
565
+ const { valueSpecification, setValueSpecification, graph, observerContext, hasError, typeCheckOption, displayAsEditableValue, handleBlur, } = props;
566
566
  const applicationStore = useApplicationStore();
567
567
  // For some cases where types need to be matched strictly.
568
568
  // Some options need to be filtered out for DateTime.
@@ -583,6 +583,7 @@ export const CustomDatePicker = (props) => {
583
583
  const closeCustomDatePickerPopover = () => {
584
584
  setDatePickerOption(buildDatePickerOption(valueSpecification, applicationStore));
585
585
  setAnchorEl(null);
586
+ handleBlur?.();
586
587
  };
587
588
  const handleDatePickerOptionChange = (event) => {
588
589
  const chosenDatePickerOption = new DatePickerOption(event.target.value, event.target.value);
@@ -625,13 +626,15 @@ export const CustomDatePicker = (props) => {
625
626
  useEffect(() => {
626
627
  setDatePickerOption(buildDatePickerOption(valueSpecification, applicationStore));
627
628
  }, [applicationStore, valueSpecification]);
628
- return (_jsxs(_Fragment, { children: [_jsx("button", { className: clsx('value-spec-editor__date-picker__trigger', {
629
+ return (_jsxs(_Fragment, { children: [displayAsEditableValue ? (_jsx("span", { className: clsx('value-spec-editor__date-picker__editable__display--content editable-value', {
630
+ 'value-spec-editor__date-picker__editable__display--content--error': hasError,
631
+ }), title: "Click to edit and pick from more date options", onClick: openCustomDatePickerPopover, children: datePickerOption.label ? (`"${datePickerOption.label}"`) : (_jsx(_Fragment, { children: "\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0" })) })) : (_jsx("button", { className: clsx('value-spec-editor__date-picker__trigger', {
629
632
  'value-spec-editor__date-picker__trigger--error': hasError,
630
- }), title: "Click to edit and pick from more date options", onClick: openCustomDatePickerPopover, children: datePickerOption.label || 'Select value' }), _jsxs(BasePopover, { open: Boolean(anchorEl), TransitionProps: {
633
+ }), title: "Click to edit and pick from more date options", onClick: openCustomDatePickerPopover, children: datePickerOption.label || 'Select value' })), _jsxs(BasePopover, { open: Boolean(anchorEl), TransitionProps: {
631
634
  onEnter: handleEnter,
632
635
  }, anchorEl: anchorEl, onClose: closeCustomDatePickerPopover, anchorOrigin: {
633
- vertical: 'bottom',
634
- horizontal: 'center',
636
+ vertical: displayAsEditableValue ? 20 : 'bottom',
637
+ horizontal: displayAsEditableValue ? 50 : 'center',
635
638
  }, transformOrigin: {
636
639
  vertical: 'top',
637
640
  horizontal: 'center',