@finos/legend-query-builder 4.11.9 → 4.11.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. package/lib/__lib__/QueryBuilderDocumentation.d.ts +1 -1
  2. package/lib/__lib__/QueryBuilderDocumentation.d.ts.map +1 -1
  3. package/lib/__lib__/QueryBuilderDocumentation.js +1 -1
  4. package/lib/__lib__/QueryBuilderDocumentation.js.map +1 -1
  5. package/lib/components/result/QueryBuilderResultPanel.js +7 -7
  6. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  7. package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts +1 -1
  8. package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
  9. package/lib/components/result/tds/QueryBuilderTDSGridResult.js +62 -9
  10. package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
  11. package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts +0 -1
  12. package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts.map +1 -1
  13. package/lib/components/result/tds/QueryBuilderTDSResultShared.js +1 -29
  14. package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
  15. package/lib/index.css +1 -1
  16. package/lib/package.json +1 -1
  17. package/lib/stores/QueryBuilderState.d.ts +2 -2
  18. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  19. package/lib/stores/QueryBuilderState.js +5 -5
  20. package/lib/stores/QueryBuilderState.js.map +1 -1
  21. package/package.json +1 -1
  22. package/src/__lib__/QueryBuilderDocumentation.ts +1 -1
  23. package/src/components/result/QueryBuilderResultPanel.tsx +13 -13
  24. package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +73 -10
  25. package/src/components/result/tds/QueryBuilderTDSResultShared.tsx +0 -35
  26. package/src/stores/QueryBuilderState.ts +5 -5
@@ -16,6 +16,6 @@
16
16
  export declare enum QUERY_BUILDER_DOCUMENTATION_KEY {
17
17
  QUESTION_HOW_TO_ADD_PARAMETERS_TO_QUERY = "question.how-to-add-parameters-to-query",
18
18
  QUESTION_HOW_TO_ADD_CONSTANTS_TO_QUERY = "question.how-to-add-constants-to-query",
19
- QUESTION_HOW_TO_USE_ADVANCED_GRID_MODE = "question.how-to-use-advanced-grid-mode"
19
+ QUESTION_HOW_TO_USE_LOCAL_GRID_MODE = "question.how-to-use-local-grid-mode"
20
20
  }
21
21
  //# sourceMappingURL=QueryBuilderDocumentation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDocumentation.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,+BAA+B;IAEzC,uCAAuC,4CAA4C;IACnF,sCAAsC,2CAA2C;IACjF,sCAAsC,2CAA2C;CAClF"}
1
+ {"version":3,"file":"QueryBuilderDocumentation.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,+BAA+B;IAEzC,uCAAuC,4CAA4C;IACnF,sCAAsC,2CAA2C;IACjF,mCAAmC,wCAAwC;CAC5E"}
@@ -18,6 +18,6 @@ export var QUERY_BUILDER_DOCUMENTATION_KEY;
18
18
  // questions
19
19
  QUERY_BUILDER_DOCUMENTATION_KEY["QUESTION_HOW_TO_ADD_PARAMETERS_TO_QUERY"] = "question.how-to-add-parameters-to-query";
20
20
  QUERY_BUILDER_DOCUMENTATION_KEY["QUESTION_HOW_TO_ADD_CONSTANTS_TO_QUERY"] = "question.how-to-add-constants-to-query";
21
- QUERY_BUILDER_DOCUMENTATION_KEY["QUESTION_HOW_TO_USE_ADVANCED_GRID_MODE"] = "question.how-to-use-advanced-grid-mode";
21
+ QUERY_BUILDER_DOCUMENTATION_KEY["QUESTION_HOW_TO_USE_LOCAL_GRID_MODE"] = "question.how-to-use-local-grid-mode";
22
22
  })(QUERY_BUILDER_DOCUMENTATION_KEY || (QUERY_BUILDER_DOCUMENTATION_KEY = {}));
23
23
  //# sourceMappingURL=QueryBuilderDocumentation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDocumentation.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,+BAKX;AALD,WAAY,+BAA+B;IACzC,YAAY;IACZ,sHAAmF,CAAA;IACnF,oHAAiF,CAAA;IACjF,oHAAiF,CAAA;AACnF,CAAC,EALW,+BAA+B,KAA/B,+BAA+B,QAK1C"}
