@finos/legend-query-builder 4.14.18 → 4.14.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. package/lib/components/QueryBuilder.d.ts.map +1 -1
  2. package/lib/components/QueryBuilder.js +5 -3
  3. package/lib/components/QueryBuilder.js.map +1 -1
  4. package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -1
  5. package/lib/components/QueryBuilderConstantExpressionPanel.js +71 -45
  6. package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
  7. package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
  8. package/lib/components/QueryBuilderDiffPanel.js +2 -1
  9. package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
  10. package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
  11. package/lib/components/QueryBuilderParametersPanel.js +25 -26
  12. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  13. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +11 -2
  14. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
  15. package/lib/components/QueryBuilderPropertyExpressionEditor.js +35 -10
  16. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  17. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  18. package/lib/components/QueryBuilderSideBar.js +6 -1
  19. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  20. package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
  21. package/lib/components/QueryBuilderTextEditor.js +3 -3
  22. package/lib/components/QueryBuilderTextEditor.js.map +1 -1
  23. package/lib/components/QueryLoader.d.ts.map +1 -1
  24. package/lib/components/QueryLoader.js +5 -3
  25. package/lib/components/QueryLoader.js.map +1 -1
  26. package/lib/components/QueryUsageViewer.d.ts.map +1 -1
  27. package/lib/components/QueryUsageViewer.js +2 -2
  28. package/lib/components/QueryUsageViewer.js.map +1 -1
  29. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts +2 -0
  30. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
  31. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +19 -2
  32. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
  33. package/lib/components/data-access/DataAccessOverview.d.ts.map +1 -1
  34. package/lib/components/data-access/DataAccessOverview.js +6 -1
  35. package/lib/components/data-access/DataAccessOverview.js.map +1 -1
  36. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts.map +1 -1
  37. package/lib/components/execution-plan/ExecutionPlanViewer.js +6 -6
  38. package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
  39. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
  40. package/lib/components/explorer/QueryBuilderExplorerPanel.js +3 -2
  41. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
  42. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
  43. package/lib/components/explorer/QueryBuilderMilestoningEditor.js +3 -2
  44. package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
  45. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
  46. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +6 -3
  47. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -1
  48. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  49. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +4 -3
  50. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
  51. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  52. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +11 -22
  53. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  54. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts.map +1 -1
  55. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +2 -2
  56. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
  57. package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
  58. package/lib/components/result/QueryBuilderResultPanel.js +2 -1
  59. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  60. package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
  61. package/lib/components/result/tds/QueryBuilderTDSGridResult.js +5 -1
  62. package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
  63. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.d.ts.map +1 -1
  64. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js +11 -2
  65. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js.map +1 -1
  66. package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
  67. package/lib/components/shared/BasicValueSpecificationEditor.js +25 -22
  68. package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
  69. package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
  70. package/lib/components/shared/CustomDatePicker.js +8 -5
  71. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  72. package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
  73. package/lib/components/shared/LambdaEditor.js +17 -3
  74. package/lib/components/shared/LambdaEditor.js.map +1 -1
  75. package/lib/components/shared/LambdaParameterValuesEditor.d.ts.map +1 -1
  76. package/lib/components/shared/LambdaParameterValuesEditor.js +2 -2
  77. package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
  78. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts +6 -0
  79. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -1
  80. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js +40 -3
  81. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +1 -1
  82. package/lib/components/watermark/QueryBuilderWatermark.d.ts.map +1 -1
  83. package/lib/components/watermark/QueryBuilderWatermark.js +28 -12
  84. package/lib/components/watermark/QueryBuilderWatermark.js.map +1 -1
  85. package/lib/index.css +17 -1
  86. package/lib/index.css.map +1 -1
  87. package/lib/package.json +1 -1
  88. package/lib/stores/QueryBuilderConstantsState.d.ts +1 -0
  89. package/lib/stores/QueryBuilderConstantsState.d.ts.map +1 -1
  90. package/lib/stores/QueryBuilderConstantsState.js +7 -1
  91. package/lib/stores/QueryBuilderConstantsState.js.map +1 -1
  92. package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts +5 -0
  93. package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts.map +1 -1
  94. package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts +1 -2
  95. package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts.map +1 -1
  96. package/lib/stores/watermark/QueryBuilderWatermarkState.js +2 -12
  97. package/lib/stores/watermark/QueryBuilderWatermarkState.js.map +1 -1
  98. package/package.json +8 -8
  99. package/src/components/QueryBuilder.tsx +14 -2
  100. package/src/components/QueryBuilderConstantExpressionPanel.tsx +145 -69
  101. package/src/components/QueryBuilderDiffPanel.tsx +10 -2
  102. package/src/components/QueryBuilderParametersPanel.tsx +42 -37
  103. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +87 -24
  104. package/src/components/QueryBuilderSideBar.tsx +20 -0
  105. package/src/components/QueryBuilderTextEditor.tsx +6 -4
  106. package/src/components/QueryLoader.tsx +12 -3
  107. package/src/components/QueryUsageViewer.tsx +7 -1
  108. package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +40 -4
  109. package/src/components/data-access/DataAccessOverview.tsx +9 -1
  110. package/src/components/execution-plan/ExecutionPlanViewer.tsx +11 -8
  111. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +5 -2
  112. package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +5 -2
  113. package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +12 -5
  114. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +8 -4
  115. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +56 -72
  116. package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +8 -2
  117. package/src/components/result/QueryBuilderResultPanel.tsx +8 -1
  118. package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +6 -3
  119. package/src/components/result/tds/QueryBuilderTDSSimpleGridResult.tsx +14 -4
  120. package/src/components/shared/BasicValueSpecificationEditor.tsx +39 -25
  121. package/src/components/shared/CustomDatePicker.tsx +18 -5
  122. package/src/components/shared/LambdaEditor.tsx +27 -11
  123. package/src/components/shared/LambdaParameterValuesEditor.tsx +4 -1
  124. package/src/components/shared/QueryBuilderPropertyInfoTooltip.tsx +115 -64
  125. package/src/components/watermark/QueryBuilderWatermark.tsx +60 -19
  126. package/src/stores/QueryBuilderConstantsState.ts +12 -0
  127. package/src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts +9 -0
  128. package/src/stores/watermark/QueryBuilderWatermarkState.ts +2 -12
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilder.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAqCH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAgLxE,eAAO,MAAM,YAAY,WACf;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA2iBjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilder.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAqCH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAgLxE,eAAO,MAAM,YAAY,WACf;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAujBjD,CAAC"}
@@ -75,6 +75,7 @@ const QueryBuilderPostGraphFetchPanel = observer((props) => {
75
75
  });
