UNPKG

@nova-ui/dashboards

Version:

Nova Dashboards is a framework designed to provide feature developers with a common solution for presenting data coming from various sources within a single view, as well as a set of predefined widget visualizations that are 100% configuration-driven and

96 lines 5.31 kB
"use strict"; // © 2022 SolarWinds Worldwide, LLC. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. Object.defineProperty(exports, "__esModule", { value: true }); exports.ProportionalLegendFormattersRegistryService = exports.ProportionalDonutContentFormattersRegistryService = exports.RiskScoreFormattersRegistryService = exports.KpiFormattersRegistryService = exports.TableFormatterRegistryService = exports.FormatterRegistryService = void 0; const tslib_1 = require("tslib"); const core_1 = require("@angular/core"); const bits_1 = require("@nova-ui/bits"); const registry_service_1 = require("./registry-service"); class FormatterRegistryService extends registry_service_1.RegistryService { constructor() { super(...arguments); /** @deprecated use 'stateChanged$' instead - NUI-5852 */ this.formattersStateChanged$ = this.stateChanged$; } /** @deprecated use 'addItems' instead - NUI-5852 */ addFormatters(formatters, options = { overrideExisting: true }) { super.addItems(formatters, options); } /** @deprecated use 'getItems' instead - NUI-5852 */ getFormatters() { return super.getItems(); } getItemKey(item) { return item.componentType; } } exports.FormatterRegistryService = FormatterRegistryService; let TableFormatterRegistryService = class TableFormatterRegistryService extends FormatterRegistryService { constructor(logger) { super(logger, "TableFormatterRegistryService"); } }; exports.TableFormatterRegistryService = TableFormatterRegistryService; exports.TableFormatterRegistryService = TableFormatterRegistryService = tslib_1.__decorate([ (0, core_1.Injectable)({ providedIn: "root" }), tslib_1.__metadata("design:paramtypes", [bits_1.LoggerService]) ], TableFormatterRegistryService); let KpiFormattersRegistryService = class KpiFormattersRegistryService extends FormatterRegistryService { constructor(logger) { super(logger, "KpiFormattersRegistryService"); } }; exports.KpiFormattersRegistryService = KpiFormattersRegistryService; exports.KpiFormattersRegistryService = KpiFormattersRegistryService = tslib_1.__decorate([ (0, core_1.Injectable)({ providedIn: "root" }), tslib_1.__metadata("design:paramtypes", [bits_1.LoggerService]) ], KpiFormattersRegistryService); let RiskScoreFormattersRegistryService = class RiskScoreFormattersRegistryService extends FormatterRegistryService { constructor(logger) { super(logger, "RiskScoreFormattersRegistryService"); } }; exports.RiskScoreFormattersRegistryService = RiskScoreFormattersRegistryService; exports.RiskScoreFormattersRegistryService = RiskScoreFormattersRegistryService = tslib_1.__decorate([ (0, core_1.Injectable)({ providedIn: "root" }), tslib_1.__metadata("design:paramtypes", [bits_1.LoggerService]) ], RiskScoreFormattersRegistryService); let ProportionalDonutContentFormattersRegistryService = class ProportionalDonutContentFormattersRegistryService extends FormatterRegistryService { constructor(logger) { super(logger, "ProportionalDonutContentFormattersRegistryService"); } }; exports.ProportionalDonutContentFormattersRegistryService = ProportionalDonutContentFormattersRegistryService; exports.ProportionalDonutContentFormattersRegistryService = ProportionalDonutContentFormattersRegistryService = tslib_1.__decorate([ (0, core_1.Injectable)({ providedIn: "root" }), tslib_1.__metadata("design:paramtypes", [bits_1.LoggerService]) ], ProportionalDonutContentFormattersRegistryService); let ProportionalLegendFormattersRegistryService = class ProportionalLegendFormattersRegistryService extends FormatterRegistryService { constructor(logger) { super(logger, "ProportionalLegendFormattersRegistryService"); } }; exports.ProportionalLegendFormattersRegistryService = ProportionalLegendFormattersRegistryService; exports.ProportionalLegendFormattersRegistryService = ProportionalLegendFormattersRegistryService = tslib_1.__decorate([ (0, core_1.Injectable)({ providedIn: "root" }), tslib_1.__metadata("design:paramtypes", [bits_1.LoggerService]) ], ProportionalLegendFormattersRegistryService); //# sourceMappingURL=table-formatter-registry.service.js.map