diff --git a/api/js/etemplate/et2_widget_url.js b/api/js/etemplate/et2_widget_url.js index 05ecb58eed..5751e98083 100644 --- a/api/js/etemplate/et2_widget_url.js +++ b/api/js/etemplate/et2_widget_url.js @@ -23,6 +23,7 @@ var __extends = (this && this.__extends) || (function () { }; })(); Object.defineProperty(exports, "__esModule", { value: true }); +exports.et2_url_ro = exports.et2_url = void 0; /*egw:uses et2_textbox; et2_valueWidget; @@ -281,6 +282,7 @@ var et2_url = /** @class */ (function (_super_1) { et2_url.EMAIL_PREG = new RegExp(/^(([^\042',<][^,<]+|\042[^\042]+\042|\'[^\']+\'|"(?:[^"\\]|\\.)*")\s?<)?[^\x00-\x20()\xe2\x80\x8b<>@,;:\042\[\]\x80-\xff]+@([a-z0-9ÄÖÜäöüß](|[a-z0-9ÄÖÜäöüß_-]*[a-z0-9ÄÖÜäöüß])\.)+[a-z]{2,}>?$/i); return et2_url; }(et2_widget_textbox_1.et2_textbox)); +exports.et2_url = et2_url; et2_core_widget_1.et2_register_widget(et2_url, ["url", "url-email", "url-phone", "url-fax"]); /** * et2_url_ro is the readonly implementation of the url, email & phone. @@ -472,5 +474,6 @@ var et2_url_ro = /** @class */ (function (_super_1) { et2_url_ro.email_cache = []; return et2_url_ro; }(et2_core_valueWidget_1.et2_valueWidget)); +exports.et2_url_ro = et2_url_ro; et2_core_widget_1.et2_register_widget(et2_url_ro, ["url_ro", "url-email_ro", "url-phone_ro", "url-fax_ro"]); //# sourceMappingURL=et2_widget_url.js.map \ No newline at end of file diff --git a/api/js/etemplate/et2_widget_url.ts b/api/js/etemplate/et2_widget_url.ts index 85ef31a20b..56ecafd0f5 100644 --- a/api/js/etemplate/et2_widget_url.ts +++ b/api/js/etemplate/et2_widget_url.ts @@ -25,7 +25,7 @@ import {et2_valueWidget} from "./et2_core_valueWidget"; * * @augments et2_textbox */ -class et2_url extends et2_textbox +export class et2_url extends et2_textbox { static readonly _attributes : any = { "multiline": { @@ -306,7 +306,7 @@ et2_register_widget(et2_url, ["url", "url-email", "url-phone", "url-fax"]); * * @augments et2_valueWidget */ -class et2_url_ro extends et2_valueWidget +export class et2_url_ro extends et2_valueWidget { static readonly _attributes : any = { "contact_plus": { diff --git a/api/js/jsapi/egw_global.d.ts b/api/js/jsapi/egw_global.d.ts index d9e1fa8e90..c778c30147 100644 --- a/api/js/jsapi/egw_global.d.ts +++ b/api/js/jsapi/egw_global.d.ts @@ -980,11 +980,12 @@ declare interface IegwWndLocal extends IegwGlobal * onshow: // Callback function dispatches when notification is shown * onclose: // Callback function dispateches on notification close * onerror: // Callback function dispatches on error, default is a egw.debug log + * requireInteraction: // boolean value indicating that a notification should remain active until the user clicks or dismisses it * } * @return {boolean} false if Notification is not supported by browser */ - notification(_title : string, _options : {dir?: "ltr"|"rtl"|"auto", lang: string, body?: string, icon?: string, - tag?: string, onclick: Function, onshow?: Function, onclose?: Function, onerror?: Function}) : false|void; + notification(_title : string, _options : {dir?: "ltr"|"rtl"|"auto", lang?: string, body?: string, icon?: string, + tag?: string, onclick: Function, onshow?: Function, onclose?: Function, onerror?: Function, requireInteraction?: boolean}) : false|void; /** * Check Notification availability by browser *