UNPKG

@logo-elements/component-base

Version:

A set of mixins used by Logo Elements which is extended from Vaadin components.

29 lines (26 loc) 1.06 kB
/** * @license * Copyright LOGO YAZILIM SANAYİ VE TİCARET A.Ş. * * Save to the extent permitted by law, you may not use, copy, modify, * distribute or create derivative works of this material or any part * of it without the prior written consent of LOGO YAZILIM SANAYİ VE TİCARET A.Ş. Limited. * Any reproduction of this material must contain this notice. */ /** * Passes the component to the template renderer callback if the template renderer is imported. * Otherwise, if there is a template, it warns that the template renderer needs to be imported. * * @param {HTMLElement} component */ export function processTemplates(component) { if (window.LogoElements && window.LogoElements.templateRendererCallback) { window.LogoElements.templateRendererCallback(component); return; } if (component.querySelector('template')) { console.warn( `WARNING: <template> inside <${component.localName}> is no longer supported. Import @logo-elements/polymer-legacy-adapter/template-renderer.js to enable compatibility.` ); } }