@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
69 lines (68 loc) • 3.12 kB
TypeScript
import { Injector } from '@angular/core';
import { CoreBaseComponent } from './base.component';
import * as i0 from "@angular/core";
export declare abstract class CapacityBase extends CoreBaseComponent {
static readonly defaults: {
warningThreshold: number;
criticalThreshold: number;
greenColorScheme: string[];
redColorScheme: string[];
yellowColorScheme: string[];
freeColor: string;
};
/**
* Sets the yellow threshold. Default is 0.75, use yellowThreshold='disabled' to disable
* @deprecated since 07/23/18. Please use 'CapacityBase.warningThreshold' instead
*/
set yellowThreshold(value: number | string);
get yellowThreshold(): number | string;
/**
* Sets the red threshold. Default is 0.9, use redThreshold='disabled' to disable
* @deprecated since 07/23/18. Please use 'CapacityBase.criticalThreshold' instead
*/
set redThreshold(value: number | string);
get redThreshold(): number | string;
/**
* Sets the warning threshold. Default is 0.75, use warningThreshold='disabled' to disable
*/
warningThreshold?: number | string;
/**
* Sets the critical threshold. Default is 0.9, use criticalThreshold='disabled' to disable
*/
criticalThreshold?: number | string;
/**
* Sets the color change thresholds in reverse order (red is low and green is high)
*/
reverseThresholdOrder?: boolean;
/**
* The total capacity of the chart
*/
total?: number;
/**
* The the color scheme for values less than the yellow threshold value. Defaults to default green color scheme
*/
normalColorScheme?: string[];
/**
* The the color scheme for values greater than the yellow threshold value but ess than the red threshold.
* Defaults to default yellow color scheme
*/
warningColorScheme?: string[];
/**
* The the color scheme for values greater than than the yellow threshold value.
* Defaults to default red color scheme
*/
criticalColorScheme?: string[];
/**
* The the color scheme for the background bar color
* Defaults to default free color
*/
freeColor?: string;
internalRedThreshold: number | string;
internalYellowThreshold: number | string;
constructor(injector: Injector);
protected getColorScheme(amountUsed: number): string[];
protected getStateString(amountUsed: number): string;
private isAboveThreshold;
static ɵfac: i0.ɵɵFactoryDeclaration<CapacityBase, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CapacityBase, never, never, { "yellowThreshold": "yellowThreshold"; "redThreshold": "redThreshold"; "warningThreshold": "warningThreshold"; "criticalThreshold": "criticalThreshold"; "reverseThresholdOrder": "reverseThresholdOrder"; "total": "total"; "normalColorScheme": "normalColorScheme"; "warningColorScheme": "warningColorScheme"; "criticalColorScheme": "criticalColorScheme"; "freeColor": "freeColor"; }, {}, never, never, false, never>;
}