Skip to content

Commit

Permalink
Move to ag-grid modules
Browse files Browse the repository at this point in the history
  • Loading branch information
DTCurrie committed Sep 10, 2024
1 parent 025e53f commit 068db6c
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 13 deletions.
4 changes: 3 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@
"test:watch": "vitest"
},
"dependencies": {
"@ag-grid-community/client-side-row-model": "^32.1.0",
"@ag-grid-community/core": "^32.1.0",
"@ag-grid-community/styles": "^32.1.0",
"@floating-ui/dom": "^1.5.3",
"@mdi/js": "^7.3.67",
"ag-grid-community": "^32.1.0",
"classnames": "^2.3.2",
"lodash-es": "^4.17.21",
"nanoid": "^5.0.4",
Expand Down
16 changes: 13 additions & 3 deletions packages/core/src/lib/table/ag-grid-table.svelte
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<script
lang="ts"
context="module"
>
import { ModuleRegistry } from '@ag-grid-community/core';
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
ModuleRegistry.registerModules([ClientSideRowModelModule]);
</script>

<script
lang="ts"
generics="DataType extends unknown"
Expand All @@ -9,10 +19,10 @@ import {
type GridApi,
type GridOptions,
type GridParams,
} from 'ag-grid-community';
} from '@ag-grid-community/core';
import { onMount } from 'svelte';
import 'ag-grid-community/styles/ag-grid.css';
import 'ag-grid-community/styles/ag-theme-quartz.css';
import '@ag-grid-community/styles/ag-grid.css';
import '@ag-grid-community/styles/ag-theme-quartz.css';
import cx from 'classnames';
/** Defines the columns to render. */
Expand Down
36 changes: 27 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 068db6c

Please sign in to comment.