@finos/legend-query-builder 4.14.31 → 4.14.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/lib/__lib__/QueryBuilderTesting.d.ts +3 -1
  2. package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
  3. package/lib/__lib__/QueryBuilderTesting.js +3 -1
  4. package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
  5. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +3 -3
  6. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
  7. package/lib/components/QueryBuilderPropertyExpressionEditor.js +23 -15
  8. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  9. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  10. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +7 -7
  11. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  12. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  13. package/lib/components/filter/QueryBuilderFilterPanel.js +32 -25
  14. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  15. package/lib/components/result/QueryBuilderResultPanel.d.ts +7 -0
  16. package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
  17. package/lib/components/result/QueryBuilderResultPanel.js +1 -1
  18. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  19. package/lib/index.css +2 -2
  20. package/lib/index.css.map +1 -1
  21. package/lib/index.d.ts +1 -0
  22. package/lib/index.d.ts.map +1 -1
  23. package/lib/index.js +1 -0
  24. package/lib/index.js.map +1 -1
  25. package/lib/package.json +1 -1
  26. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
  27. package/lib/stores/QueryBuilderStateBuilder.js +7 -1
  28. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  29. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts +0 -1
  30. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
  31. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +2 -27
  32. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
  33. package/lib/stores/fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.d.ts +20 -0
  34. package/lib/stores/fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.d.ts.map +1 -0
  35. package/lib/stores/fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.js +54 -0
  36. package/lib/stores/fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.js.map +1 -0
  37. package/package.json +2 -2
  38. package/src/__lib__/QueryBuilderTesting.ts +3 -1
  39. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +34 -20
  40. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +9 -16
  41. package/src/components/filter/QueryBuilderFilterPanel.tsx +133 -126
  42. package/src/components/result/QueryBuilderResultPanel.tsx +1 -1
  43. package/src/index.ts +1 -0
  44. package/src/stores/QueryBuilderStateBuilder.ts +18 -5
  45. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +1 -68
  46. package/src/stores/fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.ts +103 -0
  47. package/tsconfig.json +1 -0
