@uxf/data-grid 11.58.0 → 11.59.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/data-grid",
3
- "version": "11.58.0",
3
+ "version": "11.59.1",
4
4
  "description": "UXF DataGrid",
5
5
  "homepage": "https://gitlab.com/uxf-npm/data-grid#readme",
6
6
  "main": "index.js",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@uxf/core": "11.58.0",
35
- "@uxf/core-react": "11.58.0",
36
- "@uxf/ui": "11.58.0",
35
+ "@uxf/core-react": "11.58.1",
36
+ "@uxf/ui": "11.58.1",
37
37
  "dayjs": "1.11.13",
38
38
  "deepmerge": "4.3.1",
39
39
  "fast-glob": "3.3.2",
@@ -185,6 +185,17 @@
185
185
  }
186
186
  }
187
187
 
188
+ /* ensures no overflowing when no action cell */
189
+ .uxf-dg-table__row .uxf-dg-table__cell:last-child {
190
+ .uxf-dg-table__column-resize-handle {
191
+ right: 0;
192
+
193
+ &::before {
194
+ right: 0;
195
+ }
196
+ }
197
+ }
198
+
188
199
  &__no-rows-fallback {
189
200
  align-items: center;
190
201
  color: theme("colors.gray.600"); /* ?? */
@@ -4,11 +4,17 @@ exports.getGridTemplateColumns = getGridTemplateColumns;
4
4
  const build_array_1 = require("@uxf/core/utils/build-array");
5
5
  const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
6
6
  const rem_1 = require("@uxf/styles/units/rem");
7
+ // if minWidth nor width is set for the column, take this
8
+ const COLUMN_DEFAULT_MIN_WIDTH = 80;
7
9
  function getGridTemplateColumns(config) {
8
10
  var _a, _b;
9
11
  return (0, build_array_1.buildArray)()
10
12
  .when((0, is_not_nil_1.isNotNil)(config.selectRowColumnWidth), (0, rem_1.rem)((_a = config.selectRowColumnWidth) !== null && _a !== void 0 ? _a : 0))
11
- .add(config.columns.map((col) => (col.minWidth ? `minmax(${col.minWidth},${col.width})` : col.width)).join(" "))
13
+ .add(config.columns
14
+ .map((col) => col.minWidth
15
+ ? `minmax(${col.minWidth},${col.width})`
16
+ : `minmax(${COLUMN_DEFAULT_MIN_WIDTH},${col.width})`)
17
+ .join(" "))
12
18
  .when((0, is_not_nil_1.isNotNil)(config.actionColumnWidth), `minmax(${(0, rem_1.rem)((_b = config.actionColumnWidth) !== null && _b !== void 0 ? _b : 0)}, auto)`)
13
19
  .join(" ");
14
20
  }