76
76
  export const QueryBuilder = observer((props) => {
77
77
  const { queryBuilderState } = props;
78
+ const applicationStore = queryBuilderState.applicationStore;
78
79
  const queryBuilderRef = useRef(null);
79
80
  const isQuerySupported = queryBuilderState.isQuerySupported;
80
81
  const fetchStructureState = queryBuilderState.fetchStructureState;
@@ -192,7 +193,7 @@ export const QueryBuilder = observer((props) => {
192
193
  queryBuilderState.changeHistoryState.cacheNewQuery(queryBuilderState.buildQuery());
193
194
  }
194
195
  }, [queryBuilderState, queryBuilderState.hashCode]);
195
- return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER, className: "query-builder", ref: queryBuilderRef, children: [_jsx(BackdropContainer, { elementId: QUERY_BUILDER_COMPONENT_ELEMENT_ID.BACKDROP_CONTAINER }), _jsxs("div", { className: "query-builder__body", children: [_jsx(PanelLoadingIndicator, { isLoading: queryBuilderState.resultState.exportState.isInProgress }), _jsxs("div", { className: "query-builder__content", children: [_jsxs("div", { className: "query-builder__header", children: [_jsxs("div", { className: "query-builder__header__statuses", children: [queryBuilderState.watermarkState.value && (_jsx("button", { className: "query-builder__header__status query-builder__header__status--action", onClick: openWatermark, tabIndex: -1, title: "Used watermark", children: _jsx(WaterDropIcon, {}) })), queryBuilderState.isCalendarEnabled && (_jsx("div", { className: "query-builder__header__status", title: "Used calendar aggregation", children: _jsx(CalendarClockIcon, { className: "query-builder__header__status__icon--calendar" }) })), queryBuilderState.watermarkState.isEditingWatermark && (_jsx(QueryBuilderWatermarkEditor, { queryBuilderState: queryBuilderState }))] }), _jsxs("div", { className: "query-builder__header__actions", children: [_jsxs("div", { className: "query-builder__header__actions__undo-redo", children: [_jsx(UndoButton, { parent: queryBuilderRef, canUndo: queryBuilderState.changeHistoryState.canUndo &&
196
+ return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER, className: "query-builder", ref: queryBuilderRef, children: [_jsx(BackdropContainer, { elementId: QUERY_BUILDER_COMPONENT_ELEMENT_ID.BACKDROP_CONTAINER }), _jsxs("div", { className: "query-builder__body", children: [_jsx(PanelLoadingIndicator, { isLoading: queryBuilderState.resultState.exportState.isInProgress }), _jsxs("div", { className: "query-builder__content", children: [_jsxs("div", { className: "query-builder__header", children: [_jsxs("div", { className: "query-builder__header__statuses", children: [queryBuilderState.watermarkState.value && (_jsx("button", { className: "query-builder__header__status query-builder__header__status--action", onClick: openWatermark, tabIndex: -1, title: "Used watermark", name: "Used watermark", children: _jsx(WaterDropIcon, {}) })), queryBuilderState.isCalendarEnabled && (_jsx("div", { className: "query-builder__header__status", title: "Used calendar aggregation", children: _jsx(CalendarClockIcon, { className: "query-builder__header__status__icon--calendar" }) })), queryBuilderState.watermarkState.isEditingWatermark && (_jsx(QueryBuilderWatermarkEditor, { queryBuilderState: queryBuilderState }))] }), _jsxs("div", { className: "query-builder__header__actions", children: [_jsxs("div", { className: "query-builder__header__actions__undo-redo", children: [_jsx(UndoButton, { parent: queryBuilderRef, canUndo: queryBuilderState.changeHistoryState.canUndo &&
196
197
  queryBuilderState.isQuerySupported, undo: undo }), _jsx(RedoButton, { parent: queryBuilderRef, canRedo: queryBuilderState.changeHistoryState.canRedo &&
197
198
  queryBuilderState.isQuerySupported, redo: redo })] }), _jsxs(DropdownMenu, { className: "query-builder__header__advanced-dropdown", title: "Show Advanced Menu...", content: _jsxs(MenuContent, { children: [_jsxs(MenuContentItem, { onClick: toggleShowFunctionPanel, disabled: !queryBuilderState.isQuerySupported, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.showFunctionsExplorerPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Function(s)" })] }), !queryBuilderState.isParameterSupportDisabled && (_jsxs(MenuContentItem, { onClick: toggleShowParameterPanel, disabled: !queryBuilderState.isQuerySupported ||
198
199
  queryBuilderState.parametersState.parameterStates
@@ -231,8 +232,9 @@ export const QueryBuilder = observer((props) => {
231
232
  root: 'editor-modal__root-container',
232
233
  container: 'editor-modal__container',
233
234
  paper: 'editor-modal__content',
234
- }, children: _jsxs(Modal, { darkMode: true, className: "editor-modal", children: [_jsx(ModalHeader, { title: "Query Entitlements" }), _jsx(ModalBody, { className: "query-builder__data-access-overview", children: _jsx("div", { className: "query-builder__data-access-overview__container", children: queryBuilderState.checkEntitlementsState
235
+ }, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService
236
+ .TEMPORARY__isLightColorThemeEnabled, className: "editor-modal", children: [_jsx(ModalHeader, { title: "Query Entitlements" }), _jsx(ModalBody, { className: "query-builder__data-access-overview", children: _jsx("div", { className: "query-builder__data-access-overview__container", children: queryBuilderState.checkEntitlementsState
235
237
  .dataAccessState ? (_jsx(DataAccessOverview, { dataAccessState: queryBuilderState.checkEntitlementsState
236
- .dataAccessState })) : (_jsx(BlankPanelContent, { children: "No data access information available" })) }) }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { text: "Close", onClick: handleClose }) })] }) }))] }), _jsx(QueryBuilderStatusBar, { queryBuilderState: queryBuilderState })] }));
238
+ .dataAccessState })) : (_jsx(BlankPanelContent, { children: "No data access information available" })) }) }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { text: "Close", onClick: handleClose, type: "secondary" }) })] }) }))] }), _jsx(QueryBuilderStatusBar, { queryBuilderState: queryBuilderState })] }));
237
239
  });
238
240
  //# sourceMappingURL=QueryBuilder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilder.js","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,SAAS,EACT,aAAa,EACb,QAAQ,EACR,aAAa,EACb,aAAa,EACb,kBAAkB,EA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,KAAC,cAAc,IAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,YACpC,KAAC,uBAAuB,IACtB,iBAAiB,EAAE,iBAAiB,GACpC,GACa,CAClB,IACmB,GAClB,IACF,EACL,iBAAiB,CAAC,eAAe,CAAC,IAAI,IAAI,CACzC,KAAC,sBAAsB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CACjE,EACA,iBAAiB,CAAC,sBAAsB;yBACtC,2BAA2B,IAAI,CAChC,KAAC,MAAM,IACL,IAAI,EACF,iBAAiB,CAAC,sBAAsB;6BACrC,2BAA2B,EAEhC,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE;4BACP,IAAI,EAAE,8BAA8B;4BACpC,SAAS,EAAE,yBAAyB;4BACpC,KAAK,EAAE,uBAAuB;yBAC/B,YAED,MAAC,KAAK,IAAC,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAC,cAAc,aAC7C,KAAC,WAAW,IAAC,KAAK,EAAC,oBAAoB,GAAG,EAC1C,KAAC,SAAS,IAAC,SAAS,EAAC,qCAAqC,YACxD,cAAK,SAAS,EAAC,gDAAgD,YAC5D,iBAAiB,CAAC,sBAAsB;6CACtC,eAAe,CAAC,CAAC,CAAC,CACnB,KAAC,kBAAkB,IACjB,eAAe,EACb,iBAAiB,CAAC,sBAAsB;iDACrC,eAAe,GAEpB,CACH,CAAC,CAAC,CAAC,CACF,KAAC,iBAAiB,uDAEE,CACrB,GACG,GACI,EACZ,KAAC,WAAW,cACV,KAAC,iBAAiB,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,WAAW,GAAI,GAC5C,IACR,GACD,CACV,IACG,EACN,KAAC,qBAAqB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,IAC3D,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilder.js","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;A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H,CAAC,CAAC,CAAC,CACF,KAAC,iBAAiB,uDAEE,CACrB,GACG,GACI,EACZ,KAAC,WAAW,cACV,KAAC,iBAAiB,IAChB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,WAAW,EACpB,IAAI,EAAC,WAAW,GAChB,GACU,IACR,GACD,CACV,IACG,EACN,KAAC,qBAAqB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,IAC3D,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderConstantExpressionPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderConstantExpressionPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkCH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA8PxE,eAAO,MAAM,mCAAmC,WACtC;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAkJjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderConstantExpressionPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderConstantExpressionPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAoCH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAuUxE,eAAO,MAAM,mCAAmC,WACtC;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAmJjD,CAAC"}
@@ -15,105 +15,131 @@ 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, clsx, CustomSelectorInput, Dialog, InfoCircleIcon, InputWithInlineValidation, Modal, ModalBody, ModalFooter, ModalFooterButton, ModalHeader, PanelFormSection, PanelFormValidatedTextField, PlusIcon, } from '@finos/legend-art';
18
+ import { BlankPanelPlaceholder, clsx, CustomSelectorInput, Dialog, InfoCircleIcon, Modal, ModalBody, ModalFooter, ModalFooterButton, ModalHeader, PanelFormSection, PanelFormValidatedTextField, PlusIcon, } from '@finos/legend-art';
19
19
  import { PrimitiveType, VariableExpression, Multiplicity, isValidIdentifier, } from '@finos/legend-graph';
20
- import { generateEnumerableNameFromToken } from '@finos/legend-shared';
20
+ import { deepClone, 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
- import { QueryBuilderSimpleConstantExpressionState, QueryBuilderCalculatedConstantExpressionState, } from '../stores/QueryBuilderConstantsState.js';
23
+ import { QueryBuilderSimpleConstantExpressionState, QueryBuilderCalculatedConstantExpressionState, cloneQueryBuilderConstantLambdaEditorState, } from '../stores/QueryBuilderConstantsState.js';
24
24
  import { buildDefaultInstanceValue } from '../stores/shared/ValueSpecificationEditorHelper.js';
25
25
  import { BasicValueSpecificationEditor } from './shared/BasicValueSpecificationEditor.js';
26
26
  import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
27
27
  import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
28
- import React, { useEffect, useState } from 'react';
28
+ import React, { useEffect, useMemo, useState } from 'react';
29
29
  import { variableExpression_setName } from '../stores/shared/ValueSpecificationModifierHelper.js';
30
30
  import { LambdaEditor } from './shared/LambdaEditor.js';
31
31
  import { VariableViewer } from './shared/QueryBuilderVariableSelector.js';
32
32
  import { flowResult } from 'mobx';
33
+ const getConstantNameValidationMessage = (constantInput, allVariableNames, currentConstantName) => !constantInput
34
+ ? `Constant name can't be empty`
35
+ : isValidIdentifier(constantInput) === false
36
+ ? 'Constant name must be text with no spaces and not start with an uppercase letter or number'
37
+ : allVariableNames.filter((e) => e === constantInput).length > 0 &&
38
+ constantInput !== currentConstantName
39
+ ? 'Constant name already exists'
40
+ : undefined;
33
41
  // NOTE: We currently only allow constant variables for primitive types of multiplicity ONE.
34
42
  // This is why we don't show multiplicity in the editor.
35
43
  const QueryBuilderSimpleConstantExpressionEditor = observer((props) => {
44
+ // Read current state
36
45
  const { constantState } = props;
46
+ const varExpression = constantState.variable;
37
47
  const queryBuilderState = constantState.queryBuilderState;
38
48
  const applicationStore = queryBuilderState.applicationStore;
39
49
  const variableState = queryBuilderState.constantState;
40
- const varExpression = constantState.variable;
41
- const variableName = varExpression.name;
42
50
  const allVariableNames = queryBuilderState.allVariableNames;
43
51
  const isCreating = !variableState.constants.includes(constantState);
44
- const valueSpec = constantState.value;
45
- const variableType = constantState.value.genericType?.value.rawType ?? PrimitiveType.STRING;
46
- const selectedType = buildElementOption(variableType);
52
+ // Name
53
+ const stateName = varExpression.name;
54
+ const [selectedName, setSelectedName] = useState(stateName);
55
+ const [isNameValid, setIsNameValid] = useState(true);
56
+ // Value
57
+ const stateValue = constantState.value;
58
+ const [selectedValue, setSelectedValue] = useState(deepClone(stateValue));
59
+ // Type
60
+ const stateType = constantState.value.genericType?.value.rawType ?? PrimitiveType.STRING;
61
+ const [selectedType, setSelectedType] = useState(buildElementOption(stateType));
47
62
  const changeType = (val) => {
48
- if (variableType !== val.value) {
49
- constantState.changeValSpecType(val.value);
63
+ if (val.value !== selectedType.value) {
64
+ setSelectedType(val);
65
+ const newValSpec = buildDefaultInstanceValue(queryBuilderState.graphManagerState.graph, val.value, queryBuilderState.observerContext);
66
+ setSelectedValue(newValSpec);
50
67
  }
51
68
  };
52
69
  const typeOptions = queryBuilderState.graphManagerState.graph.primitiveTypes
53
70
  .map(buildElementOption)
54
71
  .concat(queryBuilderState.graphManagerState.graph.enumerations.map(buildElementOption));
55
- const [isNameValid, setIsNameValid] = useState(true);
56
- const getValidationMessage = (constantInput) => !constantInput
57
- ? `Constant name can't be empty`
58
- : isValidIdentifier(constantInput) === false
59
- ? 'Constant name must be text with no spaces and not start with an uppercase letter or number'
60
- : allVariableNames.filter((e) => e === constantInput).length >
61
- (isCreating ? 0 : 1)
62
- ? 'Constant name already exists'
63
- : undefined;
64
- const close = () => {
72
+ // Modal lifecycle actions
73
+ const handleCancel = () => {
65
74
  variableState.setSelectedConstant(undefined);
66
75
  };
67
- const onAction = () => {
76
+ const handleApply = () => {
77
+ variableExpression_setName(varExpression, selectedName);
78
+ constantState.changeValSpecType(selectedType.value);
79
+ constantState.setValueSpec(selectedValue);
68
80
  if (isCreating) {
69
81
  variableState.addConstant(constantState);
70
82
  }
71
- close();
83
+ handleCancel();
72
84
  };
73
85
  const resetConstantValue = () => {
74
- const valSpec = buildDefaultInstanceValue(queryBuilderState.graphManagerState.graph, variableType, queryBuilderState.observerContext);
75
- constantState.setValueSpec(valSpec);
86
+ const valSpec = buildDefaultInstanceValue(queryBuilderState.graphManagerState.graph, selectedType.value, queryBuilderState.observerContext);
87
+ setSelectedValue(valSpec);
76
88
  };
77
- return (_jsx(Dialog, { open: Boolean(constantState), onClose: close, classes: {
89
+ return (_jsx(Dialog, { open: Boolean(constantState), onClose: handleCancel, classes: {
78
90
  root: 'editor-modal__root-container',
79
91
  container: 'editor-modal__container',
80
92
  paper: 'editor-modal__content',
81
- }, 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) => {
82
- variableExpression_setName(varExpression, value ?? '');
83
- }, 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
93
+ }, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, 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) => {
94
+ setSelectedName(value ?? '');
95
+ }, validate: (constantInput) => getConstantNameValidationMessage(constantInput, allVariableNames, stateName), onValidate: (issue) => setIsNameValid(!issue), value: selectedName, 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
84
96
  .TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: getPackageableElementOptionFormatter({
85
97
  darkMode: !applicationStore.layoutService
86
98
  .TEMPORARY__isLightColorThemeEnabled,
87
- }) })] }), _jsxs(PanelFormSection, { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Value" }), _jsx("div", { className: "query-builder__variable-editor", children: _jsx(BasicValueSpecificationEditor, { valueSpecification: valueSpec, setValueSpecification: (val) => {
88
- constantState.setValueSpec(val);
99
+ }) })] }), _jsxs(PanelFormSection, { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Value" }), _jsx("div", { className: "query-builder__variable-editor", children: _jsx(BasicValueSpecificationEditor, { valueSpecification: selectedValue, setValueSpecification: (val) => {
100
+ setSelectedValue(deepClone(val));
89
101
  }, graph: queryBuilderState.graphManagerState.graph, obseverContext: queryBuilderState.observerContext, typeCheckOption: {
90
- expectedType: variableType,
91
- match: variableType === PrimitiveType.DATETIME,
92
- }, resetValue: resetConstantValue }) })] })] }), _jsxs(ModalFooter, { children: [isCreating && (_jsx(ModalFooterButton, { text: "Create", disabled: !isNameValid, onClick: onAction })), _jsx(ModalFooterButton, { text: "Close", onClick: close })] })] }) }));
102
+ expectedType: selectedType.value,
103
+ match: selectedType.value === PrimitiveType.DATETIME,
104
+ }, resetValue: resetConstantValue }) })] })] }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { text: isCreating ? 'Create' : 'Apply', disabled: !isNameValid, onClick: handleApply }), _jsx(ModalFooterButton, { text: "Cancel", onClick: handleCancel, type: "secondary" })] })] }) }));
93
105
  });
