@finos/legend-query-builder 3.0.5 → 3.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -1
  2. package/lib/components/QueryBuilderConstantExpressionPanel.js +20 -14
  3. package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
  4. package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
  5. package/lib/components/QueryBuilderParametersPanel.js +22 -15
  6. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  7. package/lib/components/shared/LambdaParameterValuesEditor.js +1 -1
  8. package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
  9. package/lib/index.css +1 -1
  10. package/lib/index.d.ts +2 -0
  11. package/lib/index.d.ts.map +1 -1
  12. package/lib/index.js +2 -0
  13. package/lib/index.js.map +1 -1
  14. package/lib/package.json +3 -3
  15. package/lib/stores/QueryBuilderState.js +2 -2
  16. package/lib/stores/QueryBuilderState.js.map +1 -1
  17. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts +2 -1
  18. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
  19. package/lib/stores/QueryBuilderValueSpecificationBuilder.js +1 -1
  20. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
  21. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts +2 -1
  22. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts.map +1 -1
  23. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js +18 -15
  24. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js.map +1 -1
  25. package/package.json +11 -11
  26. package/src/components/QueryBuilderConstantExpressionPanel.tsx +30 -18
  27. package/src/components/QueryBuilderParametersPanel.tsx +34 -23
  28. package/src/components/shared/LambdaParameterValuesEditor.tsx +4 -4
  29. package/src/index.ts +2 -0
  30. package/src/stores/QueryBuilderState.ts +2 -2
  31. package/src/stores/QueryBuilderValueSpecificationBuilder.ts +1 -1
  32. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.ts +43 -25
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderConstantExpressionPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderConstantExpressionPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA+BH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAsJxE,eAAO,MAAM,mCAAmC,WACtC;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsGjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderConstantExpressionPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderConstantExpressionPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAgCH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAiKxE,eAAO,MAAM,mCAAmC,WACtC;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsGjD,CAAC"}
@@ -15,18 +15,19 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
15
15
  * limitations under the License.
16
16
  */
17
17
  import { buildElementOption, getPackageableElementOptionFormatter, } from '@finos/legend-lego/graph-editor';
18
- import { BlankPanelPlaceholder, CustomSelectorInput, Dialog, InfoCircleIcon, Modal, ModalBody, ModalFooter, ModalFooterButton, ModalHeader, PanelFormSection, PanelFormTextField, PlusIcon, } from '@finos/legend-art';
19
- import { PrimitiveType, VariableExpression, Multiplicity, } from '@finos/legend-graph';
18
+ import { BlankPanelPlaceholder, CustomSelectorInput, Dialog, InfoCircleIcon, Modal, ModalBody, ModalFooter, ModalFooterButton, ModalHeader, PanelFormSection, PanelFormValidatedTextField, PlusIcon, } from '@finos/legend-art';
19
+ import { PrimitiveType, VariableExpression, Multiplicity, isValidIdentifier, } from '@finos/legend-graph';
20
20
  import { generateEnumerableNameFromToken } from '@finos/legend-shared';
21
21
  import { observer } from 'mobx-react-lite';
22
22
  import { DEFAULT_CONSTANT_VARIABLE_NAME } from '../stores/QueryBuilderConfig.js';
23
23
  import { QueryBuilderConstantExpressionState } from '../stores/QueryBuilderConstantsState.js';
24
24
  import { buildDefaultInstanceValue } from '../stores/shared/ValueSpecificationEditorHelper.js';
25
- import { variableExpression_setName } from '../stores/shared/ValueSpecificationModifierHelper.js';
26
25
  import { BasicValueSpecificationEditor } from './shared/BasicValueSpecificationEditor.js';
27
26
  import { VariableViewer } from './shared/QueryBuilderVariableSelector.js';
28
27
  import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
29
28
  import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
29
+ import { useState } from 'react';
30
+ import { variableExpression_setName } from '../stores/shared/ValueSpecificationModifierHelper.js';
30
31
  // NOTE: We currently only allow constant variables for primitive types of multiplicity ONE.
31
32
  // This is why we don't show multiplicity in the editor.
32
33
  const QueryBuilderConstantExpressionEditor = observer((props) => {
@@ -41,9 +42,6 @@ const QueryBuilderConstantExpressionEditor = observer((props) => {
41
42
  const valueSpec = constantState.value;
42
43
  const variableType = constantState.value.genericType?.value.rawType ?? PrimitiveType.STRING;
43
44
  const selectedType = buildElementOption(variableType);
44
- const close = () => {
45
- variableState.setSelectedConstant(undefined);
46
- };
47
45
  const changeType = (val) => {
48
46
  if (variableType !== val.value) {
49
47
  constantState.changeValSpecType(val.value);
@@ -52,12 +50,18 @@ const QueryBuilderConstantExpressionEditor = observer((props) => {
52
50
  const typeOptions = queryBuilderState.graphManagerState.graph.primitiveTypes
53
51
  .map(buildElementOption)
54
52
  .concat(queryBuilderState.graphManagerState.graph.enumerations.map(buildElementOption));
55
- const validationMessage = !variableName
56
- ? `Constant Name can't be empty`
57
- : allVariableNames.filter((e) => e === variableName).length >
58
- (isCreating ? 0 : 1)
59
- ? 'Constant Name Already Exists'
60
- : undefined;
53
+ const [isNameValid, setIsNameValid] = useState(true);
54
+ const getValidationMessage = (constantInput) => !constantInput
55
+ ? `Constant name can't be empty`
56
+ : isValidIdentifier(constantInput) === false
57
+ ? 'Constant name must be text with no spaces and not start with an uppercase letter or number'
58
+ : allVariableNames.filter((e) => e === constantInput).length >
59
+ (isCreating ? 0 : 1)
60
+ ? 'Constant name already exists'
61
+ : undefined;
62
+ const close = () => {
63
+ variableState.setSelectedConstant(undefined);
64
+ };
61
65
  const onAction = () => {
62
66
  if (isCreating) {
63
67
  variableState.addConstant(constantState);
@@ -72,7 +76,9 @@ const QueryBuilderConstantExpressionEditor = observer((props) => {
72
76
  root: 'editor-modal__root-container',
73
77
  container: 'editor-modal__container',
74
78
  paper: 'editor-modal__content',
75
- }, children: _jsxs(Modal, { darkMode: true, className: "editor-modal query-builder__variables__modal", children: [_jsx(ModalHeader, { title: `${isCreating ? 'Create Constant' : 'Update Constant'}` }), _jsxs(ModalBody, { className: "query-builder__variables__modal__body", children: [_jsx(PanelFormTextField, { name: "Constant Name", prompt: "Name of constant. Should be descriptive of its purpose.", update: (value) => variableExpression_setName(varExpression, value ?? ''), value: varExpression.name, errorMessage: validationMessage, isReadOnly: false }), _jsxs(PanelFormSection, { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Type" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Data type of the constant." }), _jsx(CustomSelectorInput, { placeholder: "Choose a type...", options: typeOptions, onChange: changeType, value: selectedType, darkMode: !applicationStore.layoutService
79
+ }, children: _jsxs(Modal, { darkMode: true, className: "editor-modal query-builder__variables__modal", children: [_jsx(ModalHeader, { title: `${isCreating ? 'Create Constant' : 'Update Constant'}` }), _jsxs(ModalBody, { className: "query-builder__variables__modal__body", children: [_jsx(PanelFormValidatedTextField, { name: "Constant Name", prompt: "Name of constant. Should be descriptive of its purpose.", update: (value) => {
80
+ variableExpression_setName(varExpression, value ?? '');
81
+ }, validate: getValidationMessage, onValidate: (issue) => setIsNameValid(!issue), value: variableName, isReadOnly: false }), _jsxs(PanelFormSection, { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Type" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Data type of the constant." }), _jsx(CustomSelectorInput, { placeholder: "Choose a type...", options: typeOptions, onChange: changeType, value: selectedType, darkMode: !applicationStore.layoutService
76
82
  .TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: getPackageableElementOptionFormatter({
77
83
  darkMode: !applicationStore.layoutService
78
84
  .TEMPORARY__isLightColorThemeEnabled,
@@ -81,7 +87,7 @@ const QueryBuilderConstantExpressionEditor = observer((props) => {
81
87
  }, graph: queryBuilderState.graphManagerState.graph, obseverContext: queryBuilderState.observerContext, typeCheckOption: {
82
88
  expectedType: variableType,
83
89
  match: variableType === PrimitiveType.DATETIME,
84
- }, resetValue: resetConstantValue }) })] })] }), _jsxs(ModalFooter, { children: [isCreating && (_jsx(ModalFooterButton, { text: "Create", inProgress: Boolean(validationMessage), onClick: onAction })), _jsx(ModalFooterButton, { text: "Close", onClick: close })] })] }) }));
90
+ }, resetValue: resetConstantValue }) })] })] }), _jsxs(ModalFooter, { children: [isCreating && (_jsx(ModalFooterButton, { text: "Create", disabled: !isNameValid, onClick: onAction })), _jsx(ModalFooterButton, { text: "Close", onClick: close })] })] }) }));
85
91
  });
