@finos/legend-query-builder 4.14.54 → 4.14.56

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. package/lib/__lib__/QueryBuilderTesting.d.ts +5 -1
  2. package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
  3. package/lib/__lib__/QueryBuilderTesting.js +10 -1
  4. package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
  5. package/lib/components/QueryBuilder.js +3 -3
  6. package/lib/components/QueryBuilder.js.map +1 -1
  7. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +9 -1
  8. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
  9. package/lib/components/QueryBuilderPropertyExpressionEditor.js +10 -8
  10. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  11. package/lib/components/QueryLoader.js +3 -3
  12. package/lib/components/QueryLoader.js.map +1 -1
  13. package/lib/components/execution-plan/ExecutionPlanViewer.js +2 -2
  14. package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
  15. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +12 -2
  16. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
  17. package/lib/components/explorer/QueryBuilderExplorerPanel.js +4 -4
  18. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
  19. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +2 -2
  20. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -1
  21. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +1 -1
  22. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  23. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +55 -45
  24. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  25. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +2 -2
  26. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  27. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +5 -5
  28. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
  29. package/lib/components/filter/QueryBuilderFilterPanel.js +3 -3
  30. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  31. package/lib/components/result/QueryBuilderResultPanel.js +3 -3
  32. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  33. package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
  34. package/lib/components/result/tds/QueryBuilderTDSGridResult.js +2 -1
  35. package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
  36. package/lib/index.css +17 -1
  37. package/lib/index.css.map +1 -1
  38. package/lib/index.d.ts +12 -0
  39. package/lib/index.d.ts.map +1 -1
  40. package/lib/index.js +12 -0
  41. package/lib/index.js.map +1 -1
  42. package/lib/package.json +3 -3
  43. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +4 -2
  44. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
  45. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +12 -4
  46. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
  47. package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts +2 -1
  48. package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts.map +1 -1
  49. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +15 -0
  50. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -1
  51. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts +3 -2
  52. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +1 -1
  53. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +1 -1
  54. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -1
  55. package/lib/stores/workflows/ServiceQueryBuilderState.js +1 -1
  56. package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
  57. package/package.json +11 -11
  58. package/src/__lib__/QueryBuilderTesting.ts +10 -1
  59. package/src/components/QueryBuilder.tsx +5 -5
  60. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +35 -16
  61. package/src/components/QueryLoader.tsx +5 -5
  62. package/src/components/execution-plan/ExecutionPlanViewer.tsx +3 -3
  63. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +5 -5
  64. package/src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx +3 -3
  65. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +181 -160
  66. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +3 -3
  67. package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +9 -9
  68. package/src/components/filter/QueryBuilderFilterPanel.tsx +5 -5
  69. package/src/components/result/QueryBuilderResultPanel.tsx +5 -5
  70. package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +2 -1
  71. package/src/index.ts +24 -2
  72. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +15 -3
  73. package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +39 -0
  74. package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +1 -1
  75. package/src/stores/workflows/ServiceQueryBuilderState.ts +1 -1
@@ -16,7 +16,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
16
16
  */
17
17
  import { forwardRef, useEffect, useRef, useState } from 'react';
18
18
  import { observer } from 'mobx-react-lite';
19
- import { Tooltip, clsx, Dialog, TreeView, BlankPanelContent, DropdownMenu, ContextMenu, MenuContent, MenuContentItem, MenuContentItemIcon, MenuContentItemLabel, StringTypeIcon, ToggleIcon, HashtagIcon, ClockIcon, ChevronDownIcon, ChevronRightIcon, MoreVerticalIcon, CompressIcon, EyeIcon, InfoCircleIcon, PURE_ClassIcon, CheckIcon, SearchIcon, PanelLoadingIndicator, DragPreviewLayer, useDragPreviewLayer, Modal, ModalBody, ModalFooter, ModalHeader, ModalFooterButton, PanelHeaderActionItem, PanelHeaderActions, PanelHeader, } from '@finos/legend-art';
19
+ import { Tooltip, clsx, Dialog, TreeView, BlankPanelContent, ControlledDropdownMenu, ContextMenu, MenuContent, MenuContentItem, MenuContentItemIcon, MenuContentItemLabel, StringTypeIcon, ToggleIcon, HashtagIcon, ClockIcon, ChevronDownIcon, ChevronRightIcon, MoreVerticalIcon, CompressIcon, EyeIcon, InfoCircleIcon, PURE_ClassIcon, CheckIcon, SearchIcon, PanelLoadingIndicator, DragPreviewLayer, useDragPreviewLayer, Modal, ModalBody, ModalFooter, ModalHeader, ModalFooterButton, PanelHeaderActionItem, PanelHeaderActions, PanelHeader, } from '@finos/legend-art';
20
20
  import { QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, QueryBuilderExplorerTreeRootNodeData, QueryBuilderExplorerTreePropertyNodeData, QueryBuilderExplorerTreeSubTypeNodeData, getQueryBuilderPropertyNodeData, getQueryBuilderSubTypeNodeData, buildPropertyExpressionFromExplorerTreeNodeData, } from '../../stores/explorer/QueryBuilderExplorerState.js';
21
21
  import { useDrag } from 'react-dnd';
22
22
  import { QueryBuilderPropertyInfoTooltip, QueryBuilderTaggedValueInfoTooltip, } from '../shared/QueryBuilderPropertyInfoTooltip.js';
@@ -32,7 +32,7 @@ import { QueryBuilderSimpleProjectionColumnState } from '../../stores/fetch-stru
32
32
  import { getClassPropertyIcon } from '@finos/legend-lego/graph-editor';
33
33
  import { QueryBuilderRootClassInfoTooltip } from '../shared/QueryBuilderRootClassInfoTooltip.js';
34
34
  import { QueryBuilderTelemetryHelper } from '../../__lib__/QueryBuilderTelemetryHelper.js';