94
106
  const QuerryBuilderCalculatedConstantExpressionEditor = observer((props) => {
107
+ // Read current state
95
108
  const { constantState } = props;
96
109
  const queryBuilderState = constantState.queryBuilderState;
97
110
  const lambdaState = constantState.lambdaState;
98
- const close = () => queryBuilderState.constantState.setSelectedConstant(undefined);
99
111
  const applicationStore = queryBuilderState.applicationStore;
100
- const changeConstantName = (event) => {
101
- variableExpression_setName(constantState.variable, event.target.value);
112
+ const allVariableNames = queryBuilderState.allVariableNames;
113
+ const stateName = constantState.variable.name;
114
+ // Set up temporary state for modal lifecycle
115
+ const [name, setName] = useState(stateName);
116
+ const [isNameValid, setIsNameValid] = useState(true);
117
+ const lambdaStateCopy = useMemo(() => cloneQueryBuilderConstantLambdaEditorState(lambdaState), [lambdaState]);
118
+ // Modal lifecycle actions
119
+ const handleCancel = () => {
120
+ queryBuilderState.constantState.setSelectedConstant(undefined);
121
+ };
122
+ const handleApply = () => {
123
+ variableExpression_setName(constantState.variable, name);
124
+ constantState.lambdaState = lambdaStateCopy;
125
+ handleCancel();
102
126
  };
103
127
  useEffect(() => {
104
- flowResult(lambdaState.convertLambdaObjectToGrammarString({
128
+ flowResult(lambdaStateCopy.convertLambdaObjectToGrammarString({
105
129
  pretty: true,
106
130
  })).catch(applicationStore.alertUnhandledError);
107
- }, [applicationStore, lambdaState]);
108
- return (_jsx(Dialog, { open: true, onClose: close, classes: {
131
+ }, [applicationStore, lambdaStateCopy]);
132
+ return (_jsx(Dialog, { open: true, onClose: handleCancel, classes: {
109
133
  root: 'editor-modal__root-container',
110
134
  container: 'editor-modal__container',
111
135
  paper: 'editor-modal__content',
112
- }, children: _jsxs(Modal, { darkMode: true, className: clsx('editor-modal query-builder__constants__modal', {
113
- 'query-builder__constants__modal--has-error': Boolean(lambdaState.parserError),
114
- }), children: [_jsxs(ModalHeader, { children: [_jsx("div", { className: "modal__title", children: "Update Calculated Constants" }), lambdaState.parserError && (_jsx("div", { className: "modal__title__error-badge", children: "Failed to parse query" }))] }), _jsx(ModalBody, { children: _jsxs("div", { className: clsx('query-builder__constants__modal__content', {
115
- backdrop__element: Boolean(lambdaState.parserError),
116
- }), children: [_jsx("div", { className: "query-builder__constants__modal__name", children: _jsx(InputWithInlineValidation, { className: "query-builder__constants__modal__name__input input--dark", spellCheck: false, value: constantState.variable.name, onChange: changeConstantName, placeholder: "Constant Name" }) }), _jsx(LambdaEditor, { className: "query-builder__constants__lambda-editor", disabled: lambdaState.convertingLambdaToStringState.isInProgress, lambdaEditorState: lambdaState, forceBackdrop: false, autoFocus: true })] }) }), _jsx(ModalFooter, { children: _jsx("button", { className: "btn btn--dark", onClick: close, disabled: Boolean(lambdaState.parserError), children: "Close" }) })] }) }));
136
+ }, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: clsx('editor-modal query-builder__constants__modal', {
137
+ 'query-builder__constants__modal--has-error': Boolean(lambdaStateCopy.parserError),
138
+ }), children: [_jsxs(ModalHeader, { children: [_jsx("div", { className: "modal__title", children: "Update Calculated Constants" }), lambdaStateCopy.parserError && (_jsx("div", { className: "modal__title__error-badge", children: "Failed to parse query" }))] }), _jsx(ModalBody, { children: _jsxs("div", { className: clsx('query-builder__constants__modal__content', {
139
+ backdrop__element: Boolean(lambdaStateCopy.parserError),
140
+ }), children: [_jsx("div", { className: "query-builder__constants__modal__name", children: _jsx(PanelFormValidatedTextField, { value: name, isReadOnly: false, className: "query-builder__constants__modal__name__input input--dark", placeholder: "Constant Name", update: (value) => {
141
+ setName(value ?? '');
142
+ }, validate: (constantInput) => getConstantNameValidationMessage(constantInput, allVariableNames, stateName), onValidate: (issue) => setIsNameValid(!issue) }) }), _jsx(LambdaEditor, { className: "query-builder__constants__lambda-editor", disabled: lambdaStateCopy.convertingLambdaToStringState.isInProgress, lambdaEditorState: lambdaStateCopy, forceBackdrop: false, autoFocus: true })] }) }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { className: "btn btn--dark", onClick: handleApply, disabled: Boolean(lambdaStateCopy.parserError) || !isNameValid, children: "Apply" }), _jsx(ModalFooterButton, { className: "btn btn--dark", onClick: handleCancel, type: "secondary", children: "Cancel" })] })] }) }));
117
143
  });
