@finos/legend-query-builder 4.14.9 → 4.14.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/lib/__lib__/QueryBuilderEvent.d.ts +2 -1
  2. package/lib/__lib__/QueryBuilderEvent.d.ts.map +1 -1
  3. package/lib/__lib__/QueryBuilderEvent.js +1 -0
  4. package/lib/__lib__/QueryBuilderEvent.js.map +1 -1
  5. package/lib/__lib__/QueryBuilderTesting.d.ts +3 -1
  6. package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
  7. package/lib/__lib__/QueryBuilderTesting.js +3 -0
  8. package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
  9. package/lib/components/QueryBuilder.d.ts.map +1 -1
  10. package/lib/components/QueryBuilder.js +45 -27
  11. package/lib/components/QueryBuilder.js.map +1 -1
  12. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  13. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +86 -44
  14. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
  15. package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
  16. package/lib/components/shared/LambdaEditor.js +10 -5
  17. package/lib/components/shared/LambdaEditor.js.map +1 -1
  18. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -1
  19. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js +12 -11
  20. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +1 -1
  21. package/lib/index.css +2 -2
  22. package/lib/index.css.map +1 -1
  23. package/lib/package.json +1 -1
  24. package/lib/stores/QueryBuilderChangeHistoryState.d.ts +35 -0
  25. package/lib/stores/QueryBuilderChangeHistoryState.d.ts.map +1 -0
  26. package/lib/stores/QueryBuilderChangeHistoryState.js +106 -0
  27. package/lib/stores/QueryBuilderChangeHistoryState.js.map +1 -0
  28. package/lib/stores/QueryBuilderState.d.ts +2 -0
  29. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  30. package/lib/stores/QueryBuilderState.js +6 -0
  31. package/lib/stores/QueryBuilderState.js.map +1 -1
  32. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts +2 -2
  33. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts.map +1 -1
  34. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js +7 -7
  35. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js.map +1 -1
  36. package/package.json +5 -5
  37. package/src/__lib__/QueryBuilderEvent.ts +2 -0
  38. package/src/__lib__/QueryBuilderTesting.ts +3 -0
  39. package/src/components/QueryBuilder.tsx +41 -0
  40. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +174 -94
  41. package/src/components/shared/LambdaEditor.tsx +10 -8
  42. package/src/components/shared/QueryBuilderPropertyInfoTooltip.tsx +81 -65
  43. package/src/stores/QueryBuilderChangeHistoryState.ts +129 -0
  44. package/src/stores/QueryBuilderState.ts +6 -0
  45. package/src/stores/fetch-structure/tds/QueryResultSetModifierState.ts +7 -12
  46. package/tsconfig.json +1 -0
@@ -25,7 +25,8 @@ export declare enum QUERY_BUILDER_EVENT {
25
25
  EXPORT_QUERY_DATA__SUCCESS = "query-builder.export-query-data.success",
26
26
  MAPPING_MODEL_COVERAGE_ANALYSYS__LAUNCH = "query-builder.mapping-model-coverage-analysis.launch",
27
27
  MAPPING_MODEL_COVERAGE_ANALYSYS__SUCCESS = "query-builder.mapping-model-coverage-analysis.success",
28
- UNSUPPORTED_QUERY_LAUNCH = "query-builder.unsupported-query.lanuch"
28
+ UNSUPPORTED_QUERY_LAUNCH = "query-builder.unsupported-query.lanuch",
29
+ CHANGE_HISTORY_ERROR = "query-builder.change-history.error"
29
30
  }
30
31
  export declare enum QUERY_BUILDER_FILTER_EVENT {
31
32
  FILTER__CREATE__CONDITION__LAUNCH = "query-builder.filter.create-condition.launch",
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderEvent.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,mBAAmB;IAC7B,iBAAiB,mCAAmC;IACpD,+BAA+B,uCAAuC;IACtE,4BAA4B,oCAAoC;IAChE,yBAAyB,2CAA2C;IAEpE,kBAAkB,oCAAoC;IACtD,gCAAgC,wCAAwC;IACxE,6BAA6B,qCAAqC;IAClE,6BAA6B,qCAAqC;IAClE,0BAA0B,4CAA4C;IAEtE,uCAAuC,yDAAyD;IAChG,wCAAwC,0DAA0D;IAClG,wBAAwB,2CAA2C;CACpE;AAED,oBAAY,0BAA0B;IACpC,iCAAiC,iDAAiD;IAClF,8CAA8C,4DAA4D;IAC1G,sCAAsC,qDAAqD;IAC3F,6BAA6B,6CAA6C;IAC1E,8BAA8B,8CAA8C;IAC5E,8BAA8B,8CAA8C;IAC5E,4BAA4B,4CAA4C;CACzE;AAED,oBAAY,+BAA+B;IACzC,iCAAiC,sDAAsD;IACvF,8CAA8C,iEAAiE;IAC/G,sCAAsC,0DAA0D;IAChG,6BAA6B,kDAAkD;IAC/E,8BAA8B,mDAAmD;IACjF,8BAA8B,mDAAmD;IACjF,4BAA4B,iDAAiD;CAC9E"}
1
+ {"version":3,"file":"QueryBuilderEvent.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,mBAAmB;IAC7B,iBAAiB,mCAAmC;IACpD,+BAA+B,uCAAuC;IACtE,4BAA4B,oCAAoC;IAChE,yBAAyB,2CAA2C;IAEpE,kBAAkB,oCAAoC;IACtD,gCAAgC,wCAAwC;IACxE,6BAA6B,qCAAqC;IAClE,6BAA6B,qCAAqC;IAClE,0BAA0B,4CAA4C;IAEtE,uCAAuC,yDAAyD;IAChG,wCAAwC,0DAA0D;IAClG,wBAAwB,2CAA2C;IAEnE,oBAAoB,uCAAuC;CAC5D;AAED,oBAAY,0BAA0B;IACpC,iCAAiC,iDAAiD;IAClF,8CAA8C,4DAA4D;IAC1G,sCAAsC,qDAAqD;IAC3F,6BAA6B,6CAA6C;IAC1E,8BAA8B,8CAA8C;IAC5E,8BAA8B,8CAA8C;IAC5E,4BAA4B,4CAA4C;CACzE;AAED,oBAAY,+BAA+B;IACzC,iCAAiC,sDAAsD;IACvF,8CAA8C,iEAAiE;IAC/G,sCAAsC,0DAA0D;IAChG,6BAA6B,kDAAkD;IAC/E,8BAA8B,mDAAmD;IACjF,8BAA8B,mDAAmD;IACjF,4BAA4B,iDAAiD;CAC9E"}
@@ -27,6 +27,7 @@ export var QUERY_BUILDER_EVENT;
27
27
  QUERY_BUILDER_EVENT["MAPPING_MODEL_COVERAGE_ANALYSYS__LAUNCH"] = "query-builder.mapping-model-coverage-analysis.launch";
28
28
  QUERY_BUILDER_EVENT["MAPPING_MODEL_COVERAGE_ANALYSYS__SUCCESS"] = "query-builder.mapping-model-coverage-analysis.success";
29
29
  QUERY_BUILDER_EVENT["UNSUPPORTED_QUERY_LAUNCH"] = "query-builder.unsupported-query.lanuch";
30
+ QUERY_BUILDER_EVENT["CHANGE_HISTORY_ERROR"] = "query-builder.change-history.error";
30
31
  })(QUERY_BUILDER_EVENT || (QUERY_BUILDER_EVENT = {}));
