UNPKG

bitfront-library

Version:

Angular CLI project with components and classes used by other Angular projects of the BIT foundation.

48 lines 2.22 kB
"use strict"; 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 (Object.prototype.hasOwnProperty.call(b, 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 __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.LogExceptionFilter = void 0; var base_filter_1 = require("../../../base/shared/base.filter"); var general_utils_service_1 = require("../../../shared/service/general-utils.service"); var LogExceptionFilter = /** @class */ (function (_super) { __extends(LogExceptionFilter, _super); function LogExceptionFilter(login, fecha, desde, hasta, resultados, pagina) { var _this = _super.call(this, resultados, pagina) || this; _this.login = login; _this.fecha = fecha; _this.desde = desde; _this.hasta = hasta; _this.resultados = resultados; _this.pagina = pagina; return _this; } LogExceptionFilter.prototype.reset = function () { _super.prototype.reset.call(this); this.login = ""; this.fecha = general_utils_service_1.GeneralUtils.getTodayAsString(); this.desde = "00:00"; this.hasta = "23:59"; }; LogExceptionFilter.prototype.copy = function () { return new LogExceptionFilter(this.login, this.fecha, this.desde, this.hasta, this.resultados, this.pagina); }; LogExceptionFilter.newObject = function () { var filter = new LogExceptionFilter("", general_utils_service_1.GeneralUtils.getTodayAsString(), "00:00", "23:59", base_filter_1.BaseFilter.RESULTADOS_PAGE, base_filter_1.BaseFilter.PAGE); return filter; }; return LogExceptionFilter; }(base_filter_1.BaseFilter)); exports.LogExceptionFilter = LogExceptionFilter; //# sourceMappingURL=log-exception.filter.js.map