(core) updates from grist-core

This commit is contained in:
Paul Fitzpatrick
2022-02-21 13:44:13 -05:00
70 changed files with 91 additions and 91 deletions

View File

@@ -158,7 +158,7 @@ function BaseView(gristDoc, viewSectionModel, options) {
this._isLoading = ko.observable(true);
this._pendingCursorPos = this.viewSection.lastCursorPos;
// Initialize the cursor with the previous cursor position indicies, if they exist.
// Initialize the cursor with the previous cursor position indices, if they exist.
console.log("%s BaseView viewSection %s (%s) lastCursorPos %s", this._debugName, this.viewSection.getRowId(),
this.viewSection.table().tableId(), JSON.stringify(this.viewSection.lastCursorPos));
this.cursor = this.autoDispose(Cursor.create(null, this, this.viewSection.lastCursorPos));

View File

@@ -97,7 +97,7 @@ export class ColumnTransform extends Disposable {
}
/**
* Helper called by contructor to prepare the column transform.
* Helper called by constructor to prepare the column transform.
* @param {String} colType: A pure or complete type for the transformed column.
*/
public async prepare(optColType?: string) {
@@ -156,7 +156,7 @@ export class ColumnTransform extends Disposable {
}
/**
* Adds the tranform column and returns its colRef. May be overridden by derived classes to create
* Adds the transform column and returns its colRef. May be overridden by derived classes to create
* differently-prepared transform columns.
* @param {String} colType: A pure or complete type for the transformed column.
*/

View File

@@ -77,7 +77,7 @@ export class Drafts extends Disposable {
editor.setState(draft.state);
}
// We don't need the draft any more.
// If user presses escape one more time it will be crated
// If user presses escape one more time it will be created
// once again
storage.clear();
// Close the notification

View File

@@ -610,7 +610,7 @@ GridView.prototype.assignCursor = function(elem, elemType) {
};
/**
* Schedules cursor assignement to happen at end of tick. Calling `preventAssignCursor()` before
* Schedules cursor assignment to happen at end of tick. Calling `preventAssignCursor()` before
* prevents assignment to happen. This was added to prevent cursor assignment on a `context click`
* on a cell that is already selected.
*/

View File

@@ -351,7 +351,7 @@ export class Importer extends DisposableWithEvents {
destTableId,
destCols: transformFields.map<TransformColumn>((field) => ({
label: field.label(),
colId: destTableId ? field.colId() : null, // if inserting into new table, colId isnt defined
colId: destTableId ? field.colId() : null, // if inserting into new table, colId isn't defined
type: field.column().type(),
formula: field.column().formula()
})),

View File

@@ -215,7 +215,7 @@ RecordLayout.prototype.saveLayoutSpec = async function(layoutSpec) {
var addedPositions = [];
// Recursively process all layoutBoxes in the spec. Sets up bookkeeping arrays for
// exisiting fields and added fields for new/hidden cols from which the action bundle will
// existing fields and added fields for new/hidden cols from which the action bundle will
// be created.
function processBox(spec) {
// "empty" is a temporary placeholder used by LayoutEditor, and not a valid leaf.