Some types & fixes

This commit is contained in:
nathangray 2020-02-25 09:05:32 -07:00
parent 49493a6af8
commit de426e1232
2 changed files with 67 additions and 6 deletions

View File

@ -9,10 +9,71 @@
* @author Andreas Stöckel
* @copyright Stylite 2011
* @version $Id$
*/
*
/*egw:uses
// Include all widget classes here
et2_widget_template;
et2_widget_grid;
et2_widget_box;
et2_widget_hbox;
et2_widget_groupbox;
et2_widget_split;
et2_widget_button;
et2_widget_color;
et2_widget_description;
et2_widget_entry;
et2_widget_textbox;
et2_widget_number;
et2_widget_url;
et2_widget_selectbox;
et2_widget_checkbox;
et2_widget_radiobox;
et2_widget_date;
et2_widget_dialog;
et2_widget_diff;
et2_widget_dropdown_button;
et2_widget_styles;
et2_widget_favorites;
et2_widget_html;
et2_widget_htmlarea;
et2_widget_tabs;
et2_widget_taglist;
et2_widget_timestamper;
et2_widget_toolbar;
et2_widget_tree;
et2_widget_historylog;
et2_widget_hrule;
et2_widget_image;
et2_widget_iframe;
et2_widget_file;
et2_widget_link;
et2_widget_progress;
et2_widget_portlet;
et2_widget_selectAccount;
et2_widget_ajaxSelect;
et2_widget_vfs;
et2_widget_video;
et2_widget_barcode;
et2_widget_itempicker;
et2_widget_script;
et2_extension_nextmatch;
et2_extension_customfields;
// Requirements for the etemplate2 object
et2_core_common;
et2_core_xml;
et2_core_arrayMgr;
et2_core_interfaces;
et2_core_legacyJSFunctions;
// Include the client side api core
jsapi.egw_core;
jsapi.egw_json;
*/
Object.defineProperty(exports, "__esModule", { value: true });
var et2_core_baseWidget_1 = require("./et2_core_baseWidget");
var et2_core_baseWidget_2 = require("./et2_core_baseWidget");
/**
* The etemplate2 class manages a certain etemplate2 instance.
*
@ -304,7 +365,7 @@ var etemplate2 = /** @class */ (function () {
// Clear any existing instance
this.clear();
// Create the basic widget container and attach it to the DOM
this.widgetContainer = new et2_core_baseWidget_2.et2_container(null);
this.widgetContainer = new et2_core_baseWidget_1.et2_container(null);
this.widgetContainer.setApiInstance(egw(currentapp, egw.elemWindow(this.DOMContainer)));
this.widgetContainer.setInstanceManager(this);
this.widgetContainer.setParentDOMNode(this.DOMContainer);

View File

@ -8,7 +8,7 @@
* @author Andreas Stöckel
* @copyright Stylite 2011
* @version $Id$
*/
*
/*egw:uses
// Include all widget classes here
@ -96,7 +96,7 @@ export class etemplate2
private etemplate_exec_id: string;
private menuaction: string;
private readonly menuaction: string;
name: string;
private uniqueId: void | string;
private template_base_url: string;
@ -109,7 +109,7 @@ export class etemplate2
private app_obj: EgwApp;
app: string;
constructor(_container, _menuaction)
constructor(_container : HTMLElement, _menuaction? : string)
{
if (typeof _menuaction == "undefined")
{