mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-16 06:40:05 +08:00
refactor(plugin-ag-grid): rename package to plugin-data-spreadsheet
CB-164
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@cloudbeaver/plugin-ag-grid",
|
||||
"name": "@cloudbeaver/plugin-data-spreadsheet",
|
||||
"sideEffects": false,
|
||||
"version": "0.1.0",
|
||||
"description": "",
|
||||
+1
-1
@@ -32,7 +32,7 @@ async function loader() {
|
||||
const styles = await import('../styles/base.scss');
|
||||
const { AgGridReact } = await import('@ag-grid-community/react');
|
||||
const { InfiniteRowModelModule } = await import('@ag-grid-community/infinite-row-model');
|
||||
const { RangeSelectionModule } = await import('../modules/RangeSelection/rangeSelectionModule');
|
||||
const { RangeSelectionModule } = await import('./modules/RangeSelection/rangeSelectionModule');
|
||||
|
||||
return { AgGridReact, AllCommunityModules: [InfiniteRowModelModule, RangeSelectionModule] };
|
||||
}
|
||||
-1
@@ -29,7 +29,6 @@ import {
|
||||
} from '@cloudbeaver/plugin-data-viewer';
|
||||
|
||||
import { AgGridContext } from './AgGridContext';
|
||||
import { RowSelection } from './TableSelection/RowSelection';
|
||||
import { TableSelection } from './TableSelection/TableSelection';
|
||||
|
||||
@injectable()
|
||||
+3
-3
@@ -34,11 +34,11 @@ import {
|
||||
ValueService,
|
||||
} from '@ag-grid-community/core';
|
||||
|
||||
import { INDEX_COLUMN_DEF } from '../../AgGridTable/AgGridTableController';
|
||||
import { INDEX_COLUMN_DEF } from '../../AgGridTableController';
|
||||
import {
|
||||
IAgColumnClickEvent, COLUMN_CLICK_EVENT_TYPE,
|
||||
} from '../../AgGridTable/TableColumnHeader/TableColumnHeader';
|
||||
import { TableSelection } from '../../AgGridTable/TableSelection/TableSelection';
|
||||
} from '../../TableColumnHeader/TableColumnHeader';
|
||||
import { TableSelection } from '../../TableSelection/TableSelection';
|
||||
|
||||
interface CellKeyDownEvent extends AgGridEvent{
|
||||
event: KeyboardEvent;
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* cloudbeaver - Cloud Database Manager
|
||||
* Copyright (C) 2020 DBeaver Corp and others
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0.
|
||||
* you may not use this file except in compliance with the License.
|
||||
*/
|
||||
|
||||
import { TableViewerModel } from '@cloudbeaver/plugin-data-viewer';
|
||||
|
||||
import { AgGridTable } from './AgGridTable/AgGridTable';
|
||||
|
||||
type Props = {
|
||||
tableModel: TableViewerModel;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function Spreadsheet({
|
||||
tableModel,
|
||||
className,
|
||||
}: Props) {
|
||||
|
||||
return <AgGridTable tableModel={tableModel} className={className} />;
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { manifest } from './manifest';
|
||||
|
||||
export * from './AgGridTable/AgGridTable';
|
||||
export * from './SpreadSheet';
|
||||
|
||||
// All Services and Components that is provided by this plugin should be exported here
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"lint-fix": "eslint ./src/ --ext .ts,.tsx --fix"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@cloudbeaver/plugin-data-spreadsheet": "^0.1.0",
|
||||
"@cloudbeaver/plugin-object-viewer": "^0.1.0",
|
||||
"@cloudbeaver/core-app": "^0.1.0",
|
||||
"@cloudbeaver/core-blocks": "^0.1.0",
|
||||
|
||||
@@ -11,7 +11,7 @@ import { PropsWithChildren } from 'react';
|
||||
import styled, { css } from 'reshadow';
|
||||
|
||||
import { Button } from '@cloudbeaver/core-blocks';
|
||||
import { AgGridTable } from '@cloudbeaver/plugin-ag-grid';
|
||||
import { Spreadsheet } from '@cloudbeaver/plugin-data-spreadsheet';
|
||||
|
||||
import { TableViewerModel } from './TableViewerModel';
|
||||
|
||||
@@ -20,7 +20,7 @@ type TableGridProps = PropsWithChildren<{
|
||||
}>
|
||||
|
||||
const styles = css`
|
||||
AgGridTable, no-data, error {
|
||||
Spreadsheet, no-data, error {
|
||||
flex: 1;
|
||||
}
|
||||
no-data, error {
|
||||
@@ -51,5 +51,5 @@ export const TableGrid = observer(function TableGrid({
|
||||
return styled(styles)(<no-data as="div">No data to show</no-data>);
|
||||
}
|
||||
|
||||
return styled(styles)(<AgGridTable tableModel={model} />);
|
||||
return styled(styles)(<Spreadsheet tableModel={model} />);
|
||||
});
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
"@cloudbeaver/core-di": "0.1.0",
|
||||
"@cloudbeaver/core-product": "0.1.0",
|
||||
"@cloudbeaver/plugin-administration": "0.1.0",
|
||||
"@cloudbeaver/plugin-ag-grid": "0.1.0",
|
||||
"@cloudbeaver/plugin-authentication": "0.1.0",
|
||||
"@cloudbeaver/plugin-connection-custom": "0.1.0",
|
||||
"@cloudbeaver/plugin-connection-preconfigured": "0.1.0",
|
||||
"@cloudbeaver/plugin-data-export": "0.1.0",
|
||||
"@cloudbeaver/plugin-data-spreadsheet": "0.1.0",
|
||||
"@cloudbeaver/plugin-data-viewer": "0.1.0",
|
||||
"@cloudbeaver/plugin-ddl-viewer": "0.1.0",
|
||||
"@cloudbeaver/plugin-object-viewer": "0.1.0",
|
||||
|
||||
@@ -4,7 +4,7 @@ import 'reflect-metadata';
|
||||
|
||||
import core, { bootstrap } from '@cloudbeaver/core-bootstrap';
|
||||
import administration from '@cloudbeaver/plugin-administration';
|
||||
import agGrid from '@cloudbeaver/plugin-ag-grid';
|
||||
import spreadsheet from '@cloudbeaver/plugin-data-spreadsheet';
|
||||
import authentication from '@cloudbeaver/plugin-authentication';
|
||||
import dataExport from '@cloudbeaver/plugin-data-export';
|
||||
import dataViewer from '@cloudbeaver/plugin-data-viewer';
|
||||
@@ -18,7 +18,7 @@ import { defaultProductManifest } from './manifest';
|
||||
const PLUGINS = [
|
||||
core,
|
||||
administration,
|
||||
agGrid,
|
||||
spreadsheet,
|
||||
authentication,
|
||||
connectionCustom,
|
||||
connectionPreconfigured,
|
||||
|
||||
Reference in New Issue
Block a user