mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Convert etemplate2 to typescript
This commit is contained in:
parent
f0392bc4e8
commit
49493a6af8
@ -299,6 +299,7 @@ var et2_container = /** @class */ (function (_super) {
|
||||
};
|
||||
return et2_container;
|
||||
}(et2_baseWidget));
|
||||
exports.et2_container = et2_container;
|
||||
// Register widget for attributes, but not for any xml tags
|
||||
et2_core_widget_1.et2_register_widget(et2_container, []);
|
||||
/**
|
||||
|
@ -328,7 +328,7 @@ export class et2_baseWidget extends et2_DOMWidget implements et2_IAligned
|
||||
/**
|
||||
* Simple container object
|
||||
*/
|
||||
class et2_container extends et2_baseWidget
|
||||
export class et2_container extends et2_baseWidget
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -68,7 +68,7 @@ var et2_template = /** @class */ (function (_super) {
|
||||
var template_name = parts.pop();
|
||||
// Check to see if XML is known
|
||||
var xml = null;
|
||||
var templates = etemplate2.prototype.templates; // use global eTemplate cache
|
||||
var templates = etemplate2.templates; // use global eTemplate cache
|
||||
if (!(xml = templates[template_name])) {
|
||||
// Check to see if ID is short form --> prepend parent/top-level name
|
||||
if (template_name.indexOf('.') < 0) {
|
||||
|
@ -15,9 +15,9 @@
|
||||
|
||||
import './et2_core_interfaces';
|
||||
import './et2_core_common';
|
||||
import { et2_DOMWidget } from './et2_core_DOMWidget';
|
||||
import { ClassWithAttributes } from "./et2_core_inheritance";
|
||||
import { et2_widget, et2_createWidget, et2_register_widget, WidgetConfig } from "./et2_core_widget";
|
||||
import {et2_DOMWidget} from './et2_core_DOMWidget';
|
||||
import {ClassWithAttributes} from "./et2_core_inheritance";
|
||||
import {et2_register_widget, WidgetConfig} from "./et2_core_widget";
|
||||
import './et2_types';
|
||||
|
||||
/**
|
||||
@ -110,7 +110,7 @@ class et2_template extends et2_DOMWidget
|
||||
|
||||
// Check to see if XML is known
|
||||
var xml = null;
|
||||
var templates = etemplate2.prototype.templates; // use global eTemplate cache
|
||||
var templates = etemplate2.templates; // use global eTemplate cache
|
||||
if(!(xml = templates[template_name]))
|
||||
{
|
||||
// Check to see if ID is short form --> prepend parent/top-level name
|
||||
|
File diff suppressed because it is too large
Load Diff
1351
api/js/etemplate/etemplate2.ts
Normal file
1351
api/js/etemplate/etemplate2.ts
Normal file
File diff suppressed because it is too large
Load Diff
4
api/js/jsapi/egw_global.d.ts
vendored
4
api/js/jsapi/egw_global.d.ts
vendored
@ -744,7 +744,7 @@ declare interface IegwWndLocal extends IegwGlobal
|
||||
* locally. Global handlers must stay around, so should be used
|
||||
* for global modules.
|
||||
*/
|
||||
registerJSONPlugin(_callback : Function, _context, _type, _global);
|
||||
registerJSONPlugin(_callback : Function, _context, _type?, _global?);
|
||||
/**
|
||||
* Removes a previously registered plugin.
|
||||
*
|
||||
@ -757,7 +757,7 @@ declare interface IegwWndLocal extends IegwGlobal
|
||||
* handling.
|
||||
* @param {boolean} [_global=false] Remove a global or local handler.
|
||||
*/
|
||||
unregisterJSONPlugin(_callback : Function, _context, _type : string, _global : boolean);
|
||||
unregisterJSONPlugin(_callback : Function, _context, _type? : string, _global? : boolean);
|
||||
|
||||
/**
|
||||
* implemented in egw_files.js
|
||||
|
Loading…
Reference in New Issue
Block a user