next-recomponents 1.7.48 → 1.7.49
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.js +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
- package/src/table/h.tsx +3 -1
package/dist/index.js
CHANGED
|
@@ -43424,7 +43424,12 @@ function HTable(_a) {
|
|
|
43424
43424
|
const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
|
|
43425
43425
|
const isDate = !isObject2 && regex.test(`${d[key]}`);
|
|
43426
43426
|
const cellTypeOf = isDate ? "date" : isObject2 ? "object" : typeOf;
|
|
43427
|
-
const mapedIndex = mapedData.find(
|
|
43427
|
+
const mapedIndex = mapedData.find(
|
|
43428
|
+
(mpd) => {
|
|
43429
|
+
var _a3;
|
|
43430
|
+
return ((_a3 = mpd == null ? void 0 : mpd.id) == null ? void 0 : _a3.content) == d.id;
|
|
43431
|
+
}
|
|
43432
|
+
);
|
|
43428
43433
|
const mapedContent = (_b2 = mapedIndex == null ? void 0 : mapedIndex[key]) == null ? void 0 : _b2.content;
|
|
43429
43434
|
const content = mapedContent || (cellTypeOf == "date" ? d[key].split("T").join(" ").split(".")[0] : cellTypeOf == "object" ? import_react25.default.isValidElement(d[key]) ? ((_c = d[key]) == null ? void 0 : _c.props).value : JSON.stringify(d[key]) : d[key]);
|
|
43430
43435
|
const handler = import_react25.default.isValidElement(d[key]) ? d[key] : null;
|
package/dist/index.mjs
CHANGED
|
@@ -43406,7 +43406,12 @@ function HTable(_a) {
|
|
|
43406
43406
|
const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
|
|
43407
43407
|
const isDate = !isObject2 && regex.test(`${d[key]}`);
|
|
43408
43408
|
const cellTypeOf = isDate ? "date" : isObject2 ? "object" : typeOf;
|
|
43409
|
-
const mapedIndex = mapedData.find(
|
|
43409
|
+
const mapedIndex = mapedData.find(
|
|
43410
|
+
(mpd) => {
|
|
43411
|
+
var _a3;
|
|
43412
|
+
return ((_a3 = mpd == null ? void 0 : mpd.id) == null ? void 0 : _a3.content) == d.id;
|
|
43413
|
+
}
|
|
43414
|
+
);
|
|
43410
43415
|
const mapedContent = (_b2 = mapedIndex == null ? void 0 : mapedIndex[key]) == null ? void 0 : _b2.content;
|
|
43411
43416
|
const content = mapedContent || (cellTypeOf == "date" ? d[key].split("T").join(" ").split(".")[0] : cellTypeOf == "object" ? React4.isValidElement(d[key]) ? ((_c = d[key]) == null ? void 0 : _c.props).value : JSON.stringify(d[key]) : d[key]);
|
|
43412
43417
|
const handler = React4.isValidElement(d[key]) ? d[key] : null;
|
package/package.json
CHANGED
package/src/table/h.tsx
CHANGED
|
@@ -67,7 +67,9 @@ export default function HTable({
|
|
|
67
67
|
|
|
68
68
|
const isDate = !isObject && regex.test(`${d[key]}`);
|
|
69
69
|
const cellTypeOf = isDate ? "date" : isObject ? "object" : typeOf;
|
|
70
|
-
const mapedIndex = mapedData.find(
|
|
70
|
+
const mapedIndex = mapedData.find(
|
|
71
|
+
(mpd) => (mpd?.id as any)?.content == d.id
|
|
72
|
+
);
|
|
71
73
|
|
|
72
74
|
const mapedContent = (mapedIndex?.[key] as any)?.content;
|
|
73
75
|
|