UNPKG

bitfront-library

Version:

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

52 lines 2.32 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.LogFilter = void 0; var base_filter_1 = require("../../../base/shared/base.filter"); var general_utils_service_1 = require("../../../shared/service/general-utils.service"); var LogFilter = /** @class */ (function (_super) { __extends(LogFilter, _super); function LogFilter(login, fecha, desde, hasta, tipoLog, mostrarErrores, resultados, pagina) { var _this = _super.call(this, resultados, pagina) || this; _this.login = login; _this.fecha = fecha; _this.desde = desde; _this.hasta = hasta; _this.tipoLog = tipoLog; _this.mostrarErrores = mostrarErrores; _this.resultados = resultados; _this.pagina = pagina; return _this; } LogFilter.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"; this.tipoLog = null; this.mostrarErrores = false; }; LogFilter.prototype.copy = function () { return new LogFilter(this.login, this.fecha, this.desde, this.hasta, this.tipoLog, this.mostrarErrores, this.resultados, this.pagina); }; LogFilter.newObject = function () { var filter = new LogFilter("", general_utils_service_1.GeneralUtils.getTodayAsString(), "00:00", "23:59", null, false, base_filter_1.BaseFilter.RESULTADOS_PAGE, base_filter_1.BaseFilter.PAGE); return filter; }; return LogFilter; }(base_filter_1.BaseFilter)); exports.LogFilter = LogFilter; //# sourceMappingURL=log.filter.js.map