mig-schema-table 3.0.122 → 3.0.123

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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from "react";
3
- import { MINIMUM_COLUMN_WIDTH } from "../../inc/constant";
3
+ import { COLUMN_WIDTH, MINIMUM_COLUMN_WIDTH } from "../../inc/constant";
4
4
  const ColumnResizers = ({ columnWidths, onColumnWidthsChange, resizeColumnIndex, setResizeColumnIndex, tableBodyHeight, }) => {
5
5
  const [dragStartX, setDragStartX] = React.useState(0);
6
6
  const setColumnDelta = React.useCallback((columnDelta) => {
@@ -28,7 +28,7 @@ const ColumnResizers = ({ columnWidths, onColumnWidthsChange, resizeColumnIndex,
28
28
  if (columnIndex === resizeColumnIndex) {
29
29
  classNames.push("mig-schema-table__column_resizer--dragged");
30
30
  }
31
- return (_jsx("div", { style: { left: pointer, bottom: tableBodyHeight }, className: classNames.join(" "), draggable: "true", "data-column-index": columnIndex, onDragStart: onDragStart, onDragEnd: onDragEnd }, columnIndex));
31
+ return (_jsx("div", { style: { left: pointer - COLUMN_WIDTH, bottom: tableBodyHeight }, className: classNames.join(" "), draggable: "true", "data-column-index": columnIndex, onDragStart: onDragStart, onDragEnd: onDragEnd }, columnIndex));
32
32
  }) }));
33
33
  };
34
34
  export default ColumnResizers;
@@ -1,6 +1,7 @@
1
1
  export declare const DEFAULT_DATE_FORMAT = "dd MMM yyyy";
2
2
  export declare const DEFAULT_DATE_TIME_FORMAT = "dd MMM yyyy HH:mm";
3
3
  export declare const MINIMUM_COLUMN_WIDTH = 25;
4
+ export declare const COLUMN_WIDTH = 3;
4
5
  export declare enum ENumberColumnFilterOperation {
5
6
  "GT" = "GT",
6
7
  "LT" = "LT",
@@ -1,6 +1,7 @@
1
1
  export const DEFAULT_DATE_FORMAT = "dd MMM yyyy";
2
2
  export const DEFAULT_DATE_TIME_FORMAT = "dd MMM yyyy HH:mm";
3
3
  export const MINIMUM_COLUMN_WIDTH = 25;
4
+ export const COLUMN_WIDTH = 3;
4
5
  export var ENumberColumnFilterOperation;
5
6
  (function (ENumberColumnFilterOperation) {
6
7
  ENumberColumnFilterOperation["GT"] = "GT";
package/dist/index.css CHANGED
@@ -41,7 +41,7 @@
41
41
  .mig-schema-table__action-container {
42
42
  display: flex;
43
43
  flex-direction: row;
44
- padding-bottom: 1rem;
44
+ padding: 0.5rem;
45
45
  align-items: center;
46
46
  }
47
47
  .mig-schema-table__row_counter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mig-schema-table",
3
- "version": "3.0.122",
3
+ "version": "3.0.123",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/"