@chumsinc/sortable-tables 2.0.6 → 2.0.7
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/CHANGELOG.md +17 -1
- package/dist/DataTableCell.js +1 -1
- package/dist/DataTableCell.js.map +1 -1
- package/package.json +2 -3
- package/src/DataTableCell.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
9
9
|
|
|
10
|
-
#### [v2.0.
|
|
10
|
+
#### [v2.0.7](https://github.com/ChumsInc/sortable-tables/compare/v2.0.6...v2.0.7)
|
|
11
|
+
|
|
12
|
+
> 2025-02-27
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Commits
|
|
18
|
+
|
|
19
|
+
- [`2350125`](https://github.com/ChumsInc/sortable-tables/commit/2350125f5fca9545c2ca1136191af5f765313e4f) fix: always show datacell contents if the render attribute is not undefined.
|
|
20
|
+
- [`3ffa14a`](https://github.com/ChumsInc/sortable-tables/commit/3ffa14a3f1648173a9d8c896abe886c26928506e) chore: npm updates
|
|
21
|
+
- [`364895d`](https://github.com/ChumsInc/sortable-tables/commit/364895dd31a6aa4a8b8d4911b965323637a7e85f) chore: update README.md
|
|
22
|
+
- [`a865f49`](https://github.com/ChumsInc/sortable-tables/commit/a865f4909ef5279d398a2d5fd6df372a53ba2c71) chore: remove unused files
|
|
23
|
+
- [`8c380cc`](https://github.com/ChumsInc/sortable-tables/commit/8c380ccddace0e2550cd61d7a6cb63815a824ed3) chore: move aria tags on pagination buttons
|
|
24
|
+
- [`52638fd`](https://github.com/ChumsInc/sortable-tables/commit/52638fdfa6b3db4a932ed094d6ed4cb74ea5e514) fix: update package name for publishing
|
|
25
|
+
|
|
26
|
+
#### [v2.0.6](https://github.com/ChumsInc/sortable-tables/compare/v2.0.5...v2.0.6) - 2025-02-07
|
|
11
27
|
|
|
12
28
|
> 2025-02-07
|
|
13
29
|
|
package/dist/DataTableCell.js
CHANGED
|
@@ -8,7 +8,7 @@ export default function DataTableCell({ field, row, className, as, ...rest }) {
|
|
|
8
8
|
colSpan: field.colSpan,
|
|
9
9
|
...field.cellProps,
|
|
10
10
|
...rest
|
|
11
|
-
}, row[field.field] === undefined
|
|
11
|
+
}, (row[field.field] === undefined && !field.render)
|
|
12
12
|
? null
|
|
13
13
|
: (typeof field.render === 'function'
|
|
14
14
|
? field.render(row)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableCell.js","sourceRoot":"","sources":["../src/DataTableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,CAAC,OAAO,UAAU,aAAa,CAAc,EAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE,GAAG,IAAI,EAAuB;IACzG,MAAM,aAAa,GAAG,UAAU,CAC5B,EAAC,CAAC,QAAQ,KAAK,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,EAAC,EACxC,SAAS,EACT,OAAO,KAAK,CAAC,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CACjF,CAAC;IACF,OAAO,KAAK,CAAC,aAAa,CACtB,CAAC,EAAE,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,IAAI,EACxB;QACI,SAAS,EAAE,aAAa;QACxB,KAAK,EAAE,CAAC,EAAE,IAAI,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;QACpD,OAAO,EAAE,KAAK,CAAC,OAAO;QACt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,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAc,CACtC,CACR,CAAA;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chumsinc/sortable-tables",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"css-loader": "^7.1.2",
|
|
44
44
|
"eslint": "^9.8.0",
|
|
45
45
|
"eslint-plugin-react": "^7.35.0",
|
|
46
|
-
"globals": "^
|
|
46
|
+
"globals": "^16.0.0",
|
|
47
47
|
"react": "^19.0.0",
|
|
48
48
|
"react-dom": "^19.0.0",
|
|
49
49
|
"rimraf": "^6.0.1",
|
|
@@ -83,7 +83,6 @@
|
|
|
83
83
|
"directories": {
|
|
84
84
|
"test": "test"
|
|
85
85
|
},
|
|
86
|
-
"dependencies": {},
|
|
87
86
|
"keywords": [
|
|
88
87
|
"Bootstrap",
|
|
89
88
|
"Table"
|
package/src/DataTableCell.tsx
CHANGED
|
@@ -17,7 +17,7 @@ export default function DataTableCell<T = unknown>({field, row, className, as, .
|
|
|
17
17
|
...field.cellProps,
|
|
18
18
|
...rest
|
|
19
19
|
},
|
|
20
|
-
row[field.field] === undefined
|
|
20
|
+
(row[field.field] === undefined && !field.render)
|
|
21
21
|
? null
|
|
22
22
|
: (
|
|
23
23
|
typeof field.render === 'function'
|