import { SPWidget } from '@servicenow/sdk/core'

const CHARTJS = 'a7a8754347011200ba13a5554ee4905c'
const SP_ELLIPSIS_TOOLTIP = '1d2b40e07323201081d3738234f6a714'

SPWidget({
    $id: Now.ID['sample-widget'],
    name: 'Sample Widget',
    id: 'sample-widget',
    clientScript: Now.include('sample-widget.client.js'),
    serverScript: Now.include('sample-widget.server.js'),
    htmlTemplate: Now.include('sample-widget.html'),
    customCss: Now.include('sample-widget.scss'),
    demoData: {
        data: {
            incidents: [99, 59, 80, 81, 56, 55, 40, 0, 5, 21, 11, 30],
        },
    },
    hasPreview: true,
    linkScript: `function link(scope, element, attrs, controller) {
}`,
    dependencies: [CHARTJS],
    angularProviders: [SP_ELLIPSIS_TOOLTIP],
})