86
92
  export const QueryBuilderConstantExpressionPanel = observer((props) => {
87
93
  const { queryBuilderState } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderConstantExpressionPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderConstantExpressionPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,kBAAkB,EAClB,oCAAoC,GAErC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,qBAAqB,EACrB,mBA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,OAAO,CAAC,iBAAiB,CAAC,aAAa,CAAC,SAAS,CAAC;4BACjD,iBAAiB,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAC5D,KAAC,cAAc,IAEb,iBAAiB,EAAE,iBAAiB,EACpC,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAC7B,aAAa,EAAE,UAAU,CAAC,KAAK,EAC/B,OAAO,EAAE;oCACP,YAAY,EAAE,GAAG,EAAE,CACjB,aAAa,CAAC,mBAAmB,CAAC,UAAU,CAAC;oCAC/C,cAAc,EAAE,GAAG,EAAE,CACnB,aAAa,CAAC,cAAc,CAAC,UAAU,CAAC;iCAC3C,EACD,UAAU,EAAE,UAAU,IAVjB,UAAU,CAAC,IAAI,CAWpB,CACH,CAAC,EACH,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,IAAI,CAClC,KAAC,qBAAqB,IACpB,IAAI,EAAC,gBAAgB,EACrB,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,WAAW,EACpB,eAAe,EAAC,KAAK,EACrB,WAAW,EAAC,cAAc,EAC1B,WAAW,EAAC,6BAA6B,GACzC,CACH,IACA,GACC,EACL,aAAa,CAAC,gBAAgB,IAAI,CACjC,KAAC,oCAAoC,IACnC,aAAa,EAAE,aAAa,CAAC,gBAAgB,GAC7C,CACH,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderConstantExpressionPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderConstantExpressionPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,kBAAkB,EAClB,oCAAoC,GAErC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,MAAM,EACN,cAAc,EACd,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,2BAA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AU,IAAI,CACd,cAAK,SAAS,EAAC,wBAAwB,YACrC,iBACE,SAAS,EAAC,uBAAuB,EACjC,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,WAAW,EACpB,KAAK,EAAC,cAAc,YAEpB,KAAC,QAAQ,KAAG,GACL,GACL,CACP,IACG,EACN,cAAK,SAAS,EAAC,kDAAkD,YAC/D,8BACG,OAAO,CAAC,iBAAiB,CAAC,aAAa,CAAC,SAAS,CAAC;4BACjD,iBAAiB,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAC5D,KAAC,cAAc,IAEb,iBAAiB,EAAE,iBAAiB,EACpC,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAC7B,aAAa,EAAE,UAAU,CAAC,KAAK,EAC/B,OAAO,EAAE;oCACP,YAAY,EAAE,GAAG,EAAE,CACjB,aAAa,CAAC,mBAAmB,CAAC,UAAU,CAAC;oCAC/C,cAAc,EAAE,GAAG,EAAE,CACnB,aAAa,CAAC,cAAc,CAAC,UAAU,CAAC;iCAC3C,EACD,UAAU,EAAE,UAAU,IAVjB,UAAU,CAAC,IAAI,CAWpB,CACH,CAAC,EACH,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,IAAI,CAClC,KAAC,qBAAqB,IACpB,IAAI,EAAC,gBAAgB,EACrB,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,WAAW,EACpB,eAAe,EAAC,KAAK,EACrB,WAAW,EAAC,cAAc,EAC1B,WAAW,EAAC,6BAA6B,GACzC,CACH,IACA,GACC,EACL,aAAa,CAAC,gBAAgB,IAAI,CACjC,KAAC,oCAAoC,IACnC,aAAa,EAAE,aAAa,CAAC,gBAAgB,GAC7C,CACH,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderParametersPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderParametersPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAmNxE,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA4GjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderParametersPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderParametersPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA8NxE,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA4GjD,CAAC"}
@@ -15,8 +15,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
15
15
  * limitations under the License.
16
16
  */
17
17
  import { observer } from 'mobx-react-lite';
18
- import { Dialog, BlankPanelContent, CustomSelectorInput, PlusIcon, BlankPanelPlaceholder, Modal, ModalBody, ModalFooter, ModalHeader, PanelFormTextField, InfoCircleIcon, ModalFooterButton, } from '@finos/legend-art';
19
- import { VariableExpression, GenericTypeExplicitReference, GenericType, PrimitiveType, Multiplicity, getMultiplicityPrettyDescription, } from '@finos/legend-graph';
18
+ import { Dialog, BlankPanelContent, CustomSelectorInput, PlusIcon, BlankPanelPlaceholder, Modal, ModalBody, ModalFooter, ModalHeader, InfoCircleIcon, ModalFooterButton, PanelFormValidatedTextField, } from '@finos/legend-art';
19
+ import { VariableExpression, GenericTypeExplicitReference, GenericType, PrimitiveType, Multiplicity, getMultiplicityPrettyDescription, isValidIdentifier, } from '@finos/legend-graph';
20
20
  import { useApplicationStore } from '@finos/legend-application';
21
21
  import { generateEnumerableNameFromToken } from '@finos/legend-shared';
22
22
  import { DEFAULT_VARIABLE_NAME } from '../stores/QueryBuilderConfig.js';
@@ -26,6 +26,7 @@ import { LambdaParameterValuesEditor } from './shared/LambdaParameterValuesEdito
26
26
  import { VariableViewer } from './shared/QueryBuilderVariableSelector.js';
27
27
  import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
28
28
  import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
29
+ import { useState } from 'react';
29
30
  import { buildElementOption, getPackageableElementOptionFormatter, } from '@finos/legend-lego/graph-editor';
30
31
  const buildMultiplicityOption = (multiplicity) => ({
31
32
  label: getMultiplicityPrettyDescription(multiplicity),
@@ -40,17 +41,6 @@ const VariableExpressionEditor = observer((props) => {
40
41
  const isCreating = !queryParametersState.parameterStates.includes(lambdaParameterState);
41
42
  const varState = lambdaParameterState.parameter;
42
43
  const multiplity = varState.multiplicity;
43
- const validationMessage = !varState.name
44
- ? `Parameter name can't be empty`
45
- : allVariableNames.filter((e) => e === varState.name).length >
46
- (isCreating ? 0 : 1)
47
- ? 'Parameter Name Already Exists'
48
- : (isCreating &&
49
- queryParametersState.parameterStates.find((p) => p.parameter.name === varState.name)) ||
50
- (!isCreating &&
51
- queryParametersState.parameterStates.filter((p) => p.parameter.name === varState.name).length > 1)
52
- ? 'Parameter name already exists'
53
- : undefined;
54
44
  // type
55
45
  const variableType = lambdaParameterState.variableType ?? PrimitiveType.STRING;
56
46
  const selectedType = buildElementOption(variableType);
@@ -73,6 +63,21 @@ const VariableExpressionEditor = observer((props) => {
73
63
  const changeMultiplicity = (val) => {
74
64
  lambdaParameterState.changeMultiplicity(varState, val.value);
75
65
  };
66
+ const parameterNameValue = varState.name;
67
+ const [isNameValid, setIsNameValid] = useState(true);
68
+ const getValidationMessage = (input) => !input
69
+ ? `Parameter name can't be empty`
70
+ : allVariableNames.filter((e) => e === input).length >
71
+ (isCreating ? 0 : 1)
72
+ ? 'Parameter name already exists'
73
+ : (isCreating &&
74
+ queryParametersState.parameterStates.find((p) => p.parameter.name === input)) ||
75
+ (!isCreating &&
76
+ queryParametersState.parameterStates.filter((p) => p.parameter.name === input).length > 1)
77
+ ? 'Parameter name already exists'
78
+ : isValidIdentifier(input, true) === false
79
+ ? 'Parameter name must be text with no spaces and not start with an uppercase letter or number'
80
+ : undefined;
76
81
  const close = () => {
77
82
  queryParametersState.setSelectedParameter(undefined);
78
83
  };
@@ -86,12 +91,14 @@ const VariableExpressionEditor = observer((props) => {
86
91
  root: 'editor-modal__root-container',
87
92
  container: 'editor-modal__container',
88
93
  paper: 'editor-modal__content',
89
- }, children: _jsxs(Modal, { darkMode: true, className: "editor-modal query-builder__variables__modal", children: [_jsx(ModalHeader, { title: `${isCreating ? 'Create Parameter' : 'Update Parameter'}` }), _jsxs(ModalBody, { className: "query-builder__variables__modal__body", children: [_jsx(PanelFormTextField, { name: "Parameter Name", prompt: "Name of the parameter. Should be descriptive of its purpose.", update: (value) => variableExpression_setName(varState, value ?? ''), value: varState.name, errorMessage: validationMessage, isReadOnly: false }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Type" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Data type of the parameter." }), _jsx(CustomSelectorInput, { placeholder: "Choose a type...", options: typeOptions, onChange: changeType, value: selectedType, darkMode: !applicationStore.layoutService
94
+ }, children: _jsxs(Modal, { darkMode: true, className: "editor-modal query-builder__variables__modal", children: [_jsx(ModalHeader, { title: `${isCreating ? 'Create Parameter' : 'Update Parameter'}` }), _jsxs(ModalBody, { className: "query-builder__variables__modal__body", children: [_jsx(PanelFormValidatedTextField, { name: "Parameter Name", prompt: "Name of the parameter. Should be descriptive of its purpose.", value: parameterNameValue, update: (value) => {
95
+ variableExpression_setName(varState, value ?? '');
96
+ }, validate: getValidationMessage, onValidate: (issue) => setIsNameValid(!issue), isReadOnly: false }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Type" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Data type of the parameter." }), _jsx(CustomSelectorInput, { placeholder: "Choose a type...", options: typeOptions, onChange: changeType, value: selectedType, darkMode: !applicationStore.layoutService
90
97
  .TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: getPackageableElementOptionFormatter({
91
98
  darkMode: !applicationStore.layoutService
92
99
  .TEMPORARY__isLightColorThemeEnabled,
93
100
  }) })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Multiplicity" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "The multiplity determines how many values a parameter can have. Default is set to mandatory single vlue." }), _jsx(CustomSelectorInput, { placeholder: "Choose a multiplicity...", options: multilicityOptions, onChange: changeMultiplicity, value: selectedMultiplicity, hasError: !validParamMultiplicityList.includes(selectedMultiplicity.value), darkMode: !applicationStore.layoutService
94
- .TEMPORARY__isLightColorThemeEnabled })] })] }), _jsxs(ModalFooter, { children: [isCreating && (_jsx(ModalFooterButton, { text: "Create", inProgress: Boolean(validationMessage), onClick: onAction })), _jsx(ModalFooterButton, { onClick: close, text: "Close" })] })] }) }));
101
+ .TEMPORARY__isLightColorThemeEnabled })] })] }), _jsxs(ModalFooter, { children: [isCreating && (_jsx(ModalFooterButton, { text: "Create", disabled: !isNameValid, onClick: onAction })), _jsx(ModalFooterButton, { onClick: close, text: "Close" })] })] }) }));
95
102
  });