118
144
  export const QueryBuilderConstantExpressionPanel = observer((props) => {
119
145
  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,IAAI,EACJ,mBAAmB,EACnB,MAAM,EACN,cAAc,EACd,yBAAyB,EACzB,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,2BAA2B,EAC3B,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAEL,yCAAyC,EACzC,6CAA6C,GAC9C,MAA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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,KAAK,EAAE;oCACL,GAAG,EACD,UAAU;wCACV,yCAAyC;wCACvC,CAAC,CAAC,UAAU,CAAC,KAAK;wCAClB,CAAC,CAAC,SAAS;iCAChB,EACD,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,uBAAuB,EAAE,mBAAmB,CAAC,UAAU,CAAC,EACxD,UAAU,EAAE,UAAU,IAjBjB,UAAU,CAAC,IAAI,CAkBpB,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;gBAC7B,mBAAmB,CAAC,aAAa,CAAC,gBAAgB,CAAC,IACjD,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDiffPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderDiffPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiBH,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,+CAA+C,CAAC;AAQvD,eAAO,MAAM,yBAAyB,WAC5B;IAAE,aAAa,EAAE,yBAAyB,CAAA;CAAE;;CA2ErD,CAAC;AAEF,eAAO,MAAM,gCAAgC,WACnC;IAAE,aAAa,EAAE,yBAAyB,CAAA;CAAE;;CA0CrD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderDiffPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderDiffPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiBH,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,+CAA+C,CAAC;AAQvD,eAAO,MAAM,yBAAyB,WAC5B;IAAE,aAAa,EAAE,yBAAyB,CAAA;CAAE;;CA2ErD,CAAC;AAEF,eAAO,MAAM,gCAAgC,WACnC;IAAE,aAAa,EAAE,yBAAyB,CAAA;CAAE;;CAkDrD,CAAC"}
@@ -52,11 +52,12 @@ export const QueryBuilderDiffViewPanel = observer((props) => {
52
52
  });
53
53
  export const QueryBuilderDiffViewPanelDiaglog = observer((props) => {
54
54
  const { diffViewState } = props;
55
+ const applicationStore = diffViewState.changeDetectionState.querybuilderState.applicationStore;
55
56
  const close = () => diffViewState.changeDetectionState.hideDiffViewPanel();
56
57
  return (_jsx(Dialog, { open: Boolean(diffViewState), onClose: close, classes: {
57
58
  root: 'editor-modal__root-container',
58
59
  container: 'editor-modal__container',
59
60
  paper: 'editor-modal__content',
60
- }, children: _jsxs(Modal, { darkMode: true, className: clsx('editor-modal query-builder-text-mode__modal'), children: [_jsxs(ModalHeader, { children: [_jsx(ModalTitle, { title: "Query Diff" }), _jsx(ModalHeaderActions, { children: _jsx("button", { className: "modal__header__action", tabIndex: -1, onClick: close, children: _jsx(TimesIcon, {}) }) })] }), _jsx(ModalBody, { className: "query-builder__diff-panel", children: _jsx(QueryBuilderDiffViewPanel, { diffViewState: diffViewState }) }), _jsx(ModalFooter, { className: "query-builder__diff-panel__actions", children: _jsx(ModalFooterButton, { title: "Close Modal", onClick: close, children: "Close" }) })] }) }));
61
+ }, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: clsx('editor-modal query-builder-text-mode__modal'), children: [_jsxs(ModalHeader, { children: [_jsx(ModalTitle, { title: "Query Diff" }), _jsx(ModalHeaderActions, { children: _jsx("button", { className: "modal__header__action", tabIndex: -1, onClick: close, children: _jsx(TimesIcon, {}) }) })] }), _jsx(ModalBody, { className: "query-builder__diff-panel", children: _jsx(QueryBuilderDiffViewPanel, { diffViewState: diffViewState }) }), _jsx(ModalFooter, { className: "query-builder__diff-panel__actions", children: _jsx(ModalFooterButton, { title: "Close Modal", onClick: close, type: "secondary", children: "Close" }) })] }) }));
61
62
  });
