UNPKG

@c8y/ngx-components

Version:

Angular modules for Cumulocity IoT applications

65 lines 2.7 kB
import { ModuleWithProviders } from '@angular/core'; import { WidgetsModule } from '@c8y/ngx-components/widgets'; export declare const deviceManagementDefaultWidgets: ({ id: "devicemanagement.welcome.widget"; label: "Quick links"; description: "Displays quick links for Device Management"; loadComponent: () => Promise<import("@angular/core").Type<any> | typeof import("@c8y/ngx-components/dist/widgets/implementations/quick-links").QuickLinksWidgetViewComponent>; loadConfigComponent: () => Promise<import("@angular/core").Type<any> | typeof import("@c8y/ngx-components/dist/widgets/implementations/quick-links").QuickLinksWidgetConfigComponent>; data: { settings: { noNewWidgets: true; widgetDefaults: { _width: number; _height: number; }; ng1: { options: { noDeviceTarget: true; groupsSelectable: false; }; }; }; }; } | { id: "Asset Notes"; label: "Asset notes"; description: "Displays editable asset notes."; loadComponent: () => Promise<import("@angular/core").Type<any> | typeof import("@c8y/ngx-components/dist/widgets/implementations/asset-notes").AssetNotesWidgetComponent>; previewImage: string; resolve: { device: typeof import("@c8y/ngx-components").DynamicManagedObjectResolver; }; errorStrategy: import("@c8y/ngx-components").DynamicComponentErrorStrategy.OVERLAY_ERROR; data: { schema: () => Promise<{ default: typeof import("c8y-schema-loader?interfaceName=*"); schema: import("json-schema").JSONSchema7; }>; settings: { noNewWidgets: false; widgetDefaults: { _width: number; _height: number; }; ng1: { options: { groupsSelectable: true; }; }; }; }; })[]; /** * Widgets module to be imported in your app module. The exclude list allows to exclude certain widgets. * Calls `WidgetsModule.config` under the hood with the `deviceManagementDefaultWidgets`. * *** * NOTE: * The excluded widgets will still be part of your bundle. * But as they are lazy loaded should not increase loading duration. * *** * @param excludeList allows to exclude specific widgets by their id. * @returns An empty module with some providers. */ export declare function deviceManagementWidgets(excludeList?: Array<(typeof deviceManagementDefaultWidgets)[number]['id']>): ModuleWithProviders<WidgetsModule>; //# sourceMappingURL=index.d.ts.map