@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
44 lines (40 loc) • 1.93 kB
JavaScript
import { gettext } from '@c8y/ngx-components/gettext';
import { DynamicComponentErrorStrategy, DynamicManagedObjectResolver, hookWidget } from '@c8y/ngx-components';
import { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';
import { importConfigWithDevice, exportConfigWithDevice } from '@c8y/ngx-components/widgets/import-export-config';
const threeDRotationWidgetDefinition = {
id: defaultWidgetIds.THREE_D_ROTATION,
label: gettext('Rotation widget'),
description: gettext('Displays current device orientation'),
loadComponent: () => import('@c8y/ngx-components/widgets/implementations/three-d-rotation').then(m => m.ThreeDRotationWidgetViewComponent),
loadConfigComponent: () => import('@c8y/ngx-components/widgets/implementations/three-d-rotation').then(m => m.ThreeDRotationWidgetConfigComponent),
previewImage: 'c8y-style-assets/rotation-widget-pr.png',
resolve: {
device: DynamicManagedObjectResolver
},
errorStrategy: DynamicComponentErrorStrategy.OVERLAY_ERROR,
data: {
schema: () => import('c8y-schema-loader?interfaceName=ThreeDRotationWidgetConfig&type=widget-config!@c8y/ngx-components/widgets/implementations/three-d-rotation'),
export: exportConfigWithDevice,
import: importConfigWithDevice,
settings: {
noNewWidgets: false,
widgetDefaults: {
_width: 8,
_height: 4
},
ng1: {
options: {
noDeviceTarget: false,
groupsSelectable: false
}
}
}
}
};
const threeDRotationWidgetProviders = [hookWidget(threeDRotationWidgetDefinition)];
/**
* Generated bundle index. Do not edit.
*/
export { threeDRotationWidgetDefinition, threeDRotationWidgetProviders };
//# sourceMappingURL=c8y-ngx-components-widgets-definitions-three-d-rotation.mjs.map