62
63
  //# sourceMappingURL=QueryBuilderDiffPanel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDiffPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderDiffPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAEL,wBAAwB,GACzB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,YAAY,GACb,MAAM,gCAAgC,CAAC;AAExC,MAAM,CAAC,MAAM,yBAAyB,GAAG,QAAQ,CAC/C,CAAC,KAAmD,EAAE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E,CAAC,CAAC,EACZ,OAAO,EAAE,KAAK,YAEd,KAAC,SAAS,KAAG,GACN,GACU,IACT,EACd,KAAC,SAAS,IAAC,SAAS,EAAC,2BAA2B,YAC9C,KAAC,yBAAyB,IAAC,aAAa,EAAE,aAAa,GAAI,GACjD,EACZ,KAAC,WAAW,IAAC,SAAS,EAAC,oCAAoC,YACzD,KAAC,iBAAiB,IAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAE,KAAK,sBAEjC,GACR,IACR,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderDiffPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderDiffPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAEL,wBAAwB,GACzB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,YAAY,GACb,MAAM,gCAAgC,CAAC;AAExC,MAAM,CAAC,MAAM,yBAAyB,GAAG,QAAQ,CAC/C,CAAC,KAAmD,EAAE,EAAE;IACtD,MAAM,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAChC,MAAM,eAAe,GAAG,aAAa,CAAC,uBAAuB,CAAC;IAC9D,MAAM,aAAa,GAAG,aAAa,CAAC,uBAAuB,CAAC;IAE5D,UAAU;IACV,MAAM,YAAY,GAChB,CA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d,KAAC,SAAS,IAAC,SAAS,EAAC,2BAA2B,YAC9C,KAAC,yBAAyB,IAAC,aAAa,EAAE,aAAa,GAAI,GACjD,EACZ,KAAC,WAAW,IAAC,SAAS,EAAC,oCAAoC,YACzD,KAAC,iBAAiB,IAChB,KAAK,EAAC,aAAa,EACnB,OAAO,EAAE,KAAK,EACd,IAAI,EAAC,WAAW,sBAGE,GACR,IACR,GACD,CACV,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;AA8NxE,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA2GjD,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;AAmOxE,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA2GjD,CAAC"}
