@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
64 lines (60 loc) • 2.59 kB
TypeScript
import { ActivatedRoute, Routes } from '@angular/router';
import * as i0 from '@angular/core';
import { OnInit } from '@angular/core';
import { IFeatureToggle } from '@c8y/client';
import { Column, ActionControl, Pagination, DisplayOptions } from '@c8y/ngx-components';
declare class FeatureToggleListComponent implements OnInit {
columns: Column[];
actionControls: ActionControl[];
items: (IFeatureToggle & {
id: string;
})[];
pagination: Pagination;
displayOptions: DisplayOptions;
hasPrivatePreviewFeatures: boolean;
phaseDetails: {
PUBLIC_PREVIEW: {
class: string;
name: "Public preview`feature phase`";
description: "The feature is available for public preview and can be used by all users. It is disabled by default.";
};
PRIVATE_PREVIEW: {
class: string;
name: "Private preview`feature phase`";
description: "The feature is in private preview and available to a selected set of users. It is disabled by default.";
};
GENERALLY_AVAILABLE: {
class: string;
name: "Generally available`feature phase`";
description: "The feature is generally available and can be used by all users. It is enabled by default.";
};
};
phaseKeysOrder: ["PRIVATE_PREVIEW", "PUBLIC_PREVIEW", "GENERALLY_AVAILABLE"];
strategyDetails: ({
key: string;
class: string;
name: "Default`strategy`";
description: "The feature toggle is using the default state based on its phase.";
} | {
key: string;
class: string;
name: "Custom`strategy`";
description: "The feature toggle has been customized. When the phase of the feature changes, the custom state remains unchanged.";
})[];
activatedRoute: ActivatedRoute;
private featureToggle;
private alertService;
private permissions;
private isManagementTenant;
private contextRouteService;
constructor();
ngOnInit(): Promise<void>;
reload(): Promise<void>;
updateFeature(feature: IFeatureToggle, newActiveValue: boolean): Promise<void>;
removeTenantOverride(feature: IFeatureToggle): Promise<void>;
static ɵfac: i0.ɵɵFactoryDeclaration<FeatureToggleListComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<FeatureToggleListComponent, "c8y-feature-toggle-list", never, {}, {}, never, never, true, never>;
}
declare const childRoutes: Routes;
export { FeatureToggleListComponent, childRoutes };
//# sourceMappingURL=index.d.ts.map