96
103
  export const QueryBuilderParametersPanel = observer((props) => {
97
104
  const { queryBuilderState } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderParametersPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderParametersPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EACL,MAAM,EACN,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACR,qBAAqB,EACrB,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,iBAAiB,GAClB,MAAM,mBAA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B,WAAW,EAAC,cAAc,EAC1B,WAAW,EAAC,8BAA8B,GAC1C,CACH,IACA,CACJ,EACA,iBAAiB,CAAC,0BAA0B,IAAI,CAC/C,KAAC,iBAAiB,+CAAiD,CACpE,IACG,EACL,mBAAmB,CAAC,iBAAiB,IAAI,CACxC,KAAC,wBAAwB,IACvB,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,EAAE,mBAAmB,CAAC,iBAAiB,GAC3D,CACH,EACA,mBAAmB,CAAC,0BAA0B,CAAC,SAAS,IAAI,CAC3D,KAAC,2BAA2B,IAC1B,KAAK,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,EAChD,eAAe,EAAE,iBAAiB,CAAC,eAAe,EAClD,qBAAqB,EAAE,mBAAmB,GAC1C,CACH,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderParametersPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderParametersPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EACL,MAAM,EACN,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACR,qBAAqB,EACrB,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,kBAAkB,EAClB,4BAA4B,EAC5B,WAAW,EACX,aAAa,EACb,YAAY,EACZ,gCAAgC,EAChC,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,sDAAsD,CAA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WAAW,EAAC,cAAc,EAC1B,WAAW,EAAC,8BAA8B,GAC1C,CACH,IACA,CACJ,EACA,iBAAiB,CAAC,0BAA0B,IAAI,CAC/C,KAAC,iBAAiB,+CAAiD,CACpE,IACG,EACL,mBAAmB,CAAC,iBAAiB,IAAI,CACxC,KAAC,wBAAwB,IACvB,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,EAAE,mBAAmB,CAAC,iBAAiB,GAC3D,CACH,EACA,mBAAmB,CAAC,0BAA0B,CAAC,SAAS,IAAI,CAC3D,KAAC,2BAA2B,IAC1B,KAAK,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,EAChD,eAAe,EAAE,iBAAiB,CAAC,eAAe,EAClD,qBAAqB,EAAE,mBAAmB,GAC1C,CACH,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -51,6 +51,6 @@ export const LambdaParameterValuesEditor = observer((props) => {
51
51
  expectedType: variableType,
52
52
  match: variableType === PrimitiveType.DATETIME,
53
53
  }, className: "query-builder__parameters__value__editor", resetValue: () => paramState.mockParameterValue() }))] }, paramState.uuid));
