igniteui-react-grids
Version:
Ignite UI React grid components.
213 lines (212 loc) • 6.9 kB
JavaScript
/*
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 { BaseElement } from "igniteui-react";
import { WCNativeHelper } from "igniteui-react";
import { markType } from "igniteui-react-core";
import { OverlaySettings } from "./OverlaySettings";
import { PaginatorResourceStrings } from "./PaginatorResourceStrings";
import { NumberEventArgs } from "igniteui-react";
import { PageCancellableEventArgs } from "./PageCancellableEventArgs";
import { PageEventArgs } from "./PageEventArgs";
/**
* @hidden
*/
var Paginator = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(Paginator, _super);
function Paginator() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.h = new WCNativeHelper();
_this.p = null;
_this.perPageChange = null;
_this.pageChange = null;
_this.paging = null;
_this.pagingDone = null;
return _this;
}
Object.defineProperty(Paginator.prototype, "i", {
get: function () {
return this.h;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Paginator.prototype, "nativeElement", {
get: function () {
return this.p;
},
set: function (a) {
this.p = a;
this.h.o = this.p;
},
enumerable: false,
configurable: true
});
Paginator.prototype.setNativeElement = function (a) {
this.nativeElement = a;
};
Object.defineProperty(Paginator.prototype, "n", {
get: function () {
var ret_ = this.i.n("totalPages");
return ret_;
},
set: function (a) {
var value_ = a;
this.i.w("totalPages", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(Paginator.prototype, "l", {
get: function () {
var ret_ = this.i.n("page");
return ret_;
},
set: function (a) {
var value_ = a;
this.i.w("page", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(Paginator.prototype, "m", {
get: function () {
var ret_ = this.i.n("perPage");
return ret_;
},
set: function (a) {
var value_ = a;
this.i.w("perPage", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(Paginator.prototype, "o", {
get: function () {
var ret_ = this.i.n("totalRecords");
return ret_;
},
set: function (a) {
var value_ = a;
this.i.w("totalRecords", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(Paginator.prototype, "a", {
get: function () {
var ret_ = this.i.n("selectOptions");
return ret_;
},
set: function (a) {
var value_ = a;
this.i.w("selectOptions", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(Paginator.prototype, "d", {
get: function () {
var ret_ = this.i.m("overlaySettings", function (a) { return new OverlaySettings(); });
return ret_;
},
set: function (a) {
var value_ = a;
this.i.w("overlaySettings", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(Paginator.prototype, "g", {
get: function () {
var ret_ = this.i.m("resourceStrings", function (a) { return new PaginatorResourceStrings(); });
return ret_;
},
set: function (a) {
var value_ = a;
this.i.w("resourceStrings", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(Paginator.prototype, "k", {
get: function () {
var ret_ = this.i.n("isLastPage");
return ret_;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Paginator.prototype, "j", {
get: function () {
var ret_ = this.i.n("isFirstPage");
return ret_;
},
enumerable: false,
configurable: true
});
Paginator.prototype.perPageChangeChanged = function () {
var _this = this;
if (this.perPageChange != null) {
this.i.s("perPageChange", function (a) { return _this.perPageChange(_this, NumberEventArgs.a(a)); }, false);
}
else {
this.i.v("perPageChange");
}
};
Paginator.prototype.pageChangeChanged = function () {
var _this = this;
if (this.pageChange != null) {
this.i.s("pageChange", function (a) { return _this.pageChange(_this, NumberEventArgs.a(a)); }, false);
}
else {
this.i.v("pageChange");
}
};
Paginator.prototype.pagingChanged = function () {
var _this = this;
if (this.paging != null) {
this.i.s("paging", function (a) { return _this.paging(_this, PageCancellableEventArgs.a(a)); }, false);
}
else {
this.i.v("paging");
}
};
Paginator.prototype.pagingDoneChanged = function () {
var _this = this;
if (this.pagingDone != null) {
this.i.s("pagingDone", function (a) { return _this.pagingDone(_this, PageEventArgs.a(a)); }, false);
}
else {
this.i.v("pagingDone");
}
};
Paginator.prototype.s = function () {
this.nativeElement.nextPage();
};
Paginator.prototype.y = function () {
this.nativeElement.previousPage();
};
Paginator.prototype.u = function (a) {
this.nativeElement.paginate(this.i.i(a));
};
Object.defineProperty(Paginator.prototype, "r", {
get: function () {
var ret_ = this.i.n("name");
return ret_;
},
set: function (a) {
var value_ = a;
this.i.w("name", value_);
},
enumerable: false,
configurable: true
});
Paginator.$t = markType(Paginator, 'Paginator', BaseElement.$);
return Paginator;
}(BaseElement));
export { Paginator };