mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 12:34:57 +01:00
ac0867ab77
reorganized preprocessor a bit to fix some not replaced size attributes also pass on constructor args in all Et2Url widgets There is still a JS error in new searchbox, causing admin searchbox to not render :(
32 lines
805 B
TypeScript
32 lines
805 B
TypeScript
/**
|
|
* EGroupware eTemplate2 - Phone url/call widget
|
|
*
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
* @package api
|
|
* @link https://www.egroupware.org
|
|
* @author Ralf Becker
|
|
*/
|
|
|
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
import {Et2UrlPhone} from "./Et2UrlPhone";
|
|
import {Et2UrlReadonly} from "./Et2UrlReadonly";
|
|
|
|
/**
|
|
* @customElement et2-url-phone_ro
|
|
*/
|
|
export class Et2UrlPhoneReadonly extends Et2UrlReadonly
|
|
{
|
|
transformAttributes(attrs)
|
|
{
|
|
if (typeof attrs.onclick === 'undefined')
|
|
{
|
|
attrs.onclick = () =>
|
|
{
|
|
Et2UrlPhone.action(this.value);
|
|
}
|
|
}
|
|
super.transformAttributes(attrs);
|
|
}
|
|
}
|
|
// @ts-ignore TypeScript is not recognizing that this is a LitElement
|
|
customElements.define("et2-url-phone_ro", Et2UrlPhoneReadonly); |