@finos/legend-query-builder 4.1.2 → 4.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
  2. package/lib/components/QueryBuilderPropertyExpressionEditor.js +1 -1
  3. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  4. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  5. package/lib/components/QueryBuilderResultPanel.js +91 -24
  6. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  7. package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
  8. package/lib/components/QueryBuilderTextEditor.js +3 -1
  9. package/lib/components/QueryBuilderTextEditor.js.map +1 -1
  10. package/lib/components/execution-plan/AllocationExecutionNodeViewer.d.ts +23 -0
  11. package/lib/components/execution-plan/AllocationExecutionNodeViewer.d.ts.map +1 -0
  12. package/lib/components/execution-plan/AllocationExecutionNodeViewer.js +32 -0
  13. package/lib/components/execution-plan/AllocationExecutionNodeViewer.js.map +1 -0
  14. package/lib/components/execution-plan/ConstantExecutionNodeViewer.d.ts +23 -0
  15. package/lib/components/execution-plan/ConstantExecutionNodeViewer.d.ts.map +1 -0
  16. package/lib/components/execution-plan/ConstantExecutionNodeViewer.js +35 -0
  17. package/lib/components/execution-plan/ConstantExecutionNodeViewer.js.map +1 -0
  18. package/lib/components/execution-plan/DataTypeResultTypeViewer.d.ts +21 -0
  19. package/lib/components/execution-plan/DataTypeResultTypeViewer.d.ts.map +1 -0
  20. package/lib/components/execution-plan/DataTypeResultTypeViewer.js +31 -0
  21. package/lib/components/execution-plan/DataTypeResultTypeViewer.js.map +1 -0
  22. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts +10 -4
  23. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts.map +1 -1
  24. package/lib/components/execution-plan/ExecutionPlanViewer.js +74 -62
  25. package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
  26. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.d.ts +25 -0
  27. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.d.ts.map +1 -0
  28. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js +47 -0
  29. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js.map +1 -0
  30. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.d.ts +23 -0
  31. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.d.ts.map +1 -0
  32. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.js +31 -0
  33. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.js.map +1 -0
  34. package/lib/components/execution-plan/ResultTypeViewer.d.ts +21 -0
  35. package/lib/components/execution-plan/ResultTypeViewer.d.ts.map +1 -0
  36. package/lib/components/execution-plan/ResultTypeViewer.js +33 -0
  37. package/lib/components/execution-plan/ResultTypeViewer.js.map +1 -0
  38. package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts +9 -1
  39. package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts.map +1 -1
  40. package/lib/components/execution-plan/SQLExecutionNodeViewer.js +12 -6
  41. package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
  42. package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts +23 -0
  43. package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts.map +1 -0
  44. package/lib/components/execution-plan/SequenceExecutionNodeViewer.js +38 -0
  45. package/lib/components/execution-plan/SequenceExecutionNodeViewer.js.map +1 -0
  46. package/lib/components/execution-plan/TDSResultTypeViewer.d.ts +21 -0
  47. package/lib/components/execution-plan/TDSResultTypeViewer.d.ts.map +1 -0
  48. package/lib/components/execution-plan/TDSResultTypeViewer.js +25 -0
  49. package/lib/components/execution-plan/TDSResultTypeViewer.js.map +1 -0
  50. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
  51. package/lib/components/explorer/QueryBuilderMilestoningEditor.js +3 -3
  52. package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
  53. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  54. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +25 -34
  55. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  56. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  57. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +68 -22
  58. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  59. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts.map +1 -1
  60. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +4 -4
  61. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
  62. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  63. package/lib/components/filter/QueryBuilderFilterPanel.js +21 -32
  64. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  65. package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
  66. package/lib/components/shared/LambdaEditor.js +10 -3
  67. package/lib/components/shared/LambdaEditor.js.map +1 -1
  68. package/lib/index.css +2 -2
  69. package/lib/index.css.map +1 -1
  70. package/lib/package.json +4 -4
  71. package/lib/stores/QueryBuilderResultState.d.ts +0 -3
  72. package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
  73. package/lib/stores/QueryBuilderResultState.js +2 -25
  74. package/lib/stores/QueryBuilderResultState.js.map +1 -1
  75. package/lib/stores/QueryBuilderTextEditorState.d.ts +3 -1
  76. package/lib/stores/QueryBuilderTextEditorState.d.ts.map +1 -1
  77. package/lib/stores/QueryBuilderTextEditorState.js +2 -2
  78. package/lib/stores/QueryBuilderTextEditorState.js.map +1 -1
  79. package/lib/stores/QueryLoaderState.d.ts +2 -0
  80. package/lib/stores/QueryLoaderState.d.ts.map +1 -1
  81. package/lib/stores/QueryLoaderState.js +7 -3
  82. package/lib/stores/QueryLoaderState.js.map +1 -1
  83. package/lib/stores/execution-plan/ExecutionPlanState.d.ts +14 -1
  84. package/lib/stores/execution-plan/ExecutionPlanState.d.ts.map +1 -1
  85. package/lib/stores/execution-plan/ExecutionPlanState.js +86 -3
  86. package/lib/stores/execution-plan/ExecutionPlanState.js.map +1 -1
  87. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  88. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +3 -1
  89. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  90. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts +4 -1
  91. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -1
  92. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js +5 -3
  93. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -1
  94. package/lib/stores/shared/LambdaEditorState.d.ts +7 -2
  95. package/lib/stores/shared/LambdaEditorState.d.ts.map +1 -1
  96. package/lib/stores/shared/LambdaEditorState.js +7 -2
  97. package/lib/stores/shared/LambdaEditorState.js.map +1 -1
  98. package/package.json +12 -12
  99. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +1 -2
  100. package/src/components/QueryBuilderResultPanel.tsx +146 -30
  101. package/src/components/QueryBuilderTextEditor.tsx +3 -1
  102. package/src/components/execution-plan/AllocationExecutionNodeViewer.tsx +77 -0
  103. package/src/components/execution-plan/ConstantExecutionNodeViewer.tsx +82 -0
  104. package/src/components/execution-plan/DataTypeResultTypeViewer.tsx +52 -0
  105. package/src/components/execution-plan/ExecutionPlanViewer.tsx +205 -195
  106. package/src/components/execution-plan/FunctionParametersValidationNodeViewer.tsx +118 -0
  107. package/src/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.tsx +68 -0
  108. package/src/components/execution-plan/ResultTypeViewer.tsx +37 -0
  109. package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +50 -19
  110. package/src/components/execution-plan/SequenceExecutionNodeViewer.tsx +95 -0
  111. package/src/components/execution-plan/TDSResultTypeViewer.tsx +59 -0
  112. package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +5 -8
  113. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +37 -62
  114. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +161 -45
  115. package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +6 -8
  116. package/src/components/filter/QueryBuilderFilterPanel.tsx +49 -73
  117. package/src/components/shared/LambdaEditor.tsx +10 -3
  118. package/src/stores/QueryBuilderResultState.ts +1 -42
  119. package/src/stores/QueryBuilderTextEditorState.ts +4 -2
  120. package/src/stores/QueryLoaderState.ts +11 -1
  121. package/src/stores/execution-plan/ExecutionPlanState.ts +142 -4
  122. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +3 -1
  123. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts +8 -3
  124. package/src/stores/shared/LambdaEditorState.ts +12 -5
  125. package/tsconfig.json +8 -0
@@ -16,7 +16,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  */
17
17
  import { useEffect, useRef, useCallback, useState, forwardRef } from 'react';
