Skip to content

Commit

Permalink
Merge pull request #643 from revolist/filter-hooks
Browse files Browse the repository at this point in the history
docs: typing and comments
  • Loading branch information
revolist authored Nov 28, 2024
2 parents 89a75ad + faaf594 commit 93978cb
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs
Submodule docs updated 292 files
2 changes: 1 addition & 1 deletion formats/select
2 changes: 1 addition & 1 deletion packages/angular
2 changes: 1 addition & 1 deletion packages/react
Submodule react updated 2 files
+1 −1 demo/package.json
+2 −2 package.json
2 changes: 1 addition & 1 deletion packages/svelte
2 changes: 1 addition & 1 deletion packages/vue2
Submodule vue2 updated 2 files
+1 −1 demo/package.json
+2 −2 package.json
2 changes: 1 addition & 1 deletion packages/vue3
Submodule vue3 updated 2 files
+2 −2 demo/package.json
+2 −2 package.json
6 changes: 3 additions & 3 deletions src/components/overlay/autofill.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ export class AutoFillService {
/**
* Trigger range apply events and handle responses
*/
onRangeApply(data: DataLookup, range: RangeArea | null) {
onRangeApply(newData: DataLookup, range: RangeArea | null) {
this.sv.rangeDataApply({
data,
models: collectModelsOfRange(data, this.sv.dataStore),
data: newData,
models: collectModelsOfRange(newData, this.sv.dataStore),
type: this.sv.dataStore.get('type'),
});

Expand Down
12 changes: 6 additions & 6 deletions src/types/selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ export type TempRange = {
area: RangeArea;
};
export type OldNewRangeMapping = {
[rowIndex: number]: {
[T in ColumnProp]: {
rowIndex: number;
colIndex: number;
colProp: ColumnProp;
[newRowIndex: number]: {
[T in ColumnProp]: { // new column prop
rowIndex: number; // original row
colIndex: number; // original col
colProp: ColumnProp; // original column prop
};
};
};
Expand All @@ -70,7 +70,7 @@ export type ChangedRange = {
oldRange: RangeArea; // range to copy from
mapping: OldNewRangeMapping;
newData: {
[key: number]: DataType;
[newRowIndex: number]: DataType;
};
};

Expand Down

0 comments on commit 93978cb

Please sign in to comment.