Commit changes from update to TypeScript 3.9.9 so we don't keep reverting them.

This commit is contained in:
nathangray 2021-03-22 11:42:50 -06:00
parent ac1a975f1d
commit d0c5f3c09b
49 changed files with 54 additions and 11 deletions

View File

@ -22,6 +22,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_action_object_impl = exports.et2_DOMWidget = void 0;
/*egw:uses
et2_core_interfaces;
et2_core_widget;

View File

@ -28,6 +28,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_arrayMgrs_expand = exports.et2_readonlysArrayMgr = exports.et2_arrayMgr = void 0;
/**
* Manage access to various template customisation arrays passed to etemplate->exec().
*

View File

@ -22,6 +22,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_container = exports.et2_baseWidget = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
lib/tooltip;

View File

@ -428,7 +428,6 @@ function et2_activateLinks(_content) {
* Inserts the structure generated by et2_activateLinks into the given DOM-Node
*/
function et2_insertLinkText(_text, _node, _target) {
var _a;
if (!_node) {
egw.debug("warn", "et2_insertLinkText called without node", _text, _node, _target);
return;
@ -450,7 +449,7 @@ function et2_insertLinkText(_text, _node, _target) {
}
}
}
else if ((_a = s) === null || _a === void 0 ? void 0 : _a.text) {
else if (s === null || s === void 0 ? void 0 : s.text) {
if (!s.href) {
egw.debug("warn", "et2_activateLinks gave bad data", s, _node, _target);
s.href = "";

View File

@ -22,6 +22,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_editableWidget = void 0;
/*egw:uses
et2_core_inputWidget;
*/

View File

@ -9,6 +9,7 @@
* @author Andreas Stöckel
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClassWithAttributes = void 0;
/*egw:uses
et2_core_common;
*/

View File

@ -22,6 +22,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_inputWidget = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
et2_core_interfaces;

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_valueWidget = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
et2_core_baseWidget;

View File

@ -22,6 +22,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_widget = exports.et2_createWidget = exports.et2_register_widget = void 0;
/*egw:uses
jsapi.egw;
et2_core_xml;

View File

@ -21,6 +21,7 @@
et2_dataview_view_resizeable;
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_dataview = void 0;
var et2_dataview_model_columns_1 = require("./et2_dataview_model_columns");
var et2_dataview_view_resizeable_1 = require("./et2_dataview_view_resizeable");
var et2_dataview_view_grid_1 = require("./et2_dataview_view_grid");

View File

@ -21,6 +21,7 @@
egw_action.egw_action;
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_dataview_controller = void 0;
var et2_dataview_controller_selection_1 = require("./et2_dataview_controller_selection");
var et2_dataview_view_row_1 = require("./et2_dataview_view_row");
/**

View File

@ -11,6 +11,7 @@
* @version $Id$
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_dataview_columns = exports.et2_dataview_column = void 0;
/*egw:uses
et2_core_inheritance;
et2_inheritance;
@ -204,14 +205,14 @@ var et2_dataview_columns = /** @class */ (function () {
get: function () {
return this._totalWidth;
},
enumerable: true,
enumerable: false,
configurable: true
});
Object.defineProperty(et2_dataview_columns.prototype, "totalFixed", {
get: function () {
return this._totalFixed ? this._totalFixed : 0;
},
enumerable: true,
enumerable: false,
configurable: true
});
/**

View File

@ -11,6 +11,7 @@
* @version $Id$
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_dataview_container = void 0;
/**
* The et2_dataview_container class is the main object each dataview consits of.
* Each row, spacer as well as the grid itself are containers. A container is

View File

@ -33,6 +33,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_dataview_grid = void 0;
var et2_dataview_view_container_1 = require("./et2_dataview_view_container");
var et2_dataview_view_spacer_1 = require("./et2_dataview_view_spacer");
var et2_dataview_grid = /** @class */ (function (_super_1) {

View File

@ -11,6 +11,7 @@
* @version $Id$
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_dataview_view_resizable = void 0;
/**
* This set of functions is currently only supporting resizing in ew-direction
*/

View File

@ -30,6 +30,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_dataview_row = void 0;
var et2_dataview_row = /** @class */ (function (_super) {
__extends(et2_dataview_row, _super);
/**

View File

@ -11,6 +11,7 @@
* @version $Id$
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_dataview_rowProvider = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
et2_core_inheritance;

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_dataview_spacer = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
et2_dataview_view_container;

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_dataview_tile = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
et2_dataview_interfaces;

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_customfields_list = void 0;
/*egw:uses
lib/tooltip;
/vendor/bower-asset/jquery/dist/jquery.js;

View File

@ -38,6 +38,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_nextmatch_controller = void 0;
var et2_dataview_view_row_1 = require("./et2_dataview_view_row");
var et2_dataview_view_tile_1 = require("./et2_dataview_view_tile");
var et2_dataview_controller_1 = require("./et2_dataview_controller");

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_nextmatch_rowProvider = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
et2_core_inheritance;

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_barcode = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
/api/js/jquery/barcode/jquery-barcode.min.js;

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_details = exports.et2_box = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
et2_core_baseWidget;

View File

@ -22,6 +22,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_button = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
et2_core_interfaces;

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_checkbox = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
et2_core_inputWidget;

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_color_ro = exports.et2_color = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
et2_core_inputWidget;

View File

@ -23,6 +23,7 @@ var __extends = (this && this.__extends) || (function () {
})();
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_description = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
et2_core_baseWidget;

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_diff = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
/vendor/bower-asset/jquery-ui/jquery-ui.js;

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_dropdown_button = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
/vendor/bower-asset/jquery-ui/jquery-ui.js;

View File

@ -11,6 +11,7 @@
* @version $Id$
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_dynheight = void 0;
/*egw:use
/vendor/bower-asset/jquery/dist/jquery.js;
et2_core_inheritance;

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_file = void 0;
/*egw:uses
et2_core_inputWidget;
phpgwapi.Resumable.resumable;

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_grid = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
et2_core_DOMWidget;

View File

@ -23,6 +23,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_historylog = void 0;
var et2_core_widget_1 = require("./et2_core_widget");
var et2_core_inheritance_1 = require("./et2_core_inheritance");
var et2_core_valueWidget_1 = require("./et2_core_valueWidget");

View File

@ -22,6 +22,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_html = void 0;
/*egw:uses
jsapi.jsapi; // Needed for egw_seperateJavaScript
/vendor/bower-asset/jquery/dist/jquery.js;

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_htmlarea = void 0;
/*egw:uses
jsapi.jsapi; // Needed for egw_seperateJavaScript
/vendor/tinymce/tinymce/tinymce.min.js;

View File

@ -272,7 +272,6 @@ var et2_itempicker = /** @class */ (function (_super) {
item.attr("id", id)
.html(data[id])
.click(function (e) {
var _a;
if (e.ctrlKey || e.metaKey) {
// add to selection
jQuery(this).addClass("selected");
@ -280,7 +279,7 @@ var et2_itempicker = /** @class */ (function (_super) {
else if (e.shiftKey) {
// select range
var start = jQuery(this).siblings(".selected").first();
if (((_a = start) === null || _a === void 0 ? void 0 : _a.length) == 0) {
if ((start === null || start === void 0 ? void 0 : start.length) == 0) {
// no start item - cannot select range - select single item
jQuery(this).addClass("selected");
return true;

View File

@ -22,6 +22,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_number = void 0;
/*egw:uses
et2_widget_textbox;
*/

View File

@ -22,6 +22,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_password_ro = exports.et2_password = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
et2_core_inputWidget;

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_radiobox = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
et2_core_inputWidget;

View File

@ -27,6 +27,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_selectAccount_ro = exports.et2_selectAccount = void 0;
/*egw:uses
et2_widget_link;
*/

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_styles = void 0;
/*egw:uses
et2_core_widget;
*/

View File

@ -23,6 +23,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_taglist = void 0;
/*egw:uses
et2_core_inputWidget;
/vendor/egroupware/magicsuggest/magicsuggest.js;

View File

@ -22,6 +22,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_template = void 0;
/*egw:uses
et2_core_xml;
et2_core_DOMWidget;

View File

@ -22,6 +22,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_textbox_ro = exports.et2_textbox = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
et2_core_inputWidget;

View File

@ -134,7 +134,6 @@ var et2_timestamper = /** @class */ (function (_super) {
tab.activateTab(widget);
};
et2_timestamper.prototype._get_input = function (target) {
var _a;
var input = null;
var widget = null;
if (typeof target == 'string') {
@ -149,7 +148,7 @@ var et2_timestamper = /** @class */ (function (_super) {
if (widget) {
return widget;
}
if ((_a = input) === null || _a === void 0 ? void 0 : _a.context) {
if (input === null || input === void 0 ? void 0 : input.context) {
input = input.get(0);
}
return input;

View File

@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
})();
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.et2_vfsSelect = exports.et2_vfsPath = exports.et2_vfs = void 0;
/*egw:uses
/vendor/bower-asset/jquery/dist/jquery.js;
vfsSelectUI;

View File

@ -75,6 +75,7 @@
jsapi.egw_json;
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.etemplate2 = void 0;
var et2_core_baseWidget_1 = require("./et2_core_baseWidget");
var egw_app_1 = require("../jsapi/egw_app");
/**
@ -214,21 +215,21 @@ var etemplate2 = /** @class */ (function () {
get: function () {
return this._widgetContainer;
},
enumerable: true,
enumerable: false,
configurable: true
});
Object.defineProperty(etemplate2.prototype, "DOMContainer", {
get: function () {
return this._DOMContainer;
},
enumerable: true,
enumerable: false,
configurable: true
});
Object.defineProperty(etemplate2.prototype, "etemplate_exec_id", {
get: function () {
return this._etemplate_exec_id;
},
enumerable: true,
enumerable: false,
configurable: true
});
/**

View File

@ -23,6 +23,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.vfsSelectUI = void 0;
/*egw:uses
/api/js/jsapi/egw_app.js
*/