igniteui-react-grids
Version:
Ignite UI React grid components.
194 lines (193 loc) • 6.15 kB
JavaScript
import { IgrGridCellIdentifier } from "./igr-grid-cell-identifier";
import { RowDataCancelableEventArgsDetail as RowDataCancelableEventArgsDetail_internal } from "./RowDataCancelableEventArgsDetail";
import { ensureBool } from "igniteui-react-core";
var IgrRowDataCancelableEventArgsDetail = /** @class */ /*@__PURE__*/ (function () {
function IgrRowDataCancelableEventArgsDetail() {
this.mounted = false;
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgrRowDataCancelableEventArgsDetail.prototype.createImplementation = function () {
return new RowDataCancelableEventArgsDetail_internal();
};
Object.defineProperty(IgrRowDataCancelableEventArgsDetail.prototype, "nativeElement", {
get: function () {
return this._implementation.nativeElement;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRowDataCancelableEventArgsDetail.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrRowDataCancelableEventArgsDetail.prototype.onImplementationCreated = function () {
};
IgrRowDataCancelableEventArgsDetail.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgrRowDataCancelableEventArgsDetail.prototype, "cellID", {
/**
* @deprecated
*/
get: function () {
var r = this.i.b;
if (r == null) {
return null;
}
if (!r.externalObject) {
var e = new IgrGridCellIdentifier();
if (r.$type) {
e._implementation = r;
}
else {
if (e.i.setNativeElement) {
e.i.setNativeElement(r);
}
}
r.externalObject = e;
}
return r.externalObject;
},
set: function (v) {
v == null ? this.i.b = null : this.i.b = v.i;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRowDataCancelableEventArgsDetail.prototype, "oldValue", {
/**
* @deprecated
*/
get: function () {
return this.i.j;
},
set: function (v) {
this.i.j = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRowDataCancelableEventArgsDetail.prototype, "newValue", {
/**
* @deprecated
*/
get: function () {
return this.i.i;
},
set: function (v) {
this.i.i = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRowDataCancelableEventArgsDetail.prototype, "isAddRow", {
/**
* @deprecated
*/
get: function () {
return this.i.e;
},
set: function (v) {
this.i.e = ensureBool(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRowDataCancelableEventArgsDetail.prototype, "owner", {
get: function () {
var r = this.i.a;
if (r == null) {
return null;
}
return r.externalObject;
},
set: function (v) {
v == null ? this.i.a = null : this.i.a = v.i;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRowDataCancelableEventArgsDetail.prototype, "data", {
/**
* @deprecated Use the `rowData` property instead.
*/
get: function () {
return this.i.g;
},
set: function (v) {
this.i.g = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRowDataCancelableEventArgsDetail.prototype, "rowData", {
get: function () {
return this.i.l;
},
set: function (v) {
this.i.l = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRowDataCancelableEventArgsDetail.prototype, "primaryKey", {
/**
* Represents the unique key, the row can be associated with.
* Available if `primaryKey` exists
* @deprecated Use the `rowKey` property instead.
*/
get: function () {
return this.i.k;
},
set: function (v) {
this.i.k = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRowDataCancelableEventArgsDetail.prototype, "rowKey", {
get: function () {
return this.i.m;
},
set: function (v) {
this.i.m = v;
},
enumerable: false,
configurable: true
});
IgrRowDataCancelableEventArgsDetail.prototype.findByName = function (name) {
if (this.findEphemera) {
if (name && name.indexOf("@@e:") == 0) {
return this.findEphemera(name);
}
}
if (this.cellID && this.cellID.name && this.cellID.name == name) {
return this.cellID;
}
if (this.owner && this.owner.name && this.owner.name == name) {
return this.owner;
}
return null;
};
IgrRowDataCancelableEventArgsDetail.prototype.setNativeElement = function (element) {
this.i.setNativeElement(element);
};
return IgrRowDataCancelableEventArgsDetail;
}());
export { IgrRowDataCancelableEventArgsDetail };