@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
1 lines • 2.41 kB
Source Map (JSON)
{"version":3,"file":"c8y-ngx-components-widgets-definitions-asset-notes.mjs","sources":["../../widgets/definitions/asset-notes/index.ts","../../widgets/definitions/asset-notes/c8y-ngx-components-widgets-definitions-asset-notes.ts"],"sourcesContent":["import type { DynamicWidgetDefinition } from '@c8y/ngx-components';\nimport {\n DynamicComponentErrorStrategy,\n DynamicManagedObjectResolver,\n gettext,\n hookWidget\n} from '@c8y/ngx-components';\nimport { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';\n\nexport const assetNotesWidgetDefinition = {\n id: defaultWidgetIds.ASSET_NOTES,\n label: gettext('Asset notes'),\n description: gettext(`Displays editable asset notes.`),\n loadComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/asset-notes').then(\n m => m.AssetNotesWidgetComponent\n ),\n previewImage: 'c8y-style-assets/dm-asset-notes-widget.png',\n resolve: {\n device: DynamicManagedObjectResolver\n },\n errorStrategy: DynamicComponentErrorStrategy.OVERLAY_ERROR,\n data: {\n schema: () =>\n import(\n 'c8y-schema-loader?interfaceName=AssetNotesConfig!@c8y/ngx-components/widgets/implementations/asset-notes'\n ),\n settings: {\n noNewWidgets: false,\n widgetDefaults: {\n _width: 8,\n _height: 4\n },\n ng1: {\n options: {\n groupsSelectable: true\n }\n }\n }\n }\n} satisfies DynamicWidgetDefinition;\n\nexport const assetNotesWidgetProviders = [hookWidget(assetNotesWidgetDefinition)];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AASa,MAAA,0BAA0B,GAAG;IACxC,EAAE,EAAE,gBAAgB,CAAC,WAAW;AAChC,IAAA,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC;AAC7B,IAAA,WAAW,EAAE,OAAO,CAAC,CAAA,8BAAA,CAAgC,CAAC;AACtD,IAAA,aAAa,EAAE,MACb,OAAO,yDAAyD,CAAC,CAAC,IAAI,CACpE,CAAC,IAAI,CAAC,CAAC,yBAAyB,CACjC;AACH,IAAA,YAAY,EAAE,4CAA4C;AAC1D,IAAA,OAAO,EAAE;AACP,QAAA,MAAM,EAAE,4BAA4B;AACrC,KAAA;IACD,aAAa,EAAE,6BAA6B,CAAC,aAAa;AAC1D,IAAA,IAAI,EAAE;AACJ,QAAA,MAAM,EAAE,MACN,OACE,0GAA0G,CAC3G;AACH,QAAA,QAAQ,EAAE;AACR,YAAA,YAAY,EAAE,KAAK;AACnB,YAAA,cAAc,EAAE;AACd,gBAAA,MAAM,EAAE,CAAC;AACT,gBAAA,OAAO,EAAE,CAAC;AACX,aAAA;AACD,YAAA,GAAG,EAAE;AACH,gBAAA,OAAO,EAAE;AACP,oBAAA,gBAAgB,EAAE,IAAI;AACvB,iBAAA;AACF,aAAA;AACF,SAAA;AACF,KAAA;EACiC;AAEvB,MAAA,yBAAyB,GAAG,CAAC,UAAU,CAAC,0BAA0B,CAAC;;AC1ChF;;AAEG;;;;"}