mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-15 11:11:49 +01:00
5ec2a233a4
ToDo/Questions Nathan: - Tracker index gives a client-side TypeError - <et2-select-account readonly="true" is not registered, but <et2-select type="select-account" readonly="true" works - <et2-date-time was registered as <et2-datetime, was that a typo of a conscious choice to rename the widget and not just prefix with et2- - not yet enabled are r/w et2-date(-time) - still missing are r/o et2-date-(since|duration)
27 lines
713 B
TypeScript
27 lines
713 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 {formatDateTime, parseDateTime} from "./Et2Date";
|
|
import {Et2DateReadonly} from "./Et2DateReadonly";
|
|
|
|
/**
|
|
* This is a stripped-down read-only widget used in nextmatch
|
|
*/
|
|
export class Et2DateTimeReadonly extends Et2DateReadonly
|
|
{
|
|
constructor()
|
|
{
|
|
super();
|
|
this.parser = parseDateTime;
|
|
this.formatter = formatDateTime;
|
|
}
|
|
}
|
|
|
|
// @ts-ignore TypeScript is not recognizing that Et2Date is a LitElement
|
|
customElements.define("et2-date-time_ro", Et2DateTimeReadonly); |