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.
Files changed (2) hide show
  1. package/dist/esm/index.js +46 -30
  2. 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.jsxs(TableCell, Object.assign({
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: [!!isShowCollapsible &&
177671
- // Hiển thị icon mở rộng, ở cột đầu tiên
177672
- jsxRuntimeExports.jsx(IconButton$1, {
177673
- "aria-label": "expand row",
177674
- size: "small",
177675
- onClick: onToggleCollapsible,
177676
- children: isCollapsed ? jsxRuntimeExports.jsx(KeyboardArrowDown, {}) : jsxRuntimeExports.jsx(KeyboardArrowRight, {})
177677
- }), isTooltip ? jsxRuntimeExports.jsx(StyleTooltip$1, {
177678
- title: getTitleTooltip && getTitleTooltip(value) || '',
177679
- placement: "top-start",
177680
- children: jsxRuntimeExports.jsx(Stack, {
177681
- children: renderDataInput()
177682
- })
177683
- }) : renderDataInput()]
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.jsxs(TableCell, Object.assign({
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: [idx === 0 &&
177765
- // Hiển thị icon mở rộng, ở cột đầu tiên
177766
- jsxRuntimeExports.jsx(IconButton$1, {
177767
- "aria-label": "expand row",
177768
- size: "small",
177769
- onClick: () => setOpen(!open),
177770
- children: open ? jsxRuntimeExports.jsx(KeyboardArrowDown, {}) : jsxRuntimeExports.jsx(KeyboardArrowRight, {})
177771
- }), colDef.isTooltip ? jsxRuntimeExports.jsx(StyleTooltip, {
177772
- title: colDef.getTitleTooltip && colDef.getTitleTooltip(content),
177773
- placement: "top-start",
177774
- children: jsxRuntimeExports.jsx("div", {
177775
- children: content
177776
- })
177777
- }) : colDef.contentGetter(row, rowIdx)]
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.2-dev.73",
3
+ "version": "2.1.2-dev.74",
4
4
  "main": "dist/esm/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/index.d.ts",