@finos/legend-query-builder 4.13.6 → 4.13.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"QueryChat.d.ts","sourceRoot":"","sources":["../../src/components/QueryChat.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAcH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAExE,eAAO,MAAM,SAAS,WACZ;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA0CjD,CAAC"}
1
+ {"version":3,"file":"QueryChat.d.ts","sourceRoot":"","sources":["../../src/components/QueryChat.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAExE,eAAO,MAAM,SAAS,WACZ;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsBjD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  /**
3
3
  * Copyright (c) 2020-present, Goldman Sachs
4
4
  *
@@ -15,7 +15,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
15
15
  * limitations under the License.
16
16
  */
17
17
  import { observer } from 'mobx-react-lite';
18
- import { Dialog, Modal, ModalHeader, ModalBody, ModalFooter, ModalFooterButton, BlankPanelContent, } from '@finos/legend-art';
18
+ import { Dialog } from '@finos/legend-art';
19
19
  import { useApplicationStore } from '@finos/legend-application';
20
20
  export const QueryChat = observer((props) => {
21
21
  const { queryBuilderState } = props;
@@ -23,6 +23,6 @@ export const QueryChat = observer((props) => {
23
23
  const extraQueryChatConfigurations = applicationStore.pluginManager
24
24
  .getApplicationPlugins()
25
25
  .flatMap((plugin) => plugin.getExtraQueryChatRenderers?.() ?? []);
26
- return (_jsx(Dialog, { open: queryBuilderState.isQueryChatOpened, onClose: () => queryBuilderState.setIsQueryChatOpened(false), children: _jsxs(Modal, { className: "query-builder__chat-mode__modal", darkMode: true, children: [_jsx(ModalHeader, { title: "Chat Mode" }), _jsx(ModalBody, { className: "query-builder__chat-mode__body", children: _jsx(_Fragment, { children: extraQueryChatConfigurations.length === 0 ? (_jsx(BlankPanelContent, { children: "Chat Mode is not available" })) : (extraQueryChatConfigurations[0]?.(queryBuilderState)) }) }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { className: "btn--caution", onClick: () => queryBuilderState.setIsQueryChatOpened(false), text: "Discard and Close" }) })] }) }));
26
+ return (_jsx(Dialog, { open: queryBuilderState.isQueryChatOpened, onClose: () => queryBuilderState.setIsQueryChatOpened(false), children: extraQueryChatConfigurations[0]?.(queryBuilderState) }));
27
27
  });
28
28
  //# sourceMappingURL=QueryChat.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryChat.js","sourceRoot":"","sources":["../../src/components/QueryChat.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,MAAM,EACN,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAIhE,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAC/B,CAAC,KAA+C,EAAE,EAAE;IAClD,MAAM,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAE/C,MAAM,4BAA4B,GAAG,gBAAgB,CAAC,aAAa;SAChE,qBAAqB,EAAE;SACvB,OAAO,CACN,CAAC,MAAM,EAAE,EAAE,CAEP,MACD,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,CACzC,CAAC;IAE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AO,CACN,CAAC,MAAM,EAAE,EAAE,CAEP,MACD,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,CACzC,CAAC;IAEJ,OAAO,CACL,KAAC,MAAM,IACL,IAAI,EAAE,iBAAiB,CAAC,iBAAiB,EACzC,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,KAAK,CAAC,YAE3D,4BAA4B,CAAC,CAAC,CAAC,EAAE,CAAC,iBAAiB,CAAC,GAC9C,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-query-builder v4.13.6
1
+ /** @license @finos/legend-query-builder v4.13.7
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.13.6",
3
+ "version": "4.13.7",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.13.6",
3
+ "version": "4.13.7",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -15,15 +15,7 @@
15
15
  */
16
16
 
17
17
  import { observer } from 'mobx-react-lite';
18
- import {
19
- Dialog,
20
- Modal,
21
- ModalHeader,
22
- ModalBody,
23
- ModalFooter,
24
- ModalFooterButton,
25
- BlankPanelContent,
26
- } from '@finos/legend-art';
18
+ import { Dialog } from '@finos/legend-art';
27
19
  import { useApplicationStore } from '@finos/legend-application';
28
20
  import type { QueryBuilder_LegendApplicationPlugin_Extension } from '../stores/QueryBuilder_LegendApplicationPlugin_Extension.js';
29
21
  import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
@@ -47,27 +39,7 @@ export const QueryChat = observer(
47
39
  open={queryBuilderState.isQueryChatOpened}
48
40
  onClose={() => queryBuilderState.setIsQueryChatOpened(false)}
49
41
  >
50
- <Modal className="query-builder__chat-mode__modal" darkMode={true}>
51
- <ModalHeader title="Chat Mode" />
52
- <ModalBody className="query-builder__chat-mode__body">
53
- <>
54
- {extraQueryChatConfigurations.length === 0 ? (
55
- <BlankPanelContent>
56
- Chat Mode is not available
57
- </BlankPanelContent>
58
- ) : (
59
- extraQueryChatConfigurations[0]?.(queryBuilderState)
60
- )}
61
- </>
62
- </ModalBody>
63
- <ModalFooter>
64
- <ModalFooterButton
65
- className="btn--caution"
66
- onClick={() => queryBuilderState.setIsQueryChatOpened(false)}
67
- text="Discard and Close"
68
- />
69
- </ModalFooter>
70
- </Modal>
42
+ {extraQueryChatConfigurations[0]?.(queryBuilderState)}
71
43
  </Dialog>
72
44
  );
73
45
  },