18
18
  import { observer } from 'mobx-react-lite';
19
- import { clsx, BlankPanelPlaceholder, TimesIcon, DropdownMenu, MenuContent, MenuContentItem, CaretDownIcon, ContextMenu, InputWithInlineValidation, SigmaIcon, PanelDropZone, DragPreviewLayer, useDragPreviewLayer, OptionsIcon, PlusIcon, PanelContent, TrashIcon, PanelDnDEntry, PanelDnDEntryDragHandle, CalendarIcon, CalendarClockIcon, CustomSelectorInput, PanelEntryDropZonePlaceholder, FunctionIcon, } from '@finos/legend-art';
19
+ import { clsx, BlankPanelPlaceholder, TimesIcon, DropdownMenu, MenuContent, MenuContentItem, CaretDownIcon, ContextMenu, InputWithInlineValidation, SigmaIcon, PanelDropZone, DragPreviewLayer, useDragPreviewLayer, OptionsIcon, PlusIcon, PanelContent, TrashIcon, PanelDnDEntry, PanelEntryDragHandle, CalendarIcon, CalendarClockIcon, CustomSelectorInput, PanelEntryDropZonePlaceholder, FunctionIcon, } from '@finos/legend-art';
20
20
  import { buildPropertyExpressionFromExplorerTreeNodeData, QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, } from '../../stores/explorer/QueryBuilderExplorerState.js';
21
21
  import { useDrag, useDrop, useDragLayer, } from 'react-dnd';
22
22
  import { QueryBuilderDerivationProjectionColumnState, QueryBuilderSimpleProjectionColumnState, QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE, } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
@@ -112,13 +112,13 @@ const buildCalendarTypeOption = (val) => ({
112
112
  value: val,
113
113
  });
114
114
  const QueryBuilderProjectionColumnEditor = observer((props) => {
115
- const handleRef = useRef(null);
115
+ const { isRearrangeActive, projectionColumnState, columnIdx, currentRearrangeDraggedColumnIndex, setCurrentRearrangeDraggedColumnIndex, currentRearrangeDropGapIndex, setCurrentRearrangeDropGapIndex, } = props;
116
+ const dragHandleRef = useRef(null);
116
117
  const applicationStore = useApplicationStore();
117
118
  const ref = useRef(null);
118
119
  const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] = useState(false);
119
120
  const onContextMenuOpen = () => setIsSelectedFromContextMenu(true);
120
121
  const onContextMenuClose = () => setIsSelectedFromContextMenu(false);
121
- const { projectionColumnState } = props;
122
122
  const tdsState = projectionColumnState.tdsState;
123
123
  const isCalendarEnabled = tdsState.queryBuilderState.isCalendarEnabled;
124
124
  const isRemovalDisabled = tdsState.isColumnInUse(projectionColumnState);
@@ -202,30 +202,64 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
202
202
  }
203
203
  }
204
204
  };
205
+ const handleDroppingColumn = useCallback((type) => {
206
+ if (type === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE &&
207
+ currentRearrangeDropGapIndex !== undefined &&
208
+ currentRearrangeDraggedColumnIndex !== undefined) {
209
+ tdsState.moveColumn(currentRearrangeDraggedColumnIndex, currentRearrangeDropGapIndex === tdsState.projectionColumns.length
210
+ ? tdsState.projectionColumns.length - 1
211
+ : currentRearrangeDropGapIndex);
212
+ }
213
+ setCurrentRearrangeDraggedColumnIndex(undefined);
214
+ setCurrentRearrangeDropGapIndex(undefined);
215
+ }, [
216
+ tdsState,
217
+ currentRearrangeDropGapIndex,
218
+ currentRearrangeDraggedColumnIndex,
219
+ setCurrentRearrangeDraggedColumnIndex,
220
+ setCurrentRearrangeDropGapIndex,
221
+ ]);
205
222
  // Drag and Drop
206
223
  const handleHover = useCallback((item, monitor) => {
207
224
  const dragIndex = tdsState.projectionColumns.findIndex((e) => e === item.columnState);
208
- const hoverIndex = tdsState.projectionColumns.findIndex((e) => e === projectionColumnState);
209
- if (dragIndex === -1 || hoverIndex === -1 || dragIndex === hoverIndex) {
210
- return;
225
+ const hoveredRectangle = ref.current?.getBoundingClientRect();
226
+ const hoveredRectangleMiddle = hoveredRectangle?.top && hoveredRectangle.bottom
227
+ ? (hoveredRectangle.top + hoveredRectangle.bottom) / 2
228
+ : undefined;
229
+ const yCoordinate = monitor.getClientOffset()?.y ?? 0;
230
+ if (yCoordinate && hoveredRectangleMiddle) {
231
+ setCurrentRearrangeDropGapIndex(yCoordinate < hoveredRectangleMiddle ? columnIdx : columnIdx + 1);
211
232
  }
212
233
  // move the item being hovered on when the dragged item position is beyond the its middle point
213
234
  const hoverBoundingReact = ref.current?.getBoundingClientRect();
214
235
  const distanceThreshold = ((hoverBoundingReact?.bottom ?? 0) - (hoverBoundingReact?.top ?? 0)) /
215
236
  2;
216
- const dragDistance = (monitor.getClientOffset()?.y ?? 0) - (hoverBoundingReact?.top ?? 0);
217
- if (dragIndex < hoverIndex && dragDistance < distanceThreshold) {
237
+ const dragDistance = yCoordinate - (hoverBoundingReact?.top ?? 0);
238
+ if (dragIndex === -1 || columnIdx === -1 || dragIndex === columnIdx) {
239
+ return;
240
+ }
241
+ if (dragIndex < columnIdx && dragDistance < distanceThreshold) {
218
242
  return;
219
243
  }
220
- if (dragIndex > hoverIndex && dragDistance > distanceThreshold) {
244
+ if (dragIndex > columnIdx && dragDistance > distanceThreshold) {
221
245
  return;
222
246
  }
223
- tdsState.moveColumn(dragIndex, hoverIndex);
224
- }, [projectionColumnState, tdsState]);
247
+ setCurrentRearrangeDraggedColumnIndex(dragIndex);
248
+ }, [
249
+ tdsState,
250
+ columnIdx,
251
+ setCurrentRearrangeDropGapIndex,
252
+ setCurrentRearrangeDraggedColumnIndex,
253
+ ]);
225
254
  const [, dropConnector] = useDrop(() => ({
226
255
  accept: [QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE],
227
256
  hover: (item, monitor) => handleHover(item, monitor),
228
- }), [handleHover]);
257
+ drop: (item, monitor) => {
258
+ if (!monitor.didDrop()) {
259
+ handleDroppingColumn(monitor.getItemType());
260
+ }
261
+ },
262
+ }), [handleHover, handleDroppingColumn]);
229
263
  const [{ projectionColumnBeingDragged }, dragConnector, dragPreviewConnector,] = useDrag(() => ({
230
264
  type: QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE,
231
265
  item: () => ({
@@ -241,8 +275,7 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
241
275
  ?.columnState,
242
276
  }),
243
277
  }), [projectionColumnState]);
244
- const isBeingDragged = projectionColumnState === projectionColumnBeingDragged;
245
- dragConnector(handleRef);
278
+ dragConnector(dragHandleRef);
246
279
  dropConnector(ref);
247
280
  useDragPreviewLayer(dragPreviewConnector);
248
281
  const toggleHideCalendarColumnState = () => {
@@ -277,10 +310,15 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
277
310
  isDragOver: monitor.isOver({ shallow: true }),
278
311
  }),