31
32
  export var QUERY_BUILDER_FILTER_EVENT;
32
33
  (function (QUERY_BUILDER_FILTER_EVENT) {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderEvent.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,mBAeX;AAfD,WAAY,mBAAmB;IAC7B,2EAAoD,CAAA;IACpD,6FAAsE,CAAA;IACtE,uFAAgE,CAAA;IAChE,2FAAoE,CAAA;IAEpE,6EAAsD,CAAA;IACtD,+FAAwE,CAAA;IACxE,yFAAkE,CAAA;IAClE,yFAAkE,CAAA;IAClE,6FAAsE,CAAA;IAEtE,uHAAgG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AA4E,CAAA;IAC5E,0GAA4E,CAAA;IAC5E,sGAAwE,CAAA;AAC1E,CAAC,EARW,0BAA0B,KAA1B,0BAA0B,QAQrC;AAED,MAAM,CAAN,IAAY,+BAQX;AARD,WAAY,+BAA+B;IACzC,0HAAuF,CAAA;IACvF,kJAA+G,CAAA;IAC/G,mIAAgG,CAAA;IAChG,kHAA+E,CAAA;IAC/E,oHAAiF,CAAA;IACjF,oHAAiF,CAAA;IACjF,gHAA6E,CAAA;AAC/E,CAAC,EARW,+BAA+B,KAA/B,+BAA+B,QAQ1C"}
@@ -39,6 +39,8 @@ export declare enum QUERY_BUILDER_TEST_ID {
39
39
  QUERY_BUILDER_RESULT_VALUES_TDS = "QUERY_BUILDER_RESULT_VALUES_TDS",
40
40
  QUERY_BUILDER_TDS_RESULT_MODIFIER_PROMPT = "query-builder__tds__result-modifier-prompt",
41
41
  QUERY_BUILDER_RESULT_PANEL = "query__builder__result__panel",
42
- QUERY_BUILDER_RESULT_ANALYTICS = "query__builder__result__analytics"
42
+ QUERY_BUILDER_RESULT_ANALYTICS = "query__builder__result__analytics",
43
+ QUERY_BUILDER_RESULT_MODIFIER_PANEL = "query__builder__result__modifier__panel",
44
+ QUERY_BUILDER_RESULT_MODIFIER_PANEL_SORT_REMOVE_BTN = "query__builder__projection__options__sort__remove-btn"
43
45
  }
44
46
  //# sourceMappingURL=QueryBuilderTesting.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTesting.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,qBAAqB;IAC/B,2BAA2B,iCAAiC;IAE5D,aAAa,mBAAmB;IAChC,mBAAmB,0BAA0B;IAC7C,4BAA4B,oCAAoC;IAChE,iBAAiB,wBAAwB;IACzC,mCAAmC,wCAAwC;IAC3E,yBAAyB,iCAAiC;IAE1D,0BAA0B,kCAAkC;IAC5D,yBAAyB,iCA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44,8 @@ export var QUERY_BUILDER_TEST_ID;
44
44
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_TDS_RESULT_MODIFIER_PROMPT"] = "query-builder__tds__result-modifier-prompt";
45
45
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_RESULT_PANEL"] = "query__builder__result__panel";
46
46
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_RESULT_ANALYTICS"] = "query__builder__result__analytics";
47
+ // result modifier panel
48
+ QUERY_BUILDER_TEST_ID["QUERY_BUILDER_RESULT_MODIFIER_PANEL"] = "query__builder__result__modifier__panel";
49
+ QUERY_BUILDER_TEST_ID["QUERY_BUILDER_RESULT_MODIFIER_PANEL_SORT_REMOVE_BTN"] = "query__builder__projection__options__sort__remove-btn";
47
50
  })(QUERY_BUILDER_TEST_ID || (QUERY_BUILDER_TEST_ID = {}));
48
51
  //# sourceMappingURL=QueryBuilderTesting.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTesting.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,qBA+BX;AA/BD,WAAY,qBAAqB;IAC/B,qFAA4D,CAAA;IAE5D,yDAAgC,CAAA;IAChC,sEAA6C,CAAA;IAC7C,yFAAgE,CAAA;IAChE,kEAAyC,CAAA;IACzC,oGAA2E,CAAA;IAC3E,mFAA0D,CAAA;IAC1D,eAAe;IACf,qFAA4D,CAAA;IAC5D,mFAA0D,CAAA;IAC1D,8FAAqE,CAAA;IACrE,8GAAqF,CAAA;IACrF,mIAA0G,CAAA;IAC1G,4HAAmG,CAAA;IACnG,cAAc;IACd,+FAAsE,CAAA;IACtE,wHAA+F,CAAA;IAC/F,gFAAuD,CAAA;IACvD,4EAAmD,CAAA;IACnD,wGAA+E,CAAA;IAC/E,+EAAsD,CAAA;IACtD,6EAAoD,CAAA;IACpD,oFAA2D,CAAA;IAC3D,eAAe;IACf,oFAA2D,CAAA;IAC3D,4FAAmE,CAAA;IACnE,gHAAuF,CAAA;IACvF,qFAA4D,CAAA;IAC5D,6FAAoE,CAAA;AACtE,CAAC,EA/BW,qBAAqB,KAArB,qBAAqB,QA+BhC"}