@@ -40,20 +40,18 @@ const VariableExpressionEditor = observer((props) => {
40
40
  const allVariableNames = queryBuilderState.allVariableNames;
41
41
  const isCreating = !queryParametersState.parameterStates.includes(lambdaParameterState);
42
42
  const varState = lambdaParameterState.parameter;
43
- const multiplity = varState.multiplicity;
44
43
  // type
45
- const variableType = lambdaParameterState.variableType ?? PrimitiveType.STRING;
46
- const selectedType = buildElementOption(variableType);
47
- const selectedMultiplicity = buildMultiplicityOption(multiplity);
44
+ const stateType = lambdaParameterState.variableType ?? PrimitiveType.STRING;
45
+ const [selectedType, setSelectedType] = useState(buildElementOption(stateType));
48
46
  const typeOptions = queryBuilderState.graphManagerState.graph.primitiveTypes
49
47
  .map(buildElementOption)
50
48
  .concat(queryBuilderState.graphManagerState.graph.enumerations.map(buildElementOption));
51
49
  const changeType = (val) => {
52
- if (variableType !== val.value) {
53
- lambdaParameterState.changeVariableType(val.value);
54
- }
50
+ setSelectedType(val);
55
51
  };
56
52
  // multiplicity
53
+ const stateMultiplicity = varState.multiplicity;
54
+ const [selectedMultiplicity, setSelectedMultiplicity] = useState(buildMultiplicityOption(stateMultiplicity));
57
55
  const validParamMultiplicityList = [
58
56
  Multiplicity.ONE,
59
57
  Multiplicity.ZERO_ONE,
@@ -61,44 +59,45 @@ const VariableExpressionEditor = observer((props) => {
61
59
  ];
62
60
  const multilicityOptions = validParamMultiplicityList.map(buildMultiplicityOption);
63
61
  const changeMultiplicity = (val) => {
64
- lambdaParameterState.changeMultiplicity(varState, val.value);
62
+ setSelectedMultiplicity(val);
65
63
  };
66
- const parameterNameValue = varState.name;
64
+ // name
65
+ const stateName = varState.name;
66
+ const [selectedName, setSelectedName] = useState(stateName);
67
67
  const [isNameValid, setIsNameValid] = useState(true);
68
68
  const getValidationMessage = (input) => !input
69
69
  ? `Parameter name can't be empty`
70
- : allVariableNames.filter((e) => e === input).length >
71
- (isCreating ? 0 : 1)
70
+ : allVariableNames.filter((e) => e === input).length > 0 &&
71
+ input !== stateName
72
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;
81
- const close = () => {
73
+ : isValidIdentifier(input, true) === false
74
+ ? 'Parameter name must be text with no spaces and not start with an uppercase letter or number'
75
+ : undefined;
76
+ // modal lifecycle actions
77
+ const handleCancel = () => {
82
78
  queryParametersState.setSelectedParameter(undefined);
83
79
  };
84
- const onAction = () => {
80
+ const handleApply = () => {
81
+ lambdaParameterState.changeVariableType(selectedType.value);
82
+ lambdaParameterState.changeMultiplicity(varState, selectedMultiplicity.value);
83
+ variableExpression_setName(varState, selectedName);
85
84
  if (isCreating) {
86
85
  queryParametersState.addParameter(lambdaParameterState);
87
86
  }
88
- close();
87
+ handleCancel();
89
88
  };
90
- return (_jsx(Dialog, { open: Boolean(lambdaParameterState), onClose: close, classes: {
89
+ return (_jsx(Dialog, { open: Boolean(lambdaParameterState), onClose: handleCancel, classes: {
91
90
  root: 'editor-modal__root-container',
92
91
  container: 'editor-modal__container',
93
92
  paper: 'editor-modal__content',
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 ?? '');
93
+ }, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, 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: selectedName, update: (value) => {
94
+ setSelectedName(value ?? '');
96
95
  }, 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
97
96
  .TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: getPackageableElementOptionFormatter({
98
97
  darkMode: !applicationStore.layoutService
99
98
  .TEMPORARY__isLightColorThemeEnabled,
100
99
  }) })] }), _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
101
- .TEMPORARY__isLightColorThemeEnabled })] })] }), _jsxs(ModalFooter, { children: [isCreating && (_jsx(ModalFooterButton, { text: "Create", disabled: !isNameValid, onClick: onAction })), _jsx(ModalFooterButton, { onClick: close, text: "Close" })] })] }) }));
100
+ .TEMPORARY__isLightColorThemeEnabled })] })] }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { text: isCreating ? 'Create' : 'Update', disabled: !isNameValid, onClick: handleApply }), _jsx(ModalFooterButton, { onClick: handleCancel, text: "Cancel", type: "secondary" })] })] }) }));
102
101
  });