279
312
  }), [handleDrop]);
280
- return (_jsx(PanelDnDEntry, { ref: ref, showPlaceholder: isBeingDragged, className: "query-builder__projection__column", children: _jsxs(ContextMenu, { content: _jsx(QueryBuilderProjectionColumnContextMenu, { projectionColumnState: projectionColumnState }), disabled: !(projectionColumnState instanceof
313
+ return (_jsx(PanelDnDEntry, { ref: ref, placeholder: _jsx("div", { className: clsx({
314
+ 'query-builder__projection__column__placeholder--bottom': currentRearrangeDropGapIndex === columnIdx + 1 &&
315
+ columnIdx === tdsState.projectionColumns.length - 1,
316
+ }, {
317
+ 'query-builder__projection__column__placeholder--top': currentRearrangeDropGapIndex === columnIdx,
318
+ }) }), showPlaceholder: projectionColumnBeingDragged !== undefined && isRearrangeActive, className: "query-builder__projection__column", children: _jsxs(ContextMenu, { content: _jsx(QueryBuilderProjectionColumnContextMenu, { projectionColumnState: projectionColumnState }), disabled: !(projectionColumnState instanceof
281
319
  QueryBuilderSimpleProjectionColumnState), className: clsx('query-builder__projection__column__context-menu', {
282
320
  'query-builder__projection__column--selected-from-context-menu': isSelectedFromContextMenu,
283
- }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: [_jsxs("div", { className: "query-builder__projection__column__container", children: [_jsx(PanelDnDEntryDragHandle, { isBeingDragged: isBeingDragged, dropTargetConnector: handleRef, className: "query-builder__projection__column__drag-handle__container" }), _jsx("div", { className: "query-builder__projection__column__name", children: _jsx(InputWithInlineValidation, { className: "query-builder__projection__column__name__input input-group__input", spellCheck: false, value: projectionColumnState.columnName, onChange: changeColumnName, error: isDuplicatedColumnName ? 'Duplicated column' : undefined }) }), _jsxs("div", { className: "query-builder__projection__column__value", children: [projectionColumnState instanceof
321
+ }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: [_jsxs("div", { className: "query-builder__projection__column__container", children: [_jsx(PanelEntryDragHandle, { isDragging: false, dragSourceConnector: dragHandleRef, className: "query-builder__projection__column__drag-handle__container" }), _jsx("div", { className: "query-builder__projection__column__name", children: _jsx(InputWithInlineValidation, { className: "query-builder__projection__column__name__input input-group__input", spellCheck: false, value: projectionColumnState.columnName, onChange: changeColumnName, error: isDuplicatedColumnName ? 'Duplicated column' : undefined }) }), _jsxs("div", { className: "query-builder__projection__column__value", children: [projectionColumnState instanceof
284
322
  QueryBuilderSimpleProjectionColumnState && (_jsx(QueryBuilderSimpleProjectionColumnEditor, { projectionColumnState: projectionColumnState })), projectionColumnState instanceof
285
323
  QueryBuilderDerivationProjectionColumnState && (_jsx(QueryBuilderDerivationProjectionColumnEditor, { projectionColumnState: projectionColumnState }))] }), _jsx("div", { className: "query-builder__projection__column__aggregate", children: _jsxs("div", { className: "query-builder__projection__column__aggregate__operator", children: [aggregateColumnState && (_jsx("div", { className: "query-builder__projection__column__aggregate__operator__label", children: aggregateColumnState.operator.getLabel(projectionColumnState) })), isCalendarEnabled &&
286
324
  aggregateColumnState &&
@@ -307,7 +345,7 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
307
345
  }
308
346
  }, graph: tdsState.queryBuilderState.graphManagerState.graph, obseverContext: tdsState.queryBuilderState.observerContext, typeCheckOption: {
309
347
  expectedType: PrimitiveType.STRICTDATE,
310
- }, className: "query-builder__parameters__value__editor", resetValue: resetEndDate }) }), _jsx("div", { className: "query-builder__projection__calendar__date__column", ref: dropTargetConnector, children: _jsx(PanelEntryDropZonePlaceholder, { showPlaceholder: isDragOver, label: "Change Date Column", className: "query-builder__projection__calendar__date__column__dnd__placeholder", children: aggregateColumnState.calendarFunction?.dateColumn ? (_jsxs("div", { className: "query-builder__projection__calendar__date__column__label__box", children: [_jsx("div", { className: "query-builder__projection__calendar__date__column__prefix", children: "on" }), _jsx("div", { className: "query-builder__projection__calendar__date__column__label", children: getPropertyChainName(aggregateColumnState.calendarFunction.dateColumn, tdsState.queryBuilderState.explorerState
348
+ }, className: "query-builder__parameters__value__editor", resetValue: resetEndDate }) }), _jsx("div", { className: "query-builder__projection__calendar__date__column", ref: dropTargetConnector, children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, label: "Change Date Column", className: "query-builder__projection__calendar__date__column__dnd__placeholder", children: aggregateColumnState.calendarFunction?.dateColumn ? (_jsxs("div", { className: "query-builder__projection__calendar__date__column__label__box", children: [_jsx("div", { className: "query-builder__projection__calendar__date__column__prefix", children: "on" }), _jsx("div", { className: "query-builder__projection__calendar__date__column__label", children: getPropertyChainName(aggregateColumnState.calendarFunction.dateColumn, tdsState.queryBuilderState.explorerState
311
349
  .humanizePropertyName) })] })) : (_jsx("div", { className: "query-builder__projection__calendar__date__column__placeholder", children: "Drag and drop date column here" })) }) }), _jsx(CustomSelectorInput, { className: "query-builder__projection__calendar__type", options: calendarTypeOptions, onChange: onCalendarTypeOptionChange, value: selectedCalendarTypeOption ?? calendarTypeOptions[0], placeholder: "Select calendar type", disabled: !aggregateColumnState.calendarFunction, darkMode: !applicationStore.layoutService
312
350
  .TEMPORARY__isLightColorThemeEnabled })] }))] }) }));
313
351
  });
@@ -315,6 +353,8 @@ export const QueryBuilderTDSPanel = observer((props) => {
315
353
  const applicationStore = useApplicationStore();
316
354
  const { tdsState } = props;
317
355
  const projectionColumns = tdsState.projectionColumns;
356
+ const [currentRearrangeDraggedColumnIndex, setCurrentRearrangeDraggedColumnIndex,] = useState();
357
+ const [currentRearrangeDropGapIndex, setCurrentRearrangeDropGapIndex] = useState();
318
358
  // Toolbar
319
359
  const openResultSetModifierEditor = () => tdsState.resultSetModifierState.setShowModal(true);
320
360
  const addNewBlankDerivation = () => tdsState.addNewBlankDerivation();
@@ -356,8 +396,14 @@ export const QueryBuilderTDSPanel = observer((props) => {
356
396
  isDragOver: monitor.isOver({ shallow: true }),
357
397
  }),
358
398
  }), [handleDrop]);
359
- const { showDroppableSuggestion } = useDragLayer((monitor) => ({
360
- showDroppableSuggestion: monitor.isDragging() &&
399
+ const [{ isRearrangeActive }, rearrangeColumnDropConnector] = useDrop(() => ({
400
+ accept: [QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE],
401
+ collect: (monitor) => ({
402
+ isRearrangeActive: monitor.isOver({ shallow: false }),
403
+ }),
404
+ }), []);
405
+ const { isDroppable } = useDragLayer((monitor) => ({
406
+ isDroppable: monitor.isDragging() &&
361
407
  [
362
408
  QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.ENUM_PROPERTY,
363
409
  QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.PRIMITIVE_PROPERTY,
@@ -369,8 +415,8 @@ export const QueryBuilderTDSPanel = observer((props) => {
369
415
  }, [applicationStore, tdsState]);
370
416
  return (_jsxs(PanelContent, { children: [_jsxs("div", { className: "query-builder__projection__toolbar", children: [_jsx("button", { className: "panel__header__action", onClick: openResultSetModifierEditor, tabIndex: -1, title: "Configure result set modifiers...", children: _jsx(OptionsIcon, { className: "query-builder__icon query-builder__icon__query-option" }) }), _jsx("button", { className: "panel__header__action", disabled: tdsState.projectionColumns.length < 1, onClick: clearAllProjectionColumns, tabIndex: -1, title: tdsState.projectionColumns.length < 1
371
417
  ? 'No projection columns to clear'
372
- : 'Clear all projection columns', children: _jsx(TrashIcon, { className: "query-builder__icon query-builder__icon__query-option--small" }) }), _jsx("button", { className: "panel__header__action", onClick: addNewBlankDerivation, tabIndex: -1, title: "Add a new derivation", children: _jsx(PlusIcon, {}) })] }), _jsx("div", { className: "query-builder__projection__content", children: _jsxs(PanelDropZone, { isDragOver: isDragOver, showDroppableSuggestion: showDroppableSuggestion, className: "query-builder__panel--droppable", dropTargetConnector: dropTargetConnector, children: [!projectionColumns.length && (_jsx(BlankPanelPlaceholder, { text: "Add a projection column", tooltipText: "Drag and drop properties here" })), Boolean(projectionColumns.length) && (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_TDS, className: "query-builder__projection__columns", children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.columnState.columnName === ''
373
- ? '(unknown)'
374
- : item.columnState.columnName, types: [QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE] }), projectionColumns.map((projectionColumnState) => (_jsx(QueryBuilderProjectionColumnEditor, { projectionColumnState: projectionColumnState }, projectionColumnState.uuid)))] })), _jsx(QueryResultModifierModal, { tdsState: tdsState })] }) })] }));
418
+ : 'Clear all projection columns', children: _jsx(TrashIcon, { className: "query-builder__icon query-builder__icon__query-option--small" }) }), _jsx("button", { className: "panel__header__action", onClick: addNewBlankDerivation, tabIndex: -1, title: "Add a new derivation", children: _jsx(PlusIcon, {}) })] }), _jsx("div", { className: "query-builder__projection__content", children: _jsxs(PanelDropZone, { isDragOver: isDragOver, isDroppable: isDroppable, dropTargetConnector: dropTargetConnector, children: [!projectionColumns.length && (_jsx(BlankPanelPlaceholder, { text: "Add a projection column", tooltipText: "Drag and drop properties here" })), Boolean(projectionColumns.length) && (_jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_TDS, className: "query-builder__projection__columns", children: _jsxs("div", { ref: rearrangeColumnDropConnector, children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.columnState.columnName === ''
419
+ ? '(unknown)'
420
+ : item.columnState.columnName, types: [QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE] }), projectionColumns.map((projectionColumnState, columnIdx) => (_jsx(QueryBuilderProjectionColumnEditor, { projectionColumnState: projectionColumnState, isRearrangeActive: isRearrangeActive, currentRearrangeDraggedColumnIndex: currentRearrangeDraggedColumnIndex, currentRearrangeDropGapIndex: currentRearrangeDropGapIndex, setCurrentRearrangeDraggedColumnIndex: setCurrentRearrangeDraggedColumnIndex, setCurrentRearrangeDropGapIndex: setCurrentRearrangeDropGapIndex, columnIdx: columnIdx }, projectionColumnState.uuid)))] }) })), _jsx(QueryResultModifierModal, { tdsState: tdsState })] }) })] }));
375
421
  });
