@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
1 lines • 1.85 kB
Source Map (JSON)
{"version":3,"file":"c8y-ngx-components-widgets-device-management.mjs","sources":["../../widgets/device-management/index.ts","../../widgets/device-management/c8y-ngx-components-widgets-device-management.ts"],"sourcesContent":["import { ModuleWithProviders } from '@angular/core';\nimport type { DynamicWidgetDefinition } from '@c8y/ngx-components';\nimport { WidgetsModule } from '@c8y/ngx-components/widgets';\nimport { assetNotesWidgetDefinition } from '@c8y/ngx-components/widgets/definitions/asset-notes';\nimport { deviceManagementWelcomeWidgetDefinition } from '@c8y/ngx-components/widgets/definitions/device-management-welcome';\n\nexport const deviceManagementDefaultWidgets = [\n deviceManagementWelcomeWidgetDefinition,\n assetNotesWidgetDefinition\n] satisfies DynamicWidgetDefinition[];\n\n/**\n * Widgets module to be imported in your app module. The exclude list allows to exclude certain widgets.\n * Calls `WidgetsModule.config` under the hood with the `deviceManagementDefaultWidgets`.\n * ***\n * NOTE:\n * The excluded widgets will still be part of your bundle.\n * But as they are lazy loaded should not increase loading duration.\n * ***\n * @param excludeList allows to exclude specific widgets by their id.\n * @returns An empty module with some providers.\n */\nexport function deviceManagementWidgets(\n excludeList?: Array<(typeof deviceManagementDefaultWidgets)[number]['id']>\n): ModuleWithProviders<WidgetsModule> {\n return WidgetsModule.config({ widgets: deviceManagementDefaultWidgets, excludeList });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAMa,MAAA,8BAA8B,GAAG;IAC5C,uCAAuC;IACvC;;AAGF;;;;;;;;;;AAUG;AACG,SAAU,uBAAuB,CACrC,WAA0E,EAAA;AAE1E,IAAA,OAAO,aAAa,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,8BAA8B,EAAE,WAAW,EAAE,CAAC;AACvF;;AC1BA;;AAEG;;;;"}