mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
27 lines
717 B
TypeScript
27 lines
717 B
TypeScript
|
/**
|
||
|
* EGroupware eTemplate2 - Readonly date+time WebComponent
|
||
|
*
|
||
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||
|
* @package api
|
||
|
* @link https://www.egroupware.org
|
||
|
* @author Nathan Gray
|
||
|
*/
|
||
|
|
||
|
import {formatTime, parseDateTime} from "./Et2Date";
|
||
|
import {Et2DateReadonly} from "./Et2DateReadonly";
|
||
|
|
||
|
/**
|
||
|
* This is a stripped-down read-only widget used in nextmatch
|
||
|
*/
|
||
|
export class Et2DateTimeOnlyReadonly extends Et2DateReadonly
|
||
|
{
|
||
|
constructor()
|
||
|
{
|
||
|
super();
|
||
|
this.parser = parseDateTime;
|
||
|
this.formatter = formatTime;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// @ts-ignore TypeScript is not recognizing that Et2Date is a LitElement
|
||
|
customElements.define("et2-date-timeonly_ro", Et2DateTimeOnlyReadonly);
|