id int32 0 58k | repo stringlengths 5 67 | path stringlengths 4 116 | func_name stringlengths 0 58 | original_string stringlengths 52 373k | language stringclasses 1
value | code stringlengths 52 373k | code_tokens list | docstring stringlengths 4 11.8k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 86 226 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3,800 | SAP/openui5 | src/sap.m/src/sap/m/IconTabBarDragAndDropUtil.js | function (iBeginDragIndex, iControlCount) {
if (iBeginDragIndex === iControlCount - 1) {
sInsertAfterBeforePosition = INSERT_BEFORE;
return iBeginDragIndex;
}
sInsertAfterBeforePosition = INSERT_AFTER;
return iBeginDragIndex + 1;
} | javascript | function (iBeginDragIndex, iControlCount) {
if (iBeginDragIndex === iControlCount - 1) {
sInsertAfterBeforePosition = INSERT_BEFORE;
return iBeginDragIndex;
}
sInsertAfterBeforePosition = INSERT_AFTER;
return iBeginDragIndex + 1;
} | [
"function",
"(",
"iBeginDragIndex",
",",
"iControlCount",
")",
"{",
"if",
"(",
"iBeginDragIndex",
"===",
"iControlCount",
"-",
"1",
")",
"{",
"sInsertAfterBeforePosition",
"=",
"INSERT_BEFORE",
";",
"return",
"iBeginDragIndex",
";",
"}",
"sInsertAfterBeforePosition",
... | Increases the drop index.
@param {number} iBeginDragIndex Index of dragged control
@param {number} iControlCount Number of controls
@private | [
"Increases",
"the",
"drop",
"index",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/IconTabBarDragAndDropUtil.js#L127-L134 | |
3,801 | SAP/openui5 | src/sap.m/src/sap/m/IconTabBarDragAndDropUtil.js | function (oDraggedControl, iKeyCode) {
var $DraggedControl = oDraggedControl.$(),
aItems = this.getItems(),
iBeginDragIndex = this.indexOfItem(oDraggedControl),
bRtl = sap.ui.getCore().getConfiguration().getRTL(),
iNewDropIndex,
$DroppedControl,
oKeyCodes = KeyCodes;
switch (iKeyC... | javascript | function (oDraggedControl, iKeyCode) {
var $DraggedControl = oDraggedControl.$(),
aItems = this.getItems(),
iBeginDragIndex = this.indexOfItem(oDraggedControl),
bRtl = sap.ui.getCore().getConfiguration().getRTL(),
iNewDropIndex,
$DroppedControl,
oKeyCodes = KeyCodes;
switch (iKeyC... | [
"function",
"(",
"oDraggedControl",
",",
"iKeyCode",
")",
"{",
"var",
"$DraggedControl",
"=",
"oDraggedControl",
".",
"$",
"(",
")",
",",
"aItems",
"=",
"this",
".",
"getItems",
"(",
")",
",",
"iBeginDragIndex",
"=",
"this",
".",
"indexOfItem",
"(",
"oDrag... | Moves focused control depending on the combinations of pressed keys.
@param {object} oDraggedControl Control that is going to be moved
@param {number} iKeyCode Key code
@returns {boolean} returns true is scrolling will be needed | [
"Moves",
"focused",
"control",
"depending",
"on",
"the",
"combinations",
"of",
"pressed",
"keys",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/IconTabBarDragAndDropUtil.js#L143-L196 | |
3,802 | SAP/openui5 | src/sap.m/src/sap/m/IconTabBarDragAndDropUtil.js | function (aItems, oDraggedControl, oDroppedControl) {
var oDroppedListControl,
oDraggedListControl,
sItemId,
sDroppedControlId,
sDraggedControlId;
sDraggedControlId = oDraggedControl._tabFilter ? oDraggedControl._tabFilter.getId() : oDraggedControl.getId();
sDroppedControlId = oDroppedC... | javascript | function (aItems, oDraggedControl, oDroppedControl) {
var oDroppedListControl,
oDraggedListControl,
sItemId,
sDroppedControlId,
sDraggedControlId;
sDraggedControlId = oDraggedControl._tabFilter ? oDraggedControl._tabFilter.getId() : oDraggedControl.getId();
sDroppedControlId = oDroppedC... | [
"function",
"(",
"aItems",
",",
"oDraggedControl",
",",
"oDroppedControl",
")",
"{",
"var",
"oDroppedListControl",
",",
"oDraggedListControl",
",",
"sItemId",
",",
"sDroppedControlId",
",",
"sDraggedControlId",
";",
"sDraggedControlId",
"=",
"oDraggedControl",
".",
"_... | Retrieves drag and drop controls from sap.m.IconTabBarSelectList context.
@param {array} aItems items of sap.m.IconTabBarSelectList
@param {object} oDraggedControl item that is dragged
@param {object} oDroppedControl item that the dragged control will be dropped on | [
"Retrieves",
"drag",
"and",
"drop",
"controls",
"from",
"sap",
".",
"m",
".",
"IconTabBarSelectList",
"context",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/IconTabBarDragAndDropUtil.js#L204-L232 | |
3,803 | SAP/openui5 | src/sap.m/src/sap/m/IconTabBarDragAndDropUtil.js | function (context, sDropLayout) {
var oIconTabHeader = context._iconTabHeader ? context._iconTabHeader : context;
var sIconTabHeaderId = oIconTabHeader.getId();
//Adding Drag&Drop configuration to the dragDropConfig aggregation if needed
context.addDragDropConfig(new DragInfo({
sourceAggregation: "... | javascript | function (context, sDropLayout) {
var oIconTabHeader = context._iconTabHeader ? context._iconTabHeader : context;
var sIconTabHeaderId = oIconTabHeader.getId();
//Adding Drag&Drop configuration to the dragDropConfig aggregation if needed
context.addDragDropConfig(new DragInfo({
sourceAggregation: "... | [
"function",
"(",
"context",
",",
"sDropLayout",
")",
"{",
"var",
"oIconTabHeader",
"=",
"context",
".",
"_iconTabHeader",
"?",
"context",
".",
"_iconTabHeader",
":",
"context",
";",
"var",
"sIconTabHeaderId",
"=",
"oIconTabHeader",
".",
"getId",
"(",
")",
";",... | Adding aggregations for drag and drop.
@param {object} context from which context function is called (sap.m.IconTabHeader or sap.m.IconTabSelectList)
@param {string} sDropLayout Depending on the control we are dragging in, it could be Vertical or Horizontal | [
"Adding",
"aggregations",
"for",
"drag",
"and",
"drop",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/IconTabBarDragAndDropUtil.js#L239-L254 | |
3,804 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/util/serializer/XMLViewSerializer.js | function (oControl) {
return oControl instanceof this._oWindow.sap.ui.core.mvc.View && oControl !== that._oView;
} | javascript | function (oControl) {
return oControl instanceof this._oWindow.sap.ui.core.mvc.View && oControl !== that._oView;
} | [
"function",
"(",
"oControl",
")",
"{",
"return",
"oControl",
"instanceof",
"this",
".",
"_oWindow",
".",
"sap",
".",
"ui",
".",
"core",
".",
"mvc",
".",
"View",
"&&",
"oControl",
"!==",
"that",
".",
"_oView",
";",
"}"
] | a function to understand if to skip aggregations | [
"a",
"function",
"to",
"understand",
"if",
"to",
"skip",
"aggregations"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/serializer/XMLViewSerializer.js#L60-L62 | |
3,805 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperExpression.js | function (oInterface, oPathValue, iIndex, sEdmType) {
var oParameter = Basics.descend(oPathValue, iIndex),
oResult;
oParameter.asExpression = true;
oResult = Expression.expression(oInterface, oParameter);
if (sEdmType && sEdmType !== oResult.type) {
Basics.error(oParameter,
"Expected " + sEdm... | javascript | function (oInterface, oPathValue, iIndex, sEdmType) {
var oParameter = Basics.descend(oPathValue, iIndex),
oResult;
oParameter.asExpression = true;
oResult = Expression.expression(oInterface, oParameter);
if (sEdmType && sEdmType !== oResult.type) {
Basics.error(oParameter,
"Expected " + sEdm... | [
"function",
"(",
"oInterface",
",",
"oPathValue",
",",
"iIndex",
",",
"sEdmType",
")",
"{",
"var",
"oParameter",
"=",
"Basics",
".",
"descend",
"(",
"oPathValue",
",",
"iIndex",
")",
",",
"oResult",
";",
"oParameter",
".",
"asExpression",
"=",
"true",
";",... | Evaluates a parameter and ensures that the result is of the given EDM type.
The function calls <code>expression</code> with <code>bExpression=true</code>. This will
cause any embedded <code>odata.concat</code> to generate an expression binding. This
should be correct in any case because only a standalone <code>concat<... | [
"Evaluates",
"a",
"parameter",
"and",
"ensures",
"that",
"the",
"result",
"is",
"of",
"the",
"given",
"EDM",
"type",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperExpression.js#L625-L637 | |
3,806 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperExpression.js | function (sValue) {
return DateFormat.getDateInstance({
pattern : "yyyy-MM-dd",
strictParsing : true,
UTC : true
}).parse(sValue);
} | javascript | function (sValue) {
return DateFormat.getDateInstance({
pattern : "yyyy-MM-dd",
strictParsing : true,
UTC : true
}).parse(sValue);
} | [
"function",
"(",
"sValue",
")",
"{",
"return",
"DateFormat",
".",
"getDateInstance",
"(",
"{",
"pattern",
":",
"\"yyyy-MM-dd\"",
",",
"strictParsing",
":",
"true",
",",
"UTC",
":",
"true",
"}",
")",
".",
"parse",
"(",
"sValue",
")",
";",
"}"
] | Parses an Edm.Date value and returns the corresponding JavaScript Date value.
@param {string} sValue
the Edm.Date value to parse
@returns {Date}
the JavaScript Date value or <code>null</code> in case the input could not be parsed | [
"Parses",
"an",
"Edm",
".",
"Date",
"value",
"and",
"returns",
"the",
"corresponding",
"JavaScript",
"Date",
"value",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperExpression.js#L647-L653 | |
3,807 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperExpression.js | function (sValue) {
var aMatches = mEdmType2RegExp.DateTimeOffset.exec(sValue);
if (aMatches && aMatches[1] && aMatches[1].length > 4) {
// "round" to millis, BEWARE of the dot!
sValue = sValue.replace(aMatches[1], aMatches[1].slice(0, 4));
}
return DateFormat.getDateTimeInstance({
pattern : "y... | javascript | function (sValue) {
var aMatches = mEdmType2RegExp.DateTimeOffset.exec(sValue);
if (aMatches && aMatches[1] && aMatches[1].length > 4) {
// "round" to millis, BEWARE of the dot!
sValue = sValue.replace(aMatches[1], aMatches[1].slice(0, 4));
}
return DateFormat.getDateTimeInstance({
pattern : "y... | [
"function",
"(",
"sValue",
")",
"{",
"var",
"aMatches",
"=",
"mEdmType2RegExp",
".",
"DateTimeOffset",
".",
"exec",
"(",
"sValue",
")",
";",
"if",
"(",
"aMatches",
"&&",
"aMatches",
"[",
"1",
"]",
"&&",
"aMatches",
"[",
"1",
"]",
".",
"length",
">",
... | Parses an Edm.DateTimeOffset value and returns the corresponding JavaScript Date value.
@param {string} sValue
the Edm.DateTimeOffset value to parse
@returns {Date}
the JavaScript Date value or <code>null</code> in case the input could not be parsed | [
"Parses",
"an",
"Edm",
".",
"DateTimeOffset",
"value",
"and",
"returns",
"the",
"corresponding",
"JavaScript",
"Date",
"value",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperExpression.js#L663-L674 | |
3,808 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperExpression.js | function (sValue) {
if (sValue.length > 12) {
// "round" to millis: "HH:mm:ss.SSS"
sValue = sValue.slice(0, 12);
}
return DateFormat.getTimeInstance({
pattern : "HH:mm:ss.SSS",
strictParsing : true,
UTC : true
}).parse(sValue);
} | javascript | function (sValue) {
if (sValue.length > 12) {
// "round" to millis: "HH:mm:ss.SSS"
sValue = sValue.slice(0, 12);
}
return DateFormat.getTimeInstance({
pattern : "HH:mm:ss.SSS",
strictParsing : true,
UTC : true
}).parse(sValue);
} | [
"function",
"(",
"sValue",
")",
"{",
"if",
"(",
"sValue",
".",
"length",
">",
"12",
")",
"{",
"// \"round\" to millis: \"HH:mm:ss.SSS\"",
"sValue",
"=",
"sValue",
".",
"slice",
"(",
"0",
",",
"12",
")",
";",
"}",
"return",
"DateFormat",
".",
"getTimeInstan... | Parses an Edm.TimeOfDay value and returns the corresponding JavaScript Date value.
@param {string} sValue
the Edm.TimeOfDay value to parse
@returns {Date}
the JavaScript Date value or <code>null</code> in case the input could not be parsed | [
"Parses",
"an",
"Edm",
".",
"TimeOfDay",
"value",
"and",
"returns",
"the",
"corresponding",
"JavaScript",
"Date",
"value",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperExpression.js#L684-L695 | |
3,809 | SAP/openui5 | src/sap.ui.core/src/sap/ui/base/Metadata.js | function(sClassName, oClassInfo) {
assert(typeof sClassName === "string" && sClassName, "Metadata: sClassName must be a non-empty string");
assert(typeof oClassInfo === "object", "Metadata: oClassInfo must be empty or an object");
// support for old usage of Metadata
if ( !oClassInfo || typeof oClassInfo.meta... | javascript | function(sClassName, oClassInfo) {
assert(typeof sClassName === "string" && sClassName, "Metadata: sClassName must be a non-empty string");
assert(typeof oClassInfo === "object", "Metadata: oClassInfo must be empty or an object");
// support for old usage of Metadata
if ( !oClassInfo || typeof oClassInfo.meta... | [
"function",
"(",
"sClassName",
",",
"oClassInfo",
")",
"{",
"assert",
"(",
"typeof",
"sClassName",
"===",
"\"string\"",
"&&",
"sClassName",
",",
"\"Metadata: sClassName must be a non-empty string\"",
")",
";",
"assert",
"(",
"typeof",
"oClassInfo",
"===",
"\"object\""... | Creates a new metadata object from the given static infos.
Note: throughout this class documentation, the described subclass of Object
is referenced as <i>the described class</i>.
@param {string} sClassName fully qualified name of the described class
@param {object} oClassInfo info to construct the class and its meta... | [
"Creates",
"a",
"new",
"metadata",
"object",
"from",
"the",
"given",
"static",
"infos",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/Metadata.js#L33-L56 | |
3,810 | SAP/openui5 | src/sap.ui.demokit/src/sap/ui/demokit/demoapps/controller/App.controller.js | function (oEvent) {
oEvent.getParameters().itemsBinding.filter([
new Filter("name", FilterOperator.Contains, oEvent.getParameters().value)
]);
} | javascript | function (oEvent) {
oEvent.getParameters().itemsBinding.filter([
new Filter("name", FilterOperator.Contains, oEvent.getParameters().value)
]);
} | [
"function",
"(",
"oEvent",
")",
"{",
"oEvent",
".",
"getParameters",
"(",
")",
".",
"itemsBinding",
".",
"filter",
"(",
"[",
"new",
"Filter",
"(",
"\"name\"",
",",
"FilterOperator",
".",
"Contains",
",",
"oEvent",
".",
"getParameters",
"(",
")",
".",
"va... | Filters the download dialog
@param {sap.ui.base.Event} oEvent the SearchField liveChange event
@public | [
"Filters",
"the",
"download",
"dialog"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.demokit/src/sap/ui/demokit/demoapps/controller/App.controller.js#L47-L51 | |
3,811 | SAP/openui5 | src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js | function (oData, sFileType) {
// code extension and properties files do not need formation
if ((sFileType === "js") || (sFileType === "properties")) {
return oData;
}
// other files should be formatted to JSON
try {
oData = JSON.parse(oData);
return JSON.stringify(oData, null, '\t');
... | javascript | function (oData, sFileType) {
// code extension and properties files do not need formation
if ((sFileType === "js") || (sFileType === "properties")) {
return oData;
}
// other files should be formatted to JSON
try {
oData = JSON.parse(oData);
return JSON.stringify(oData, null, '\t');
... | [
"function",
"(",
"oData",
",",
"sFileType",
")",
"{",
"// code extension and properties files do not need formation",
"if",
"(",
"(",
"sFileType",
"===",
"\"js\"",
")",
"||",
"(",
"sFileType",
"===",
"\"properties\"",
")",
")",
"{",
"return",
"oData",
";",
"}",
... | Pretty printer for specific file types.
@param {Object} oData - data to be formatted
@param {String} sFileType - file type of data
@returns {Object} oData - data after formatting
@public | [
"Pretty",
"printer",
"for",
"specific",
"file",
"types",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js#L38-L52 | |
3,812 | SAP/openui5 | src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js | function (oGroup) {
var sTitle = "{i18n>systemData}";
if (oGroup.key === "custom") {
sTitle = "{i18n>externalReferences}";
}
return new GroupHeaderListItem({
title: sTitle,
upperCase: false
});
} | javascript | function (oGroup) {
var sTitle = "{i18n>systemData}";
if (oGroup.key === "custom") {
sTitle = "{i18n>externalReferences}";
}
return new GroupHeaderListItem({
title: sTitle,
upperCase: false
});
} | [
"function",
"(",
"oGroup",
")",
"{",
"var",
"sTitle",
"=",
"\"{i18n>systemData}\"",
";",
"if",
"(",
"oGroup",
".",
"key",
"===",
"\"custom\"",
")",
"{",
"sTitle",
"=",
"\"{i18n>externalReferences}\"",
";",
"}",
"return",
"new",
"GroupHeaderListItem",
"(",
"{",... | Factory for creating list group header objects for the metadata list.
@param {Object} oGroup - group data passed from the lists model binding
@returns {sap.m.GroupHeaderListItem}
@public | [
"Factory",
"for",
"creating",
"list",
"group",
"header",
"objects",
"for",
"the",
"metadata",
"list",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js#L60-L71 | |
3,813 | SAP/openui5 | src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js | function (oContentItem) {
var bNotBlacklisted = true;
jQuery.each(this.aBlacklist, function (index, mBlacklistedElement) {
var bAllPropertiesMatched = true;
jQuery.each(mBlacklistedElement, function (sProperty, sValue) {
bAllPropertiesMatched = bAllPropertiesMatched && oContentItem[sProperty] =... | javascript | function (oContentItem) {
var bNotBlacklisted = true;
jQuery.each(this.aBlacklist, function (index, mBlacklistedElement) {
var bAllPropertiesMatched = true;
jQuery.each(mBlacklistedElement, function (sProperty, sValue) {
bAllPropertiesMatched = bAllPropertiesMatched && oContentItem[sProperty] =... | [
"function",
"(",
"oContentItem",
")",
"{",
"var",
"bNotBlacklisted",
"=",
"true",
";",
"jQuery",
".",
"each",
"(",
"this",
".",
"aBlacklist",
",",
"function",
"(",
"index",
",",
"mBlacklistedElement",
")",
"{",
"var",
"bAllPropertiesMatched",
"=",
"true",
";... | Verifies if item content is not in the black list.
@param {Object} oContentItem - content item needs to be verified
@returns {Boolean} - <code>true</code> if not in the black list
@public | [
"Verifies",
"if",
"item",
"content",
"is",
"not",
"in",
"the",
"black",
"list",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js#L79-L94 | |
3,814 | SAP/openui5 | src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js | function (sNamespace) {
if (!sNamespace) {
return "";
}
if (sNamespace[0] === "/") {
var sNamespaceWithoutLeadingSlash = sNamespace.substring(1, sNamespace.length);
return this.cleanLeadingAndTrailingSlashes(sNamespaceWithoutLeadingSlash);
}
if (sNamespace[sNamespace.length - 1] === "... | javascript | function (sNamespace) {
if (!sNamespace) {
return "";
}
if (sNamespace[0] === "/") {
var sNamespaceWithoutLeadingSlash = sNamespace.substring(1, sNamespace.length);
return this.cleanLeadingAndTrailingSlashes(sNamespaceWithoutLeadingSlash);
}
if (sNamespace[sNamespace.length - 1] === "... | [
"function",
"(",
"sNamespace",
")",
"{",
"if",
"(",
"!",
"sNamespace",
")",
"{",
"return",
"\"\"",
";",
"}",
"if",
"(",
"sNamespace",
"[",
"0",
"]",
"===",
"\"/\"",
")",
"{",
"var",
"sNamespaceWithoutLeadingSlash",
"=",
"sNamespace",
".",
"substring",
"(... | Removes leading and trailing slashes from a string.
@param {String} sNamespace - input string
@returns {String} - string after removing leading and trailing slashes
@public | [
"Removes",
"leading",
"and",
"trailing",
"slashes",
"from",
"a",
"string",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js#L102-L115 | |
3,815 | SAP/openui5 | src/sap.ui.core/src/jquery.sap.global.js | function(key, type, callback) {
return function(value) {
try {
if ( value != null || type === 'string' ) {
if (value) {
localStorage.setItem(key, type === 'boolean' ? 'X' : value);
} else {
localStorage.removeItem(key);
}
callback(value);
}
value = localStorage.getItem(k... | javascript | function(key, type, callback) {
return function(value) {
try {
if ( value != null || type === 'string' ) {
if (value) {
localStorage.setItem(key, type === 'boolean' ? 'X' : value);
} else {
localStorage.removeItem(key);
}
callback(value);
}
value = localStorage.getItem(k... | [
"function",
"(",
"key",
",",
"type",
",",
"callback",
")",
"{",
"return",
"function",
"(",
"value",
")",
"{",
"try",
"{",
"if",
"(",
"value",
"!=",
"null",
"||",
"type",
"===",
"'string'",
")",
"{",
"if",
"(",
"value",
")",
"{",
"localStorage",
"."... | Reads the value for the given key from the localStorage or writes a new value to it. | [
"Reads",
"the",
"value",
"for",
"the",
"given",
"key",
"from",
"the",
"localStorage",
"or",
"writes",
"a",
"new",
"value",
"to",
"it",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/jquery.sap.global.js#L563-L580 | |
3,816 | SAP/openui5 | src/sap.ui.rta/src/sap/ui/rta/service/ControllerExtension.js | function(sCodeRef, sViewId) {
var oFlexSettings = oRta.getFlexSettings();
if (!oFlexSettings.developerMode) {
throw DtUtil.createError("service.ControllerExtension#add", "code extensions can only be created in developer mode", "sap.ui.rta");
}
if (!sCodeRef) {
throw DtUtil.createError("... | javascript | function(sCodeRef, sViewId) {
var oFlexSettings = oRta.getFlexSettings();
if (!oFlexSettings.developerMode) {
throw DtUtil.createError("service.ControllerExtension#add", "code extensions can only be created in developer mode", "sap.ui.rta");
}
if (!sCodeRef) {
throw DtUtil.createError("... | [
"function",
"(",
"sCodeRef",
",",
"sViewId",
")",
"{",
"var",
"oFlexSettings",
"=",
"oRta",
".",
"getFlexSettings",
"(",
")",
";",
"if",
"(",
"!",
"oFlexSettings",
".",
"developerMode",
")",
"{",
"throw",
"DtUtil",
".",
"createError",
"(",
"\"service.Control... | Creates a change that adds an extension to the controller associated with the given view.
Throws an error if the information is not complete.
As of now, this only creates the change with a reference to a file. The consumer has to take care of creating that file
and adding it to the backend.
@method sap.ui.rta.service.... | [
"Creates",
"a",
"change",
"that",
"adds",
"an",
"extension",
"to",
"the",
"controller",
"associated",
"with",
"the",
"given",
"view",
".",
"Throws",
"an",
"error",
"if",
"the",
"information",
"is",
"not",
"complete",
".",
"As",
"of",
"now",
"this",
"only",... | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/service/ControllerExtension.js#L69-L104 | |
3,817 | SAP/openui5 | src/sap.ui.rta/src/sap/ui/rta/service/ControllerExtension.js | function(sViewId) {
var oViewOverlay = OverlayRegistry.getOverlay(sViewId);
if (!oViewOverlay) {
throw DtUtil.createError("service.ControllerExtension#getTemplate", "no overlay found for the given view ID", "sap.ui.rta");
}
var sControllerExtensionTemplatePath = oViewOverlay.getDesignTimeMeta... | javascript | function(sViewId) {
var oViewOverlay = OverlayRegistry.getOverlay(sViewId);
if (!oViewOverlay) {
throw DtUtil.createError("service.ControllerExtension#getTemplate", "no overlay found for the given view ID", "sap.ui.rta");
}
var sControllerExtensionTemplatePath = oViewOverlay.getDesignTimeMeta... | [
"function",
"(",
"sViewId",
")",
"{",
"var",
"oViewOverlay",
"=",
"OverlayRegistry",
".",
"getOverlay",
"(",
"sViewId",
")",
";",
"if",
"(",
"!",
"oViewOverlay",
")",
"{",
"throw",
"DtUtil",
".",
"createError",
"(",
"\"service.ControllerExtension#getTemplate\"",
... | Gets the Controller Extension template from the DesignTimeMetadata of the given view and returns it as a string wrapped in a promise.
If there is no template specified, a default template will be returned.
@method sap.ui.rta.service.ControllerExtension.getTemplate
@param {string} sViewId ID of the view whose template ... | [
"Gets",
"the",
"Controller",
"Extension",
"template",
"from",
"the",
"DesignTimeMetadata",
"of",
"the",
"given",
"view",
"and",
"returns",
"it",
"as",
"a",
"string",
"wrapped",
"in",
"a",
"promise",
".",
"If",
"there",
"is",
"no",
"template",
"specified",
"a... | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/service/ControllerExtension.js#L115-L126 | |
3,818 | SAP/openui5 | src/sap.ui.core/src/sap/ui/dom/jquery/Focusable.js | findFocusableDomRef | function findFocusableDomRef(oContainer, bForward) {
var oChild = bForward ? oContainer.firstChild : oContainer.lastChild,
oFocusableDescendant;
while (oChild) {
if ( oChild.nodeType == 1 && !isHidden(oChild) ) {
if ( jQuery(oChild).hasTabIndex() ) {
return oChild;
}
oFocusableDescendant... | javascript | function findFocusableDomRef(oContainer, bForward) {
var oChild = bForward ? oContainer.firstChild : oContainer.lastChild,
oFocusableDescendant;
while (oChild) {
if ( oChild.nodeType == 1 && !isHidden(oChild) ) {
if ( jQuery(oChild).hasTabIndex() ) {
return oChild;
}
oFocusableDescendant... | [
"function",
"findFocusableDomRef",
"(",
"oContainer",
",",
"bForward",
")",
"{",
"var",
"oChild",
"=",
"bForward",
"?",
"oContainer",
".",
"firstChild",
":",
"oContainer",
".",
"lastChild",
",",
"oFocusableDescendant",
";",
"while",
"(",
"oChild",
")",
"{",
"i... | Searches for a descendant of the given node that is an Element and focusable and visible.
The search is executed 'depth first'.
@param {Node} oContainer Node to search for a focusable descendant
@param {boolean} bForward Whether to search forward (true) or backwards (false)
@returns {Element} Element node that is foc... | [
"Searches",
"for",
"a",
"descendant",
"of",
"the",
"given",
"node",
"that",
"is",
"an",
"Element",
"and",
"focusable",
"and",
"visible",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/dom/jquery/Focusable.js#L49-L74 |
3,819 | SAP/openui5 | src/sap.ui.fl/src/sap/ui/fl/FakeLrepConnector.js | handleGetTransports | function handleGetTransports(sUri, sMethod, oData, mOptions, resolve, reject){
if (sUri.match(/^\/sap\/bc\/lrep\/actions\/gettransports\//)){
resolve({
response: {
"transports": [
{
"transportId": "U31K008488",
"description": "The Ultimate Transport",
"owner": "Fantasy Owner",
... | javascript | function handleGetTransports(sUri, sMethod, oData, mOptions, resolve, reject){
if (sUri.match(/^\/sap\/bc\/lrep\/actions\/gettransports\//)){
resolve({
response: {
"transports": [
{
"transportId": "U31K008488",
"description": "The Ultimate Transport",
"owner": "Fantasy Owner",
... | [
"function",
"handleGetTransports",
"(",
"sUri",
",",
"sMethod",
",",
"oData",
",",
"mOptions",
",",
"resolve",
",",
"reject",
")",
"{",
"if",
"(",
"sUri",
".",
"match",
"(",
"/",
"^\\/sap\\/bc\\/lrep\\/actions\\/gettransports\\/",
"/",
")",
")",
"{",
"resolve"... | REVISE Make response configurable | [
"REVISE",
"Make",
"response",
"configurable"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/FakeLrepConnector.js#L216-L233 |
3,820 | SAP/openui5 | src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js | function (oChange, aActiveContexts) {
var sChangeContext = oChange.context || "";
if (!sChangeContext) {
// change is free of context (always applied)
return true;
}
return aActiveContexts && aActiveContexts.indexOf(sChangeContext) !== -1;
} | javascript | function (oChange, aActiveContexts) {
var sChangeContext = oChange.context || "";
if (!sChangeContext) {
// change is free of context (always applied)
return true;
}
return aActiveContexts && aActiveContexts.indexOf(sChangeContext) !== -1;
} | [
"function",
"(",
"oChange",
",",
"aActiveContexts",
")",
"{",
"var",
"sChangeContext",
"=",
"oChange",
".",
"context",
"||",
"\"\"",
";",
"if",
"(",
"!",
"sChangeContext",
")",
"{",
"// change is free of context (always applied)",
"return",
"true",
";",
"}",
"re... | Helper to check if a passed change is free of contexts or in a matching context.
@param {sap.ui.fl.Change} oChange - change object which has to be filtered
@param {sap.ui.fl.Context[]} aActiveContexts - active runtime or designtime context
@returns {boolean} is change context free or has a valid context | [
"Helper",
"to",
"check",
"if",
"a",
"passed",
"change",
"is",
"free",
"of",
"contexts",
"or",
"in",
"a",
"matching",
"context",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js#L41-L50 | |
3,821 | SAP/openui5 | src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js | function (aContextObjects) {
var aDesignTimeContextIdsByUrl = this._getContextIdsFromUrl();
if (aDesignTimeContextIdsByUrl.length === 0) {
// [default: runtime] use runtime contexts
return this._getContextParametersFromAPI(aContextObjects)
.then(this._getActiveContextsByAPIParameters.bind(this, aCon... | javascript | function (aContextObjects) {
var aDesignTimeContextIdsByUrl = this._getContextIdsFromUrl();
if (aDesignTimeContextIdsByUrl.length === 0) {
// [default: runtime] use runtime contexts
return this._getContextParametersFromAPI(aContextObjects)
.then(this._getActiveContextsByAPIParameters.bind(this, aCon... | [
"function",
"(",
"aContextObjects",
")",
"{",
"var",
"aDesignTimeContextIdsByUrl",
"=",
"this",
".",
"_getContextIdsFromUrl",
"(",
")",
";",
"if",
"(",
"aDesignTimeContextIdsByUrl",
".",
"length",
"===",
"0",
")",
"{",
"// [default: runtime] use runtime contexts",
"re... | Helper to filter passed context objects.
This method loops over each context object and check for its current validity
@param {sap.ui.fl.Context[]} aContextObjects - context objects within the application
@returns {Promise|string[]} aActiveContexts - Promise returning or direct build array containing ids of context ob... | [
"Helper",
"to",
"filter",
"passed",
"context",
"objects",
".",
"This",
"method",
"loops",
"over",
"each",
"context",
"object",
"and",
"check",
"for",
"its",
"current",
"validity"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js#L59-L70 | |
3,822 | SAP/openui5 | src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js | function (aContextObjects) {
var aRequiredContextParameters = [];
aContextObjects.forEach(function (oContext) {
oContext.parameters.forEach(function (oContextParameter) {
var sSelector = oContextParameter.selector;
if (aRequiredContextParameters.indexOf(sSelector) === -1) {
aRequiredContextPa... | javascript | function (aContextObjects) {
var aRequiredContextParameters = [];
aContextObjects.forEach(function (oContext) {
oContext.parameters.forEach(function (oContextParameter) {
var sSelector = oContextParameter.selector;
if (aRequiredContextParameters.indexOf(sSelector) === -1) {
aRequiredContextPa... | [
"function",
"(",
"aContextObjects",
")",
"{",
"var",
"aRequiredContextParameters",
"=",
"[",
"]",
";",
"aContextObjects",
".",
"forEach",
"(",
"function",
"(",
"oContext",
")",
"{",
"oContext",
".",
"parameters",
".",
"forEach",
"(",
"function",
"(",
"oContext... | Helper to retreive the context parameters from the instanciated context api
@param {sap.ui.fl.Context[]} aContextObjects - context objects within the application
@returns {Promise} aRuntimeContextParameters - Promise resolving with a map of context keys and their current values | [
"Helper",
"to",
"retreive",
"the",
"context",
"parameters",
"from",
"the",
"instanciated",
"context",
"api"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js#L78-L91 | |
3,823 | SAP/openui5 | src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js | function (aContextObjects, aRuntimeContextParameters) {
var that = this;
var aActiveContexts = [];
aContextObjects.forEach(function (oContext) {
if (that._isContextObjectActive(oContext, aRuntimeContextParameters)) {
aActiveContexts.push(oContext.id);
}
});
return aActiveContexts;
} | javascript | function (aContextObjects, aRuntimeContextParameters) {
var that = this;
var aActiveContexts = [];
aContextObjects.forEach(function (oContext) {
if (that._isContextObjectActive(oContext, aRuntimeContextParameters)) {
aActiveContexts.push(oContext.id);
}
});
return aActiveContexts;
} | [
"function",
"(",
"aContextObjects",
",",
"aRuntimeContextParameters",
")",
"{",
"var",
"that",
"=",
"this",
";",
"var",
"aActiveContexts",
"=",
"[",
"]",
";",
"aContextObjects",
".",
"forEach",
"(",
"function",
"(",
"oContext",
")",
"{",
"if",
"(",
"that",
... | Function to filter all contexts by the passed runtime context parameters.
@param {object[]} aContextObjects - context objects within the application
@param {object} aRuntimeContextParameters - map of context keys and their current values
@returns {string[]} aActiveContexts - id list of all active contexts | [
"Function",
"to",
"filter",
"all",
"contexts",
"by",
"the",
"passed",
"runtime",
"context",
"parameters",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js#L100-L111 | |
3,824 | SAP/openui5 | src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js | function(aContextObjects, aDesignTimeContextIdsByUrl) {
var aActiveContexts = [];
aContextObjects.forEach(function (oContext) {
var bContextActive = ((aDesignTimeContextIdsByUrl ? Array.prototype.indexOf.call(aDesignTimeContextIdsByUrl, oContext.id) : -1)) !== -1;
if (bContextActive) {
aActiveConte... | javascript | function(aContextObjects, aDesignTimeContextIdsByUrl) {
var aActiveContexts = [];
aContextObjects.forEach(function (oContext) {
var bContextActive = ((aDesignTimeContextIdsByUrl ? Array.prototype.indexOf.call(aDesignTimeContextIdsByUrl, oContext.id) : -1)) !== -1;
if (bContextActive) {
aActiveConte... | [
"function",
"(",
"aContextObjects",
",",
"aDesignTimeContextIdsByUrl",
")",
"{",
"var",
"aActiveContexts",
"=",
"[",
"]",
";",
"aContextObjects",
".",
"forEach",
"(",
"function",
"(",
"oContext",
")",
"{",
"var",
"bContextActive",
"=",
"(",
"(",
"aDesignTimeCont... | Function to filter all contexts by the context URL parameters.
@param {string[]} aDesignTimeContextIdsByUrl - list of ids passed via URL
@param {object[]} aContextObjects - context objects within the application
@returns {string[]} aActiveContexts - id list of all active contexts | [
"Function",
"to",
"filter",
"all",
"contexts",
"by",
"the",
"context",
"URL",
"parameters",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js#L120-L132 | |
3,825 | SAP/openui5 | src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js | function(oContext, aRuntimeContextParameters) {
var that = this;
var bContextActive = true;
var aParameterOfContext = oContext.parameters;
aParameterOfContext.every(function (oParameter) {
bContextActive = bContextActive && that._checkContextParameter(oParameter, aRuntimeContextParameters);
return ... | javascript | function(oContext, aRuntimeContextParameters) {
var that = this;
var bContextActive = true;
var aParameterOfContext = oContext.parameters;
aParameterOfContext.every(function (oParameter) {
bContextActive = bContextActive && that._checkContextParameter(oParameter, aRuntimeContextParameters);
return ... | [
"function",
"(",
"oContext",
",",
"aRuntimeContextParameters",
")",
"{",
"var",
"that",
"=",
"this",
";",
"var",
"bContextActive",
"=",
"true",
";",
"var",
"aParameterOfContext",
"=",
"oContext",
".",
"parameters",
";",
"aParameterOfContext",
".",
"every",
"(",
... | Helper to filter passed context object.
If a passed context is not within the context objects of the given application the context is filtered.
The filtering is done
[At runtime] by comparing the parameters of the context objects with the actual runtime context.
[At designtime] by comparing the id of the context objec... | [
"Helper",
"to",
"filter",
"passed",
"context",
"object",
".",
"If",
"a",
"passed",
"context",
"is",
"not",
"within",
"the",
"context",
"objects",
"of",
"the",
"given",
"application",
"the",
"context",
"is",
"filtered",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js#L147-L158 | |
3,826 | SAP/openui5 | src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js | function (oParameter, aRuntimeContext) {
var sSelector = oParameter.selector;
var sOperator = oParameter.operator;
var oValue = oParameter.value;
switch (sOperator) {
case "EQ":
return this._checkEquals(sSelector, oValue, aRuntimeContext);
case "NE":
return !this._checkEquals(sSelector, o... | javascript | function (oParameter, aRuntimeContext) {
var sSelector = oParameter.selector;
var sOperator = oParameter.operator;
var oValue = oParameter.value;
switch (sOperator) {
case "EQ":
return this._checkEquals(sSelector, oValue, aRuntimeContext);
case "NE":
return !this._checkEquals(sSelector, o... | [
"function",
"(",
"oParameter",
",",
"aRuntimeContext",
")",
"{",
"var",
"sSelector",
"=",
"oParameter",
".",
"selector",
";",
"var",
"sOperator",
"=",
"oParameter",
".",
"operator",
";",
"var",
"oValue",
"=",
"oParameter",
".",
"value",
";",
"switch",
"(",
... | Checks a single condition of a context object. Returns true if the condition matches the current runtime context.
@param {Object} oParameter - context within an sap.ui.fl.Change
@param {string} oParameter.selector - key of a runtime context
@param {string} oParameter.operator - determine which comparison has to be exe... | [
"Checks",
"a",
"single",
"condition",
"of",
"a",
"context",
"object",
".",
"Returns",
"true",
"if",
"the",
"condition",
"matches",
"the",
"current",
"runtime",
"context",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js#L187-L201 | |
3,827 | SAP/openui5 | src/sap.ui.support/src/sap/ui/support/supportRules/ExecutionScope.js | function () {
var aPublicElements = [];
var mComponents = core.mObjects.component;
var mUIAreas = core.mUIAreas;
for (var i in mComponents) {
aPublicElements = aPublicElements.concat(
getPublicElementsInside(mComponents[i])
);
}
for (var key in mUIAreas) {
aPubli... | javascript | function () {
var aPublicElements = [];
var mComponents = core.mObjects.component;
var mUIAreas = core.mUIAreas;
for (var i in mComponents) {
aPublicElements = aPublicElements.concat(
getPublicElementsInside(mComponents[i])
);
}
for (var key in mUIAreas) {
aPubli... | [
"function",
"(",
")",
"{",
"var",
"aPublicElements",
"=",
"[",
"]",
";",
"var",
"mComponents",
"=",
"core",
".",
"mObjects",
".",
"component",
";",
"var",
"mUIAreas",
"=",
"core",
".",
"mUIAreas",
";",
"for",
"(",
"var",
"i",
"in",
"mComponents",
")",
... | Returns all public elements, i.e. elements that are part of public API
aggregations
@public
@function
@returns {Array} Array of matched elements
@alias sap.ui.support.ExecutionScope.getPublicElements | [
"Returns",
"all",
"public",
"elements",
"i",
".",
"e",
".",
"elements",
"that",
"are",
"part",
"of",
"public",
"API",
"aggregations"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ExecutionScope.js#L249-L267 | |
3,828 | SAP/openui5 | src/sap.ui.support/src/sap/ui/support/supportRules/ExecutionScope.js | function (classNameSelector) {
if (typeof classNameSelector === "string") {
return elements.filter(function (element) {
return element.getMetadata().getName() === classNameSelector;
});
}
if (typeof classNameSelector === "function") {
return elements.filter(function (element) {
... | javascript | function (classNameSelector) {
if (typeof classNameSelector === "string") {
return elements.filter(function (element) {
return element.getMetadata().getName() === classNameSelector;
});
}
if (typeof classNameSelector === "function") {
return elements.filter(function (element) {
... | [
"function",
"(",
"classNameSelector",
")",
"{",
"if",
"(",
"typeof",
"classNameSelector",
"===",
"\"string\"",
")",
"{",
"return",
"elements",
".",
"filter",
"(",
"function",
"(",
"element",
")",
"{",
"return",
"element",
".",
"getMetadata",
"(",
")",
".",
... | Gets elements by their type
@public
@function
@param {string|function} classNameSelector Either string or function
to be used when selecting a subset of elements
@returns {Array} Array of matched elements
@alias sap.ui.support.ExecutionScope.getElementsByClassName | [
"Gets",
"elements",
"by",
"their",
"type"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ExecutionScope.js#L277-L289 | |
3,829 | SAP/openui5 | src/sap.ui.support/src/sap/ui/support/supportRules/ExecutionScope.js | function (type) {
var log = jQuery.sap.log.getLogEntries(),
loggedObjects = [], elemIds;
// Add logEntries that have support info object,
// and that have the same type as the type provided
log.forEach(function (logEntry) {
if (!logEntry.supportInfo) {
return;
}
if (... | javascript | function (type) {
var log = jQuery.sap.log.getLogEntries(),
loggedObjects = [], elemIds;
// Add logEntries that have support info object,
// and that have the same type as the type provided
log.forEach(function (logEntry) {
if (!logEntry.supportInfo) {
return;
}
if (... | [
"function",
"(",
"type",
")",
"{",
"var",
"log",
"=",
"jQuery",
".",
"sap",
".",
"log",
".",
"getLogEntries",
"(",
")",
",",
"loggedObjects",
"=",
"[",
"]",
",",
"elemIds",
";",
"// Add logEntries that have support info object,",
"// and that have the same type as... | Gets the logged objects by object type
@public
@function
@param {any} type Type of logged objects
@returns {Array} Array of logged objects
@alias sap.ui.support.ExecutionScope.getLoggedObjects | [
"Gets",
"the",
"logged",
"objects",
"by",
"object",
"type"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ExecutionScope.js#L298-L336 | |
3,830 | SAP/openui5 | src/sap.ui.unified/src/sap/ui/unified/calendar/CalendarDate.js | createUniversalUTCDate | function createUniversalUTCDate(oDate, sCalendarType) {
if (sCalendarType) {
return UniversalDate.getInstance(createUTCDate(oDate), sCalendarType);
} else {
return new UniversalDate(createUTCDate(oDate).getTime());
}
} | javascript | function createUniversalUTCDate(oDate, sCalendarType) {
if (sCalendarType) {
return UniversalDate.getInstance(createUTCDate(oDate), sCalendarType);
} else {
return new UniversalDate(createUTCDate(oDate).getTime());
}
} | [
"function",
"createUniversalUTCDate",
"(",
"oDate",
",",
"sCalendarType",
")",
"{",
"if",
"(",
"sCalendarType",
")",
"{",
"return",
"UniversalDate",
".",
"getInstance",
"(",
"createUTCDate",
"(",
"oDate",
")",
",",
"sCalendarType",
")",
";",
"}",
"else",
"{",
... | Creates an UniversalDate corresponding to the given date and calendar type.
@param {Date} oDate JavaScript date object to create the UniversalDate from. Local date information is used.
@param {sap.ui.core.CalendarType} sCalendarType The type to be used. If not specified, the calendar type from configuration will be use... | [
"Creates",
"an",
"UniversalDate",
"corresponding",
"to",
"the",
"given",
"date",
"and",
"calendar",
"type",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/calendar/CalendarDate.js#L328-L334 |
3,831 | SAP/openui5 | src/sap.ui.unified/src/sap/ui/unified/calendar/CalendarDate.js | createUTCDate | function createUTCDate(oDate) {
var oUTCDate = new Date(Date.UTC(0, 0, 1));
oUTCDate.setUTCFullYear(oDate.getFullYear(), oDate.getMonth(), oDate.getDate());
return oUTCDate;
} | javascript | function createUTCDate(oDate) {
var oUTCDate = new Date(Date.UTC(0, 0, 1));
oUTCDate.setUTCFullYear(oDate.getFullYear(), oDate.getMonth(), oDate.getDate());
return oUTCDate;
} | [
"function",
"createUTCDate",
"(",
"oDate",
")",
"{",
"var",
"oUTCDate",
"=",
"new",
"Date",
"(",
"Date",
".",
"UTC",
"(",
"0",
",",
"0",
",",
"1",
")",
")",
";",
"oUTCDate",
".",
"setUTCFullYear",
"(",
"oDate",
".",
"getFullYear",
"(",
")",
",",
"o... | Creates a JavaScript UTC Date corresponding to the given JavaScript Date.
@param {Date} oDate JavaScript date object. Time related information is cut.
@returns {Date} JavaScript date created from the date object, but this time considered as UTC date information. | [
"Creates",
"a",
"JavaScript",
"UTC",
"Date",
"corresponding",
"to",
"the",
"given",
"JavaScript",
"Date",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/calendar/CalendarDate.js#L341-L347 |
3,832 | SAP/openui5 | src/sap.ui.unified/src/sap/ui/unified/calendar/CalendarDate.js | checkNumericLike | function checkNumericLike(value, message) {
if (value == undefined || value === Infinity || isNaN(value)) {//checks also for null.
throw message;
}
} | javascript | function checkNumericLike(value, message) {
if (value == undefined || value === Infinity || isNaN(value)) {//checks also for null.
throw message;
}
} | [
"function",
"checkNumericLike",
"(",
"value",
",",
"message",
")",
"{",
"if",
"(",
"value",
"==",
"undefined",
"||",
"value",
"===",
"Infinity",
"||",
"isNaN",
"(",
"value",
")",
")",
"{",
"//checks also for null.",
"throw",
"message",
";",
"}",
"}"
] | Verifies the given value is numeric like, i.e. 3, "3" and throws an error if it is not.
@param {any} value The value of any type to check. If null or undefined, this method throws an error.
@param {string} message The message to be used if an error is to be thrown
@throws will throw an error if the value is null or und... | [
"Verifies",
"the",
"given",
"value",
"is",
"numeric",
"like",
"i",
".",
"e",
".",
"3",
"3",
"and",
"throws",
"an",
"error",
"if",
"it",
"is",
"not",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/calendar/CalendarDate.js#L361-L365 |
3,833 | SAP/openui5 | src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/util/XML2JSONUtils.js | function(element) {
var links = element.querySelectorAll("a.xref, a.link, area"),
i,
link,
href,
startsWithHash,
startsWithHTTP;
for (i = 0; i < links.length; i++) {
link = links[i];
href = link.getAttribute("href");
startsWithHash = href.indexOf("#") == 0;
startsWi... | javascript | function(element) {
var links = element.querySelectorAll("a.xref, a.link, area"),
i,
link,
href,
startsWithHash,
startsWithHTTP;
for (i = 0; i < links.length; i++) {
link = links[i];
href = link.getAttribute("href");
startsWithHash = href.indexOf("#") == 0;
startsWi... | [
"function",
"(",
"element",
")",
"{",
"var",
"links",
"=",
"element",
".",
"querySelectorAll",
"(",
"\"a.xref, a.link, area\"",
")",
",",
"i",
",",
"link",
",",
"href",
",",
"startsWithHash",
",",
"startsWithHTTP",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i... | Adjusts link href values
@param element The DOM element which may contain cross reference links | [
"Adjusts",
"link",
"href",
"values"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/util/XML2JSONUtils.js#L32-L70 | |
3,834 | SAP/openui5 | src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/Welcome.controller.js | function (event) {
var href = event.oSource.getHref() || event.oSource.getTarget();
href = href.replace("#/", "").split('/');
/** @type string */
var page = href[0];
/** @type string */
var parameter = href[1];
event.preventDefault();
this.getRouter().navTo(page, {id: parameter}, true);... | javascript | function (event) {
var href = event.oSource.getHref() || event.oSource.getTarget();
href = href.replace("#/", "").split('/');
/** @type string */
var page = href[0];
/** @type string */
var parameter = href[1];
event.preventDefault();
this.getRouter().navTo(page, {id: parameter}, true);... | [
"function",
"(",
"event",
")",
"{",
"var",
"href",
"=",
"event",
".",
"oSource",
".",
"getHref",
"(",
")",
"||",
"event",
".",
"oSource",
".",
"getTarget",
"(",
")",
";",
"href",
"=",
"href",
".",
"replace",
"(",
"\"#/\"",
",",
"\"\"",
")",
".",
... | Opens the control's details page
@param event | [
"Opens",
"the",
"control",
"s",
"details",
"page"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/Welcome.controller.js#L73-L83 | |
3,835 | SAP/openui5 | src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/Welcome.controller.js | function (oEvent) {
var isOpenUI5 = this.getView().getModel("welcomeView").getProperty("/isOpenUI5"),
sUrl = isOpenUI5 ? "http://openui5.org/download.html" : "https://tools.hana.ondemand.com/#sapui5";
window.open(sUrl, "_blank");
} | javascript | function (oEvent) {
var isOpenUI5 = this.getView().getModel("welcomeView").getProperty("/isOpenUI5"),
sUrl = isOpenUI5 ? "http://openui5.org/download.html" : "https://tools.hana.ondemand.com/#sapui5";
window.open(sUrl, "_blank");
} | [
"function",
"(",
"oEvent",
")",
"{",
"var",
"isOpenUI5",
"=",
"this",
".",
"getView",
"(",
")",
".",
"getModel",
"(",
"\"welcomeView\"",
")",
".",
"getProperty",
"(",
"\"/isOpenUI5\"",
")",
",",
"sUrl",
"=",
"isOpenUI5",
"?",
"\"http://openui5.org/download.htm... | Redirects to the UI5 download page
@param {sap.ui.base.Event} oEvent the Button press event
@public | [
"Redirects",
"to",
"the",
"UI5",
"download",
"page"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/Welcome.controller.js#L97-L101 | |
3,836 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/jszip.js | function(size) {
var result = 0,
i;
this.checkOffset(size);
for (i = this.index + size - 1; i >= this.index; i--) {
result = (result << 8) + this.byteAt(i);
}
this.index += size;
return result;
} | javascript | function(size) {
var result = 0,
i;
this.checkOffset(size);
for (i = this.index + size - 1; i >= this.index; i--) {
result = (result << 8) + this.byteAt(i);
}
this.index += size;
return result;
} | [
"function",
"(",
"size",
")",
"{",
"var",
"result",
"=",
"0",
",",
"i",
";",
"this",
".",
"checkOffset",
"(",
"size",
")",
";",
"for",
"(",
"i",
"=",
"this",
".",
"index",
"+",
"size",
"-",
"1",
";",
"i",
">=",
"this",
".",
"index",
";",
"i",... | Get the next number with a given byte size.
@param {number} size the number of bytes to read.
@return {number} the corresponding number. | [
"Get",
"the",
"next",
"number",
"with",
"a",
"given",
"byte",
"size",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L188-L197 | |
3,837 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/jszip.js | function(asUTF8) {
var result = getRawData(this);
if (result === null || typeof result === "undefined") {
return "";
}
// if the data is a base64 string, we decode it before checking the encoding !
if (this.options.base64) {
result = base64.decode(result);
}
if (asUTF8 && thi... | javascript | function(asUTF8) {
var result = getRawData(this);
if (result === null || typeof result === "undefined") {
return "";
}
// if the data is a base64 string, we decode it before checking the encoding !
if (this.options.base64) {
result = base64.decode(result);
}
if (asUTF8 && thi... | [
"function",
"(",
"asUTF8",
")",
"{",
"var",
"result",
"=",
"getRawData",
"(",
"this",
")",
";",
"if",
"(",
"result",
"===",
"null",
"||",
"typeof",
"result",
"===",
"\"undefined\"",
")",
"{",
"return",
"\"\"",
";",
"}",
"// if the data is a base64 string, we... | Transform this._data into a string.
@param {function} filter a function String -> String, applied if not null on the result.
@return {String} the string representing this._data. | [
"Transform",
"this",
".",
"_data",
"into",
"a",
"string",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L422-L445 | |
3,838 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/jszip.js | function(dec, bytes) {
var hex = "",
i;
for (i = 0; i < bytes; i++) {
hex += String.fromCharCode(dec & 0xff);
dec = dec >>> 8;
}
return hex;
} | javascript | function(dec, bytes) {
var hex = "",
i;
for (i = 0; i < bytes; i++) {
hex += String.fromCharCode(dec & 0xff);
dec = dec >>> 8;
}
return hex;
} | [
"function",
"(",
"dec",
",",
"bytes",
")",
"{",
"var",
"hex",
"=",
"\"\"",
",",
"i",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"bytes",
";",
"i",
"++",
")",
"{",
"hex",
"+=",
"String",
".",
"fromCharCode",
"(",
"dec",
"&",
"0xff",
")",
... | Transform an integer into a string in hexadecimal.
@private
@param {number} dec the number to convert.
@param {number} bytes the number of bytes to generate.
@returns {string} the result. | [
"Transform",
"an",
"integer",
"into",
"a",
"string",
"in",
"hexadecimal",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L506-L514 | |
3,839 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/jszip.js | function() {
var result = {}, i, attr;
for (i = 0; i < arguments.length; i++) { // arguments is not enumerable in some browsers
for (attr in arguments[i]) {
if (arguments[i].hasOwnProperty(attr) && typeof result[attr] === "undefined") {
result[attr] = arguments[i][attr];
... | javascript | function() {
var result = {}, i, attr;
for (i = 0; i < arguments.length; i++) { // arguments is not enumerable in some browsers
for (attr in arguments[i]) {
if (arguments[i].hasOwnProperty(attr) && typeof result[attr] === "undefined") {
result[attr] = arguments[i][attr];
... | [
"function",
"(",
")",
"{",
"var",
"result",
"=",
"{",
"}",
",",
"i",
",",
"attr",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"arguments",
".",
"length",
";",
"i",
"++",
")",
"{",
"// arguments is not enumerable in some browsers",
"for",
"(",
"att... | Merge the objects passed as parameters into a new one.
@private
@param {...Object} var_args All objects to merge.
@return {Object} a new object with the data of the others. | [
"Merge",
"the",
"objects",
"passed",
"as",
"parameters",
"into",
"a",
"new",
"one",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L522-L532 | |
3,840 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/jszip.js | function(path) {
if (path.slice(-1) == '/') {
path = path.substring(0, path.length - 1);
}
var lastSlash = path.lastIndexOf('/');
return (lastSlash > 0) ? path.substring(0, lastSlash) : "";
} | javascript | function(path) {
if (path.slice(-1) == '/') {
path = path.substring(0, path.length - 1);
}
var lastSlash = path.lastIndexOf('/');
return (lastSlash > 0) ? path.substring(0, lastSlash) : "";
} | [
"function",
"(",
"path",
")",
"{",
"if",
"(",
"path",
".",
"slice",
"(",
"-",
"1",
")",
"==",
"'/'",
")",
"{",
"path",
"=",
"path",
".",
"substring",
"(",
"0",
",",
"path",
".",
"length",
"-",
"1",
")",
";",
"}",
"var",
"lastSlash",
"=",
"pat... | Find the parent folder of the path.
@private
@param {string} path the path to use
@return {string} the parent folder, or "" | [
"Find",
"the",
"parent",
"folder",
"of",
"the",
"path",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L612-L618 | |
3,841 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/jszip.js | function(input) {
if (input.length !== 0) {
// with an empty Uint8Array, Opera fails with a "Offset larger than array size"
input = utils.transformTo("uint8array", input);
this.data.set(input, this.index);
this.index += input.length;
}
} | javascript | function(input) {
if (input.length !== 0) {
// with an empty Uint8Array, Opera fails with a "Offset larger than array size"
input = utils.transformTo("uint8array", input);
this.data.set(input, this.index);
this.index += input.length;
}
} | [
"function",
"(",
"input",
")",
"{",
"if",
"(",
"input",
".",
"length",
"!==",
"0",
")",
"{",
"// with an empty Uint8Array, Opera fails with a \"Offset larger than array size\"",
"input",
"=",
"utils",
".",
"transformTo",
"(",
"\"uint8array\"",
",",
"input",
")",
";"... | Append any content to the current array.
@param {Object} input the content to add. | [
"Append",
"any",
"content",
"to",
"the",
"current",
"array",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L843-L850 | |
3,842 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/jszip.js | function(name, data, o) {
if (arguments.length === 1) {
if (utils.isRegExp(name)) {
var regexp = name;
return this.filter(function(relativePath, file) {
return !file.options.dir && regexp.test(relativePath);
});
}
... | javascript | function(name, data, o) {
if (arguments.length === 1) {
if (utils.isRegExp(name)) {
var regexp = name;
return this.filter(function(relativePath, file) {
return !file.options.dir && regexp.test(relativePath);
});
}
... | [
"function",
"(",
"name",
",",
"data",
",",
"o",
")",
"{",
"if",
"(",
"arguments",
".",
"length",
"===",
"1",
")",
"{",
"if",
"(",
"utils",
".",
"isRegExp",
"(",
"name",
")",
")",
"{",
"var",
"regexp",
"=",
"name",
";",
"return",
"this",
".",
"f... | Add a file to the zip file, or search a file.
@param {string|RegExp} name The name of the file to add (if data is defined),
the name of the file to find (if no data) or a regex to match files.
@param {String|ArrayBuffer|Uint8Array|Buffer} data The file data, either raw or base64 encoded
@param {Object} o Fil... | [
"Add",
"a",
"file",
"to",
"the",
"zip",
"file",
"or",
"search",
"a",
"file",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L932-L951 | |
3,843 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/jszip.js | function(options) {
options = extend(options || {}, {
base64: true,
compression: "STORE",
type: "base64"
});
utils.checkSupport(options.type);
var zipData = [],
localDirLength = 0,
centralDirLength = 0,
writer, i;
... | javascript | function(options) {
options = extend(options || {}, {
base64: true,
compression: "STORE",
type: "base64"
});
utils.checkSupport(options.type);
var zipData = [],
localDirLength = 0,
centralDirLength = 0,
writer, i;
... | [
"function",
"(",
"options",
")",
"{",
"options",
"=",
"extend",
"(",
"options",
"||",
"{",
"}",
",",
"{",
"base64",
":",
"true",
",",
"compression",
":",
"\"STORE\"",
",",
"type",
":",
"\"base64\"",
"}",
")",
";",
"utils",
".",
"checkSupport",
"(",
"... | Generate the complete zip file
@param {Object} options the options to generate the zip file :
- base64, (deprecated, use type instead) true to generate base64.
- compression, "STORE" by default.
- type, "base64" by default. Values are : string, base64, uint8array, arraybuffer, blob.
@return {String|Uint8Array|ArrayBuff... | [
"Generate",
"the",
"complete",
"zip",
"file"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L1022-L1116 | |
3,844 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/jszip.js | stringToArrayLike | function stringToArrayLike(str, array) {
for (var i = 0; i < str.length; ++i) {
array[i] = str.charCodeAt(i) & 0xFF;
}
return array;
} | javascript | function stringToArrayLike(str, array) {
for (var i = 0; i < str.length; ++i) {
array[i] = str.charCodeAt(i) & 0xFF;
}
return array;
} | [
"function",
"stringToArrayLike",
"(",
"str",
",",
"array",
")",
"{",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"str",
".",
"length",
";",
"++",
"i",
")",
"{",
"array",
"[",
"i",
"]",
"=",
"str",
".",
"charCodeAt",
"(",
"i",
")",
"&",
"... | Fill in an array with a string.
@param {String} str the string to use.
@param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to fill in (will be mutated).
@return {Array|ArrayBuffer|Uint8Array|Buffer} the updated array. | [
"Fill",
"in",
"an",
"array",
"with",
"a",
"string",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L1419-L1424 |
3,845 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/jszip.js | arrayLikeToArrayLike | function arrayLikeToArrayLike(arrayFrom, arrayTo) {
for (var i = 0; i < arrayFrom.length; i++) {
arrayTo[i] = arrayFrom[i];
}
return arrayTo;
} | javascript | function arrayLikeToArrayLike(arrayFrom, arrayTo) {
for (var i = 0; i < arrayFrom.length; i++) {
arrayTo[i] = arrayFrom[i];
}
return arrayTo;
} | [
"function",
"arrayLikeToArrayLike",
"(",
"arrayFrom",
",",
"arrayTo",
")",
"{",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"arrayFrom",
".",
"length",
";",
"i",
"++",
")",
"{",
"arrayTo",
"[",
"i",
"]",
"=",
"arrayFrom",
"[",
"i",
"]",
";",
... | Copy the data from an array-like to an other array-like.
@param {Array|ArrayBuffer|Uint8Array|Buffer} arrayFrom the origin array.
@param {Array|ArrayBuffer|Uint8Array|Buffer} arrayTo the destination array which will be mutated.
@return {Array|ArrayBuffer|Uint8Array|Buffer} the updated destination array. | [
"Copy",
"the",
"data",
"from",
"an",
"array",
"-",
"like",
"to",
"an",
"other",
"array",
"-",
"like",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L1492-L1497 |
3,846 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/jszip.js | function(expectedSignature) {
var signature = this.reader.readString(4);
if (signature !== expectedSignature) {
throw new Error("Corrupted zip or bug : unexpected signature " + "(" + utils.pretty(signature) + ", expected " + utils.pretty(expectedSignature) + ")");
}
} | javascript | function(expectedSignature) {
var signature = this.reader.readString(4);
if (signature !== expectedSignature) {
throw new Error("Corrupted zip or bug : unexpected signature " + "(" + utils.pretty(signature) + ", expected " + utils.pretty(expectedSignature) + ")");
}
} | [
"function",
"(",
"expectedSignature",
")",
"{",
"var",
"signature",
"=",
"this",
".",
"reader",
".",
"readString",
"(",
"4",
")",
";",
"if",
"(",
"signature",
"!==",
"expectedSignature",
")",
"{",
"throw",
"new",
"Error",
"(",
"\"Corrupted zip or bug : unexpec... | Check that the reader is on the speficied signature.
@param {string} expectedSignature the expected signature.
@throws {Error} if it is an other signature. | [
"Check",
"that",
"the",
"reader",
"is",
"on",
"the",
"speficied",
"signature",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L1713-L1718 | |
3,847 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/jszip.js | function() {
var i, file;
for (i = 0; i < this.files.length; i++) {
file = this.files[i];
this.reader.setIndex(file.localHeaderOffset);
this.checkSignature(sig.LOCAL_FILE_HEADER);
file.readLocalPart(this.reader);
file.handleUTF8();
}
... | javascript | function() {
var i, file;
for (i = 0; i < this.files.length; i++) {
file = this.files[i];
this.reader.setIndex(file.localHeaderOffset);
this.checkSignature(sig.LOCAL_FILE_HEADER);
file.readLocalPart(this.reader);
file.handleUTF8();
}
... | [
"function",
"(",
")",
"{",
"var",
"i",
",",
"file",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"files",
".",
"length",
";",
"i",
"++",
")",
"{",
"file",
"=",
"this",
".",
"files",
"[",
"i",
"]",
";",
"this",
".",
"reader",
... | Read the local files, based on the offset read in the central part. | [
"Read",
"the",
"local",
"files",
"based",
"on",
"the",
"offset",
"read",
"in",
"the",
"central",
"part",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L1781-L1790 | |
3,848 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/jszip.js | function() {
var offset = this.reader.lastIndexOfSignature(sig.CENTRAL_DIRECTORY_END);
if (offset === -1) {
throw new Error("Corrupted zip : can't find end of central directory");
}
this.reader.setIndex(offset);
this.checkSignature(sig.CENTRAL_DIRECTORY_END);
... | javascript | function() {
var offset = this.reader.lastIndexOfSignature(sig.CENTRAL_DIRECTORY_END);
if (offset === -1) {
throw new Error("Corrupted zip : can't find end of central directory");
}
this.reader.setIndex(offset);
this.checkSignature(sig.CENTRAL_DIRECTORY_END);
... | [
"function",
"(",
")",
"{",
"var",
"offset",
"=",
"this",
".",
"reader",
".",
"lastIndexOfSignature",
"(",
"sig",
".",
"CENTRAL_DIRECTORY_END",
")",
";",
"if",
"(",
"offset",
"===",
"-",
"1",
")",
"{",
"throw",
"new",
"Error",
"(",
"\"Corrupted zip : can't ... | Read the end of central directory. | [
"Read",
"the",
"end",
"of",
"central",
"directory",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L1809-L1855 | |
3,849 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/jszip.js | function(reader, from, length, compression, uncompressedSize) {
return function() {
var compressedFileData = utils.transformTo(compression.uncompressInputType, this.getCompressedContent());
var uncompressedFileData = compression.uncompress(compressedFileData);
if (uncompres... | javascript | function(reader, from, length, compression, uncompressedSize) {
return function() {
var compressedFileData = utils.transformTo(compression.uncompressInputType, this.getCompressedContent());
var uncompressedFileData = compression.uncompress(compressedFileData);
if (uncompres... | [
"function",
"(",
"reader",
",",
"from",
",",
"length",
",",
"compression",
",",
"uncompressedSize",
")",
"{",
"return",
"function",
"(",
")",
"{",
"var",
"compressedFileData",
"=",
"utils",
".",
"transformTo",
"(",
"compression",
".",
"uncompressInputType",
",... | Prepare the function used to generate the uncompressed content from this ZipFile.
@param {DataReader} reader the reader to use.
@param {number} from the offset from where we should read the data.
@param {number} length the length of the data to read.
@param {JSZip.compression} compression the compression used on this f... | [
"Prepare",
"the",
"function",
"used",
"to",
"generate",
"the",
"uncompressed",
"content",
"from",
"this",
"ZipFile",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L1942-L1954 | |
3,850 | SAP/openui5 | src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js | function (oTreeViewModelRules) {
var aSelectedRules = storage.getSelectedRules();
if (!aSelectedRules) {
return null;
}
if (!oTreeViewModelRules) {
return null;
}
aSelectedRules.forEach(function (oRuleDescriptor) {
Object.keys(oTreeViewModelRules).forEach(function(iKey) {
oTreeVie... | javascript | function (oTreeViewModelRules) {
var aSelectedRules = storage.getSelectedRules();
if (!aSelectedRules) {
return null;
}
if (!oTreeViewModelRules) {
return null;
}
aSelectedRules.forEach(function (oRuleDescriptor) {
Object.keys(oTreeViewModelRules).forEach(function(iKey) {
oTreeVie... | [
"function",
"(",
"oTreeViewModelRules",
")",
"{",
"var",
"aSelectedRules",
"=",
"storage",
".",
"getSelectedRules",
"(",
")",
";",
"if",
"(",
"!",
"aSelectedRules",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"!",
"oTreeViewModelRules",
")",
"{",
"ret... | Traverses the model and updates the selection flag for the selected rules
@returns {Array} Rule selections array | [
"Traverses",
"the",
"model",
"and",
"updates",
"the",
"selection",
"flag",
"for",
"the",
"selected",
"rules"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js#L72-L98 | |
3,851 | SAP/openui5 | src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js | function (aSelectedRules) {
var oTreeViewModelRules = this.model.getProperty("/treeModel");
// deselect all
Object.keys(oTreeViewModelRules).forEach(function(iKey) {
oTreeViewModelRules[iKey].nodes.forEach(function(oRule) {
oRule.selected = false;
});
});
// select those from aSelectedRule... | javascript | function (aSelectedRules) {
var oTreeViewModelRules = this.model.getProperty("/treeModel");
// deselect all
Object.keys(oTreeViewModelRules).forEach(function(iKey) {
oTreeViewModelRules[iKey].nodes.forEach(function(oRule) {
oRule.selected = false;
});
});
// select those from aSelectedRule... | [
"function",
"(",
"aSelectedRules",
")",
"{",
"var",
"oTreeViewModelRules",
"=",
"this",
".",
"model",
".",
"getProperty",
"(",
"\"/treeModel\"",
")",
";",
"// deselect all",
"Object",
".",
"keys",
"(",
"oTreeViewModelRules",
")",
".",
"forEach",
"(",
"function",... | Sets the selected rules in the same format in which they are imported
@param {Array} aSelectedRules The selected rules - same as the result of getSelectedRulesPlain | [
"Sets",
"the",
"selected",
"rules",
"in",
"the",
"same",
"format",
"in",
"which",
"they",
"are",
"imported"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js#L114-L147 | |
3,852 | SAP/openui5 | src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js | function (tempTreeModelWithAdditionalRuleSets, oTreeModelWithSelection) {
Object.keys(tempTreeModelWithAdditionalRuleSets).forEach(function(iKey) {
Object.keys(oTreeModelWithSelection).forEach(function(iKey) {
if (tempTreeModelWithAdditionalRuleSets[iKey].id === oTreeModelWithSelection[iKey].id) {
te... | javascript | function (tempTreeModelWithAdditionalRuleSets, oTreeModelWithSelection) {
Object.keys(tempTreeModelWithAdditionalRuleSets).forEach(function(iKey) {
Object.keys(oTreeModelWithSelection).forEach(function(iKey) {
if (tempTreeModelWithAdditionalRuleSets[iKey].id === oTreeModelWithSelection[iKey].id) {
te... | [
"function",
"(",
"tempTreeModelWithAdditionalRuleSets",
",",
"oTreeModelWithSelection",
")",
"{",
"Object",
".",
"keys",
"(",
"tempTreeModelWithAdditionalRuleSets",
")",
".",
"forEach",
"(",
"function",
"(",
"iKey",
")",
"{",
"Object",
".",
"keys",
"(",
"oTreeModelW... | Applies selection to the tree model after reinitializing model with additional rulesets.
@param {Object} tempTreeModelWithAdditionalRuleSets tree model with no selection
@param {Object} oTreeModelWithSelection tree model with selection before loading additional rulesets
@returns {Object} oTreeModelWhitAdditionalRuleSet... | [
"Applies",
"selection",
"to",
"the",
"tree",
"model",
"after",
"reinitializing",
"model",
"with",
"additional",
"rulesets",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js#L156-L167 | |
3,853 | SAP/openui5 | src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js | function (oTreeModel, aAdditionalRuleSetsNames) {
if (!aAdditionalRuleSetsNames) {
return;
}
aAdditionalRuleSetsNames.forEach(function (sRuleName) {
Object.keys(oTreeModel).forEach(function(iKey) {
if (oTreeModel[iKey].name === sRuleName) {
oTreeModel[iKey].selected = false;
oTreeMod... | javascript | function (oTreeModel, aAdditionalRuleSetsNames) {
if (!aAdditionalRuleSetsNames) {
return;
}
aAdditionalRuleSetsNames.forEach(function (sRuleName) {
Object.keys(oTreeModel).forEach(function(iKey) {
if (oTreeModel[iKey].name === sRuleName) {
oTreeModel[iKey].selected = false;
oTreeMod... | [
"function",
"(",
"oTreeModel",
",",
"aAdditionalRuleSetsNames",
")",
"{",
"if",
"(",
"!",
"aAdditionalRuleSetsNames",
")",
"{",
"return",
";",
"}",
"aAdditionalRuleSetsNames",
".",
"forEach",
"(",
"function",
"(",
"sRuleName",
")",
"{",
"Object",
".",
"keys",
... | Deselect additional rulesets in model
@param {Object} oTreeModel tree model with loaded additional ruleset(s)
@param {Array} aAdditionalRuleSetsNames additional ruleset(s) name
@returns {Object} oTreeModel updated selection model | [
"Deselect",
"additional",
"rulesets",
"in",
"model"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js#L175-L193 | |
3,854 | SAP/openui5 | src/sap.m/src/sap/m/TimePicker.js | genValidHourValues | function genValidHourValues(b24H, sLeadingChar) {
var iStart = b24H ? 0 : 1,
b2400 = this._oTimePicker.getSupport2400() ? 24 : 23,//if getSupport2400, the user could type 24 in the input
iEnd = b24H ? b2400 : 12;
return genValues(iStart, iEnd, sLeadingChar);
} | javascript | function genValidHourValues(b24H, sLeadingChar) {
var iStart = b24H ? 0 : 1,
b2400 = this._oTimePicker.getSupport2400() ? 24 : 23,//if getSupport2400, the user could type 24 in the input
iEnd = b24H ? b2400 : 12;
return genValues(iStart, iEnd, sLeadingChar);
} | [
"function",
"genValidHourValues",
"(",
"b24H",
",",
"sLeadingChar",
")",
"{",
"var",
"iStart",
"=",
"b24H",
"?",
"0",
":",
"1",
",",
"b2400",
"=",
"this",
".",
"_oTimePicker",
".",
"getSupport2400",
"(",
")",
"?",
"24",
":",
"23",
",",
"//if getSupport24... | not too expensive to generate all values that are valid hour values | [
"not",
"too",
"expensive",
"to",
"generate",
"all",
"values",
"that",
"are",
"valid",
"hour",
"values"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/TimePicker.js#L1462-L1468 |
3,855 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js | function (oOptions, sType) {
var oObject;
try {
if (sType === "Component" && !this.async) {
Log.error("sap.ui.core.routing.Target doesn't support loading component in synchronous mode, please switch routing to async");
throw new Error("sap.ui.core.routing.Target doesn't support loading compone... | javascript | function (oOptions, sType) {
var oObject;
try {
if (sType === "Component" && !this.async) {
Log.error("sap.ui.core.routing.Target doesn't support loading component in synchronous mode, please switch routing to async");
throw new Error("sap.ui.core.routing.Target doesn't support loading compone... | [
"function",
"(",
"oOptions",
",",
"sType",
")",
"{",
"var",
"oObject",
";",
"try",
"{",
"if",
"(",
"sType",
"===",
"\"Component\"",
"&&",
"!",
"this",
".",
"async",
")",
"{",
"Log",
".",
"error",
"(",
"\"sap.ui.core.routing.Target doesn't support loading compo... | Returns a cached view or component, for a given name. If it does not exist yet, it will create the view or component with the provided options.
If you provide a "id" in the "oOptions", it will be prefixed with the id of the component.
@param {object} oOptions see {@link sap.ui.core.mvc.View.create} or {@link sap.ui.co... | [
"Returns",
"a",
"cached",
"view",
"or",
"component",
"for",
"a",
"given",
"name",
".",
"If",
"it",
"does",
"not",
"exist",
"yet",
"it",
"will",
"create",
"the",
"view",
"or",
"component",
"with",
"the",
"provided",
"options",
".",
"If",
"you",
"provide",... | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js#L91-L117 | |
3,856 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js | function (sName, sType, oObject) {
var oInstanceCache;
this._checkName(sName, sType);
assert(sType === "View" || sType === "Component", "sType must be either 'View' or 'Component'");
oInstanceCache = this._oCache[sType.toLowerCase()][sName];
if (!oInstanceCache) {
oInstanceCache = this._oCac... | javascript | function (sName, sType, oObject) {
var oInstanceCache;
this._checkName(sName, sType);
assert(sType === "View" || sType === "Component", "sType must be either 'View' or 'Component'");
oInstanceCache = this._oCache[sType.toLowerCase()][sName];
if (!oInstanceCache) {
oInstanceCache = this._oCac... | [
"function",
"(",
"sName",
",",
"sType",
",",
"oObject",
")",
"{",
"var",
"oInstanceCache",
";",
"this",
".",
"_checkName",
"(",
"sName",
",",
"sType",
")",
";",
"assert",
"(",
"sType",
"===",
"\"View\"",
"||",
"sType",
"===",
"\"Component\"",
",",
"\"sTy... | Adds or overwrites a view or a component in the TargetCache. The given object is cached under its name and the 'undefined' key.
If the third parameter is set to null or undefined, the previous cache view or component under the same name isn't managed by the TargetCache instance.
The lifecycle (for example the destroy)... | [
"Adds",
"or",
"overwrites",
"a",
"view",
"or",
"a",
"component",
"in",
"the",
"TargetCache",
".",
"The",
"given",
"object",
"is",
"cached",
"under",
"its",
"name",
"and",
"the",
"undefined",
"key",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js#L133-L148 | |
3,857 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js | function () {
EventProvider.prototype.destroy.apply(this);
if (this.bIsDestroyed) {
return this;
}
function destroyObject(oObject) {
if (oObject && oObject.destroy) {
oObject.destroy();
}
}
Object.keys(this._oCache).forEach(function (sType) {
var oTypeCache = this._o... | javascript | function () {
EventProvider.prototype.destroy.apply(this);
if (this.bIsDestroyed) {
return this;
}
function destroyObject(oObject) {
if (oObject && oObject.destroy) {
oObject.destroy();
}
}
Object.keys(this._oCache).forEach(function (sType) {
var oTypeCache = this._o... | [
"function",
"(",
")",
"{",
"EventProvider",
".",
"prototype",
".",
"destroy",
".",
"apply",
"(",
"this",
")",
";",
"if",
"(",
"this",
".",
"bIsDestroyed",
")",
"{",
"return",
"this",
";",
"}",
"function",
"destroyObject",
"(",
"oObject",
")",
"{",
"if"... | Destroys all the views and components created by this instance.
@returns {sap.ui.core.routing.TargetCache} this for chaining. | [
"Destroys",
"all",
"the",
"views",
"and",
"components",
"created",
"by",
"this",
"instance",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js#L155-L188 | |
3,858 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js | function (sName, sType) {
if (!sName) {
var sMessage = "A name for the " + sType.toLowerCase() + " has to be defined";
Log.error(sMessage, this);
throw Error(sMessage);
}
} | javascript | function (sName, sType) {
if (!sName) {
var sMessage = "A name for the " + sType.toLowerCase() + " has to be defined";
Log.error(sMessage, this);
throw Error(sMessage);
}
} | [
"function",
"(",
"sName",
",",
"sType",
")",
"{",
"if",
"(",
"!",
"sName",
")",
"{",
"var",
"sMessage",
"=",
"\"A name for the \"",
"+",
"sType",
".",
"toLowerCase",
"(",
")",
"+",
"\" has to be defined\"",
";",
"Log",
".",
"error",
"(",
"sMessage",
",",... | hook for the deprecated property viewId on the route, will not prefix the id with the component
@name sap.ui.core.routing.TargetCache#_getViewWithGlobalId
@returns {*}
@private
@param {string} sName logs an error if it is empty or undefined
@param {string} sType whether it's a 'View' or 'Component'
@private | [
"hook",
"for",
"the",
"deprecated",
"property",
"viewId",
"on",
"the",
"route",
"will",
"not",
"prefix",
"the",
"id",
"with",
"the",
"component"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js#L305-L313 | |
3,859 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/HTMLRenderer.js | function(oRM, oControl) {
// render an invisible, but easily identifiable placeholder for the content
oRM.write("<div id=\"" + RenderPrefixes.Dummy + oControl.getId() + "\" style=\"display:none\">");
// Note: we do not render the content string here, but only in onAfterRendering
// This has the advantage t... | javascript | function(oRM, oControl) {
// render an invisible, but easily identifiable placeholder for the content
oRM.write("<div id=\"" + RenderPrefixes.Dummy + oControl.getId() + "\" style=\"display:none\">");
// Note: we do not render the content string here, but only in onAfterRendering
// This has the advantage t... | [
"function",
"(",
"oRM",
",",
"oControl",
")",
"{",
"// render an invisible, but easily identifiable placeholder for the content",
"oRM",
".",
"write",
"(",
"\"<div id=\\\"\"",
"+",
"RenderPrefixes",
".",
"Dummy",
"+",
"oControl",
".",
"getId",
"(",
")",
"+",
"\"\\\" s... | Renders either the configured content or a dummy div that will be replaced after rendering
@param {sap.ui.core.RenderManager} [oRM] The RenderManager instance
@param {sap.ui.core.Control} [oControl] The instance of the invisible control | [
"Renders",
"either",
"the",
"configured",
"content",
"or",
"a",
"dummy",
"div",
"that",
"will",
"be",
"replaced",
"after",
"rendering"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/HTMLRenderer.js#L21-L30 | |
3,860 | SAP/openui5 | lib/jsdoc/create-api-index.js | cleanTree | function cleanTree (oSymbol) {
delete oSymbol.treeName;
delete oSymbol.parent;
if (oSymbol.children) {
oSymbol.children.forEach(o => cleanTree(o));
}
} | javascript | function cleanTree (oSymbol) {
delete oSymbol.treeName;
delete oSymbol.parent;
if (oSymbol.children) {
oSymbol.children.forEach(o => cleanTree(o));
}
} | [
"function",
"cleanTree",
"(",
"oSymbol",
")",
"{",
"delete",
"oSymbol",
".",
"treeName",
";",
"delete",
"oSymbol",
".",
"parent",
";",
"if",
"(",
"oSymbol",
".",
"children",
")",
"{",
"oSymbol",
".",
"children",
".",
"forEach",
"(",
"o",
"=>",
"cleanTree... | Clean tree - keep file size down | [
"Clean",
"tree",
"-",
"keep",
"file",
"size",
"down"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/lib/jsdoc/create-api-index.js#L329-L335 |
3,861 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js | addInfixOperator | function addInfixOperator(sId, iLbp) {
// Note: this function is executed at load time only!
mFilterParserSymbols[sId] = {
lbp : iLbp,
led : function (oToken, oLeft) {
oToken.type = "Edm.Boolean"; // Note: currently we only support logical operators
oToken.precedence = iLbp;
oToken.left = oLeft;
... | javascript | function addInfixOperator(sId, iLbp) {
// Note: this function is executed at load time only!
mFilterParserSymbols[sId] = {
lbp : iLbp,
led : function (oToken, oLeft) {
oToken.type = "Edm.Boolean"; // Note: currently we only support logical operators
oToken.precedence = iLbp;
oToken.left = oLeft;
... | [
"function",
"addInfixOperator",
"(",
"sId",
",",
"iLbp",
")",
"{",
"// Note: this function is executed at load time only!",
"mFilterParserSymbols",
"[",
"sId",
"]",
"=",
"{",
"lbp",
":",
"iLbp",
",",
"led",
":",
"function",
"(",
"oToken",
",",
"oLeft",
")",
"{",... | Adds an infix operator to mFilterParserSymbols.
@param {string} sId The token ID
@param {number} iLbp The "left binding power" | [
"Adds",
"an",
"infix",
"operator",
"to",
"mFilterParserSymbols",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js#L170-L182 |
3,862 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js | addLeafSymbol | function addLeafSymbol(sId) {
// Note: this function is executed at load time only!
mFilterParserSymbols[sId] = {
lbp : 0,
nud : function (oToken) {
oToken.precedence = 99; // prevent it from being enclosed in brackets
return oToken;
}
};
} | javascript | function addLeafSymbol(sId) {
// Note: this function is executed at load time only!
mFilterParserSymbols[sId] = {
lbp : 0,
nud : function (oToken) {
oToken.precedence = 99; // prevent it from being enclosed in brackets
return oToken;
}
};
} | [
"function",
"addLeafSymbol",
"(",
"sId",
")",
"{",
"// Note: this function is executed at load time only!",
"mFilterParserSymbols",
"[",
"sId",
"]",
"=",
"{",
"lbp",
":",
"0",
",",
"nud",
":",
"function",
"(",
"oToken",
")",
"{",
"oToken",
".",
"precedence",
"="... | Adds a leaf symbol to mFilterParserSymbols.
@param {string} sId The token ID | [
"Adds",
"a",
"leaf",
"symbol",
"to",
"mFilterParserSymbols",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js#L189-L198 |
3,863 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js | brackets | function brackets() {
for (;;) {
oToken = that.advance();
if (!oToken || oToken.id === ';') {
that.expected("')'", oToken);
}
sValue += oToken.value;
if (oToken.id === ")") {
return;
}
if (oToken.id === "(") {
brackets();
}
}
} | javascript | function brackets() {
for (;;) {
oToken = that.advance();
if (!oToken || oToken.id === ';') {
that.expected("')'", oToken);
}
sValue += oToken.value;
if (oToken.id === ")") {
return;
}
if (oToken.id === "(") {
brackets();
}
}
} | [
"function",
"brackets",
"(",
")",
"{",
"for",
"(",
";",
";",
")",
"{",
"oToken",
"=",
"that",
".",
"advance",
"(",
")",
";",
"if",
"(",
"!",
"oToken",
"||",
"oToken",
".",
"id",
"===",
"';'",
")",
"{",
"that",
".",
"expected",
"(",
"\"')'\"",
"... | recursive function that advances and adds to sValue until the matching closing bracket has been consumed | [
"recursive",
"function",
"that",
"advances",
"and",
"adds",
"to",
"sValue",
"until",
"the",
"matching",
"closing",
"bracket",
"has",
"been",
"consumed"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js#L482-L496 |
3,864 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js | tokenizeDoubleQuotedString | function tokenizeDoubleQuotedString(sNext, sOption, iAt) {
var c,
sEscape,
bEscaping = false,
i;
for (i = 1; i < sNext.length; i += 1) {
if (bEscaping) {
bEscaping = false;
} else {
c = sNext[i];
if (c === "%") {
sEscape = sNext.slice(i + 1, i + 3);
if (rEscapeDigits.test(sEsca... | javascript | function tokenizeDoubleQuotedString(sNext, sOption, iAt) {
var c,
sEscape,
bEscaping = false,
i;
for (i = 1; i < sNext.length; i += 1) {
if (bEscaping) {
bEscaping = false;
} else {
c = sNext[i];
if (c === "%") {
sEscape = sNext.slice(i + 1, i + 3);
if (rEscapeDigits.test(sEsca... | [
"function",
"tokenizeDoubleQuotedString",
"(",
"sNext",
",",
"sOption",
",",
"iAt",
")",
"{",
"var",
"c",
",",
"sEscape",
",",
"bEscaping",
"=",
"false",
",",
"i",
";",
"for",
"(",
"i",
"=",
"1",
";",
"i",
"<",
"sNext",
".",
"length",
";",
"i",
"+=... | Tokenizes a c-like string. It starts and ends with a double quote, backslash is the escape
character. Both characters may be %-encoded.
@param {string} sNext The untokenized input starting with the opening quote
@param {string} sOption The option string (for an error message)
@param {number} iAt The position in the op... | [
"Tokenizes",
"a",
"c",
"-",
"like",
"string",
".",
"It",
"starts",
"and",
"ends",
"with",
"a",
"double",
"quote",
"backslash",
"is",
"the",
"escape",
"character",
".",
"Both",
"characters",
"may",
"be",
"%",
"-",
"encoded",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js#L655-L680 |
3,865 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js | tokenize | function tokenize(sOption) {
var iAt = 1, // The token's position for error messages; we count starting with 1
sId,
aMatches,
sNext = sOption,
iOffset,
oToken,
aTokens = [],
sValue;
while (sNext.length) {
aMatches = rToken.exec(sNext);
iOffset = 0;
if (aMatches) {
sValue = aMatche... | javascript | function tokenize(sOption) {
var iAt = 1, // The token's position for error messages; we count starting with 1
sId,
aMatches,
sNext = sOption,
iOffset,
oToken,
aTokens = [],
sValue;
while (sNext.length) {
aMatches = rToken.exec(sNext);
iOffset = 0;
if (aMatches) {
sValue = aMatche... | [
"function",
"tokenize",
"(",
"sOption",
")",
"{",
"var",
"iAt",
"=",
"1",
",",
"// The token's position for error messages; we count starting with 1",
"sId",
",",
"aMatches",
",",
"sNext",
"=",
"sOption",
",",
"iOffset",
",",
"oToken",
",",
"aTokens",
"=",
"[",
... | Splits the option string into an array of tokens.
@param {string} sOption The option string
@returns {object[]} The array of tokens. | [
"Splits",
"the",
"option",
"string",
"into",
"an",
"array",
"of",
"tokens",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js#L688-L748 |
3,866 | SAP/openui5 | src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/Sample.controller.js | function (sSampleId, sIframePath) {
var aIFramePathParts = sIframePath.split("/"),
i;
for (i = 0; i < aIFramePathParts.length - 1; i++) {
if (aIFramePathParts[i] == "..") {
// iframe path has parts pointing one folder up so remove last part of the sSampleId
sSampleId = sSampleId.substring... | javascript | function (sSampleId, sIframePath) {
var aIFramePathParts = sIframePath.split("/"),
i;
for (i = 0; i < aIFramePathParts.length - 1; i++) {
if (aIFramePathParts[i] == "..") {
// iframe path has parts pointing one folder up so remove last part of the sSampleId
sSampleId = sSampleId.substring... | [
"function",
"(",
"sSampleId",
",",
"sIframePath",
")",
"{",
"var",
"aIFramePathParts",
"=",
"sIframePath",
".",
"split",
"(",
"\"/\"",
")",
",",
"i",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"aIFramePathParts",
".",
"length",
"-",
"1",
";",
"i"... | Extends the sSampleId with the relative path defined in sIframePath and returns the resulting path.
@param {string} sSampleId
@param {string} sIframe
@returns {string}
@private | [
"Extends",
"the",
"sSampleId",
"with",
"the",
"relative",
"path",
"defined",
"in",
"sIframePath",
"and",
"returns",
"the",
"resulting",
"path",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/Sample.controller.js#L208-L223 | |
3,867 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js | function(oSyncPoint) {
// application cachebuster mechanism (copy of array for later modification)
var oConfig = oConfiguration.getAppCacheBuster();
if (oConfig && oConfig.length > 0) {
oConfig = oConfig.slice();
// flag to activate the cachebuster
var bActive = true;
// fallback fo... | javascript | function(oSyncPoint) {
// application cachebuster mechanism (copy of array for later modification)
var oConfig = oConfiguration.getAppCacheBuster();
if (oConfig && oConfig.length > 0) {
oConfig = oConfig.slice();
// flag to activate the cachebuster
var bActive = true;
// fallback fo... | [
"function",
"(",
"oSyncPoint",
")",
"{",
"// application cachebuster mechanism (copy of array for later modification)",
"var",
"oConfig",
"=",
"oConfiguration",
".",
"getAppCacheBuster",
"(",
")",
";",
"if",
"(",
"oConfig",
"&&",
"oConfig",
".",
"length",
">",
"0",
")... | Boots the AppCacheBuster by initializing and registering the
base URLs configured in the UI5 bootstrap.
@param {Object} [oSyncPoint] the sync point which is used to chain the execution of the AppCacheBuster
@private | [
"Boots",
"the",
"AppCacheBuster",
"by",
"initializing",
"and",
"registering",
"the",
"base",
"URLs",
"configured",
"in",
"the",
"UI5",
"bootstrap",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js#L274-L315 | |
3,868 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js | function() {
// activate the session (do not create the session for compatibility reasons with mIndex previously)
oSession.active = true;
// store the original function / property description to intercept
fnValidateProperty = ManagedObject.prototype.validateProperty;
descScriptSrc = Object.getOwnP... | javascript | function() {
// activate the session (do not create the session for compatibility reasons with mIndex previously)
oSession.active = true;
// store the original function / property description to intercept
fnValidateProperty = ManagedObject.prototype.validateProperty;
descScriptSrc = Object.getOwnP... | [
"function",
"(",
")",
"{",
"// activate the session (do not create the session for compatibility reasons with mIndex previously)",
"oSession",
".",
"active",
"=",
"true",
";",
"// store the original function / property description to intercept",
"fnValidateProperty",
"=",
"ManagedObject"... | Initializes the AppCacheBuster. Hooks into the relevant functions
in the Core to intercept the code which are dealing with URLs and
converts those URLs into cachebuster URLs.
The intercepted functions are:
<ul>
<li><code>XMLHttpRequest.prototype.open</code></li>
<li><code>HTMLScriptElement.prototype.src</code></li>
<l... | [
"Initializes",
"the",
"AppCacheBuster",
".",
"Hooks",
"into",
"the",
"relevant",
"functions",
"in",
"the",
"Core",
"to",
"intercept",
"the",
"code",
"which",
"are",
"dealing",
"with",
"URLs",
"and",
"converts",
"those",
"URLs",
"into",
"cachebuster",
"URLs",
"... | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js#L332-L425 | |
3,869 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js | function(descriptor) {
var newDescriptor = {
get: descriptor.get,
set: function(val) {
if (fnIsACBUrl(val)) {
val = fnConvertUrl(val);
}
descriptor.set.call(this, val);
},
enumerable: descriptor.enumerable,
configurable: descriptor.configurable
};
... | javascript | function(descriptor) {
var newDescriptor = {
get: descriptor.get,
set: function(val) {
if (fnIsACBUrl(val)) {
val = fnConvertUrl(val);
}
descriptor.set.call(this, val);
},
enumerable: descriptor.enumerable,
configurable: descriptor.configurable
};
... | [
"function",
"(",
"descriptor",
")",
"{",
"var",
"newDescriptor",
"=",
"{",
"get",
":",
"descriptor",
".",
"get",
",",
"set",
":",
"function",
"(",
"val",
")",
"{",
"if",
"(",
"fnIsACBUrl",
"(",
"val",
")",
")",
"{",
"val",
"=",
"fnConvertUrl",
"(",
... | create an interceptor description which validates the value of the setter whether to rewrite the URL or not | [
"create",
"an",
"interceptor",
"description",
"which",
"validates",
"the",
"value",
"of",
"the",
"setter",
"whether",
"to",
"rewrite",
"the",
"URL",
"or",
"not"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js#L389-L403 | |
3,870 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js | function() {
// remove the function interceptions
ManagedObject.prototype.validateProperty = fnValidateProperty;
// only remove xhr interception if xhr#open was not modified meanwhile
if (XMLHttpRequest.prototype.open === fnEnhancedXhrOpen) {
XMLHttpRequest.prototype.open = fnXhrOpenOrig;
}
... | javascript | function() {
// remove the function interceptions
ManagedObject.prototype.validateProperty = fnValidateProperty;
// only remove xhr interception if xhr#open was not modified meanwhile
if (XMLHttpRequest.prototype.open === fnEnhancedXhrOpen) {
XMLHttpRequest.prototype.open = fnXhrOpenOrig;
}
... | [
"function",
"(",
")",
"{",
"// remove the function interceptions",
"ManagedObject",
".",
"prototype",
".",
"validateProperty",
"=",
"fnValidateProperty",
";",
"// only remove xhr interception if xhr#open was not modified meanwhile",
"if",
"(",
"XMLHttpRequest",
".",
"prototype",
... | Terminates the AppCacheBuster and removes the hooks from the URL
specific functions. This will also clear the index which is used
to prefix matching URLs.
@private | [
"Terminates",
"the",
"AppCacheBuster",
"and",
"removes",
"the",
"hooks",
"from",
"the",
"URL",
"specific",
"functions",
".",
"This",
"will",
"also",
"clear",
"the",
"index",
"which",
"is",
"used",
"to",
"prefix",
"matching",
"URLs",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js#L434-L463 | |
3,871 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js | function(sUrl) {
// local resources are registered with "./" => we remove the leading "./"!
// (code location for this: sap/ui/Global.js:sap.ui.localResources)
// we by default normalize all relative URLs for a common base
var oUri = URI(sUrl || "./");
if (oUri.is("relative")) { //(sUrl.match(/^\.\... | javascript | function(sUrl) {
// local resources are registered with "./" => we remove the leading "./"!
// (code location for this: sap/ui/Global.js:sap.ui.localResources)
// we by default normalize all relative URLs for a common base
var oUri = URI(sUrl || "./");
if (oUri.is("relative")) { //(sUrl.match(/^\.\... | [
"function",
"(",
"sUrl",
")",
"{",
"// local resources are registered with \"./\" => we remove the leading \"./\"!",
"// (code location for this: sap/ui/Global.js:sap.ui.localResources)",
"// we by default normalize all relative URLs for a common base",
"var",
"oUri",
"=",
"URI",
"(",
"sUr... | Normalizes the given URL and make it absolute.
@param {string} sUrl any URL
@return {string} normalized URL
@public | [
"Normalizes",
"the",
"given",
"URL",
"and",
"make",
"it",
"absolute",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js#L540-L554 | |
3,872 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/Model.js | _traverseFilter | function _traverseFilter (vFilters, fnCheck) {
vFilters = vFilters || [];
if (vFilters instanceof Filter) {
vFilters = [vFilters];
}
// filter has more sub-filter instances (we ignore the subfilters below the any/all operators)
for (var i = 0; i < vFilters.length; i++) {
// check single Filter
var ... | javascript | function _traverseFilter (vFilters, fnCheck) {
vFilters = vFilters || [];
if (vFilters instanceof Filter) {
vFilters = [vFilters];
}
// filter has more sub-filter instances (we ignore the subfilters below the any/all operators)
for (var i = 0; i < vFilters.length; i++) {
// check single Filter
var ... | [
"function",
"_traverseFilter",
"(",
"vFilters",
",",
"fnCheck",
")",
"{",
"vFilters",
"=",
"vFilters",
"||",
"[",
"]",
";",
"if",
"(",
"vFilters",
"instanceof",
"Filter",
")",
"{",
"vFilters",
"=",
"[",
"vFilters",
"]",
";",
"}",
"// filter has more sub-filt... | Traverses the given filter tree.
@param {sap.ui.model.Filter[]|sap.ui.model.Filter} vFilters Array of filters or a single filter instance, which will be checked for unsupported filter operators
@param {function} fnCheck Check function which is called for each filter instance in the tree
@private | [
"Traverses",
"the",
"given",
"filter",
"tree",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/Model.js#L1030-L1049 |
3,873 | SAP/openui5 | src/sap.ui.dt/src/sap/ui/dt/util/ZIndexManager.js | function () {
//get all open popups from InstanceManager
var aAllOpenPopups = fnGetPopups();
var aValidatedPopups = [];
var aInvalidatedPopups = [];
aAllOpenPopups.forEach(function(oOpenPopup) {
// check if non-adaptable popup
var bValid = _aPopupFilters.every(function (fnFilter) {
return f... | javascript | function () {
//get all open popups from InstanceManager
var aAllOpenPopups = fnGetPopups();
var aValidatedPopups = [];
var aInvalidatedPopups = [];
aAllOpenPopups.forEach(function(oOpenPopup) {
// check if non-adaptable popup
var bValid = _aPopupFilters.every(function (fnFilter) {
return f... | [
"function",
"(",
")",
"{",
"//get all open popups from InstanceManager",
"var",
"aAllOpenPopups",
"=",
"fnGetPopups",
"(",
")",
";",
"var",
"aValidatedPopups",
"=",
"[",
"]",
";",
"var",
"aInvalidatedPopups",
"=",
"[",
"]",
";",
"aAllOpenPopups",
".",
"forEach",
... | Calculates the reliable z-index in the current window considering the global BusyIndicator dialog.
Algorithm:
1) When popups are already open on the screen:
the highest z-index of validated popups is compared with the lowest z-index of invalidated popups.
The invalidated popups also include any BusyIndicator that migh... | [
"Calculates",
"the",
"reliable",
"z",
"-",
"index",
"in",
"the",
"current",
"window",
"considering",
"the",
"global",
"BusyIndicator",
"dialog",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.dt/src/sap/ui/dt/util/ZIndexManager.js#L97-L129 | |
3,874 | SAP/openui5 | src/sap.ui.dt/src/sap/ui/dt/util/ZIndexManager.js | function (iCurrent) {
// deduct indices reserved from current z-index
var iMaxZIndex = iCurrent - Z_INDICES_RESERVED;
// initial minimum z-index
var iMinZIndex = iCurrent - Z_INDEX_STEP;
var iNextZIndex = fnGetLastZIndex(iMinZIndex, iMaxZIndex, aAssignedZIndices);
aAssignedZIndices.push(iNextZIndex);
... | javascript | function (iCurrent) {
// deduct indices reserved from current z-index
var iMaxZIndex = iCurrent - Z_INDICES_RESERVED;
// initial minimum z-index
var iMinZIndex = iCurrent - Z_INDEX_STEP;
var iNextZIndex = fnGetLastZIndex(iMinZIndex, iMaxZIndex, aAssignedZIndices);
aAssignedZIndices.push(iNextZIndex);
... | [
"function",
"(",
"iCurrent",
")",
"{",
"// deduct indices reserved from current z-index",
"var",
"iMaxZIndex",
"=",
"iCurrent",
"-",
"Z_INDICES_RESERVED",
";",
"// initial minimum z-index",
"var",
"iMinZIndex",
"=",
"iCurrent",
"-",
"Z_INDEX_STEP",
";",
"var",
"iNextZInde... | Returns the next minimum possible z-index based on the passed z-index value.
@param {int} iCurrent Current z-index value
@returns {int} The next minimum z-index value
@private | [
"Returns",
"the",
"next",
"minimum",
"possible",
"z",
"-",
"index",
"based",
"on",
"the",
"passed",
"z",
"-",
"index",
"value",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.dt/src/sap/ui/dt/util/ZIndexManager.js#L185-L193 | |
3,875 | SAP/openui5 | src/sap.ui.core/src/sap/ui/performance/trace/FESR.js | setClientDevice | function setClientDevice() {
var iClientId = 0;
if (Device.system.combi) {
iClientId = 1;
} else if (Device.system.desktop) {
iClientId = 2;
} else if (Device.system.tablet) {
iClientId = 4;
} else if (Device.system.phone) {
iClientId = 3;
}
return iClientId;
} | javascript | function setClientDevice() {
var iClientId = 0;
if (Device.system.combi) {
iClientId = 1;
} else if (Device.system.desktop) {
iClientId = 2;
} else if (Device.system.tablet) {
iClientId = 4;
} else if (Device.system.phone) {
iClientId = 3;
}
return iClientId;
} | [
"function",
"setClientDevice",
"(",
")",
"{",
"var",
"iClientId",
"=",
"0",
";",
"if",
"(",
"Device",
".",
"system",
".",
"combi",
")",
"{",
"iClientId",
"=",
"1",
";",
"}",
"else",
"if",
"(",
"Device",
".",
"system",
".",
"desktop",
")",
"{",
"iCl... | current header string | [
"current",
"header",
"string"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/trace/FESR.js#L33-L45 |
3,876 | SAP/openui5 | src/sap.ui.core/src/sap/ui/performance/trace/FESR.js | createFESR | function createFESR(oInteraction, oFESRHandle) {
return [
format(ROOT_ID, 32), // root_context_id
format(sFESRTransactionId, 32), // transaction_id
format(oInteraction.navigation, 16), // client_navigation_time
format(oInteraction.roundtrip, 16), // client_round_trip_time
format(oFESRHandle.timeToInter... | javascript | function createFESR(oInteraction, oFESRHandle) {
return [
format(ROOT_ID, 32), // root_context_id
format(sFESRTransactionId, 32), // transaction_id
format(oInteraction.navigation, 16), // client_navigation_time
format(oInteraction.roundtrip, 16), // client_round_trip_time
format(oFESRHandle.timeToInter... | [
"function",
"createFESR",
"(",
"oInteraction",
",",
"oFESRHandle",
")",
"{",
"return",
"[",
"format",
"(",
"ROOT_ID",
",",
"32",
")",
",",
"// root_context_id",
"format",
"(",
"sFESRTransactionId",
",",
"32",
")",
",",
"// transaction_id",
"format",
"(",
"oInt... | creates mandatory FESR header string | [
"creates",
"mandatory",
"FESR",
"header",
"string"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/trace/FESR.js#L109-L123 |
3,877 | SAP/openui5 | src/sap.ui.core/src/sap/ui/performance/trace/FESR.js | createFESRopt | function createFESRopt(oInteraction, oFESRHandle) {
return [
format(oFESRHandle.appNameShort, 20, true), // application_name
format(oFESRHandle.stepName, 20, true), // step_name
"", // not assigned
format(CLIENT_MODEL, 20), // client_model
format(oInteraction.bytesSent, 16), // client_data_sent
form... | javascript | function createFESRopt(oInteraction, oFESRHandle) {
return [
format(oFESRHandle.appNameShort, 20, true), // application_name
format(oFESRHandle.stepName, 20, true), // step_name
"", // not assigned
format(CLIENT_MODEL, 20), // client_model
format(oInteraction.bytesSent, 16), // client_data_sent
form... | [
"function",
"createFESRopt",
"(",
"oInteraction",
",",
"oFESRHandle",
")",
"{",
"return",
"[",
"format",
"(",
"oFESRHandle",
".",
"appNameShort",
",",
"20",
",",
"true",
")",
",",
"// application_name",
"format",
"(",
"oFESRHandle",
".",
"stepName",
",",
"20",... | creates optional FESR header string | [
"creates",
"optional",
"FESR",
"header",
"string"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/trace/FESR.js#L126-L149 |
3,878 | SAP/openui5 | src/sap.ui.core/src/sap/ui/performance/trace/FESR.js | format | function format(vField, iLength, bCutFromFront) {
if (!vField) {
vField = vField === 0 ? "0" : "";
} else if (typeof vField === "number") {
var iField = vField;
vField = Math.round(vField).toString();
// Calculation of figures may be erroneous because incomplete performance entries lead to negative
/... | javascript | function format(vField, iLength, bCutFromFront) {
if (!vField) {
vField = vField === 0 ? "0" : "";
} else if (typeof vField === "number") {
var iField = vField;
vField = Math.round(vField).toString();
// Calculation of figures may be erroneous because incomplete performance entries lead to negative
/... | [
"function",
"format",
"(",
"vField",
",",
"iLength",
",",
"bCutFromFront",
")",
"{",
"if",
"(",
"!",
"vField",
")",
"{",
"vField",
"=",
"vField",
"===",
"0",
"?",
"\"0\"",
":",
"\"\"",
";",
"}",
"else",
"if",
"(",
"typeof",
"vField",
"===",
"\"number... | format string to fesr compliant string | [
"format",
"string",
"to",
"fesr",
"compliant",
"string"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/trace/FESR.js#L152-L167 |
3,879 | SAP/openui5 | src/sap.ui.fl/src/sap/ui/fl/variants/util/VariantUtil.js | function(oComponent) {
var aTechnicalParameters = flUtils.getTechnicalParametersForComponent(oComponent);
return aTechnicalParameters
&& aTechnicalParameters[VariantUtil.variantTechnicalParameterName]
&& Array.isArray(aTechnicalParameters[VariantUtil.variantTechnicalParameterName])
&& aTechnicalParame... | javascript | function(oComponent) {
var aTechnicalParameters = flUtils.getTechnicalParametersForComponent(oComponent);
return aTechnicalParameters
&& aTechnicalParameters[VariantUtil.variantTechnicalParameterName]
&& Array.isArray(aTechnicalParameters[VariantUtil.variantTechnicalParameterName])
&& aTechnicalParame... | [
"function",
"(",
"oComponent",
")",
"{",
"var",
"aTechnicalParameters",
"=",
"flUtils",
".",
"getTechnicalParametersForComponent",
"(",
"oComponent",
")",
";",
"return",
"aTechnicalParameters",
"&&",
"aTechnicalParameters",
"[",
"VariantUtil",
".",
"variantTechnicalParame... | Returns control variant technical parameter for the passed component.
@param {object} oComponent - Component instance used to get the technical parameters
@returns {string|undefined} Returns the control variant technical parameter | [
"Returns",
"control",
"variant",
"technical",
"parameter",
"for",
"the",
"passed",
"component",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/variants/util/VariantUtil.js#L118-L124 | |
3,880 | SAP/openui5 | src/sap.ui.table/src/sap/ui/table/TablePointerExtension.js | function() {
this._ExtensionHelper = ExtensionHelper;
this._ColumnResizeHelper = ColumnResizeHelper;
this._InteractiveResizeHelper = InteractiveResizeHelper;
this._ReorderHelper = ReorderHelper;
this._ExtensionDelegate = ExtensionDelegate;
this._RowHoverHandler = RowHoverHandler;
this._KNOWNCLICKAB... | javascript | function() {
this._ExtensionHelper = ExtensionHelper;
this._ColumnResizeHelper = ColumnResizeHelper;
this._InteractiveResizeHelper = InteractiveResizeHelper;
this._ReorderHelper = ReorderHelper;
this._ExtensionDelegate = ExtensionDelegate;
this._RowHoverHandler = RowHoverHandler;
this._KNOWNCLICKAB... | [
"function",
"(",
")",
"{",
"this",
".",
"_ExtensionHelper",
"=",
"ExtensionHelper",
";",
"this",
".",
"_ColumnResizeHelper",
"=",
"ColumnResizeHelper",
";",
"this",
".",
"_InteractiveResizeHelper",
"=",
"InteractiveResizeHelper",
";",
"this",
".",
"_ReorderHelper",
... | Enables debugging for the extension. Internal helper classes become accessible.
@private | [
"Enables",
"debugging",
"for",
"the",
"extension",
".",
"Internal",
"helper",
"classes",
"become",
"accessible",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TablePointerExtension.js#L979-L987 | |
3,881 | SAP/openui5 | src/sap.ui.table/src/sap/ui/table/TablePointerExtension.js | function(iColIndex, oEvent) {
var oTable = this.getTable();
if (oTable && TableUtils.Column.isColumnMovable(oTable.getColumns()[iColIndex])) {
// Starting column drag & drop. We wait 200ms to make sure it is no click on the column to open the menu.
oTable._mTimeouts.delayedColumnReorderTimerId = setTimeou... | javascript | function(iColIndex, oEvent) {
var oTable = this.getTable();
if (oTable && TableUtils.Column.isColumnMovable(oTable.getColumns()[iColIndex])) {
// Starting column drag & drop. We wait 200ms to make sure it is no click on the column to open the menu.
oTable._mTimeouts.delayedColumnReorderTimerId = setTimeou... | [
"function",
"(",
"iColIndex",
",",
"oEvent",
")",
"{",
"var",
"oTable",
"=",
"this",
".",
"getTable",
"(",
")",
";",
"if",
"(",
"oTable",
"&&",
"TableUtils",
".",
"Column",
".",
"isColumnMovable",
"(",
"oTable",
".",
"getColumns",
"(",
")",
"[",
"iColI... | Initialize the basic event handling for column reordering and starts the reordering.
@param {int} iColIndex The index of the column to resize.
@param {jQuery.Event} oEvent The event object. | [
"Initialize",
"the",
"basic",
"event",
"handling",
"for",
"column",
"reordering",
"and",
"starts",
"the",
"reordering",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TablePointerExtension.js#L1007-L1015 | |
3,882 | SAP/openui5 | src/sap.m/src/sap/m/GrowingEnablement.js | function(oRm) {
oRm.write("<div");
oRm.addClass("sapMListUl");
oRm.addClass("sapMGrowingList");
oRm.writeAttribute("id", this._oControl.getId() + "-triggerList");
oRm.addStyle("display", "none");
oRm.writeClasses();
oRm.writeStyles();
oRm.write(">");
oRm.renderControl(this._getTrigger());
... | javascript | function(oRm) {
oRm.write("<div");
oRm.addClass("sapMListUl");
oRm.addClass("sapMGrowingList");
oRm.writeAttribute("id", this._oControl.getId() + "-triggerList");
oRm.addStyle("display", "none");
oRm.writeClasses();
oRm.writeStyles();
oRm.write(">");
oRm.renderControl(this._getTrigger());
... | [
"function",
"(",
"oRm",
")",
"{",
"oRm",
".",
"write",
"(",
"\"<div\"",
")",
";",
"oRm",
".",
"addClass",
"(",
"\"sapMListUl\"",
")",
";",
"oRm",
".",
"addClass",
"(",
"\"sapMGrowingList\"",
")",
";",
"oRm",
".",
"writeAttribute",
"(",
"\"id\"",
",",
"... | renders load more trigger | [
"renders",
"load",
"more",
"trigger"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L96-L107 | |
3,883 | SAP/openui5 | src/sap.m/src/sap/m/GrowingEnablement.js | function() {
if (!this._oControl || this._bLoading) {
return;
}
// if max item count not reached or if we do not know the count
var oBinding = this._oControl.getBinding("items");
if (oBinding && !oBinding.isLengthFinal() || this._iLimit < this._oControl.getMaxItemsCount()) {
// The GrowingEnable... | javascript | function() {
if (!this._oControl || this._bLoading) {
return;
}
// if max item count not reached or if we do not know the count
var oBinding = this._oControl.getBinding("items");
if (oBinding && !oBinding.isLengthFinal() || this._iLimit < this._oControl.getMaxItemsCount()) {
// The GrowingEnable... | [
"function",
"(",
")",
"{",
"if",
"(",
"!",
"this",
".",
"_oControl",
"||",
"this",
".",
"_bLoading",
")",
"{",
"return",
";",
"}",
"// if max item count not reached or if we do not know the count",
"var",
"oBinding",
"=",
"this",
".",
"_oControl",
".",
"getBindi... | call to request new page | [
"call",
"to",
"request",
"new",
"page"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L173-L191 | |
3,884 | SAP/openui5 | src/sap.m/src/sap/m/GrowingEnablement.js | function(sChangeReason) {
this._bLoading = false;
this._updateTriggerDelayed(false);
this._oControl.onAfterPageLoaded(this.getInfo(), sChangeReason);
// After the data has been loaded, restore the busy indicator handling of the parent control.
if (this._oControl.setEnableBusyIndicator) {
this._oCont... | javascript | function(sChangeReason) {
this._bLoading = false;
this._updateTriggerDelayed(false);
this._oControl.onAfterPageLoaded(this.getInfo(), sChangeReason);
// After the data has been loaded, restore the busy indicator handling of the parent control.
if (this._oControl.setEnableBusyIndicator) {
this._oCont... | [
"function",
"(",
"sChangeReason",
")",
"{",
"this",
".",
"_bLoading",
"=",
"false",
";",
"this",
".",
"_updateTriggerDelayed",
"(",
"false",
")",
";",
"this",
".",
"_oControl",
".",
"onAfterPageLoaded",
"(",
"this",
".",
"getInfo",
"(",
")",
",",
"sChangeR... | called after new page loaded | [
"called",
"after",
"new",
"page",
"loaded"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L200-L209 | |
3,885 | SAP/openui5 | src/sap.m/src/sap/m/GrowingEnablement.js | function() {
var sTriggerID = this._oControl.getId() + "-trigger",
sTriggerText = this._oControl.getGrowingTriggerText();
sTriggerText = sTriggerText || sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("LOAD_MORE_DATA");
this._oControl.addNavSection(sTriggerID);
if (this._oTrigger) {
thi... | javascript | function() {
var sTriggerID = this._oControl.getId() + "-trigger",
sTriggerText = this._oControl.getGrowingTriggerText();
sTriggerText = sTriggerText || sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("LOAD_MORE_DATA");
this._oControl.addNavSection(sTriggerID);
if (this._oTrigger) {
thi... | [
"function",
"(",
")",
"{",
"var",
"sTriggerID",
"=",
"this",
".",
"_oControl",
".",
"getId",
"(",
")",
"+",
"\"-trigger\"",
",",
"sTriggerText",
"=",
"this",
".",
"_oControl",
".",
"getGrowingTriggerText",
"(",
")",
";",
"sTriggerText",
"=",
"sTriggerText",
... | created and returns load more trigger | [
"created",
"and",
"returns",
"load",
"more",
"trigger"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L212-L261 | |
3,886 | SAP/openui5 | src/sap.m/src/sap/m/GrowingEnablement.js | function(oBinding) {
var aSorters = oBinding.aSorters || [];
var oSorter = aSorters[0] || {};
return (oSorter.fnGroup) ? oSorter.sPath || "" : "";
} | javascript | function(oBinding) {
var aSorters = oBinding.aSorters || [];
var oSorter = aSorters[0] || {};
return (oSorter.fnGroup) ? oSorter.sPath || "" : "";
} | [
"function",
"(",
"oBinding",
")",
"{",
"var",
"aSorters",
"=",
"oBinding",
".",
"aSorters",
"||",
"[",
"]",
";",
"var",
"oSorter",
"=",
"aSorters",
"[",
"0",
"]",
"||",
"{",
"}",
";",
"return",
"(",
"oSorter",
".",
"fnGroup",
")",
"?",
"oSorter",
"... | returns the first sorters grouping path when available | [
"returns",
"the",
"first",
"sorters",
"grouping",
"path",
"when",
"available"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L269-L273 | |
3,887 | SAP/openui5 | src/sap.m/src/sap/m/GrowingEnablement.js | function(oContext, oBindingInfo, bSuppressInvalidate) {
var oControl = this._oControl,
oBinding = oBindingInfo.binding,
oItem = this.createListItem(oContext, oBindingInfo);
if (oBinding.isGrouped()) {
// creates group header if need
var aItems = oControl.getItems(true),
oLastItem = aItems[a... | javascript | function(oContext, oBindingInfo, bSuppressInvalidate) {
var oControl = this._oControl,
oBinding = oBindingInfo.binding,
oItem = this.createListItem(oContext, oBindingInfo);
if (oBinding.isGrouped()) {
// creates group header if need
var aItems = oControl.getItems(true),
oLastItem = aItems[a... | [
"function",
"(",
"oContext",
",",
"oBindingInfo",
",",
"bSuppressInvalidate",
")",
"{",
"var",
"oControl",
"=",
"this",
".",
"_oControl",
",",
"oBinding",
"=",
"oBindingInfo",
".",
"binding",
",",
"oItem",
"=",
"this",
".",
"createListItem",
"(",
"oContext",
... | appends single list item to the list | [
"appends",
"single",
"list",
"item",
"to",
"the",
"list"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L310-L344 | |
3,888 | SAP/openui5 | src/sap.m/src/sap/m/GrowingEnablement.js | function(oContext, oBindingInfo) {
this._iRenderedDataItems++;
var oItem = oBindingInfo.factory(ManagedObjectMetadata.uid("clone"), oContext);
return oItem.setBindingContext(oContext, oBindingInfo.model);
} | javascript | function(oContext, oBindingInfo) {
this._iRenderedDataItems++;
var oItem = oBindingInfo.factory(ManagedObjectMetadata.uid("clone"), oContext);
return oItem.setBindingContext(oContext, oBindingInfo.model);
} | [
"function",
"(",
"oContext",
",",
"oBindingInfo",
")",
"{",
"this",
".",
"_iRenderedDataItems",
"++",
";",
"var",
"oItem",
"=",
"oBindingInfo",
".",
"factory",
"(",
"ManagedObjectMetadata",
".",
"uid",
"(",
"\"clone\"",
")",
",",
"oContext",
")",
";",
"retur... | creates list item from the factory | [
"creates",
"list",
"item",
"from",
"the",
"factory"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L361-L365 | |
3,889 | SAP/openui5 | src/sap.m/src/sap/m/GrowingEnablement.js | function(aContexts, oModel) {
if (!aContexts.length) {
return;
}
var aItems = this._oControl.getItems(true);
for (var i = 0, c = 0, oItem; i < aItems.length; i++) {
oItem = aItems[i];
// group headers are not in binding context
if (!oItem.isGroupHeader()) {
oItem.setBindingContext(aCo... | javascript | function(aContexts, oModel) {
if (!aContexts.length) {
return;
}
var aItems = this._oControl.getItems(true);
for (var i = 0, c = 0, oItem; i < aItems.length; i++) {
oItem = aItems[i];
// group headers are not in binding context
if (!oItem.isGroupHeader()) {
oItem.setBindingContext(aCo... | [
"function",
"(",
"aContexts",
",",
"oModel",
")",
"{",
"if",
"(",
"!",
"aContexts",
".",
"length",
")",
"{",
"return",
";",
"}",
"var",
"aItems",
"=",
"this",
".",
"_oControl",
".",
"getItems",
"(",
"true",
")",
";",
"for",
"(",
"var",
"i",
"=",
... | update context on all items except group headers | [
"update",
"context",
"on",
"all",
"items",
"except",
"group",
"headers"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L368-L382 | |
3,890 | SAP/openui5 | src/sap.m/src/sap/m/GrowingEnablement.js | function(aContexts, oBindingInfo, bSuppressInvalidate) {
for (var i = 0; i < aContexts.length; i++) {
this.addListItem(aContexts[i], oBindingInfo, bSuppressInvalidate);
}
} | javascript | function(aContexts, oBindingInfo, bSuppressInvalidate) {
for (var i = 0; i < aContexts.length; i++) {
this.addListItem(aContexts[i], oBindingInfo, bSuppressInvalidate);
}
} | [
"function",
"(",
"aContexts",
",",
"oBindingInfo",
",",
"bSuppressInvalidate",
")",
"{",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"aContexts",
".",
"length",
";",
"i",
"++",
")",
"{",
"this",
".",
"addListItem",
"(",
"aContexts",
"[",
"i",
"]... | add multiple items to the list via BindingContext | [
"add",
"multiple",
"items",
"to",
"the",
"list",
"via",
"BindingContext"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L415-L419 | |
3,891 | SAP/openui5 | src/sap.m/src/sap/m/GrowingEnablement.js | function(aContexts, oBindingInfo, bSuppressInvalidate) {
this.destroyListItems(bSuppressInvalidate);
this.addListItems(aContexts, oBindingInfo, bSuppressInvalidate);
if (bSuppressInvalidate) {
var bHasFocus = this._oContainerDomRef.contains(document.activeElement);
this.applyChunk(false);
bHasFocus... | javascript | function(aContexts, oBindingInfo, bSuppressInvalidate) {
this.destroyListItems(bSuppressInvalidate);
this.addListItems(aContexts, oBindingInfo, bSuppressInvalidate);
if (bSuppressInvalidate) {
var bHasFocus = this._oContainerDomRef.contains(document.activeElement);
this.applyChunk(false);
bHasFocus... | [
"function",
"(",
"aContexts",
",",
"oBindingInfo",
",",
"bSuppressInvalidate",
")",
"{",
"this",
".",
"destroyListItems",
"(",
"bSuppressInvalidate",
")",
";",
"this",
".",
"addListItems",
"(",
"aContexts",
",",
"oBindingInfo",
",",
"bSuppressInvalidate",
")",
";"... | destroy all the items and create from scratch | [
"destroy",
"all",
"the",
"items",
"and",
"create",
"from",
"scratch"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L422-L432 | |
3,892 | SAP/openui5 | src/sap.m/src/sap/m/GrowingEnablement.js | function(oContext, oBindingInfo, iIndex) {
var oItem = this.createListItem(oContext, oBindingInfo);
this._oControl.insertAggregation("items", oItem, iIndex, true);
this._aChunk.push(oItem);
} | javascript | function(oContext, oBindingInfo, iIndex) {
var oItem = this.createListItem(oContext, oBindingInfo);
this._oControl.insertAggregation("items", oItem, iIndex, true);
this._aChunk.push(oItem);
} | [
"function",
"(",
"oContext",
",",
"oBindingInfo",
",",
"iIndex",
")",
"{",
"var",
"oItem",
"=",
"this",
".",
"createListItem",
"(",
"oContext",
",",
"oBindingInfo",
")",
";",
"this",
".",
"_oControl",
".",
"insertAggregation",
"(",
"\"items\"",
",",
"oItem",... | inserts a single list item | [
"inserts",
"a",
"single",
"list",
"item"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L435-L439 | |
3,893 | SAP/openui5 | src/sap.m/src/sap/m/GrowingEnablement.js | function(sChangeReason) {
if (!this._bDataRequested) {
this._bDataRequested = true;
this._onBeforePageLoaded(sChangeReason);
}
// set iItemCount to initial value if not set or no items at the control yet
if (!this._iLimit || this.shouldReset(sChangeReason) || !this._oControl.getItems(true).length) ... | javascript | function(sChangeReason) {
if (!this._bDataRequested) {
this._bDataRequested = true;
this._onBeforePageLoaded(sChangeReason);
}
// set iItemCount to initial value if not set or no items at the control yet
if (!this._iLimit || this.shouldReset(sChangeReason) || !this._oControl.getItems(true).length) ... | [
"function",
"(",
"sChangeReason",
")",
"{",
"if",
"(",
"!",
"this",
".",
"_bDataRequested",
")",
"{",
"this",
".",
"_bDataRequested",
"=",
"true",
";",
"this",
".",
"_onBeforePageLoaded",
"(",
"sChangeReason",
")",
";",
"}",
"// set iItemCount to initial value i... | refresh items only for OData model. | [
"refresh",
"items",
"only",
"for",
"OData",
"model",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L450-L463 | |
3,894 | SAP/openui5 | src/sap.m/src/sap/m/GrowingEnablement.js | function(bLoading) {
var oTrigger = this._oTrigger,
oControl = this._oControl;
// If there are no visible columns then also hide the trigger.
if (!oTrigger || !oControl || !oControl.shouldRenderItems() || !oControl.getDomRef()) {
return;
}
var oBinding = oControl.getBinding("items");
if (!oB... | javascript | function(bLoading) {
var oTrigger = this._oTrigger,
oControl = this._oControl;
// If there are no visible columns then also hide the trigger.
if (!oTrigger || !oControl || !oControl.shouldRenderItems() || !oControl.getDomRef()) {
return;
}
var oBinding = oControl.getBinding("items");
if (!oB... | [
"function",
"(",
"bLoading",
")",
"{",
"var",
"oTrigger",
"=",
"this",
".",
"_oTrigger",
",",
"oControl",
"=",
"this",
".",
"_oControl",
";",
"// If there are no visible columns then also hide the trigger.",
"if",
"(",
"!",
"oTrigger",
"||",
"!",
"oControl",
"||",... | updates the trigger state | [
"updates",
"the",
"trigger",
"state"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L611-L679 | |
3,895 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/routing/Targets.js | function () {
var sTargetName;
EventProvider.prototype.destroy.apply(this);
for (sTargetName in this._mTargets) {
if (this._mTargets.hasOwnProperty(sTargetName)) {
this._mTargets[sTargetName].destroy();
}
}
this._mTargets = null;
this._oCache = null;
this._oConfig = null;
... | javascript | function () {
var sTargetName;
EventProvider.prototype.destroy.apply(this);
for (sTargetName in this._mTargets) {
if (this._mTargets.hasOwnProperty(sTargetName)) {
this._mTargets[sTargetName].destroy();
}
}
this._mTargets = null;
this._oCache = null;
this._oConfig = null;
... | [
"function",
"(",
")",
"{",
"var",
"sTargetName",
";",
"EventProvider",
".",
"prototype",
".",
"destroy",
".",
"apply",
"(",
"this",
")",
";",
"for",
"(",
"sTargetName",
"in",
"this",
".",
"_mTargets",
")",
"{",
"if",
"(",
"this",
".",
"_mTargets",
".",... | Destroys the targets instance and all created targets. Does not destroy the views instance passed to the constructor. It has to be destroyed separately.
@public
@returns { sap.ui.core.routing.Targets } this for chaining. | [
"Destroys",
"the",
"targets",
"instance",
"and",
"all",
"created",
"targets",
".",
"Does",
"not",
"destroy",
"the",
"views",
"instance",
"passed",
"to",
"the",
"constructor",
".",
"It",
"has",
"to",
"be",
"destroyed",
"separately",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/Targets.js#L347-L363 | |
3,896 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/routing/Targets.js | function (sName, oTargetOptions) {
var oOldTarget = this.getTarget(sName),
oTarget;
if (oOldTarget) {
Log.error("Target with name " + sName + " already exists", this);
} else {
oTarget = this._createTarget(sName, oTargetOptions);
this._addParentTo(oTarget);
}
return this;
} | javascript | function (sName, oTargetOptions) {
var oOldTarget = this.getTarget(sName),
oTarget;
if (oOldTarget) {
Log.error("Target with name " + sName + " already exists", this);
} else {
oTarget = this._createTarget(sName, oTargetOptions);
this._addParentTo(oTarget);
}
return this;
} | [
"function",
"(",
"sName",
",",
"oTargetOptions",
")",
"{",
"var",
"oOldTarget",
"=",
"this",
".",
"getTarget",
"(",
"sName",
")",
",",
"oTarget",
";",
"if",
"(",
"oOldTarget",
")",
"{",
"Log",
".",
"error",
"(",
"\"Target with name \"",
"+",
"sName",
"+"... | Creates a target by using the given name and options. If there's already a target with the same name exists, the existing target is kept from being overwritten and an error log will be written to the development console.
@param {string} sName the name of a target
@param {object} oTarget the options of a target. The op... | [
"Creates",
"a",
"target",
"by",
"using",
"the",
"given",
"name",
"and",
"options",
".",
"If",
"there",
"s",
"already",
"a",
"target",
"with",
"the",
"same",
"name",
"exists",
"the",
"existing",
"target",
"is",
"kept",
"from",
"being",
"overwritten",
"and",... | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/Targets.js#L427-L439 | |
3,897 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/routing/Targets.js | function (sName, oTargetOptions) {
var oTarget,
oOptions;
oOptions = jQuery.extend(true, { _name: sName }, this._oConfig, oTargetOptions);
oTarget = this._constructTarget(oOptions);
oTarget.attachDisplay(function (oEvent) {
var oParameters = oEvent.getParameters();
this.fireDisplay({
... | javascript | function (sName, oTargetOptions) {
var oTarget,
oOptions;
oOptions = jQuery.extend(true, { _name: sName }, this._oConfig, oTargetOptions);
oTarget = this._constructTarget(oOptions);
oTarget.attachDisplay(function (oEvent) {
var oParameters = oEvent.getParameters();
this.fireDisplay({
... | [
"function",
"(",
"sName",
",",
"oTargetOptions",
")",
"{",
"var",
"oTarget",
",",
"oOptions",
";",
"oOptions",
"=",
"jQuery",
".",
"extend",
"(",
"true",
",",
"{",
"_name",
":",
"sName",
"}",
",",
"this",
".",
"_oConfig",
",",
"oTargetOptions",
")",
";... | created all targets
@param {string} sName
@param {object} oTargetOptions
@return {sap.ui.core.routing.Target} The created target object
@private | [
"created",
"all",
"targets"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/Targets.js#L564-L583 | |
3,898 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Component.js | addSapParams | function addSapParams(oUri) {
['sap-client', 'sap-server'].forEach(function(sName) {
if (!oUri.hasSearch(sName)) {
var sValue = sap.ui.getCore().getConfiguration().getSAPParam(sName);
if (sValue) {
oUri.addSearch(sName, sValue);
}
}
});
} | javascript | function addSapParams(oUri) {
['sap-client', 'sap-server'].forEach(function(sName) {
if (!oUri.hasSearch(sName)) {
var sValue = sap.ui.getCore().getConfiguration().getSAPParam(sName);
if (sValue) {
oUri.addSearch(sName, sValue);
}
}
});
} | [
"function",
"addSapParams",
"(",
"oUri",
")",
"{",
"[",
"'sap-client'",
",",
"'sap-server'",
"]",
".",
"forEach",
"(",
"function",
"(",
"sName",
")",
"{",
"if",
"(",
"!",
"oUri",
".",
"hasSearch",
"(",
"sName",
")",
")",
"{",
"var",
"sValue",
"=",
"s... | Utility function which adds SAP-specific parameters to a URI instance
@param {URI} oUri URI.js instance
@private | [
"Utility",
"function",
"which",
"adds",
"SAP",
"-",
"specific",
"parameters",
"to",
"a",
"URI",
"instance"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L56-L65 |
3,899 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Component.js | mergeDefinitionSource | function mergeDefinitionSource(mDefinitions, mDefinitionSource, mSourceData, oSource) {
if (mSourceData) {
for (var sName in mDefinitions) {
if (!mDefinitionSource[sName] && mSourceData[sName] && mSourceData[sName].uri) {
mDefinitionSource[sName] = oSource;
}
}
}
} | javascript | function mergeDefinitionSource(mDefinitions, mDefinitionSource, mSourceData, oSource) {
if (mSourceData) {
for (var sName in mDefinitions) {
if (!mDefinitionSource[sName] && mSourceData[sName] && mSourceData[sName].uri) {
mDefinitionSource[sName] = oSource;
}
}
}
} | [
"function",
"mergeDefinitionSource",
"(",
"mDefinitions",
",",
"mDefinitionSource",
",",
"mSourceData",
",",
"oSource",
")",
"{",
"if",
"(",
"mSourceData",
")",
"{",
"for",
"(",
"var",
"sName",
"in",
"mDefinitions",
")",
"{",
"if",
"(",
"!",
"mDefinitionSource... | Utility function which merges a map of property definitions to track
from which "source" a property was defined.
This function is used to find out which Component has defined
which "dataSource/model".
@param {object} mDefinitions Map with definitions to check
@param {object} mDefinitionSource Object to extend with de... | [
"Utility",
"function",
"which",
"merges",
"a",
"map",
"of",
"property",
"definitions",
"to",
"track",
"from",
"which",
"source",
"a",
"property",
"was",
"defined",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L80-L88 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.