@rozie-ui/data-table-solid 0.4.0 → 0.6.0

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": "@rozie-ui/data-table-solid",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -35,6 +35,7 @@
35
35
  "exports": {
36
36
  ".": {
37
37
  "types": "./dist/index.d.mts",
38
+ "solid": "./dist/source/index.jsx",
38
39
  "import": "./dist/index.mjs",
39
40
  "require": "./dist/index.cjs"
40
41
  },
@@ -46,7 +47,7 @@
46
47
  ],
47
48
  "dependencies": {
48
49
  "@solid-primitives/keyed": "^1.5.3",
49
- "@rozie/runtime-solid": "0.7.3"
50
+ "@rozie/runtime-solid": "^0.7.5"
50
51
  },
51
52
  "peerDependencies": {
52
53
  "solid-js": "^1.8",
@@ -68,7 +69,11 @@
68
69
  "optional": false
69
70
  }
70
71
  },
71
- "devDependencies": {},
72
+ "devDependencies": {
73
+ "@babel/core": "^7.29.0",
74
+ "@babel/preset-typescript": "^7.28.5",
75
+ "babel-preset-solid": "~1.8.22"
76
+ },
72
77
  "publishConfig": {
73
78
  "access": "public"
74
79
  },
package/src/Column.tsx CHANGED
@@ -26,11 +26,11 @@ interface ColumnProps {
26
26
  */
27
27
  filterable?: boolean;
28
28
  /**
29
- * Pin side: `''` (unpinned) | `'left'` | `'right'`. Reserved metadata carried into the parent's column pinning state.
29
+ * Initial pin side: `''` (unpinned) | `'left'` | `'right'`. Applied once as the table's starting `columnPinning` state, so `getIsPinned()` reports it and the column joins the matching sticky rail — which also reorders it, since visible cells are ordered `[left-pinned, center, right-pinned]`. Ignored if the consumer has already pinned something; an interactive unpin is never re-applied.
30
30
  */
31
31
  pinned?: string;
32
32
  /**
33
- * Optional fixed/initial column width — a CSS length string or a px number.
33
+ * Optional fixed/initial column width, applied as the column's starting size — a px number (`120`) or a px string (`'120px'`). Column sizing is numeric px, so other CSS lengths (`'12rem'`, `'20%'`, `'auto'`) have no px value to apply and are ignored; the column keeps the default width. An interactive resize overrides this.
34
34
  */
35
35
  width?: string | number;
36
36
  /**
@@ -50,7 +50,7 @@ interface ColumnProps {
50
50
  */
51
51
  editable?: boolean;
52
52
  /**
53
- * Built-in editor type for this column: `'text'` | `'number'` | `'select'` | `'checkbox'`. Ignored when a custom `#editor` scoped slot handles the column. Default `'text'`.
53
+ * Editor type for this column: `'text'` | `'number'` | `'select'` | `'checkbox'` (built-in inputs), or `'custom'` to hand rendering to the `#editor` scoped slot (or a per-column `editor-<columnId>` fill). Default `'text'`. **`'custom'` is the gate:** a column left on a built-in type ignores any `#editor` fill and renders the built-in input. Requires `editable: true` — and, for any pointer or keyboard edit entry, `interactionMode="grid"` on the table.
54
54
  */
55
55
  editor?: string;
56
56
  /**