@@ -24,7 +24,9 @@ export declare enum QUERY_BUILDER_TEST_ID {
24
24
  QUERY_BUILDER_GRAPH_FETCH = "query__builder__graph__fetch",
25
25
  QUERY_BUILDER_FILTER_PANEL = "query__builder__filter__panel",
26
26
  QUERY_BUILDER_FILTER_TREE = "query__builder__filter__tree",
27
- QUERY_BUILDER_FILTER_TREE_NODE = "query__builder__filter__tree__node",
27
+ QUERY_BUILDER_FILTER_TREE_NODE_BLOCK = "query__builder__filter__tree__node-block",
28
+ QUERY_BUILDER_FILTER_TREE_NODE_CHILDREN = "query__builder__filter__tree__node-children",
29
+ QUERY_BUILDER_FILTER_TREE_NODE_CONTAINER = "query__builder__filter__tree__node-container",
28
30
  QUERY_BUILDER_FILTER_TREE_NODE_CONTENT = "query__builder__filter__tree__node-content",
29
31
  QUERY_BUILDER_FILTER_TREE_CONDITION_NODE_CONTENT = "query__builder__filter__tree__condition__node-content",
30
32
  QUERY_BUILDER_FILTER_TREE_CONDITION_NODE_VALUE = "query-builder-filter-tree__condition-node__value",
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTesting.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,qBAAqB;IAC/B,2BAA2B,iCAAiC;IAE5D,aAAa,mBAAmB;IAChC,mBAAmB,0BAA0B;IAC7C,6BAA6B,qCAAqC;IAClE,4BAA4B,oCAAoC;IAChE,iBAAiB,wBAAwB;IACzC,mCAAmC,wCAAwC;IAC3E,yBAAyB,iCAAiC;IAE1D,0BAA0B,kCAAkC;IAC5D,yBAAyB,iCAAiC;IAC1D,8BAA8B,uCAAuC;IACrE,sCAAsC,+CAA+C;IACrF,gDAAgD,0DAA0D;IAC1G,8CAA8C,qDAAqD;IAEnG,+BAA+B,uCAAuC;IACtE,2CAA2C,oDAAoD;IAC/F,4BAA4B,2BAA2B;IACvD,sBAAsB,6BAA6B;IACnD,mCAAmC,4CAA4C;IAC/E,wBAAwB,8BAA8B;IACtD,uBAAuB,6BAA6B;IACpD,0BAA0B,iCAAiC;IAE3D,2BAA2B,gCAAgC;IAC3D,+BAA+B,oCAAoC;IACnE,wCAAwC,+CAA+C;IACvF,0BAA0B,kCAAkC;IAC5D,8BAA8B,sCAAsC;IAEpE,mCAAmC,4CAA4C;IAC/E,mDAAmD,0DAA0D;CAC9G"}
1
+ {"version":3,"file":"QueryBuilderTesting.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,qBAAqB;IAC/B,2BAA2B,iCAAiC;IAE5D,aAAa,mBAAmB;IAChC,mBAAmB,0BAA0B;IAC7C,6BAA6B,qCAAqC;IAClE,4BAA4B,oCAAoC;IAChE,iBAAiB,wBAAwB;IACzC,mCAAmC,wCAAwC;IAC3E,yBAAyB,iCAAiC;IAE1D,0BAA0B,kCAAkC;IAC5D,yBAAyB,iCAAiC;IAC1D,oCAAoC,6CAA6C;IACjF,uCAAuC,gDAAgD;IACvF,wCAAwC,iDAAiD;IACzF,sCAAsC,+CAA+C;IACrF,gDAAgD,0DAA0D;IAC1G,8CAA8C,qDAAqD;IAEnG,+BAA+B,uCAAuC;IACtE,2CAA2C,oDAAoD;IAC/F,4BAA4B,2BAA2B;IACvD,sBAAsB,6BAA6B;IACnD,mCAAmC,4CAA4C;IAC/E,wBAAwB,8BAA8B;IACtD,uBAAuB,6BAA6B;IACpD,0BAA0B,iCAAiC;IAE3D,2BAA2B,gCAAgC;IAC3D,+BAA+B,oCAAoC;IACnE,wCAAwC,+CAA+C;IACvF,0BAA0B,kCAAkC;IAC5D,8BAA8B,sCAAsC;IAEpE,mCAAmC,4CAA4C;IAC/E,mDAAmD,0DAA0D;CAC9G"}
@@ -26,7 +26,9 @@ export var QUERY_BUILDER_TEST_ID;
26
26
  // filter panel
27
27
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_PANEL"] = "query__builder__filter__panel";
28
28
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_TREE"] = "query__builder__filter__tree";
29
- QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_TREE_NODE"] = "query__builder__filter__tree__node";
29
+ QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_TREE_NODE_BLOCK"] = "query__builder__filter__tree__node-block";
30
+ QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_TREE_NODE_CHILDREN"] = "query__builder__filter__tree__node-children";
31
+ QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_TREE_NODE_CONTAINER"] = "query__builder__filter__tree__node-container";
30
32
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_TREE_NODE_CONTENT"] = "query__builder__filter__tree__node-content";
31
33
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_TREE_CONDITION_NODE_CONTENT"] = "query__builder__filter__tree__condition__node-content";
32
34
  QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_TREE_CONDITION_NODE_VALUE"] = "query-builder-filter-tree__condition-node__value";
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTesting.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,qBAmCX;AAnCD,WAAY,qBAAqB;IAC/B,qFAA4D,CAAA;IAE5D,yDAAgC,CAAA;IAChC,sEAA6C,CAAA;IAC7C,2FAAkE,CAAA;IAClE,yFAAgE,CAAA;IAChE,kEAAyC,CAAA;IACzC,oGAA2E,CAAA;IAC3E,mFAA0D,CAAA;IAC1D,eAAe;IACf,qFAA4D,CAAA;IAC5D,mFAA0D,CAAA;IAC1D,8FAAqE,CAAA;IACrE,8GAAqF,CAAA;IACrF,mIAA0G,CAAA;IAC1G,4HAAmG,CAAA;IACnG,cAAc;IACd,+FAAsE,CAAA;IACtE,wHAA+F,CAAA;IAC/F,gFAAuD,CAAA;IACvD,4EAAmD,CAAA;IACnD,wGAA+E,CAAA;IAC/E,+EAAsD,CAAA;IACtD,6EAAoD,CAAA;IACpD,oFAA2D,CAAA;IAC3D,eAAe;IACf,oFAA2D,CAAA;IAC3D,4FAAmE,CAAA;IACnE,gHAAuF,CAAA;IACvF,qFAA4D,CAAA;IAC5D,6FAAoE,CAAA;IACpE,wBAAwB;IACxB,wGAA+E,CAAA;IAC/E,sIAA6G,CAAA;AAC/G,CAAC,EAnCW,qBAAqB,KAArB,qBAAqB,QAmChC"}
1
+ {"version":3,"file":"QueryBuilderTesting.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,qBAqCX;AArCD,WAAY,qBAAqB;IAC/B,qFAA4D,CAAA;IAE5D,yDAAgC,CAAA;IAChC,sEAA6C,CAAA;IAC7C,2FAAkE,CAAA;IAClE,yFAAgE,CAAA;IAChE,kEAAyC,CAAA;IACzC,oGAA2E,CAAA;IAC3E,mFAA0D,CAAA;IAC1D,eAAe;IACf,qFAA4D,CAAA;IAC5D,mFAA0D,CAAA;IAC1D,0GAAiF,CAAA;IACjF,gHAAuF,CAAA;IACvF,kHAAyF,CAAA;IACzF,8GAAqF,CAAA;IACrF,mIAA0G,CAAA;IAC1G,4HAAmG,CAAA;IACnG,cAAc;IACd,+FAAsE,CAAA;IACtE,wHAA+F,CAAA;IAC/F,gFAAuD,CAAA;IACvD,4EAAmD,CAAA;IACnD,wGAA+E,CAAA;IAC/E,+EAAsD,CAAA;IACtD,6EAAoD,CAAA;IACpD,oFAA2D,CAAA;IAC3D,eAAe;IACf,oFAA2D,CAAA;IAC3D,4FAAmE,CAAA;IACnE,gHAAuF,CAAA;IACvF,qFAA4D,CAAA;IAC5D,6FAAoE,CAAA;IACpE,wBAAwB;IACxB,wGAA+E,CAAA;IAC/E,sIAA6G,CAAA;AAC/G,CAAC,EArCW,qBAAqB,KAArB,qBAAqB,QAqChC"}
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type ChangeEvent } from 'react';
17
16
  import { type QueryBuilderPropertyExpressionState } from '../stores/QueryBuilderPropertyEditorState.js';
18
17
  import { type QueryBuilderExplorerTreePropertyNodeData } from '../stores/explorer/QueryBuilderExplorerState.js';
