@alaarab/ogrid-react-fluent 2.1.13 → 2.1.15

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.
@@ -668,10 +668,11 @@
668
668
  padding: 6px 12px;
669
669
  box-sizing: border-box;
670
670
  font-size: 12px;
671
+ line-height: 20px;
671
672
  color: var(--ogrid-fg-muted, rgba(0, 0, 0, 0.5));
672
673
  background: var(--ogrid-header-bg, #f5f5f5);
673
674
  border-top: 1px solid var(--ogrid-border, rgba(0, 0, 0, 0.12));
674
- min-height: 28px;
675
+ min-height: 33px;
675
676
  }
676
677
  .ogrid-fluent__DataGridTable-module__statusBarItem {
677
678
  display: inline-flex;
package/dist/esm/index.js CHANGED
@@ -604,6 +604,7 @@ function DataGridTableInner(props) {
604
604
  interaction,
605
605
  pinning,
606
606
  handleResizeStart,
607
+ handleResizeDoubleClick,
607
608
  getColumnWidth,
608
609
  isReorderDragging,
609
610
  dropIndicatorX,
@@ -723,7 +724,7 @@ function DataGridTableInner(props) {
723
724
  const displayContent = resolveCellDisplayContent(col, item, descriptor.displayValue);
724
725
  const cellStyle = resolveCellStyle(col, item);
725
726
  const styledContent = cellStyle ? /* @__PURE__ */ jsx("span", { style: cellStyle, children: displayContent }) : displayContent;
726
- const cellClassNames = `${DataGridTable_module_default.cellContent}${descriptor.isActive && !descriptor.isInRange ? ` ${DataGridTable_module_default.activeCellContent}` : ""}${descriptor.isInRange ? ` ${DataGridTable_module_default.cellInRange}` : ""}${descriptor.isInCutRange ? ` ${DataGridTable_module_default.cellCut}` : ""}${descriptor.isInCopyRange ? ` ${DataGridTable_module_default.cellCopied}` : ""}`;
727
+ const cellClassNames = `${DataGridTable_module_default.cellContent}${descriptor.isActive ? ` ${DataGridTable_module_default.activeCellContent}` : ""}${descriptor.isInRange && !descriptor.isActive ? ` ${DataGridTable_module_default.cellInRange}` : ""}${descriptor.isInCutRange ? ` ${DataGridTable_module_default.cellCut}` : ""}${descriptor.isInCopyRange ? ` ${DataGridTable_module_default.cellCopied}` : ""}`;
727
728
  const interactionProps = getCellInteractionProps(descriptor, col.columnId, interactionHandlers);
728
729
  content = /* @__PURE__ */ jsxs(
729
730
  "div",
@@ -846,6 +847,7 @@ function DataGridTableInner(props) {
846
847
  wrapperRef.current?.focus({ preventScroll: true });
847
848
  handleResizeStart(e, col);
848
849
  },
850
+ onDoubleClick: (e) => handleResizeDoubleClick(e, col),
849
851
  "aria-label": `Resize ${col.name}`
850
852
  }
851
853
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alaarab/ogrid-react-fluent",
3
- "version": "2.1.13",
3
+ "version": "2.1.15",
4
4
  "description": "OGrid React Fluent implementation – DataGrid-powered data table with sorting, filtering, pagination, column chooser, and CSV export.",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -41,7 +41,7 @@
41
41
  "node": ">=18"
42
42
  },
43
43
  "dependencies": {
44
- "@alaarab/ogrid-react": "2.1.13"
44
+ "@alaarab/ogrid-react": "2.1.15"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@fluentui/react-components": "^9.0.0",