376
422
  //# sourceMappingURL=QueryBuilderTDSPanel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTDSPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,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B,KAAC,qBAAqB,IACpB,IAAI,EAAC,yBAAyB,EAC9B,WAAW,EAAC,+BAA+B,GAC3C,CACH,EACA,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CACpC,8BACe,qBAAqB,CAAC,iBAAiB,EACpD,SAAS,EAAC,oCAAoC,aAE9C,KAAC,gBAAgB,IACf,WAAW,EAAE,CACX,IAA4C,EACpC,EAAE,CACV,IAAI,CAAC,WAAW,CAAC,UAAU,KAAK,EAAE;wCAChC,CAAC,CAAC,WAAW;wCACb,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,EAEjC,KAAK,EAAE,CAAC,wCAAwC,CAAC,GACjD,EACD,iBAAiB,CAAC,GAAG,CAAC,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAChD,KAAC,kCAAkC,IAEjC,qBAAqB,EAAE,qBAAqB,IADvC,qBAAqB,CAAC,IAAI,CAE/B,CACH,CAAC,IACE,CACP,EACD,KAAC,wBAAwB,IAAC,QAAQ,EAAE,QAAQ,GAAI,IAClC,GACZ,IACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderTDSPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,qBAAqB,EACrB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,yBAAyB,EACzB,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,YAAY,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G,GACL,IACL,EACN,cAAK,SAAS,EAAC,oCAAoC,YACjD,MAAC,aAAa,IACZ,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,mBAAmB,EAAE,mBAAmB,aAEvC,CAAC,iBAAiB,CAAC,MAAM,IAAI,CAC5B,KAAC,qBAAqB,IACpB,IAAI,EAAC,yBAAyB,EAC9B,WAAW,EAAC,+BAA+B,GAC3C,CACH,EACA,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CACpC,6BACe,qBAAqB,CAAC,iBAAiB,EACpD,SAAS,EAAC,oCAAoC,YAE9C,eAAK,GAAG,EAAE,4BAA4B,aACpC,KAAC,gBAAgB,IACf,WAAW,EAAE,CACX,IAA4C,EACpC,EAAE,CACV,IAAI,CAAC,WAAW,CAAC,UAAU,KAAK,EAAE;4CAChC,CAAC,CAAC,WAAW;4CACb,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,EAEjC,KAAK,EAAE,CAAC,wCAAwC,CAAC,GACjD,EACD,iBAAiB,CAAC,GAAG,CAAC,CAAC,qBAAqB,EAAE,SAAS,EAAE,EAAE,CAAC,CAC3D,KAAC,kCAAkC,IAEjC,qBAAqB,EAAE,qBAAqB,EAC5C,iBAAiB,EAAE,iBAAiB,EACpC,kCAAkC,EAChC,kCAAkC,EAEpC,4BAA4B,EAC1B,4BAA4B,EAE9B,qCAAqC,EACnC,qCAAqC,EAEvC,+BAA+B,EAC7B,+BAA+B,EAEjC,SAAS,EAAE,SAAS,IAff,qBAAqB,CAAC,IAAI,CAgB/B,CACH,CAAC,IACE,GACF,CACP,EACD,KAAC,wBAAwB,IAAC,QAAQ,EAAE,QAAQ,GAAI,IAClC,GACZ,IACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTDSWindowPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA0CH,OAAO,EACL,KAAK,uBAAuB,EAO7B,MAAM,oEAAoE,CAAC;AAwiC5E,eAAO,MAAM,0BAA0B,WAC7B;IAAE,cAAc,EAAE,uBAAuB,CAAA;CAAE;;CAgHpD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderTDSWindowPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA0CH,OAAO,EACL,KAAK,uBAAuB,EAO7B,MAAM,oEAAoE,CAAC;AAsiC5E,eAAO,MAAM,0BAA0B,WAC7B;IAAE,cAAc,EAAE,uBAAuB,CAAA;CAAE;;CAgHpD,CAAC"}
