@pdg/react-table 1.0.118 → 1.0.120
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/index.esm.js +22 -7
- package/dist/index.js +22 -7
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -632,16 +632,31 @@ var TableBodyRow = function (_a) {
|
|
|
632
632
|
* Memo
|
|
633
633
|
* ******************************************************************************************************************/
|
|
634
634
|
var data = useMemo(function () {
|
|
635
|
-
var _a, _b;
|
|
635
|
+
var _a, _b, _c, _d;
|
|
636
636
|
if (column.type === 'check') {
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
}
|
|
637
|
+
if (column.hideAllCheck) {
|
|
638
|
+
if ((_a = column.head) === null || _a === void 0 ? void 0 : _a.onRender) {
|
|
639
|
+
return (_b = column.head) === null || _b === void 0 ? void 0 : _b.onRender();
|
|
640
|
+
}
|
|
641
|
+
else {
|
|
642
|
+
if (typeof column.label === 'string') {
|
|
643
|
+
return React.createElement("div", { dangerouslySetInnerHTML: { __html: column.label } });
|
|
644
|
+
}
|
|
645
|
+
else {
|
|
646
|
+
return column.label;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
else {
|
|
651
|
+
return (React.createElement(Checkbox, { checked: checked, disabled: checkDisabled, onChange: function (e, newChecked) {
|
|
652
|
+
setChecked(newChecked);
|
|
653
|
+
onCheckChange && onCheckChange(column, newChecked);
|
|
654
|
+
} }));
|
|
655
|
+
}
|
|
641
656
|
}
|
|
642
657
|
else {
|
|
643
|
-
if ((
|
|
644
|
-
return (
|
|
658
|
+
if ((_c = column.head) === null || _c === void 0 ? void 0 : _c.onRender) {
|
|
659
|
+
return (_d = column.head) === null || _d === void 0 ? void 0 : _d.onRender();
|
|
645
660
|
}
|
|
646
661
|
else {
|
|
647
662
|
if (typeof column.label === 'string') {
|
package/dist/index.js
CHANGED
|
@@ -632,16 +632,31 @@ var TableBodyRow = function (_a) {
|
|
|
632
632
|
* Memo
|
|
633
633
|
* ******************************************************************************************************************/
|
|
634
634
|
var data = React.useMemo(function () {
|
|
635
|
-
var _a, _b;
|
|
635
|
+
var _a, _b, _c, _d;
|
|
636
636
|
if (column.type === 'check') {
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
}
|
|
637
|
+
if (column.hideAllCheck) {
|
|
638
|
+
if ((_a = column.head) === null || _a === void 0 ? void 0 : _a.onRender) {
|
|
639
|
+
return (_b = column.head) === null || _b === void 0 ? void 0 : _b.onRender();
|
|
640
|
+
}
|
|
641
|
+
else {
|
|
642
|
+
if (typeof column.label === 'string') {
|
|
643
|
+
return React.createElement("div", { dangerouslySetInnerHTML: { __html: column.label } });
|
|
644
|
+
}
|
|
645
|
+
else {
|
|
646
|
+
return column.label;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
else {
|
|
651
|
+
return (React.createElement(material.Checkbox, { checked: checked, disabled: checkDisabled, onChange: function (e, newChecked) {
|
|
652
|
+
setChecked(newChecked);
|
|
653
|
+
onCheckChange && onCheckChange(column, newChecked);
|
|
654
|
+
} }));
|
|
655
|
+
}
|
|
641
656
|
}
|
|
642
657
|
else {
|
|
643
|
-
if ((
|
|
644
|
-
return (
|
|
658
|
+
if ((_c = column.head) === null || _c === void 0 ? void 0 : _c.onRender) {
|
|
659
|
+
return (_d = column.head) === null || _d === void 0 ? void 0 : _d.onRender();
|
|
645
660
|
}
|
|
646
661
|
else {
|
|
647
662
|
if (typeof column.label === 'string') {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdg/react-table",
|
|
3
3
|
"title": "React Table",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.120",
|
|
5
5
|
"description": "React Table",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@mui/material": "^7.0.2",
|
|
49
49
|
"@mui/x-date-pickers": "^7.28.3",
|
|
50
50
|
"@pdg/react-component": "^1.0.33",
|
|
51
|
-
"@pdg/react-form": "^1.0.
|
|
51
|
+
"@pdg/react-form": "^1.0.143",
|
|
52
52
|
"@pdg/react-hook": "^1.0.28",
|
|
53
53
|
"@pdg/util": "^1.0.23",
|
|
54
54
|
"@tinymce/tinymce-react": "^6.1.0",
|