@dxos/lit-grid 0.8.2-main.fbd8ed0 → 0.8.2-staging.7ac8446

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/src/types.ts CHANGED
@@ -153,18 +153,16 @@ export class DxAxisResizeInternal extends Event {
153
153
  }
154
154
  }
155
155
 
156
- export type DxEditRequestProps = Pick<DxEditRequest, 'cellIndex' | 'cellBox' | 'cellElement' | 'initialContent'>;
156
+ export type DxEditRequestProps = Pick<DxEditRequest, 'cellIndex' | 'cellBox' | 'initialContent'>;
157
157
 
158
158
  export class DxEditRequest extends Event {
159
159
  public readonly cellIndex: DxGridCellIndex;
160
160
  public readonly cellBox: Record<'insetInlineStart' | 'insetBlockStart' | 'inlineSize' | 'blockSize', number>;
161
- public readonly cellElement: HTMLElement | null;
162
161
  public readonly initialContent?: string;
163
162
  constructor(props: DxEditRequestProps) {
164
163
  super('dx-edit-request');
165
164
  this.cellIndex = props.cellIndex;
166
165
  this.cellBox = props.cellBox;
167
- this.cellElement = props.cellElement;
168
166
  this.initialContent = props.initialContent;
169
167
  }
170
168
  }
package/src/util.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- import { defaultRowSize } from './defs';
5
+ import { defaultSizeRow } from './defs';
6
6
  import {
7
7
  type DxGridPlaneCellIndex,
8
8
  type DxGridCellIndex,
@@ -16,8 +16,8 @@ import {
16
16
  type DxGridFrozenPlane,
17
17
  type DxGridAxis,
18
18
  type DxGridPlanePosition,
19
- type DxGridReadonlyValue,
20
19
  separator,
20
+ type DxGridReadonlyValue,
21
21
  } from './types';
22
22
 
23
23
  export const toPlaneCellIndex = (cellCoords: Partial<DxGridPosition> & DxGridPlanePosition): DxGridPlaneCellIndex =>
@@ -80,9 +80,9 @@ export const selectTolerance = 4;
80
80
  //
81
81
  // `size`, when suffixed with ‘row’ or ‘col’, are limits on size applied when resizing
82
82
  //
83
- export const sizeColMin = defaultRowSize;
83
+ export const sizeColMin = defaultSizeRow;
84
84
  export const sizeColMax = 1024;
85
- export const sizeRowMin = defaultRowSize;
85
+ export const sizeRowMin = defaultSizeRow;
86
86
  export const sizeRowMax = 1024;
87
87
 
88
88
  export const shouldSelect = (pointer: DxGridPointer, { pageX, pageY }: PointerEvent) => {