@finos/legend-query-builder 4.13.6 → 4.13.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
@@ -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
|
},
|