1
+ {"version":3,"file":"QueryBuilderTesting.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,qBAkCX;AAlCD,WAAY,qBAAqB;IAC/B,qFAA4D,CAAA;IAE5D,yDAAgC,CAAA;IAChC,sEAA6C,CAAA;IAC7C,yFAAgE,CAAA;IAChE,kEAAyC,CAAA;IACzC,oGAA2E,CAAA;IAC3E,mFAA0D,CAAA;IAC1D,eAAe;IACf,qFAA4D,CAAA;IAC5D,mFAA0D,CAAA;IAC1D,8FAAqE,CAAA;IACrE,8GAAqF,CAAA;IACrF,mIAA0G,CAAA;IAC1G,4HAAmG,CAAA;IACnG,cAAc;IACd,+FAAsE,CAAA;IACtE,wHAA+F,CAAA;IAC/F,gFAAuD,CAAA;IACvD,4EAAmD,CAAA;IACnD,wGAA+E,CAAA;IAC/E,+EAAsD,CAAA;IACtD,6EAAoD,CAAA;IACpD,oFAA2D,CAAA;IAC3D,eAAe;IACf,oFAA2D,CAAA;IAC3D,4FAAmE,CAAA;IACnE,gHAAuF,CAAA;IACvF,qFAA4D,CAAA;IAC5D,6FAAoE,CAAA;IACpE,wBAAwB;IACxB,wGAA+E,CAAA;IAC/E,sIAA6G,CAAA;AAC/G,CAAC,EAlCW,qBAAqB,KAArB,qBAAqB,QAkChC"}
@@ -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;AA8KxE,eAAO,MAAM,YAAY,WACf;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAogBjD,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;;CA2iBjD,CAAC"}
@@ -40,6 +40,8 @@ import { QUERY_BUILDER_SETTING_KEY } from '../__lib__/QueryBuilderSetting.js';
40
40
  import { QUERY_BUILDER_COMPONENT_ELEMENT_ID } from './QueryBuilderComponentElement.js';
41
41
  import { DataAccessOverview } from './data-access/DataAccessOverview.js';
42
42
  import { QueryChat } from './QueryChat.js';
