2021-07-22 22:54:10 +02:00
|
|
|
/**
|
2021-08-13 23:26:18 +02:00
|
|
|
* EGroupware eTemplate2 - Textbox widget (WebComponent)
|
2021-07-22 22:54:10 +02:00
|
|
|
*
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @package etemplate
|
|
|
|
* @subpackage api
|
|
|
|
* @link https://www.egroupware.org
|
|
|
|
* @author Nathan Gray
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2021-08-26 17:20:41 +02:00
|
|
|
import {css, html} from "../../../../node_modules/@lion/core/index.js"
|
|
|
|
import {LionInput} from "../../../../node_modules/@lion/input/index.js"
|
2021-08-25 23:35:06 +02:00
|
|
|
import {Et2InputWidget} from "../Et2InputWidget/Et2InputWidget";
|
|
|
|
import {Et2Widget} from "../Et2Widget/Et2Widget";
|
2021-07-22 22:54:10 +02:00
|
|
|
|
2021-08-10 23:02:52 +02:00
|
|
|
export class Et2Textbox extends Et2InputWidget(Et2Widget(LionInput))
|
2021-07-22 22:54:10 +02:00
|
|
|
{
|
|
|
|
|
2021-08-13 23:26:18 +02:00
|
|
|
static get styles()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
...super.styles,
|
|
|
|
css`
|
|
|
|
/* Custom CSS */
|
|
|
|
`,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
static get properties()
|
|
|
|
{
|
|
|
|
return {
|
|
|
|
...super.properties,
|
2021-08-20 23:52:22 +02:00
|
|
|
onkeypress: Function,
|
2021-08-10 23:02:52 +02:00
|
|
|
}
|
2021-08-13 23:26:18 +02:00
|
|
|
}
|
2021-08-10 23:02:52 +02:00
|
|
|
|
2021-08-13 23:26:18 +02:00
|
|
|
constructor()
|
|
|
|
{
|
|
|
|
super();
|
|
|
|
}
|
2021-08-10 23:02:52 +02:00
|
|
|
|
2021-08-13 23:26:18 +02:00
|
|
|
connectedCallback()
|
|
|
|
{
|
|
|
|
super.connectedCallback();
|
|
|
|
}
|
2021-07-22 22:54:10 +02:00
|
|
|
}
|
2021-08-10 23:02:52 +02:00
|
|
|
|
|
|
|
customElements.define("et2-textbox", Et2Textbox);
|