54
- }) }), _jsxs(ModalFooter, { children: [isClosingAction && (_jsx(ModalFooterStatus, { children: " Closing..." })), submitAction && (_jsx(ModalFooterButton, { inProgress: isSubmitAction, inProgressText: `${submitAction.label}...`, onClick: submit, text: submitAction.label })), _jsx(ModalFooterButton, { inProgress: isClosingAction, inProgressText: 'Closing...', onClick: close, text: "Close" })] })] }) }));
54
+ }) }), _jsxs(ModalFooter, { children: [isClosingAction && (_jsx(ModalFooterStatus, { children: " Closing..." })), submitAction && (_jsx(ModalFooterButton, { inProgressText: isSubmitAction ? `${submitAction.label}...` : undefined, onClick: submit, text: submitAction.label })), _jsx(ModalFooterButton, { inProgressText: isClosingAction ? 'Closing...' : undefined, onClick: close, text: "Close" })] })] }) }));
55
55
  });
56
56
  //# sourceMappingURL=LambdaParameterValuesEditor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LambdaParameter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,EAAE,CAAC,UAAU,CAAC,kBAAkB,EAAE,GACvD,CACH,KA5BI,UAAU,CAAC,IAAI,CA6BhB,CACP,CAAC;oBACJ,CAAC,CAAC,GACQ,EACZ,MAAC,WAAW,eACT,eAAe,IAAI,CAClB,KAAC,iBAAiB,8BAAgC,CACnD,EACA,YAAY,IAAI,CACf,KAAC,iBAAiB,IAChB,UAAU,EAAE,cAAc,EAC1B,cAAc,EAAE,GAAG,YAAY,CAAC,KAAK,KAAK,EAC1C,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,YAAY,CAAC,KAAK,GACxB,CACH,EACD,KAAC,iBAAiB,IAChB,UAAU,EAAE,eAAe,EAC3B,cAAc,EAAE,YAAY,EAC5B,OAAO,EAAE,KAAK,EACd,IAAI,EAAC,OAAO,GACZ,IACU,IACR,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"LambdaParameterValuesEditor.js","sourceRoot":"","sources":["../../../src/components/shared/LambdaParameterValuesEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,MAAM,EACN,KAAK,EACL,SAAS,EACT,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAIL,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF,+EAA+E;AAC/E,MAAM,CAAC,MAAM,2BAA2B,GAAG,QAAQ,CACjD,CAAC,KAIA,EAAE,EAAE;IACH,MAAM,EAAE,qBAAqB,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAChE,MAAM,C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@license @finos/legend-query-builder v3.0.7
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/index.d.ts CHANGED
@@ -35,6 +35,8 @@ export * from './components/ServiceQuerySetupUtils.js';
35
35
  export * from './components/QuerySetupUtils.js';
36
36
  export * from './components/QueryBuilderTextEditor.js';
37
37
  export { QueryBuilderTextEditorMode } from './stores/QueryBuilderTextEditorState.js';
38
+ export { buildSerialzieFunctionWithGraphFetch } from './stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js';
39
+ export { buildGetAllFunction } from './stores/QueryBuilderValueSpecificationBuilder.js';
38
40
  export * from './components/shared/LambdaEditor.js';
39
41
  export { LambdaEditorState } from './stores/shared/LambdaEditorState.js';
40
42
  export * from './stores/shared/LambdaParameterState.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,cAAc,0CAA0C,CAAC;AACzD,cAAc,gCAAgC,CAAC;AAE/C,OAAO,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AAErG,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EACL,KAAK,4BAA4B,EACjC,oCAAoC,GACrC,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,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AA8C,CAAC;AAClG,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EACL,KAAK,uBAAuB,EAC5B,wBAAwB,GACzB,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAAE,oCAAoC,EAAE,MAAM,yEAAyE,CAAC;AAC/H,YAAY,EAAE,8BAA8B,EAAE,MAAM,8DAA8D,CAAC;AACnH,YAAY,EAAE,yCAAyC,EAAE,MAAM,yEAAyE,CAAC;AACzI,cAAc,yBAAyB,CAAC;AACxC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AAEvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,oCAAoC,EAAE,MAAM,6FAA6F,CAAC;AACnJ,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAIxF,cAAc,qCAAqC,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,cAAc,yCAAyC,CAAC;AAExD,cAAc,sDAAsD,CAAC;AACrE,cAAc,oDAAoD,CAAC;AAEnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAElE,cAAc,oDAAoD,CAAC;AACnE,cAAc,+CAA+C,CAAC"}
package/lib/index.js CHANGED
@@ -34,6 +34,8 @@ export * from './components/ServiceQuerySetupUtils.js';
34
34
  export * from './components/QuerySetupUtils.js';
35
35
  export * from './components/QueryBuilderTextEditor.js';
36
36
  export { QueryBuilderTextEditorMode } from './stores/QueryBuilderTextEditorState.js';
37
+ export { buildSerialzieFunctionWithGraphFetch } from './stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js';
38
+ export { buildGetAllFunction } from './stores/QueryBuilderValueSpecificationBuilder.js';
37
39
  // ------------------------------------------- Shared components -------------------------------------------
38
40
  export * from './components/shared/LambdaEditor.js';
39
41
  export { LambdaEditorState } from './stores/shared/LambdaEditorState.js';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc;AACd,cAAc,0CAA0C,CAAC;AACzD,cAAc,gCAAgC,CAAC;AAE/C,OAAO,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AAErG,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAEL,oCAAoC,GACrC,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAEL,wBAAwB,GACzB,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAAE,oCAAoC,EAAE,MAAM,yEAAyE,CAAC;AAG/H,cAAc,yBAAyB,CAAC;AACxC,cAAc,wCAAwC,C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AAE,oCAAoC,EAAE,MAAM,yEAAyE,CAAC;AAG/H,cAAc,yBAAyB,CAAC;AACxC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AAEvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,oCAAoC,EAAE,MAAM,6FAA6F,CAAC;AACnJ,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAExF,4GAA4G;AAE5G,cAAc,qCAAqC,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,cAAc,yCAAyC,CAAC;AAExD,cAAc,sDAAsD,CAAC;AACrE,cAAc,oDAAoD,CAAC;AAEnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAElE,cAAc,oDAAoD,CAAC;AACnE,cAAc,+CAA+C,CAAC"}
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -50,7 +50,7 @@
50
50
  "@finos/legend-shared": "workspace:*",
51
51
  "@finos/legend-storage": "workspace:*",
52
52
  "@testing-library/react": "14.0.0",
53
- "@types/react": "18.0.37",
53
+ "@types/react": "18.0.38",
54
54
  "@types/react-dom": "18.0.11",
55
55
  "mathjs": "11.8.0",
56
56
  "mobx": "6.9.0",
@@ -66,7 +66,7 @@
66
66
  "@finos/legend-dev-utils": "workspace:*",
67
67
  "@jest/globals": "29.5.0",
68
68
  "cross-env": "7.0.3",
69
- "eslint": "8.38.0",
69
+ "eslint": "8.39.0",
70
70
  "jest": "29.5.0",
71
71
  "npm-run-all": "4.1.5",
72
72
  "rimraf": "5.0.0",
@@ -293,7 +293,7 @@ export class QueryBuilderState {
293
293
  }
294
294
  catch (error) {
295
295
  assertErrorThrown(error);
296
- this.resetQueryResult();
296
+ this.resetQueryResult({ preserveResult: options?.preserveResult });
297
297
  this.resetQueryContent();
298
298
  this.unsupportedQueryState.setLambdaError(error);
299
299
  this.unsupportedQueryState.setRawLambda(query);
@@ -301,7 +301,7 @@ export class QueryBuilderState {
301
301
  const parameters = buildLambdaVariableExpressions(query, this.graphManagerState)
302
302
  .map((param) => observe_ValueSpecification(param, this.observerContext))
303
303
  .filter(filterByType(VariableExpression));
304
- processParameters(parameters, this);
304
+ processParameters(parameters, this, previousStateParameterValues);
305
305
  }
306
306
  }
