@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
1 lines • 3.05 kB
Source Map (JSON)
{"version":3,"file":"c8y-ngx-components-widgets-definitions-three-d-rotation.mjs","sources":["../../widgets/definitions/three-d-rotation/index.ts","../../widgets/definitions/three-d-rotation/c8y-ngx-components-widgets-definitions-three-d-rotation.ts"],"sourcesContent":["import type { DynamicWidgetDefinition } from '@c8y/ngx-components';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport {\n hookWidget,\n DynamicComponentErrorStrategy,\n DynamicManagedObjectResolver\n} from '@c8y/ngx-components';\nimport { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';\nimport {\n importConfigWithDevice,\n exportConfigWithDevice\n} from '@c8y/ngx-components/widgets/import-export-config';\n\nexport const threeDRotationWidgetDefinition = {\n id: defaultWidgetIds.THREE_D_ROTATION,\n label: gettext('Rotation widget'),\n description: gettext('Displays current device orientation'),\n loadComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/three-d-rotation').then(\n m => m.ThreeDRotationWidgetViewComponent\n ),\n loadConfigComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/three-d-rotation').then(\n m => m.ThreeDRotationWidgetConfigComponent\n ),\n previewImage: 'c8y-style-assets/rotation-widget-pr.png',\n resolve: {\n device: DynamicManagedObjectResolver\n },\n errorStrategy: DynamicComponentErrorStrategy.OVERLAY_ERROR,\n data: {\n schema: () =>\n import(\n 'c8y-schema-loader?interfaceName=ThreeDRotationWidgetConfig!@c8y/ngx-components/widgets/implementations/three-d-rotation'\n ),\n export: exportConfigWithDevice,\n import: importConfigWithDevice,\n settings: {\n noNewWidgets: false,\n widgetDefaults: {\n _width: 8,\n _height: 4\n },\n ng1: {\n options: {\n noDeviceTarget: false,\n groupsSelectable: false\n }\n }\n }\n }\n} satisfies DynamicWidgetDefinition;\n\nexport const threeDRotationWidgetProviders = [hookWidget(threeDRotationWidgetDefinition)];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAaO,MAAM,8BAA8B,GAAG;IAC5C,EAAE,EAAE,gBAAgB,CAAC,gBAAgB;AACrC,IAAA,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC;AACjC,IAAA,WAAW,EAAE,OAAO,CAAC,qCAAqC,CAAC;AAC3D,IAAA,aAAa,EAAE,MACb,OAAO,8DAA8D,CAAC,CAAC,IAAI,CACzE,CAAC,IAAI,CAAC,CAAC,iCAAiC,CACzC;AACH,IAAA,mBAAmB,EAAE,MACnB,OAAO,8DAA8D,CAAC,CAAC,IAAI,CACzE,CAAC,IAAI,CAAC,CAAC,mCAAmC,CAC3C;AACH,IAAA,YAAY,EAAE,yCAAyC;AACvD,IAAA,OAAO,EAAE;AACP,QAAA,MAAM,EAAE;AACT,KAAA;IACD,aAAa,EAAE,6BAA6B,CAAC,aAAa;AAC1D,IAAA,IAAI,EAAE;AACJ,QAAA,MAAM,EAAE,MACN,OACE,yHAAyH,CAC1H;AACH,QAAA,MAAM,EAAE,sBAAsB;AAC9B,QAAA,MAAM,EAAE,sBAAsB;AAC9B,QAAA,QAAQ,EAAE;AACR,YAAA,YAAY,EAAE,KAAK;AACnB,YAAA,cAAc,EAAE;AACd,gBAAA,MAAM,EAAE,CAAC;AACT,gBAAA,OAAO,EAAE;AACV,aAAA;AACD,YAAA,GAAG,EAAE;AACH,gBAAA,OAAO,EAAE;AACP,oBAAA,cAAc,EAAE,KAAK;AACrB,oBAAA,gBAAgB,EAAE;AACnB;AACF;AACF;AACF;;AAGI,MAAM,6BAA6B,GAAG,CAAC,UAAU,CAAC,8BAA8B,CAAC;;ACrDxF;;AAEG;;;;"}