updated Widget to use krona/_base/declare instead krona/class
added jsdoc about krona/class deprecation