awing-library 2.1.2-dev.73 → 2.1.2-dev.74
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/index.js +46 -30
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -177660,27 +177660,35 @@ function TableCellEditable(props) {
|
|
|
177660
177660
|
children: renderDataInput()
|
|
177661
177661
|
})
|
|
177662
177662
|
}) : renderDataInput()
|
|
177663
|
-
}) : jsxRuntimeExports.
|
|
177663
|
+
}) : jsxRuntimeExports.jsx(TableCell, Object.assign({
|
|
177664
177664
|
sx: {
|
|
177665
177665
|
p: 1,
|
|
177666
177666
|
border: error ? '2px solid #ED1D25' : '1px solid rgb(224, 224, 224)'
|
|
177667
177667
|
},
|
|
177668
177668
|
rowSpan: numOfRowSpan
|
|
177669
177669
|
}, TableCellProps, {
|
|
177670
|
-
children:
|
|
177671
|
-
|
|
177672
|
-
|
|
177673
|
-
|
|
177674
|
-
|
|
177675
|
-
|
|
177676
|
-
|
|
177677
|
-
|
|
177678
|
-
|
|
177679
|
-
|
|
177680
|
-
|
|
177681
|
-
|
|
177682
|
-
|
|
177683
|
-
|
|
177670
|
+
children: jsxRuntimeExports.jsxs(Box$1, {
|
|
177671
|
+
display: "flex",
|
|
177672
|
+
alignItems: "center",
|
|
177673
|
+
gap: 0.5,
|
|
177674
|
+
children: [!!isShowCollapsible &&
|
|
177675
|
+
// Hiển thị icon mở rộng, ở cột đầu tiên
|
|
177676
|
+
jsxRuntimeExports.jsx(IconButton$1, {
|
|
177677
|
+
sx: {
|
|
177678
|
+
width: 24,
|
|
177679
|
+
height: 24
|
|
177680
|
+
},
|
|
177681
|
+
size: "small",
|
|
177682
|
+
onClick: onToggleCollapsible,
|
|
177683
|
+
children: isCollapsed ? jsxRuntimeExports.jsx(KeyboardArrowDown, {}) : jsxRuntimeExports.jsx(KeyboardArrowRight, {})
|
|
177684
|
+
}), isTooltip ? jsxRuntimeExports.jsx(StyleTooltip$1, {
|
|
177685
|
+
title: getTitleTooltip && getTitleTooltip(value) || '',
|
|
177686
|
+
placement: "top-start",
|
|
177687
|
+
children: jsxRuntimeExports.jsx(Stack, {
|
|
177688
|
+
children: renderDataInput()
|
|
177689
|
+
})
|
|
177690
|
+
}) : renderDataInput()]
|
|
177691
|
+
})
|
|
177684
177692
|
}));
|
|
177685
177693
|
}
|
|
177686
177694
|
|
|
@@ -177752,7 +177760,7 @@ function TableRowEditable(props) {
|
|
|
177752
177760
|
const isMergeColumn = fieldName === mergeRowsBy;
|
|
177753
177761
|
const isDisplay = isMergeColumn ? itemIndex === 0 || convertItems[itemIndex - 1][fieldName] !== row[fieldName] : true;
|
|
177754
177762
|
const numOfRowSpan = isMergeColumn ? convertItems.filter(c => c[fieldName] === row[fieldName]).length : 1;
|
|
177755
|
-
return isDisplay && jsxRuntimeExports.
|
|
177763
|
+
return isDisplay && jsxRuntimeExports.jsx(TableCell, Object.assign({
|
|
177756
177764
|
sx: {
|
|
177757
177765
|
border: '1px solid rgb(224, 224, 224)'
|
|
177758
177766
|
}
|
|
@@ -177761,20 +177769,28 @@ function TableRowEditable(props) {
|
|
|
177761
177769
|
}, idx === 0 ? {
|
|
177762
177770
|
width: '15%'
|
|
177763
177771
|
} : {}, {
|
|
177764
|
-
children:
|
|
177765
|
-
|
|
177766
|
-
|
|
177767
|
-
|
|
177768
|
-
|
|
177769
|
-
|
|
177770
|
-
|
|
177771
|
-
|
|
177772
|
-
|
|
177773
|
-
|
|
177774
|
-
|
|
177775
|
-
|
|
177776
|
-
|
|
177777
|
-
|
|
177772
|
+
children: jsxRuntimeExports.jsxs(Box$1, {
|
|
177773
|
+
display: "flex",
|
|
177774
|
+
alignItems: "center",
|
|
177775
|
+
gap: 0.5,
|
|
177776
|
+
children: [idx === 0 &&
|
|
177777
|
+
// Hiển thị icon mở rộng, ở cột đầu tiên
|
|
177778
|
+
jsxRuntimeExports.jsx(IconButton$1, {
|
|
177779
|
+
sx: {
|
|
177780
|
+
width: 24,
|
|
177781
|
+
height: 24
|
|
177782
|
+
},
|
|
177783
|
+
size: "small",
|
|
177784
|
+
onClick: () => setOpen(!open),
|
|
177785
|
+
children: open ? jsxRuntimeExports.jsx(KeyboardArrowDown, {}) : jsxRuntimeExports.jsx(KeyboardArrowRight, {})
|
|
177786
|
+
}), colDef.isTooltip ? jsxRuntimeExports.jsx(StyleTooltip, {
|
|
177787
|
+
title: colDef.getTitleTooltip && colDef.getTitleTooltip(content),
|
|
177788
|
+
placement: "top-start",
|
|
177789
|
+
children: jsxRuntimeExports.jsx("div", {
|
|
177790
|
+
children: content
|
|
177791
|
+
})
|
|
177792
|
+
}) : colDef.contentGetter(row, rowIdx)]
|
|
177793
|
+
})
|
|
177778
177794
|
}), idx);
|
|
177779
177795
|
}
|
|
177780
177796
|
if (colDef.editFieldDefinition) {
|