19
18
  export declare const QueryBuilderPropertyExpressionEditor: ((props: {
@@ -23,9 +22,10 @@ export declare const QueryBuilderPropertyExpressionEditor: ((props: {
23
22
  };
24
23
  export declare const QueryBuilderEditablePropertyName: ((props: {
25
24
  columnName: string;
26
- changeColumnName?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
25
+ setColumnName?: ((columnName: string) => void) | undefined;
27
26
  error: string | undefined;
28
27
  title: string;
28
+ defaultColumnName: string;
29
29
  }) => import("react/jsx-runtime").JSX.Element) & {
30
30
  displayName: string;
31
31
  };
@@ -33,7 +33,7 @@ export declare const QueryBuilderPropertyExpressionBadge: ((props: {
33
33
  columnName?: string;
34
34
  propertyExpressionState: QueryBuilderPropertyExpressionState;
35
35
  onPropertyExpressionChange: (node: QueryBuilderExplorerTreePropertyNodeData) => void;
36
- changeColumnName?: (event: ChangeEvent<HTMLInputElement>) => void;
36
+ setColumnName?: (columnName: string) => void;
37
37
  error?: string | undefined;
38
38
  }) => import("react/jsx-runtime").JSX.Element) & {
39
39
  displayName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPropertyExpressionEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderPropertyExpressionEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,OAAO,CAAC;AAef,OAAO,EAGL,KAAK,mCAAmC,EACzC,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAGL,KAAK,wCAAwC,EAC9C,MAAM,iDAAiD,CAAC;AAoQzD,eAAO,MAAM,oCAAoC,WACvC;IAAE,uBAAuB,EAAE,mCAAmC,CAAA;CAAE;;CAuEzE,CAAC;AAEF,eAAO,MAAM,gCAAgC;gBAE7B,MAAM;gCAEL,YAAY,gBAAgB,CAAC,KAAK,IAAI;WAE5C,MAAM,GAAG,SAAS;WAClB,MAAM;;;CA6DhB,CAAC;AAEF,eAAO,MAAM,mCAAmC;iBAE/B,MAAM;6BACM,mCAAmC;uCAEpD,wCAAwC,KAC3C,IAAI;+BACkB,YAAY,gBAAgB,CAAC,KAAK,IAAI;YACzD,MAAM,GAAG,SAAS;;;CAoG7B,CAAC"}
1
+ {"version":3,"file":"QueryBuilderPropertyExpressionEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderPropertyExpressionEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAuBH,OAAO,EAIL,KAAK,mCAAmC,EACzC,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAGL,KAAK,wCAAwC,EAC9C,MAAM,iDAAiD,CAAC;AAoQzD,eAAO,MAAM,oCAAoC,WACvC;IAAE,uBAAuB,EAAE,mCAAmC,CAAA;CAAE;;CAuEzE,CAAC;AAEF,eAAO,MAAM,gCAAgC;gBAE7B,MAAM;kCACY,MAAM,KAAK,IAAI;WACtC,MAAM,GAAG,SAAS;WAClB,MAAM;uBACM,MAAM;;;CAsE5B,CAAC;AAEF,eAAO,MAAM,mCAAmC;iBAE/B,MAAM;6BACM,mCAAmC;uCAEpD,wCAAwC,KAC3C,IAAI;iCACoB,MAAM,KAAK,IAAI;YACpC,MAAM,GAAG,SAAS;;;CAyG7B,CAAC"}
@@ -17,7 +17,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
17
  import { useCallback, useEffect, useRef, useState, } from 'react';
18
18
  import { clsx, Dialog, PanelDropZone, InfoCircleIcon, PanelEntryDropZonePlaceholder, Modal, ModalHeader, ModalBody, ModalFooter, ModalFooterButton, InputWithInlineValidation, } from '@finos/legend-art';
19
19
  import { observer } from 'mobx-react-lite';
20
- import { generateValueSpecificationForParameter, } from '../stores/QueryBuilderPropertyEditorState.js';
20
+ import { generateValueSpecificationForParameter, getPropertyChainName, } from '../stores/QueryBuilderPropertyEditorState.js';
21
21
  import { useDrop } from 'react-dnd';
22
22
  import { QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, } from '../stores/explorer/QueryBuilderExplorerState.js';
23
23
  import { Class, Enumeration, PrimitiveType, isSuperType, AbstractPropertyExpression, INTERNAL__PropagatedValue, getMilestoneTemporalStereotype, } from '@finos/legend-graph';
@@ -138,40 +138,47 @@ export const QueryBuilderPropertyExpressionEditor = observer((props) => {
138
138
  }, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: "editor-modal query-builder-property-editor", children: [_jsx(ModalHeader, { title: "Derived Property" }), _jsxs(ModalBody, { className: "query-builder-property-editor__content", children: [propertyExpressionState.derivedPropertyExpressionStates.map((pe) => (_jsx(DerivedPropertyExpressionEditor, { derivedPropertyExpressionState: pe }, pe.path))), _jsx(ModalBody, { className: "query-builder__variables__modal__body", children: _jsx(VariableSelector, { queryBuilderState: propertyExpressionState.queryBuilderState, filterBy: (v) => isParameterCompatibleWithDerivedProperty(v, propertyExpressionState.derivedPropertyExpressionStates) }) })] }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { text: "Done", onClick: handleClose }) })] }) }));
139
139
  });
