Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
InterHop
Omop
susana-front
Commits
a941f045
Commit
a941f045
authored
Jan 23, 2019
by
Adrien PARROT
Browse files
rm resources
parent
85fcc5f5
Changes
1000
Expand all
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
20 of 1000+
files are displayed.
Plain diff
Email patch
WebContent/resources/jquery-sap-dbg.js
deleted
100755 → 0
View file @
85fcc5f5
This diff is collapsed.
Click to expand it.
WebContent/resources/jquery-sap.js
deleted
100755 → 0
View file @
85fcc5f5
This diff is collapsed.
Click to expand it.
WebContent/resources/jquery-sap.js.map
deleted
100755 → 0
View file @
85fcc5f5
This diff is collapsed.
Click to expand it.
WebContent/resources/jquery.sap.act-dbg.js
deleted
100755 → 0
View file @
85fcc5f5
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2018 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides functionality for activity detection
sap
.
ui
.
define
([
'
sap/ui/util/ActivityDetection
'
,
'
jquery.sap.global
'
],
function
(
ActivityDetection
,
jQuery
)
{
"
use strict
"
;
/**
* @public
* @name jQuery.sap.act
* @namespace
* @static
* @deprecated since 1.58 use {@link module:sap/ui/util/ActivityDetection} instead
*/
jQuery
.
sap
.
act
=
ActivityDetection
;
/**
* Registers the given handler to the activity event, which is fired when an activity was detected after a certain period of inactivity.
*
* The Event is not fired for Internet Explorer 8.
*
* @param {Function} fnFunction The function to call, when an activity event occurs.
* @param {Object} [oListener] The 'this' context of the handler function.
* @protected
*
* @function
* @name jQuery.sap.act#attachActivate
*/
/**
* Deregisters a previously registered handler from the activity event.
*
* @param {Function} fnFunction The function to call, when an activity event occurs.
* @param {Object} [oListener] The 'this' context of the handler function.
* @protected
*
* @function
* @name jQuery.sap.act#detachActivate
*/
/**
* Checks whether recently an activity was detected.
*
* @return true if recently an activity was detected, false otherwise
* @protected
*
* @function
* @name jQuery.sap.act#isActive
*/
/**
* Reports an activity.
*
* @public
*
* @function
* @name jQuery.sap.act#refresh
*/
return
jQuery
;
});
\ No newline at end of file
WebContent/resources/jquery.sap.act.js
deleted
100755 → 0
View file @
85fcc5f5
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2018 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap
.
ui
.
define
([
'
sap/ui/util/ActivityDetection
'
,
'
jquery.sap.global
'
],
function
(
A
,
q
){
"
use strict
"
;
q
.
sap
.
act
=
A
;
return
q
;});
WebContent/resources/jquery.sap.dom-dbg.js
deleted
100755 → 0
View file @
85fcc5f5
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2018 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides functionality related to DOM analysis and manipulation which is not provided by jQuery itself.
sap
.
ui
.
define
([
'
jquery.sap.global
'
,
'
sap/ui/dom/containsOrEquals
'
,
'
sap/ui/dom/patch
'
,
'
sap/ui/core/syncStyleClass
'
,
'
sap/ui/dom/getOwnerWindow
'
,
'
sap/ui/dom/getScrollbarSize
'
,
'
sap/ui/dom/denormalizeScrollLeftRTL
'
,
'
sap/ui/dom/denormalizeScrollBeginRTL
'
,
'
sap/ui/dom/units/Rem
'
,
'
sap/ui/dom/jquery/Aria
'
,
'
sap/ui/dom/jquery/Selection
'
,
'
sap/ui/dom/jquery/zIndex
'
,
'
sap/ui/dom/jquery/parentByAttribute
'
,
'
sap/ui/dom/jquery/cursorPos
'
,
'
sap/ui/dom/jquery/selectText
'
,
'
sap/ui/dom/jquery/getSelectedText
'
,
'
sap/ui/dom/jquery/rect
'
,
'
sap/ui/dom/jquery/rectContains
'
,
'
sap/ui/dom/jquery/Focusable
'
,
'
sap/ui/dom/jquery/hasTabIndex
'
,
'
sap/ui/dom/jquery/scrollLeftRTL
'
,
'
sap/ui/dom/jquery/scrollRightRTL
'
,
'
sap/ui/dom/jquery/Selectors
'
],
function
(
jQuery
,
domContainsOrEquals
,
domPatch
,
fnSyncStyleClass
,
domGetOwnerWindow
,
domGetScrollbarSize
,
domDenormalizeScrollLeftRTL
,
domDenormalizeScrollBeginRTL
,
domUnitsRem
/*
jqueryAria,
jquerySelection,
jqueryzIndex,
jqueryParentByAttribute,
jqueryCursorPos,
jquerySelectText,
jqueryGetSelectedText,
jqueryRect,
jqueryRectContains,
jqueryFocusable,
jqueryHasTabIndex,
jqueryScrollLeftRTL,
jqueryScrollRightRTL,
jquerySelectors*/
)
{
"
use strict
"
;
/**
* Shortcut for document.getElementById().
*
* @param {string} sId The id of the DOM element to return
* @param {Window} [oWindow=window] The window (optional)
* @return {Element} The DOMNode identified by the given sId
* @public
* @since 0.9.0
* @deprecated since 1.58 use <code>document.getElementById</code> instead
*/
jQuery
.
sap
.
domById
=
function
domById
(
sId
,
oWindow
)
{
return
sId
?
(
oWindow
||
window
).
document
.
getElementById
(
sId
)
:
null
;
};
/**
* Shortcut for jQuery("#" + id) with additionally the id being escaped properly.
* I.e.: returns the jQuery object for the DOM element with the given id
*
* Use this method instead of jQuery(...) if you know the argument is exactly one id and
* the id is not known in advance because it is in a variable (as opposed to a string
* constant with known content).
*
* @param {string} sId The id to search for and construct the jQuery object
* @param {Element} oContext the context DOM Element
* @return {Object} The jQuery object for the DOM element identified by the given sId
* @public
* @since 0.9.1
* @function
* @deprecated since 1.58 use <code>jQuery(document.getElementById(sId))</code> instead
*/
jQuery
.
sap
.
byId
=
function
byId
(
sId
,
oContext
)
{
var
escapedId
=
""
;
if
(
sId
)
{
// Note: This does not escape all relevant characters according to jQuery's documentation
// (see http://api.jquery.com/category/selectors/)
// As the behavior hasn't been changed for a long time it is not advisable to change it in
// future as users might be already escaping characters on their own or relying on the fact
// selector like byId("my-id > div") can be used.
escapedId
=
"
#
"
+
sId
.
replace
(
/
(
:|
\.)
/g
,
'
\\
$1
'
);
}
return
jQuery
(
escapedId
,
oContext
);
};
/**
* Calls focus() on the given DOM element.
*
* @param {Element} oDomRef The DOM element to focus (or null - in this case the method does nothing)
* @return {boolean} Whether the focus() command was executed without an error
* @public
* @since 1.1.2
* @function
* @deprecated since 1.58 use <code>oDomRef.focus()</code> instead
*/
jQuery
.
sap
.
focus
=
function
focus
(
oDomRef
)
{
if
(
!
oDomRef
)
{
return
;
}
oDomRef
.
focus
();
return
true
;
};
/*
* Convert <code>px</code> values to <code>rem</code>.
*
* @param {string|float} vPx The value in <code>px</code> units. E.g.: <code>"16px"</code> or <code>16</code>
* @returns {float} The converted value in <code>rem</code> units. E.g.: <code>1</code>
* @protected
* @since 1.48
* @deprecated since 1.58 use {@link module:sap/ui/dom/units/Rem.fromPx} instead
*/
jQuery
.
sap
.
pxToRem
=
domUnitsRem
.
fromPx
;
/*
* Convert <code>rem</code> values to <code>px</code>.
*
* @param {string|float} vRem The value in <code>rem</code>. E.g.: <code>"1rem"</code> or <code>1</code>
* @returns {float} The converted value in <code>px</code> units. E.g.: <code>16</code>
* @protected
* @since 1.48
* @deprecated since 1.58 use {@link module:sap/ui/dom/units/Rem.toPx} instead
*/
jQuery
.
sap
.
remToPx
=
domUnitsRem
.
toPx
;
/**
* Returns the outer HTML of the given HTML element.
*
* @return {string} outer HTML
* @public
* @name jQuery#outerHTML
* @author SAP SE
* @since 0.9.0
* @function
* @deprecated since 1.58 use native <code>Element#outerHTML</code> instead
*/
jQuery
.
fn
.
outerHTML
=
function
()
{
var
oDomRef
=
this
.
get
(
0
);
if
(
oDomRef
&&
oDomRef
.
outerHTML
)
{
return
jQuery
.
trim
(
oDomRef
.
outerHTML
);
}
else
{
var
doc
=
this
[
0
]
?
this
[
0
].
ownerDocument
:
document
;
var
oDummy
=
doc
.
createElement
(
"
div
"
);
oDummy
.
appendChild
(
oDomRef
.
cloneNode
(
true
));
return
oDummy
.
innerHTML
;
}
};
/**
* Returns whether <code>oDomRefChild</code> is contained in or equal to <code>oDomRefContainer</code>.
*
* This is a browser-independent version of the .contains method of Internet Explorer.
* For compatibility reasons it returns <code>true</code> if <code>oDomRefContainer</code> and
* <code>oDomRefChild</code> are equal.
*
* This method intentionally does not operate on the jQuery object, as the original <code>jQuery.contains()</code>
* method also does not do so.
*
* @param {Element} oDomRefContainer The container element
* @param {Element} oDomRefChild The child element (must not be a text node, must be an element)
* @return {boolean} Whether <code>oDomRefChild</code> is contained in or equal to <code>oDomRefContainer</code>
* @public
* @author SAP SE
* @since 0.9.0
* @function
* @deprecated since 1.58 use {@link module:sap/ui/dom/containsOrEquals} instead
*/
jQuery
.
sap
.
containsOrEquals
=
domContainsOrEquals
;
/**
* For the given scrollLeft value this method returns the scrollLeft value as understood by the current browser in RTL mode.
* This value is specific to the given DOM element, as the computation may involve its dimensions.
*
* So when oDomRef should be scrolled 2px from the leftmost position, the number "2" must be given as iNormalizedScrollLeft
* and the result of this method (which may be a large or even negative number, depending on the browser) can then be set as
* oDomRef.scrollLeft to achieve the desired (cross-browser-consistent) scrolling position.
*
* This method does no scrolling on its own, it only calculates the value to set (so it can also be used for animations).
*
* @param {int} iNormalizedScrollLeft The distance from the leftmost position to which the element should be scrolled
* @param {Element} oDomRef The DOM Element to which scrollLeft will be applied
* @return {int} The scroll position that must be set for the DOM element
* @public
* @author SAP SE
* @since 0.20.0
* @function
* @deprecated since 1.58 use {@link module:sap/ui/dom/denormalizeScrollLeftRTL} instead
*/
jQuery
.
sap
.
denormalizeScrollLeftRTL
=
domDenormalizeScrollLeftRTL
;
/**
* For the given scroll position measured from the "beginning" of a container (the right edge in RTL mode)
* this method returns the scrollLeft value as understood by the current browser in RTL mode.
* This value is specific to the given DOM element, as the computation may involve its dimensions.
*
* So when oDomRef should be scrolled 2px from the beginning, the number "2" must be given as iNormalizedScrollBegin
* and the result of this method (which may be a large or even negative number, depending on the browser) can then be set as
* oDomRef.scrollLeft to achieve the desired (cross-browser-consistent) scrolling position.
* Low values make the right part of the content visible, high values the left part.
*
* This method does no scrolling on its own, it only calculates the value to set (so it can also be used for animations).
*
* Only use this method in RTL mode, as the behavior in LTR mode is undefined and may change!
*
* @param {int} iNormalizedScrollBegin The distance from the rightmost position to which the element should be scrolled
* @param {Element} oDomRef The DOM Element to which scrollLeft will be applied
* @return {int} The scroll position that must be set for the DOM element
* @public
* @author SAP SE
* @since 1.26.1
* @function
* @deprecated since 1.58 use {@link module:sap/ui/dom/denormalizeScrollBeginRTL} instead
*/
jQuery
.
sap
.
denormalizeScrollBeginRTL
=
domDenormalizeScrollBeginRTL
;
/*
* The following methods are taken from jQuery UI core but modified.
*
* jQuery UI Core
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/category/ui-core/
*/
/**
* States whether the selectstart event is supported by the browser.
*
* @private
* @type {boolean}
* @deprecated since 1.58
*/
jQuery
.
support
.
selectstart
=
"
onselectstart
"
in
document
.
createElement
(
"
div
"
);
/**
* Returns the window reference for a DomRef.
*
* @param {Element} oDomRef The DOM reference
* @return {Window} Window reference
* @public
* @since 0.9.0
* @function
* @deprecated since 1.58 use {@link module:sap/ui/dom/getOwnerWindow} instead
*/
jQuery
.
sap
.
ownerWindow
=
domGetOwnerWindow
;
/**
* Returns the size (width of the vertical / height of the horizontal) native browser scrollbars.
*
* This function must only be used when the DOM is ready.
*
* @param {string} [sClasses=null] the CSS class that should be added to the test element.
* @param {boolean} [bForce=false] force recalculation of size (e.g. when CSS was changed). When no classes are passed all calculated sizes are reset.
* @return {object} JSON object with properties <code>width</code> and <code>height</code> (the values are of type number and are pixels).
* @public
* @since 1.4.0
* @function
* @deprecated since 1.58 use {@link module:sap/ui/dom/getScrollbarSize} instead
*/
jQuery
.
sap
.
scrollbarSize
=
domGetScrollbarSize
;
/**
* Search ancestors of the given source DOM element for the specified CSS class name.
* If the class name is found, set it to the root DOM element of the target control.
* If the class name is not found, it is also removed from the target DOM element.
*
* @param {string} sStyleClass CSS class name
* @param {jQuery|sap.ui.core.Control|string} vSource jQuery object, control or an id of the source element.
* @param {jQuery|sap.ui.core.Control} vDestination target jQuery object or a control.
* @return {jQuery|Element} Target element
* @public
* @since 1.22
* @function
* @deprecated since 1.58 use {@link module:sap/ui/core/syncStyleClass} instead
*/
jQuery
.
sap
.
syncStyleClass
=
fnSyncStyleClass
;
/**
* This method try to replace two HTML elements according to changed attributes.
* As a fallback it replaces DOM nodes.
*
* @param {HTMLElement} oOldDom existing element to be patched
* @param {HTMLElement|String} vNewDom is the new node to patch old dom
* @param {boolean} bCleanData wheter jQuery data should be removed or not
* @return {boolean} true when patch is applied correctly or false when nodes are replaced.
* @author SAP SE
* @since 1.30.0
* @private
* @deprecated since 1.58 use {@link module:sap/ui/dom/patch} instead
*/
jQuery
.
sap
.
replaceDOM
=
function
(
oOldDom
,
vNewDom
,
bCleanData
)
{
var
oNewDom
;
if
(
typeof
vNewDom
===
"
string
"
)
{
oNewDom
=
jQuery
.
parseHTML
(
vNewDom
)[
0
];
}
else
{
oNewDom
=
vNewDom
;
}
if
(
bCleanData
)
{
jQuery
.
cleanData
([
oOldDom
]);
jQuery
.
cleanData
(
oOldDom
.
getElementsByTagName
(
"
*
"
));
}
return
domPatch
(
oOldDom
,
oNewDom
);
};
return
jQuery
;
});
WebContent/resources/jquery.sap.dom.js
deleted
100755 → 0
View file @
85fcc5f5
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2018 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap
.
ui
.
define
([
'
jquery.sap.global
'
,
'
sap/ui/dom/containsOrEquals
'
,
'
sap/ui/dom/patch
'
,
'
sap/ui/core/syncStyleClass
'
,
'
sap/ui/dom/getOwnerWindow
'
,
'
sap/ui/dom/getScrollbarSize
'
,
'
sap/ui/dom/denormalizeScrollLeftRTL
'
,
'
sap/ui/dom/denormalizeScrollBeginRTL
'
,
'
sap/ui/dom/units/Rem
'
,
'
sap/ui/dom/jquery/Aria
'
,
'
sap/ui/dom/jquery/Selection
'
,
'
sap/ui/dom/jquery/zIndex
'
,
'
sap/ui/dom/jquery/parentByAttribute
'
,
'
sap/ui/dom/jquery/cursorPos
'
,
'
sap/ui/dom/jquery/selectText
'
,
'
sap/ui/dom/jquery/getSelectedText
'
,
'
sap/ui/dom/jquery/rect
'
,
'
sap/ui/dom/jquery/rectContains
'
,
'
sap/ui/dom/jquery/Focusable
'
,
'
sap/ui/dom/jquery/hasTabIndex
'
,
'
sap/ui/dom/jquery/scrollLeftRTL
'
,
'
sap/ui/dom/jquery/scrollRightRTL
'
,
'
sap/ui/dom/jquery/Selectors
'
],
function
(
q
,
d
,
a
,
s
,
b
,
c
,
e
,
f
,
g
){
"
use strict
"
;
q
.
sap
.
domById
=
function
domById
(
i
,
w
){
return
i
?(
w
||
window
).
document
.
getElementById
(
i
):
null
;};
q
.
sap
.
byId
=
function
byId
(
i
,
C
){
var
h
=
""
;
if
(
i
){
h
=
"
#
"
+
i
.
replace
(
/
(
:|
\.)
/g
,
'
\\
$1
'
);}
return
q
(
h
,
C
);};
q
.
sap
.
focus
=
function
focus
(
D
){
if
(
!
D
){
return
;}
D
.
focus
();
return
true
;};
q
.
sap
.
pxToRem
=
g
.
fromPx
;
q
.
sap
.
remToPx
=
g
.
toPx
;
q
.
fn
.
outerHTML
=
function
(){
var
D
=
this
.
get
(
0
);
if
(
D
&&
D
.
outerHTML
){
return
q
.
trim
(
D
.
outerHTML
);}
else
{
var
h
=
this
[
0
]?
this
[
0
].
ownerDocument
:
document
;
var
o
=
h
.
createElement
(
"
div
"
);
o
.
appendChild
(
D
.
cloneNode
(
true
));
return
o
.
innerHTML
;}};
q
.
sap
.
containsOrEquals
=
d
;
q
.
sap
.
denormalizeScrollLeftRTL
=
e
;
q
.
sap
.
denormalizeScrollBeginRTL
=
f
;
/*
* The following methods are taken from jQuery UI core but modified.
*
* jQuery UI Core
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/category/ui-core/
*/
q
.
support
.
selectstart
=
"
onselectstart
"
in
document
.
createElement
(
"
div
"
);
q
.
sap
.
ownerWindow
=
b
;
q
.
sap
.
scrollbarSize
=
c
;
q
.
sap
.
syncStyleClass
=
s
;
q
.
sap
.
replaceDOM
=
function
(
o
,
n
,
C
){
var
N
;
if
(
typeof
n
===
"
string
"
){
N
=
q
.
parseHTML
(
n
)[
0
];}
else
{
N
=
n
;}
if
(
C
){
q
.
cleanData
([
o
]);
q
.
cleanData
(
o
.
getElementsByTagName
(
"
*
"
));}
return
a
(
o
,
N
);};
return
q
;});
WebContent/resources/jquery.sap.encoder-dbg.js
deleted
100755 → 0
View file @
85fcc5f5
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2018 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides encoding functions for JavaScript.
sap
.
ui
.
define
([
'
jquery.sap.global
'
,
'
sap/base/security/encodeXML
'
,
'
sap/base/security/encodeJS
'
,
'
sap/base/security/encodeURL
'
,
'
sap/base/security/encodeURLParameters
'
,
'
sap/base/security/encodeCSS
'
,
'
sap/base/security/URLWhitelist
'
,
'
sap/base/security/sanitizeHTML
'
],
function
(
jQuery
,
encodeXML
,
encodeJS
,
encodeURL
,
encodeURLParameters
,
encodeCSS
,
URLWhitelist
,
sanitizeHTML
)
{
"
use strict
"
;
/**
* Encode the string for inclusion into HTML content/attribute
*
* @param {string} sString The string to be escaped
* @return The escaped string
* @type {string}
* @public
* @SecValidate {0|return|XSS} validates the given string for HTML contexts
* @function
* @deprecated since 1.58 use {@link module:sap/base/security/encodeXML} instead
*/
jQuery
.
sap
.
encodeHTML
=
encodeXML
;
/**
* Encode the string for inclusion into XML content/attribute
*
* @param {string} sString The string to be escaped
* @return The escaped string
* @type {string}
* @public
* @SecValidate {0|return|XSS} validates the given string for XML contexts
* @function
* @deprecated since 1.58 use {@link module:sap/base/security/encodeXML} instead
*/
jQuery
.
sap
.
encodeXML
=
encodeXML
;
/**
* Encode the string for inclusion into HTML content/attribute.
* Old name "escapeHTML" kept for backward compatibility
*
* @param {string} sString The string to be escaped
* @return The escaped string
* @type {string}
* @public
* @deprecated As of version 1.4.0, has been renamed, use {@link jQuery.sap.encodeHTML} instead.
* @function
* @deprecated since 1.58 use {@link module:sap/base/security/encodeXML} instead
*/
jQuery
.
sap
.
escapeHTML
=
encodeXML
;
/**
* Encode the string for inclusion into a JS string literal
*
* @param {string} sString The string to be escaped
* @return The escaped string
* @type {string}
* @public
* @SecValidate {0|return|XSS} validates the given string for a JavaScript contexts
* @function
* @deprecated since 1.58 use {@link module:sap/base/security/encodeJS} instead
*/
jQuery
.
sap
.
encodeJS
=
encodeJS
;
/**
* Encode the string for inclusion into a JS string literal.
* Old name "escapeJS" kept for backward compatibility
*
* @param {string} sString The string to be escaped
* @return The escaped string
* @type {string}
* @public
* @function
* @deprecated since 1.58 use {@link module:sap/base/security/encodeJS} instead
*/
jQuery
.
sap
.
escapeJS
=
encodeJS
;
/**
* Encode the string for inclusion into a URL parameter
*
* @param {string} sString The string to be escaped
* @return The escaped string
* @type {string}
* @public
* @SecValidate {0|return|XSS} validates the given string for a URL context
* @function
* @deprecated since 1.58 use {@link module:sap/base/security/encodeURL} instead
*/
jQuery
.
sap
.
encodeURL
=
encodeURL
;
/**
* Encode a map of parameters into a combined URL parameter string
*
* @param {object} mParams The map of parameters to encode
* @return The URL encoded parameters
* @type {string}
* @public
* @SecValidate {0|return|XSS} validates the given string for a CSS context
* @function
* @deprecated since 1.58 use {@link module:sap/base/security/encodeURLParameters} instead
*/
jQuery
.
sap
.
encodeURLParameters
=
encodeURLParameters
;
/**
* Encode the string for inclusion into CSS string literals or identifiers
*
* @param {string} sString The string to be escaped
* @return The escaped string
* @type {string}
* @public
* @SecValidate {0|return|XSS} validates the given string for a CSS context
* @function
* @deprecated since 1.58 use {@link module:sap/base/security/encodeCSS} instead
*/
jQuery
.
sap
.
encodeCSS
=
encodeCSS
;
/**
* Clears the whitelist for URL validation
*
* @public
* @function
* @deprecated since 1.58 use {@link module:sap/base/security/URLWhitelist.clear} instead
*/
jQuery
.
sap
.
clearUrlWhitelist
=
URLWhitelist
.
clear
;
/**
* Adds a whitelist entry for URL validation.
*
* @param {string} protocol The protocol of the URL
* @param {string} host The host of the URL
* @param {string} port The port of the URL
* @param {string} path the path of the URL
* @public
* @function
* @deprecated since 1.58 use {@link module:sap/base/security/URLWhitelist.add} instead
*/
jQuery
.
sap
.
addUrlWhitelist
=
URLWhitelist
.
add
;
/**
* Removes a whitelist entry for URL validation.
*
* @param {int} iIndex index of entry
* @public
* @function
* @deprecated since 1.58 use {@link module:sap/base/security/URLWhitelist.delete} instead
*/
jQuery
.
sap
.
removeUrlWhitelist
=
function
(
iIndex
)
{
URLWhitelist
.
delete
(
URLWhitelist
.
entries
()[
iIndex
]);
};
/**
* Gets the whitelist for URL validation.
*
* @return {object[]} A copy of the whitelist
* @public
* @function
* @deprecated since 1.58 use {@link module:sap/base/security/URLWhitelist.entries} instead
*/
jQuery
.
sap
.
getUrlWhitelist
=
URLWhitelist
.
entries
;
/**
* Validates a URL. Check if it's not a script or other security issue.
*
* By default the URL validation does only allow the http, https and ftp protocol. If
* other protocols are required, a whitelist of all allowed protocols needs to be defined.
*
* Split URL into components and check for allowed characters according to RFC 3986:
*
* <pre>
* authority = [ userinfo "@" ] host [ ":" port ]
* userinfo = *( unreserved / pct-encoded / sub-delims / ":" )
* host = IP-literal / IPv4address / reg-name
*
* IP-literal = "[" ( IPv6address / IPvFuture ) "]"
* IPvFuture = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )
* IPv6address = 6( h16 ":" ) ls32
* / "::" 5( h16 ":" ) ls32
* / [ h16 ] "::" 4( h16 ":" ) ls32
* / [ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32
* / [ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32
* / [ *3( h16 ":" ) h16 ] "::" h16 ":" ls32
* / [ *4( h16 ":" ) h16 ] "::" ls32