@equinor/eds-data-grid-react 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/{EdsDataGrid.mjs → EdsDataGrid.js} +5 -5
- package/dist/esm/components/{Filter.mjs → Filter.js} +1 -1
- package/dist/esm/components/{FilterWrapper.mjs → FilterWrapper.js} +3 -3
- package/dist/esm/components/{TableBodyCell.mjs → TableBodyCell.js} +1 -1
- package/dist/esm/components/{TableCell.mjs → TableCell.js} +1 -1
- package/dist/esm/components/{TableFooterCell.mjs → TableFooterCell.js} +4 -4
- package/dist/esm/components/{TableFooterRow.mjs → TableFooterRow.js} +1 -1
- package/dist/esm/components/{TableHeaderCell.mjs → TableHeaderCell.js} +5 -5
- package/dist/esm/components/{TableHeaderRow.mjs → TableHeaderRow.js} +1 -1
- package/dist/esm/components/{TableRow.mjs → TableRow.js} +2 -2
- package/dist/esm/index.js +4 -0
- package/package.json +6 -6
- package/dist/esm/index.mjs +0 -4
- /package/dist/esm/{EdsDataGridContext.mjs → EdsDataGridContext.js} +0 -0
- /package/dist/esm/components/{DebouncedInput.mjs → DebouncedInput.js} +0 -0
- /package/dist/esm/components/{Resizer.mjs → Resizer.js} +0 -0
- /package/dist/esm/components/{SortIndicator.mjs → SortIndicator.js} +0 -0
- /package/dist/esm/{utils.mjs → utils.js} +0 -0
|
@@ -3,11 +3,11 @@ import { getSortedRowModel, getCoreRowModel, getExpandedRowModel, getFacetedRowM
|
|
|
3
3
|
import { useVirtualizer } from '@tanstack/react-virtual';
|
|
4
4
|
import { forwardRef, useState, useEffect, useMemo, useRef, useCallback } from 'react';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
|
-
import { TableProvider } from './EdsDataGridContext.
|
|
7
|
-
import { TableHeaderRow } from './components/TableHeaderRow.
|
|
8
|
-
import { TableFooterRow } from './components/TableFooterRow.
|
|
9
|
-
import { TableRow } from './components/TableRow.
|
|
10
|
-
import { addPxSuffixIfInputHasNoPrefix, logDevelopmentWarningOfPropUse, getMeasureElementHandler } from './utils.
|
|
6
|
+
import { TableProvider } from './EdsDataGridContext.js';
|
|
7
|
+
import { TableHeaderRow } from './components/TableHeaderRow.js';
|
|
8
|
+
import { TableFooterRow } from './components/TableFooterRow.js';
|
|
9
|
+
import { TableRow } from './components/TableRow.js';
|
|
10
|
+
import { addPxSuffixIfInputHasNoPrefix, logDevelopmentWarningOfPropUse, getMeasureElementHandler } from './utils.js';
|
|
11
11
|
import { mergeRefs } from '@equinor/eds-utils';
|
|
12
12
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
13
13
|
|
|
@@ -2,9 +2,9 @@ import { useState, useRef, useCallback } from 'react';
|
|
|
2
2
|
import { Button, Icon, Popover } from '@equinor/eds-core-react';
|
|
3
3
|
import { filter_alt_active, filter_alt } from '@equinor/eds-icons';
|
|
4
4
|
import { tokens } from '@equinor/eds-tokens';
|
|
5
|
-
import { Filter } from './Filter.
|
|
6
|
-
import { useTableContext } from '../EdsDataGridContext.
|
|
7
|
-
import { FilterVisibility } from './TableCell.
|
|
5
|
+
import { Filter } from './Filter.js';
|
|
6
|
+
import { useTableContext } from '../EdsDataGridContext.js';
|
|
7
|
+
import { FilterVisibility } from './TableCell.js';
|
|
8
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
/* istanbul ignore file */
|
|
@@ -2,7 +2,7 @@ import { Table } from '@equinor/eds-core-react';
|
|
|
2
2
|
import { flexRender } from '@tanstack/react-table';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import { useTableContext } from '../EdsDataGridContext.
|
|
5
|
+
import { useTableContext } from '../EdsDataGridContext.js';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
const StyledCell = styled(Table.Cell).withConfig({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Table } from '@equinor/eds-core-react';
|
|
2
2
|
import { tokens } from '@equinor/eds-tokens';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { ResizeInner } from './Resizer.
|
|
4
|
+
import { ResizeInner } from './Resizer.js';
|
|
5
5
|
|
|
6
6
|
const FilterVisibility = styled.div.withConfig({
|
|
7
7
|
displayName: "TableCell__FilterVisibility",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { flexRender } from '@tanstack/react-table';
|
|
2
|
-
import { useTableContext } from '../EdsDataGridContext.
|
|
2
|
+
import { useTableContext } from '../EdsDataGridContext.js';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
|
-
import { SortIndicator } from './SortIndicator.
|
|
5
|
-
import { Resizer, ResizeInner } from './Resizer.
|
|
6
|
-
import { TableCell } from './TableCell.
|
|
4
|
+
import { SortIndicator } from './SortIndicator.js';
|
|
5
|
+
import { Resizer, ResizeInner } from './Resizer.js';
|
|
6
|
+
import { TableCell } from './TableCell.js';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
function TableFooterCell({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { flexRender } from '@tanstack/react-table';
|
|
2
|
-
import { useTableContext } from '../EdsDataGridContext.
|
|
2
|
+
import { useTableContext } from '../EdsDataGridContext.js';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
|
-
import { FilterWrapper } from './FilterWrapper.
|
|
5
|
-
import { SortIndicator } from './SortIndicator.
|
|
6
|
-
import { Resizer, ResizeInner } from './Resizer.
|
|
7
|
-
import { TableCell, FilterVisibility } from './TableCell.
|
|
4
|
+
import { FilterWrapper } from './FilterWrapper.js';
|
|
5
|
+
import { SortIndicator } from './SortIndicator.js';
|
|
6
|
+
import { Resizer, ResizeInner } from './Resizer.js';
|
|
7
|
+
import { TableCell, FilterVisibility } from './TableCell.js';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
9
|
import { useEds } from '@equinor/eds-core-react';
|
|
10
10
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Table } from '@equinor/eds-core-react';
|
|
2
2
|
import { useRef, useEffect, useCallback } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { useTableContext } from '../EdsDataGridContext.
|
|
5
|
-
import { TableBodyCell } from './TableBodyCell.
|
|
4
|
+
import { useTableContext } from '../EdsDataGridContext.js';
|
|
5
|
+
import { TableBodyCell } from './TableBodyCell.js';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
function TableRow({
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/eds-data-grid-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "A feature-rich data-grid written in React, implementing the Equinor Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
7
7
|
"main": "dist/eds-data-grid-react.cjs",
|
|
8
|
-
"module": "./dist/esm/index.
|
|
8
|
+
"module": "./dist/esm/index.js",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./dist/types/index.d.ts",
|
|
12
|
-
"import": "./dist/esm/index.
|
|
12
|
+
"import": "./dist/esm/index.js",
|
|
13
13
|
"require": "./dist/eds-data-grid-react.cjs"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@tanstack/react-table": "^8.21.3",
|
|
31
31
|
"@tanstack/react-virtual": "^3.13.12",
|
|
32
|
-
"@equinor/eds-
|
|
33
|
-
"@equinor/eds-
|
|
34
|
-
"@equinor/eds-
|
|
32
|
+
"@equinor/eds-icons": "^1.2.2",
|
|
33
|
+
"@equinor/eds-utils": "^2.0.0",
|
|
34
|
+
"@equinor/eds-tokens": "^2.1.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@equinor/eds-core-react": "^2",
|
package/dist/esm/index.mjs
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|