UNPKG

@true-directive/base

Version:

The set of base classes for the TrueDirective Grid

108 lines (107 loc) 3.51 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var CancelableEvent = /** @class */ (function () { function CancelableEvent() { this._isCanceled = false; } CancelableEvent.prototype.cancel = function () { this._isCanceled = true; }; Object.defineProperty(CancelableEvent.prototype, "isCanceled", { get: function () { return this._isCanceled; }, enumerable: true, configurable: true }); return CancelableEvent; }()); export { CancelableEvent }; /** * Закрытие всплывающего окна * @param Результат работы всплывающего окна */ var CloseEvent = /** @class */ (function (_super) { __extends(CloseEvent, _super); function CloseEvent(result) { var _this = _super.call(this) || this; _this.result = result; _this.confirmed = false; return _this; } return CloseEvent; }(CancelableEvent)); export { CloseEvent }; var CheckedChangedEvent = /** @class */ (function () { function CheckedChangedEvent(target, row, fieldName, value) { this.target = target; this.row = row; this.fieldName = fieldName; this.value = value; } return CheckedChangedEvent; }()); export { CheckedChangedEvent }; var ValueChangedEvent = /** @class */ (function () { function ValueChangedEvent(row, fieldName) { this.row = row; this.fieldName = fieldName; } return ValueChangedEvent; }()); export { ValueChangedEvent }; var FilterShowEvent = /** @class */ (function () { function FilterShowEvent(target, filter) { this.target = target; this.filter = filter; } return FilterShowEvent; }()); export { FilterShowEvent }; var RowDragEvent = /** @class */ (function (_super) { __extends(RowDragEvent, _super); function RowDragEvent(rows, target, position) { var _this = _super.call(this) || this; _this.rows = rows; _this.target = target; _this.position = position; return _this; } return RowDragEvent; }(CancelableEvent)); export { RowDragEvent }; var RowClickEvent = /** @class */ (function () { function RowClickEvent(row, originalEvent) { this.row = row; this.originalEvent = originalEvent; } return RowClickEvent; }()); export { RowClickEvent }; var CellClickEvent = /** @class */ (function () { function CellClickEvent(cell, originalEvent) { this.cell = cell; this.originalEvent = originalEvent; } return CellClickEvent; }()); export { CellClickEvent }; var ContextMenuEvent = /** @class */ (function () { function ContextMenuEvent(cell, originalEvent) { this.cell = cell; this.originalEvent = originalEvent; } return ContextMenuEvent; }()); export { ContextMenuEvent };