43
+ import { useEffect, useRef } from 'react';
44
+ import { RedoButton, UndoButton } from '@finos/legend-lego/application';
43
45
  const QueryBuilderStatusBar = observer((props) => {
44
46
  const { queryBuilderState } = props;
45
47
  const applicationStore = useApplicationStore();
@@ -73,6 +75,7 @@ const QueryBuilderPostGraphFetchPanel = observer((props) => {
73
75
  });
74
76
  export const QueryBuilder = observer((props) => {
75
77
  const { queryBuilderState } = props;
78
+ const queryBuilderRef = useRef(null);
76
79
  const isQuerySupported = queryBuilderState.isQuerySupported;
77
80
  const fetchStructureState = queryBuilderState.fetchStructureState;
78
81
  const isTDSState = fetchStructureState.implementation instanceof QueryBuilderTDSState;
@@ -176,34 +179,49 @@ export const QueryBuilder = observer((props) => {
176
179
  }
177
180
  return null;
178
181
  };
179
- return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER, className: "query-builder", 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 }))] }), _jsx("div", { className: "query-builder__header__actions", children: _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 ||
180
- queryBuilderState.parametersState.parameterStates
181
- .length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.showParametersPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Parameter(s)" })] })), _jsxs(MenuContentItem, { onClick: toggleConstantPanel, disabled: !queryBuilderState.isQuerySupported ||
182
- queryBuilderState.constantState.constants.length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.constantState
183
- .showConstantPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Constant(s)" })] }), _jsxs(MenuContentItem, { onClick: toggleShowFilterPanel, disabled: !queryBuilderState.isQuerySupported ||
184
- Array.from(queryBuilderState.filterState.nodes.values()).length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.filterState.showPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Filter" })] }), _jsx(MenuContentDivider, {}), _jsxs(MenuContentItem, { onClick: toggleShowOLAPGroupByPanel, disabled: !queryBuilderState.isQuerySupported ||
185
- !(queryBuilderState.fetchStructureState
186
- .implementation instanceof QueryBuilderTDSState) ||
187
- queryBuilderState.fetchStructureState.implementation
188
- .windowState.windowColumns.length > 0, children: [_jsx(MenuContentItemIcon, { children: isTDSState &&
189
- guaranteeType(queryBuilderState.fetchStructureState
190
- .implementation, QueryBuilderTDSState).showWindowFuncPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Window Function(s)" })] }), _jsxs(MenuContentItem, { onClick: toggleShowPostFilterPanel, disabled: !queryBuilderState.isQuerySupported ||
191
- !(queryBuilderState.fetchStructureState
192
- .implementation instanceof QueryBuilderTDSState) ||
193
- Array.from(queryBuilderState.fetchStructureState.implementation.postFilterState.nodes.values()).length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.fetchStructureState
182
+ const undo = () => {
183
+ queryBuilderState.changeHistoryState.undo();
184
+ };
185
+ const redo = () => {
186
+ queryBuilderState.changeHistoryState.redo();
187
+ };
188
+ useEffect(() => {
189
+ // this condition is for passing all exisitng tests because when we initialize a queryBuilderState for a test,
190
+ // we use an empty RawLambda with an empty class and this useEffect is called earlier than initializeWithQuery()
191
+ if (queryBuilderState.isQuerySupported && queryBuilderState.class) {
192
+ queryBuilderState.changeHistoryState.cacheNewQuery(queryBuilderState.buildQuery());
193
+ }
194
+ }, [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
+ queryBuilderState.isQuerySupported, undo: undo }), _jsx(RedoButton, { parent: queryBuilderRef, canRedo: queryBuilderState.changeHistoryState.canRedo &&
197
+ 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
+ queryBuilderState.parametersState.parameterStates
199
+ .length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.showParametersPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Parameter(s)" })] })), _jsxs(MenuContentItem, { onClick: toggleConstantPanel, disabled: !queryBuilderState.isQuerySupported ||
200
+ queryBuilderState.constantState.constants.length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.constantState
201
+ .showConstantPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Constant(s)" })] }), _jsxs(MenuContentItem, { onClick: toggleShowFilterPanel, disabled: !queryBuilderState.isQuerySupported ||
202
+ Array.from(queryBuilderState.filterState.nodes.values()).length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.filterState.showPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Filter" })] }), _jsx(MenuContentDivider, {}), _jsxs(MenuContentItem, { onClick: toggleShowOLAPGroupByPanel, disabled: !queryBuilderState.isQuerySupported ||
203
+ !(queryBuilderState.fetchStructureState
204
+ .implementation instanceof QueryBuilderTDSState) ||
205
+ queryBuilderState.fetchStructureState.implementation
206
+ .windowState.windowColumns.length > 0, children: [_jsx(MenuContentItemIcon, { children: isTDSState &&
207
+ guaranteeType(queryBuilderState.fetchStructureState
208
+ .implementation, QueryBuilderTDSState).showWindowFuncPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Window Function(s)" })] }), _jsxs(MenuContentItem, { onClick: toggleShowPostFilterPanel, disabled: !queryBuilderState.isQuerySupported ||
209
+ !(queryBuilderState.fetchStructureState
210
+ .implementation instanceof QueryBuilderTDSState) ||
211
+ Array.from(queryBuilderState.fetchStructureState.implementation.postFilterState.nodes.values()).length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.fetchStructureState
212
+ .implementation instanceof QueryBuilderTDSState &&
213
+ queryBuilderState.fetchStructureState.implementation
214
+ .showPostFilterPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Post-Filter" })] }), _jsxs(MenuContentItem, { onClick: openWatermark, children: [_jsx(MenuContentItemIcon, { children: null }), _jsx(MenuContentItemLabel, { children: "Show Watermark" })] }), _jsxs(MenuContentItem, { onClick: toggleEnableCalendar, disabled: !queryBuilderState.isQuerySupported ||
215
+ !(queryBuilderState.fetchStructureState
216
+ .implementation instanceof QueryBuilderTDSState), children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.isCalendarEnabled ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Enable Calendar" })] }), _jsx(MenuContentDivider, {}), _jsxs(MenuContentItem, { onClick: openCheckEntitlmentsEditor, disabled: queryBuilderState.isQuerySupported &&
217
+ queryBuilderState.fetchStructureState
194
218
  .implementation instanceof QueryBuilderTDSState &&
195
- queryBuilderState.fetchStructureState.implementation
196
- .showPostFilterPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Post-Filter" })] }), _jsxs(MenuContentItem, { onClick: openWatermark, children: [_jsx(MenuContentItemIcon, { children: null }), _jsx(MenuContentItemLabel, { children: "Show Watermark" })] }), _jsxs(MenuContentItem, { onClick: toggleEnableCalendar, disabled: !queryBuilderState.isQuerySupported ||
197
- !(queryBuilderState.fetchStructureState
198
- .implementation instanceof QueryBuilderTDSState), children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.isCalendarEnabled ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Enable Calendar" })] }), _jsx(MenuContentDivider, {}), _jsxs(MenuContentItem, { onClick: openCheckEntitlmentsEditor, disabled: queryBuilderState.isQuerySupported &&
199
- queryBuilderState.fetchStructureState
200
- .implementation instanceof QueryBuilderTDSState &&
201
- queryBuilderState.fetchStructureState.implementation
202
- .projectionColumns.length === 0, children: [_jsx(MenuContentItemIcon, {}), _jsx(MenuContentItemLabel, { children: "Check Entitlements" })] }), _jsxs(MenuContentItem, { onClick: editQueryInPure, children: [_jsx(MenuContentItemIcon, {}), _jsx(MenuContentItemLabel, { children: "Edit Query in Pure" })] }), _jsxs(MenuContentItem, { onClick: showQueryProtocol, children: [_jsx(MenuContentItemIcon, {}), _jsx(MenuContentItemLabel, { children: "Show Query Protocol" })] })] }), menuProps: {
203
- anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
204
- transformOrigin: { vertical: 'top', horizontal: 'right' },
205
- elevation: 7,
206
- }, children: [_jsx("div", { className: "query-builder__header__advanced-dropdown__label", children: "Advanced" }), _jsx(CaretDownIcon, { className: "query-builder__header__advanced-dropdown__icon" })] }) })] }), _jsx("div", { className: "query-builder__main", children: _jsxs(ResizablePanelGroup, { orientation: "horizontal", children: [_jsx(ResizablePanel, { minSize: 120, children: isQuerySupported ? (_jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsx(ResizablePanel, { size: 450, minSize: 300, children: _jsx(QueryBuilderSidebar, { queryBuilderState: queryBuilderState, children: _jsxs(ResizablePanelGroup, { orientation: "horizontal", children: [_jsx(ResizablePanel, { minSize: 40, direction: 1, children: _jsx(QueryBuilderExplorerPanel, { queryBuilderState: queryBuilderState }) }), queryBuilderState.showFunctionsExplorerPanel && (_jsx(ResizablePanelSplitter, {})), queryBuilderState.showFunctionsExplorerPanel && (_jsx(ResizablePanel, { minSize: 40, direction: queryBuilderState.showParametersPanel
219
+ queryBuilderState.fetchStructureState.implementation
220
+ .projectionColumns.length === 0, children: [_jsx(MenuContentItemIcon, {}), _jsx(MenuContentItemLabel, { children: "Check Entitlements" })] }), _jsxs(MenuContentItem, { onClick: editQueryInPure, children: [_jsx(MenuContentItemIcon, {}), _jsx(MenuContentItemLabel, { children: "Edit Query in Pure" })] }), _jsxs(MenuContentItem, { onClick: showQueryProtocol, children: [_jsx(MenuContentItemIcon, {}), _jsx(MenuContentItemLabel, { children: "Show Query Protocol" })] })] }), menuProps: {
221
+ anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
222
+ transformOrigin: { vertical: 'top', horizontal: 'right' },
223
+ elevation: 7,
224
+ }, children: [_jsx("div", { className: "query-builder__header__advanced-dropdown__label", children: "Advanced" }), _jsx(CaretDownIcon, { className: "query-builder__header__advanced-dropdown__icon" })] })] })] }), _jsx("div", { className: "query-builder__main", children: _jsxs(ResizablePanelGroup, { orientation: "horizontal", children: [_jsx(ResizablePanel, { minSize: 120, children: isQuerySupported ? (_jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsx(ResizablePanel, { size: 450, minSize: 300, children: _jsx(QueryBuilderSidebar, { queryBuilderState: queryBuilderState, children: _jsxs(ResizablePanelGroup, { orientation: "horizontal", children: [_jsx(ResizablePanel, { minSize: 40, direction: 1, children: _jsx(QueryBuilderExplorerPanel, { queryBuilderState: queryBuilderState }) }), queryBuilderState.showFunctionsExplorerPanel && (_jsx(ResizablePanelSplitter, {})), queryBuilderState.showFunctionsExplorerPanel && (_jsx(ResizablePanel, { minSize: 40, direction: queryBuilderState.showParametersPanel
207
225
  ? [1, -1]
208
226
  : -1, children: _jsx(QueryBuilderFunctionsExplorerPanel, { queryBuilderState: queryBuilderState }) })), queryBuilderState.showParametersPanel && (_jsx(ResizablePanelSplitter, {})), queryBuilderState.showParametersPanel && (_jsx(ResizablePanel, { minSize: 40, direction: -1, children: _jsx(QueryBuilderParametersPanel, { queryBuilderState: queryBuilderState }) })), queryBuilderState.constantState
209
227
  .showConstantPanel && _jsx(ResizablePanelSplitter, {}), queryBuilderState.constantState
@@ -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,EAClB,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAA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ACF,CAAC"}
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,EAClB,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,QAAQ,EACR,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,qBAAqB,EACrB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC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B,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 +1 @@
1
- {"version":3,"file":"QueryBuilderResultModifierPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAuBH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAwJrG,eAAO,MAAM,wBAAwB,WAC3B;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CAmK3C,CAAC"}
1
+ {"version":3,"file":"QueryBuilderResultModifierPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA4BH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAgLrG,eAAO,MAAM,wBAAwB,WAC3B;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CAsN3C,CAAC"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /**
3
3
  * Copyright (c) 2020-present, Goldman Sachs
4
4
  *
@@ -15,16 +15,17 @@ 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 { clsx, Dialog, CustomSelectorInput, CheckSquareIcon, SquareIcon, TimesIcon, Modal, ModalBody, ModalFooter, ModalHeader, SortIcon, DropdownMenu, MenuContent, MenuContentItem, ModalFooterButton, } from '@finos/legend-art';
18
+ import { clsx, Dialog, CustomSelectorInput, CheckSquareIcon, SquareIcon, TimesIcon, Modal, ModalBody, ModalFooter, ModalHeader, SortIcon, DropdownMenu, MenuContent, MenuContentItem, ModalFooterButton, InputWithInlineValidation, } from '@finos/legend-art';
19
19
  import { SortColumnState } from '../../stores/fetch-structure/tds/QueryResultSetModifierState.js';
20
- import { guaranteeNonNullable } from '@finos/legend-shared';
20
+ import { addUniqueEntry, deleteEntry, guaranteeNonNullable, } from '@finos/legend-shared';
21
21
  import { useApplicationStore } from '@finos/legend-application';
22
22
  import { COLUMN_SORT_TYPE } from '../../graph/QueryBuilderMetaModelConst.js';
23
+ import { useEffect, useState } from 'react';
24
+ import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
23
25
  const ColumnSortEditor = observer((props) => {
24
- const { tdsState, sortState } = props;
26
+ const { sortColumns, setSortColumns, sortState, tdsColumns } = props;
25
27
  const applicationStore = useApplicationStore();
26
- const sortColumns = tdsState.resultSetModifierState.sortColumns;
27
- const projectionOptions = tdsState.tdsColumns
28
+ const projectionOptions = tdsColumns
28
29
  .filter((projectionCol) => projectionCol === sortState.columnState ||
29
30
  !sortColumns.some((sortCol) => sortCol.columnState === projectionCol))
30
31
  .map((projectionCol) => ({
@@ -35,13 +36,17 @@ const ColumnSortEditor = observer((props) => {
35
36
  label: sortState.columnState.columnName,
36
37
  value: sortState,
37
38
  };
39
+ const sortType = sortState.sortType;
38
40
  const onChange = (val) => {
39
41
  if (val !== null) {
40
42
  sortState.setColumnState(val.value);
41
43
  }
42
44
  };
43
- const sortType = sortState.sortType;
44
- const deleteColumnSort = () => tdsState.resultSetModifierState.deleteSortColumn(sortState);
45
+ const deleteColumnSort = () => {
46
+ const newSortColumns = [...sortColumns];
47
+ deleteEntry(newSortColumns, sortState);
48
+ setSortColumns(newSortColumns);
49
+ };
45
50
  const changeSortBy = (sortOp) => () => {
46
51
  sortState.setSortType(sortOp);
47
52
  };
@@ -50,13 +55,11 @@ const ColumnSortEditor = observer((props) => {
50
55
  anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
51
56
  transformOrigin: { vertical: 'top', horizontal: 'left' },
52
57
  elevation: 7,
53
- }, children: _jsx("div", { className: "query-builder__projection__options__sort__sortby--btn", tabIndex: -1, title: "Choose SortBy Operator...", children: _jsx(SortIcon, {}) }) }), _jsx("button", { className: "query-builder__projection__options__sort__remove-btn btn--dark btn--caution", onClick: deleteColumnSort, tabIndex: -1, title: "Remove", children: _jsx(TimesIcon, {}) })] }));
58
+ }, children: _jsx("div", { className: "query-builder__projection__options__sort__sortby--btn", tabIndex: -1, title: "Choose SortBy Operator...", children: _jsx(SortIcon, {}) }) }), _jsx("button", { className: "query-builder__projection__options__sort__remove-btn btn--dark btn--caution", onClick: deleteColumnSort, tabIndex: -1, title: "Remove", "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_MODIFIER_PANEL_SORT_REMOVE_BTN, children: _jsx(TimesIcon, {}) })] }));
54
59
  });
55
60
  const ColumnsSortEditor = observer((props) => {
56
- const { tdsState } = props;
57
- const resultSetModifierState = tdsState.resultSetModifierState;
58
- const sortColumns = resultSetModifierState.sortColumns;
59
- const projectionOptions = tdsState.projectionColumns
61
+ const { projectionColumns, sortColumns, setSortColumns, tdsColumns } = props;
62
+ const projectionOptions = projectionColumns
60
63
  .filter((projectionCol) => !sortColumns.some((sortCol) => sortCol.columnState === projectionCol))
61
64
  .map((projectionCol) => ({
62
65
  label: projectionCol.columnName,
@@ -65,54 +68,93 @@ const ColumnsSortEditor = observer((props) => {
65
68
  const addValue = () => {
66
69
  if (projectionOptions.length > 0) {
67
70
  const sortColumn = new SortColumnState(guaranteeNonNullable(projectionOptions[0]).value);
68
- resultSetModifierState.addSortColumn(sortColumn);
71
+ const newSortColumns = [...sortColumns];
72
+ addUniqueEntry(newSortColumns, sortColumn);
73
+ setSortColumns(newSortColumns);
69
74
  }
70
75
  };
71
- return (_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Sort and Order" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Choose the column(s) and order direction(s) that the results should be arranged by" }), _jsxs("div", { className: "panel__content__form__section__list", children: [_jsx("div", { className: "panel__content__form__section__list__items", children: sortColumns.map((value) => (_jsx(ColumnSortEditor, { tdsState: tdsState, sortState: value }, value.columnState.uuid))) }), _jsx("div", { className: "panel__content__form__section__list__new-item__add", children: _jsx("button", { className: "panel__content__form__section__list__new-item__add-btn btn btn--dark", disabled: !projectionOptions.length, onClick: addValue, tabIndex: -1, children: "Add Value" }) })] })] }));
76
+ return (_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Sort and Order" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Choose the column(s) and order direction(s) that the results should be arranged by" }), _jsxs("div", { className: "panel__content__form__section__list", children: [_jsx("div", { className: "panel__content__form__section__list__items", children: sortColumns.map((value) => (_jsx(ColumnSortEditor, { sortColumns: sortColumns, setSortColumns: setSortColumns, sortState: value, tdsColumns: tdsColumns }, value.columnState.uuid))) }), _jsx("div", { className: "panel__content__form__section__list__new-item__add", children: _jsx("button", { className: "panel__content__form__section__list__new-item__add-btn btn btn--dark", disabled: !projectionOptions.length, onClick: addValue, tabIndex: -1, children: "Add Value" }) })] })] }));
72
77
  });
73
78
  export const QueryResultModifierModal = observer((props) => {
74
- const { tdsState: tdsState } = props;
79
+ // Read current state
80
+ const { tdsState } = props;
75
81
  const resultSetModifierState = tdsState.resultSetModifierState;
76
- const limitResults = resultSetModifierState.limit;
77
- const distinct = resultSetModifierState.distinct;
78
- const close = () => resultSetModifierState.setShowModal(false);
79
- const toggleDistinct = () => resultSetModifierState.toggleDistinct();
80
- const changeValue = (event) => {
81
- const val = event.target.value;
82
- resultSetModifierState.setLimit(val === '' ? undefined : parseInt(val, 10));
83
- };
84
- const handleSliceStartChange = (start, end) => {
85
- const slice = [start, end];
86
- resultSetModifierState.setSlice(slice);
82
+ const stateSortColumns = resultSetModifierState.sortColumns;
83
+ const stateDistinct = resultSetModifierState.distinct;
84
+ const stateLimitResults = resultSetModifierState.limit;
85
+ const stateSlice = resultSetModifierState.slice;
86
+ // Set up temp state for modal lifecycle
87
+ const [sortColumns, setSortColumns] = useState([...stateSortColumns]);
88
+ const [distinct, setDistinct] = useState(stateDistinct);
89
+ const [limitResults, setLimitResults] = useState(stateLimitResults);
90
+ const [slice, setSlice] = useState(stateSlice ?? [undefined, undefined]);
91
+ // Sync temp state with tdsState when modal is opened/closed
92
+ useEffect(() => {
93
+ setSortColumns([...stateSortColumns]);
94
+ setDistinct(stateDistinct);
95
+ setLimitResults(stateLimitResults);
96
+ setSlice(stateSlice ?? [undefined, undefined]);
97
+ }, [
98
+ resultSetModifierState.showModal,
99
+ stateSortColumns,
100
+ stateDistinct,
101
+ stateLimitResults,
102
+ stateSlice,
103
+ ]);
104
+ // Handle user actions
105
+ const closeModal = () => resultSetModifierState.setShowModal(false);
106
+ const applyChanges = () => {
107
+ resultSetModifierState.setSortColumns(sortColumns);
108
+ resultSetModifierState.setDistinct(distinct);
109
+ resultSetModifierState.setLimit(limitResults);
110
+ if (slice[0] !== undefined && slice[1] !== undefined) {
111
+ resultSetModifierState.setSlice([slice[0], slice[1]]);
112
+ }
113
+ else {
114
+ resultSetModifierState.setSlice(undefined);
115
+ }
116
+ resultSetModifierState.setShowModal(false);
87
117
  };
88
- const clearSlice = () => {
89
- resultSetModifierState.setSlice(undefined);
118
+ const handleLimitResultsChange = (event) => {
119
+ const val = event.target.value.replace(/[^0-9]/g, '');
120
+ setLimitResults(val === '' ? undefined : parseInt(val, 10));
90
121
  };
91
- const addSlice = () => {
92
- resultSetModifierState.setSlice([0, 1]);
122
+ const handleSliceChange = (start, end) => {
123
+ const newSlice = [start, end];
124
+ setSlice(newSlice);
93
125
  };
94
126
  const changeSliceStart = (event) => {
95
- const currentSlice = resultSetModifierState.slice;
96
- const val = event.target.value;
97
- const start = typeof val === 'number' ? val : parseInt(val, 10);
98
- if (currentSlice) {
99
- handleSliceStartChange(start, currentSlice[1]);
127
+ const val = event.target.value.replace(/[^0-9]/g, '');
128
+ if (val === '') {
129
+ handleSliceChange(undefined, slice[1]);
130
+ }
131
+ else {
132
+ const start = typeof val === 'number' ? val : parseInt(val, 10);
133
+ handleSliceChange(start, slice[1]);
100
134
  }
101
135
  };
102
136
  const changeSliceEnd = (event) => {
103
- const currentSlice = resultSetModifierState.slice;
104
- const val = event.target.value;
105
- const end = typeof val === 'number' ? val : parseInt(val, 10);
106
- if (currentSlice) {
107
- handleSliceStartChange(currentSlice[0], end);
137
+ const val = event.target.value.replace(/[^0-9]/g, '');
138
+ if (val === '') {
139
+ handleSliceChange(slice[0], undefined);
140
+ }
141
+ else {
142
+ const end = typeof val === 'number' ? val : parseInt(val, 10);
143
+ handleSliceChange(slice[0], end);
108
144
  }
109
145
  };
110
- return (_jsx(Dialog, { open: Boolean(resultSetModifierState.showModal), onClose: close, classes: {
146
+ // Error states
147
+ const isInvalidSlice = (slice[0] === undefined && slice[1] !== undefined) ||
148
+ (slice[0] !== undefined && slice[1] === undefined) ||
149
+ (slice[0] !== undefined &&
150
+ slice[1] !== undefined &&
151
+ slice[0] >= slice[1]);
152
+ return (_jsx(Dialog, { open: Boolean(resultSetModifierState.showModal), onClose: closeModal, classes: {
111
153
  root: 'editor-modal__root-container',
112
154
  container: 'editor-modal__container',
113
155
  paper: 'editor-modal__content',
114
- }, children: _jsxs(Modal, { darkMode: true, className: "editor-modal", children: [_jsx(ModalHeader, { title: "Result Set Modifier" }), _jsx(ModalBody, { className: "query-builder__projection__modal__body", children: _jsxs("div", { className: "query-builder__projection__options", children: [_jsx(ColumnsSortEditor, { tdsState: tdsState }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Eliminate Duplicate Rows" }), _jsxs("div", { className: "panel__content__form__section__toggler", onClick: toggleDistinct, children: [_jsx("button", { className: clsx('panel__content__form__section__toggler__btn', {
156
+ }, "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_MODIFIER_PANEL, children: _jsxs(Modal, { darkMode: true, className: "editor-modal query-builder__projection__modal", children: [_jsx(ModalHeader, { title: "Result Set Modifier" }), _jsx(ModalBody, { className: "query-builder__projection__modal__body", children: _jsxs("div", { className: "query-builder__projection__options", children: [_jsx(ColumnsSortEditor, { projectionColumns: tdsState.projectionColumns, sortColumns: sortColumns, setSortColumns: setSortColumns, tdsColumns: tdsState.tdsColumns }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Eliminate Duplicate Rows" }), _jsxs("div", { className: "panel__content__form__section__toggler", onClick: () => setDistinct(!distinct), children: [_jsx("button", { className: clsx('panel__content__form__section__toggler__btn', {
115
157
  'panel__content__form__section__toggler__btn--toggled': distinct,
116
- }), tabIndex: -1, children: distinct ? _jsx(CheckSquareIcon, {}) : _jsx(SquareIcon, {}) }), _jsx("div", { className: "panel__content__form__section__toggler__prompt", children: "Remove duplicate rows from the results" })] })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Limit Results" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Specify the maximum total number of rows the output will produce" }), _jsx("input", { className: "panel__content__form__section__input panel__content__form__section__number-input", spellCheck: false, type: "number", value: limitResults ?? '', onChange: changeValue })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Slice" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Reduce the number of rows in the provided TDS, selecting the set of rows in the specified range between start and stop" }), resultSetModifierState.slice ? (_jsx(_Fragment, { children: _jsxs("div", { className: "query-builder__result__slice", children: [_jsx("input", { className: "input--dark query-builder__result__slice__input", spellCheck: false, value: resultSetModifierState.slice[0], onChange: changeSliceStart, type: "number" }), _jsx("div", { className: "query-builder__result__slice__range", children: ".." }), _jsx("input", { className: "input--dark query-builder__result__slice__input", spellCheck: false, value: resultSetModifierState.slice[1], onChange: changeSliceEnd, type: "number" }), _jsx("button", { className: "query-builder__projection__options__sort__remove-btn btn--dark btn--caution", onClick: clearSlice, tabIndex: -1, title: "Remove", children: _jsx(TimesIcon, {}) })] }) })) : (_jsx("div", { className: "panel__content__form__section__list__new-item__add", children: _jsx("button", { className: "panel__content__form__section__list__new-item__add-btn btn btn--dark", onClick: addSlice, tabIndex: -1, children: "Add Slice" }) }))] })] }) }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { onClick: close, text: "Close" }) })] }) }));
158
+ }), tabIndex: -1, children: distinct ? _jsx(CheckSquareIcon, {}) : _jsx(SquareIcon, {}) }), _jsx("div", { className: "panel__content__form__section__toggler__prompt", children: "Remove duplicate rows from the results" })] })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("label", { htmlFor: "query-builder__projection__modal__limit-results-input", className: "panel__content__form__section__header__label", children: "Limit Results" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Specify the maximum total number of rows the output will produce" }), _jsx("input", { id: "query-builder__projection__modal__limit-results-input", className: "panel__content__form__section__input panel__content__form__section__number-input", spellCheck: false, type: "text", value: limitResults ?? '', onChange: handleLimitResultsChange })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("label", { htmlFor: "query-builder__projection__modal__slice-start-input", className: "panel__content__form__section__header__label", children: "Slice" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Reduce the number of rows in the provided TDS, selecting the set of rows in the specified range between start and stop" }), _jsxs("div", { className: "query-builder__result__slice", children: [_jsx("div", { className: "query-builder__result__slice__input__wrapper", children: _jsx(InputWithInlineValidation, { id: "query-builder__projection__modal__slice-start-input", className: "input--dark query-builder__result__slice__input", spellCheck: false, value: slice[0] ?? '', onChange: changeSliceStart, type: "text", error: isInvalidSlice ? 'Invalid slice' : undefined }) }), _jsx("div", { className: "query-builder__result__slice__range", children: ".." }), _jsx("div", { className: "query-builder__result__slice__input__wrapper", children: _jsx(InputWithInlineValidation, { className: "input--dark query-builder__result__slice__input", spellCheck: false, value: slice[1] ?? '', onChange: changeSliceEnd, type: "text", error: isInvalidSlice ? 'Invalid slice' : undefined }) })] })] })] }) }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { onClick: applyChanges, text: "Apply", disabled: isInvalidSlice }), _jsx(ModalFooterButton, { onClick: closeModal, text: "Cancel", type: "secondary" })] })] }) }));
117
159
  });
118
160
  //# sourceMappingURL=QueryBuilderResultModifierPanel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultModifierPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,MAAM,EACN,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,SAAS,EACT,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,iEAAiE,CAAC;AAClG,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAGhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAE7E,MAAM,gBAAgB,GAAG,QAAQ,CAC/B,CAAC,KAAqE,EAAE,EAAE;IACxE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACtC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CA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EACnB,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAC,QAAQ,YAEd,KAAC,SAAS,KAAG,GACN,IACL,GACL,CACJ,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAC,oDAAoD,YACjE,iBACE,SAAS,EAAC,sEAAsE,EAChF,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,CAAC,CAAC,0BAGL,GACL,CACP,IACG,IACF,GACI,EACZ,KAAC,WAAW,cACV,KAAC,iBAAiB,IAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAC,OAAO,GAAG,GACtC,IACR,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderResultModifierPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,MAAM,EACN,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,SAAS,EACT,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,iEAAiE,CAAC;AAClG,OAAO,EACL,cAAc,EACd,WAAW,EACX,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAGhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,MAAM,gBAAgB,GAAG,QAAQ,CAC/B,CAAC,KAK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OAAO,GAAG,SAAS,CAAC;CACpC;;CAiGJ,CAAC;AAEF,eAAO,MAAM,YAAY,WAAoB,qBAAqB;;CAmChE,CAAC"}
@@ -56,6 +56,9 @@ const LambdaEditor_Inner = observer((props) => {
56
56
  transformLambdaToString(!isExpanded).catch(applicationStore.alertUnhandledError);
57
57
  setExpanded(!isExpanded);
58
58
  }
59
+ else if (!forceExpansion && parserError) {
60
+ setExpanded(!isExpanded);
61
+ }
59
62
  };
60
63
  useEffect(() => {
61
64
  if (!editor && textInputRef.current) {
@@ -231,7 +234,7 @@ const LambdaEditor_Inner = observer((props) => {
231
234
  'lambda-editor__editor__expected-return-type--highlighted': matchedExpectedType?.(),
232
235
  }), onClick: selectTypeLabel, tabIndex: -1, title: "Toggle highlight expected type", children: expectedType?.name ?? 'unknown' })), !onExpectedTypeLabelSelect && (_jsx("div", { className: clsx('lambda-editor__editor__expected-return-type', {
233
236
  'lambda-editor__editor__expected-return-type--highlighted': matchedExpectedType?.(),
234
- }), children: expectedType?.name ?? 'unknown' }))] })), !disableExpansion && !forceExpansion && (_jsx("button", { className: "lambda-editor__editor__expand-btn", onClick: toggleExpandedMode, disabled: Boolean(parserError), tabIndex: -1, title: "Toggle Expand", children: isExpanded ? _jsx(LongArrowAltUpIcon, {}) : _jsx(LongArrowAltDownIcon, {}) })), !disablePopUp && (_jsx("button", { className: "lambda-editor__action", onClick: openInPopUp, disabled: Boolean(parserError), tabIndex: -1, title: "Open in a popup...", children: _jsx(FilledWindowMaximizeIcon, {}) }))] }), !hideErrorBar && (_jsx(LambdaEditor_ErrorFeedback, { error: parserError ?? compilationError, discardChanges: discardChanges }))] }));
237
+ }), children: expectedType?.name ?? 'unknown' }))] })), !disableExpansion && !forceExpansion && (_jsx("button", { className: "lambda-editor__editor__expand-btn", onClick: toggleExpandedMode, tabIndex: -1, title: "Toggle Expand", children: isExpanded ? _jsx(LongArrowAltUpIcon, {}) : _jsx(LongArrowAltDownIcon, {}) })), !disablePopUp && (_jsx("button", { className: "lambda-editor__action", onClick: openInPopUp, tabIndex: -1, title: "Open in a popup...", children: _jsx(FilledWindowMaximizeIcon, {}) }))] }), !hideErrorBar && (_jsx(LambdaEditor_ErrorFeedback, { error: parserError ?? compilationError, discardChanges: discardChanges }))] }));
235
238
  });
236
239
  const LambdaEditor_PopUp = observer((props) => {
237
240
  const { className, disabled, lambdaEditorState, transformStringToLambda, title, onClose, } = props;
@@ -343,10 +346,12 @@ const LambdaEditor_PopUp = observer((props) => {
343
346
  }
344
347
  }
345
348
  useEffect(() => {
346
- flowResult(lambdaEditorState.convertLambdaObjectToGrammarString({
347
- pretty: true,
348
- preserveCompilationError: true,
349
- })).catch(applicationStore.alertUnhandledError);
349
+ if (!lambdaEditorState.parserError) {
350
+ flowResult(lambdaEditorState.convertLambdaObjectToGrammarString({
351
+ pretty: true,
352
+ preserveCompilationError: true,
353
+ })).catch(applicationStore.alertUnhandledError);
354
+ }
350
355
  }, [applicationStore, lambdaEditorState]);
351
356
  // dispose editor
352
357
  useEffect(() => () => {