angular-6-datatable
Version:
DataTable component for Angular framework
62 lines • 13.5 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var i0 = require("@angular/core");
var i1 = require("@angular/common");
var i2 = require("./Paginator.ngfactory");
var i3 = require("./Paginator");
var i4 = require("./DataTable");
var i5 = require("./BootstrapPaginator");
var styles_BootstrapPaginator = [];
var RenderType_BootstrapPaginator = i0.ɵcrt({ encapsulation: 2, styles: styles_BootstrapPaginator, data: {} });
exports.RenderType_BootstrapPaginator = RenderType_BootstrapPaginator;
function View_BootstrapPaginator_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [["class", "page-item"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
var pd_0 = (i0.ɵnov(_v.parent.parent, 1).setPage((i0.ɵnov(_v.parent.parent, 1).activePage - 4)) !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [["class", "page-link"], ["style", "cursor: pointer"]], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) { var currVal_0 = (i0.ɵnov(_v.parent.parent, 1).activePage - 4); _ck(_v, 2, 0, currVal_0); }); }
function View_BootstrapPaginator_3(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [["class", "page-item"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
var pd_0 = (i0.ɵnov(_v.parent.parent, 1).setPage((i0.ɵnov(_v.parent.parent, 1).activePage - 3)) !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [["class", "page-link"], ["style", "cursor: pointer"]], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) { var currVal_0 = (i0.ɵnov(_v.parent.parent, 1).activePage - 3); _ck(_v, 2, 0, currVal_0); }); }
function View_BootstrapPaginator_4(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [["class", "page-item"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
var pd_0 = (i0.ɵnov(_v.parent.parent, 1).setPage((i0.ɵnov(_v.parent.parent, 1).activePage - 2)) !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [["class", "page-link"], ["style", "cursor: pointer"]], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) { var currVal_0 = (i0.ɵnov(_v.parent.parent, 1).activePage - 2); _ck(_v, 2, 0, currVal_0); }); }
function View_BootstrapPaginator_5(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [["class", "page-item"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
var pd_0 = (i0.ɵnov(_v.parent.parent, 1).setPage((i0.ɵnov(_v.parent.parent, 1).activePage - 1)) !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [["class", "page-link"], ["style", "cursor: pointer"]], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) { var currVal_0 = (i0.ɵnov(_v.parent.parent, 1).activePage - 1); _ck(_v, 2, 0, currVal_0); }); }
function View_BootstrapPaginator_6(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [["class", "page-item"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
var pd_0 = (i0.ɵnov(_v.parent.parent, 1).setPage((i0.ɵnov(_v.parent.parent, 1).activePage + 1)) !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [["class", "page-link"], ["style", "cursor: pointer"]], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) { var currVal_0 = (i0.ɵnov(_v.parent.parent, 1).activePage + 1); _ck(_v, 2, 0, currVal_0); }); }
function View_BootstrapPaginator_7(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [["class", "page-item"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
var pd_0 = (i0.ɵnov(_v.parent.parent, 1).setPage((i0.ɵnov(_v.parent.parent, 1).activePage + 2)) !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [["class", "page-link"], ["style", "cursor: pointer"]], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) { var currVal_0 = (i0.ɵnov(_v.parent.parent, 1).activePage + 2); _ck(_v, 2, 0, currVal_0); }); }
function View_BootstrapPaginator_8(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [["class", "page-item"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
var pd_0 = (i0.ɵnov(_v.parent.parent, 1).setPage((i0.ɵnov(_v.parent.parent, 1).activePage + 3)) !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [["class", "page-link"], ["style", "cursor: pointer"]], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) { var currVal_0 = (i0.ɵnov(_v.parent.parent, 1).activePage + 3); _ck(_v, 2, 0, currVal_0); }); }
function View_BootstrapPaginator_9(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [["class", "page-item"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
var pd_0 = (i0.ɵnov(_v.parent.parent, 1).setPage((i0.ɵnov(_v.parent.parent, 1).activePage + 4)) !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [["class", "page-link"], ["style", "cursor: pointer"]], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) { var currVal_0 = (i0.ɵnov(_v.parent.parent, 1).activePage + 4); _ck(_v, 2, 0, currVal_0); }); }
function View_BootstrapPaginator_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 25, "ul", [["class", "pagination"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 2, "li", [["class", "page-item"]], [[2, "disabled", null]], [[null, "click"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
var pd_0 = (i0.ɵnov(_v.parent, 1).setPage(1) !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "a", [["class", "page-link"], ["style", "cursor: pointer"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\u00AB"])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_BootstrapPaginator_2)), i0.ɵdid(5, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_BootstrapPaginator_3)), i0.ɵdid(7, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_BootstrapPaginator_4)), i0.ɵdid(9, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_BootstrapPaginator_5)), i0.ɵdid(11, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(12, 0, null, null, 2, "li", [["class", "page-item active"]], null, null, null, null, null)), (_l()(), i0.ɵeld(13, 0, null, null, 1, "a", [["class", "page-link"], ["style", "cursor: pointer"]], null, null, null, null, null)), (_l()(), i0.ɵted(14, null, ["", ""])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_BootstrapPaginator_6)), i0.ɵdid(16, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_BootstrapPaginator_7)), i0.ɵdid(18, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_BootstrapPaginator_8)), i0.ɵdid(20, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_BootstrapPaginator_9)), i0.ɵdid(22, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(23, 0, null, null, 2, "li", [["class", "page-item"]], [[2, "disabled", null]], [[null, "click"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
var pd_0 = (i0.ɵnov(_v.parent, 1).setPage(i0.ɵnov(_v.parent, 1).lastPage) !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), (_l()(), i0.ɵeld(24, 0, null, null, 1, "a", [["class", "page-link"], ["style", "cursor: pointer"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\u00BB"]))], function (_ck, _v) { var currVal_1 = ((i0.ɵnov(_v.parent, 1).activePage > 4) && ((i0.ɵnov(_v.parent, 1).activePage + 1) > i0.ɵnov(_v.parent, 1).lastPage)); _ck(_v, 5, 0, currVal_1); var currVal_2 = ((i0.ɵnov(_v.parent, 1).activePage > 3) && ((i0.ɵnov(_v.parent, 1).activePage + 2) > i0.ɵnov(_v.parent, 1).lastPage)); _ck(_v, 7, 0, currVal_2); var currVal_3 = (i0.ɵnov(_v.parent, 1).activePage > 2); _ck(_v, 9, 0, currVal_3); var currVal_4 = (i0.ɵnov(_v.parent, 1).activePage > 1); _ck(_v, 11, 0, currVal_4); var currVal_6 = ((i0.ɵnov(_v.parent, 1).activePage + 1) <= i0.ɵnov(_v.parent, 1).lastPage); _ck(_v, 16, 0, currVal_6); var currVal_7 = ((i0.ɵnov(_v.parent, 1).activePage + 2) <= i0.ɵnov(_v.parent, 1).lastPage); _ck(_v, 18, 0, currVal_7); var currVal_8 = (((i0.ɵnov(_v.parent, 1).activePage + 3) <= i0.ɵnov(_v.parent, 1).lastPage) && (i0.ɵnov(_v.parent, 1).activePage < 3)); _ck(_v, 20, 0, currVal_8); var currVal_9 = (((i0.ɵnov(_v.parent, 1).activePage + 4) <= i0.ɵnov(_v.parent, 1).lastPage) && (i0.ɵnov(_v.parent, 1).activePage < 2)); _ck(_v, 22, 0, currVal_9); }, function (_ck, _v) { var currVal_0 = (i0.ɵnov(_v.parent, 1).activePage <= 1); _ck(_v, 1, 0, currVal_0); var currVal_5 = i0.ɵnov(_v.parent, 1).activePage; _ck(_v, 14, 0, currVal_5); var currVal_10 = (i0.ɵnov(_v.parent, 1).activePage >= i0.ɵnov(_v.parent, 1).lastPage); _ck(_v, 23, 0, currVal_10); }); }
function View_BootstrapPaginator_11(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [["class", "page-item"]], [[2, "active", null]], [[null, "click"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
var pd_0 = (i0.ɵnov(_v.parent.parent, 1).setRowsOnPage(_v.context.$implicit) !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [["class", "page-link"], ["style", "cursor: pointer"]], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) { var currVal_0 = (i0.ɵnov(_v.parent.parent, 1).rowsOnPage === _v.context.$implicit); _ck(_v, 0, 0, currVal_0); var currVal_1 = _v.context.$implicit; _ck(_v, 2, 0, currVal_1); }); }
function View_BootstrapPaginator_10(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "ul", [["class", "pagination pull-right float-sm-right"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_BootstrapPaginator_11)), i0.ɵdid(2, 802816, null, 0, i1.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.rowsOnPageSet; _ck(_v, 2, 0, currVal_0); }, null); }
function View_BootstrapPaginator_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "mfPaginator", [], null, null, null, i2.View_Paginator_0, i2.RenderType_Paginator)), i0.ɵdid(1, 573440, [["p", 4]], 0, i3.Paginator, [[2, i4.DataTable]], { inputMfTable: [0, "inputMfTable"] }, null), (_l()(), i0.ɵand(16777216, null, 0, 1, null, View_BootstrapPaginator_1)), i0.ɵdid(3, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, 0, 1, null, View_BootstrapPaginator_10)), i0.ɵdid(5, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.mfTable; _ck(_v, 1, 0, currVal_0); var currVal_1 = (i0.ɵnov(_v, 1).dataLength > i0.ɵnov(_v, 1).rowsOnPage); _ck(_v, 3, 0, currVal_1); var currVal_2 = (i0.ɵnov(_v, 1).dataLength > _co.minRowsOnPage); _ck(_v, 5, 0, currVal_2); }, null); }
exports.View_BootstrapPaginator_0 = View_BootstrapPaginator_0;
function View_BootstrapPaginator_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "mfBootstrapPaginator", [], null, null, null, View_BootstrapPaginator_0, RenderType_BootstrapPaginator)), i0.ɵdid(1, 573440, null, 0, i5.BootstrapPaginator, [], null, null)], null, null); }
exports.View_BootstrapPaginator_Host_0 = View_BootstrapPaginator_Host_0;
var BootstrapPaginatorNgFactory = i0.ɵccf("mfBootstrapPaginator", i5.BootstrapPaginator, View_BootstrapPaginator_Host_0, { rowsOnPageSet: "rowsOnPageSet", mfTable: "mfTable" }, {}, []);
exports.BootstrapPaginatorNgFactory = BootstrapPaginatorNgFactory;
//# sourceMappingURL=BootstrapPaginator.ngfactory.js.map