UNPKG

bitfront-library

Version:

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

31 lines 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BitMessage = void 0; var BitMessage = /** @class */ (function () { function BitMessage(title, message, width, height, modal, severity, //info, warn, error masInfo, json) { if (width === void 0) { width = BitMessage.WIDTH; } if (height === void 0) { height = 0; } if (modal === void 0) { modal = false; } if (severity === void 0) { severity = "info"; } if (json === void 0) { json = false; } this.title = title; this.message = message; this.width = width; this.height = height; this.modal = modal; this.severity = severity; this.masInfo = masInfo; this.json = json; } BitMessage.newMessage = function (title, message, severity) { return new BitMessage(title, message, BitMessage.WIDTH, 0, false, severity); }; BitMessage.WIDTH = 600; BitMessage.INFO = "info"; BitMessage.WARN = "warn"; BitMessage.ERROR = "error"; return BitMessage; }()); exports.BitMessage = BitMessage; //# sourceMappingURL=bitmessage.js.map