1
+ {"version":3,"file":"QueryBuilderDocumentation.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,+BAKX;AALD,WAAY,+BAA+B;IACzC,YAAY;IACZ,sHAAmF,CAAA;IACnF,oHAAiF,CAAA;IACjF,8GAA2E,CAAA;AAC7E,CAAC,EALW,+BAA+B,KAA/B,+BAA+B,QAK1C"}
@@ -91,7 +91,7 @@ export const QueryBuilderResultPanel = observer((props) => {
91
91
  const allValidationIssues = queryBuilderState.allValidationIssues;
92
92
  const isSupportedQueryValid = allValidationIssues.length === 0;
93
93
  const isQueryValid = !queryBuilderState.isQuerySupported || isSupportedQueryValid;
94
- const isQueryValidForAdvancedMode = isQueryValid &&
94
+ const isQueryValidForLocalMode = isQueryValid &&
95
95
  queryBuilderState.fetchStructureState.implementation instanceof
96
96
  QueryBuilderTDSState;
97
97
  const runQuery = () => {
@@ -109,7 +109,7 @@ export const QueryBuilderResultPanel = observer((props) => {
109
109
  const generatePlan = applicationStore.guardUnhandledError(() => flowResult(resultState.generatePlan(false)));
110
110
  const debugPlanGeneration = applicationStore.guardUnhandledError(() => flowResult(resultState.generatePlan(true)));
111
111
  const allowSettingPreviewLimit = queryBuilderState.isQuerySupported;
112
- const allowSettingAdvancedMode = queryBuilderState.isQuerySupported &&
112
+ const allowSettingLocalMode = queryBuilderState.isQuerySupported &&
113
113
  queryBuilderState.config?.TEMPORARY__enableGridEnterpriseMode;
114
114
  const copyExpression = (value) => {
115
115
  applicationStore.clipboardService
@@ -161,13 +161,13 @@ export const QueryBuilderResultPanel = observer((props) => {
161
161
  inputRef.current?.select();
162
162
  }
163
163
  };
164
- const toggleIsAdvancedModeEnabled = () => {
164
+ const toggleIsLocalModeEnabled = () => {
165
165
  resultState.setExecutionResult(undefined);
166
- queryBuilderState.setIsAdvancedModeEnabled(!queryBuilderState.isAdvancedModeEnabled);
166
+ queryBuilderState.setIsLocalModeEnabled(!queryBuilderState.isLocalModeEnabled);
167
167
  };
168
- return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_PANEL, className: "panel query-builder__result", children: [showSqlModal && executedSql && (_jsx(Dialog, { open: Boolean(showSqlModal), onClose: () => setShowSqlModal(false), children: _jsxs(Modal, { className: "editor-modal", darkMode: true, children: [_jsx(ModalHeader, { title: "Executed SQL Query" }), _jsx(ModalBody, { className: "query-builder__sql__modal", children: _jsxs(_Fragment, { children: [_jsx(CodeEditor, { inputValue: tryToFormatSql(executedSql), isReadOnly: true, language: CODE_EDITOR_LANGUAGE.SQL, hideMinimap: true }), _jsx(PanelDivider, {})] }) }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { formatText: false, onClick: () => copyExpression(executedSql), text: "Copy SQL to Clipboard" }), _jsx(ModalFooterButton, { onClick: () => setShowSqlModal(false), text: "Close" })] })] }) })), _jsxs("div", { className: "panel__header", children: [_jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "panel__header__title__label", children: "result" }), executedSql && (_jsx(Button, { onClick: () => setShowSqlModal(true), title: "Executed SQL", className: "query-builder__result__sql__actions", children: _jsx(SQLIcon, {}) })), resultState.pressedRunQuery.isInProgress && (_jsx("div", { className: "panel__header__title__label__status", children: "Running Query..." })), _jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_ANALYTICS, className: "query-builder__result__analytics", children: resultDescription ?? '' }), executionResult && resultState.checkForStaleResults && (_jsxs("div", { className: "query-builder__result__stale-status", children: [_jsx("div", { className: "query-builder__result__stale-status__icon", children: _jsx(ExclamationTriangleIcon, {}) }), _jsx("div", { className: "query-builder__result__stale-status__label", children: "Preview data might be stale" })] }))] }), _jsxs("div", { className: "panel__header__actions query-builder__result__header__actions", children: [allowSettingAdvancedMode && (_jsxs("div", { className: "query-builder__result__advanced__mode", children: [_jsxs("div", { className: "query-builder__result__advanced__mode__label", children: ["Advanced Mode", _jsx(DocumentationLink, { title: "The grid in advanced mode performs all operations like grouping, sorting, filtering, etc after initial query execution locally withought reaching out to server. This limits the number of rows to smaller number so they can fit in memory", documentationKey: QUERY_BUILDER_DOCUMENTATION_KEY.QUESTION_HOW_TO_USE_ADVANCED_GRID_MODE })] }), _jsx("button", { className: clsx('query-builder__result__advanced__mode__toggler__btn', {
169
- 'query-builder__result__advanced__mode__toggler__btn--toggled': queryBuilderState.isAdvancedModeEnabled,
170
- }), disabled: !isQueryValidForAdvancedMode, onClick: toggleIsAdvancedModeEnabled, tabIndex: -1, children: queryBuilderState.isAdvancedModeEnabled ? (_jsx(CheckSquareIcon, {})) : (_jsx(SquareIcon, {})) })] })), allowSettingPreviewLimit && (_jsxs("div", { className: "query-builder__result__limit", children: [_jsx("div", { className: "query-builder__result__limit__label", children: "preview limit" }), _jsx("input", { ref: inputRef, className: "input--dark query-builder__result__limit__input", spellCheck: false, type: "number", value: previewLimitValue, onChange: changePreviewLimit, onBlur: getPreviewLimit, onKeyDown: onKeyDown, disabled: !isQueryValid })] })), _jsx("div", { className: "query-builder__result__execute-btn btn__dropdown-combo btn__dropdown-combo--primary", children: resultState.isRunningQuery ? (_jsx("button", { className: "btn__dropdown-combo__canceler", onClick: cancelQuery, tabIndex: -1, disabled: !isQueryValid, children: _jsxs("div", { className: "btn--dark btn--caution btn__dropdown-combo__canceler__label", children: [_jsx(PauseCircleIcon, { className: "btn__dropdown-combo__canceler__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__canceler__label__title", children: "Stop" })] }) })) : (_jsxs(_Fragment, { children: [_jsxs("button", { className: "btn__dropdown-combo__label", onClick: runQuery, tabIndex: -1, title: allValidationIssues.length
168
+ return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_PANEL, className: "panel query-builder__result", children: [showSqlModal && executedSql && (_jsx(Dialog, { open: Boolean(showSqlModal), onClose: () => setShowSqlModal(false), children: _jsxs(Modal, { className: "editor-modal", darkMode: true, children: [_jsx(ModalHeader, { title: "Executed SQL Query" }), _jsx(ModalBody, { className: "query-builder__sql__modal", children: _jsxs(_Fragment, { children: [_jsx(CodeEditor, { inputValue: tryToFormatSql(executedSql), isReadOnly: true, language: CODE_EDITOR_LANGUAGE.SQL, hideMinimap: true }), _jsx(PanelDivider, {})] }) }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { formatText: false, onClick: () => copyExpression(executedSql), text: "Copy SQL to Clipboard" }), _jsx(ModalFooterButton, { onClick: () => setShowSqlModal(false), text: "Close" })] })] }) })), _jsxs("div", { className: "panel__header", children: [_jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "panel__header__title__label", children: "result" }), executedSql && (_jsx(Button, { onClick: () => setShowSqlModal(true), title: "Executed SQL", className: "query-builder__result__sql__actions", children: _jsx(SQLIcon, {}) })), resultState.pressedRunQuery.isInProgress && (_jsx("div", { className: "panel__header__title__label__status", children: "Running Query..." })), _jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_ANALYTICS, className: "query-builder__result__analytics", children: resultDescription ?? '' }), executionResult && resultState.checkForStaleResults && (_jsxs("div", { className: "query-builder__result__stale-status", children: [_jsx("div", { className: "query-builder__result__stale-status__icon", children: _jsx(ExclamationTriangleIcon, {}) }), _jsx("div", { className: "query-builder__result__stale-status__label", children: "Preview data might be stale" })] }))] }), _jsxs("div", { className: "panel__header__actions query-builder__result__header__actions", children: [allowSettingLocalMode && (_jsxs("div", { className: "query-builder__result__advanced__mode", children: [_jsxs("div", { className: "query-builder__result__advanced__mode__label", children: ["Local Mode", _jsx(DocumentationLink, { title: "The grid in local mode performs all operations like grouping, sorting, filtering, etc after initial query execution locally withought reaching out to server. This limits the number of rows to smaller number so they can fit in memory", documentationKey: QUERY_BUILDER_DOCUMENTATION_KEY.QUESTION_HOW_TO_USE_LOCAL_GRID_MODE })] }), _jsx("button", { className: clsx('query-builder__result__advanced__mode__toggler__btn', {
169
+ 'query-builder__result__advanced__mode__toggler__btn--toggled': queryBuilderState.isLocalModeEnabled,
170
+ }), disabled: !isQueryValidForLocalMode, onClick: toggleIsLocalModeEnabled, tabIndex: -1, children: queryBuilderState.isLocalModeEnabled ? (_jsx(CheckSquareIcon, {})) : (_jsx(SquareIcon, {})) })] })), allowSettingPreviewLimit && (_jsxs("div", { className: "query-builder__result__limit", children: [_jsx("div", { className: "query-builder__result__limit__label", children: "preview limit" }), _jsx("input", { ref: inputRef, className: "input--dark query-builder__result__limit__input", spellCheck: false, type: "number", value: previewLimitValue, onChange: changePreviewLimit, onBlur: getPreviewLimit, onKeyDown: onKeyDown, disabled: !isQueryValid })] })), _jsx("div", { className: "query-builder__result__execute-btn btn__dropdown-combo btn__dropdown-combo--primary", children: resultState.isRunningQuery ? (_jsx("button", { className: "btn__dropdown-combo__canceler", onClick: cancelQuery, tabIndex: -1, disabled: !isQueryValid, children: _jsxs("div", { className: "btn--dark btn--caution btn__dropdown-combo__canceler__label", children: [_jsx(PauseCircleIcon, { className: "btn__dropdown-combo__canceler__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__canceler__label__title", children: "Stop" })] }) })) : (_jsxs(_Fragment, { children: [_jsxs("button", { className: "btn__dropdown-combo__label", onClick: runQuery, tabIndex: -1, title: allValidationIssues.length
171
171
  ? `Query is not valid:\n${allValidationIssues
172
172
  .map((issue) => `\u2022 ${issue}`)
173
173
  .join('\n')}`
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../../src/components/result/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,IAAI,EACJ,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,MAAM,EACN,OAAO,EACP,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,UAAU,EACV,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAEL,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAChG,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EACL,oBAAoB,EACpB,UAAU,GACX,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAA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,WAAW,EAAE,WAAW,GAAI,CAC/C,IACG,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/result/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,IAAI,EACJ,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,MAAM,EACN,OAAO,EACP,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,UAAU,EACV,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAEL,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,s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,WAAW,CAAC,2BAA2B,CAAC,IAAI,CAAC,EAE/C,QAAQ,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,UAAU,oCAG3C,IACN,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,EACd,WAAW,CAAC,wBAAwB,IAAI,CACvC,KAAC,gBAAgB,IAAC,WAAW,EAAE,WAAW,GAAI,CAC/C,IACG,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"}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import type { QueryBuilderState } from '../../../stores/QueryBuilderState.js';
17
- import type { TDSExecutionResult } from '@finos/legend-graph';
17
+ import { type TDSExecutionResult } from '@finos/legend-graph';
18
18
  export declare const QueryBuilderTDSGridResult: ((props: {
19
19
  executionResult: TDSExecutionResult;
20
20
  queryBuilderState: QueryBuilderState;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTDSGridResult.d.ts","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSGridResult.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAsI9D,eAAO,MAAM,yBAAyB,WAC5B;IACN,eAAe,EAAE,kBAAkB,CAAC;IACpC,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;;CA4LF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderTDSGridResult.d.ts","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSGridResult.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAqM9E,eAAO,MAAM,yBAAyB,WAC5B;IACN,eAAe,EAAE,kBAAkB,CAAC;IACpC,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;;CA4LF,CAAC"}
@@ -16,14 +16,43 @@ import { jsx as _jsx } from "react/jsx-runtime";
16
16
  */
17
17
  import { clsx } from '@finos/legend-art';
18
18
  import { observer } from 'mobx-react-lite';
19
+ import { PRIMITIVE_TYPE } from '@finos/legend-graph';
19
20
  import { useState, useCallback } from 'react';
20
21
  import { DataGrid, } from '@finos/legend-lego/data-grid';
21
- import { getAggregationTDSColumnCustomizations, getRowDataFromExecutionResult, filterByOrOutValues, } from './QueryBuilderTDSResultShared.js';
22
+ import { getRowDataFromExecutionResult, filterByOrOutValues, } from './QueryBuilderTDSResultShared.js';
22
23
  import { QueryBuilderTDSState } from '../../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
23
24
  import { DEFAULT_LOCALE } from '../../../graph-manager/QueryBuilderConst.js';
24
25
  import { isNumber, isString, isValidURL } from '@finos/legend-shared';
25
26
  import { useApplicationStore } from '@finos/legend-application';
26
- const getAdvancedColDefs = (executionResult, resultState) => executionResult.result.columns.map((colName) => {
27
+ const getAggregationTDSColumnCustomizations = (result, columnName) => {
28
+ const columnType = result.builder.columns.find((col) => col.name === columnName)?.type;
29
+ switch (columnType) {
30
+ case PRIMITIVE_TYPE.STRING:
31
+ return {
32
+ filter: 'agTextColumnFilter',
33
+ allowedAggFuncs: ['count'],
34
+ };
35
+ case PRIMITIVE_TYPE.DATE:
36
+ case PRIMITIVE_TYPE.DATETIME:
37
+ case PRIMITIVE_TYPE.STRICTDATE:
38
+ return {
39
+ filter: 'agDateColumnFilter',
40
+ allowedAggFuncs: ['count'],
41
+ };
42
+ case PRIMITIVE_TYPE.DECIMAL:
43
+ case PRIMITIVE_TYPE.INTEGER:
44
+ case PRIMITIVE_TYPE.FLOAT:
45
+ return {
46
+ filter: 'agNumberColumnFilter',
47
+ allowedAggFuncs: ['count', 'sum', 'max', 'min', 'avg'],
48
+ };
49
+ default:
50
+ return {
51
+ allowedAggFuncs: ['count'],
52
+ };
53
+ }
54
+ };
55
+ const getLocalColDefs = (executionResult, resultState) => executionResult.result.columns.map((colName) => {
27
56
  const col = {
28
57
  minWidth: 50,
29
58
  sortable: true,
@@ -75,6 +104,29 @@ const QueryResultCellRenderer = observer((params) => {
75
104
  };
76
105
  return (_jsx("div", { className: clsx('query-builder__result__values__table__cell'), onMouseDown: (event) => mouseDown(event), onMouseUp: (event) => mouseUp(event), onMouseOver: (event) => mouseOver(event), children: cellValueUrlLink ? (_jsx("a", { href: cellValueUrlLink, target: "_blank", rel: "noreferrer", children: cellValueUrlLink })) : (_jsx("span", { children: formattedCellValue() })) }));
77
106
  });
107
+ const getFilterTDSColumnCustomizations = (result, columnName) => {
108
+ const columnType = result.builder.columns.find((col) => col.name === columnName)?.type;
109
+ switch (columnType) {
110
+ case PRIMITIVE_TYPE.DATE:
111
+ case PRIMITIVE_TYPE.DATETIME:
112
+ case PRIMITIVE_TYPE.STRICTDATE:
113
+ return {
114
+ filter: 'agDateColumnFilter',
115
+ };
116
+ case PRIMITIVE_TYPE.DECIMAL:
117
+ case PRIMITIVE_TYPE.INTEGER:
118
+ case PRIMITIVE_TYPE.FLOAT:
119
+ case PRIMITIVE_TYPE.NUMBER:
120
+ return {
121
+ filter: 'agNumberColumnFilter',
122
+ };
123
+ default:
124
+ // we default all other columns to use filter true which defaults to set filters
125
+ return {
126
+ filter: true,
127
+ };
128
+ }
129
+ };
78
130
  const getColDefs = (executionResult, resultState) => executionResult.result.columns.map((colName) => ({
79
131
  minWidth: 50,
80
132
  sortable: true,
@@ -86,15 +138,16 @@ const getColDefs = (executionResult, resultState) => executionResult.result.colu
86
138
  resultState: resultState,
87
139
  tdsExecutionResult: executionResult,
88
140
  },
141
+ ...getFilterTDSColumnCustomizations(executionResult, colName),
89
142
  }));
90
143
  export const QueryBuilderTDSGridResult = observer((props) => {
91
144
  const { executionResult, queryBuilderState } = props;
92
145
  const applicationStore = useApplicationStore();
93
146
  const [columnAPi, setColumnApi] = useState(undefined);
94
147
  const resultState = queryBuilderState.resultState;
95
- const isAdvancedModeEnabled = queryBuilderState.isAdvancedModeEnabled;
96
- const colDefs = isAdvancedModeEnabled
97
- ? getAdvancedColDefs(executionResult, resultState)
148
+ const isLocalModeEnabled = queryBuilderState.isLocalModeEnabled;
149
+ const colDefs = isLocalModeEnabled
150
+ ? getLocalColDefs(executionResult, resultState)
98
151
  : getColDefs(executionResult, resultState);
99
152
  const onSaveGridColumnState = () => {
100
153
  if (!columnAPi) {
@@ -143,13 +196,13 @@ export const QueryBuilderTDSGridResult = observer((props) => {
143
196
  if (fetchStructureImplementation instanceof QueryBuilderTDSState) {
144
197
  result = [
145
198
  {
146
- name: 'Filter by',
199
+ name: 'Filter By',
147
200
  action: () => {
148
201
  filterByOrOutValues(applicationStore, resultState.mousedOverCell, true, fetchStructureImplementation);
149
202
  },
150
203
  },
151
204
  {
152
- name: 'Filter out',
205
+ name: 'Filter Out',
153
206
  action: () => {
154
207
  filterByOrOutValues(applicationStore, resultState.mousedOverCell, false, fetchStructureImplementation);
155
208
  },
@@ -157,7 +210,7 @@ export const QueryBuilderTDSGridResult = observer((props) => {
157
210
  'copy',
158
211
  'copyWithHeaders',
159
212
  {
160
- name: 'Copy row value',
213
+ name: 'Copy Row Value',
161
214
  action: () => {
162
215
  params.api.copySelectedRowsToClipboard();
163
216
  },
@@ -170,7 +223,7 @@ export const QueryBuilderTDSGridResult = observer((props) => {
170
223
  resultState.mousedOverCell,
171
224
  resultState.queryBuilderState.fetchStructureState.implementation,
172
225
  ]);
173
- return (_jsx("div", { className: "query-builder__result__values__table", children: _jsx("div", { className: clsx('ag-theme-balham-dark query-builder__result__tds-grid'), children: isAdvancedModeEnabled ? (_jsx(DataGrid, { rowData: getRowDataFromExecutionResult(executionResult), onGridReady: (params) => {
226
+ return (_jsx("div", { className: "query-builder__result__values__table", children: _jsx("div", { className: clsx('ag-theme-balham-dark query-builder__result__tds-grid'), children: isLocalModeEnabled ? (_jsx(DataGrid, { rowData: getRowDataFromExecutionResult(executionResult), onGridReady: (params) => {
174
227
  setColumnApi(params.columnApi);
175
228
  params.columnApi.setPivotMode(resultState.gridConfig.isPivotModeEnabled);
176
229
  }, gridOptions: {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTDSGridResult.js","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSGridResult.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EACL,QAAQ,GAQT,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,qCAAqC,EACrC,6BAA6B,EAE7B,mBA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,6BAA6B,CAAC,eAAe,CAAC,EACvD,WAAW,EAAE;oBACX,uBAAuB,EAAE,IAAI;oBAC7B,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAmB;oBACjD,YAAY,EAAE,UAAU;oBACxB,oBAAoB,EAAE,IAAI;iBAC3B;gBACD,oHAAoH;gBACpH,oIAAoI;gBACpI,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE;oBAC3B,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;gBAC3C,CAAC,EACD,uBAAuB,EAAE,CAAC,KAAK,EAAE,EAAE;oBACjC,MAAM,aAAa,GAAG,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBAClD,WAAW,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;oBACjC,aAAa,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAC7B,WAAW,CAAC,eAAe,CAAC,IAAI,CAAC,CAClC,CAAC;gBACJ,CAAC,EACD,wBAAwB,EAAE,IAAI,EAC9B,sBAAsB,EAAE,KAAK,EAC7B,mBAAmB,EAAE,KAAK,EAC1B,UAAU,EAAE,OAAO,EACnB,mBAAmB,EAAE,CAAC,MAAM,EAAoC,EAAE,CAChE,mBAAmB,CAAC,MAAM,CAAC,GAE7B,CACH,GACG,GACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -21,7 +21,6 @@ import { type DataGridCellRendererParams } from '@finos/legend-lego/data-grid';
21
21
  import type { QueryBuilderResultState, QueryBuilderTDSResultCellData, QueryBuilderTDSRowDataType } from '../../../stores/QueryBuilderResultState.js';
22
22
  export declare const tryToFormatSql: (sql: string) => string;
23
23
  export declare const getExecutedSqlFromExecutionResult: (execResult: ExecutionResult) => string | undefined;
24
- export declare const getAggregationTDSColumnCustomizations: (result: TDSExecutionResult, columnName: string) => object | undefined;
25
24
  export declare const getRowDataFromExecutionResult: (executionResult: TDSExecutionResult) => QueryBuilderTDSRowDataType[];
26
25
  export type IQueryRendererParamsWithGridType = DataGridCellRendererParams & {
27
26
  resultState: QueryBuilderResultState;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTDSResultShared.d.ts","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSResultShared.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AASH,OAAO,EACL,KAAK,kBAAkB,EAMvB,KAAK,eAAe,EAErB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EAEpC,MAAM,2BAA2B,CAAC;AA4BnC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AAKxG,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EACV,uBAAuB,EACvB,6BAA6B,EAC7B,0BAA0B,EAC3B,MAAM,4CAA4C,CAAC;AAQpD,eAAO,MAAM,cAAc,QAAS,MAAM,KAAG,MAY5C,CAAC;AAEF,eAAO,MAAM,iCAAiC,eAChC,eAAe,KAC1B,MAAM,GAAG,SAiBX,CAAC;AAEF,eAAO,MAAM,qCAAqC,WACxC,kBAAkB,cACd,MAAM,KACjB,MAAM,GAAG,SA6BX,CAAC;AAEF,eAAO,MAAM,6BAA6B,oBACvB,kBAAkB,KAClC,0BAA0B,EAe5B,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,0BAA0B,GAAG;IAC1E,WAAW,EAAE,uBAAuB,CAAC;IACrC,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAAC;AAyQF,eAAO,MAAM,mBAAmB,qBACZ,iBAChB,uBAAuB,EACvB,+BAA+B,uBAAuB,CAAC,CACxD,QACK,6BAA6B,GAAG,IAAI,cAC9B,OAAO,YACT,oBAAoB,KAC7B,IAIF,CAAC;AAEF,eAAO,MAAM,iCAAiC;UAIlC,6BAA6B,GAAG,IAAI;cAChC,oBAAoB;uBACX,MAAM,IAAI;0BACP,MAAM,IAAI;2GAsCrC,CAAC"}
1
+ {"version":3,"file":"QueryBuilderTDSResultShared.d.ts","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSResultShared.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AASH,OAAO,EACL,KAAK,kBAAkB,EAKvB,KAAK,eAAe,EAErB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EAEpC,MAAM,2BAA2B,CAAC;AA4BnC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AAKxG,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EACV,uBAAuB,EACvB,6BAA6B,EAC7B,0BAA0B,EAC3B,MAAM,4CAA4C,CAAC;AAQpD,eAAO,MAAM,cAAc,QAAS,MAAM,KAAG,MAY5C,CAAC;AAEF,eAAO,MAAM,iCAAiC,eAChC,eAAe,KAC1B,MAAM,GAAG,SAiBX,CAAC;AAEF,eAAO,MAAM,6BAA6B,oBACvB,kBAAkB,KAClC,0BAA0B,EAe5B,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,0BAA0B,GAAG;IAC1E,WAAW,EAAE,uBAAuB,CAAC;IACrC,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAAC;AAyQF,eAAO,MAAM,mBAAmB,qBACZ,iBAChB,uBAAuB,EACvB,+BAA+B,uBAAuB,CAAC,CACxD,QACK,6BAA6B,GAAG,IAAI,cAC9B,OAAO,YACT,oBAAoB,KAC7B,IAIF,CAAC;AAEF,eAAO,MAAM,iCAAiC;UAIlC,6BAA6B,GAAG,IAAI;cAChC,oBAAoB;uBACX,MAAM,IAAI;0BACP,MAAM,IAAI;2GAsCrC,CAAC"}
@@ -17,7 +17,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
17
  import { MenuContent, MenuContentItem, MenuContentDivider, } from '@finos/legend-art';
18
18
  import { observer } from 'mobx-react-lite';
19
19
  import { flowResult } from 'mobx';
20
- import { InstanceValue, EnumValueInstanceValue, EnumValueExplicitReference, PRIMITIVE_TYPE, RelationalExecutionActivities, } from '@finos/legend-graph';
20
+ import { InstanceValue, EnumValueInstanceValue, EnumValueExplicitReference, RelationalExecutionActivities, } from '@finos/legend-graph';
21
21
  import { format as formatSQL } from 'sql-formatter';
22
22
  import { useApplicationStore, } from '@finos/legend-application';
23
23
  import { assertErrorThrown, guaranteeNonNullable, filterByType, isBoolean, } from '@finos/legend-shared';
@@ -64,34 +64,6 @@ export const getExecutedSqlFromExecutionResult = (execResult) => {
64
64
  }
65
65
  return undefined;
66
66
  };
67
- export const getAggregationTDSColumnCustomizations = (result, columnName) => {
68
- const columnType = result.builder.columns.find((col) => col.name === columnName)?.type;
69
- switch (columnType) {
70
- case PRIMITIVE_TYPE.STRING:
71
- return {
72
- filter: 'agTextColumnFilter',
73
- allowedAggFuncs: ['count'],
74
- };
75
- case PRIMITIVE_TYPE.DATE:
76
- case PRIMITIVE_TYPE.DATETIME:
77
- case PRIMITIVE_TYPE.STRICTDATE:
78
- return {
79
- filter: 'agDateColumnFilter',
80
- allowedAggFuncs: ['count'],
81
- };
82
- case PRIMITIVE_TYPE.DECIMAL:
83
- case PRIMITIVE_TYPE.INTEGER:
84
- case PRIMITIVE_TYPE.FLOAT:
85
- return {
86
- filter: 'agNumberColumnFilter',
87
- allowedAggFuncs: ['count', 'sum', 'max', 'min', 'avg'],
88
- };
89
- default:
90
- return {
91
- allowedAggFuncs: ['count'],
92
- };
93
- }
94
- };
95
67
  export const getRowDataFromExecutionResult = (executionResult) => {
96
68
  const rowData = executionResult.result.rows.map((_row, rowIdx) => {
97
69
  const row = {};
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTDSResultShared.js","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSResultShared.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,eAAe,EACf,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAGL,aAAa,EACb,sBAAsB,EACtB,0BAA0B,EAC1B,cAAc,EAEd,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAKL,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EACL,2CAA2C,EAC3C,iCAAiC,GAClC,MAAM,qFAAqF,CAAC;AAC7F,OAAO,EAGL,wBAAwB,EACxB,2CAA2C,EAC3C,sCAAsC,GACvC,MAAM,gFAAgF,CAAC;AACxF,OAAO,EACL,oCAAoC,EACpC,uCAAuC,GACxC,MAAM,mGAAmG,CAAC;AAC3G,OAAO,EACL,iCAAiC,EACjC,oCAAoC,GACrC,MAAM,gGAAgG,CAAC;AAGxG,OAAO,EACL,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAmC,MAAM,8BAA8B,CAAC;AAM/E,OAAO,EACL,sCAAsC,EACtC,yCAAyC,GAC1C,MAAM,qGAAqG,CAAC;AAC7G,OAAO,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAC;AAGjG,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BAAgB,GAAG,mBAAmB,EAAE,CAAC;IAE/C,MAAM,WAAW,GAAG,IAAI,EAAE,UAAU;QAClC,CAAC,CAAC,iBAAiB,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC9C,CAAC,CAAC,SAAS,CAAC;IAEd,OAAO,CACL,MAAC,WAAW,IAAC,GAAG,EAAE,GAAG,aACnB,KAAC,eAAe,IACd,QAAQ,EAAE,CAAC,WAAW,EACtB,OAAO,EAAE,GAAS,EAAE;oBAClB,mBAAmB,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAC9D,CAAC,0BAGe,EAClB,KAAC,eAAe,IACd,QAAQ,EAAE,CAAC,WAAW,EACtB,OAAO,EAAE,GAAS,EAAE;oBAClB,mBAAmB,CAAC,gBAAgB,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;gBAC/D,CAAC,2BAGe,EAClB,KAAC,kBAAkB,KAAG,EACtB,KAAC,eAAe,IAAC,OAAO,EAAE,iBAAiB,gCAEzB,EAClB,KAAC,eAAe,IAAC,OAAO,EAAE,oBAAoB,+BAE5B,IACN,CACf,CAAC;AACJ,CAAC,CAAC,CACH,CAAC"}
1
+ {"version":3,"file":"QueryBuilderTDSResultShared.js","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSResultShared.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,eAAe,EACf,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAGL,aAAa,EACb,sBAAsB,EACtB,0BAA0B,EAE1B,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAA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,CACL,MAAC,WAAW,IAAC,GAAG,EAAE,GAAG,aACnB,KAAC,eAAe,IACd,QAAQ,EAAE,CAAC,WAAW,EACtB,OAAO,EAAE,GAAS,EAAE;oBAClB,mBAAmB,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAC9D,CAAC,0BAGe,EAClB,KAAC,eAAe,IACd,QAAQ,EAAE,CAAC,WAAW,EACtB,OAAO,EAAE,GAAS,EAAE;oBAClB,mBAAmB,CAAC,gBAAgB,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;gBAC/D,CAAC,2BAGe,EAClB,KAAC,kBAAkB,KAAG,EACtB,KAAC,eAAe,IAAC,OAAO,EAAE,iBAAiB,gCAEzB,EAClB,KAAC,eAAe,IAAC,OAAO,EAAE,oBAAoB,+BAE5B,IACN,CACf,CAAC;AACJ,CAAC,CAAC,CACH,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-query-builder v4.11.9
1
+ /** @license @finos/legend-query-builder v4.11.10
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.11.9",
3
+ "version": "4.11.10",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -67,7 +67,7 @@ export declare abstract class QueryBuilderState implements CommandRegistrar {
67
67
  isCheckingEntitlments: boolean;
68
68
  isCalendarEnabled: boolean;
69
69
  isQueryChatOpened: boolean;
70
- isAdvancedModeEnabled: boolean;
70
+ isLocalModeEnabled: boolean;
71
71
  class?: Class | undefined;
72
72
  executionContextState: QueryBuilderExecutionContextState;
73
73
  internalizeState?: QueryBuilderInternalizeState | undefined;
@@ -92,7 +92,7 @@ export declare abstract class QueryBuilderState implements CommandRegistrar {
92
92
  */
93
93
  getStateInfo(): QueryStateInfo | undefined;
94
94
  setIsQueryChatOpened(val: boolean): void;
95
- setIsAdvancedModeEnabled(val: boolean): void;
95
+ setIsLocalModeEnabled(val: boolean): void;
96
96
  setInternalize(val: QueryBuilderInternalizeState | undefined): void;
97
97
  setShowFunctionsExplorerPanel(val: boolean): void;
98
98
  setShowParametersPanel(val: boolean): void;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAUH,OAAO,EACL,KAAK,WAAW,EAMhB,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EAEL,2BAA2B,EAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAKvE,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EACL,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,IAAI,EAKT,SAAS,EACT,kBAAkB,EAElB,eAAe,EAYhB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EACV,gBAAgB,EAChB,6BAA6B,EAC9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EACL,2BAA2B,EAE5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAEzF,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAu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EAAE,OAAO,CAAA;KAAE,GAAG,SAAS;IAoBnE,cAAc,IAAI,SAAS;IA0C3B,kBAAkB,IAAI,IAAI;IAW1B,mBAAmB,CACjB,KAAK,EAAE,SAAS,EAChB,sBAAsB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,GACvD,IAAI;IAQP;;OAEG;IACH,gBAAgB,CACd,KAAK,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE;QACR,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC9C,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACrC,sBAAsB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,SAAS,CAAC;KACtE,GACA,IAAI;IA8EN,YAAY,IAAI,WAAW,CAAC,IAAI,CAAC;IAwFlC,IAAI,mBAAmB,IAAI,MAAM,EAAE,CAElC;IAED;;;;OAIG;IACH,kCAAkC,IAAI,iBAAiB;IAevD,IAAI,QAAQ,IAAI,MAAM,CAWrB;CACF;AAED;;;;;;;;;GASG;AACH,qBAAa,gCAAiC,SAAQ,iBAAiB;CAAG"}
@@ -64,7 +64,7 @@ export class QueryBuilderState {
64
64
  isCheckingEntitlments = false;
65
65
  isCalendarEnabled = false;
66
66
  isQueryChatOpened = false;
67
- isAdvancedModeEnabled = false;
67
+ isLocalModeEnabled = false;
68
68
  class;
69
69
  executionContextState;
70
70
  internalizeState;
@@ -97,7 +97,7 @@ export class QueryBuilderState {
97
97
  executionContextState: observable,
98
98
  class: observable,
99
99
  isQueryChatOpened: observable,
100
- isAdvancedModeEnabled: observable,
100
+ isLocalModeEnabled: observable,
101
101
  sideBarClassName: computed,
102
102
  isQuerySupported: computed,
103
103
  allValidationIssues: computed,
@@ -108,7 +108,7 @@ export class QueryBuilderState {
108
108
  setIsCheckingEntitlments: action,
109
109
  setClass: action,
110
110
  setIsQueryChatOpened: action,
111
- setIsAdvancedModeEnabled: action,
111
+ setIsLocalModeEnabled: action,
112
112
  resetQueryResult: action,
113
113
  resetQueryContent: action,
114
114
  changeClass: action,
@@ -194,8 +194,8 @@ export class QueryBuilderState {
194
194
  setIsQueryChatOpened(val) {
195
195
  this.isQueryChatOpened = val;
196
196
  }
197
- setIsAdvancedModeEnabled(val) {
198
- this.isAdvancedModeEnabled = val;
197
+ setIsLocalModeEnabled(val) {
198
+ this.isLocalModeEnabled = val;
199
199
  }
200
200
  setInternalize(val) {
201
201
  this.internalizeState = val;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,IAAI,EACJ,UAAU,EACV,cAAc,EACd,QAAQ,EACR,UAAU,GACX,MAAM,MAAM,CAAC;AACd,OAAO,EAEL,QAAQ,EACR,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,SAAS,EACT,UAAU,GACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACL,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAOL,mBAAmB,EACnB,gBAAgB,EAChB,mCAAmC,EACnC,2BAA2B,EAC3B,SAAS,EACT,kBAAkB,EAClB,0BAA0B,EAC1B,eAAe,EACf,mBAAmB,EACnB,8BAA8B,EAC9B,gC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B,CAAC,YAAY,CAAC;QAC1C,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,mBAAmB;YACtD,IAAI,CAAC,qBAAqB;YAC1B,IAAI,CAAC,gBAAgB;YACrB,IAAI,CAAC,eAAe;YACpB,IAAI,CAAC,WAAW;YAChB,IAAI,CAAC,cAAc;YACnB,IAAI,CAAC,sBAAsB;YAC3B,IAAI,CAAC,mBAAmB,CAAC,cAAc;SACxC,CAAC,CAAC;IACL,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,MAAM,OAAO,gCAAiC,SAAQ,iBAAiB;CAAG"}
1
+ {"version":3,"file":"QueryBuilderState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,IAAI,EACJ,UAAU,EACV,cAAc,EACd,QAAQ,EACR,UAAU,GACX,MAAM,MAAM,CAAC;AACd,OAAO,EAEL,QAAQ,EACR,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,SAAS,EACT,UAAU,GACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACL,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAOL,mBAAmB,EACnB,gBAAgB,EAChB,mCAAmC,EACn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IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC;QACrC,UAAU,CAAC,qBAAqB,CAAC,YAAY;YAC3C,IAAI,CAAC,qBAAqB,CAAC,YAAY,CAAC;QAC1C,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,mBAAmB;YACtD,IAAI,CAAC,qBAAqB;YAC1B,IAAI,CAAC,gBAAgB;YACrB,IAAI,CAAC,eAAe;YACpB,IAAI,CAAC,WAAW;YAChB,IAAI,CAAC,cAAc;YACnB,IAAI,CAAC,sBAAsB;YAC3B,IAAI,CAAC,mBAAmB,CAAC,cAAc;SACxC,CAAC,CAAC;IACL,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,MAAM,OAAO,gCAAiC,SAAQ,iBAAiB;CAAG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.11.9",
3
+ "version": "4.11.10",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -18,5 +18,5 @@ export enum QUERY_BUILDER_DOCUMENTATION_KEY {
18
18
  // questions
19
19
  QUESTION_HOW_TO_ADD_PARAMETERS_TO_QUERY = 'question.how-to-add-parameters-to-query',
20
20
  QUESTION_HOW_TO_ADD_CONSTANTS_TO_QUERY = 'question.how-to-add-constants-to-query',
21
- QUESTION_HOW_TO_USE_ADVANCED_GRID_MODE = 'question.how-to-use-advanced-grid-mode',
21
+ QUESTION_HOW_TO_USE_LOCAL_GRID_MODE = 'question.how-to-use-local-grid-mode',
22
22
  }
@@ -181,7 +181,7 @@ export const QueryBuilderResultPanel = observer(
181
181
  const isQueryValid =
182
182
  !queryBuilderState.isQuerySupported || isSupportedQueryValid;
183
183
 
184
- const isQueryValidForAdvancedMode =
184
+ const isQueryValidForLocalMode =
185
185
  isQueryValid &&
186
186
  queryBuilderState.fetchStructureState.implementation instanceof
187
187
  QueryBuilderTDSState;
@@ -217,7 +217,7 @@ export const QueryBuilderResultPanel = observer(
217
217
 
218
218
  const allowSettingPreviewLimit = queryBuilderState.isQuerySupported;
219
219
 
220
- const allowSettingAdvancedMode =
220
+ const allowSettingLocalMode =
221
221
  queryBuilderState.isQuerySupported &&
222
222
  queryBuilderState.config?.TEMPORARY__enableGridEnterpriseMode;
223
223
 
@@ -292,10 +292,10 @@ export const QueryBuilderResultPanel = observer(
292
292
  }
293
293
  };
294
294
 
295
- const toggleIsAdvancedModeEnabled = (): void => {
295
+ const toggleIsLocalModeEnabled = (): void => {
296
296
  resultState.setExecutionResult(undefined);
297
- queryBuilderState.setIsAdvancedModeEnabled(
298
- !queryBuilderState.isAdvancedModeEnabled,
297
+ queryBuilderState.setIsLocalModeEnabled(
298
+ !queryBuilderState.isLocalModeEnabled,
299
299
  );
300
300
  };
301
301
 
@@ -375,14 +375,14 @@ export const QueryBuilderResultPanel = observer(
375
375
  )}
376
376
  </div>
377
377
  <div className="panel__header__actions query-builder__result__header__actions">
378
- {allowSettingAdvancedMode && (
378
+ {allowSettingLocalMode && (
379
379
  <div className="query-builder__result__advanced__mode">
380
380
  <div className="query-builder__result__advanced__mode__label">
381
- Advanced Mode
381
+ Local Mode
382
382
  <DocumentationLink
383
- title="The grid in advanced mode performs all operations like grouping, sorting, filtering, etc after initial query execution locally withought reaching out to server. This limits the number of rows to smaller number so they can fit in memory"
383
+ title="The grid in local mode performs all operations like grouping, sorting, filtering, etc after initial query execution locally withought reaching out to server. This limits the number of rows to smaller number so they can fit in memory"
384
384
  documentationKey={
385
- QUERY_BUILDER_DOCUMENTATION_KEY.QUESTION_HOW_TO_USE_ADVANCED_GRID_MODE
385
+ QUERY_BUILDER_DOCUMENTATION_KEY.QUESTION_HOW_TO_USE_LOCAL_GRID_MODE
386
386
  }
387
387
  />
388
388
  </div>
@@ -391,14 +391,14 @@ export const QueryBuilderResultPanel = observer(
391
391
  'query-builder__result__advanced__mode__toggler__btn',
392
392
  {
393
393
  'query-builder__result__advanced__mode__toggler__btn--toggled':
394
- queryBuilderState.isAdvancedModeEnabled,
394
+ queryBuilderState.isLocalModeEnabled,
395
395
  },
396
396
  )}
397
- disabled={!isQueryValidForAdvancedMode}
398
- onClick={toggleIsAdvancedModeEnabled}
397
+ disabled={!isQueryValidForLocalMode}
398
+ onClick={toggleIsLocalModeEnabled}
399
399
  tabIndex={-1}
400
400
  >
401
- {queryBuilderState.isAdvancedModeEnabled ? (
401
+ {queryBuilderState.isLocalModeEnabled ? (
402
402
  <CheckSquareIcon />
403
403
  ) : (
404
404
  <SquareIcon />
@@ -17,7 +17,7 @@
17
17
  import { clsx } from '@finos/legend-art';
18
18
  import { observer } from 'mobx-react-lite';
19
19
  import type { QueryBuilderState } from '../../../stores/QueryBuilderState.js';
20
- import type { TDSExecutionResult } from '@finos/legend-graph';
20
+ import { PRIMITIVE_TYPE, type TDSExecutionResult } from '@finos/legend-graph';
21
21
  import { useState, useCallback } from 'react';
22
22
  import {
23
23
  DataGrid,
@@ -30,7 +30,6 @@ import {
30
30
  type DataGridMenuItemDef,
31
31
  } from '@finos/legend-lego/data-grid';
32
32
  import {
33
- getAggregationTDSColumnCustomizations,
34
33
  getRowDataFromExecutionResult,
35
34
  type IQueryRendererParamsWithGridType,
36
35
  filterByOrOutValues,
@@ -46,7 +45,41 @@ import { DEFAULT_LOCALE } from '../../../graph-manager/QueryBuilderConst.js';
46
45
  import { isNumber, isString, isValidURL } from '@finos/legend-shared';
47
46
  import { useApplicationStore } from '@finos/legend-application';
48
47
 
49
- const getAdvancedColDefs = (
48
+ const getAggregationTDSColumnCustomizations = (
49
+ result: TDSExecutionResult,
50
+ columnName: string,
51
+ ): object => {
52
+ const columnType = result.builder.columns.find(
53
+ (col) => col.name === columnName,
54
+ )?.type;
55
+ switch (columnType) {
56
+ case PRIMITIVE_TYPE.STRING:
57
+ return {
58
+ filter: 'agTextColumnFilter',
59
+ allowedAggFuncs: ['count'],
60
+ };
61
+ case PRIMITIVE_TYPE.DATE:
62
+ case PRIMITIVE_TYPE.DATETIME:
63
+ case PRIMITIVE_TYPE.STRICTDATE:
64
+ return {
65
+ filter: 'agDateColumnFilter',
66
+ allowedAggFuncs: ['count'],
67
+ };
68
+ case PRIMITIVE_TYPE.DECIMAL:
69
+ case PRIMITIVE_TYPE.INTEGER:
70
+ case PRIMITIVE_TYPE.FLOAT:
71
+ return {
72
+ filter: 'agNumberColumnFilter',
73
+ allowedAggFuncs: ['count', 'sum', 'max', 'min', 'avg'],
74
+ };
75
+ default:
76
+ return {
77
+ allowedAggFuncs: ['count'],
78
+ };
79
+ }
80
+ };
81
+
82
+ const getLocalColDefs = (
50
83
  executionResult: TDSExecutionResult,
51
84
  resultState: QueryBuilderResultState,
52
85
  ): DataGridColumnDefinition<
@@ -128,6 +161,35 @@ const QueryResultCellRenderer = observer(
128
161
  },
129
162
  );
130
163
 
164
+ const getFilterTDSColumnCustomizations = (
165
+ result: TDSExecutionResult,
166
+ columnName: string,
167
+ ): object => {
168
+ const columnType = result.builder.columns.find(
169
+ (col) => col.name === columnName,
170
+ )?.type;
171
+ switch (columnType) {
172
+ case PRIMITIVE_TYPE.DATE:
173
+ case PRIMITIVE_TYPE.DATETIME:
174
+ case PRIMITIVE_TYPE.STRICTDATE:
175
+ return {
176
+ filter: 'agDateColumnFilter',
177
+ };
178
+ case PRIMITIVE_TYPE.DECIMAL:
179
+ case PRIMITIVE_TYPE.INTEGER:
180
+ case PRIMITIVE_TYPE.FLOAT:
181
+ case PRIMITIVE_TYPE.NUMBER:
182
+ return {
183
+ filter: 'agNumberColumnFilter',
184
+ };
185
+ default:
186
+ // we default all other columns to use filter true which defaults to set filters
187
+ return {
188
+ filter: true,
189
+ };
190
+ }
191
+ };
192
+
131
193
  const getColDefs = (
132
194
  executionResult: TDSExecutionResult,
133
195
  resultState: QueryBuilderResultState,
@@ -148,6 +210,7 @@ const getColDefs = (
148
210
  resultState: resultState,
149
211
  tdsExecutionResult: executionResult,
150
212
  },
213
+ ...getFilterTDSColumnCustomizations(executionResult, colName),
151
214
  }) as DataGridColumnDefinition,
152
215
  );
153
216
 
@@ -162,9 +225,9 @@ export const QueryBuilderTDSGridResult = observer(
162
225
  undefined,
163
226
  );
164
227
  const resultState = queryBuilderState.resultState;
165
- const isAdvancedModeEnabled = queryBuilderState.isAdvancedModeEnabled;
166
- const colDefs = isAdvancedModeEnabled
167
- ? getAdvancedColDefs(executionResult, resultState)
228
+ const isLocalModeEnabled = queryBuilderState.isLocalModeEnabled;
229
+ const colDefs = isLocalModeEnabled
230
+ ? getLocalColDefs(executionResult, resultState)
168
231
  : getColDefs(executionResult, resultState);
169
232
 
170
233
  const onSaveGridColumnState = (): void => {
@@ -228,7 +291,7 @@ export const QueryBuilderTDSGridResult = observer(
228
291
  if (fetchStructureImplementation instanceof QueryBuilderTDSState) {
229
292
  result = [
230
293
  {
231
- name: 'Filter by',
294
+ name: 'Filter By',
232
295
  action: () => {
233
296
  filterByOrOutValues(
234
297
  applicationStore,
@@ -239,7 +302,7 @@ export const QueryBuilderTDSGridResult = observer(
239
302
  },
240
303
  },
241
304
  {
242
- name: 'Filter out',
305
+ name: 'Filter Out',
243
306
  action: () => {
244
307
  filterByOrOutValues(
245
308
  applicationStore,
@@ -252,7 +315,7 @@ export const QueryBuilderTDSGridResult = observer(
252
315
  'copy',
253
316
  'copyWithHeaders',
254
317
  {
255
- name: 'Copy row value',
318
+ name: 'Copy Row Value',
256
319
  action: () => {
257
320
  params.api.copySelectedRowsToClipboard();
258
321
  },
@@ -275,7 +338,7 @@ export const QueryBuilderTDSGridResult = observer(
275
338
  'ag-theme-balham-dark query-builder__result__tds-grid',
276
339
  )}
277
340
  >
278
- {isAdvancedModeEnabled ? (
341
+ {isLocalModeEnabled ? (
279
342
  <DataGrid
280
343
  rowData={getRowDataFromExecutionResult(executionResult)}
281
344
  onGridReady={(params): void => {
@@ -27,7 +27,6 @@ import {
27
27
  InstanceValue,
28
28
  EnumValueInstanceValue,
29
29
  EnumValueExplicitReference,
30
- PRIMITIVE_TYPE,
31
30
  type ExecutionResult,
32
31
  RelationalExecutionActivities,
33
32
  } from '@finos/legend-graph';
@@ -119,40 +118,6 @@ export const getExecutedSqlFromExecutionResult = (
119
118
  return undefined;
120
119
  };
121
120
 
122
- export const getAggregationTDSColumnCustomizations = (
123
- result: TDSExecutionResult,
124
- columnName: string,
125
- ): object | undefined => {
126
- const columnType = result.builder.columns.find(
127
- (col) => col.name === columnName,
128
- )?.type;
129
- switch (columnType) {
130
- case PRIMITIVE_TYPE.STRING:
131
- return {
132
- filter: 'agTextColumnFilter',
133
- allowedAggFuncs: ['count'],
134
- };
135
- case PRIMITIVE_TYPE.DATE:
136
- case PRIMITIVE_TYPE.DATETIME:
137
- case PRIMITIVE_TYPE.STRICTDATE:
138
- return {
139
- filter: 'agDateColumnFilter',
140
- allowedAggFuncs: ['count'],
141
- };
142
- case PRIMITIVE_TYPE.DECIMAL:
143
- case PRIMITIVE_TYPE.INTEGER:
144
- case PRIMITIVE_TYPE.FLOAT:
145
- return {
146
- filter: 'agNumberColumnFilter',
147
- allowedAggFuncs: ['count', 'sum', 'max', 'min', 'avg'],
148
- };
149
- default:
150
- return {
151
- allowedAggFuncs: ['count'],
152
- };
153
- }
154
- };
155
-
156
121
  export const getRowDataFromExecutionResult = (
157
122
  executionResult: TDSExecutionResult,
158
123
  ): QueryBuilderTDSRowDataType[] => {
@@ -139,7 +139,7 @@ export abstract class QueryBuilderState implements CommandRegistrar {
139
139
  isCheckingEntitlments = false;
140
140
  isCalendarEnabled = false;
141
141
  isQueryChatOpened = false;
142
- isAdvancedModeEnabled = false;
142
+ isLocalModeEnabled = false;
143
143
 
144
144
  class?: Class | undefined;
145
145
  executionContextState: QueryBuilderExecutionContextState;
@@ -181,7 +181,7 @@ export abstract class QueryBuilderState implements CommandRegistrar {
181
181
  executionContextState: observable,
182
182
  class: observable,
183
183
  isQueryChatOpened: observable,
184
- isAdvancedModeEnabled: observable,
184
+ isLocalModeEnabled: observable,
185
185
 
186
186
  sideBarClassName: computed,
187
187
  isQuerySupported: computed,
@@ -194,7 +194,7 @@ export abstract class QueryBuilderState implements CommandRegistrar {
194
194
  setIsCheckingEntitlments: action,
195
195
  setClass: action,
196
196
  setIsQueryChatOpened: action,
197
- setIsAdvancedModeEnabled: action,
197
+ setIsLocalModeEnabled: action,
198
198
 
199
199
  resetQueryResult: action,
200
200
  resetQueryContent: action,
@@ -303,8 +303,8 @@ export abstract class QueryBuilderState implements CommandRegistrar {
303
303
  this.isQueryChatOpened = val;
304
304
  }
305
305
 
306
- setIsAdvancedModeEnabled(val: boolean): void {
307
- this.isAdvancedModeEnabled = val;
306
+ setIsLocalModeEnabled(val: boolean): void {
307
+ this.isLocalModeEnabled = val;
308
308
  }
309
309
 
310
310
  setInternalize(val: QueryBuilderInternalizeState | undefined): void {