UNPKG

@duoduo-oba/ng-devui

Version:

DevUI components based on Angular

91 lines (85 loc) 3.9 kB
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) : typeof define === 'function' && define.amd ? define('ng-devui/status', ['exports', '@angular/core', '@angular/common'], factory) : (global = global || self, factory((global['ng-devui'] = global['ng-devui'] || {}, global['ng-devui'].status = {}), global.ng.core, global.ng.common)); }(this, (function (exports, core, common) { 'use strict'; /** * @fileoverview added by tsickle * Generated from: status.component.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ var StatusComponent = /** @class */ (function () { function StatusComponent() { this.classMap = {}; } Object.defineProperty(StatusComponent.prototype, "type", { get: /** * @return {?} */ function () { return this._type; }, set: /** * @param {?} value * @return {?} */ function (value) { this._type = value; this.setClassMap(); }, enumerable: true, configurable: true }); /** * @return {?} */ StatusComponent.prototype.setClassMap = /** * @return {?} */ function () { this.classMap = 'devui-status-bg-' + this.type; }; StatusComponent.decorators = [ { type: core.Component, args: [{ selector: 'd-status', template: "<span class=\"devui-status\" [ngClass]=\"classMap\">\r\n <ng-content></ng-content>\r\n</span>\r\n", styles: [":host{display:block}.devui-status{line-height:20px;display:inline-block;height:20px}.devui-status::before{display:inline-block;content:'';width:8px;height:8px;margin-right:8px;border-radius:100%}.devui-status.devui-status-bg-success::before{background:#50d4ab}.devui-status.devui-status-bg-error::before{background:#f66f6a}.devui-status.devui-status-bg-warning::before{background:#fac20a}.devui-status.devui-status-bg-waiting::before{background:#9faad7}.devui-status.devui-status-bg-running::before{background:#5e7ce0}.devui-status.devui-status-bg-invalid::before{background:#adb0b8}.devui-status.devui-status-bg-initial::before{background:#f2f5fc}"] }] } ]; StatusComponent.propDecorators = { type: [{ type: core.Input }] }; return StatusComponent; }()); if (false) { /** * @type {?} * @private */ StatusComponent.prototype._type; /** @type {?} */ StatusComponent.prototype.classMap; } /** * @fileoverview added by tsickle * Generated from: status.module.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ var StatusModule = /** @class */ (function () { function StatusModule() { } StatusModule.decorators = [ { type: core.NgModule, args: [{ imports: [common.CommonModule], exports: [StatusComponent], declarations: [StatusComponent], providers: [] },] } ]; return StatusModule; }()); exports.StatusComponent = StatusComponent; exports.StatusModule = StatusModule; Object.defineProperty(exports, '__esModule', { value: true }); }))); //# sourceMappingURL=ng-devui-status.umd.js.map