@pdg/react-table 1.0.73 → 1.0.75
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 +13 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +13 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2793,7 +2793,7 @@ function typographyColorToSxColor(color) {
|
|
|
2793
2793
|
* @returns 하이픈이 추가된 사업자등록번호
|
|
2794
2794
|
* ******************************************************************************************************************/
|
|
2795
2795
|
function companyNoAutoDash(companyNo) {
|
|
2796
|
-
var str = companyNo.replace(/[^0-9]/g, '');
|
|
2796
|
+
var str = companyNo.replace(/[^0-9*]/g, '');
|
|
2797
2797
|
var values = [str.slice(0, 3)];
|
|
2798
2798
|
if (str.length > 3)
|
|
2799
2799
|
values.push(str.slice(3, 5));
|
|
@@ -2806,7 +2806,7 @@ function companyNoAutoDash(companyNo) {
|
|
|
2806
2806
|
* @returns 하이픈 추가된 주민등록번호
|
|
2807
2807
|
* ******************************************************************************************************************/
|
|
2808
2808
|
function personalNoAutoDash(personalNo) {
|
|
2809
|
-
var str = personalNo.replace(/[^0-9]/g, '');
|
|
2809
|
+
var str = personalNo.replace(/[^0-9*]/g, '');
|
|
2810
2810
|
var values = [str.slice(0, 6)];
|
|
2811
2811
|
if (str.length > 6)
|
|
2812
2812
|
values.push(str.slice(6));
|
|
@@ -3437,17 +3437,21 @@ var TableTopHead = function (_a) {
|
|
|
3437
3437
|
React.createElement(material.TableCell, { colSpan: columns.length }, caption)));
|
|
3438
3438
|
}, [caption, columns]);
|
|
3439
3439
|
var makeRowCells = React.useCallback(function (row, top) {
|
|
3440
|
+
var totalColumns = 0;
|
|
3440
3441
|
var cells = row
|
|
3441
3442
|
.map(function (info, idx) {
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3443
|
+
if (info) {
|
|
3444
|
+
totalColumns += info.colSpan || 1;
|
|
3445
|
+
return (React.createElement(material.TableCell, { key: idx, colSpan: info.colSpan, align: info.align, style: {
|
|
3446
|
+
top: top,
|
|
3447
|
+
borderBottom: 0,
|
|
3448
|
+
} },
|
|
3449
|
+
info.label,
|
|
3450
|
+
info.label != null && React.createElement(BottomLine, { style: { backgroundColor: theme.palette.divider } })));
|
|
3451
|
+
}
|
|
3448
3452
|
})
|
|
3449
3453
|
.filter(function (cell) { return !!cell; });
|
|
3450
|
-
if (
|
|
3454
|
+
if (totalColumns < columns.length) {
|
|
3451
3455
|
cells.push(React.createElement(material.TableCell, { key: columns.length, colSpan: columns.length - cells.length, style: { top: top, borderBottom: 0 } }));
|
|
3452
3456
|
}
|
|
3453
3457
|
return cells;
|