feat: CB-751 value panel

This commit is contained in:
Wroud
2021-03-15 20:02:13 +03:00
parent 99e478010c
commit 2a90b62338
39 changed files with 542 additions and 154 deletions
@@ -29,6 +29,7 @@ interface SqlResultPanelProps {
export const SqlResultPanel = observer(function SqlResultPanel({ tab, panelInit }: SqlResultPanelProps) {
const [presentationId, setPresentation] = useState('');
const [valuePresentationId, setValuePresentation] = useState<string | null>(null);
const group = tab.handlerState.queryTabGroups.find(group => group.groupId === panelInit.groupId)!;
return styled(style)(
@@ -37,7 +38,9 @@ export const SqlResultPanel = observer(function SqlResultPanel({ tab, panelInit
tableId={group.modelId}
resultIndex={panelInit.indexInResultSet}
presentationId={presentationId}
valuePresentationId={valuePresentationId}
onPresentationChange={setPresentation}
onValuePresentationChange={setValuePresentation}
/>
</result-panel>
);