307
307
  async saveQuery(onSaveQuery) {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,IAAI,EACJ,UAAU,EACV,cAAc,EACd,QAAQ,EACR,UAAU,GACX,MAAM,MAAM,CAAC;AACd,OAAO,EAEL,QAAQ,EACR,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACL,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAKL,mBAAmB,EACnB,gBAAgB,EAChB,mCAAmC,EACnC,2BAA2B,EAC3B,SAAS,EACT,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,CAAC,aAAa,CACrD,uBAAuB,KAAK,CAAC,OAAO,EAAE,CACvC,CAAC;oBACF,MAAM,uBAAuB,GAAG,mCAAmC,CACjE,KAAK,CAAC,iBAAiB,CACxB,CAAC;oBACF,IAAI,uBAAuB,EAAE;wBAC3B,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;qBACjD;iBACF;aACF;oBAAS;gBACR,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,CAAC;aACnC;SACF;IACH,CAAC;IAED,IAAI,mBAAmB;QACrB,OAAO,IAAI,CAAC,mBAAmB,CAAC,cAAc,CAAC,mBAAmB,CAAC;IACrE,CAAC;IAED;;;;OAIG;IACH,kCAAkC;QAChC,mEAAmE;QACnE,MAAM,UAAU,GAAG,IAAI,gCAAgC,CACrD,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,iBAAiB,CACvB,CAAC;QACF,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAC9B,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAClC,UAAU,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QAC5C,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,mBAAmB;YACtD,IAAI,CAAC,qBAAqB;YAC1B,IAAI,CAAC,gBAAgB;YACrB,IAAI,CAAC,eAAe;YACpB,IAAI,CAAC,WAAW;YAChB,IAAI,CAAC,cAAc;YACnB,IAAI,CAAC,sBAAsB;YAC3B,IAAI,CAAC,mBAAmB,CAAC,cAAc;SACxC,CAAC,CAAC;IACL,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,MAAM,OAAO,gCAAiC,SAAQ,iBAAiB;CAAG"}
@@ -13,8 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { LambdaFunction } from '@finos/legend-graph';
16
+ import { type Class, Multiplicity, LambdaFunction, SimpleFunctionExpression } from '@finos/legend-graph';
17
17
  import type { QueryBuilderState } from './QueryBuilderState.js';
18
18
  import type { LambdaFunctionBuilderOption } from './QueryBuilderValueSpecificationBuilderHelper.js';
19
+ export declare const buildGetAllFunction: (_class: Class, multiplicity: Multiplicity) => SimpleFunctionExpression;
19
20
  export declare const buildLambdaFunction: (queryBuilderState: QueryBuilderState, options?: LambdaFunctionBuilderOption) => LambdaFunction;
20
21
  //# sourceMappingURL=QueryBuilderValueSpecificationBuilder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAWL,cAAc,EAKf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kDAAkD,CAAC;AAoEpG,eAAO,MAAM,mBAAmB,sBACX,iBAAiB,YAC1B,2BAA2B,KACpC,cAiFF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,KAAK,EACV,YAAY,EASZ,cAAc,EACd,wBAAwB,EAIzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kDAAkD,CAAC;AAOpG,eAAO,MAAM,mBAAmB,WACtB,KAAK,gBACC,YAAY,KACzB,wBAWF,CAAC;AA+CF,eAAO,MAAM,mBAAmB,sBACX,iBAAiB,YAC1B,2BAA2B,KACpC,cAiFF,CAAC"}
@@ -19,7 +19,7 @@ import { buildFilterExpression } from './filter/QueryBuilderFilterValueSpecifica
19
19
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graph/QueryBuilderMetaModelConst.js';
20
20
  import { buildWatermarkExpression } from './watermark/QueryBuilderWatermarkValueSpecificationBuilder.js';
21
21
  import { buildExecutionQueryFromLambdaFunction } from './shared/LambdaParameterState.js';
22
- const buildGetAllFunction = (_class, multiplicity) => {
22
+ export const buildGetAllFunction = (_class, multiplicity) => {
23
23
  const _func = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.GET_ALL));
24
24
  const classInstance = new InstanceValue(multiplicity, GenericTypeExplicitReference.create(new GenericType(_class)));
25
25
  classInstance.values[0] = PackageableElementExplicitReference.create(_class);
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderValueSpecificationBuilder.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAEL,YAAY,EACZ,8BAA8B,EAC9B,0BAA0B,EAC1B,aAAa,EACb,mCAAmC,EACnC,cAAc,EACd,YAAY,EACZ,WAAW,EACX,4BAA4B,EAC5B,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,aAAa,EACb,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAGhG,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AACzG,OAAO,EAAE,qCAAqC,EAAE,MAAM,kCAAkC,CAAC;AAGzF,MAAM,mBAAmB,GAAG,CAC1B,MAAa,EACb,YAA0B,EACA,EAAE;IAC5B,MA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M,EAAE;QACpD,MAAM,cAAc,GAClB,iBAAiB,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;QACpE,cAAc,CAAC,kBAAkB,GAAG;YAClC,GAAG,cAAc;YACjB,GAAG,cAAc,CAAC,kBAAkB;SACrC,CAAC;KACH;IACD,mBAAmB;IACnB,IACE,iBAAiB,CAAC,eAAe,CAAC,eAAe,CAAC,MAAM;QACxD,CAAC,OAAO,EAAE,4BAA4B,EACtC;QACA,IAAI,OAAO,EAAE,wBAAwB,EAAE;YACrC,qCAAqC,CACnC,cAAc,EACd,iBAAiB,CAAC,eAAe,CAAC,eAAe,EACjD,iBAAiB,CAAC,iBAAiB,CACpC,CAAC;SACH;aAAM;YACL,cAAc,CAAC,YAAY,CAAC,UAAU;gBACpC,iBAAiB,CAAC,eAAe,CAAC,eAAe,CAAC,GAAG,CACnD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CACnB,CAAC;SACL;KACF;IACD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC"}
@@ -13,9 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type LambdaFunction, type PureModel, SimpleFunctionExpression } from '@finos/legend-graph';
16
+ import { type ValueSpecification, type LambdaFunction, type PureModel, type RootGraphFetchTree, SimpleFunctionExpression } from '@finos/legend-graph';
17
17
  import { type QueryBuilderGraphFetchTreeState } from './QueryBuilderGraphFetchTreeState.js';
18
18
  export declare const buildPureSerializationConfig: (config: Record<PropertyKey, boolean>, graph: PureModel) => SimpleFunctionExpression;
