UNPKG

@c8y/ngx-components

Version:

Angular modules for Cumulocity IoT applications

59 lines 2.73 kB
import { OnInit } from '@angular/core'; import { QuickLinksConfig } from '../quick-links.model'; import * as i0 from "@angular/core"; export declare class QuickLinksWidgetViewComponent implements OnInit { config: import("@angular/core").InputSignal<QuickLinksConfig>; isPreview: import("@angular/core").InputSignal<boolean>; protected readonly DEFAULT_QUICK_LINK_ICON = "link"; protected readonly DisplayOption: { readonly GRID: "Grid"; readonly LIST: "List"; }; private readonly quickLinksService; private readonly dashboardChild; private readonly appSwitcherService; private readonly appHrefPipe; private readonly humanizeAppNamePipe; ngOnInit(): void; /** * The method is responsible for converting legacy widgets into their updated versions if a conversion is required. * * The widgets are being converted: * - Help and Service Widget * - Applications Widget * - Quick Links - Device Management Widget */ private convertLegacyWidget; /** * Converts the Device Management Quick Links widget by assigning default quick links for the device management app * and updating the widget configuration with default options. */ private convertDeviceManagementQuickLinksWidget; /** * Converts the Applications widget by assigning default quick links * and updating the widget configuration with default options. */ private convertApplicationsWidget; /** * Converts the Help and Service widget by assigning default quick links * and updating the widget configuration with default options. */ private convertHelpAndServiceWidget; /** * Determines whether conversion is required for the widget. * Conversion is needed if the widget configuration is empty and a valid widget ID exists. * * @returns `true` if conversion is required, otherwise `false`. */ private isConversionRequiredForWidget; /** * Retrieves the widget ID from the dashboard child data. * If `componentId` is available, it is returned; otherwise, the widget's `name` is used. * * @returns The widget ID as a `ConvertibleWidgetID`, based on `componentId` or `name`. */ private getWidgetId; static ɵfac: i0.ɵɵFactoryDeclaration<QuickLinksWidgetViewComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<QuickLinksWidgetViewComponent, "c8y-quick-links-widget-view", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "isPreview": { "alias": "isPreview"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>; } //# sourceMappingURL=quick-links-widget-view.component.d.ts.map