From fb94b13a89dc893a88d77865774be0511c4b48f4 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 21 Jan 2020 16:14:45 +0100 Subject: [PATCH] Convert et2_video widget to TS --- api/js/etemplate/et2_widget_video.js | 286 +++++++++++++-------------- api/js/etemplate/et2_widget_video.ts | 188 ++++++++++++++++++ 2 files changed, 325 insertions(+), 149 deletions(-) create mode 100644 api/js/etemplate/et2_widget_video.ts diff --git a/api/js/etemplate/et2_widget_video.js b/api/js/etemplate/et2_widget_video.js index 439051cbf1..e142496353 100644 --- a/api/js/etemplate/et2_widget_video.js +++ b/api/js/etemplate/et2_widget_video.js @@ -1,3 +1,4 @@ +"use strict"; /** * EGroupware eTemplate2 - JS Description object * @@ -9,13 +10,28 @@ * @copyright Stylite AG * @version $Id$ */ - +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); /*egw:uses - /vendor/bower-asset/jquery/dist/jquery.js; - et2_core_interfaces; - et2_core_baseWidget; + /vendor/bower-asset/jquery/dist/jquery.js; + et2_core_interfaces; + et2_core_baseWidget; */ - +var et2_core_baseWidget_1 = require("./et2_core_baseWidget"); +var et2_core_inheritance_1 = require("./et2_core_inheritance"); +var et2_core_DOMWidget_1 = require("./et2_core_DOMWidget"); /** * This widget represents the HTML5 video tag with all its optional attributes * @@ -38,152 +54,124 @@ *