2021-12-17 18:06:37 +01:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2021-12-15 00:55:02 +01:00
|
|
|
import {formatDateTime, parseDateTime} from "./Et2Date";
|
2021-12-17 18:06:37 +01:00
|
|
|
import {Et2DateReadonly} from "./Et2DateReadonly";
|
2021-12-15 00:55:02 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is a stripped-down read-only widget used in nextmatch
|
|
|
|
*/
|
2021-12-17 18:06:37 +01:00
|
|
|
export class Et2DateTimeReadonly extends Et2DateReadonly
|
2021-12-15 00:55:02 +01:00
|
|
|
{
|
2021-12-17 18:06:37 +01:00
|
|
|
constructor()
|
2021-12-15 00:55:02 +01:00
|
|
|
{
|
2021-12-17 18:06:37 +01:00
|
|
|
super();
|
|
|
|
this.parser = parseDateTime;
|
|
|
|
this.formatter = formatDateTime;
|
2021-12-15 00:55:02 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// @ts-ignore TypeScript is not recognizing that Et2Date is a LitElement
|
2022-01-19 09:57:06 +01:00
|
|
|
customElements.define("et2-date-time_ro", Et2DateTimeReadonly);
|