140
140
  export const QueryBuilderEditablePropertyName = observer((props) => {
141
- const { columnName, changeColumnName, error, title } = props;
141
+ const { columnName, setColumnName, error, title, defaultColumnName } = props;
142
142
  const [isEditingColumnName, setIsEditingColumnName] = useState(false);
143
+ const [selectedColumnName, setSelectedColumnName] = useState(columnName);
143
144
  const columnNameInputRef = useRef(null);
144
145
  useEffect(() => {
145
146
  if (isEditingColumnName) {
146
147
  columnNameInputRef.current?.focus();
147
148
  }
148
149
  }, [isEditingColumnName, columnNameInputRef]);
149
- return isEditingColumnName ? (_jsx("div", { className: "query-builder__property__name__editor", children: _jsx(InputWithInlineValidation, { className: "query-builder__property__name__editor__input input-group__input", spellCheck: false, value: columnName, onChange: changeColumnName, onKeyDown: (event) => {
150
+ const handleFinishEditing = () => {
151
+ const trimmedSelectedColumnName = selectedColumnName.trim();
152
+ if (trimmedSelectedColumnName.length > 0) {
153
+ setColumnName?.(trimmedSelectedColumnName);
154
+ setSelectedColumnName(trimmedSelectedColumnName);
155
+ }
156
+ else {
157
+ setColumnName?.(defaultColumnName);
158
+ setSelectedColumnName(defaultColumnName);
159
+ }
160
+ setIsEditingColumnName(false);
161
+ };
162
+ return isEditingColumnName ? (_jsx("div", { className: "query-builder__property__name__editor", children: _jsx(InputWithInlineValidation, { className: "query-builder__property__name__editor__input input-group__input", spellCheck: false, value: selectedColumnName, onChange: (event) => setSelectedColumnName(event.target.value), onKeyDown: (event) => {
150
163
  if (event.key === 'Enter') {
151
- if (columnName.length > 0) {
152
- setIsEditingColumnName(false);
153
- }
154
- }
155
- }, onBlur: () => {
156
- if (columnName.length > 0) {
157
- setIsEditingColumnName(false);
164
+ handleFinishEditing();
158
165
  }
159
- }, error: error, ref: columnNameInputRef, draggable: true, onDragStart: (e) => {
166
+ }, onBlur: handleFinishEditing, ref: columnNameInputRef, draggable: true, onDragStart: (e) => {
160
167
  // The below 2 lines are to allow dragging to select text in the input instead of
161
168
  // dragging the draggable element containing the input.
162
169
  e.preventDefault();
163
170
  e.stopPropagation();
164
171
  } }) })) : (_jsx("div", { className: "query-builder__property__name__display", title: title, children: _jsx("span", { className: clsx('query-builder__property__name__display__content', {
165
172
  'query-builder__property__name__display__content--error': error,
166
- 'editable-value': changeColumnName,
173
+ 'editable-value': setColumnName,
167
174
  }), onClick: () => {
168
- if (changeColumnName) {
175
+ if (setColumnName) {
169
176
  setIsEditingColumnName(true);
170
177
  }
171
178
  }, children: columnName }) }));
172
179
  });
173
180
  export const QueryBuilderPropertyExpressionBadge = observer((props) => {
174
- const { columnName, propertyExpressionState, onPropertyExpressionChange, changeColumnName, error, } = props;
181
+ const { columnName, propertyExpressionState, onPropertyExpressionChange, setColumnName, error, } = props;
175
182
  const type = propertyExpressionState.propertyExpression.func.value.genericType.value
176
183
  .rawType;
177
184
  const hasDerivedPropertyInExpression = Boolean(propertyExpressionState.derivedPropertyExpressionStates.length);
@@ -200,7 +207,8 @@ export const QueryBuilderPropertyExpressionBadge = observer((props) => {
200
207
  'query-builder-property-expression-badge__content--class': type instanceof Class,
201
208
  'query-builder-property-expression-badge__content--enumeration': type instanceof Enumeration,
202
209
  'query-builder-property-expression-badge__content--primitive': type instanceof PrimitiveType,
203
- }), children: [_jsx(QueryBuilderEditablePropertyName, { columnName: columnName ?? propertyExpressionState.title, changeColumnName: changeColumnName, error: error, title: `${propertyExpressionState.title} - ${propertyExpressionState.path}` }), hasDerivedPropertyInExpression && (_jsxs("button", { className: clsx('query-builder-property-expression-badge__action', {
210
+ }), children: [_jsx(QueryBuilderEditablePropertyName, { columnName: columnName ?? propertyExpressionState.title, setColumnName: setColumnName, error: error, title: `${propertyExpressionState.title} - ${propertyExpressionState.path}`, defaultColumnName: getPropertyChainName(propertyExpressionState.propertyExpression, propertyExpressionState.queryBuilderState.explorerState
211
+ .humanizePropertyName) }), hasDerivedPropertyInExpression && (_jsxs("button", { className: clsx('query-builder-property-expression-badge__action', {
204
212
  'query-builder-property-expression-badge__action--error': !isValid,
205
213
  }), tabIndex: -1, onClick: setDerivedPropertyArguments, title: "Set Derived Property Argument(s)...", children: [!isValid && _jsx(InfoCircleIcon, {}), " (...)"] })), _jsx(QueryBuilderPropertyExpressionEditor, { propertyExpressionState: propertyExpressionState })] }) }) }));
206
214
  });
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPropertyExpressionEditor.js","sourceRoot":"","sources":["../../src/components/QueryBuilderPropertyExpressionEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,SAAS,EACT,MAAM,EACN,QAAQ,GAET,MAAM,OAAO,CAAC;AACf,OAAO,EACL,IAAI,EACJ,MAAM,EACN,aAAa,EACb,cAAc,EACd,6BAA6B,EAC7B,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,sCAAsC,GAGvC,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,WA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AA6D,EAC3D,IAAI,YAAY,aAAa;iBAChC,CACF,aAED,KAAC,gCAAgC,IAC/B,UAAU,EAAE,UAAU,IAAI,uBAAuB,CAAC,KAAK,EACvD,gBAAgB,EAAE,gBAAgB,EAClC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,GAAG,uBAAuB,CAAC,KAAK,MAAM,uBAAuB,CAAC,IAAI,EAAE,GAC3E,EACD,8BAA8B,IAAI,CACjC,kBACE,SAAS,EAAE,IAAI,CACb,iDAAiD,EACjD;4BACE,wDAAwD,EACtD,CAAC,OAAO;yBACX,CACF,EACD,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,2BAA2B,EACpC,KAAK,EAAC,qCAAqC,aAE1C,CAAC,OAAO,IAAI,KAAC,cAAc,KAAG,cACxB,CACV,EACD,KAAC,oCAAoC,IACnC,uBAAuB,EAAE,uBAAuB,GAChD,IACE,GACwB,GAC5B,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderPropertyExpressionEditor.js","sourceRoot":"","sources":["../../src/components/QueryBuilderPropertyExpressionEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,SAAS,EACT,MAAM,EACN,QAAQ,GAET,MAAM,OAAO,CAAC;AACf,OAAO,EACL,IAAI,EACJ,MAAM,EACN,aAAa,EACb,cAAc,EACd,6BAA6B,EAC7B,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,sCAAsC,EACtC,oBAAoB,GAGrB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,oCAAoC,GAGrC,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAGL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EF,OAAO,CACL,cACE,SAAS,EAAC,yCAAyC,EACnD,GAAG,EAAE,aAAa,YAElB,KAAC,6BAA6B,IAC5B,UAAU,EAAE,UAAU,EACtB,KAAK,EAAC,iBAAiB,YAEvB,eACE,SAAS,EAAE,IAAI,CACb,kDAAkD,EAClD;oBACE,yDAAyD,EACvD,IAAI,YAAY,KAAK;oBACvB,+DAA+D,EAC7D,IAAI,YAAY,WAAW;oBAC7B,6DAA6D,EAC3D,IAAI,YAAY,aAAa;iBAChC,CACF,aAED,KAAC,gCAAgC,IAC/B,UAAU,EAAE,UAAU,IAAI,uBAAuB,CAAC,KAAK,EACvD,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,GAAG,uBAAuB,CAAC,KAAK,MAAM,uBAAuB,CAAC,IAAI,EAAE,EAC3E,iBAAiB,EAAE,oBAAoB,CACrC,uBAAuB,CAAC,kBAAkB,EAC1C,uBAAuB,CAAC,iBAAiB,CAAC,aAAa;6BACpD,oBAAoB,CACxB,GACD,EACD,8BAA8B,IAAI,CACjC,kBACE,SAAS,EAAE,IAAI,CACb,iDAAiD,EACjD;4BACE,wDAAwD,EACtD,CAAC,OAAO;yBACX,CACF,EACD,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,2BAA2B,EACpC,KAAK,EAAC,qCAAqC,aAE1C,CAAC,OAAO,IAAI,KAAC,cAAc,KAAG,cACxB,CACV,EACD,KAAC,oCAAoC,IACnC,uBAAuB,EAAE,uBAAuB,GAChD,IACE,GACwB,GAC5B,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTDSPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAwFH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAm5BrG,eAAO,MAAM,oBAAoB,WACvB;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CAiT3C,CAAC"}
1
+ {"version":3,"file":"QueryBuilderTDSPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiFH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAm5BrG,eAAO,MAAM,oBAAoB,WACvB;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CAiT3C,CAAC"}
@@ -14,7 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { useEffect, useRef, useCallback, useState, forwardRef, } from 'react';
17
+ import { useEffect, useRef, useCallback, useState, forwardRef } from 'react';
18
18
  import { observer } from 'mobx-react-lite';
19
19
  import { clsx, BlankPanelPlaceholder, CalculatorIcon, TimesIcon, DropdownMenu, MenuContent, MenuContentItem, CaretDownIcon, ContextMenu, SigmaIcon, PanelDropZone, DragPreviewLayer, useDragPreviewLayer, PlusIcon, PanelContent, TrashIcon, PanelDnDEntry, CalendarIcon, CalendarClockIcon, CustomSelectorInput, PanelEntryDropZonePlaceholder, FunctionIcon, CogIcon, InfoCircleIcon, } from '@finos/legend-art';
20
20
  import { buildPropertyExpressionFromExplorerTreeNodeData, QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, } from '../../stores/explorer/QueryBuilderExplorerState.js';
@@ -49,10 +49,10 @@ const QueryBuilderProjectionColumnContextMenu = observer(forwardRef(function Que
49
49
  QueryBuilderSimpleProjectionColumnState && (_jsx(MenuContentItem, { onClick: convertToDerivation, children: "Convert To Derivation" })), _jsx(MenuContentItem, { onClick: removeColumn, children: "Remove" })] }));
50
50
  }));