@@ -15,7 +15,7 @@ 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 { useApplicationStore } from '@finos/legend-application';
18
- import { PlusIcon, PanelContent, PanelDropZone, BlankPanelPlaceholder, DropdownMenu, InputWithInlineValidation, MenuContent, MenuContentItem, SigmaIcon, CaretDownIcon, clsx, PanelEntryDropZonePlaceholder, ContextMenu, TimesIcon, useDragPreviewLayer, SortIcon, Dialog, CustomSelectorInput, WindowIcon, BasePopover, EditIcon, ModalHeader, Modal, ModalFooter, PanelFormSection, ModalFooterButton, PanelDnDEntryDragHandle, PanelDnDEntry, PanelHeaderActionItem, PanelHeader, PanelHeaderActions, Panel, } from '@finos/legend-art';
18
+ import { PlusIcon, PanelContent, PanelDropZone, BlankPanelPlaceholder, DropdownMenu, InputWithInlineValidation, MenuContent, MenuContentItem, SigmaIcon, CaretDownIcon, clsx, PanelEntryDropZonePlaceholder, ContextMenu, TimesIcon, useDragPreviewLayer, SortIcon, Dialog, CustomSelectorInput, WindowIcon, BasePopover, EditIcon, ModalHeader, Modal, ModalFooter, PanelFormSection, ModalFooterButton, PanelEntryDragHandle, PanelDnDEntry, PanelHeaderActionItem, PanelHeader, PanelHeaderActions, Panel, } from '@finos/legend-art';
19
19
  import { assertErrorThrown, guaranteeNonNullable } from '@finos/legend-shared';
20
20
  import { observer } from 'mobx-react-lite';
21
21
  import { forwardRef, useCallback, useRef, useState } from 'react';
@@ -206,7 +206,7 @@ const TDSColumnReferenceEditor = observer((props) => {
206
206
  isDragOver: monitor.isOver({ shallow: true }),
207
207
  }),
208
208
  }), [handleDrop]);
