@finos/legend-query-builder 4.13.6 → 4.13.8
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;
|
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
|
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
|
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:
|
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,
|
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,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,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;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
package/lib/package.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "4.13.
|
3
|
+
"version": "4.13.8",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -44,8 +44,8 @@
|
|
44
44
|
"dependencies": {
|
45
45
|
"@finos/legend-application": "15.0.61",
|
46
46
|
"@finos/legend-art": "7.1.14",
|
47
|
-
"@finos/legend-graph": "31.6.
|
48
|
-
"@finos/legend-lego": "1.1.
|
47
|
+
"@finos/legend-graph": "31.6.3",
|
48
|
+
"@finos/legend-lego": "1.1.66",
|
49
49
|
"@finos/legend-server-depot": "6.0.33",
|
50
50
|
"@finos/legend-shared": "10.0.29",
|
51
51
|
"@finos/legend-storage": "3.0.79",
|
@@ -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
|
-
|
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
|
},
|