From 669588d4fff023683a90363d12b25340ab50131b Mon Sep 17 00:00:00 2001 From: Max Hille Date: Wed, 21 Feb 2024 15:49:38 +0100 Subject: [PATCH] Update Ag Grid to 31.1.0 --- NPM_CHANGELOG.md | 5 + README.md | 10 +- ag-grid-webcomponent/index.js | 37 ++--- examples/index.js | 35 ++++- package-lock.json | 248 ++++++++++++++++++++++++++++++---- package.json | 16 ++- 6 files changed, 281 insertions(+), 70 deletions(-) diff --git a/NPM_CHANGELOG.md b/NPM_CHANGELOG.md index d8ee870..f031249 100644 --- a/NPM_CHANGELOG.md +++ b/NPM_CHANGELOG.md @@ -1,5 +1,10 @@ # NPM Changelog +## [4.0.0] + +- Updates AG Grid to 31.1.x +- AG Grid dependencies now via modules (https://www.ag-grid.com/javascript-data-grid/modules/). If you are upgrading from an older version, you need to change your NPM dependencies to use the module-based imports. Also check your Browser console for warnings from AG Grid. + ## [3.7.1] - Explicitly check in column events for `finished === false` diff --git a/README.md b/README.md index 8c84b78..1cced04 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ new ElmAgGrid(); Elm.Main.init({ node: document.getElementById("app") }); ``` -**Note:** The package requires at least `ag-grid-community` to be available in the project. +**Note:** The package requires at least `@ag-grid-community/core` to be available in the project. ## Package version requirements @@ -47,16 +47,16 @@ The latest [Elm package version](https://package.elm-lang.org/packages/mercuryme | 14.0.0 - 18.0.0 | 3.4.0 - 3.4.2 | | 19.0.0 - 22.0.0 | 3.5.0 | | 23.0.0 - 23.1.0 | 3.6.0 | -| 24.0.0 - \* | 3.7.0 - 3.7.1 | +| 24.0.0 - \* | 3.7.0 - 4.0.0 | ## Ag Grid Enterprise -The `elm-ag-grid` package uses Ag Grid Enterprise features. To enable them install the `ag-grid-enterprise` package and activate it by setting the license key. See the [official Ag Grid documentation](http://54.222.217.254/javascript-grid-set-license/) for further details. +The `elm-ag-grid` package uses Ag Grid Enterprise features. To enable them install the `@ag-grid-enterprise/core` package and activate it by setting the license key. See the [official Ag Grid documentation](http://54.222.217.254/javascript-grid-set-license/) for further details. ```js -import * as AgGridEnterprise from "ag-grid-enterprise"; +import { LicenseManager } from '@ag-grid-enterprise/core' -AgGridEnterprise.LicenseManager.setLicenseKey("YOUR-LICENSE-KEY"); +LicenseManager.setLicenseKey("YOUR LICENSE KEY"); ``` ## Themes diff --git a/ag-grid-webcomponent/index.js b/ag-grid-webcomponent/index.js index 5e9ea4d..0e2d622 100755 --- a/ag-grid-webcomponent/index.js +++ b/ag-grid-webcomponent/index.js @@ -1,4 +1,4 @@ -import { Grid, ComponentUtil } from "ag-grid-community"; +import { createGrid, ComponentUtil } from "@ag-grid-community/core"; import cellRenderer from "./cell_renderer"; import cellEditor from "./cell_editor"; @@ -58,20 +58,14 @@ class AgGrid extends HTMLElement { set gridOptions(options) { let globalEventListener = this.globalEventListener.bind(this); - this._gridOptions = ComponentUtil.copyAttributesToGridOptions( - options, - this._preInitAgGridAttributes - ); - + let mergedOptions = Object.assign(options, this._preInitAgGridAttributes) // Can only be instantiated once if (!this._initialised) { // prevent instantiating multiple grids let gridParams = { globalEventListener }; - this._agGrid = new Grid(this, this._gridOptions, gridParams); + this._api = createGrid(this, mergedOptions, gridParams); - this.api = options.api; - this.columnApi = options.columnApi; this._initialised = true; Object.entries(this._preInitCustomAttributes).map( @@ -102,7 +96,7 @@ class AgGrid extends HTMLElement { } set columnState(state) { - this.columnApi.applyColumnState({ state: state, applyOrder: true }); + this._api.applyColumnState({ state: state, applyOrder: true }); } set disableResizeOnScroll(disabled) { @@ -116,7 +110,7 @@ class AgGrid extends HTMLElement { } set filterState(state) { - this.api.setFilterModel(state); + this._api.setFilterModel(state); } set sizeToFitAfterFirstDataRendered(sizeToFit) { @@ -132,16 +126,16 @@ class AgGrid extends HTMLElement { set rowData(data) { this._applyChange("rowData", data); - if (this._agGrid.gridOptions.rowData === null) { - this.api.showNoRowsOverlay(); + if (data == []) { + this._api.showNoRowsOverlay(); } } set selectedIds(selectedIds) { if (selectedIds.length == 0) { - this.api.deselectAll(); + this._api.deselectAll(); } else { - this.api.forEachNode(function (node) { + this._api.forEachNode(function (node) { const selected = selectedIds.includes(node.id); node.setSelected(selected); }); @@ -159,7 +153,7 @@ class AgGrid extends HTMLElement { ), }; } - this.api.setColumnDefs(defs.map(applyCallbacks)); + this._api.updateGridOptions({columnDefs: defs.map(applyCallbacks)}); } set getContextMenuItems(data) { @@ -212,10 +206,7 @@ class AgGrid extends HTMLElement { } _applyChange(propertyName, newValue) { - let changeObject = {}; - changeObject[propertyName] = { currentValue: newValue }; - - ComponentUtil.processOnChange(changeObject, this.api); + this._api.setGridOption(propertyName, newValue); } _addEventHandler(eventName, type, callback) { @@ -224,9 +215,9 @@ class AgGrid extends HTMLElement { this._events = collection; - this._gridOptions[eventName] = function (args) { + this._api.setGridOption(eventName, function (args) { Object.values(collection).map((event) => event(args)); - }; + }); } attributeChangedCallback(name, oldValue, newValue) { @@ -361,7 +352,7 @@ class AgGrid extends HTMLElement { const stateChangeEvent = columnStateChangedEvent( params, - params.columnApi.getColumnState() + params.api.getColumnState() ); _this.dispatchEvent(stateChangeEvent); diff --git a/examples/index.js b/examples/index.js index 95c9db0..74ca6c4 100644 --- a/examples/index.js +++ b/examples/index.js @@ -1,18 +1,39 @@ import "@webcomponents/custom-elements"; -import * as AgGridEnterprise from "ag-grid-enterprise"; -// This would usually be the pacakge import +// This would usually be the package import // import ElmAgGrid from "@mercurymedia/elm-ag-grid"; import ElmAgGrid from "../ag-grid-webcomponent"; import { Elm } from "./src/Main.elm"; -import "ag-grid-community/styles/ag-grid.css"; -import "ag-grid-community/styles/ag-theme-balham.css"; +import { ModuleRegistry } from '@ag-grid-community/core' +import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model' +import { LicenseManager } from '@ag-grid-enterprise/core' +import { ColumnsToolPanelModule } from '@ag-grid-enterprise/column-tool-panel' +import { FiltersToolPanelModule } from '@ag-grid-enterprise/filter-tool-panel' +import { MenuModule } from '@ag-grid-enterprise/menu' +import { RangeSelectionModule } from '@ag-grid-enterprise/range-selection' +import { RichSelectModule } from '@ag-grid-enterprise/rich-select' +import { RowGroupingModule } from '@ag-grid-enterprise/row-grouping' +import { SideBarModule } from '@ag-grid-enterprise/side-bar' + +// For AG Grid Enterprise features set your license key here: +// LicenseManager.setLicenseKey("YOUR LICENSE KEY"); + +ModuleRegistry.registerModules([ + ClientSideRowModelModule, + ColumnsToolPanelModule, + FiltersToolPanelModule, + MenuModule, + RangeSelectionModule, + RichSelectModule, + RowGroupingModule, + SideBarModule +]); + +import "@ag-grid-community/styles/ag-grid.css"; +import "@ag-grid-community/styles/ag-theme-balham.css"; import "./styles/ag_grid_custom.css"; -// For AG Grid Enterprise you can set license key by calling: -// AgGridEnterprise.LicenseManager.setLicenseKey("YOUR-LICENSE-KEY"); - // Component import import ButtonRenderer from "./src/Components/Button.elm"; import LinkRenderer from "./src/Components/Link.elm"; diff --git a/package-lock.json b/package-lock.json index 9e735fe..e3fa4a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,26 +1,135 @@ { "name": "@mercurymedia/elm-ag-grid", - "version": "3.6.0", + "version": "4.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@mercurymedia/elm-ag-grid", - "version": "3.6.0", + "version": "4.0.0", "license": "MIT", "devDependencies": { + "@ag-grid-community/client-side-row-model": "^31.1.0", + "@ag-grid-community/styles": "^31.1.0", + "@ag-grid-enterprise/column-tool-panel": "^31.1.0", + "@ag-grid-enterprise/filter-tool-panel": "^31.1.0", + "@ag-grid-enterprise/menu": "^31.1.0", + "@ag-grid-enterprise/range-selection": "^31.1.0", + "@ag-grid-enterprise/rich-select": "^31.1.0", + "@ag-grid-enterprise/row-grouping": "^31.1.0", + "@ag-grid-enterprise/side-bar": "^31.1.0", "@parcel/transformer-elm": "^2.3.2", "@webcomponents/custom-elements": "^1.5.0", - "ag-grid-community": "^29.1.0", - "ag-grid-enterprise": "^29.1.0", "elm": "^0.19.1-5", "elm-format": "^0.8.7", "elm-test": "^0.19.1-revision12", "parcel": "^2.3.2" }, "peerDependencies": { - "ag-grid-community": "^29.1.0", - "ag-grid-enterprise": "^29.1.0" + "@ag-grid-community/core": "^31.1.0" + } + }, + "node_modules/@ag-grid-community/client-side-row-model": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-community/client-side-row-model/-/client-side-row-model-31.1.1.tgz", + "integrity": "sha512-KBSPaEJ1q97xooJd7U6W8PUfzUDecnsvE+Y05Xg/s6i61fLKyDTxDVJB/kETxdST0+T8FgjFMaPjY0hAZBOhWg==", + "dev": true, + "dependencies": { + "@ag-grid-community/core": "31.1.1" + } + }, + "node_modules/@ag-grid-community/core": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-community/core/-/core-31.1.1.tgz", + "integrity": "sha512-WFN3yXpFR0uMJQZak6x4kzLl7nJPrrorUWf/KWH4ToP6PMZcc6cKT3jge3bJ0SBkzs2m7oQGnmi8rfTaHuXI4Q==" + }, + "node_modules/@ag-grid-community/styles": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-community/styles/-/styles-31.1.1.tgz", + "integrity": "sha512-Q44beV3vD1jydB0smro9+nJY9g60uSjQ+cM8cHEIS9gDCG/37WiabdtQybJceeIHbne51MJPtOAa89y/TfnbQg==", + "dev": true + }, + "node_modules/@ag-grid-enterprise/column-tool-panel": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/column-tool-panel/-/column-tool-panel-31.1.1.tgz", + "integrity": "sha512-AiwjaCj0iX9V4+Xw4R2sQlJaCMAyh80bclgasIODKPDr98HZ76rAWHSXqdc37TAwHpFIEYeOsS98UewjvFJUBA==", + "dev": true, + "dependencies": { + "@ag-grid-community/core": "31.1.1", + "@ag-grid-enterprise/core": "31.1.1", + "@ag-grid-enterprise/row-grouping": "31.1.1", + "@ag-grid-enterprise/side-bar": "31.1.1" + } + }, + "node_modules/@ag-grid-enterprise/core": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/core/-/core-31.1.1.tgz", + "integrity": "sha512-jbLXQqfgZCTh1FQ6Dbsbmn/+EWAhPu+4stECLxdP3zVXPxJh1vOw717GjGQrduo5jWWdncj7mC9zOMSLMyzW1Q==", + "dev": true, + "dependencies": { + "@ag-grid-community/core": "31.1.1" + } + }, + "node_modules/@ag-grid-enterprise/filter-tool-panel": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/filter-tool-panel/-/filter-tool-panel-31.1.1.tgz", + "integrity": "sha512-Txtc3G0iL/qIbceBPT8lbyjAOgASKPGtBSI9yxoHmK/BUzK3FpyDTDE2ziRfqX02JODnkFoSXmNVdRJSn8jqgg==", + "dev": true, + "dependencies": { + "@ag-grid-community/core": "31.1.1", + "@ag-grid-enterprise/core": "31.1.1", + "@ag-grid-enterprise/side-bar": "31.1.1" + } + }, + "node_modules/@ag-grid-enterprise/menu": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/menu/-/menu-31.1.1.tgz", + "integrity": "sha512-BhLKOliv2An91c5jQKKTwdLT7b+qw1zwqc79XoLCY52ld8swhH3ckbdkVibXv20uNHDYvSfG9QrTOH6MfaZ0nQ==", + "dev": true, + "dependencies": { + "@ag-grid-community/core": "31.1.1", + "@ag-grid-enterprise/column-tool-panel": "31.1.1", + "@ag-grid-enterprise/core": "31.1.1" + } + }, + "node_modules/@ag-grid-enterprise/range-selection": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/range-selection/-/range-selection-31.1.1.tgz", + "integrity": "sha512-7W3HXdkTVgnq6kmd03ptJLx9QYphrQPWg0RMXXFzmKLS4Gprz6kw3HW8aaO+acvvvLn7hBWKFJ8hELS+fuA5tg==", + "dev": true, + "dependencies": { + "@ag-grid-community/core": "31.1.1", + "@ag-grid-enterprise/core": "31.1.1" + } + }, + "node_modules/@ag-grid-enterprise/rich-select": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/rich-select/-/rich-select-31.1.1.tgz", + "integrity": "sha512-RNjA+1nk9Wa4rHdE5yqLi+vVjkGeJ4LBEh96qGXdjREV7rIOOGEV5q5/aiPUPxaBbbxqxCu4na6A8EUWe6fPiw==", + "dev": true, + "dependencies": { + "@ag-grid-community/core": "31.1.1", + "@ag-grid-enterprise/core": "31.1.1" + } + }, + "node_modules/@ag-grid-enterprise/row-grouping": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/row-grouping/-/row-grouping-31.1.1.tgz", + "integrity": "sha512-CcyF8vzNEBzwEX4WuMYJ6hQ+F7RFoYqdYDyUj01Vz/dnLiZummT2a9bAdLXYCaNDg7fyrsjnqchiTv8g06qsmA==", + "dev": true, + "dependencies": { + "@ag-grid-community/core": "31.1.1", + "@ag-grid-enterprise/core": "31.1.1" + } + }, + "node_modules/@ag-grid-enterprise/side-bar": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/side-bar/-/side-bar-31.1.1.tgz", + "integrity": "sha512-MjkNBaI4VOoiHzwmBm/qi7DoxzDXOBBGr4xA5Crmr7WJZ5f947P7bXM5cwJfu8pfUegyMgiKn0k/7FB2usUUZg==", + "dev": true, + "dependencies": { + "@ag-grid-community/core": "31.1.1", + "@ag-grid-enterprise/core": "31.1.1" } }, "node_modules/@avh4/elm-format-darwin-arm64": { @@ -1296,18 +1405,6 @@ "node": ">=0.4.0" } }, - "node_modules/ag-grid-community": { - "version": "29.1.0", - "resolved": "https://registry.npmjs.org/ag-grid-community/-/ag-grid-community-29.1.0.tgz", - "integrity": "sha512-QJZi1qP7fpK/sxXbEFZWR3/Jf3HVRK0Xm3Tw55tn0ehNdkuSxRBOmOvjE3lPWqgRlT2rcL1xmjdqM4mpB1fobQ==", - "dev": true - }, - "node_modules/ag-grid-enterprise": { - "version": "29.1.0", - "resolved": "https://registry.npmjs.org/ag-grid-enterprise/-/ag-grid-enterprise-29.1.0.tgz", - "integrity": "sha512-0SQqjZ2KOFYKmjNICIii24CItenFOA+Jkkf/v/RpLND9ZttWN2/RqtRcw9V+GCuFhEpaDBZ1Q+nx4q5mHcVMRQ==", - "dev": true - }, "node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -3985,6 +4082,109 @@ } }, "dependencies": { + "@ag-grid-community/client-side-row-model": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-community/client-side-row-model/-/client-side-row-model-31.1.1.tgz", + "integrity": "sha512-KBSPaEJ1q97xooJd7U6W8PUfzUDecnsvE+Y05Xg/s6i61fLKyDTxDVJB/kETxdST0+T8FgjFMaPjY0hAZBOhWg==", + "dev": true, + "requires": { + "@ag-grid-community/core": "31.1.1" + } + }, + "@ag-grid-community/core": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-community/core/-/core-31.1.1.tgz", + "integrity": "sha512-WFN3yXpFR0uMJQZak6x4kzLl7nJPrrorUWf/KWH4ToP6PMZcc6cKT3jge3bJ0SBkzs2m7oQGnmi8rfTaHuXI4Q==" + }, + "@ag-grid-community/styles": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-community/styles/-/styles-31.1.1.tgz", + "integrity": "sha512-Q44beV3vD1jydB0smro9+nJY9g60uSjQ+cM8cHEIS9gDCG/37WiabdtQybJceeIHbne51MJPtOAa89y/TfnbQg==", + "dev": true + }, + "@ag-grid-enterprise/column-tool-panel": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/column-tool-panel/-/column-tool-panel-31.1.1.tgz", + "integrity": "sha512-AiwjaCj0iX9V4+Xw4R2sQlJaCMAyh80bclgasIODKPDr98HZ76rAWHSXqdc37TAwHpFIEYeOsS98UewjvFJUBA==", + "dev": true, + "requires": { + "@ag-grid-community/core": "31.1.1", + "@ag-grid-enterprise/core": "31.1.1", + "@ag-grid-enterprise/row-grouping": "31.1.1", + "@ag-grid-enterprise/side-bar": "31.1.1" + } + }, + "@ag-grid-enterprise/core": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/core/-/core-31.1.1.tgz", + "integrity": "sha512-jbLXQqfgZCTh1FQ6Dbsbmn/+EWAhPu+4stECLxdP3zVXPxJh1vOw717GjGQrduo5jWWdncj7mC9zOMSLMyzW1Q==", + "dev": true, + "requires": { + "@ag-grid-community/core": "31.1.1" + } + }, + "@ag-grid-enterprise/filter-tool-panel": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/filter-tool-panel/-/filter-tool-panel-31.1.1.tgz", + "integrity": "sha512-Txtc3G0iL/qIbceBPT8lbyjAOgASKPGtBSI9yxoHmK/BUzK3FpyDTDE2ziRfqX02JODnkFoSXmNVdRJSn8jqgg==", + "dev": true, + "requires": { + "@ag-grid-community/core": "31.1.1", + "@ag-grid-enterprise/core": "31.1.1", + "@ag-grid-enterprise/side-bar": "31.1.1" + } + }, + "@ag-grid-enterprise/menu": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/menu/-/menu-31.1.1.tgz", + "integrity": "sha512-BhLKOliv2An91c5jQKKTwdLT7b+qw1zwqc79XoLCY52ld8swhH3ckbdkVibXv20uNHDYvSfG9QrTOH6MfaZ0nQ==", + "dev": true, + "requires": { + "@ag-grid-community/core": "31.1.1", + "@ag-grid-enterprise/column-tool-panel": "31.1.1", + "@ag-grid-enterprise/core": "31.1.1" + } + }, + "@ag-grid-enterprise/range-selection": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/range-selection/-/range-selection-31.1.1.tgz", + "integrity": "sha512-7W3HXdkTVgnq6kmd03ptJLx9QYphrQPWg0RMXXFzmKLS4Gprz6kw3HW8aaO+acvvvLn7hBWKFJ8hELS+fuA5tg==", + "dev": true, + "requires": { + "@ag-grid-community/core": "31.1.1", + "@ag-grid-enterprise/core": "31.1.1" + } + }, + "@ag-grid-enterprise/rich-select": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/rich-select/-/rich-select-31.1.1.tgz", + "integrity": "sha512-RNjA+1nk9Wa4rHdE5yqLi+vVjkGeJ4LBEh96qGXdjREV7rIOOGEV5q5/aiPUPxaBbbxqxCu4na6A8EUWe6fPiw==", + "dev": true, + "requires": { + "@ag-grid-community/core": "31.1.1", + "@ag-grid-enterprise/core": "31.1.1" + } + }, + "@ag-grid-enterprise/row-grouping": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/row-grouping/-/row-grouping-31.1.1.tgz", + "integrity": "sha512-CcyF8vzNEBzwEX4WuMYJ6hQ+F7RFoYqdYDyUj01Vz/dnLiZummT2a9bAdLXYCaNDg7fyrsjnqchiTv8g06qsmA==", + "dev": true, + "requires": { + "@ag-grid-community/core": "31.1.1", + "@ag-grid-enterprise/core": "31.1.1" + } + }, + "@ag-grid-enterprise/side-bar": { + "version": "31.1.1", + "resolved": "https://registry.npmjs.org/@ag-grid-enterprise/side-bar/-/side-bar-31.1.1.tgz", + "integrity": "sha512-MjkNBaI4VOoiHzwmBm/qi7DoxzDXOBBGr4xA5Crmr7WJZ5f947P7bXM5cwJfu8pfUegyMgiKn0k/7FB2usUUZg==", + "dev": true, + "requires": { + "@ag-grid-community/core": "31.1.1", + "@ag-grid-enterprise/core": "31.1.1" + } + }, "@avh4/elm-format-darwin-arm64": { "version": "0.8.7-2", "resolved": "https://registry.npmjs.org/@avh4/elm-format-darwin-arm64/-/elm-format-darwin-arm64-0.8.7-2.tgz", @@ -4803,18 +5003,6 @@ "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==", "dev": true }, - "ag-grid-community": { - "version": "29.1.0", - "resolved": "https://registry.npmjs.org/ag-grid-community/-/ag-grid-community-29.1.0.tgz", - "integrity": "sha512-QJZi1qP7fpK/sxXbEFZWR3/Jf3HVRK0Xm3Tw55tn0ehNdkuSxRBOmOvjE3lPWqgRlT2rcL1xmjdqM4mpB1fobQ==", - "dev": true - }, - "ag-grid-enterprise": { - "version": "29.1.0", - "resolved": "https://registry.npmjs.org/ag-grid-enterprise/-/ag-grid-enterprise-29.1.0.tgz", - "integrity": "sha512-0SQqjZ2KOFYKmjNICIii24CItenFOA+Jkkf/v/RpLND9ZttWN2/RqtRcw9V+GCuFhEpaDBZ1Q+nx4q5mHcVMRQ==", - "dev": true - }, "ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", diff --git a/package.json b/package.json index e5d0136..2bf8b8d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mercurymedia/elm-ag-grid", - "version": "3.7.1", + "version": "4.0.0", "description": "", "main": "ag-grid-webcomponent/index.js", "files": [ @@ -18,14 +18,20 @@ "repository": "git://github.com/mercurymedia/elm-ag-grid.git", "license": "MIT", "peerDependencies": { - "ag-grid-community": "^29.1.0", - "ag-grid-enterprise": "^29.1.0" + "@ag-grid-community/core": "^31.1.0" }, "devDependencies": { "@parcel/transformer-elm": "^2.3.2", + "@ag-grid-community/styles": "^31.1.0", + "@ag-grid-community/client-side-row-model": "^31.1.0", + "@ag-grid-enterprise/column-tool-panel": "^31.1.0", + "@ag-grid-enterprise/filter-tool-panel": "^31.1.0", + "@ag-grid-enterprise/menu": "^31.1.0", + "@ag-grid-enterprise/range-selection": "^31.1.0", + "@ag-grid-enterprise/rich-select": "^31.1.0", + "@ag-grid-enterprise/row-grouping": "^31.1.0", + "@ag-grid-enterprise/side-bar": "^31.1.0", "@webcomponents/custom-elements": "^1.5.0", - "ag-grid-community": "^29.1.0", - "ag-grid-enterprise": "^29.1.0", "elm": "^0.19.1-5", "elm-format": "^0.8.7", "elm-test": "^0.19.1-revision12",