103
102
  export const QueryBuilderParametersPanel = observer((props) => {
104
103
  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,cAAc,EACd,iBAAiB,EACjB,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,O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AAC,oBAAoB,CAAC,MAAM,CAAC;wCAClD,cAAc,EAAE,GAAG,EAAE,CACnB,mBAAmB,CAAC,eAAe,CAAC,MAAM,CAAC;qCAC9C,IATI,MAAM,CAAC,IAAI,CAUhB,CACH,CAAC,EACH,CAAC,mBAAmB,CAAC,eAAe,CAAC,MAAM,IAAI,CAC9C,KAAC,qBAAqB,IACpB,IAAI,EAAC,iBAAiB,EACtB,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,YAAY,EACrB,eAAe,EAAC,KAAK,EACrB,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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AE,CACnB,mBAAmB,CAAC,eAAe,CAAC,MAAM,CAAC;qCAC9C,IATI,MAAM,CAAC,IAAI,CAUhB,CACH,CAAC,EACH,CAAC,mBAAmB,CAAC,eAAe,CAAC,MAAM,IAAI,CAC9C,KAAC,qBAAqB,IACpB,IAAI,EAAC,iBAAiB,EACtB,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,YAAY,EACrB,eAAe,EAAC,KAAK,EACrB,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"}
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { type ChangeEvent } from 'react';
16
17
  import { type QueryBuilderPropertyExpressionState } from '../stores/QueryBuilderPropertyEditorState.js';
17
18
  import { type QueryBuilderExplorerTreePropertyNodeData } from '../stores/explorer/QueryBuilderExplorerState.js';
18
19
  export declare const QueryBuilderPropertyExpressionEditor: ((props: {
@@ -20,12 +21,20 @@ export declare const QueryBuilderPropertyExpressionEditor: ((props: {
20
21
  }) => import("react/jsx-runtime").JSX.Element) & {
21
22
  displayName: string;
22
23
  };
24
+ export declare const QueryBuilderEditablePropertyName: ((props: {
25
+ columnName: string;
26
+ changeColumnName?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
27
+ error: string | undefined;
28
+ title: string;
29
+ }) => import("react/jsx-runtime").JSX.Element) & {
30
+ displayName: string;
31
+ };
23
32
  export declare const QueryBuilderPropertyExpressionBadge: ((props: {
24
33
  columnName?: string;
25
34
  propertyExpressionState: QueryBuilderPropertyExpressionState;
26
35
  onPropertyExpressionChange: (node: QueryBuilderExplorerTreePropertyNodeData) => void;
27
- setIsEditingColumnName?: (isEditing: boolean) => void;
28
- error?: boolean | undefined;
36
+ changeColumnName?: (event: ChangeEvent<HTMLInputElement>) => void;
37
+ error?: string | undefined;
29
38
  }) => import("react/jsx-runtime").JSX.Element) & {
30
39
  displayName: string;
31
40
  };
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPropertyExpressionEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderPropertyExpressionEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAgBH,OAAO,EAGL,KAAK,mCAAmC,EACzC,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAGL,KAAK,wCAAwC,EAC9C,MAAM,iDAAiD,CAAC;AAoQzD,eAAO,MAAM,oCAAoC,WACvC;IAAE,uBAAuB,EAAE,mCAAmC,CAAA;CAAE;;CAmEzE,CAAC;AAEF,eAAO,MAAM,mCAAmC;iBAE/B,MAAM;6BACM,mCAAmC;uCAEpD,wCAAwC,KAC3C,IAAI;yCAC4B,OAAO,KAAK,IAAI;YAC7C,OAAO,GAAG,SAAS;;;CAkH9B,CAAC"}
1
+ {"version":3,"file":"QueryBuilderPropertyExpressionEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderPropertyExpressionEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,OAAO,CAAC;AAef,OAAO,EAGL,KAAK,mCAAmC,EACzC,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAGL,KAAK,wCAAwC,EAC9C,MAAM,iDAAiD,CAAC;AAoQzD,eAAO,MAAM,oCAAoC,WACvC;IAAE,uBAAuB,EAAE,mCAAmC,CAAA;CAAE;;CAuEzE,CAAC;AAEF,eAAO,MAAM,gCAAgC;gBAE7B,MAAM;gCAEL,YAAY,gBAAgB,CAAC,KAAK,IAAI;WAE5C,MAAM,GAAG,SAAS;WAClB,MAAM;;;CAyDhB,CAAC;AAEF,eAAO,MAAM,mCAAmC;iBAE/B,MAAM;6BACM,mCAAmC;uCAEpD,wCAAwC,KAC3C,IAAI;+BACkB,YAAY,gBAAgB,CAAC,KAAK,IAAI;YACzD,MAAM,GAAG,SAAS;;;CAoG7B,CAAC"}