@finos/legend-query-builder 4.0.0 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA8BH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA+DxE,eAAO,MAAM,cAAc,QAAS,MAAM,KAAG,MAO5C,CAAC;AA4VF,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAuWjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA8BH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA+DxE,eAAO,MAAM,cAAc,QAAS,MAAM,KAAG,MAO5C,CAAC;AA6VF,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAuWjD,CAAC"}
@@ -50,17 +50,17 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
50
50
  const postFilterNotEqualOperator = new QueryBuilderPostFilterOperator_NotEqual();
51
51
  const postFilterNotInOperator = new QueryBuilderPostFilterOperator_NotIn();
52
52
  const postFilterState = tdsState.postFilterState;
53
- const projectionColumnState = guaranteeNonNullable(tdsState.projectionColumns
53
+ const projectionColumnState = tdsState.tdsColumns
54
54
  .filter((c) => c.columnName === event.current?.column.getColId())
55
55
  .concat(tdsState.aggregationState.columns
56
56
  .filter((c) => c.columnName === event.current?.column.getColId())
57
- .map((ag) => ag.projectionColumnState))[0]);
57
+ .map((ag) => ag.projectionColumnState))[0];
58
58
  const getExistingPostFilterNode = (operators) => Array.from(postFilterState.nodes.values())
59
59
  .filter((v) => v instanceof QueryBuilderPostFilterTreeConditionNodeData &&
60
60
  v.condition.columnState instanceof
61
61
  QueryBuilderProjectionColumnState)
62
62
  .filter((n) => n.condition
63
- .columnState.columnName === projectionColumnState.columnName &&
63
+ .columnState.columnName === projectionColumnState?.columnName &&
64
64
  operators
65
65
  .map((op) => op.getLabel())
66
66
  .includes(n.condition.operator.getLabel()))[0];
@@ -73,23 +73,24 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
73
73
  }
74
74
  };
