mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
added et2-date-timeonly_ro widget
This commit is contained in:
parent
045d034891
commit
c83b281aa9
27
api/js/etemplate/Et2Date/Et2DateTimeOnlyReadonly.ts
Normal file
27
api/js/etemplate/Et2Date/Et2DateTimeOnlyReadonly.ts
Normal file
@ -0,0 +1,27 @@
|
||||
/**
|
||||
* 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);
|
@ -32,6 +32,7 @@ import './Et2Date/Et2DateReadonly';
|
||||
import './Et2Date/Et2DateSinceReadonly';
|
||||
import './Et2Date/Et2DateTime';
|
||||
import './Et2Date/Et2DateTimeOnly';
|
||||
import './Et2Date/Et2DateTimeOnlyReadonly';
|
||||
import './Et2Date/Et2DateTimeReadonly';
|
||||
import './Et2Date/Et2DateTimeToday';
|
||||
import './Et2Description/Et2Description';
|
||||
|
Loading…
Reference in New Issue
Block a user