mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
chore: CB-806 update deps
This commit is contained in:
@@ -18,7 +18,7 @@ import { buttonStyles } from './splitButtonStyles';
|
||||
|
||||
export const SplitControls: React.FC = function SplitControls() {
|
||||
const {
|
||||
split, mode, isResizing, setMode, setSize, isMainSecond, getMainSize,
|
||||
split, mode, isResizing, setMode, setSize, isMainSecond, getMainSize, ...splitContext
|
||||
} = useContext(SplitContext);
|
||||
const [state, setState] = useState(-1);
|
||||
const styles = useStyles(buttonStyles);
|
||||
@@ -38,7 +38,6 @@ export const SplitControls: React.FC = function SplitControls() {
|
||||
}, [isResizing]);
|
||||
|
||||
const handleCollapse = useCallback((event: React.SyntheticEvent<HTMLButtonElement>) => {
|
||||
event.stopPropagation();
|
||||
if (mode === 'maximize') {
|
||||
setMode('resize');
|
||||
setSize(state);
|
||||
@@ -49,7 +48,6 @@ export const SplitControls: React.FC = function SplitControls() {
|
||||
}, [mode, state, setMode]);
|
||||
|
||||
const handleExpand = useCallback((event: React.SyntheticEvent<HTMLButtonElement>) => {
|
||||
event.stopPropagation();
|
||||
if (mode === 'minimize') {
|
||||
setMode('resize');
|
||||
setSize(state);
|
||||
@@ -60,23 +58,30 @@ export const SplitControls: React.FC = function SplitControls() {
|
||||
}, [mode, state, setMode]);
|
||||
|
||||
return styled(styles)(
|
||||
<container as="div" {...use({ split, inverse, mode: inverseMode })}>
|
||||
<container
|
||||
onMouseDown={splitContext.onMouseDown}
|
||||
onTouchStart={splitContext.onTouchStart}
|
||||
onTouchEnd={splitContext.onTouchEnd}
|
||||
onClick={splitContext.onClick}
|
||||
onDoubleClick={splitContext.onDoubleClick}
|
||||
{...use({ split, inverse, mode: inverseMode })}
|
||||
>
|
||||
{mode !== 'minimize' && (
|
||||
<button
|
||||
type="button"
|
||||
{...use({ isPrimary: !inverse })}
|
||||
onMouseDown={handleCollapse}
|
||||
onClick={handleCollapse}
|
||||
>
|
||||
<ripple as="div" />
|
||||
<ripple />
|
||||
</button>
|
||||
)}
|
||||
{mode !== 'maximize' && (
|
||||
<button
|
||||
type="button"
|
||||
{...use({ isPrimary: inverse })}
|
||||
onMouseDown={handleExpand}
|
||||
onClick={handleExpand}
|
||||
>
|
||||
<ripple as="div" />
|
||||
<ripple />
|
||||
</button>
|
||||
)}
|
||||
</container>
|
||||
|
||||
@@ -59,7 +59,7 @@ export function useMapResource<
|
||||
const resource = ctor instanceof CachedMapResource ? ctor : useService(ctor);
|
||||
const notifications = useService(NotificationService);
|
||||
const [exception, setException] = useState<Error | null>(null);
|
||||
let key: TKeyArg = keyObj as TKeyArg;
|
||||
let key: TKeyArg | null = keyObj as TKeyArg;
|
||||
let includes: TIncludes = [] as TIncludes;
|
||||
|
||||
if (isKeyWithIncludes<TKeyArg, TIncludes>(keyObj)) {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
"lint-fix": "eslint ./src/ --ext .ts,.tsx --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
"react-data-grid": "^7.0.0-canary.30",
|
||||
"react-data-grid": "7.0.0-canary.34",
|
||||
"react-popper": "^2.2.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
+2512
-2425
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user