75
75
  const generateNewPostFilterConditionNodeData = async (operator) => {
76
- let postFilterConditionState;
77
- try {
78
- postFilterConditionState = new PostFilterConditionState(postFilterState, projectionColumnState, undefined, operator);
79
- if (projectionColumnState instanceof
80
- QueryBuilderDerivationProjectionColumnState) {
81
- await flowResult(projectionColumnState.fetchDerivationLambdaReturnType());
76
+ if (projectionColumnState) {
77
+ try {
78
+ const postFilterConditionState = new PostFilterConditionState(postFilterState, projectionColumnState, undefined, operator);
79
+ if (projectionColumnState instanceof
80
+ QueryBuilderDerivationProjectionColumnState) {
81
+ await flowResult(projectionColumnState.fetchDerivationLambdaReturnType());
82
+ }
83
+ const defaultFilterConditionValue = postFilterConditionState.operator.getDefaultFilterConditionValue(postFilterConditionState);
84
+ postFilterConditionState.setValue(defaultFilterConditionValue);
85
+ updateFilterConditionValue(defaultFilterConditionValue);
86
+ postFilterState.addNodeFromNode(new QueryBuilderPostFilterTreeConditionNodeData(undefined, postFilterConditionState), undefined);
87
+ }
88
+ catch (error) {
89
+ assertErrorThrown(error);
90
+ applicationStore.notificationService.notifyWarning(error.message);
91
+ return;
82
92
  }
83
- const defaultFilterConditionValue = postFilterConditionState.operator.getDefaultFilterConditionValue(postFilterConditionState);
84
- postFilterConditionState.setValue(defaultFilterConditionValue);
85
- updateFilterConditionValue(defaultFilterConditionValue);
86
- }
87
- catch (error) {
88
- assertErrorThrown(error);
89
- applicationStore.notificationService.notifyWarning(error.message);
90
- return;
91
93
  }
92
- postFilterState.addNodeFromNode(new QueryBuilderPostFilterTreeConditionNodeData(undefined, postFilterConditionState), undefined);
93
94
  };
94
95
  const updateExistingPostFilterConditionNodeData = (existingPostFilterNode, isFilterBy) => {
95
96
  const conditionState = existingPostFilterNode.condition;
@@ -139,9 +140,9 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
139
140
  };
140
141
  const handleCopyCellValue = applicationStore.guardUnhandledError(() => applicationStore.clipboardService.copyTextToClipboard(event.current?.value));
141
142
  const handleCopyRowValue = applicationStore.guardUnhandledError(() => applicationStore.clipboardService.copyTextToClipboard(Object.values(event.current?.data).toString()));
142
- return (_jsxs(MenuContent, { ref: ref, children: [_jsx(MenuContentItem, { onClick: () => {
143
+ return (_jsxs(MenuContent, { ref: ref, children: [_jsx(MenuContentItem, { disabled: !projectionColumnState, onClick: () => {
143
144
  filterByOrOut(true);
144
- }, children: "Filter By" }), _jsx(MenuContentItem, { onClick: () => {
145
+ }, children: "Filter By" }), _jsx(MenuContentItem, { disabled: !projectionColumnState, onClick: () => {
145
146
  filterByOrOut(false);
146
147
  }, children: "Filter Out" }), _jsx(MenuContentDivider, {}), _jsx(MenuContentItem, { onClick: handleCopyCellValue, children: "Copy Cell Value" }), _jsx(MenuContentItem, { onClick: handleCopyRowValue, children: "Copy Row Value" })] }));
147
148
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,IAAI,EACJ,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,GACb,MAAM,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CAKK,CACnB,CAAC,GACU,EAEhB,SAAS,EAAE;oCACT,YAAY,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE;oCACzD,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE;oCACzD,SAAS,EAAE,CAAC;iCACb,aAED,cAAK,SAAS,EAAC,gDAAgD,uBAEzD,EACN,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,aAAa,KAAG,GACb,IACO,IACX,IACF,EACN,MAAC,YAAY,eACX,KAAC,qBAAqB,IACpB,SAAS,EACP,WAAW,CAAC,cAAc;4BAC1B,WAAW,CAAC,gBAAgB;4BAC5B,WAAW,CAAC,eAAe,CAAC,YAAY,GAE1C,EACD,CAAC,eAAe,IAAI,CACnB,KAAC,iBAAiB,oDAEE,CACrB,EACA,eAAe,IAAI,CAClB,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,wBAAwB,IACvB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,IAAI,EACJ,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,MA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e,CAAC,MAAM,CAAC,IAJnB,MAAM,CAKK,CACnB,CAAC,GACU,EAEhB,SAAS,EAAE;oCACT,YAAY,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE;oCACzD,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE;oCACzD,SAAS,EAAE,CAAC;iCACb,aAED,cAAK,SAAS,EAAC,gDAAgD,uBAEzD,EACN,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,aAAa,KAAG,GACb,IACO,IACX,IACF,EACN,MAAC,YAAY,eACX,KAAC,qBAAqB,IACpB,SAAS,EACP,WAAW,CAAC,cAAc;4BAC1B,WAAW,CAAC,gBAAgB;4BAC5B,WAAW,CAAC,eAAe,CAAC,YAAY,GAE1C,EACD,CAAC,eAAe,IAAI,CACnB,KAAC,iBAAiB,oDAEE,CACrB,EACA,eAAe,IAAI,CAClB,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,wBAAwB,IACvB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-query-builder v4.0.0
1
+ /** @license @finos/legend-query-builder v4.0.2
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -50,7 +50,7 @@
50
50
  "@finos/legend-shared": "workspace:*",
51
51
  "@finos/legend-storage": "workspace:*",
52
52
  "@testing-library/react": "14.0.0",
53
- "@types/react": "18.2.6",
53
+ "@types/react": "18.2.7",
54
54
  "@types/react-dom": "18.2.4",
55
55
  "chart.js": "4.3.0",
56
56
  "mathjs": "11.8.0",
@@ -62,13 +62,13 @@
62
62
  "react-dnd": "16.0.1",
63
63
  "react-dom": "18.2.0",
64
64
  "serializr": "3.0.2",
65
- "sql-formatter": "12.2.0"
65
+ "sql-formatter": "12.2.1"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@finos/legend-dev-utils": "workspace:*",
69
69
  "@jest/globals": "29.5.0",
70
70
  "cross-env": "7.0.3",
71
- "eslint": "8.40.0",
71
+ "eslint": "8.41.0",
72
72
  "jest": "29.5.0",
73
73
  "npm-run-all": "4.1.5",
74
74
  "rimraf": "5.0.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,15 +42,15 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "15.0.15",
46
- "@finos/legend-art": "7.0.16",
47
- "@finos/legend-graph": "29.0.3",
48
- "@finos/legend-lego": "1.0.10",
49
- "@finos/legend-server-depot": "6.0.8",
50
- "@finos/legend-shared": "10.0.7",
51
- "@finos/legend-storage": "3.0.57",
45
+ "@finos/legend-application": "15.0.16",
46
+ "@finos/legend-art": "7.0.17",
47
+ "@finos/legend-graph": "29.0.5",
48
+ "@finos/legend-lego": "1.0.12",
49
+ "@finos/legend-server-depot": "6.0.9",
50
+ "@finos/legend-shared": "10.0.8",
51
+ "@finos/legend-storage": "3.0.58",
52
52
  "@testing-library/react": "14.0.0",
53
- "@types/react": "18.2.6",
53
+ "@types/react": "18.2.7",
54
54
  "@types/react-dom": "18.2.4",
55
55
  "chart.js": "4.3.0",
56
56
  "mathjs": "11.8.0",
@@ -62,13 +62,13 @@
62
62
  "react-dnd": "16.0.1",
63
63
  "react-dom": "18.2.0",
64
64
  "serializr": "3.0.2",
65
- "sql-formatter": "12.2.0"
65
+ "sql-formatter": "12.2.1"
66
66
  },
67
67
  "devDependencies": {
68
- "@finos/legend-dev-utils": "2.0.62",
68
+ "@finos/legend-dev-utils": "2.0.63",
69
69
  "@jest/globals": "29.5.0",
70
70
  "cross-env": "7.0.3",
71
- "eslint": "8.40.0",
71
+ "eslint": "8.41.0",
72
72
  "jest": "29.5.0",
73
73
  "npm-run-all": "4.1.5",
74
74
  "rimraf": "5.0.1",
@@ -130,15 +130,13 @@ const QueryBuilderGridResultContextMenu = observer(
130
130
  new QueryBuilderPostFilterOperator_NotEqual();
131
131
  const postFilterNotInOperator = new QueryBuilderPostFilterOperator_NotIn();
132
132
  const postFilterState = tdsState.postFilterState;
133
- const projectionColumnState = guaranteeNonNullable(
134
- tdsState.projectionColumns
135
- .filter((c) => c.columnName === event.current?.column.getColId())
136
- .concat(
137
- tdsState.aggregationState.columns
138
- .filter((c) => c.columnName === event.current?.column.getColId())
139
- .map((ag) => ag.projectionColumnState),
140
- )[0],
141
- );
133
+ const projectionColumnState = tdsState.tdsColumns
134
+ .filter((c) => c.columnName === event.current?.column.getColId())
135
+ .concat(
136
+ tdsState.aggregationState.columns
137
+ .filter((c) => c.columnName === event.current?.column.getColId())
138
+ .map((ag) => ag.projectionColumnState),
139
+ )[0];
142
140
 
143
141
  const getExistingPostFilterNode = (
144
142
  operators: QueryBuilderPostFilterOperator[],
@@ -153,7 +151,7 @@ const QueryBuilderGridResultContextMenu = observer(
153
151
  .filter(
154
152
  (n) =>
155
153
  (n as QueryBuilderPostFilterTreeConditionNodeData).condition
156
- .columnState.columnName === projectionColumnState.columnName &&
154
+ .columnState.columnName === projectionColumnState?.columnName &&
157
155
  operators
158
156
  .map((op) => op.getLabel())
159
157
  .includes(
@@ -188,42 +186,43 @@ const QueryBuilderGridResultContextMenu = observer(
188
186
  const generateNewPostFilterConditionNodeData = async (
189
187
  operator: QueryBuilderPostFilterOperator,
190
188
  ): Promise<void> => {
191
- let postFilterConditionState: PostFilterConditionState;
192
- try {
193
- postFilterConditionState = new PostFilterConditionState(
194
- postFilterState,
195
- projectionColumnState,
196
- undefined,
197
- operator,
198
- );
199
- if (
200
- projectionColumnState instanceof
201
- QueryBuilderDerivationProjectionColumnState
202
- ) {
203
- await flowResult(
204
- projectionColumnState.fetchDerivationLambdaReturnType(),
189
+ if (projectionColumnState) {
190
+ try {
191
+ const postFilterConditionState = new PostFilterConditionState(
192
+ postFilterState,
193
+ projectionColumnState,
194
+ undefined,
195
+ operator,
205
196
  );
206
- }
207
- const defaultFilterConditionValue =
208
- postFilterConditionState.operator.getDefaultFilterConditionValue(
209
- postFilterConditionState,
197
+ if (
198
+ projectionColumnState instanceof
199
+ QueryBuilderDerivationProjectionColumnState
200
+ ) {
201
+ await flowResult(
202
+ projectionColumnState.fetchDerivationLambdaReturnType(),
203
+ );
204
+ }
205
+ const defaultFilterConditionValue =
206
+ postFilterConditionState.operator.getDefaultFilterConditionValue(
207
+ postFilterConditionState,
208
+ );
209
+ postFilterConditionState.setValue(defaultFilterConditionValue);
210
+ updateFilterConditionValue(
211
+ defaultFilterConditionValue as InstanceValue,
210
212
  );
211
- postFilterConditionState.setValue(defaultFilterConditionValue);
212
- updateFilterConditionValue(
213
- defaultFilterConditionValue as InstanceValue,
214
- );
215
- } catch (error) {
216
- assertErrorThrown(error);
217
- applicationStore.notificationService.notifyWarning(error.message);
218
- return;
213
+ postFilterState.addNodeFromNode(
214
+ new QueryBuilderPostFilterTreeConditionNodeData(
215
+ undefined,
216
+ postFilterConditionState,
217
+ ),
218
+ undefined,
219
+ );
220
+ } catch (error) {
221
+ assertErrorThrown(error);
222
+ applicationStore.notificationService.notifyWarning(error.message);
223
+ return;
224
+ }
219
225
  }
220
- postFilterState.addNodeFromNode(
221
- new QueryBuilderPostFilterTreeConditionNodeData(
222
- undefined,
223
- postFilterConditionState,
224
- ),
225
- undefined,
226
- );
227
226
  };
228
227
 
229
228
  const updateExistingPostFilterConditionNodeData = (
@@ -323,6 +322,7 @@ const QueryBuilderGridResultContextMenu = observer(
323
322
  return (
324
323
  <MenuContent ref={ref}>
325
324
  <MenuContentItem
325
+ disabled={!projectionColumnState}
326
326
  onClick={(): void => {
327
327
  filterByOrOut(true);
328
328
  }}
@@ -330,6 +330,7 @@ const QueryBuilderGridResultContextMenu = observer(
330
330
  Filter By
331
331
  </MenuContentItem>
332
332
  <MenuContentItem
333
+ disabled={!projectionColumnState}
333
334
  onClick={(): void => {
334
335
  filterByOrOut(false);
335
336
  }}