@deephaven/grid 0.51.1-beta.0 → 0.52.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.
@@ -4,6 +4,6 @@ export interface IColumnHeaderGroup {
4
4
  name: string;
5
5
  depth: number;
6
6
  color?: string;
7
- getVisibleRange(movedColumns: readonly MoveOperation[]): BoundedAxisRange;
7
+ getVisibleRange: (movedColumns: readonly MoveOperation[]) => BoundedAxisRange;
8
8
  }
9
9
  //# sourceMappingURL=ColumnHeaderGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnHeaderGroup.d.ts","sourceRoot":"","sources":["../src/ColumnHeaderGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,YAAY,EAAE,SAAS,aAAa,EAAE,GAAG,gBAAgB,CAAC;CAC3E"}
1
+ {"version":3,"file":"ColumnHeaderGroup.d.ts","sourceRoot":"","sources":["../src/ColumnHeaderGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,CAAC,YAAY,EAAE,SAAS,aAAa,EAAE,KAAK,gBAAgB,CAAC;CAC/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnHeaderGroup.js","names":[],"sources":["../src/ColumnHeaderGroup.ts"],"sourcesContent":["import { MoveOperation } from './GridMetrics';\nimport { BoundedAxisRange } from './GridAxisRange';\n\nexport interface IColumnHeaderGroup {\n name: string;\n depth: number;\n color?: string;\n getVisibleRange(movedColumns: readonly MoveOperation[]): BoundedAxisRange;\n}\n"],"mappings":""}
1
+ {"version":3,"file":"ColumnHeaderGroup.js","names":[],"sources":["../src/ColumnHeaderGroup.ts"],"sourcesContent":["import { MoveOperation } from './GridMetrics';\nimport { BoundedAxisRange } from './GridAxisRange';\n\nexport interface IColumnHeaderGroup {\n name: string;\n depth: number;\n color?: string;\n getVisibleRange: (movedColumns: readonly MoveOperation[]) => BoundedAxisRange;\n}\n"],"mappings":""}
@@ -43,6 +43,6 @@ export interface DataBarOptions {
43
43
  }
44
44
  export declare function isDataBarGridModel(model: GridModel): model is DataBarGridModel;
45
45
  export interface DataBarGridModel extends GridModel {
46
- dataBarOptionsForCell(column: ModelIndex, row: ModelIndex, theme: GridThemeType): DataBarOptions;
46
+ dataBarOptionsForCell: (column: ModelIndex, row: ModelIndex, theme: GridThemeType) => DataBarOptions;
47
47
  }
48
48
  //# sourceMappingURL=DataBarGridModel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataBarGridModel.d.ts","sourceRoot":"","sources":["../src/DataBarGridModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AACtD,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,QAAQ,GAAG,aAAa,CAAC;AACnE,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AACjE,MAAM,M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AAU,EAAE,eAAe,CAAC,CAAC;AAC5D,8DAA8D;AAC9D,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;AAChE,0DAA0D;AAC1D,MAAM,MAAM,SAAS,GAAG,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;AAClD,wDAAwD;AACxD,MAAM,MAAM,WAAW,GAAG,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAEnD,MAAM,MAAM,MAAM,GAAG,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAE7C,MAAM,MAAM,MAAM,GAAG,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;IAC/B,cAAc,EAAE,oBAAoB,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,eAAe,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,SAAS,GACf,KAAK,IAAI,gBAAgB,CAE3B;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,qBAAqB,EAAE,CACrB,MAAM,EAAE,UAAU,EAClB,GAAG,EAAE,UAAU,EACf,KAAK,EAAE,aAAa,KACjB,cAAc,CAAC;CACrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataBarGridModel.js","names":["isDataBarGridModel","model","dataBarOptionsForCell","undefined"],"sources":["../src/DataBarGridModel.ts"],"sourcesContent":["import { GridThemeType } from '.';\nimport { ModelIndex } from './GridMetrics';\nimport GridModel from './GridModel';\nimport { GridColor } from './GridTheme';\n\nexport type Marker = { value: number; color: string };\nexport type AxisOption = 'proportional' | 'middle' | 'directional';\nexport type ValuePlacementOption = 'beside' | 'overlap' | 'hide';\nexport type DirectionOption = 'LTR' | 'RTL';\n/** Map from ModelIndex to the axis option of the column */\nexport type ColumnAxisMap = Map<ModelIndex, AxisOption>;\n/** Map from ModelIndex to a color or an array of colors\n * If given an array, then the bar will be a gradient\n * The colors should be given left to right (e.g. it should be like ['yellow', 'green'] for positive color and ['red', 'yellow'] for negative color)\n */\nexport type ColorMap = Map<ModelIndex, GridColor | GridColor[]>;\n/** Map from ModelIndex to the value placement option of the column */\nexport type ValuePlacementMap = Map<ModelIndex, ValuePlacementOption>;\n/** Map from ModelIndex to the opacity of the column */\nexport type OpacityMap = Map<ModelIndex, number>;\n/** Map from ModelIndex to the direction of the column */\nexport type DirectionMap = Map<ModelIndex, DirectionOption>;\n/** Map from ModelIndex to the text alignment of the column */\nexport type TextAlignmentMap = Map<ModelIndex, CanvasTextAlign>;\n/** Map from column to the columns its markers are from */\nexport type MarkerMap = Map<ModelIndex, Marker[]>;\n/** Map from column to whether the bar has a gradient */\nexport type GradientMap = Map<ModelIndex, boolean>;\n// Map from ModelIndex to the minimum number in the column\nexport type MinMap = Map<ModelIndex, number>;\n// Map from ModelIndex to the maximum number in the column\nexport type MaxMap = Map<ModelIndex, number>;\n\nexport interface DataBarOptions {\n columnMin: number;\n columnMax: number;\n axis: AxisOption;\n color: GridColor | GridColor[];\n valuePlacement: ValuePlacementOption;\n opacity: number;\n markers: Marker[];\n direction: DirectionOption;\n value: number;\n}\n\nexport function isDataBarGridModel(\n model: GridModel\n): model is DataBarGridModel {\n return (model as DataBarGridModel)?.dataBarOptionsForCell !== undefined;\n}\n\nexport interface DataBarGridModel extends GridModel {\n dataBarOptionsForCell(\n column: ModelIndex,\n row: ModelIndex,\n theme: GridThemeType\n ): DataBarOptions;\n}\n"],"mappings":"AASA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAeA,OAAO,SAASA,kBAAkBA,CAChCC,KAAgB,EACW;EAC3B,OAAO,CAACA,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAuBC,qBAAqB,MAAKC,SAAS;AACzE"}
1
+ {"version":3,"file":"DataBarGridModel.js","names":["isDataBarGridModel","model","dataBarOptionsForCell","undefined"],"sources":["../src/DataBarGridModel.ts"],"sourcesContent":["import { GridThemeType } from '.';\nimport { ModelIndex } from './GridMetrics';\nimport GridModel from './GridModel';\nimport { GridColor } from './GridTheme';\n\nexport type Marker = { value: number; color: string };\nexport type AxisOption = 'proportional' | 'middle' | 'directional';\nexport type ValuePlacementOption = 'beside' | 'overlap' | 'hide';\nexport type DirectionOption = 'LTR' | 'RTL';\n/** Map from ModelIndex to the axis option of the column */\nexport type ColumnAxisMap = Map<ModelIndex, AxisOption>;\n/** Map from ModelIndex to a color or an array of colors\n * If given an array, then the bar will be a gradient\n * The colors should be given left to right (e.g. it should be like ['yellow', 'green'] for positive color and ['red', 'yellow'] for negative color)\n */\nexport type ColorMap = Map<ModelIndex, GridColor | GridColor[]>;\n/** Map from ModelIndex to the value placement option of the column */\nexport type ValuePlacementMap = Map<ModelIndex, ValuePlacementOption>;\n/** Map from ModelIndex to the opacity of the column */\nexport type OpacityMap = Map<ModelIndex, number>;\n/** Map from ModelIndex to the direction of the column */\nexport type DirectionMap = Map<ModelIndex, DirectionOption>;\n/** Map from ModelIndex to the text alignment of the column */\nexport type TextAlignmentMap = Map<ModelIndex, CanvasTextAlign>;\n/** Map from column to the columns its markers are from */\nexport type MarkerMap = Map<ModelIndex, Marker[]>;\n/** Map from column to whether the bar has a gradient */\nexport type GradientMap = Map<ModelIndex, boolean>;\n// Map from ModelIndex to the minimum number in the column\nexport type MinMap = Map<ModelIndex, number>;\n// Map from ModelIndex to the maximum number in the column\nexport type MaxMap = Map<ModelIndex, number>;\n\nexport interface DataBarOptions {\n columnMin: number;\n columnMax: number;\n axis: AxisOption;\n color: GridColor | GridColor[];\n valuePlacement: ValuePlacementOption;\n opacity: number;\n markers: Marker[];\n direction: DirectionOption;\n value: number;\n}\n\nexport function isDataBarGridModel(\n model: GridModel\n): model is DataBarGridModel {\n return (model as DataBarGridModel)?.dataBarOptionsForCell !== undefined;\n}\n\nexport interface DataBarGridModel extends GridModel {\n dataBarOptionsForCell: (\n column: ModelIndex,\n row: ModelIndex,\n theme: GridThemeType\n ) => DataBarOptions;\n}\n"],"mappings":"AASA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAeA,OAAO,SAASA,kBAAkBA,CAChCC,KAAgB,EACW;EAC3B,OAAO,CAACA,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAuBC,qBAAqB,MAAKC,SAAS;AACzE"}
@@ -28,14 +28,14 @@ export interface EditableGridModel extends GridModel {
28
28
  * @param range The range to check if it is editable
29
29
  * @returns True if the range is editable
30
30
  */
31
- isEditableRange(range: GridRange): boolean;
31
+ isEditableRange: (range: GridRange) => boolean;
32
32
  /**
33
33
  * Get the edit text for a cell as a string
34
34
  * @param column Column to get
35
35
  * @param row Row to get
36
36
  * @returns The value to use for editing
37
37
  */
38
- editValueForCell(column: ModelIndex, row: ModelIndex): string;
38
+ editValueForCell: (column: ModelIndex, row: ModelIndex) => string;
39
39
  /**
40
40
  * Set value in an editable table
41
41
  * @param column Column to set
@@ -43,20 +43,20 @@ export interface EditableGridModel extends GridModel {
43
43
  * @param value The value to set
44
44
  * @returns A promise that resolves successfully when the operation is complete, or rejects if there's an error
45
45
  */
46
- setValueForCell(column: ModelIndex, row: ModelIndex, value: string): Promise<void>;
46
+ setValueForCell: (column: ModelIndex, row: ModelIndex, value: string) => Promise<void>;
47
47
  /**
48
48
  * Set value in an editable table
49
49
  * @param ranges The ranges to set
50
50
  * @param value The value to set
51
51
  * @returns A promise that resolves successfully when the operation is complete, or rejects if there's an error
52
52
  */
53
- setValueForRanges(ranges: readonly GridRange[], value: string): Promise<void>;
53
+ setValueForRanges: (ranges: readonly GridRange[], value: string) => Promise<void>;
54
54
  /**
55
55
  * Apply edits to the model
56
56
  * @param edits Edits to apply to the model
57
57
  * @returns A promise that resolves successfully when the operation is complete or rejects if there's an error
58
58
  */
59
- setValues(edits: readonly EditOperation[]): Promise<void>;
59
+ setValues: (edits: readonly EditOperation[]) => Promise<void>;
60
60
  /**
61
61
  * Check if a text value is a valid edit for a cell
62
62
  * @param column Column to check
@@ -64,7 +64,7 @@ export interface EditableGridModel extends GridModel {
64
64
  * @param value Value to check if it's a valid value or not
65
65
  * @returns True if it's a valid value, false otherwise
66
66
  */
67
- isValidForCell(column: ModelIndex, row: ModelIndex, value: string): boolean;
67
+ isValidForCell: (column: ModelIndex, row: ModelIndex, value: string) => boolean;
68
68
  }
69
69
  export default EditableGridModel;
70
70
  //# sourceMappingURL=EditableGridModel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditableGridModel.d.ts","sourceRoot":"","sources":["../src/EditableGridModel.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,SAAS,MAAM,aAAa,CAAC;AAGpC,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,SAAS,GACf,KAAK,IAAI,iBAAiB,CAE5B;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,SAAS,GACf,OAAO,CAAC,KAAK,IAAI,iBAAiB,CAMpC;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,kCAAkC;IAClC,MAAM,EAAE,UAAU,CAAC;IAEnB,+BAA+B;IAC/B,GAAG,EAAE,UAAU,CAAC;IAEhB,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IAEb,uCAAuC;IACvC,CAAC,CAAC,EAAE,UAAU,CAAC;IACf,oCAAoC;IACpC,CAAC,CAAC,EAAE,UAAU,CAAC;CAChB,CAAC;AAEF;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+B;IAC/B,GAAG,EAAE,UAAU,CAAC;IAEhB,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IAEb,uCAAuC;IACvC,CAAC,CAAC,EAAE,UAAU,CAAC;IACf,oCAAoC;IACpC,CAAC,CAAC,EAAE,UAAU,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,UAAU,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,eAAe,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC;IAE/C;;;;;OAKG;IACH,gBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,KAAK,MAAM,CAAC;IAElE;;;;;;OAMG;IACH,eAAe,EAAE,CACf,MAAM,EAAE,UAAU,EAClB,GAAG,EAAE,UAAU,EACf,KAAK,EAAE,MAAM,KACV,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnB;;;;;OAKG;IACH,iBAAiB,EAAE,CACjB,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,KAAK,EAAE,MAAM,KACV,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnB;;;;OAIG;IACH,SAAS,EAAE,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9D;;;;;;OAMG;IACH,cAAc,EAAE,CACd,MAAM,EAAE,UAAU,EAClB,GAAG,EAAE,UAAU,EACf,KAAK,EAAE,MAAM,KACV,OAAO,CAAC;CACd;AAED,eAAe,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EditableGridModel.js","names":["AssertionError","isEditableGridModel","model","isEditable","undefined","assertIsEditableGridModel","concat"],"sources":["../src/EditableGridModel.ts"],"sourcesContent":["import GridRange from './GridRange';\nimport { ModelIndex } from './GridMetrics';\nimport GridModel from './GridModel';\nimport { AssertionError } from './errors';\n\nexport function isEditableGridModel(\n model: GridModel\n): model is EditableGridModel {\n return (model as EditableGridModel)?.isEditable !== undefined;\n}\n\nexport function assertIsEditableGridModel(\n model: GridModel\n): asserts model is EditableGridModel {\n if (!isEditableGridModel(model)) {\n throw new AssertionError(\n `Expected 'model' to be editable, but received ${model}`\n );\n }\n}\n\n/**\n * Edit operation when applying multiple edits\n */\nexport type EditOperation = {\n /** Column to set the value for */\n column: ModelIndex;\n\n /** Row to set the value for */\n row: ModelIndex;\n\n /** Text value to set */\n text: string;\n\n /** @deprecated use `column` instead */\n x?: ModelIndex;\n /** @deprecated use `row` instead */\n y?: ModelIndex;\n};\n\n/**\n * Model for an editable grid\n */\nexport interface EditableGridModel extends GridModel {\n isEditable: boolean;\n\n /**\n * Check if a given range is editable\n * @param range The range to check if it is editable\n * @returns True if the range is editable\n */\n isEditableRange(range: GridRange): boolean;\n\n /**\n * Get the edit text for a cell as a string\n * @param column Column to get\n * @param row Row to get\n * @returns The value to use for editing\n */\n editValueForCell(column: ModelIndex, row: ModelIndex): string;\n\n /**\n * Set value in an editable table\n * @param column Column to set\n * @param row Row to set\n * @param value The value to set\n * @returns A promise that resolves successfully when the operation is complete, or rejects if there's an error\n */\n setValueForCell(\n column: ModelIndex,\n row: ModelIndex,\n value: string\n ): Promise<void>;\n\n /**\n * Set value in an editable table\n * @param ranges The ranges to set\n * @param value The value to set\n * @returns A promise that resolves successfully when the operation is complete, or rejects if there's an error\n */\n setValueForRanges(ranges: readonly GridRange[], value: string): Promise<void>;\n\n /**\n * Apply edits to the model\n * @param edits Edits to apply to the model\n * @returns A promise that resolves successfully when the operation is complete or rejects if there's an error\n */\n setValues(edits: readonly EditOperation[]): Promise<void>;\n\n /**\n * Check if a text value is a valid edit for a cell\n * @param column Column to check\n * @param row Row to check\n * @param value Value to check if it's a valid value or not\n * @returns True if it's a valid value, false otherwise\n */\n isValidForCell(column: ModelIndex, row: ModelIndex, value: string): boolean;\n}\n\nexport default EditableGridModel;\n"],"mappings":"SAGSA,cAAc;AAEvB,OAAO,SAASC,mBAAmBA,CACjCC,KAAgB,EACY;EAC5B,OAAO,CAACA,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAwBC,UAAU,MAAKC,SAAS;AAC/D;AAEA,OAAO,SAASC,yBAAyBA,CACvCH,KAAgB,EACoB;EACpC,IAAI,CAACD,mBAAmB,CAACC,KAAK,CAAC,EAAE;IAC/B,MAAM,IAAIF,cAAc,kDAAAM,MAAA,CAC2BJ,KAAK,CACxD,CAAC;EACH;AACF;;AAEA;AACA;AACA;;AAiBA;AACA;AACA"}
1
+ {"version":3,"file":"EditableGridModel.js","names":["AssertionError","isEditableGridModel","model","isEditable","undefined","assertIsEditableGridModel","concat"],"sources":["../src/EditableGridModel.ts"],"sourcesContent":["import GridRange from './GridRange';\nimport { ModelIndex } from './GridMetrics';\nimport GridModel from './GridModel';\nimport { AssertionError } from './errors';\n\nexport function isEditableGridModel(\n model: GridModel\n): model is EditableGridModel {\n return (model as EditableGridModel)?.isEditable !== undefined;\n}\n\nexport function assertIsEditableGridModel(\n model: GridModel\n): asserts model is EditableGridModel {\n if (!isEditableGridModel(model)) {\n throw new AssertionError(\n `Expected 'model' to be editable, but received ${model}`\n );\n }\n}\n\n/**\n * Edit operation when applying multiple edits\n */\nexport type EditOperation = {\n /** Column to set the value for */\n column: ModelIndex;\n\n /** Row to set the value for */\n row: ModelIndex;\n\n /** Text value to set */\n text: string;\n\n /** @deprecated use `column` instead */\n x?: ModelIndex;\n /** @deprecated use `row` instead */\n y?: ModelIndex;\n};\n\n/**\n * Model for an editable grid\n */\nexport interface EditableGridModel extends GridModel {\n isEditable: boolean;\n\n /**\n * Check if a given range is editable\n * @param range The range to check if it is editable\n * @returns True if the range is editable\n */\n isEditableRange: (range: GridRange) => boolean;\n\n /**\n * Get the edit text for a cell as a string\n * @param column Column to get\n * @param row Row to get\n * @returns The value to use for editing\n */\n editValueForCell: (column: ModelIndex, row: ModelIndex) => string;\n\n /**\n * Set value in an editable table\n * @param column Column to set\n * @param row Row to set\n * @param value The value to set\n * @returns A promise that resolves successfully when the operation is complete, or rejects if there's an error\n */\n setValueForCell: (\n column: ModelIndex,\n row: ModelIndex,\n value: string\n ) => Promise<void>;\n\n /**\n * Set value in an editable table\n * @param ranges The ranges to set\n * @param value The value to set\n * @returns A promise that resolves successfully when the operation is complete, or rejects if there's an error\n */\n setValueForRanges: (\n ranges: readonly GridRange[],\n value: string\n ) => Promise<void>;\n\n /**\n * Apply edits to the model\n * @param edits Edits to apply to the model\n * @returns A promise that resolves successfully when the operation is complete or rejects if there's an error\n */\n setValues: (edits: readonly EditOperation[]) => Promise<void>;\n\n /**\n * Check if a text value is a valid edit for a cell\n * @param column Column to check\n * @param row Row to check\n * @param value Value to check if it's a valid value or not\n * @returns True if it's a valid value, false otherwise\n */\n isValidForCell: (\n column: ModelIndex,\n row: ModelIndex,\n value: string\n ) => boolean;\n}\n\nexport default EditableGridModel;\n"],"mappings":"SAGSA,cAAc;AAEvB,OAAO,SAASC,mBAAmBA,CACjCC,KAAgB,EACY;EAC5B,OAAO,CAACA,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAwBC,UAAU,MAAKC,SAAS;AAC/D;AAEA,OAAO,SAASC,yBAAyBA,CACvCH,KAAgB,EACoB;EACpC,IAAI,CAACD,mBAAmB,CAACC,KAAK,CAAC,EAAE;IAC/B,MAAM,IAAIF,cAAc,kDAAAM,MAAA,CAC2BJ,KAAK,CACxD,CAAC;EACH;AACF;;AAEA;AACA;AACA;;AAiBA;AACA;AACA"}
@@ -13,33 +13,33 @@ export interface ExpandableGridModel extends GridModel {
13
13
  * @param row Row to check
14
14
  * @returns True if the row is expandable
15
15
  */
16
- isRowExpandable(row: ModelIndex): boolean;
16
+ isRowExpandable: (row: ModelIndex) => boolean;
17
17
  /**
18
18
  * @param row Row to check
19
19
  * @returns True if the row is currently expanded
20
20
  */
21
- isRowExpanded(row: ModelIndex): boolean;
21
+ isRowExpanded: (row: ModelIndex) => boolean;
22
22
  /**
23
23
  * Change the expanded status of an expandable row
24
24
  * @param row Row to expand
25
25
  * @param isExpanded True to expand the row, false to collapse
26
26
  * @param expandDescendants True to expand nested rows, false otherwise
27
27
  */
28
- setRowExpanded(row: ModelIndex, isExpanded: boolean, expandDescendants?: boolean): void;
28
+ setRowExpanded: (row: ModelIndex, isExpanded: boolean, expandDescendants?: boolean) => void;
29
29
  /**
30
30
  * Expand all rows
31
31
  */
32
- expandAll(): void;
32
+ expandAll: () => void;
33
33
  /**
34
34
  * Collapse all rows
35
35
  */
36
- collapseAll(): void;
36
+ collapseAll: () => void;
37
37
  /**
38
38
  * Get the depth of a row (ie. How indented the row should be)
39
39
  * @param row Row to check
40
40
  * @returns Depth of the row
41
41
  */
42
- depthForRow(row: ModelIndex): number;
42
+ depthForRow: (row: ModelIndex) => number;
43
43
  }
44
44
  export default ExpandableGridModel;
45
45
  //# sourceMappingURL=ExpandableGridModel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExpandableGridModel.d.ts","sourceRoot":"","sources":["../src/ExpandableGridModel.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,SAAS,GACf,KAAK,IAAI,mBAAmB,CAE9B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,qDAAqD;IACrD,iBAAiB,EAAE,OAAO,CAAC;IAE3B,sCAAsC;IACtC,oBAAoB,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,eAAe,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC;IAE1C;;;OAGG;IACH,aAAa,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC;IAExC;;;;;OAKG;IACH,cAAc,CACZ,GAAG,EAAE,UAAU,EACf,UAAU,EAAE,OAAO,EACnB,iBAAiB,CAAC,EAAE,OAAO,GAC1B,IAAI,CAAC;IAER;;OAEG;IACH,SAAS,IAAI,IAAI,CAAC;IAElB;;OAEG;IACH,WAAW,IAAI,IAAI,CAAC;IAEpB;;;;OAIG;IACH,WAAW,CAAC,GAAG,EAAE,UAAU,GAAG,MAAM,CAAC;CACtC;AAED,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"ExpandableGridModel.d.ts","sourceRoot":"","sources":["../src/ExpandableGridModel.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,SAAS,GACf,KAAK,IAAI,mBAAmB,CAE9B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,qDAAqD;IACrD,iBAAiB,EAAE,OAAO,CAAC;IAE3B,sCAAsC;IACtC,oBAAoB,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,eAAe,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,OAAO,CAAC;IAE9C;;;OAGG;IACH,aAAa,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,OAAO,CAAC;IAE5C;;;;;OAKG;IACH,cAAc,EAAE,CACd,GAAG,EAAE,UAAU,EACf,UAAU,EAAE,OAAO,EACnB,iBAAiB,CAAC,EAAE,OAAO,KACxB,IAAI,CAAC;IAEV;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAC;IAEtB;;OAEG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB;;;;OAIG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,MAAM,CAAC;CAC1C;AAED,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExpandableGridModel.js","names":["isExpandableGridModel","model","hasExpandableRows","undefined"],"sources":["../src/ExpandableGridModel.ts"],"sourcesContent":["import GridModel from './GridModel';\nimport { ModelIndex } from './GridMetrics';\n\nexport function isExpandableGridModel(\n model: GridModel\n): model is ExpandableGridModel {\n return (model as ExpandableGridModel)?.hasExpandableRows !== undefined;\n}\n\n/**\n * Expandable grid model. Allows for a grid with rows that can expand (e.g. A Tree Table)\n */\nexport interface ExpandableGridModel extends GridModel {\n /** Whether the grid has rows that can be expanded */\n hasExpandableRows: boolean;\n\n /** Whether the grid can expand all */\n isExpandAllAvailable: boolean;\n\n /**\n * @param row Row to check\n * @returns True if the row is expandable\n */\n isRowExpandable(row: ModelIndex): boolean;\n\n /**\n * @param row Row to check\n * @returns True if the row is currently expanded\n */\n isRowExpanded(row: ModelIndex): boolean;\n\n /**\n * Change the expanded status of an expandable row\n * @param row Row to expand\n * @param isExpanded True to expand the row, false to collapse\n * @param expandDescendants True to expand nested rows, false otherwise\n */\n setRowExpanded(\n row: ModelIndex,\n isExpanded: boolean,\n expandDescendants?: boolean\n ): void;\n\n /**\n * Expand all rows\n */\n expandAll(): void;\n\n /**\n * Collapse all rows\n */\n collapseAll(): void;\n\n /**\n * Get the depth of a row (ie. How indented the row should be)\n * @param row Row to check\n * @returns Depth of the row\n */\n depthForRow(row: ModelIndex): number;\n}\n\nexport default ExpandableGridModel;\n"],"mappings":"AAGA,OAAO,SAASA,qBAAqBA,CACnCC,KAAgB,EACc;EAC9B,OAAO,CAACA,KAAK,aAALA,KAAK,uBAALA,KAAK,CAA0BC,iBAAiB,MAAKC,SAAS;AACxE;;AAEA;AACA;AACA"}
1
+ {"version":3,"file":"ExpandableGridModel.js","names":["isExpandableGridModel","model","hasExpandableRows","undefined"],"sources":["../src/ExpandableGridModel.ts"],"sourcesContent":["import GridModel from './GridModel';\nimport { ModelIndex } from './GridMetrics';\n\nexport function isExpandableGridModel(\n model: GridModel\n): model is ExpandableGridModel {\n return (model as ExpandableGridModel)?.hasExpandableRows !== undefined;\n}\n\n/**\n * Expandable grid model. Allows for a grid with rows that can expand (e.g. A Tree Table)\n */\nexport interface ExpandableGridModel extends GridModel {\n /** Whether the grid has rows that can be expanded */\n hasExpandableRows: boolean;\n\n /** Whether the grid can expand all */\n isExpandAllAvailable: boolean;\n\n /**\n * @param row Row to check\n * @returns True if the row is expandable\n */\n isRowExpandable: (row: ModelIndex) => boolean;\n\n /**\n * @param row Row to check\n * @returns True if the row is currently expanded\n */\n isRowExpanded: (row: ModelIndex) => boolean;\n\n /**\n * Change the expanded status of an expandable row\n * @param row Row to expand\n * @param isExpanded True to expand the row, false to collapse\n * @param expandDescendants True to expand nested rows, false otherwise\n */\n setRowExpanded: (\n row: ModelIndex,\n isExpanded: boolean,\n expandDescendants?: boolean\n ) => void;\n\n /**\n * Expand all rows\n */\n expandAll: () => void;\n\n /**\n * Collapse all rows\n */\n collapseAll: () => void;\n\n /**\n * Get the depth of a row (ie. How indented the row should be)\n * @param row Row to check\n * @returns Depth of the row\n */\n depthForRow: (row: ModelIndex) => number;\n}\n\nexport default ExpandableGridModel;\n"],"mappings":"AAGA,OAAO,SAASA,qBAAqBA,CACnCC,KAAgB,EACc;EAC9B,OAAO,CAACA,KAAK,aAALA,KAAK,uBAALA,KAAK,CAA0BC,iBAAiB,MAAKC,SAAS;AACxE;;AAEA;AACA;AACA"}
package/dist/Grid.d.ts CHANGED
@@ -12,6 +12,10 @@ import KeyHandler, { GridKeyboardEvent } from './KeyHandler';
12
12
  import GridMetrics, { Coordinate, ModelIndex, MoveOperation, VisibleIndex } from './GridMetrics';
13
13
  import { DraggingColumn } from './mouse-handlers/GridColumnMoveMouseHandler';
14
14
  import { EditingCell, GridRenderState, EditingCellTextSelectionRange } from './GridRendererTypes';
15
+ export type StickyOptions = {
16
+ shouldStickBottom?: boolean;
17
+ shouldStickRight?: boolean;
18
+ };
15
19
  export type GridProps = typeof Grid.defaultProps & {
16
20
  canvasOptions?: CanvasRenderingContext2DSettings;
17
21
  isStickyBottom?: boolean;
@@ -311,8 +315,9 @@ declare class Grid extends PureComponent<GridProps, GridState> {
311
315
  * @param deltaColumn Number of columns to move the cursor
312
316
  * @param deltaRow Number of rows to move the cursor
313
317
  * @param extendSelection True if the current selection should be extended, false to start a new selection
318
+ * @param stickyOptions Options for sticky behavior
314
319
  */
315
- moveCursor(deltaColumn: number, deltaRow: number, extendSelection: boolean): void;
320
+ moveCursor(deltaColumn: number, deltaRow: number, extendSelection: boolean, stickyOptions?: StickyOptions): void;
316
321
  /**
317
322
  * Move the cursor in the provided selection direction
318
323
  * @param direction The direction to move the cursor in
@@ -325,22 +330,25 @@ declare class Grid extends PureComponent<GridProps, GridState> {
325
330
  * @param extendSelection Whether to extend the current selection (eg. holding Shift)
326
331
  * @param keepCursorInView Whether to move the viewport so that the cursor is in view
327
332
  * @param maximizePreviousRange With this and `extendSelection` true, it will maximize/add to the previous range only, ignoring where the selection was started
333
+ * @param stickyOptions Options for sticky behavior
328
334
  */
329
- moveCursorToPosition(column: GridRangeIndex, row: GridRangeIndex, extendSelection?: boolean, keepCursorInView?: boolean, maximizePreviousRange?: boolean): void;
335
+ moveCursorToPosition(column: GridRangeIndex, row: GridRangeIndex, extendSelection?: boolean, keepCursorInView?: boolean, maximizePreviousRange?: boolean, stickyOptions?: StickyOptions): void;
330
336
  /**
331
337
  * Moves the view to make the specified cell visible
332
338
  *
333
339
  * @param column The column index to bring into view
334
340
  * @param row The row index to bring into view
341
+ * @param stickyOptions Options for sticky behavior
335
342
  */
336
- moveViewToCell(column: GridRangeIndex, row: GridRangeIndex): void;
343
+ moveViewToCell(column: GridRangeIndex, row: GridRangeIndex, stickyOptions?: StickyOptions): void;
337
344
  /**
338
345
  * Checks the `top` and `left` properties that are set and updates the isStuckToBottom/Right properties
339
346
  * Should be called when user interaction occurs
340
347
  * @param viewState New state properties to set.
341
348
  * @param forceUpdate Whether to force an update.
349
+ * @param stickyOptions Options for sticky behavior
342
350
  */
343
- setViewState(viewState: Partial<GridState>, forceUpdate?: boolean): void;
351
+ setViewState(viewState: Partial<GridState>, forceUpdate?: boolean, stickyOptions?: StickyOptions): void;
344
352
  /**
345
353
  * Start editing the data at the given index
346
354
  *
@@ -1 +1 @@
1
-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AgB1C;;;OAGG;IACH,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG,IAAI;IAchD;;;OAGG;IACH,aAAa,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;IAc7C;;;;;;OAMG;IACH,mBAAmB,CACjB,YAAY,EAAE,4BAA4B,EAC1C,KAAK,EAAE,cAAc,EACrB,iBAAiB,UAAO,EACxB,mBAAmB,UAAQ,GAC1B,IAAI;IAiCP,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG,IAAI;IAa9C,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG,IAAI;IAIhD,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG,IAAI;IAI9C,gBAAgB,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG,IAAI;IAK/C,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAOxC,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAetC,YAAY,IAAI,IAAI;IAepB,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IA+LpC;;OAEG;IACH,oBAAoB,IAAI,IAAI;IAK5B;;;OAGG;IACH,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAiBzC;;;;OAIG;IACH,oBAAoB,CAClB,KAAK,EAAE,MAAM,EACb,EACE,SAAoC,EACpC,SAAiB,GAClB,GAAE;QAAE,SAAS,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAO,GACtE,IAAI;IA6BP,gBAAgB,IAAI,SAAS;IA8D7B;;;OAGG;IACH,iBAAiB,IAAI,eAAe;IAwDpC,MAAM,IAAI,SAAS;CAyBpB;AAED,eAAe,IAAI,CAAC"}
package/dist/Grid.js CHANGED
@@ -920,8 +920,9 @@ class Grid extends PureComponent {
920
920
  * @param deltaColumn Number of columns to move the cursor
921
921
  * @param deltaRow Number of rows to move the cursor
922
922
  * @param extendSelection True if the current selection should be extended, false to start a new selection
923
+ * @param stickyOptions Options for sticky behavior
923
924
  */
924
- moveCursor(deltaColumn, deltaRow, extendSelection) {
925
+ moveCursor(deltaColumn, deltaRow, extendSelection, stickyOptions) {
925
926
  var {
926
927
  cursorRow,
927
928
  cursorColumn,
@@ -935,7 +936,7 @@ class Grid extends PureComponent {
935
936
  left,
936
937
  top
937
938
  } = this.state;
938
- this.moveCursorToPosition(left, top, extendSelection);
939
+ this.moveCursorToPosition(left, top, extendSelection, true, false, stickyOptions);
939
940
  } else {
940
941
  var {
941
942
  model
@@ -946,7 +947,7 @@ class Grid extends PureComponent {
946
947
  } = model;
947
948
  var _left = clamp(column + deltaColumn, 0, columnCount - 1);
948
949
  var _top = clamp(row + deltaRow, 0, rowCount - 1);
949
- this.moveCursorToPosition(_left, _top, extendSelection);
950
+ this.moveCursorToPosition(_left, _top, extendSelection, true, false, stickyOptions);
950
951
  }
951
952
  }
952
953
 
@@ -1007,17 +1008,19 @@ class Grid extends PureComponent {
1007
1008
  * @param extendSelection Whether to extend the current selection (eg. holding Shift)
1008
1009
  * @param keepCursorInView Whether to move the viewport so that the cursor is in view
1009
1010
  * @param maximizePreviousRange With this and `extendSelection` true, it will maximize/add to the previous range only, ignoring where the selection was started
1011
+ * @param stickyOptions Options for sticky behavior
1010
1012
  */
1011
1013
  moveCursorToPosition(column, row) {
1012
1014
  var extendSelection = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
1013
1015
  var keepCursorInView = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
1014
1016
  var maximizePreviousRange = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
1017
+ var stickyOptions = arguments.length > 5 ? arguments[5] : undefined;
1015
1018
  if (!extendSelection) {
1016
1019
  this.beginSelection(column, row);
1017
1020
  }
1018
1021
  this.moveSelection(column, row, extendSelection, maximizePreviousRange);
1019
1022
  if (keepCursorInView) {
1020
- this.moveViewToCell(column, row);
1023
+ this.moveViewToCell(column, row, stickyOptions);
1021
1024
  }
1022
1025
  }
1023
1026
 
@@ -1026,8 +1029,9 @@ class Grid extends PureComponent {
1026
1029
  *
1027
1030
  * @param column The column index to bring into view
1028
1031
  * @param row The row index to bring into view
1032
+ * @param stickyOptions Options for sticky behavior
1029
1033
  */
1030
- moveViewToCell(column, row) {
1034
+ moveViewToCell(column, row, stickyOptions) {
1031
1035
  if (!this.metrics) throw new Error('metrics not set');
1032
1036
  var {
1033
1037
  metricCalculator
@@ -1068,7 +1072,7 @@ class Grid extends PureComponent {
1068
1072
  left,
1069
1073
  topOffset,
1070
1074
  leftOffset
1071
- });
1075
+ }, false, stickyOptions);
1072
1076
  }
1073
1077
 
1074
1078
  /**
@@ -1076,9 +1080,13 @@ class Grid extends PureComponent {
1076
1080
  * Should be called when user interaction occurs
1077
1081
  * @param viewState New state properties to set.
1078
1082
  * @param forceUpdate Whether to force an update.
1083
+ * @param stickyOptions Options for sticky behavior
1079
1084
  */
1085
+
1080
1086
  setViewState(viewState) {
1087
+ var _stickyOptions$should, _stickyOptions$should2;
1081
1088
  var forceUpdate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1089
+ var stickyOptions = arguments.length > 2 ? arguments[2] : undefined;
1082
1090
  if (!this.metrics) throw new Error('metrics not set');
1083
1091
  var {
1084
1092
  isStickyBottom,
@@ -1092,12 +1100,12 @@ class Grid extends PureComponent {
1092
1100
  lastTop,
1093
1101
  lastLeft
1094
1102
  } = this.metrics;
1095
- if (top != null) {
1103
+ if (top != null && ((_stickyOptions$should = stickyOptions === null || stickyOptions === void 0 ? void 0 : stickyOptions.shouldStickBottom) !== null && _stickyOptions$should !== void 0 ? _stickyOptions$should : false)) {
1096
1104
  this.setState({
1097
1105
  isStuckToBottom: isStickyBottom && top >= lastTop
1098
1106
  });
1099
1107
  }
1100
- if (left != null) {
1108
+ if (left != null && ((_stickyOptions$should2 = stickyOptions === null || stickyOptions === void 0 ? void 0 : stickyOptions.shouldStickRight) !== null && _stickyOptions$should2 !== void 0 ? _stickyOptions$should2 : false)) {
1101
1109
  this.setState({
1102
1110
  isStuckToRight: isStickyRight && left >= lastLeft
1103
1111
  });
@@ -1679,12 +1687,16 @@ class Grid extends PureComponent {
1679
1687
  }
1680
1688
  }
1681
1689
  }
1690
+ var stickyOptions = {
1691
+ shouldStickBottom: event.deltaY > 0,
1692
+ shouldStickRight: event.deltaX > 0
1693
+ };
1682
1694
  this.setViewState({
1683
1695
  top,
1684
1696
  left,
1685
1697
  leftOffset,
1686
1698
  topOffset
1687
- });
1699
+ }, false, stickyOptions);
1688
1700
  event.stopPropagation();
1689
1701
  event.preventDefault();
1690
1702
  }