51
51
  const QueryBuilderSimpleProjectionColumnEditor = observer((props) => {
52
- const { projectionColumnState, changeColumnName, error } = props;
52
+ const { projectionColumnState, setColumnName, error } = props;
53
53
  const onPropertyExpressionChange = (node) => projectionColumnState.changeProperty(node, projectionColumnState.tdsState.queryBuilderState.explorerState
54
54
  .humanizePropertyName);
55
- return (_jsx(QueryBuilderPropertyExpressionBadge, { columnName: projectionColumnState.columnName, propertyExpressionState: projectionColumnState.propertyExpressionState, onPropertyExpressionChange: onPropertyExpressionChange, changeColumnName: changeColumnName, error: error }));
55
+ return (_jsx(QueryBuilderPropertyExpressionBadge, { columnName: projectionColumnState.columnName, propertyExpressionState: projectionColumnState.propertyExpressionState, onPropertyExpressionChange: onPropertyExpressionChange, setColumnName: setColumnName, error: error }));
56
56
  });
57
57
  const QueryBuilderDerivationProjectionColumnEditor = observer((props) => {
58
58
  const { projectionColumnState } = props;
@@ -133,7 +133,7 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
133
133
  const isRemovalDisabled = tdsState.isColumnInUse(projectionColumnState);
134
134
  const removeColumn = () => tdsState.removeColumn(projectionColumnState);
135
135
  // name
136
- const changeColumnName = (event) => projectionColumnState.setColumnName(event.target.value);
136
+ const setColumnName = (columnName) => projectionColumnState.setColumnName(columnName);
137
137
  const isDuplicatedColumnName = projectionColumnState.tdsState.isDuplicateColumn(projectionColumnState);
138
138
  // aggregation
139
139
  const aggregateColumnState = tdsState.aggregationState.columns.find((column) => column.projectionColumnState === projectionColumnState);
@@ -333,16 +333,16 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
333
333
  QueryBuilderSimpleProjectionColumnState && (_jsxs(_Fragment, { children: [_jsx(QueryBuilderPropertyInfoTooltip, { title: projectionColumnState.propertyExpressionState.title, property: projectionColumnState.propertyExpressionState
334
334
  .propertyExpression.func.value, path: getPropertyPath(projectionColumnState.propertyExpressionState
335
335
  .propertyExpression), isMapped: true, placement: "bottom-start", explorerState: projectionColumnState.propertyExpressionState
336
- .queryBuilderState.explorerState, children: _jsx("div", { className: "query-builder-property-expression-badge__property__info", children: _jsx(InfoCircleIcon, {}) }) }), _jsx("div", { className: "query-builder__projection__column__value", children: _jsx(QueryBuilderSimpleProjectionColumnEditor, { projectionColumnState: projectionColumnState, changeColumnName: changeColumnName, error: isDuplicatedColumnName
336
+ .queryBuilderState.explorerState, children: _jsx("div", { className: "query-builder-property-expression-badge__property__info", children: _jsx(InfoCircleIcon, {}) }) }), _jsx("div", { className: "query-builder__projection__column__value", children: _jsx(QueryBuilderSimpleProjectionColumnEditor, { projectionColumnState: projectionColumnState, setColumnName: setColumnName, error: isDuplicatedColumnName
337
337
  ? 'Duplicated column'
338
338
  : projectionColumnState.columnName.length === 0
339
339
  ? 'Empty column name'
340
340
  : undefined }) })] })), projectionColumnState instanceof
341
- QueryBuilderDerivationProjectionColumnState && (_jsxs(_Fragment, { children: [_jsx(QueryBuilderDerivationInfoTooltip, { title: projectionColumnState.columnName, type: projectionColumnState.returnType, placement: "bottom-start", children: _jsx("div", { className: "query-builder-property-expression-badge__property__info", children: _jsx(CalculatorIcon, {}) }) }), _jsxs("div", { className: "query-builder__projection__column__value", children: [_jsx(QueryBuilderEditablePropertyName, { columnName: projectionColumnState.columnName, changeColumnName: changeColumnName, error: isDuplicatedColumnName
341
+ QueryBuilderDerivationProjectionColumnState && (_jsxs(_Fragment, { children: [_jsx(QueryBuilderDerivationInfoTooltip, { title: projectionColumnState.columnName, type: projectionColumnState.returnType, placement: "bottom-start", children: _jsx("div", { className: "query-builder-property-expression-badge__property__info", children: _jsx(CalculatorIcon, {}) }) }), _jsxs("div", { className: "query-builder__projection__column__value", children: [_jsx(QueryBuilderEditablePropertyName, { columnName: projectionColumnState.columnName, setColumnName: setColumnName, error: isDuplicatedColumnName
342
342
  ? 'Duplicated column'
343
343
  : projectionColumnState.columnName.length === 0
344
344
  ? 'Empty column name'
345
- : undefined, title: projectionColumnState.columnName }), _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 &&
345
+ : undefined, title: projectionColumnState.columnName, defaultColumnName: "(derivation)" }), _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 &&
346
346
  aggregateColumnState &&
347
347
  aggregateCalendarFunctions.length > 0 && (_jsx("div", { className: clsx('query-builder__projection__column__aggregate__calendar__toggler', {
348
348
  'query-builder__projection__column__aggregate__calendar__toggler--active': !aggregateColumnState.hideCalendarColumnState,
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTDSPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,QAAQ,EACR,UAAU,GAEX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,qBAAqB,EACrB,cAAc,EACd,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,6BAA6B,EAC7B,YAAY,EACZ,OAAO,EACP,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,+CAA+C,EAC/C,oCAAoC,GACrC,MAAM,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AE,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,EACA,WAAW,IAAI,CAAC,OAAO,IAAI,CAC1B,cACE,GAAG,EAAE,gBAAgB,EACrB,SAAS,EAAC,sDAAsD,YAEhE,KAAC,6BAA6B,IAC5B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAC,2CAA2C,EACrD,KAAK,EAAC,yBAAyB,YAE/B,mBAAK,GACyB,GAC5B,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,cAAc,EACd,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,6BAA6B,EAC7B,YAAY,EACZ,OAAO,EACP,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,+CAA+C,EAC/C,oCAAoC,GACr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,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,EACA,WAAW,IAAI,CAAC,OAAO,IAAI,CAC1B,cACE,GAAG,EAAE,gBAAgB,EACrB,SAAS,EAAC,sDAAsD,YAEhE,KAAC,6BAA6B,IAC5B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAC,2CAA2C,EACrD,KAAK,EAAC,yBAAyB,YAE/B,mBAAK,GACyB,GAC5B,CACP,EACD,KAAC,wBAAwB,IAAC,QAAQ,EAAE,QAAQ,GAAI,IAClC,GACZ,IACO,CAChB,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;AAmCH,OAAO,EAGL,KAAK,8BAA8B,EACnC,6BAA6B,EAE7B,uCAAuC,EAGvC,oCAAoC,EAEpC,KAAK,uBAAuB,EAC7B,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAIL,oCAAoC,EACrC,MAAM,oDAAoD,CAAC;AAK5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAiB3E,OAAO,EACL,0BAA0B,EAO3B,MAAM,qBAAqB,CAAC;AAkD7B;;GAEG;AACH,eAAO,MAAM,yBAAyB,uBAChB,0BAA0B,eACjC,uBAAuB,mBACnB,8BAA8B,KAC9C,IA0MF,CAAC;AAEF,eAAO,MAAM,qCAAqC,gBACnC,uBAAuB,cACxB,oCAAoC,QAC1C,uCAAuC,KAC5C,0BAoGF,CAAC;AAwIF,eAAO,MAAM,6CAA6C,UAKzD,CAAC;AAEF,eAAO,MAAM,6BAA6B,0EAIzC,CAAC;AAmsBF,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsRjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderFilterPanel.d.ts","sourceRoot":"","sources":["../../../src/components/filter/QueryBuilderFilterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAgCH,OAAO,EAGL,KAAK,8BAA8B,EACnC,6BAA6B,EAE7B,uCAAuC,EAGvC,oCAAoC,EAEpC,KAAK,uBAAuB,EAC7B,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAIL,oCAAoC,EACrC,MAAM,oDAAoD,CAAC;AAK5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAiB3E,OAAO,EACL,0BAA0B,EAO3B,MAAM,qBAAqB,CAAC;AAkD7B;;GAEG;AACH,eAAO,MAAM,yBAAyB,uBAChB,0BAA0B,eACjC,uBAAuB,mBACnB,8BAA8B,KAC9C,IA0MF,CAAC;AAEF,eAAO,MAAM,qCAAqC,gBACnC,uBAAuB,cACxB,oCAAoC,QAC1C,uCAAuC,KAC5C,0BAoGF,CAAC;AAwIF,eAAO,MAAM,6CAA6C,UAKzD,CAAC;AAEF,eAAO,MAAM,6BAA6B,0EAIzC,CAAC;AA6sBF,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsRjD,CAAC"}
@@ -16,7 +16,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
16
16
  */
17
17
  import { useRef, useState, useCallback, forwardRef, useMemo } from 'react';
18
18
  import { observer } from 'mobx-react-lite';
19
- import { clsx, ContextMenu, DropdownMenu, MenuContent, MenuContentItem, BlankPanelPlaceholder, FilledTriangleIcon, CompressIcon, ExpandIcon, TrashIcon, NewFolderIcon, CircleIcon, CaretDownIcon, PlusIcon, ChevronDownIcon, ChevronRightIcon, PlusCircleIcon, TimesIcon, PanelDropZone, DragPreviewLayer, PanelEntryDropZonePlaceholder, useDragPreviewLayer, PanelContent, MoreVerticalIcon, MenuContentItemIcon, MenuContentItemLabel, InfoCircleIcon, } from '@finos/legend-art';
19
+ import { clsx, ContextMenu, DropdownMenu, MenuContent, MenuContentItem, BlankPanelPlaceholder, CompressIcon, ExpandIcon, TrashIcon, NewFolderIcon, CircleIcon, CaretDownIcon, PlusIcon, PlusCircleIcon, TimesIcon, PanelDropZone, DragPreviewLayer, PanelEntryDropZonePlaceholder, useDragPreviewLayer, PanelContent, MoreVerticalIcon, MenuContentItemIcon, MenuContentItemLabel, InfoCircleIcon, } from '@finos/legend-art';
20
20
  import { QUERY_BUILDER_FILTER_DND_TYPE, FilterConditionState, QueryBuilderFilterTreeConditionNodeData, QueryBuilderFilterTreeBlankConditionNodeData, QueryBuilderFilterTreeGroupNodeData, QueryBuilderFilterTreeExistsNodeData, QueryBuilderFilterTreeOperationNodeData, } from '../../stores/filter/QueryBuilderFilterState.js';
21
21
  import { useDrag, useDragLayer, useDrop } from 'react-dnd';
22
22
  import { buildPropertyExpressionFromExplorerTreeNodeData, QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, } from '../../stores/explorer/QueryBuilderExplorerState.js';
@@ -357,10 +357,7 @@ const QueryBuilderFilterGroupConditionEditor = observer((props) => {
357
357
  : QUERY_BUILDER_GROUP_OPERATION.AND);
358
358
  };
359
359
  const operationName = node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND ? 'AND' : 'OR';
360
- 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', {
361
- 'query-builder-filter-tree__group-node--and': node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND,
362
- 'query-builder-filter-tree__group-node--or': node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.OR,
363
- }), 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, {}) })] }) }) }));
360
+ return (_jsx("div", { className: "dnd__entry__container", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, label: operationName, className: "query-builder-filter-tree__group-node__drop-zone", children: _jsx("div", { className: "query-builder-filter-tree__group-node", title: "Switch Operation", onClick: switchOperation, children: _jsx("div", { className: "query-builder-filter-tree__group-node__label editable-value", children: node.groupOperation }) }) }) }));
364
361
  });
365
362
  const QueryBuilderFilterExistsConditionEditor = observer((props) => {
366
363
  const { node, humanizePropertyName, isDragOver, isDroppable } = props;
@@ -371,7 +368,7 @@ const QueryBuilderFilterExistsConditionEditor = observer((props) => {
371
368
  node.propertyExpressionState.setIsEditingDerivedProperty(true);
372
369
  }
373
370
  };
374
- return (_jsx("div", { className: "query-builder-filter-tree__node__label__content dnd__entry__container", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, label: `Add to Exists Group`, children: _jsxs("div", { className: "query-builder-filter-tree__exists-node", title: "This is an exists filter on the collection property", children: [_jsx("div", { className: "query-builder-filter-tree__exists-node__label", children: getPropertyChainName(node.propertyExpressionState.propertyExpression, humanizePropertyName) }), _jsx("div", { className: "query-builder-filter-tree__exists-node__exists--label", children: "exists" }), hasDerivedPropertyInExpression && (_jsxs("button", { className: clsx('query-builder-filter-tree__exists-node__exists--label__action', {
371
+ return (_jsx("div", { className: "dnd__entry__container", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, label: "Add to Exists Group", className: "query-builder-filter-tree__exists-node__drop-zone", children: _jsxs("div", { className: "query-builder-filter-tree__exists-node", title: "This is an exists filter on the collection property", children: [_jsx("div", { className: "query-builder-filter-tree__exists-node__label", children: getPropertyChainName(node.propertyExpressionState.propertyExpression, humanizePropertyName) }), _jsx("div", { className: "query-builder-filter-tree__exists-node__exists--label", children: "exists" }), hasDerivedPropertyInExpression && (_jsxs("button", { className: clsx('query-builder-filter-tree__exists-node__exists--label__action', {
375
372
  'query-builder-filter-tree__exists-node__exists--label__action--error': !isValid,
376
373
  }), tabIndex: -1, onClick: setDerivedPropertyArguments, title: "Set Derived Property Argument(s)...", children: [!isValid && _jsx(InfoCircleIcon, {}), " (...)"] })), _jsx(QueryBuilderPropertyExpressionEditor, { propertyExpressionState: node.propertyExpressionState })] }) }) }));
377
374
  });
@@ -421,7 +418,7 @@ const QueryBuilderFilterConditionEditor = observer((props) => {
421
418
  reloadValues: debouncedTypeaheadSearch,
422
419
  cleanUpReloadValues,
423
420
  };
424
- return (_jsx("div", { className: "query-builder-filter-tree__node__label__content dnd__entry__container", "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_FILTER_TREE_CONDITION_NODE_CONTENT, 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: {
421
+ return (_jsx("div", { className: "dnd__entry__container", "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_FILTER_TREE_CONDITION_NODE_CONTENT, 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: {
425
422
  anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
426
423
  transformOrigin: { vertical: 'top', horizontal: 'left' },
427
424
  elevation: 7,
@@ -452,15 +449,13 @@ const QueryBuilderFilterConditionContextMenu = observer(forwardRef(function Quer
452
449
  return (_jsxs(MenuContent, { ref: ref, children: [node instanceof QueryBuilderFilterTreeGroupNodeData && (_jsx(MenuContentItem, { onClick: createCondition, children: "Add New Condition" })), node instanceof QueryBuilderFilterTreeGroupNodeData && (_jsx(MenuContentItem, { onClick: createGroupCondition, children: "Add New Logical Group" })), node instanceof QueryBuilderFilterTreeConditionNodeData && (_jsx(MenuContentItem, { onClick: newGroupWithCondition, children: "Form a New Logical Group" })), _jsx(MenuContentItem, { onClick: removeNode, children: "Remove" })] }));
453
450
  }));
454
451
  const QueryBuilderFilterTreeNodeContainer = observer((props) => {
455
- const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
452
+ const { node, onNodeSelect, innerProps } = props;
456
453
  const { queryBuilderState } = innerProps;
457
- const ref = useRef(null);
454
+ const dragRef = useRef(null);
458
455
  const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] = useState(false);
459
456
  const applicationStore = useApplicationStore();
460
457
  const filterState = queryBuilderState.filterState;
461
- const isExpandable = node instanceof QueryBuilderFilterTreeOperationNodeData;
462
458
  const selectNode = () => onNodeSelect?.(node);
463
- const toggleExpandNode = () => node.setIsOpen(!node.isOpen);
464
459
  const removeNode = () => filterState.removeNodeAndPruneBranch(node);
465
460
  // Drag and Drop
466
461
  const handleDrop = useCallback((item, type) => {
@@ -538,8 +533,10 @@ const QueryBuilderFilterTreeNodeContainer = observer((props) => {
538
533
  : QUERY_BUILDER_FILTER_DND_TYPE.BLANK_CONDITION,
539
534
  item: () => ({ node }),
540
535
  end: () => filterState.setRearrangingConditions(false),
536
+ canDrag: () => node instanceof QueryBuilderFilterTreeConditionNodeData ||
537
+ node instanceof QueryBuilderFilterTreeBlankConditionNodeData,
541
538
  }), [node, filterState]);
542
- dragConnector(dropConnector(ref));
539
+ dragConnector(dropConnector(dragRef));
543
540
  useDragPreviewLayer(dragPreviewConnector);
544
541
  const { isDroppable } = useDragLayer((monitor) => ({
545
542
  isDroppable: monitor.isDragging() &&
@@ -550,22 +547,32 @@ const QueryBuilderFilterTreeNodeContainer = observer((props) => {
550
547
  // context menu
551
548
  const onContextMenuOpen = () => setIsSelectedFromContextMenu(true);
552
549
  const onContextMenuClose = () => setIsSelectedFromContextMenu(false);
553
- return (_jsx(ContextMenu, { content: _jsx(QueryBuilderFilterConditionContextMenu, { queryBuilderState: queryBuilderState, node: node }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: _jsxs("div", { ref: ref, "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_FILTER_TREE_NODE_CONTENT, className: clsx('tree-view__node__container query-builder-filter-tree__node__container', {
554
- 'query-builder-filter-tree__node__container--no-hover': filterState.isRearrangingConditions,
555
- 'query-builder-filter-tree__node__container--selected': node === filterState.selectedNode,
556
- 'query-builder-filter-tree__node__container--selected-from-context-menu': isSelectedFromContextMenu,
557
- }), children: [_jsxs("div", { className: "query-builder-filter-tree__node__content", style: {
558
- paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 2) + 1.5}rem`,
559
- display: 'flex',
560
- }, 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', {
561
- 'query-builder-filter-tree__node__label--expandable': isExpandable,
562
- }), children: [node instanceof QueryBuilderFilterTreeGroupNodeData && (_jsx(QueryBuilderFilterGroupConditionEditor, { node: node, isDroppable: isDroppable, isDragOver: isDragOver })), node instanceof QueryBuilderFilterTreeExistsNodeData && (_jsx(QueryBuilderFilterExistsConditionEditor, { node: node, humanizePropertyName: filterState.queryBuilderState.explorerState
563
- .humanizePropertyName, 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, {}) }) })] }) }));
550
+ const isEmptyExistsNode = node instanceof QueryBuilderFilterTreeExistsNodeData &&
551
+ node.childrenIds.length === 0;
552
+ const showRemoveButton = node instanceof QueryBuilderFilterTreeConditionNodeData ||
553
+ node instanceof QueryBuilderFilterTreeBlankConditionNodeData ||
554
+ isEmptyExistsNode;
555
+ return (_jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_FILTER_TREE_NODE_CONTAINER, onClick: node instanceof QueryBuilderFilterTreeConditionNodeData ||
556
+ node instanceof QueryBuilderFilterTreeBlankConditionNodeData
557
+ ? selectNode
558
+ : undefined, className: clsx('query-builder-filter-tree__node__container', {
559
+ 'query-builder-filter-tree__node__container--group': node instanceof QueryBuilderFilterTreeGroupNodeData,
560
+ 'query-builder-filter-tree__node__container--condition': node instanceof QueryBuilderFilterTreeConditionNodeData ||
561
+ node instanceof QueryBuilderFilterTreeBlankConditionNodeData,
562
+ 'query-builder-filter-tree__node__container--exists': node instanceof QueryBuilderFilterTreeExistsNodeData,
563
+ 'query-builder-filter-tree__node__container--exists--empty': isEmptyExistsNode,
564
+ 'query-builder-filter-tree__node__container--no-hover': filterState.isRearrangingConditions,
565
+ 'query-builder-filter-tree__node__container--selected': node === filterState.selectedNode,
566
+ 'query-builder-filter-tree__node__container--selected-from-context-menu': isSelectedFromContextMenu,
567
+ }), children: _jsxs(ContextMenu, { content: _jsx(QueryBuilderFilterConditionContextMenu, { queryBuilderState: queryBuilderState, node: node }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, className: "query-builder-filter-tree__node__context-menu", children: [_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_FILTER_TREE_NODE_CONTENT, className: "query-builder-filter-tree__node__content", ref: dragRef, children: [node instanceof QueryBuilderFilterTreeGroupNodeData && (_jsx(QueryBuilderFilterGroupConditionEditor, { node: node, isDroppable: isDroppable, isDragOver: isDragOver })), node instanceof QueryBuilderFilterTreeExistsNodeData && (_jsx(QueryBuilderFilterExistsConditionEditor, { node: node, humanizePropertyName: filterState.queryBuilderState.explorerState
568
+ .humanizePropertyName, isDroppable: isDroppable, isDragOver: isDragOver })), node instanceof QueryBuilderFilterTreeConditionNodeData && (_jsx(QueryBuilderFilterConditionEditor, { node: node, isDragOver: isDragOver })), node instanceof QueryBuilderFilterTreeBlankConditionNodeData && (_jsx(QueryBuilderFilterBlankConditionEditor, { node: node, isDragOver: isDragOver, isDroppable: isDroppable }))] }), showRemoveButton && (_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, {}) }) }))] }) }));
564
569
  });
565
570
  const QueryBuilderFilterTreeNodeView = observer((props) => {
566
571
  const { node, level, onNodeSelect, getChildNodes, stepPaddingInRem, innerProps, } = props;
567
- return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_FILTER_TREE_NODE, className: "tree-view__node__block", children: [_jsx(QueryBuilderFilterTreeNodeContainer, { node: node, level: level + 1, stepPaddingInRem: stepPaddingInRem, onNodeSelect: onNodeSelect, innerProps: innerProps }), node.isOpen &&
568
- getChildNodes(node).map((childNode) => (_jsx(QueryBuilderFilterTreeNodeView, { node: childNode, level: level + 1, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: innerProps }, childNode.id)))] }));
572
+ return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_FILTER_TREE_NODE_BLOCK, className: clsx('query-builder-filter-tree__node__block', {
573
+ 'query-builder-filter-tree__node__block--group': node instanceof QueryBuilderFilterTreeGroupNodeData,
574
+ 'query-builder-filter-tree__node__block--exists': node instanceof QueryBuilderFilterTreeExistsNodeData,
575
+ }), children: [_jsx(QueryBuilderFilterTreeNodeContainer, { 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_FILTER_TREE_NODE_CHILDREN, className: "query-builder-filter-tree__node__children", children: getChildNodes(node).map((childNode) => (_jsx(QueryBuilderFilterTreeNodeView, { node: childNode, level: level + 1, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: innerProps }, childNode.id))) }))] }));
569
576
  });
570
577
  const QueryBuilderFilterTree = observer((props) => {
571
578
  const { queryBuilderState } = props;