209
- return (_jsxs(_Fragment, { children: [_jsx("button", { onClick: openOpAnchor, className: "query-builder__olap__tds__column", children: _jsx("div", { ref: dropOpConnector, className: "query-builder__olap__tds__column-badge", children: _jsx(PanelEntryDropZonePlaceholder, { showPlaceholder: isDragOver, label: "Change Column", className: "query-builder__dnd__placeholder", children: _jsx("div", { className: "query-builder__olap__tds__column-badge__content", children: _jsx("div", { className: "query-builder__olap__tds__column-badge__property", title: `${tdsColumn.columnName}`, children: tdsColumn.columnName }) }) }) }) }), selectionEditor && (_jsx(BasePopover, { open: Boolean(opAnchor), anchorEl: opAnchor, onClose: closeOpAnchor, anchorOrigin: {
209
+ return (_jsxs(_Fragment, { children: [_jsx("button", { onClick: openOpAnchor, className: "query-builder__olap__tds__column", children: _jsx("div", { ref: dropOpConnector, className: "query-builder__olap__tds__column-badge", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, label: "Change Column", children: _jsx("div", { className: "query-builder__olap__tds__column-badge__content", children: _jsx("div", { className: "query-builder__olap__tds__column-badge__property", title: `${tdsColumn.columnName}`, children: tdsColumn.columnName }) }) }) }) }), selectionEditor && (_jsx(BasePopover, { open: Boolean(opAnchor), anchorEl: opAnchor, onClose: closeOpAnchor, anchorOrigin: {
210
210
  vertical: 'bottom',
211
211
  horizontal: 'center',
212
212
  }, transformOrigin: {
@@ -343,7 +343,7 @@ const QueryBuilderWindowColumnEditor = observer((props) => {
343
343
  }), [handleWindowDrop]);
344
344
  return (_jsx(PanelDnDEntry, { ref: ref, className: "query-builder__olap__column", showPlaceholder: isBeingDragged, children: _jsxs(ContextMenu, { content: _jsx(QueryBuilderWindowColumnContextMenu, { columnState: windowColumnState }), className: clsx('query-builder__olap__column__context-menu', {
345
345
  'query-builder__olap__column--selected-from-context-menu': isSelectedFromContextMenu,
346
- }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: [_jsx(PanelDnDEntryDragHandle, { isBeingDragged: isBeingDragged, className: "query-builder__olap__column__drag-handle__container", dropTargetConnector: handleRef }), _jsx("div", { className: "query-builder__olap__column__operation", children: _jsxs("div", { className: "query-builder__olap__column__operation__operator", children: [_jsx("div", { className: clsx('query-builder__olap__column__operation__operator__label', {
346
+ }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: [_jsx(PanelEntryDragHandle, { isDragging: isBeingDragged, className: "query-builder__olap__column__drag-handle__container", dragSourceConnector: handleRef }), _jsx("div", { className: "query-builder__olap__column__operation", children: _jsxs("div", { className: "query-builder__olap__column__operation__operator", children: [_jsx("div", { className: clsx('query-builder__olap__column__operation__operator__label', {
347
347
  'query-builder__olap__column__operation__operator__label__agg': !aggregateColumn,
348
348
  }), children: operationState.operator.getLabel() }), aggregateColumn && (_jsx(TDSColumnReferenceEditor, { tdsColumn: aggregateColumn, handleChange: handleOpDrop, selectionEditor: {
349
349
  options: windowColumnState.possibleReferencedColumns,
@@ -351,7 +351,7 @@ const QueryBuilderWindowColumnEditor = observer((props) => {
351
351
  anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
352
352
  transformOrigin: { vertical: 'top', horizontal: 'left' },
353
353
  elevation: 7,
354
- }, children: [_jsx("div", { className: "query-builder__olap__column__operation__operator__badge", title: "Choose Window Function Operator...", children: _jsx(SigmaIcon, {}) }), _jsx("div", { className: "query-builder__olap__column__operation__operator__dropdown__trigger", title: "Choose Window Function Operator...", children: _jsx(CaretDownIcon, {}) })] })] }) }), _jsxs("div", { className: "query-builder__olap__column__window", children: [_jsx("button", { ref: dropOpConnector, title: "Click to edit or drag and drop columns", onClick: openWindowPopover, className: "query-builder__olap__column__window__content", children: _jsxs(PanelEntryDropZonePlaceholder, { showPlaceholder: isDragOver, label: "Add", className: "query-builder__dnd__placeholder", children: [_jsxs("div", { title: `${windowColumnState.windowColumns.length} columns partitioned`, className: "query-builder__olap__column__window__content__label", children: ["(", windowColumnState.windowColumns.length, ")"] }), _jsx("div", { className: clsx('query-builder__olap__column__window__operator__badge'), tabIndex: -1, title: "Edit window columns...", children: _jsx(WindowIcon, {}) })] }) }), _jsx(BasePopover, { open: Boolean(windowAnchor), anchorEl: windowAnchor, onClose: closeWindowPopover, anchorOrigin: {
354
+ }, children: [_jsx("div", { className: "query-builder__olap__column__operation__operator__badge", title: "Choose Window Function Operator...", children: _jsx(SigmaIcon, {}) }), _jsx("div", { className: "query-builder__olap__column__operation__operator__dropdown__trigger", title: "Choose Window Function Operator...", children: _jsx(CaretDownIcon, {}) })] })] }) }), _jsxs("div", { className: "query-builder__olap__column__window", children: [_jsx("button", { ref: dropOpConnector, title: "Click to edit or drag and drop columns", onClick: openWindowPopover, className: "query-builder__olap__column__window__content", children: _jsxs(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, label: "Add", children: [_jsxs("div", { title: `${windowColumnState.windowColumns.length} columns partitioned`, className: "query-builder__olap__column__window__content__label", children: ["(", windowColumnState.windowColumns.length, ")"] }), _jsx("div", { className: clsx('query-builder__olap__column__window__operator__badge'), tabIndex: -1, title: "Edit window columns...", children: _jsx(WindowIcon, {}) })] }) }), _jsx(BasePopover, { open: Boolean(windowAnchor), anchorEl: windowAnchor, onClose: closeWindowPopover, anchorOrigin: {
355
355
  vertical: 'bottom',
356
356
  horizontal: 'center',
357
357
  }, transformOrigin: {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTDSWindowPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH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IAAI,EAAC,4BAA4B,EACjC,WAAW,EAAC,4BAA4B,GACxC,CACH,EACA,CAAC,cAAc,CAAC,OAAO,IAAI,CAC1B,6BACe,qBAAqB,CAAC,iBAAiB,EACpD,SAAS,EAAC,8BAA8B,YAEvC,cAAc,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACzC,KAAC,8BAA8B,IAC7B,iBAAiB,EAAE,GAAG,IACjB,GAAG,CAAC,IAAI,CACb,CACH,CAAC,GACE,CACP,IACa,GACH,EACd,cAAc,CAAC,UAAU,IAAI,CAC5B,KAAC,mCAAmC,IAClC,WAAW,EAAE,cAAc,EAC3B,iBAAiB,EAAE,cAAc,CAAC,UAAU,GAC5C,CACH,IACG,GACA,CACT,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderTDSWindowPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,yBAAyB,EACzB,WAAW,EACX,eAAe,EACf,SAAS,EACT,aAAa,EACb,IAAI,EACJ,6BAA6B,EAC7B,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,QAAQ,EACR,MAAM,EACN,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,QAAQ,EACR,WAAW,EACX,KAAK,EACL,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,WAAW,EACX,kBAAkB,EAClB,KAAK,GACN,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MA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B,EAC/D,SAAS,EAAC,OAAO,aAEjB,MAAC,WAAW,eACV,eAAK,SAAS,EAAC,sBAAsB,aACnC,cAAK,SAAS,EAAC,6BAA6B,gCAAsB,EACjE,cAAc,CAAC,sBAAsB,CAAC,MAAM,GAAG,CAAC,IAAI,CACnD,KAAC,gCAAgC,IAC/B,MAAM,EAAE,cAAc,CAAC,sBAAsB,GAC7C,CACH,IACG,EACN,KAAC,kBAAkB,cACjB,KAAC,qBAAqB,IACpB,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,CAAC,cAAc,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,EACpD,KAAK,EAAC,+BAA+B,YAErC,KAAC,QAAQ,KAAG,GACU,GACL,IACT,EACd,KAAC,YAAY,cACX,MAAC,aAAa,IACZ,UAAU,EAAE,UAAU,EACtB,mBAAmB,EAAE,mBAAmB,aAEvC,cAAc,CAAC,OAAO,IAAI,CACzB,KAAC,qBAAqB,IACpB,IAAI,EAAC,4BAA4B,EACjC,WAAW,EAAC,4BAA4B,GACxC,CACH,EACA,CAAC,cAAc,CAAC,OAAO,IAAI,CAC1B,6BACe,qBAAqB,CAAC,iBAAiB,EACpD,SAAS,EAAC,8BAA8B,YAEvC,cAAc,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACzC,KAAC,8BAA8B,IAC7B,iBAAiB,EAAE,GAAG,IACjB,GAAG,CAAC,IAAI,CACb,CACH,CAAC,GACE,CACP,IACa,GACH,EACd,cAAc,CAAC,UAAU,IAAI,CAC5B,KAAC,mCAAmC,IAClC,WAAW,EAAE,cAAc,EAC3B,iBAAiB,EAAE,cAAc,CAAC,UAAU,GAC5C,CACH,IACG,GACA,CACT,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderFilterPanel.d.ts","sourceRoot":"","sources":["../../../src/components/filter/QueryBuilderFilterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkCH,OAAO,EAIL,6BAA6B,EAK9B,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAIL,oCAAoC,EACrC,MAAM,oDAAoD,CAAC;AAE5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAwB3E,eAAO,MAAM,6CAA6C,UAKzD,CAAC;AAEF,eAAO,MAAM,6BAA6B,0EAIzC,CAAC;AAkoBF,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAmSjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderFilterPanel.d.ts","sourceRoot":"","sources":["../../../src/components/filter/QueryBuilderFilterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkCH,OAAO,EAIL,6BAA6B,EAK9B,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAIL,oCAAoC,EACrC,MAAM,oDAAoD,CAAC;AAE5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAwB3E,eAAO,MAAM,6CAA6C,UAKzD,CAAC;AAEF,eAAO,MAAM,6BAA6B,0EAIzC,CAAC;AA4mBF,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAiSjD,CAAC"}
@@ -41,19 +41,18 @@ export const IS_DRAGGABLE_FILTER_DND_TYPES = [
41
41
  QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.PRIMITIVE_PROPERTY,
42
42
  ];
43
43
  const QueryBuilderFilterGroupConditionEditor = observer((props) => {
44
- const { node, isDragOver, showDroppableSuggestion } = props;
44
+ const { node, isDragOver, isDroppable } = props;
45
45
  const switchOperation = (event) => {
46
46
  event.stopPropagation(); // prevent triggering selecting the node
47
47
  node.setGroupOperation(node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND
48
48
  ? QUERY_BUILDER_GROUP_OPERATION.OR
49
49
  : QUERY_BUILDER_GROUP_OPERATION.AND);
50
50
  };
51
- return (_jsxs("div", { className: "query-builder-filter-tree__node__label__content dnd__entry__container", children: [showDroppableSuggestion && (_jsx("div", { className: clsx('dnd__entry--droppable__indicator ', {
52
- 'dnd__entry--droppable__indicator--dragover': isDragOver,
53
- }) })), _jsxs("div", { className: clsx('query-builder-filter-tree__group-node', {
51
+ const operationName = node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND ? 'AND' : 'OR';
52
+ return (_jsx("div", { className: "query-builder-filter-tree__node__label__content dnd__entry__container", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, label: `Add to Logical Group '${operationName}'`, children: _jsxs("div", { className: clsx('query-builder-filter-tree__group-node', {
54
53
  'query-builder-filter-tree__group-node--and': node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND,
55
54
  'query-builder-filter-tree__group-node--or': node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.OR,
56
- }), title: "Switch Operation", onClick: switchOperation, children: [_jsx("div", { className: "query-builder-filter-tree__group-node__label", children: node.groupOperation }), _jsx("button", { className: "query-builder-filter-tree__group-node__action", children: _jsx(FilledTriangleIcon, {}) })] })] }));
55
+ }), title: "Switch Operation", onClick: switchOperation, children: [_jsx("div", { className: "query-builder-filter-tree__group-node__label", children: node.groupOperation }), _jsx("button", { className: "query-builder-filter-tree__group-node__action", children: _jsx(FilledTriangleIcon, {}) })] }) }) }));
57
56
  });
58
57
  const QueryBuilderFilterConditionEditor = observer((props) => {
59
58
  const { node, isDragOver } = props;
@@ -101,27 +100,19 @@ const QueryBuilderFilterConditionEditor = observer((props) => {
101
100
  reloadValues: debouncedTypeaheadSearch,
102
101
  cleanUpReloadValues,
103
102
  };
104
- const { showDroppableSuggestion } = useDragLayer((monitor) => ({
105
- showDroppableSuggestion: monitor.isDragging() &&
106
- (queryBuilderState.TEMPORARY__isDnDFetchStructureToFilterSupported
107
- ? IS_DRAGGABLE_FILTER_DND_TYPES_FETCH_SUPPORTED
108
- : IS_DRAGGABLE_FILTER_DND_TYPES).includes(monitor.getItemType()?.toString() ?? ''),
109
- }));
110
- return (_jsxs("div", { className: "query-builder-filter-tree__node__label__content dnd__entry__container", children: [showDroppableSuggestion && (_jsx("div", { className: clsx('dnd__entry--droppable__indicator dnd__entry-potential__oiodropzone__indicator--full', {
111
- 'dnd__entry--droppable__indicator--dragover': isDragOver,
112
- }) })), _jsx(PanelEntryDropZonePlaceholder, { showPlaceholder: isDragOver, label: "Add New Logical Group", className: "query-builder__dnd__placeholder", children: _jsxs("div", { className: "query-builder-filter-tree__condition-node", children: [_jsx("div", { className: "query-builder-filter-tree__condition-node__property", children: _jsx(QueryBuilderPropertyExpressionBadge, { propertyExpressionState: node.condition.propertyExpressionState, onPropertyExpressionChange: changeProperty }) }), _jsxs(DropdownMenu, { className: "query-builder-filter-tree__condition-node__operator", title: "Choose Operator...", content: _jsx(MenuContent, { children: node.condition.operators.map((op) => (_jsx(MenuContentItem, { className: "query-builder-filter-tree__condition-node__operator__dropdown__option", onClick: changeOperator(op), children: op.getLabel(node.condition) }, op.uuid))) }), menuProps: {
113
- anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
114
- transformOrigin: { vertical: 'top', horizontal: 'left' },
115
- elevation: 7,
116
- }, children: [_jsx("div", { className: "query-builder-filter-tree__condition-node__operator__label", children: node.condition.operator.getLabel(node.condition) }), _jsx("div", { className: "query-builder-filter-tree__condition-node__operator__dropdown__trigger", children: _jsx(CaretDownIcon, {}) })] }), node.condition.value && (_jsx("div", { ref: dropConnector, className: "query-builder-filter-tree__condition-node__value", children: _jsx(PanelEntryDropZonePlaceholder, { showPlaceholder: isFilterValueDragOver, label: "Change Filter Value", className: "query-builder__dnd__placeholder", children: _jsx(BasicValueSpecificationEditor, { valueSpecification: node.condition.value, setValueSpecification: changeValueSpecification, graph: graph, obseverContext: queryBuilderState.observerContext, typeCheckOption: {
117
- expectedType: node.condition.propertyExpressionState
118
- .propertyExpression.func.value.genericType.value
119
- .rawType,
120
- }, resetValue: resetNode, selectorConfig: selectorConfig, isConstant: queryBuilderState.constantState.isValueSpecConstant(node.condition.value) }) }) }))] }) })] }));
103
+ return (_jsx("div", { className: "query-builder-filter-tree__node__label__content dnd__entry__container", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, label: "Add New Logical Group", children: _jsxs("div", { className: "query-builder-filter-tree__condition-node", children: [_jsx("div", { className: "query-builder-filter-tree__condition-node__property", children: _jsx(QueryBuilderPropertyExpressionBadge, { propertyExpressionState: node.condition.propertyExpressionState, onPropertyExpressionChange: changeProperty }) }), _jsxs(DropdownMenu, { className: "query-builder-filter-tree__condition-node__operator", title: "Choose Operator...", content: _jsx(MenuContent, { children: node.condition.operators.map((op) => (_jsx(MenuContentItem, { className: "query-builder-filter-tree__condition-node__operator__dropdown__option", onClick: changeOperator(op), children: op.getLabel(node.condition) }, op.uuid))) }), menuProps: {
104
+ anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
105
+ transformOrigin: { vertical: 'top', horizontal: 'left' },
106
+ elevation: 7,
107
+ }, children: [_jsx("div", { className: "query-builder-filter-tree__condition-node__operator__label", children: node.condition.operator.getLabel(node.condition) }), _jsx("div", { className: "query-builder-filter-tree__condition-node__operator__dropdown__trigger", children: _jsx(CaretDownIcon, {}) })] }), node.condition.value && (_jsx("div", { ref: dropConnector, className: "query-builder-filter-tree__condition-node__value", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isFilterValueDragOver, label: "Change Filter Value", children: _jsx(BasicValueSpecificationEditor, { valueSpecification: node.condition.value, setValueSpecification: changeValueSpecification, graph: graph, obseverContext: queryBuilderState.observerContext, typeCheckOption: {
108
+ expectedType: node.condition.propertyExpressionState
109
+ .propertyExpression.func.value.genericType.value
110
+ .rawType,
111
+ }, resetValue: resetNode, selectorConfig: selectorConfig, isConstant: queryBuilderState.constantState.isValueSpecConstant(node.condition.value) }) }) }))] }) }) }));
121
112
  });
122
113
  const QueryBuilderFilterBlankConditionEditor = observer((props) => {
123
- const { isDragOver, showDroppableSuggestion } = props;
124
- return (_jsx("div", { className: "query-builder-filter-tree__node__label__content", children: _jsxs(PanelEntryDropZonePlaceholder, { showPlaceholder: isDragOver, label: "Create Condition", className: "query-builder__dnd__placeholder", children: [showDroppableSuggestion && (_jsx("div", { className: "query-builder-filter-tree__blank-node--droppable" })), _jsx("div", { className: "query-builder-filter-tree__blank-node", children: "blank" })] }) }));
114
+ const { isDragOver, isDroppable } = props;
115
+ return (_jsx("div", { className: "query-builder-filter-tree__node__label__content", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, label: "Create Condition", children: _jsx("div", { className: "query-builder-filter-tree__blank-node", children: "blank" }) }) }));
125
116
  });
126
117
  const QueryBuilderFilterConditionContextMenu = observer(forwardRef(function QueryBuilderFilterConditionContextMenu(props, ref) {
127
118
  const { queryBuilderState, node } = props;
@@ -229,8 +220,8 @@ const QueryBuilderFilterTreeNodeContainer = observer((props) => {
229
220
  }), [node, filterState]);
230
221
  dragConnector(dropConnector(ref));
231
222
  useDragPreviewLayer(dragPreviewConnector);
232
- const { showDroppableSuggestion } = useDragLayer((monitor) => ({
233
- showDroppableSuggestion: monitor.isDragging() &&
223
+ const { isDroppable } = useDragLayer((monitor) => ({
224
+ isDroppable: monitor.isDragging() &&
234
225
  (queryBuilderState.TEMPORARY__isDnDFetchStructureToFilterSupported
235
226
  ? IS_DRAGGABLE_FILTER_DND_TYPES_FETCH_SUPPORTED
236
227
  : IS_DRAGGABLE_FILTER_DND_TYPES).includes(monitor.getItemType()?.toString() ?? ''),
@@ -247,7 +238,7 @@ const QueryBuilderFilterTreeNodeContainer = observer((props) => {
247
238
  display: 'flex',
248
239
  }, onClick: selectNode, children: [isExpandable && (_jsx("div", { className: "query-builder-filter-tree__expand-icon", onClick: toggleExpandNode, children: node.isOpen ? _jsx(ChevronDownIcon, {}) : _jsx(ChevronRightIcon, {}) })), _jsxs("div", { className: clsx('tree-view__node__label query-builder-filter-tree__node__label', {
249
240
  'query-builder-filter-tree__node__label--expandable': isExpandable,
250
- }), children: [node instanceof QueryBuilderFilterTreeGroupNodeData && (_jsx(QueryBuilderFilterGroupConditionEditor, { node: node, showDroppableSuggestion: showDroppableSuggestion, isDragOver: isDragOver })), node instanceof QueryBuilderFilterTreeConditionNodeData && (_jsx(QueryBuilderFilterConditionEditor, { node: node, isDragOver: isDragOver })), node instanceof QueryBuilderFilterTreeBlankConditionNodeData && (_jsx(QueryBuilderFilterBlankConditionEditor, { node: node, isDragOver: isDragOver, showDroppableSuggestion: showDroppableSuggestion }))] })] }), _jsx("div", { className: "query-builder-filter-tree__node__actions", children: _jsx("button", { className: "query-builder-filter-tree__node__action", tabIndex: -1, title: "Remove", onClick: removeNode, children: _jsx(TimesIcon, {}) }) })] }) }));
241
+ }), children: [node instanceof QueryBuilderFilterTreeGroupNodeData && (_jsx(QueryBuilderFilterGroupConditionEditor, { node: node, isDroppable: isDroppable, isDragOver: isDragOver })), node instanceof QueryBuilderFilterTreeConditionNodeData && (_jsx(QueryBuilderFilterConditionEditor, { node: node, isDragOver: isDragOver })), node instanceof QueryBuilderFilterTreeBlankConditionNodeData && (_jsx(QueryBuilderFilterBlankConditionEditor, { node: node, isDragOver: isDragOver, isDroppable: isDroppable }))] })] }), _jsx("div", { className: "query-builder-filter-tree__node__actions", children: _jsx("button", { className: "query-builder-filter-tree__node__action", tabIndex: -1, title: "Remove", onClick: removeNode, children: _jsx(TimesIcon, {}) }) })] }) }));
251
242
  });
252
243
  const QueryBuilderFilterTreeNodeView = observer((props) => {
253
244
  const { node, level, onNodeSelect, getChildNodes, stepPaddingInRem, innerProps, } = props;
@@ -312,8 +303,8 @@ export const QueryBuilderFilterPanel = observer((props) => {
312
303
  filterState.newGroupWithConditionFromNode(undefined, filterState.selectedNode);
313
304
  }
314
305
  };
315
- const { showDroppableSuggestion } = useDragLayer((monitor) => ({
316
- showDroppableSuggestion: monitor.isDragging() &&
306
+ const { isDroppable } = useDragLayer((monitor) => ({
307
+ isDroppable: monitor.isDragging() &&
317
308
  (queryBuilderState.TEMPORARY__isDnDFetchStructureToFilterSupported
318
309
  ? IS_DRAGGABLE_FILTER_DND_TYPES_FETCH_SUPPORTED
319
310
  : IS_DRAGGABLE_FILTER_DND_TYPES).includes(monitor.getItemType()?.toString() ?? ''),
@@ -373,8 +364,6 @@ export const QueryBuilderFilterPanel = observer((props) => {
373
364
  return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_FILTER, className: "panel", children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "filter" }) }), _jsx("div", { className: "panel__header__actions", children: _jsx(DropdownMenu, { className: "panel__header__action", title: "Show Filter Options Menu...", content: _jsxs(MenuContent, { children: [_jsxs(MenuContentItem, { onClick: createCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(PlusIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Condition" })] }), _jsxs(MenuContentItem, { disabled: !(filterState.selectedNode instanceof
374
365
  QueryBuilderFilterTreeConditionNodeData), onClick: newGroupWithCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(PlusCircleIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Group From Condition" })] }), _jsxs(MenuContentItem, { disabled: !allowGroupCreation, title: !allowGroupCreation
375
366
  ? 'Please select a filter node first to create logical group'
376
- : '', onClick: createGroupCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(NewFolderIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Logical Group" })] }), _jsxs(MenuContentItem, { onClick: pruneTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(TrashIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Cleanup Tree" })] }), _jsxs(MenuContentItem, { onClick: simplifyTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(CircleIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Simplify Tree" })] }), _jsxs(MenuContentItem, { onClick: collapseTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(CompressIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Collapse Tree" })] }), _jsxs(MenuContentItem, { onClick: expandTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(ExpandIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Expand Tree" })] })] }), children: _jsx(MoreVerticalIcon, { className: "query-builder__icon__more-options" }) }) })] }), _jsx(PanelContent, { children: _jsxs(PanelDropZone, { isDragOver: isDragOver && filterState.isEmpty, showDroppableSuggestion: showDroppableSuggestion && filterState.isEmpty, className: "query-builder__panel--droppable", dropTargetConnector: dropTargetConnector, children: [filterState.isEmpty && (_jsx(BlankPanelPlaceholder, { text: "Add a filter condition", tooltipText: "Drag and drop properties here" })), !filterState.isEmpty && (_jsxs(_Fragment, { children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.node.dragPreviewLabel, types: Object.values(QUERY_BUILDER_FILTER_DND_TYPE) }), _jsx(QueryBuilderFilterTree, { queryBuilderState: queryBuilderState })] })), showDroppableSuggestion && !filterState.isEmpty && (_jsx("div", { ref: addFilterRef, className: clsx('query-builder-post-filter-tree__blank-node--droppable--tall', {
377
- 'dnd__entry--droppable__indicator--dragover': isDragOver,
378
- }), children: "Add filter to main group" }))] }) })] }));
367
+ : '', onClick: createGroupCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(NewFolderIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Logical Group" })] }), _jsxs(MenuContentItem, { onClick: pruneTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(TrashIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Cleanup Tree" })] }), _jsxs(MenuContentItem, { onClick: simplifyTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(CircleIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Simplify Tree" })] }), _jsxs(MenuContentItem, { onClick: collapseTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(CompressIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Collapse Tree" })] }), _jsxs(MenuContentItem, { onClick: expandTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(ExpandIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Expand Tree" })] })] }), children: _jsx(MoreVerticalIcon, { className: "query-builder__icon__more-options" }) }) })] }), _jsx(PanelContent, { children: _jsxs(PanelDropZone, { isDragOver: isDragOver && filterState.isEmpty, isDroppable: isDroppable && filterState.isEmpty, dropTargetConnector: dropTargetConnector, children: [filterState.isEmpty && (_jsx(BlankPanelPlaceholder, { text: "Add a filter condition", tooltipText: "Drag and drop properties here" })), !filterState.isEmpty && (_jsxs(_Fragment, { children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.node.dragPreviewLabel, types: Object.values(QUERY_BUILDER_FILTER_DND_TYPE) }), _jsx(QueryBuilderFilterTree, { queryBuilderState: queryBuilderState })] })), isDroppable && !filterState.isEmpty && (_jsx("div", { ref: addFilterRef, className: "query-builder-filter-tree__free-drop-zone__container", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, className: "query-builder-filter-tree__free-drop-zone", label: "Add filter to main group", children: _jsx(_Fragment, {}) }) }))] }) })] }));
379
368
  });
380
369
  //# sourceMappingURL=QueryBuilderFilterPanel.js.map