UNPKG

igniteui-angular-spreadsheet

Version:

Ignite UI Angular spreadsheet component for displaying and editing Microsoft Excel workbooks for modern web apps.

49 lines (48 loc) 2.02 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ import { __extends } from "tslib"; import { UndoTransaction } from "./UndoTransaction"; import { IWorksheetUndoUnit_$type } from "./IWorksheetUndoUnit"; import { typeCast, markType } from "igniteui-angular-core"; /** * @hidden */ var WorksheetUndoTransaction = /** @class */ /*@__PURE__*/ (function (_super) { __extends(WorksheetUndoTransaction, _super); function WorksheetUndoTransaction(a) { return _super.call(this, a, a) || this; } WorksheetUndoTransaction.prototype.k = function (a) { return new WorksheetUndoTransaction(this.y); }; WorksheetUndoTransaction.prototype.b = function (a) { var b = _super.prototype.b.call(this, a); var c = null; if (typeCast(IWorksheetUndoUnit_$type, this) !== null) { c = this.sheet; } else { for (var d = 0; d < this.r.count; d++) { var e = typeCast(IWorksheetUndoUnit_$type, this.r.item(d)); if (e != null) { c = e.sheet; break; } } } if (c != null) { var f = c.workbook; if (f != null) { f.windowOptions.selectedSheet = c; } } return b; }; WorksheetUndoTransaction.$t = markType(WorksheetUndoTransaction, 'WorksheetUndoTransaction', UndoTransaction.$); return WorksheetUndoTransaction; }(UndoTransaction)); export { WorksheetUndoTransaction };