igniteui-react-grids
Version:
Ignite UI React grid components.
159 lines (158 loc) • 4.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 { 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
*/
export let Paginator = /*@__PURE__*/ (() => {
class Paginator extends BaseElement {
constructor() {
super(...arguments);
this.h = new WCNativeHelper();
this.p = null;
this.perPageChange = null;
this.pageChange = null;
this.paging = null;
this.pagingDone = null;
}
get i() {
return this.h;
}
get nativeElement() {
return this.p;
}
set nativeElement(a) {
this.p = a;
this.h.o = this.p;
}
setNativeElement(a) {
this.nativeElement = a;
}
get n() {
let ret_ = this.i.n("totalPages");
return ret_;
}
set n(a) {
let value_ = a;
this.i.w("totalPages", value_);
}
get l() {
let ret_ = this.i.n("page");
return ret_;
}
set l(a) {
let value_ = a;
this.i.w("page", value_);
}
get m() {
let ret_ = this.i.n("perPage");
return ret_;
}
set m(a) {
let value_ = a;
this.i.w("perPage", value_);
}
get o() {
let ret_ = this.i.n("totalRecords");
return ret_;
}
set o(a) {
let value_ = a;
this.i.w("totalRecords", value_);
}
get a() {
let ret_ = this.i.n("selectOptions");
return ret_;
}
set a(a) {
let value_ = a;
this.i.w("selectOptions", value_);
}
get d() {
let ret_ = this.i.m("overlaySettings", (a) => new OverlaySettings());
return ret_;
}
set d(a) {
let value_ = a;
this.i.w("overlaySettings", value_);
}
get g() {
let ret_ = this.i.m("resourceStrings", (a) => new PaginatorResourceStrings());
return ret_;
}
set g(a) {
let value_ = a;
this.i.w("resourceStrings", value_);
}
get k() {
let ret_ = this.i.n("isLastPage");
return ret_;
}
get j() {
let ret_ = this.i.n("isFirstPage");
return ret_;
}
perPageChangeChanged() {
if (this.perPageChange != null) {
this.i.s("perPageChange", (a) => this.perPageChange(this, NumberEventArgs.a(a)), false);
}
else {
this.i.v("perPageChange");
}
}
pageChangeChanged() {
if (this.pageChange != null) {
this.i.s("pageChange", (a) => this.pageChange(this, NumberEventArgs.a(a)), false);
}
else {
this.i.v("pageChange");
}
}
pagingChanged() {
if (this.paging != null) {
this.i.s("paging", (a) => this.paging(this, PageCancellableEventArgs.a(a)), false);
}
else {
this.i.v("paging");
}
}
pagingDoneChanged() {
if (this.pagingDone != null) {
this.i.s("pagingDone", (a) => this.pagingDone(this, PageEventArgs.a(a)), false);
}
else {
this.i.v("pagingDone");
}
}
s() {
this.nativeElement.nextPage();
}
y() {
this.nativeElement.previousPage();
}
u(a) {
this.nativeElement.paginate(this.i.i(a));
}
get r() {
let ret_ = this.i.n("name");
return ret_;
}
set r(a) {
let value_ = a;
this.i.w("name", value_);
}
}
Paginator.$t = /*@__PURE__*/ markType(Paginator, 'Paginator', BaseElement.$);
return Paginator;
})();