get widget() {
    const settings = this.component.widget;

    if (settings && this.root?.shadowRoot) {
      settings.shadowRoot = this.root.shadowRoot;
    }

    const widget = settings && Widgets[settings.type] ? new Widgets[settings.type](settings, this.component, this): null;
    return widget;
  }
Returns the component "widget" if one is available.
@returns {Widget|null} - The widget instance. null if not available.