35
- const checkForDeprecatedNode = (node, graph, treeData) => {
35
+ export const checkForDeprecatedNode = (node, graph, treeData) => {
36
36
  if (node.type instanceof Class && isElementDeprecated(node.type, graph)) {
37
37
  return true;
38
38
  }
@@ -257,7 +257,7 @@ const QueryBuilderExplorerTreeNodeView = observer((props) => {
257
257
  * 4. Class Subtypes
258
258
  * Note: Derived property nodes will be ranked lower for each relevant return type
259
259
  */
260
- const getQueryBuilderExplorerTreeNodeSortRank = (node) => {
260
+ export const getQueryBuilderExplorerTreeNodeSortRank = (node) => {
261
261
  if (node instanceof QueryBuilderExplorerTreeSubTypeNodeData) {
262
262
  return 0;
263
263
  }
@@ -355,7 +355,7 @@ export const QueryBuilderExplorerPanel = observer((props) => {
355
355
  backdrop__element: applicationStore.layoutService.showBackdrop,
356
356
  }), children: [_jsxs(PanelHeader, { title: "explorer", children: [_jsxs(PanelHeaderActions, { children: [_jsx("button", { ref: searchButtonRef, className: clsx('panel__header__action', {
357
357
  'query-builder__explorer__header__action--active': propertySearchPanelState.isSearchPanelOpen,
358
- }), onClick: togglePropertySearch, tabIndex: -1, title: "Toggle property search", children: _jsx(SearchIcon, {}) }), _jsx(PanelHeaderActionItem, { onClick: collapseTree, title: "Collapse Tree", children: _jsx(CompressIcon, {}) }), _jsx(DropdownMenu, { className: "panel__header__action", title: "Show Options Menu...", content: _jsxs(MenuContent, { children: [_jsxs(MenuContentItem, { onClick: toggleShowUnmappedProperties, children: [_jsx(MenuContentItemIcon, { children: explorerState.showUnmappedProperties ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Unmapped Properties" })] }), _jsxs(MenuContentItem, { onClick: toggleHumanizePropertyName, children: [_jsx(MenuContentItemIcon, { children: explorerState.humanizePropertyName ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Humanize Property Name" })] }), _jsxs(MenuContentItem, { onClick: toggleHighlightUsedProperties, children: [_jsx(MenuContentItemIcon, { children: explorerState.highlightUsedProperties ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Highlight already used properties" })] })] }), menuProps: {
358
+ }), onClick: togglePropertySearch, tabIndex: -1, title: "Toggle property search", children: _jsx(SearchIcon, {}) }), _jsx(PanelHeaderActionItem, { onClick: collapseTree, title: "Collapse Tree", children: _jsx(CompressIcon, {}) }), _jsx(ControlledDropdownMenu, { className: "panel__header__action", title: "Show Options Menu...", content: _jsxs(MenuContent, { children: [_jsxs(MenuContentItem, { onClick: toggleShowUnmappedProperties, children: [_jsx(MenuContentItemIcon, { children: explorerState.showUnmappedProperties ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Unmapped Properties" })] }), _jsxs(MenuContentItem, { onClick: toggleHumanizePropertyName, children: [_jsx(MenuContentItemIcon, { children: explorerState.humanizePropertyName ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Humanize Property Name" })] }), _jsxs(MenuContentItem, { onClick: toggleHighlightUsedProperties, children: [_jsx(MenuContentItemIcon, { children: explorerState.highlightUsedProperties ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Highlight already used properties" })] })] }), menuProps: {
359
359
  anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
360
360
  transformOrigin: { vertical: 'top', horizontal: 'left' },
361
361
  elevation: 7,
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderExplorerPanel.js","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderExplorerPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAKL,OAAO,EACP,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,UAAU,EACV,WAAW,EACX,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,OAAO,EACP,cAAc,EACd,c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AiB,IAAI,CAC7C,KAAC,+BAA+B,IAC9B,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,eAAe,CAAC,OAAO,GACvC,CACH,IACW,EAEd,eAAK,SAAS,EAAC,qDAAqD,aAClE,KAAC,qBAAqB,IACpB,SAAS,EACP,aAAa,CAAC,iCAAiC,CAAC,YAAY,GAE9D,EACF,KAAC,gBAAgB,IACf,WAAW,EAAE,CAAC,IAAwC,EAAU,EAAE,CAChE,aAAa,CAAC,oBAAoB;4BAChC,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;4BAClC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAErB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,oCAAoC,CAAC,GAC1D,EACD,aAAa,CAAC,iCAAiC,CAAC,YAAY,CAAC,CAAC,CAAC,CAC9D,KAAC,iBAAiB,cACf,aAAa,CAAC,iCAAiC,CAAC,OAAO,GACtC,CACrB,CAAC,CAAC,CAAC,CACF,8BACG,CAAC,aAAa,CAAC,QAAQ,IAAI,CAC1B,KAAC,iBAAiB,kFAGE,CACrB,EACA,aAAa,CAAC,QAAQ,IAAI,CACzB,KAAC,wBAAwB,IACvB,iBAAiB,EAAE,iBAAiB,GACpC,CACH,IACA,CACJ,EACD,KAAC,oCAAoC,IACnC,iBAAiB,EAAE,iBAAiB,GACpC,IACE,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderExplorerPanel.js","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderExplorerPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAKL,OAAO,EACP,IAAI,EACJ,MAAM,E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-run
16
16
  */
17
17
  import { useState } from 'react';
18
18
  import { observer } from 'mobx-react-lite';
19
- import { FolderIcon, FolderOpenIcon, InfoCircleIcon, SubjectIcon, Tooltip, ViewHeadlineIcon, ChevronDownIcon, ChevronRightIcon, PURE_FunctionIcon, CompressIcon, TreeView, BlankPanelContent, MenuContentItem, DropdownMenu, MenuContent, CheckIcon, MenuContentItemIcon, MenuContentItemLabel, MoreVerticalIcon, DragPreviewLayer, useDragPreviewLayer, } from '@finos/legend-art';
19
+ import { FolderIcon, FolderOpenIcon, InfoCircleIcon, SubjectIcon, Tooltip, ViewHeadlineIcon, ChevronDownIcon, ChevronRightIcon, PURE_FunctionIcon, CompressIcon, TreeView, BlankPanelContent, MenuContentItem, ControlledDropdownMenu, MenuContent, CheckIcon, MenuContentItemIcon, MenuContentItemLabel, MoreVerticalIcon, DragPreviewLayer, useDragPreviewLayer, } from '@finos/legend-art';
20
20
  import { generateFunctionsExplorerTreeNodeData, getFunctionsExplorerTreeNodeChildren, QUERY_BUILDER_FUNCTION_DND_TYPE, } from '../../stores/explorer/QueryFunctionsExplorerState.js';
21
21
  import { useDrag } from 'react-dnd';
22
22
  import { ConcreteFunctionDefinition, generateFunctionPrettyName, getElementRootPackage, Package, ROOT_PACKAGE_NAME, getMultiplicityDescription, CORE_PURE_PATH, PURE_DOC_TAG, } from '@finos/legend-graph';
@@ -134,7 +134,7 @@ export const QueryBuilderFunctionsExplorerPanel = observer((props) => {
134
134
  const toggleShowDependencyFuncions = () => {
135
135
  setShowDependencyFuncions(!showDependencyFuncions);
136
136
  };
137
- return (_jsxs("div", { className: "panel query-builder__functions-explorer", children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "functions" }) }), _jsxs("div", { className: "panel__header__actions", children: [_jsx("button", { className: "panel__header__action", onClick: collapseTree, tabIndex: -1, children: viewAsTree && _jsx(CompressIcon, { title: "Collapse Tree" }) }), _jsx("div", { className: "panel__header__action query-builder__functions-explorer__custom-icon", children: !viewAsTree ? (_jsx(SubjectIcon, { title: "View as Tree", onClick: toggleViewAsListOrAsTree })) : (_jsx(ViewHeadlineIcon, { title: "View as List", onClick: toggleViewAsListOrAsTree })) }), _jsx(DropdownMenu, { className: "panel__header__action", title: "Show Options Menu...", content: _jsx(MenuContent, { children: _jsxs(MenuContentItem, { onClick: toggleShowDependencyFuncions, children: [_jsx(MenuContentItemIcon, { children: showDependencyFuncions ? _jsx(CheckIcon, {}) : null }), _jsx(MenuContentItemLabel, { children: "Show functions from dependency projects" })] }) }), menuProps: {
137
+ return (_jsxs("div", { className: "panel query-builder__functions-explorer", children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "functions" }) }), _jsxs("div", { className: "panel__header__actions", children: [_jsx("button", { className: "panel__header__action", onClick: collapseTree, tabIndex: -1, children: viewAsTree && _jsx(CompressIcon, { title: "Collapse Tree" }) }), _jsx("div", { className: "panel__header__action query-builder__functions-explorer__custom-icon", children: !viewAsTree ? (_jsx(SubjectIcon, { title: "View as Tree", onClick: toggleViewAsListOrAsTree })) : (_jsx(ViewHeadlineIcon, { title: "View as List", onClick: toggleViewAsListOrAsTree })) }), _jsx(ControlledDropdownMenu, { className: "panel__header__action", title: "Show Options Menu...", content: _jsx(MenuContent, { children: _jsxs(MenuContentItem, { onClick: toggleShowDependencyFuncions, children: [_jsx(MenuContentItemIcon, { children: showDependencyFuncions ? _jsx(CheckIcon, {}) : null }), _jsx(MenuContentItemLabel, { children: "Show functions from dependency projects" })] }) }), menuProps: {
138
138
  anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
139
139
  transformOrigin: { vertical: 'top', horizontal: 'left' },
140
140
  elevation: 7,
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderFunctionsExplorerPanel.js","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx"],"names":[],"mappings":";AAAA;;;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iBAAiB,CAAC,IAAI,CAI3B,CACH,CACF,EACA,sBAAsB;gCACrB,mBAAmB,CAAC,kBAAkB;gCACtC,mBAAmB,CAAC,kBAAkB,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CAC7D,8BACG,mBAAmB,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CACrD,cAAK,SAAS,EAAC,8CAA8C,GAAG,CACjE,EACA,mBAAmB,CAAC,gCAAgC,CAAC,GAAG,CACvD,CAAC,iBAAiB,EAAE,EAAE,CAAC,CACrB,KAAC,sCAAsC,IAErC,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,iBAAiB,CAAC,0BAA0B,EACrD,eAAe,EACb,iBAAiB,CAAC,uBAAuB,IAJtC,iBAAiB,CAAC,IAAI,CAM3B,CACH,CACF,IACA,CACJ,IACF,CACJ,IACG,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderFunctionsExplorerPanel.js","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAGL,UAAU,EACV,cAAc,EACd,cAAc,EACd,WAAW,EACX,OAAO,EACP,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,qCAAqC,EACrC,oCAAoC,EACpC,+BAA+B,GAChC,MAAM,sDAAsD,CAAC;AAC9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AAI,CAM3B,CACH,CACF,IACA,CACJ,IACF,CACJ,IACG,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -18,8 +18,8 @@ import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
18
18
  import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/QueryBuilderTDSColumnState.js';
19
19
  export declare const QueryBuilderColumnBadge: ((props: {
20
20
  colState: QueryBuilderTDSColumnState;
21
+ removeColumn: () => void;
21
22
  onColumnChange?: ((columnState: QueryBuilderProjectionColumnState) => Promise<void>) | undefined;
22
- removeColumn?: () => void;
23
23
  }) => import("react/jsx-runtime").JSX.Element) & {
24
24
  displayName: string;
25
25
  };
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPostFilterPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAuEH,OAAO,EACL,KAAK,iCAAiC,EAIvC,MAAM,kFAAkF,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAkB3E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AA2GjH,eAAO,MAAM,uBAAuB,WAC1B;IACN,QAAQ,EAAE,0BAA0B,CAAC;IACrC,cAAc,CAAC,EACX,CAAC,CAAC,WAAW,EAAE,iCAAiC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,GACnE,SAAS,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;;CA0FF,CAAC;AAg4BF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA+BjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderPostFilterPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAqEH,OAAO,EACL,KAAK,iCAAiC,EAIvC,MAAM,kFAAkF,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAkB3E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AAsGjH,eAAO,MAAM,uBAAuB,WAC1B;IACN,QAAQ,EAAE,0BAA0B,CAAC;IACrC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,cAAc,CAAC,EACX,CAAC,CAAC,WAAW,EAAE,iCAAiC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,GACnE,SAAS,CAAC;CACf;;CAwFF,CAAC;AA85BF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA+BjD,CAAC"}
@@ -15,12 +15,12 @@ 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 { BlankPanelPlaceholder, CaretDownIcon, ChevronDownIcon, ChevronRightIcon, clsx, ContextMenu, DropdownMenu, FilledTriangleIcon, MenuContent, MenuContentItem, TimesIcon, PlusIcon, ExpandIcon, CompressIcon, CircleIcon, TrashIcon, NewFolderIcon, PlusCircleIcon, InfoCircleIcon, PanelDropZone, DragPreviewLayer, PanelEntryDropZonePlaceholder, useDragPreviewLayer, BlankPanelContent, PanelContent, MoreVerticalIcon, MenuContentItemIcon, MenuContentItemLabel, PanelLoadingIndicator, RefreshIcon, } from '@finos/legend-art';
18
+ import { BlankPanelPlaceholder, CaretDownIcon, clsx, ContextMenu, ControlledDropdownMenu, MenuContent, MenuContentItem, TimesIcon, PlusIcon, ExpandIcon, CompressIcon, CircleIcon, TrashIcon, NewFolderIcon, PlusCircleIcon, InfoCircleIcon, PanelDropZone, DragPreviewLayer, PanelEntryDropZonePlaceholder, useDragPreviewLayer, BlankPanelContent, PanelContent, MoreVerticalIcon, MenuContentItemIcon, MenuContentItemLabel, PanelLoadingIndicator, RefreshIcon, } from '@finos/legend-art';
19
19
  import { Class, Enumeration, PrimitiveType, } from '@finos/legend-graph';
20
20
  import { assertErrorThrown, guaranteeNonNullable, debounce, } from '@finos/legend-shared';
21
21
  import { flowResult } from 'mobx';
22
22
  import { observer } from 'mobx-react-lite';
23
- import React, { forwardRef, useCallback, useMemo, useRef, useState, } from 'react';
23
+ import React, { forwardRef, useCallback, useEffect, useMemo, useRef, useState, } from 'react';
24
24
  import { useDrop, useDrag, useDragLayer } from 'react-dnd';
25
25
  import { PostFilterConditionState, QueryBuilderPostFilterTreeConditionNodeData, QueryBuilderPostFilterTreeGroupNodeData, QueryBuilderPostFilterTreeBlankConditionNodeData, QUERY_BUILDER_POST_FILTER_DND_TYPE, PostFilterValueSpecConditionValueState, PostFilterTDSColumnValueConditionValueState, } from '../../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
26
26
  import { QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE, QueryBuilderDerivationProjectionColumnState, } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
@@ -28,12 +28,14 @@ import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
28
28
  import { isTypeCompatibleForAssignment } from '../../stores/QueryBuilderValueSpecificationHelper.js';
29
29
  import { QUERY_BUILDER_GROUP_OPERATION } from '../../stores/QueryBuilderGroupOperationHelper.js';
30
30
  import { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
31
- import { BasicValueSpecificationEditor, QUERY_BUILDER_VARIABLE_DND_TYPE, } from '../shared/BasicValueSpecificationEditor.js';
31
+ import { QUERY_BUILDER_VARIABLE_DND_TYPE, EditableBasicValueSpecificationEditor, } from '../shared/BasicValueSpecificationEditor.js';
32
32
  import { QueryBuilderColumnInfoTooltip, renderPropertyTypeIcon, } from './QueryBuilderTDSComponentHelper.js';
33
33
  import { QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE, } from '../../stores/fetch-structure/tds/window/QueryBuilderWindowState.js';
34
34
  import { QueryBuilderTelemetryHelper } from '../../__lib__/QueryBuilderTelemetryHelper.js';
35
35
  import { QueryBuilderPanelIssueCountBadge } from '../shared/QueryBuilderPanelIssueCountBadge.js';
36
36
  import { QueryBuilderPostFilterOperator_In, QueryBuilderPostFilterOperator_NotIn, } from '../../stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js';
37
+ import { QueryBuilderPropertyNameDisplay } from '../QueryBuilderPropertyExpressionEditor.js';
38
+ import { convertTextToPrimitiveInstanceValue } from '../../stores/shared/ValueSpecificationEditorHelper.js';
37
39
  const QueryBuilderPostFilterConditionContextMenu = observer(forwardRef(function QueryBuilderPostFilterConditionContextMenu(props, ref) {
38
40
  const { tdsState, node } = props;
39
41
  const postFilterState = tdsState.postFilterState;
@@ -58,10 +60,7 @@ const QueryBuilderPostFilterGroupConditionEditor = observer((props) => {
58
60
  : QUERY_BUILDER_GROUP_OPERATION.AND);
59
61
  };
60
62
  const operationName = node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND ? 'AND' : 'OR';
61
- return (_jsx("div", { className: "query-builder-post-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-post-filter-tree__group-node', {
62
- 'query-builder-post-filter-tree__group-node--and': node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND,
63
- 'query-builder-post-filter-tree__group-node--or': node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.OR,
64
- }), title: "Switch Operation", onClick: switchOperation, children: [_jsx("div", { className: "query-builder-post-filter-tree__group-node__label", children: node.groupOperation }), _jsx("button", { className: "query-builder-post-filter-tree__group-node__action", children: _jsx(FilledTriangleIcon, {}) })] }) }) }));
63
+ return (_jsx("div", { className: "dnd__entry__container", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, label: operationName, className: "query-builder-post-filter-tree__group-node__drop-zone", children: _jsx("div", { className: "query-builder-post-filter-tree__group-node", title: "Switch Operation", onClick: switchOperation, children: _jsx("div", { className: "query-builder-post-filter-tree__group-node__label editable-value", children: node.groupOperation }) }) }) }));
65
64
  });
66
65
  export const QueryBuilderColumnBadge = observer((props) => {
67
66
  const { colState, onColumnChange, removeColumn } = props;
@@ -88,7 +87,7 @@ export const QueryBuilderColumnBadge = observer((props) => {
88
87
  'query-builder-column-badge__type--class': type instanceof Class,
89
88
  'query-builder-column-badge__type--enumeration': type instanceof Enumeration,
90
89
  'query-builder-column-badge__type--primitive': type instanceof PrimitiveType,
91
- }), children: renderPropertyTypeIcon(type) })), _jsx("div", { className: "query-builder-column-badge__property", title: `${colState.columnName}`, children: colState.columnName }), _jsx(QueryBuilderColumnInfoTooltip, { columnState: colState, placement: "bottom-end", children: _jsx("div", { className: "query-builder-column-badge__property__info", children: _jsx(InfoCircleIcon, {}) }) }), removeColumn && (_jsx("button", { className: "query-builder-column-badge__action", name: "Reset", title: "Reset", onClick: removeColumn, children: _jsx(RefreshIcon, {}) }))] }));
90
+ }), children: renderPropertyTypeIcon(type) })), _jsx("div", { className: "query-builder-column-badge__property", title: `${colState.columnName}`, children: colState.columnName }), _jsx(QueryBuilderColumnInfoTooltip, { columnState: colState, placement: "bottom-end", children: _jsx("div", { className: "query-builder-column-badge__property__info", children: _jsx(InfoCircleIcon, {}) }) }), _jsx("button", { className: "query-builder-column-badge__action", name: "Reset", title: "Reset", onClick: removeColumn, children: _jsx(RefreshIcon, {}) })] }));
92
91
  return onColumnChange ? (_jsx("div", { ref: dropConnector, className: "query-builder-column-badge", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, label: "Change Property", children: renderColumnBadgeContent() }) })) : (_jsx("div", { className: "query-builder-column-badge", children: renderColumnBadgeContent() }));
93
92
  });
94
93
  const isProjectionColumnDragSource = (itemToTest) => Object.hasOwn(itemToTest, 'columnState');
@@ -152,7 +151,10 @@ const QueryBuilderPostFilterConditionEditor = observer((props) => {
152
151
  const resetNode = () => {
153
152
  node.condition.buildFromValueSpec(node.condition.operator.getDefaultFilterConditionValue(node.condition));
154
153
  };
155
- const debouncedTypeaheadSearch = useMemo(() => debounce((inputVal) => node.condition.handleTypeaheadSearch(), 1000), [node]);
154
+ const debouncedTypeaheadSearch = useMemo(() => debounce((inputValue) => {
155
+ const inputValueSpec = convertTextToPrimitiveInstanceValue(PrimitiveType.STRING, inputValue, queryBuilderState.observerContext);
156
+ return node.condition.handleTypeaheadSearch(inputValueSpec ?? undefined);
157
+ }, 1000), [node, queryBuilderState.observerContext]);
156
158
  const cleanUpReloadValues = () => {
157
159
  node.condition.typeaheadSearchState.complete();
158
160
  };
@@ -171,20 +173,23 @@ const QueryBuilderPostFilterConditionEditor = observer((props) => {
171
173
  const renderRightVal = () => {
172
174
  if (rightConditionValue instanceof PostFilterValueSpecConditionValueState &&
173
175
  rightConditionValue.value) {
174
- return (_jsx("div", { ref: dropConnector, className: "query-builder-post-filter-tree__condition-node__value", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isFilterValueDragOver, isDroppable: isFilterValueDroppable, label: "Change Filter Value", children: _jsx(BasicValueSpecificationEditor, { valueSpecification: rightConditionValue.value, setValueSpecification: changeValueSpecification, graph: graph, observerContext: queryBuilderState.observerContext, typeCheckOption: {
176
+ return (_jsx("div", { ref: dropConnector, className: "query-builder-post-filter-tree__condition-node__value", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isFilterValueDragOver, isDroppable: isFilterValueDroppable, label: "Change Filter Value", children: _jsx(EditableBasicValueSpecificationEditor, { valueSpecification: rightConditionValue.value, setValueSpecification: changeValueSpecification, graph: graph, observerContext: queryBuilderState.observerContext, typeCheckOption: {
175
177
  expectedType: guaranteeNonNullable(node.condition.leftConditionValue.getColumnType()),
176
- }, resetValue: resetNode, selectorConfig: selectorConfig, isConstant: queryBuilderState.constantState.isValueSpecConstant(rightConditionValue.value) }) }) }));
178
+ }, resetValue: resetNode, selectorConfig: selectorConfig, isConstant: queryBuilderState.constantState.isValueSpecConstant(rightConditionValue.value), initializeAsEditable: node.isNewlyAdded }) }) }));
177
179
  }
178
180
  else if (rightConditionValue instanceof
179
181
  PostFilterTDSColumnValueConditionValueState) {
180
182
  const changeRightCol = async (columnState) => {
181
183
  rightConditionValue.changeCol(columnState);
182
184
  };
183
- return (_jsx("div", { ref: dropConnector, className: "query-builder-post-filter-tree__condition-node__value", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isFilterValueDragOver, isDroppable: isFilterValueDroppable, label: "Change Filter Value", children: _jsx("div", { className: "query-builder-post-filter-tree__condition-node__property", children: _jsx(QueryBuilderColumnBadge, { colState: rightConditionValue.tdsColumn, onColumnChange: isFilterValueDroppable ? changeRightCol : undefined, removeColumn: removeTDSColumnValue }) }) }) }));
185
+ return (_jsx("div", { ref: dropConnector, className: "query-builder-post-filter-tree__condition-node__value", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isFilterValueDragOver, isDroppable: isFilterValueDroppable, label: "Change Filter Value", children: _jsx(QueryBuilderColumnBadge, { colState: rightConditionValue.tdsColumn, onColumnChange: isFilterValueDroppable ? changeRightCol : undefined, removeColumn: removeTDSColumnValue }) }) }));
184
186
  }
185
187
  return null;
186
188
  };
187
- return (_jsx("div", { className: "query-builder-post-filter-tree__node__label__content dnd__entry__container", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver && !isFilterValueDragOver, alwaysShowChildren: true, className: "query-builder-post-filter-tree__node__drop-zone-placeholder", children: _jsxs("div", { className: "query-builder-post-filter-tree__condition-node", children: [_jsx("div", { className: "query-builder-post-filter-tree__condition-node__property", children: _jsx(QueryBuilderColumnBadge, { colState: node.condition.leftConditionValue }) }), _jsxs(DropdownMenu, { className: "query-builder-post-filter-tree__condition-node__operator", title: "Choose Operator...", content: _jsx(MenuContent, { children: node.condition.operators.map((op) => (_jsx(MenuContentItem, { className: "query-builder-post-filter-tree__condition-node__operator__dropdown__option", onClick: changeOperator(op), children: op.getLabel() }, op.uuid))) }), menuProps: {
189
+ useEffect(() => {
190
+ node.setIsNewlyAdded(false);
191
+ }, [node]);
192
+ return (_jsx("div", { className: "dnd__entry__container", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver && !isFilterValueDragOver, alwaysShowChildren: true, className: "query-builder-post-filter-tree__node__drop-zone-placeholder", children: _jsxs("div", { className: "query-builder-post-filter-tree__condition-node", children: [_jsx("div", { className: "query-builder-post-filter-tree__condition-node__property", children: _jsx(QueryBuilderPropertyNameDisplay, { columnName: node.condition.leftConditionValue.columnName, title: node.condition.leftConditionValue.columnName }) }), _jsxs(ControlledDropdownMenu, { className: "query-builder-post-filter-tree__condition-node__operator", title: "Choose Operator...", content: _jsx(MenuContent, { children: node.condition.operators.map((op) => (_jsx(MenuContentItem, { className: "query-builder-post-filter-tree__condition-node__operator__dropdown__option", onClick: changeOperator(op), children: op.getLabel() }, op.uuid))) }), menuProps: {
188
193
  anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
189
194
  transformOrigin: { vertical: 'top', horizontal: 'left' },
190
195
  elevation: 7,
@@ -195,20 +200,19 @@ const QueryBuilderPostFilterBlankConditionEditor = observer((props) => {
195
200
  return (_jsx("div", { className: "query-builder-post-filter-tree__node__label__content", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, label: "Create Condition", children: _jsx("div", { className: "query-builder-post-filter-tree__blank-node", children: "blank" }) }) }));
196
201
  });
197
202
  const QueryBuilderPostFilterTreeNodeContainer = observer((props) => {
198
- const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
203
+ const { node, onNodeSelect, innerProps } = props;
199
204
  const { tdsState } = innerProps;
200
- const ref = useRef(null);
205
+ const dragRef = useRef(null);
201
206
  const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] = useState(false);
202
207
  const applicationStore = useApplicationStore();
203
208
  const postFilterState = tdsState.postFilterState;
204
- const isExpandable = node instanceof QueryBuilderPostFilterTreeGroupNodeData;
205
209
  const selectNode = () => onNodeSelect?.(node);
206
- const toggleExpandNode = () => node.setIsOpen(!node.isOpen);
207
210
  const removeNode = () => postFilterState.removeNodeAndPruneBranch(node);
211
+ // Drag and Drop
208
212
  const handleDrop = useCallback((item, type) => {
209
213
  if (QUERY_BUILDER_POST_FILTER_DND_TYPE.CONDITION === type) {
210
214
  const nodeBeingDragged = item.node;
211
- const newCreatedNode = new QueryBuilderPostFilterTreeConditionNodeData(undefined, postFilterState.nodes.get(nodeBeingDragged.id).condition);
215
+ const newCreatedNode = new QueryBuilderPostFilterTreeConditionNodeData(undefined, postFilterState.nodes.get(nodeBeingDragged.id).condition, true);
212
216
  if (node instanceof QueryBuilderPostFilterTreeConditionNodeData) {
213
217
  postFilterState.newGroupWithConditionFromNode(newCreatedNode, node);
214
218
  postFilterState.removeNodeAndPruneBranch(nodeBeingDragged);
@@ -236,7 +240,7 @@ const QueryBuilderPostFilterTreeNodeContainer = observer((props) => {
236
240
  return;
237
241
  }
238
242
  if (node instanceof QueryBuilderPostFilterTreeGroupNodeData) {
239
- postFilterState.addNodeFromNode(new QueryBuilderPostFilterTreeConditionNodeData(undefined, conditionState), node);
243
+ postFilterState.addNodeFromNode(new QueryBuilderPostFilterTreeConditionNodeData(undefined, conditionState, true), node);
240
244
  }
241
245
  else if (node instanceof QueryBuilderPostFilterTreeConditionNodeData) {
242
246
  postFilterState.newGroupWithConditionFromNode(new QueryBuilderPostFilterTreeConditionNodeData(undefined, conditionState), node);
@@ -270,33 +274,39 @@ const QueryBuilderPostFilterTreeNodeContainer = observer((props) => {
270
274
  : QUERY_BUILDER_POST_FILTER_DND_TYPE.BLANK_CONDITION,
271
275
  item: () => ({ node }),
272
276
  end: () => postFilterState.setRearrangingConditions(false),
277
+ canDrag: () => node instanceof QueryBuilderPostFilterTreeConditionNodeData ||
278
+ node instanceof QueryBuilderPostFilterTreeBlankConditionNodeData,
273
279
  }), [node, postFilterState]);
274
- dragConnector(dropConnector(ref));
280
+ dragConnector(dropConnector(dragRef));
275
281
  useDragPreviewLayer(dragPreviewConnector);
276
- // context menu
277
- const onContextMenuOpen = () => setIsSelectedFromContextMenu(true);
278
- const onContextMenuClose = () => setIsSelectedFromContextMenu(false);
279
282
  const { isDroppable } = useDragLayer((monitor) => ({
280
283
  isDroppable: monitor.isDragging() &&
281
284
  (monitor.getItemType() === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE ||
282
285
  monitor.getItemType() === QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE),
283
286
  }));
284
- return (_jsx(ContextMenu, { content: _jsx(QueryBuilderPostFilterConditionContextMenu, { tdsState: tdsState, node: node }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: _jsxs("div", { ref: ref, "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER_TREE_NODE_CONTENT, className: clsx('tree-view__node__container query-builder-post-filter-tree__node__container', {
285
- 'query-builder-post-filter-tree__node__container--no-hover': postFilterState.isRearrangingConditions,
286
- 'query-builder-post-filter-tree__node__container--selected': node === postFilterState.selectedNode,
287
- 'query-builder-post-filter-tree__node__container--selected-from-context-menu': isSelectedFromContextMenu,
288
- }), children: [_jsxs("div", { className: "query-builder-post-filter-tree__node__content", style: {
289
- paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 2) + 1.5}rem`,
290
- display: 'flex',
291
- }, onClick: selectNode, children: [isExpandable && (_jsx("div", { className: "query-builder-post-filter-tree__expand-icon", onClick: toggleExpandNode, children: node.isOpen ? _jsx(ChevronDownIcon, {}) : _jsx(ChevronRightIcon, {}) })), _jsxs("div", { className: clsx('tree-view__node__label query-builder-post-filter-tree__node__label', {
292
- 'query-builder-post-filter-tree__node__label--expandable': isExpandable,
293
- }), children: [node instanceof QueryBuilderPostFilterTreeGroupNodeData && (_jsx(QueryBuilderPostFilterGroupConditionEditor, { node: node, isDroppable: isDroppable, isDragOver: isDragOver })), node instanceof QueryBuilderPostFilterTreeConditionNodeData && (_jsx(QueryBuilderPostFilterConditionEditor, { node: node, isDragOver: deepIsDragOver })), node instanceof
294
- QueryBuilderPostFilterTreeBlankConditionNodeData && (_jsx(QueryBuilderPostFilterBlankConditionEditor, { node: node, isDragOver: isDragOver, isDroppable: isDroppable }))] })] }), _jsx("div", { className: "query-builder-post-filter-tree__node__actions", children: _jsx("button", { className: "query-builder-post-filter-tree__node__action", tabIndex: -1, title: "Remove", onClick: removeNode, children: _jsx(TimesIcon, {}) }) })] }) }));
287
+ // context menu
288
+ const onContextMenuOpen = () => setIsSelectedFromContextMenu(true);
289
+ const onContextMenuClose = () => setIsSelectedFromContextMenu(false);
290
+ const showRemoveButton = node instanceof QueryBuilderPostFilterTreeConditionNodeData ||
291
+ node instanceof QueryBuilderPostFilterTreeBlankConditionNodeData;
292
+ return (_jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER_TREE_NODE_CONTAINER, onClick: node instanceof QueryBuilderPostFilterTreeConditionNodeData ||
293
+ node instanceof QueryBuilderPostFilterTreeBlankConditionNodeData
294
+ ? selectNode
295
+ : undefined, className: clsx('query-builder-post-filter-tree__node__container', {
296
+ 'query-builder-post-filter-tree__node__container--group': node instanceof QueryBuilderPostFilterTreeGroupNodeData,
297
+ 'query-builder-post-filter-tree__node__container--condition': node instanceof QueryBuilderPostFilterTreeConditionNodeData ||
298
+ node instanceof QueryBuilderPostFilterTreeBlankConditionNodeData,
299
+ 'query-builder-post-filter-tree__node__container--no-hover': postFilterState.isRearrangingConditions,
300
+ 'query-builder-post-filter-tree__node__container--selected': node === postFilterState.selectedNode,
301
+ 'query-builder-post-filter-tree__node__container--selected-from-context-menu': isSelectedFromContextMenu,
302
+ }), children: _jsxs(ContextMenu, { content: _jsx(QueryBuilderPostFilterConditionContextMenu, { tdsState: tdsState, node: node }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, className: "query-builder-post-filter-tree__node__context-menu", children: [_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER_TREE_NODE_CONTENT, className: "query-builder-post-filter-tree__node__content", ref: dragRef, children: [node instanceof QueryBuilderPostFilterTreeGroupNodeData && (_jsx(QueryBuilderPostFilterGroupConditionEditor, { node: node, isDroppable: isDroppable, isDragOver: isDragOver })), node instanceof QueryBuilderPostFilterTreeConditionNodeData && (_jsx(QueryBuilderPostFilterConditionEditor, { node: node, isDragOver: deepIsDragOver })), node instanceof
303
+ QueryBuilderPostFilterTreeBlankConditionNodeData && (_jsx(QueryBuilderPostFilterBlankConditionEditor, { node: node, isDragOver: isDragOver, isDroppable: isDroppable }))] }), showRemoveButton && (_jsx("div", { className: "query-builder-post-filter-tree__node__actions", children: _jsx("button", { className: "query-builder-post-filter-tree__node__action", tabIndex: -1, title: "Remove", onClick: removeNode, children: _jsx(TimesIcon, {}) }) }))] }) }));
295
304
  });
296
305
  const QueryBuilderPostFilterTreeNodeView = observer((props) => {
297
306
  const { node, level, onNodeSelect, getChildNodes, stepPaddingInRem, innerProps, } = props;
298
- return (_jsxs("div", { className: "tree-view__node__block", children: [_jsx(QueryBuilderPostFilterTreeNodeContainer, { node: node, level: level + 1, stepPaddingInRem: stepPaddingInRem, onNodeSelect: onNodeSelect, innerProps: innerProps }), node.isOpen &&
299
- getChildNodes(node).map((childNode) => (_jsx(QueryBuilderPostFilterTreeNodeView, { node: childNode, level: level + 1, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: innerProps }, childNode.id)))] }));
307
+ return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER_TREE_NODE_BLOCK, className: clsx('query-builder-post-filter-tree__node__block', {
308
+ 'query-builder-post-filter-tree__node__block--group': node instanceof QueryBuilderPostFilterTreeGroupNodeData,
309
+ }), children: [_jsx(QueryBuilderPostFilterTreeNodeContainer, { node: node, level: level + 1, stepPaddingInRem: stepPaddingInRem, onNodeSelect: onNodeSelect, innerProps: innerProps }), node.isOpen && getChildNodes(node).length > 0 && (_jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER_TREE_NODE_CHILDREN, className: "query-builder-post-filter-tree__node__children", children: getChildNodes(node).map((childNode) => (_jsx(QueryBuilderPostFilterTreeNodeView, { node: childNode, level: level + 1, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: innerProps }, childNode.id))) }))] }));
300
310
  });
301
311
  const QueryBuilderPostFilterTree = observer((props) => {
302
312
  const { tdsState } = props;
@@ -306,7 +316,7 @@ const QueryBuilderPostFilterTree = observer((props) => {
306
316
  const getChildNodes = (node) => node instanceof QueryBuilderPostFilterTreeGroupNodeData
307
317
  ? node.childrenIds.map((id) => postFilterState.getNode(id))
308
318
  : [];
309
- return (_jsx("div", { className: "tree-view__node__root query-builder-post-filter-tree__root", children: rootNodes.map((node) => (_jsx(QueryBuilderPostFilterTreeNodeView, { level: 0, node: node, getChildNodes: getChildNodes, onNodeSelect: onNodeSelect, innerProps: {
319
+ return (_jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER_TREE, className: "tree-view__node__root query-builder-post-filter-tree__root", children: rootNodes.map((node) => (_jsx(QueryBuilderPostFilterTreeNodeView, { level: 0, node: node, getChildNodes: getChildNodes, onNodeSelect: onNodeSelect, innerProps: {
310
320
  tdsState: tdsState,
311
321
  } }, node.id))) }));
312
322
  });
@@ -355,6 +365,11 @@ const QueryBuilderPostFilterPanelContent = observer((props) => {
355
365
  postFilterState.newGroupWithConditionFromNode(undefined, postFilterState.selectedNode);
356
366
  }
357
367
  };
368
+ const { isDroppable } = useDragLayer((monitor) => ({
369
+ isDroppable: monitor.isDragging() &&
370
+ (monitor.getItemType() === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE ||
371
+ monitor.getItemType() === QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE),
372
+ }));
358
373
  // Drag and Drop
359
374
  const handleDrop = useCallback(async (item) => {
360
375
  let postFilterConditionState;
@@ -378,7 +393,7 @@ const QueryBuilderPostFilterPanelContent = observer((props) => {
378
393
  }
379
394
  // NOTE: unfocus the current node when DnD a new node to the tree
380
395
  postFilterState.setSelectedNode(undefined);
381
- postFilterState.addNodeFromNode(new QueryBuilderPostFilterTreeConditionNodeData(undefined, postFilterConditionState), undefined);
396
+ postFilterState.addNodeFromNode(new QueryBuilderPostFilterTreeConditionNodeData(undefined, postFilterConditionState, true), undefined);
382
397
  }, [applicationStore, postFilterState, tdsState.aggregationState.columns]);
383
398
  const [{ isDragOver }, dropTargetConnector] = useDrop(() => ({
384
399
  accept: [
@@ -396,15 +411,10 @@ const QueryBuilderPostFilterPanelContent = observer((props) => {
396
411
  }), [applicationStore, handleDrop]);
397
412
  const addPostFilterRef = useRef(null);
398
413
  dropTargetConnector(addPostFilterRef);
399
- const { isDroppable } = useDragLayer((monitor) => ({
400
- isDroppable: monitor.isDragging() &&
401
- (monitor.getItemType() === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE ||
402
- monitor.getItemType() === QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE),
403
- }));
404
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "panel__header", children: [_jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "panel__header__title__label", children: "post-filter" }), postFilterState.allValidationIssues.length !== 0 && (_jsx(QueryBuilderPanelIssueCountBadge, { issues: postFilterState.allValidationIssues }))] }), _jsx("div", { className: "panel__header__actions", children: _jsx(DropdownMenu, { className: "panel__header__action", title: "Show Post-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: !(postFilterState.selectedNode instanceof
414
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "panel__header", children: [_jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "panel__header__title__label", children: "post-filter" }), postFilterState.allValidationIssues.length !== 0 && (_jsx(QueryBuilderPanelIssueCountBadge, { issues: postFilterState.allValidationIssues }))] }), _jsx("div", { className: "panel__header__actions", children: _jsx(ControlledDropdownMenu, { className: "panel__header__action", title: "Show Post-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: !(postFilterState.selectedNode instanceof
405
415
  QueryBuilderPostFilterTreeConditionNodeData), onClick: newGroupWithCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(PlusCircleIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Group From Condition" })] }), _jsxs(MenuContentItem, { disabled: !allowGroupCreation, title: !allowGroupCreation
406
416
  ? 'Please select a filter node first to create logical group'
407
- : '', 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 && postFilterState.isEmpty, isDroppable: isDroppable && postFilterState.isEmpty, dropTargetConnector: dropTargetConnector, children: [_jsx(PanelLoadingIndicator, { isLoading: Boolean(postFilterState.derivedColumnBeingDropped) }), postFilterState.isEmpty && (_jsx(BlankPanelPlaceholder, { text: "Add a post-filter condition", tooltipText: "Drag and drop properties here" })), !postFilterState.isEmpty && (_jsxs(_Fragment, { children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.node.dragPreviewLabel, types: Object.values(QUERY_BUILDER_POST_FILTER_DND_TYPE) }), _jsx(QueryBuilderPostFilterTree, { tdsState: tdsState })] })), isDroppable && !postFilterState.isEmpty && (_jsx("div", { ref: addPostFilterRef, className: "query-builder-post-filter-tree__free-drop-zone__container", children: _jsxs(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, className: "query-builder-post-filter-tree__free-drop-zone", label: "Add post-filter to main group", children: [_jsx(_Fragment, {}), ' '] }) }))] }) })] }));
417
+ : '', 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 && postFilterState.isEmpty, isDroppable: isDroppable && postFilterState.isEmpty, dropTargetConnector: dropTargetConnector, children: [_jsx(PanelLoadingIndicator, { isLoading: Boolean(postFilterState.derivedColumnBeingDropped) }), postFilterState.isEmpty && (_jsx(BlankPanelPlaceholder, { text: "Add a post-filter condition", tooltipText: "Drag and drop properties here" })), !postFilterState.isEmpty && (_jsxs(_Fragment, { children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.node.dragPreviewLabel, types: Object.values(QUERY_BUILDER_POST_FILTER_DND_TYPE) }), _jsx(QueryBuilderPostFilterTree, { tdsState: tdsState })] })), isDroppable && !postFilterState.isEmpty && (_jsx("div", { ref: addPostFilterRef, className: "query-builder-post-filter-tree__free-drop-zone__container", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, className: "query-builder-post-filter-tree__free-drop-zone", label: "Add post-filter to main group", children: _jsx(_Fragment, {}) }) }))] }) })] }));
408
418
  });
409
419
  export const QueryBuilderPostFilterPanel = observer((props) => {
410
420
  const { queryBuilderState } = props;