@omnigrid/selection-plugin 0.1.8 → 0.1.9

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/dist/index.js CHANGED
@@ -25,7 +25,7 @@ export class SelectionPlugin {
25
25
  this.checkboxRenderer = options.checkboxRenderer ?? defaultCheckboxRenderer;
26
26
  this.onSelectionChange = options.onSelectionChange;
27
27
  this.selectionColumnId = options.selectionColumnId ?? CHECKBOX_COLUMN_DEFAULT_ID;
28
- this.selectionColumnWidth = options.selectionColumnWidth ?? 44;
28
+ this.selectionColumnWidth = options.selectionColumnWidth ?? 36;
29
29
  }
30
30
  register(api) {
31
31
  this.api = api;
@@ -312,6 +312,7 @@ export class SelectionPlugin {
312
312
  width: this.selectionColumnWidth,
313
313
  minWidth: this.selectionColumnWidth,
314
314
  maxWidth: this.selectionColumnWidth,
315
+ align: "center",
315
316
  sortable: false,
316
317
  stopHeaderClick: true,
317
318
  stopRowClick: true,
package/dist/types.d.ts CHANGED
@@ -40,7 +40,7 @@ export interface SelectionPluginOptions<T> {
40
40
  onSelectionChange?: (state: SelectionState<T>) => void;
41
41
  /** ID for the automatically inserted checkbox column. @default "__omnigrid_selection__" */
42
42
  selectionColumnId?: string;
43
- /** Width in pixels of the automatically inserted checkbox column. @default 44 */
43
+ /** Width in pixels of the automatically inserted checkbox column. @default 36 */
44
44
  selectionColumnWidth?: number;
45
45
  }
46
46
  /** Selected row identifiers and their corresponding row data. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnigrid/selection-plugin",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Headless row selection plugin for OmniGrid",
5
5
  "keywords": [
6
6
  "omnigrid",