19
+ export declare const buildSerialzieFunctionWithGraphFetch: (tree: RootGraphFetchTree, isChecked: boolean, precedingExpression: ValueSpecification, pureConfig: SimpleFunctionExpression | undefined) => SimpleFunctionExpression;
19
20
  export declare const appendGraphFetch: (graphFetchTreeState: QueryBuilderGraphFetchTreeState, lambdaFunction: LambdaFunction, options?: {
20
21
  /**
21
22
  * Set queryBuilderState to `true` when we construct query for execution within the app.
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,SAAS,EAMd,wBAAwB,EAUzB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,EAGL,KAAK,+BAA+B,EACrC,MAAM,sCAAsC,CAAC;AAmD9C,eAAO,MAAM,4BAA4B,WAC/B,OAAO,WAAW,EAAE,OAAO,CAAC,SAC7B,SAAS,KACf,wBAwDF,CAAC;AAEF,eAAO,MAAM,gBAAgB,wBACN,+BAA+B,kBACpC,cAAc,YACpB;IACR;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/C,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7C,KACA,IAmGF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,kBAAkB,EAMvB,wBAAwB,EAUzB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,EAGL,KAAK,+BAA+B,EACrC,MAAM,sCAAsC,CAAC;AAmD9C,eAAO,MAAM,4BAA4B,WAC/B,OAAO,WAAW,EAAE,OAAO,CAAC,SAC7B,SAAS,KACf,wBAwDF,CAAC;AAEF,eAAO,MAAM,oCAAoC,SACzC,kBAAkB,aACb,OAAO,uBACG,kBAAkB,cAC3B,wBAAwB,GAAG,SAAS,KAC/C,wBAqBF,CAAC;AAEF,eAAO,MAAM,gBAAgB,wBACN,+BAA+B,kBACpC,cAAc,YACpB;IACR;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/C,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7C,KACA,IAwFF,CAAC"}
@@ -80,6 +80,20 @@ export const buildPureSerializationConfig = (config, graph) => {
80
80
  ];
81
81
  return newFunction;
82
82
  };
83
+ export const buildSerialzieFunctionWithGraphFetch = (tree, isChecked, precedingExpression, pureConfig) => {
84
+ const graphFetchInstance = new GraphFetchTreeInstanceValue();
85
+ graphFetchInstance.values = [tree];
86
+ const serializeFunction = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SERIALIZE));
87
+ const graphFetchFunc = new SimpleFunctionExpression(isChecked
88
+ ? extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH_CHECKED)
89
+ : extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH));
90
+ graphFetchFunc.parametersValues = [precedingExpression, graphFetchInstance];
91
+ serializeFunction.parametersValues = [graphFetchFunc, graphFetchInstance];
92
+ if (pureConfig) {
93
+ serializeFunction.parametersValues.push(pureConfig);
94
+ }
95
+ return serializeFunction;
96
+ };
83
97
  export const appendGraphFetch = (graphFetchTreeState, lambdaFunction, options) => {
84
98
  const queryBuilderState = graphFetchTreeState.queryBuilderState;
85
99
  const precedingExpression = guaranteeNonNullable(lambdaFunction.expressionSequence[0], `Can't build graph-fetch tree expression: preceding expression is not defined`);
@@ -88,21 +102,10 @@ export const appendGraphFetch = (graphFetchTreeState, lambdaFunction, options) =
88
102
  // build graph-fetch tree
89
103
  if (graphFetchTreeState.treeData &&
90
104
  !isGraphFetchTreeDataEmpty(graphFetchTreeState.treeData)) {
91
- const graphFetchInstance = new GraphFetchTreeInstanceValue();
92
- graphFetchInstance.values = [graphFetchTreeState.treeData.tree];
93
- const serializeFunction = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SERIALIZE));
94
- const graphFetchFunc = new SimpleFunctionExpression(graphFetchTreeState.isChecked
95
- ? extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH_CHECKED)
96
- : extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH));
97
- graphFetchFunc.parametersValues = [
98
- precedingExpression,
99
- graphFetchInstance,
100
- ];
101
- serializeFunction.parametersValues = [graphFetchFunc, graphFetchInstance];
102
- if (serializationState.config) {
103
- const configFunction = buildPureSerializationConfig(serializationState.config, graphFetchTreeState.queryBuilderState.graphManagerState.graph);
104
- serializeFunction.parametersValues.push(configFunction);
105
- }
105
+ const pureConfig = serializationState.config
106
+ ? buildPureSerializationConfig(serializationState.config, graphFetchTreeState.queryBuilderState.graphManagerState.graph)
107
+ : undefined;
108
+ const serializeFunction = buildSerialzieFunctionWithGraphFetch(graphFetchTreeState.treeData.tree, graphFetchTreeState.isChecked, precedingExpression, pureConfig);
106
109
  lambdaFunction.expressionSequence[0] = serializeFunction;
107
110
  }
108
111
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderGraphFetchTreeValueSpecificationBuilder.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,0BAA0B,EAC1B,WAAW,EACX,4BAA4B,EAC5B,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,aAAa,EACb,aAAa,EACb,YAAY,EACZ,mCAAmC,EACnC,mBAAmB,EACnB,uBAAuB,EACvB,0BAA0B,EAC1B,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL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I,yBAAyB,CACjC,mCAAmC,kBAAkB,CAAC,QAAQ,EAAE,EAAE,CACnE,CAAC;KACH;IACD,gDAAgD;IAChD,IAAI,OAAO,EAAE,wBAAwB,EAAE;QACrC,eAAe,CAAC,cAAc,EAAE,iBAAiB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;KAC7E;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"QueryBuilderGraphFetchTreeValueSpecificationBuilder.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,0BAA0B,EAC1B,WAAW,EACX,4BAA4B,EAC5B,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,aAAa,EACb,aAAa,EACb,YAAY,EACZ,mCAAmC,EACnC,mBAAmB,EACnB,uBAAuB,EACvB,0BAA0B,EAC1B,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,yBAAyB,EACzB,oBAAoB,EACpB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,0CAA0C,EAC1C,gCAAgC,GAEjC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,MAAM,eAAe,GAAG,CACtB,MAAsB,EACtB,YAAiC,EACjB,EAAE;IAClB,IAAI,CAAC,YAAY,EAAE;QACjB,OAAO,MAAM,CAAC;KACf;IACD,IAAI,MAAM,CAAC,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE;QAC1C,MAAM,IAAI,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;QAC1C,IAAI,IAAI,YAAY,wBAAwB,EAAE;YAC5C,IACE,iBAAiB,CAC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": "@finos/legend-query-builder",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,15 +42,15 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "15.0.2",
46
- "@finos/legend-art": "7.0.3",
47
- "@finos/legend-graph": "28.0.3",
48
- "@finos/legend-lego": "0.1.8",
49
- "@finos/legend-server-depot": "6.0.0",
50
- "@finos/legend-shared": "10.0.0",
51
- "@finos/legend-storage": "3.0.50",
45
+ "@finos/legend-application": "15.0.4",
46
+ "@finos/legend-art": "7.0.5",
47
+ "@finos/legend-graph": "28.1.1",
48
+ "@finos/legend-lego": "0.1.10",
49
+ "@finos/legend-server-depot": "6.0.2",
50
+ "@finos/legend-shared": "10.0.2",
51
+ "@finos/legend-storage": "3.0.52",
52
52
  "@testing-library/react": "14.0.0",
53
- "@types/react": "18.0.37",
53
+ "@types/react": "18.0.38",
54
54
  "@types/react-dom": "18.0.11",
55
55
  "mathjs": "11.8.0",
56
56
  "mobx": "6.9.0",
@@ -63,10 +63,10 @@
63
63
  "sql-formatter": "12.2.0"
64
64
  },
65
65
  "devDependencies": {
66
- "@finos/legend-dev-utils": "2.0.55",
66
+ "@finos/legend-dev-utils": "2.0.56",
67
67
  "@jest/globals": "29.5.0",
68
68
  "cross-env": "7.0.3",
69
- "eslint": "8.38.0",
69
+ "eslint": "8.39.0",
70
70
  "jest": "29.5.0",
71
71
  "npm-run-all": "4.1.5",
72
72
  "rimraf": "5.0.0",
@@ -30,7 +30,7 @@ import {
30
30
  ModalFooterButton,
31
31
  ModalHeader,
32
32
  PanelFormSection,
33
- PanelFormTextField,
33
+ PanelFormValidatedTextField,
34
34
  PlusIcon,
35
35
  } from '@finos/legend-art';
36
36
  import {
@@ -39,6 +39,7 @@ import {
39
39
  PrimitiveType,
40
40
  VariableExpression,
41
41
  Multiplicity,
42
+ isValidIdentifier,
42
43
  } from '@finos/legend-graph';
43
44
  import { generateEnumerableNameFromToken } from '@finos/legend-shared';
44
45
  import { observer } from 'mobx-react-lite';
@@ -46,11 +47,12 @@ import { DEFAULT_CONSTANT_VARIABLE_NAME } from '../stores/QueryBuilderConfig.js'
46
47
  import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
47
48
  import { QueryBuilderConstantExpressionState } from '../stores/QueryBuilderConstantsState.js';
48
49
  import { buildDefaultInstanceValue } from '../stores/shared/ValueSpecificationEditorHelper.js';
49
- import { variableExpression_setName } from '../stores/shared/ValueSpecificationModifierHelper.js';
50
50
  import { BasicValueSpecificationEditor } from './shared/BasicValueSpecificationEditor.js';
51
51
  import { VariableViewer } from './shared/QueryBuilderVariableSelector.js';
52
52
  import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
53
53
  import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
54
+ import { useState } from 'react';
55
+ import { variableExpression_setName } from '../stores/shared/ValueSpecificationModifierHelper.js';
54
56
 
55
57
  // NOTE: We currently only allow constant variables for primitive types of multiplicity ONE.
56
58
  // This is why we don't show multiplicity in the editor.
@@ -68,9 +70,7 @@ const QueryBuilderConstantExpressionEditor = observer(
68
70
  const variableType =
69
71
  constantState.value.genericType?.value.rawType ?? PrimitiveType.STRING;
70
72
  const selectedType = buildElementOption(variableType);
71
- const close = (): void => {
72
- variableState.setSelectedConstant(undefined);
73
- };
73
+
74
74
  const changeType = (val: PackageableElementOption<Type>): void => {
75
75
  if (variableType !== val.value) {
76
76
  constantState.changeValSpecType(val.value);
@@ -84,12 +84,23 @@ const QueryBuilderConstantExpressionEditor = observer(
84
84
  buildElementOption,
85
85
  ),
86
86
  );
87
- const validationMessage = !variableName
88
- ? `Constant Name can't be empty`
89
- : allVariableNames.filter((e) => e === variableName).length >
90
- (isCreating ? 0 : 1)
91
- ? 'Constant Name Already Exists'
92
- : undefined;
87
+
88
+ const [isNameValid, setIsNameValid] = useState<boolean>(true);
89
+
90
+ const getValidationMessage = (constantInput: string): string | undefined =>
91
+ !constantInput
92
+ ? `Constant name can't be empty`
93
+ : isValidIdentifier(constantInput) === false
94
+ ? 'Constant name must be text with no spaces and not start with an uppercase letter or number'
95
+ : allVariableNames.filter((e) => e === constantInput).length >
96
+ (isCreating ? 0 : 1)
97
+ ? 'Constant name already exists'
98
+ : undefined;
99
+
100
+ const close = (): void => {
101
+ variableState.setSelectedConstant(undefined);
102
+ };
103
+
93
104
  const onAction = (): void => {
94
105
  if (isCreating) {
95
106
  variableState.addConstant(constantState);
@@ -123,14 +134,15 @@ const QueryBuilderConstantExpressionEditor = observer(
123
134
  title={`${isCreating ? 'Create Constant' : 'Update Constant'}`}
124
135
  />
125
136
  <ModalBody className="query-builder__variables__modal__body">
126
- <PanelFormTextField
137
+ <PanelFormValidatedTextField
127
138
  name="Constant Name"
128
139
  prompt="Name of constant. Should be descriptive of its purpose."
129
- update={(value: string | undefined): void =>
130
- variableExpression_setName(varExpression, value ?? '')
131
- }
132
- value={varExpression.name}
133
- errorMessage={validationMessage}
140
+ update={(value: string | undefined): void => {
141
+ variableExpression_setName(varExpression, value ?? '');
142
+ }}
143
+ validate={getValidationMessage}
144
+ onValidate={(issue: string | undefined) => setIsNameValid(!issue)}
145
+ value={variableName}
134
146
  isReadOnly={false}
135
147
  />
136
148
  <PanelFormSection>
@@ -181,7 +193,7 @@ const QueryBuilderConstantExpressionEditor = observer(
181
193
  {isCreating && (
182
194
  <ModalFooterButton
183
195
  text="Create"
184
- inProgress={Boolean(validationMessage)}
196
+ disabled={!isNameValid}
185
197
  onClick={onAction}
186
198
  />
187
199
  )}
@@ -26,9 +26,9 @@ import {
26
26
  ModalBody,
27
27
  ModalFooter,
28
28
  ModalHeader,
29
- PanelFormTextField,
30
29
  InfoCircleIcon,
31
30
  ModalFooterButton,
31
+ PanelFormValidatedTextField,
32
32
  } from '@finos/legend-art';
33
33
  import {
34
34
  type Type,
@@ -38,6 +38,7 @@ import {
38
38
  PrimitiveType,
39
39
  Multiplicity,
40
40
  getMultiplicityPrettyDescription,
41
+ isValidIdentifier,
41
42
  } from '@finos/legend-graph';
42
43
  import { useApplicationStore } from '@finos/legend-application';
43
44
  import { generateEnumerableNameFromToken } from '@finos/legend-shared';
@@ -48,6 +49,7 @@ import { LambdaParameterValuesEditor } from './shared/LambdaParameterValuesEdito
48
49
  import { VariableViewer } from './shared/QueryBuilderVariableSelector.js';
49
50
  import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
50
51
  import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
52
+ import { useState } from 'react';
51
53
  import {
52
54
  buildElementOption,
53
55
  getPackageableElementOptionFormatter,
@@ -77,21 +79,6 @@ const VariableExpressionEditor = observer(
77
79
  !queryParametersState.parameterStates.includes(lambdaParameterState);
78
80
  const varState = lambdaParameterState.parameter;
79
81
  const multiplity = varState.multiplicity;
80
- const validationMessage = !varState.name
81
- ? `Parameter name can't be empty`
82
- : allVariableNames.filter((e) => e === varState.name).length >
83
- (isCreating ? 0 : 1)
84
- ? 'Parameter Name Already Exists'
85
- : (isCreating &&
86
- queryParametersState.parameterStates.find(
87
- (p) => p.parameter.name === varState.name,
88
- )) ||
89
- (!isCreating &&
90
- queryParametersState.parameterStates.filter(
91
- (p) => p.parameter.name === varState.name,
92
- ).length > 1)
93
- ? 'Parameter name already exists'
94
- : undefined;
95
82
 
96
83
  // type
97
84
  const variableType =
@@ -124,6 +111,29 @@ const VariableExpressionEditor = observer(
124
111
  lambdaParameterState.changeMultiplicity(varState, val.value);
125
112
  };
126
113
 
114
+ const parameterNameValue = varState.name;
115
+
116
+ const [isNameValid, setIsNameValid] = useState<boolean>(true);
117
+
118
+ const getValidationMessage = (input: string): string | undefined =>
119
+ !input
120
+ ? `Parameter name can't be empty`
121
+ : allVariableNames.filter((e) => e === input).length >
122
+ (isCreating ? 0 : 1)
123
+ ? 'Parameter name already exists'
124
+ : (isCreating &&
125
+ queryParametersState.parameterStates.find(
126
+ (p) => p.parameter.name === input,
127
+ )) ||
128
+ (!isCreating &&
129
+ queryParametersState.parameterStates.filter(
130
+ (p) => p.parameter.name === input,
131
+ ).length > 1)
132
+ ? 'Parameter name already exists'
133
+ : isValidIdentifier(input, true) === false
134
+ ? 'Parameter name must be text with no spaces and not start with an uppercase letter or number'
135
+ : undefined;
136
+
127
137
  const close = (): void => {
128
138
  queryParametersState.setSelectedParameter(undefined);
129
139
  };
@@ -152,14 +162,15 @@ const VariableExpressionEditor = observer(
152
162
  title={`${isCreating ? 'Create Parameter' : 'Update Parameter'}`}
153
163
  />
154
164
  <ModalBody className="query-builder__variables__modal__body">
155
- <PanelFormTextField
165
+ <PanelFormValidatedTextField
156
166
  name="Parameter Name"
157
167
  prompt="Name of the parameter. Should be descriptive of its purpose."
158
- update={(value: string | undefined): void =>
159
- variableExpression_setName(varState, value ?? '')
160
- }
161
- value={varState.name}
162
- errorMessage={validationMessage}
168
+ value={parameterNameValue}
169
+ update={(value: string | undefined): void => {
170
+ variableExpression_setName(varState, value ?? '');
171
+ }}
172
+ validate={getValidationMessage}
173
+ onValidate={(issue: string | undefined) => setIsNameValid(!issue)}
163
174
  isReadOnly={false}
164
175
  />
165
176
  <div className="panel__content__form__section">
@@ -214,7 +225,7 @@ const VariableExpressionEditor = observer(
214
225
  {isCreating && (
215
226
  <ModalFooterButton
216
227
  text="Create"
217
- inProgress={Boolean(validationMessage)}
228
+ disabled={!isNameValid}
218
229
  onClick={onAction}
219
230
  />
220
231
  )}
@@ -119,15 +119,15 @@ export const LambdaParameterValuesEditor = observer(
119
119
  )}
120
120
  {submitAction && (
121
121
  <ModalFooterButton
122
- inProgress={isSubmitAction}
123
- inProgressText={`${submitAction.label}...`}
122
+ inProgressText={
123
+ isSubmitAction ? `${submitAction.label}...` : undefined
124
+ }
124
125
  onClick={submit}
125
126
  text={submitAction.label}
126
127
  />
127
128
  )}
128
129
  <ModalFooterButton
129
- inProgress={isClosingAction}
130
- inProgressText={'Closing...'}
130
+ inProgressText={isClosingAction ? 'Closing...' : undefined}
131
131
  onClick={close}
132
132
  text="Close"
133
133
  />
package/src/index.ts CHANGED
@@ -52,6 +52,8 @@ export * from './components/QuerySetupUtils.js';
52
52
  export * from './components/QueryBuilderTextEditor.js';
53
53
 
54
54
  export { QueryBuilderTextEditorMode } from './stores/QueryBuilderTextEditorState.js';
55
+ export { buildSerialzieFunctionWithGraphFetch } from './stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js';
56
+ export { buildGetAllFunction } from './stores/QueryBuilderValueSpecificationBuilder.js';
55
57
 
56
58
  // ------------------------------------------- Shared components -------------------------------------------
57
59
 
@@ -437,7 +437,7 @@ export abstract class QueryBuilderState implements CommandRegistrar {
437
437
  }
438
438
  } catch (error) {
439
439
  assertErrorThrown(error);
440
- this.resetQueryResult();
440
+ this.resetQueryResult({ preserveResult: options?.preserveResult });
441
441
  this.resetQueryContent();
442
442
  this.unsupportedQueryState.setLambdaError(error);
443
443
  this.unsupportedQueryState.setRawLambda(query);
@@ -448,7 +448,7 @@ export abstract class QueryBuilderState implements CommandRegistrar {
448
448
  )
449
449
  .map((param) => observe_ValueSpecification(param, this.observerContext))
450
450
  .filter(filterByType(VariableExpression));
451
- processParameters(parameters, this);
451
+ processParameters(parameters, this, previousStateParameterValues);
452
452
  }
453
453
  }
454
454
 
@@ -41,7 +41,7 @@ import { buildWatermarkExpression } from './watermark/QueryBuilderWatermarkValue
41
41
  import { buildExecutionQueryFromLambdaFunction } from './shared/LambdaParameterState.js';
42
42
  import type { QueryBuilderConstantExpressionState } from './QueryBuilderConstantsState.js';
43
43
 
44
- const buildGetAllFunction = (
44
+ export const buildGetAllFunction = (
45
45
  _class: Class,
46
46
  multiplicity: Multiplicity,
47
47
  ): SimpleFunctionExpression => {
@@ -18,6 +18,7 @@ import {
18
18
  type ValueSpecification,
19
19
  type LambdaFunction,
20
20
  type PureModel,
21
+ type RootGraphFetchTree,
21
22
  extractElementNameFromPath,
22
23
  GenericType,
23
24
  GenericTypeExplicitReference,
@@ -159,6 +160,34 @@ export const buildPureSerializationConfig = (
159
160
  return newFunction;
160
161
  };
161
162
 
163
+ export const buildSerialzieFunctionWithGraphFetch = (
164
+ tree: RootGraphFetchTree,
165
+ isChecked: boolean,
166
+ precedingExpression: ValueSpecification,
167
+ pureConfig: SimpleFunctionExpression | undefined,
168
+ ): SimpleFunctionExpression => {
169
+ const graphFetchInstance = new GraphFetchTreeInstanceValue();
170
+ graphFetchInstance.values = [tree];
171
+ const serializeFunction = new SimpleFunctionExpression(
172
+ extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SERIALIZE),
173
+ );
174
+ const graphFetchFunc = new SimpleFunctionExpression(
175
+ isChecked
176
+ ? extractElementNameFromPath(
177
+ QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH_CHECKED,
178
+ )
179
+ : extractElementNameFromPath(
180
+ QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH,
181
+ ),
182
+ );
183
+ graphFetchFunc.parametersValues = [precedingExpression, graphFetchInstance];
184
+ serializeFunction.parametersValues = [graphFetchFunc, graphFetchInstance];
185
+ if (pureConfig) {
186
+ serializeFunction.parametersValues.push(pureConfig);
187
+ }
188
+ return serializeFunction;
189
+ };
190
+
162
191
  export const appendGraphFetch = (
163
192
  graphFetchTreeState: QueryBuilderGraphFetchTreeState,
164
193
  lambdaFunction: LambdaFunction,
@@ -184,32 +213,21 @@ export const appendGraphFetch = (
184
213
  graphFetchTreeState.treeData &&
185
214
  !isGraphFetchTreeDataEmpty(graphFetchTreeState.treeData)
186
215
  ) {
187
- const graphFetchInstance = new GraphFetchTreeInstanceValue();
188
- graphFetchInstance.values = [graphFetchTreeState.treeData.tree];
189
- const serializeFunction = new SimpleFunctionExpression(
190
- extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SERIALIZE),
191
- );
192
- const graphFetchFunc = new SimpleFunctionExpression(
193
- graphFetchTreeState.isChecked
194
- ? extractElementNameFromPath(
195
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH_CHECKED,
196
- )
197
- : extractElementNameFromPath(
198
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH,
199
- ),
200
- );
201
- graphFetchFunc.parametersValues = [
216
+ const pureConfig = serializationState.config
217
+ ? buildPureSerializationConfig(
218
+ serializationState.config as unknown as Record<
219
+ PropertyKey,
220
+ boolean
221
+ >,
222
+ graphFetchTreeState.queryBuilderState.graphManagerState.graph,
223
+ )
224
+ : undefined;
225
+ const serializeFunction = buildSerialzieFunctionWithGraphFetch(
226
+ graphFetchTreeState.treeData.tree,
227
+ graphFetchTreeState.isChecked,
202
228
  precedingExpression,
203
- graphFetchInstance,
204
- ];
205
- serializeFunction.parametersValues = [graphFetchFunc, graphFetchInstance];
206
- if (serializationState.config) {
207
- const configFunction = buildPureSerializationConfig(
208
- serializationState.config as unknown as Record<PropertyKey, boolean>,
209
- graphFetchTreeState.queryBuilderState.graphManagerState.graph,
210
- );
211
- serializeFunction.parametersValues.push(configFunction);
212
- }
229
+ pureConfig,
230
+ );
213
231
  lambdaFunction.expressionSequence[0] = serializeFunction;
214
232
  }
215
233
  } else if (