Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sapui5/sap.ui.comp

Package Overview
Dependencies
Maintainers
4
Versions
319
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sapui5/sap.ui.comp - npm Package Compare versions

Comparing version 1.76.0 to 1.77.0

src/sap/ui/comp/odata/type/NumericText.js

2

package.json
{
"name": "@sapui5/sap.ui.comp",
"version": "1.76.0",
"version": "1.77.0",
"description": "SAPUI5 Library sap.ui.comp",

@@ -5,0 +5,0 @@ "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",

@@ -1112,2 +1112,31 @@ /*

/**
* Defines the status of all fields of the <code>ValueHelpDialog</code> control as valid, deprecated or revoked. Each status has a corresponding letter. For deprecated it's ‘W’, for revoked – ‘E’ and for valid we use an empty string.
* <b>Note:</b> Values with revoked status are hidden. The only way to visualize them is to filter all values by typing the corresponding letter for revoked types – ‘E’ in the <code>DeprecationCode</code> filtering input field in the <code>ValueHelpDialog</code>.
*
* <i>Example in OData V4 notation with property <code>DeprecationCode</code> </i>
* <pre>
* &lt;Property Name=&quot;DeprecationCode&quot; Type=&quot;Edm.String&quot; MaxLength=&quot;1&quot;/&gt;
*
* &lt;Annotations Target=&quot;DeprecationCode&quot; &gt;
* &lt;Annotation Term=&quot;com.sap.vocabularies.CodeList.v1.IsConfigurationDeprecationCode&quot; Bool=&quot;true&quot;/&gt;
* &lt;/Annotations&gt;
* </pre>
*/
isConfigurationDeprecationCode: {
namespace: "com.sap.vocabularies.CodeList.v1",
annotation: "IsConfigurationDeprecationCode",
target: [
"Property"
],
defaultValue: true,
appliesTo: [
"field"
],
group: [
"Behavior"
],
since: "1.77"
},
/**
* Indicates whether the annotated <code>Property</code> is a string that is based on a fiscal date following the 'y' pattern.

@@ -1114,0 +1143,0 @@ *

@@ -363,2 +363,31 @@ /*

/**
* Defines the status of all fields of the <code>ValueHelpDialog</code> control as valid, deprecated or revoked. Each status has a corresponding letter. For deprecated it's ‘W’, for revoked – ‘E’ and for valid we use an empty string.
* <b>Note:</b> Values with revoked status are hidden. The only way to visualize them is to filter all values by typing the corresponding letter for revoked types – ‘E’ in the <code>DeprecationCode</code> filtering input field in the <code>ValueHelpDialog</code>.
*
* <i>Example in OData V4 notation with property <code>DeprecationCode</code> </i>
* <pre>
* &lt;Property Name=&quot;DeprecationCode&quot; Type=&quot;Edm.String&quot; MaxLength=&quot;1&quot;/&gt;
*
* &lt;Annotations Target=&quot;DeprecationCode&quot; &gt;
* &lt;Annotation Term=&quot;com.sap.vocabularies.CodeList.v1.IsConfigurationDeprecationCode&quot; Bool=&quot;true&quot;/&gt;
* &lt;/Annotations&gt;
* </pre>
*/
isConfigurationDeprecationCode: {
namespace: "com.sap.vocabularies.CodeList.v1",
annotation: "IsConfigurationDeprecationCode",
target: [
"Property"
],
defaultValue: true,
appliesTo: [
"field"
],
group: [
"Behavior"
],
since: "1.77"
},
/**
* A short, human-readable text suitable for the filter's name. The <code>com.sap.vocabularies.Common.v1.Label</code> annotation is

@@ -365,0 +394,0 @@ * defined on the <code>Property</code>. If the <code>com.sap.vocabularies.Common.v1.Label</code> annotation is given, it has

@@ -28,3 +28,3 @@ /*

name: "sap.ui.comp",
version: "1.76.0",
version: "1.77.0",
dependencies: [

@@ -31,0 +31,0 @@ "sap.ui.core",

@@ -10,3 +10,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -13,0 +13,0 @@ * @since 1.36.0

@@ -15,3 +15,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -18,0 +18,0 @@ * @since 1.58.0

@@ -11,3 +11,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -14,0 +14,0 @@ * @since 1.44.0

@@ -35,88 +35,88 @@ /*

var NavigationContainer = VBox.extend("sap.ui.comp.navpopover.NavigationContainer", /** @lends sap.ui.comp.navpopover.NavigationContainer.prototype */
{
metadata: {
{
metadata: {
library: "sap.ui.comp",
properties: {
library: "sap.ui.comp",
properties: {
/**
* Sets the description of the main navigation link. If <code>mainNavigation</code> also contains an href description, then
* <code>mainNavigationId</code> is displayed. If <code>mainNavigationId</code> is set to an empty string <code>''</code>,
* neither description nor subtitle are displayed.
*/
mainNavigationId: {
type: "string",
group: "Misc",
defaultValue: null
/**
* Sets the description of the main navigation link. If <code>mainNavigation</code> also contains an href description, then
* <code>mainNavigationId</code> is displayed. If <code>mainNavigationId</code> is set to an empty string <code>''</code>,
* neither description nor subtitle are displayed.
*/
mainNavigationId: {
type: "string",
group: "Misc",
defaultValue: null
},
/**
* Determines whether the personalization link is shown inside the NavigationPopover control.
*
* @since 1.46.0
*/
enableAvailableActionsPersonalization: {
type: "boolean",
defaultValue: true
}
},
aggregations: {
/**
* Determines whether the personalization link is shown inside the NavigationPopover control.
*
* @since 1.46.0
*/
enableAvailableActionsPersonalization: {
type: "boolean",
defaultValue: true
}
},
aggregations: {
/**
* A list of available actions shown as links.
*/
availableActions: {
type: "sap.ui.comp.navpopover.LinkData",
multiple: true,
singularName: "availableAction"
},
/**
* A list of available actions shown as links.
*/
availableActions: {
type: "sap.ui.comp.navpopover.LinkData",
multiple: true,
singularName: "availableAction"
/**
* The main navigation link. If <code>mainNavigationId</code> is not set then <code>text</code> of <code>mainNavigation</code>
* is displayed. Otherwise the <code>mainNavigationId</code> is displayed.
*/
mainNavigation: {
type: "sap.ui.comp.navpopover.LinkData",
multiple: false
}
},
associations: {
/**
* The main navigation link. If <code>mainNavigationId</code> is not set then <code>text</code> of <code>mainNavigation</code>
* is displayed. Otherwise the <code>mainNavigationId</code> is displayed.
*/
mainNavigation: {
type: "sap.ui.comp.navpopover.LinkData",
multiple: false
}
},
associations: {
/**
* In addition to main navigation link and available links some additional content can be displayed in the popover.
*/
extraContent: {
type: "sap.ui.core.Control",
multiple: false
},
/**
* The parent component. TODO: to be removed. Also method _convertToExternal() should be removed. The converting of links to external
* format should be done in NavigationPopoverHandler.
*/
component: {
type: "sap.ui.core.Element",
multiple: false
}
},
events: {
/**
* In addition to main navigation link and available links some additional content can be displayed in the popover.
*/
extraContent: {
type: "sap.ui.core.Control",
multiple: false
},
/**
* The parent component. TODO: to be removed. Also method _convertToExternal() should be removed. The converting of links to external
* format should be done in NavigationPopoverHandler.
*/
component: {
type: "sap.ui.core.Element",
multiple: false
/**
* This event is fired when a link is chosen.
*/
navigate: {},
/**
* This event is fired before selection popover is opened.
*/
beforePopoverOpen: {},
/**
* This event is fired after selection popover is closed.
*/
afterPopoverClose: {}
}
},
events: {
/**
* This event is fired when a link is chosen.
*/
navigate: {},
/**
* This event is fired before selection popover is opened.
*/
beforePopoverOpen: {},
/**
* This event is fired after selection popover is closed.
*/
afterPopoverClose: {}
renderer: {
apiVersion: 2
}
},
renderer: {
apiVersion: 2
}
});
});

@@ -181,4 +181,4 @@ NavigationContainer.prototype.init = function() {

// We have to wait until all changes have been applied to the NavigationContainer
return this._getFlexRuntimeInfoAPI().then(function (FlexRuntimeInfoAPI) {
return FlexRuntimeInfoAPI.waitForChanges({element: this}).then(function() {
return this._getFlexRuntimeInfoAPI().then(function(FlexRuntimeInfoAPI) {
return FlexRuntimeInfoAPI.waitForChanges({ element: this }).then(function() {
return new Promise(function(resolve) {

@@ -645,2 +645,25 @@ var oModel = this._getInternalModel();

/**
* Returns the corresponding SmartLink of the NavigationContainer
*
* @private
* @returns {Object | undefined} oSmartLink
*/
NavigationContainer.prototype._getSmartLink = function() {
var oSmartLink;
var oParent = this.getParent();
while (oParent) {
if (oParent.getMetadata().getName() !== "sap.ui.comp.navpopover.SmartLink") {
oParent = oParent.getParent();
} else {
oSmartLink = oParent;
break;
}
}
return oSmartLink;
};
/**
* EventHandler for all link press on this popover

@@ -652,2 +675,8 @@ *

NavigationContainer.prototype._onLinkPress = function(oEvent) {
var oSmartLink = this._getSmartLink();
if (oSmartLink
&& oSmartLink.getBeforeNavigationCallback()
&& oEvent.getParameter("target") !== "_blank") {
oEvent.preventDefault();
}
this.fireNavigate({

@@ -654,0 +683,0 @@ text: oEvent.getSource().getText(),

@@ -529,3 +529,3 @@ /*

// this._updateEnabled();
this._updateEnabled();
return this;

@@ -532,0 +532,0 @@ };

@@ -10,3 +10,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -13,0 +13,0 @@ * @since 1.25.0

@@ -29,3 +29,3 @@ /*

* @param {string} oFormatOptions.calendarType format options.
* @version 1.76.0
* @version 1.77.0
* @experimental This module is only for internal/experimental use!

@@ -74,6 +74,6 @@ * @private

if (this.oFormatOptions.format.length > 4) {
sPattern = sPattern.replace(/y/i, this.oFormatOptions.format.slice(0, this.oFormatOptions.format.lastIndexOf("Y") + 1));
sPattern = sPattern.replace(/m/i, this.oFormatOptions.format.slice(this.oFormatOptions.format.lastIndexOf("Y") + 1));
sPattern = sPattern.replace(/y+/i, this.oFormatOptions.format.slice(0, this.oFormatOptions.format.lastIndexOf("Y") + 1));
sPattern = sPattern.replace(/m+/i, this.oFormatOptions.format.slice(this.oFormatOptions.format.lastIndexOf("Y") + 1));
} else if (this.oFormatOptions.format === "PPP") {
sPattern = sPattern.replace(/l/i, "PPP");
sPattern = sPattern.replace(/l+/i, "PPP");
}

@@ -80,0 +80,0 @@

@@ -16,3 +16,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -19,0 +19,0 @@ * @experimental This module is only for internal/experimental use!

@@ -10,4 +10,36 @@ /*

sap.ui.define([
'sap/ui/model/odata/type/Boolean', 'sap/ui/model/odata/type/Byte', 'sap/ui/model/odata/type/DateTime', 'sap/ui/model/odata/type/DateTimeOffset', 'sap/ui/model/odata/type/Decimal', 'sap/ui/model/odata/type/Double', 'sap/ui/model/odata/type/Single', 'sap/ui/model/odata/type/Guid', 'sap/ui/model/odata/type/Int16', 'sap/ui/model/odata/type/Int32', 'sap/ui/model/odata/type/Int64', 'sap/ui/model/odata/type/SByte', 'sap/ui/model/odata/type/String', 'sap/ui/model/odata/type/Time', 'sap/ui/comp/odata/type/StringDate', 'sap/ui/comp/odata/type/FiscalDate'
], function(Boolean, Byte, DateTime, DateTimeOffset, Decimal, Double, Single, Guid, Int16, Int32, Int64, SByte, String, Time, StringDate, FiscalDate) {
'sap/ui/model/odata/type/Boolean',
'sap/ui/model/odata/type/Byte',
'sap/ui/model/odata/type/DateTime',
'sap/ui/model/odata/type/DateTimeOffset',
'sap/ui/model/odata/type/Decimal',
'sap/ui/model/odata/type/Double',
'sap/ui/model/odata/type/Single',
'sap/ui/model/odata/type/Guid',
'sap/ui/model/odata/type/Int16',
'sap/ui/model/odata/type/Int32',
'sap/ui/model/odata/type/Int64',
'sap/ui/model/odata/type/SByte',
'sap/ui/model/odata/type/String',
'sap/ui/model/odata/type/Time',
'sap/ui/comp/odata/type/StringDate',
'sap/ui/comp/odata/type/FiscalDate',
'sap/ui/comp/odata/type/NumericText'
], function(Boolean,
Byte,
DateTime,
DateTimeOffset,
Decimal,
Double,
Single,
Guid,
Int16,
Int32,
Int64,
SByte,
String,
Time,
StringDate,
FiscalDate,
NumericText) {
"use strict";

@@ -103,2 +135,6 @@

}
if (oConstraints.isDigitSequence) {
return new NumericText(oFormatOptions, oConstraints);
}
}

@@ -105,0 +141,0 @@

@@ -17,3 +17,3 @@ /*

* @experimental to be productized soon
* @version 1.76.0
* @version 1.77.0
* @since 1.31.0

@@ -20,0 +20,0 @@ * @alias sap.ui.comp.odata.SideEffects

@@ -21,3 +21,3 @@ /*

* @param {object} oConstraints constraints.
* @version 1.76.0
* @version 1.77.0
* @experimental

@@ -24,0 +24,0 @@ * @private

@@ -26,3 +26,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @experimental

@@ -29,0 +29,0 @@ * @since 1.54.0

@@ -19,3 +19,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @constructor

@@ -22,0 +22,0 @@ * @experimental This module is only for internal/experimental use!

@@ -29,3 +29,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -32,0 +32,0 @@ * @since 1.26.0

@@ -30,3 +30,3 @@ /* eslint-disable strict */

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @constructor

@@ -33,0 +33,0 @@ * @experimental This module is only for internal/experimental use!

@@ -20,3 +20,3 @@ /* eslint-disable strict */

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -23,0 +23,0 @@ * @since 1.34.0

@@ -16,3 +16,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -19,0 +19,0 @@ * @since 1.34.0

@@ -10,3 +10,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -13,0 +13,0 @@ * @since 1.25.0

@@ -10,3 +10,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -13,0 +13,0 @@ * @since 1.48.0

@@ -219,3 +219,2 @@ /*

this.bInitialised = true;
this._setupRecommendations();

@@ -308,2 +307,5 @@ if (this._fBaseValueListProviderResolve) {

}
if (oAnnotation.deprеcationCodeField) {
this.aSelect.push(oAnnotation.deprеcationCodeField);
}
} else {

@@ -772,5 +774,2 @@ if (!this.sKey) {

BaseValueListProvider.prototype._setupRecommendations = function () {
};
BaseValueListProvider.prototype._getUpdatedDataModelRows = function (aDataModelRow) {

@@ -777,0 +776,0 @@ var aCurrentTokens = this.oControl.getTokens(), aCurrentKeys = [];

@@ -29,3 +29,6 @@ /*

'sap/base/util/merge',
'sap/ui/model/Filter',
'sap/ui/model/FilterOperator',
'sap/base/strings/capitalize'
], function(

@@ -50,3 +53,5 @@ jQuery,

Sorter,
merge
merge,
Filter,
FilterOperator
) {

@@ -61,2 +66,29 @@ "use strict";

/**
* The deprecation code annotation values supported by the <code>ValueHelpDialog</code> control.
*
* @enum {string}
* @private
*/
var ValueHelpDeprecationCode = {
/**
* The letter for Deprecated values.
*
* @private
*/
DeprecatedCode: "W",
/**
* The letter for Revoked values.
*
* @private
*/
RevokedCode: "E",
/**
* The Valid values are presented by empty string.
*
* @private
*/
ValidCode: ""
};
// shortcut for sap.m.ListMode

@@ -566,4 +598,11 @@ var ListMode = mLibrary.ListMode;

ValueHelpProvider.prototype._rebindTable = function() {
var aFilters, mParameters, mBindingParams;
var aFilters, mParameters, mBindingParams, sDeprecationCodeFieldName;
aFilters = this.oSmartFilterBar.getFilters();
sDeprecationCodeFieldName = this.oPrimaryValueListAnnotation.deprеcationCodeField;
if (sDeprecationCodeFieldName){
if ((aFilters.length === 0) || (aFilters.length > 0 && !this._checkForExistingRevokedFilters(aFilters[0], sDeprecationCodeFieldName))) {
aFilters.push(new Filter(sDeprecationCodeFieldName, FilterOperator.NE, ValueHelpDeprecationCode.RevokedCode));
}
}
mParameters = this.oSmartFilterBar.getParameters() || {};

@@ -630,3 +669,2 @@ if (this.aSelect && this.aSelect.length) {

} else {
//create the sorter based on the current sorted columns

@@ -652,3 +690,2 @@ var aColumns = oTable.getColumns();

}
oTable.bindRows(mBindingParams);

@@ -659,3 +696,26 @@ }

/**
* Called to check are there filters based on revoked values from deprecation code annotation
* @param {object} mBindingParams - the data of the control which needs to be checked for filters
* @private
*/
ValueHelpProvider.prototype._checkForExistingRevokedFilters = function(mBindingParamsFilters, sDeprecationCodeFieldName) {
var bExistingRevokedFilters = false;
if (mBindingParamsFilters.sPath === sDeprecationCodeFieldName && mBindingParamsFilters.sOperator === ValueHelpRangeOperation.EQ && mBindingParamsFilters.oValue1 === ValueHelpDeprecationCode.RevokedCode) {
bExistingRevokedFilters = true;
} else if (Array.isArray(mBindingParamsFilters.aFilters)) {
for (var index = 0; index < mBindingParamsFilters.aFilters.length; index++) {
bExistingRevokedFilters = this._checkForExistingRevokedFilters(mBindingParamsFilters.aFilters[index], sDeprecationCodeFieldName);
if (bExistingRevokedFilters) {
break;
}
}
}
return bExistingRevokedFilters;
};
/**
* Called when the reset button was clicked in the SmartFilter

@@ -662,0 +722,0 @@ * @private

@@ -10,4 +10,4 @@ /*

sap.ui.define([
'sap/ui/core/library', 'sap/ui/comp/library', 'sap/m/library', 'sap/ui/comp/odata/MetadataAnalyser', 'sap/ui/core/SeparatorItem', 'sap/m/GroupHeaderListItem', 'sap/m/Column', 'sap/m/ColumnListItem', 'sap/m/Text', 'sap/m/Token', './BaseValueListProvider', 'sap/ui/core/ListItem', 'sap/ui/model/Filter', 'sap/ui/model/Sorter', 'sap/ui/model/json/JSONModel', 'sap/ui/model/FilterOperator', 'sap/ui/comp/util/FormatUtil', 'sap/ui/comp/smartfilterbar/FilterProvider', 'sap/ui/Device', 'sap/base/Log'
], function(coreLibrary, library, mLibrary, MetadataAnalyser, SeparatorItem, GroupHeaderListItem, Column, ColumnListItem, Text, Token, BaseValueListProvider, ListItem, Filter, Sorter, JSONModel, FilterOperator, FormatUtil, FilterProvider, Device, Log) {
'sap/ui/core/library', 'sap/ui/comp/library', 'sap/m/library', 'sap/ui/comp/odata/MetadataAnalyser', 'sap/ui/core/SeparatorItem', 'sap/m/GroupHeaderListItem', 'sap/m/Column', 'sap/m/ColumnListItem', 'sap/m/Text', 'sap/m/Token', './BaseValueListProvider', 'sap/ui/core/ListItem', 'sap/ui/model/Filter', 'sap/ui/model/Sorter', 'sap/ui/model/json/JSONModel', 'sap/ui/model/FilterOperator', 'sap/ui/comp/util/FormatUtil', 'sap/ui/comp/smartfilterbar/FilterProvider', 'sap/ui/comp/providers/HistoryValuesProvider', 'sap/ui/Device', 'sap/base/Log'
], function(coreLibrary, library, mLibrary, MetadataAnalyser, SeparatorItem, GroupHeaderListItem, Column, ColumnListItem, Text, Token, BaseValueListProvider, ListItem, Filter, Sorter, JSONModel, FilterOperator, FormatUtil, FilterProvider, HistoryValuesProvider, Device, Log) {
"use strict";

@@ -62,5 +62,7 @@

this.sContext = mParams.context;
this._bRecommendationListEnabled = mParams.recommendationListEnabled;
}
this._aRecommendations = [];
this._oRecommendationListPromise = Promise.resolve();
this._oHistoryDataPromise = Promise.resolve();
this._oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.comp");

@@ -71,3 +73,2 @@ this._groupHeaderFactory = this._groupHeaderFactory.bind(this);

this._onInitialise();
}

@@ -143,2 +144,6 @@ });

}
this.oControl.setModel(new JSONModel(), SUGGESTIONS_MODEL_NAME);
this._setupHistoryValues();
this._setupRecommendations();
};

@@ -176,2 +181,9 @@

ValueListProvider.prototype._onAnnotationLoad = function (mValueList) {
BaseValueListProvider.prototype._onAnnotationLoad.call(this, mValueList);
this._bindInnerControlSuggestions();
this._setupSuggestionInteractions();
};
ValueListProvider.prototype._isSortable = function(sName) {

@@ -570,12 +582,5 @@ if (this.oPrimaryValueListAnnotation) {

ValueListProvider.prototype._fetchData = function (sSearchText) {
if (this._shouldHaveRecommendations()) {
this._fetchSuggestionsAndRecommendations(sSearchText);
} else {
this._fetchDataSuggestionsOnly(sSearchText);
}
};
/**
* Bind the control to internally read the data (ODataModel takes care of this) from backend with optional search text to filter data
* This method requests data from all data sets (suggestion and recommendations and history values),
* than combine only the unique once and set them to a custom JSON model to which inner control is binded.
*

@@ -585,100 +590,9 @@ * @param {object} sSearchText - the optional search text

*/
ValueListProvider.prototype._fetchDataSuggestionsOnly = function(sSearchText) {
var mParams = {}, aFilters = [], length, oEvents;
if (this.bTypeAheadEnabled) {
// Convert search text to UpperCase if displayFormat = "UpperCase"
if (sSearchText && this.sDisplayFormat === "UpperCase") {
sSearchText = sSearchText.toUpperCase();
}
if (this.bSupportBasicSearch) {
mParams["custom"] = {
"search-focus": this.sKey,
"search": sSearchText
};
}
this._calculateFilterInputData();
if (this.mFilterInputData && this.aFilterField) {
aFilters = FilterProvider.generateFilters(this.aFilterField, this.mFilterInputData, {
dateSettings: this._oDateFormatSettings
});
}
// If SearchSupported = false; create a $filter for the keyfield with a StartsWith operator for the typed in/search text
if (!this.bSupportBasicSearch) {
if (this._sType === "numc") {
aFilters.push(new Filter(this.sKey, FilterOperator.Contains, sSearchText));
} else
if (this._truncateSearchText(sSearchText) === sSearchText) {
aFilters.push(new Filter(this.sKey, FilterOperator.StartsWith, sSearchText));
} else {
this.oControl.closeSuggestions();
return;
}
}
// Restrict to 10 records for type Ahead
length = 10;
if (this.bEnableShowTableSuggestionValueHelp) {
// Hide the Show All Items button if the number if items is less than the length (restriction)
oEvents = {
dataReceived: function(oEvent) {
var oBinding = oEvent.getSource(), iBindingLength;
if (oBinding) {
iBindingLength = oBinding.getLength();
if (iBindingLength && iBindingLength <= length) {
this.oControl.setShowTableSuggestionValueHelp(false);
} else {
this.oControl.setShowTableSuggestionValueHelp(true);
}
}
}.bind(this)
};
} else {
// Hide the Show All Items as per configuration
this.oControl.setShowTableSuggestionValueHelp(false);
}
}
if (this.aSelect && this.aSelect.length) {
mParams["select"] = this.aSelect.toString();
}
if (!this.sValueListEntitySetName) {
Log.error("ValueListProvider", "Empty sValueListEntitySetName for " + this.sAggregationName + " binding! (missing primaryValueListAnnotation)");
}
if (this.sDeferredGroupId) {
// notice according to documentation, of sap.ui.model.odata.v2.ODataListBinding, it really is called "batchGroupId" and not "groupId"
mParams["batchGroupId"] = this.sDeferredGroupId;
}
// Bind the specified aggregation with valueList path in the model
this.oControl.bindAggregation(this.sAggregationName, {
path: "/" + this.sValueListEntitySetName,
length: length,
parameters: mParams,
filters: aFilters,
sorter: this._oSorter,
events: oEvents,
template: this._oTemplate,
templateShareable: false
});
};
/**
* This method requests data from all data sets (suggestion and recommendations), than combine only the unique once
* and set them to a custom JSON model to which inner control is binded.
*
* @param {object} sSearchText - the optional search text
* @private
*/
ValueListProvider.prototype._fetchSuggestionsAndRecommendations = function (sSearchText) {
ValueListProvider.prototype._fetchData = function (sSearchText) {
var mParams = {},
aFilters = [],
length = 100,
length = this._getBindingLength(),
sSearchTextTruncated = "",
oValueListPromise;
this.oControl.getModel(this._getSuggestionsModelName()).setData([]);
sSearchText = sSearchText || "";

@@ -746,3 +660,3 @@ if (this.bTypeAheadEnabled) {

filters: aFilters,
sorter: that._oSorter,
sorters: that._oSorter && [that._oSorter],
success: function (oData) {

@@ -757,11 +671,40 @@ resolve(oData);

Promise.all([this._oRecommendationListPromise, oValueListPromise]).then(function (aResult) {
var aSuggestions = that._addSuggestionsToGroup(aResult[1].results),
aData = [].concat(that._aRecommendations).concat(aSuggestions),
sModelName = that._getSuggestionsModelName();
Promise.all([oValueListPromise, this._oRecommendationListPromise, this._oHistoryDataPromise]).then(function (aResults) {
var aData = [],
aSuggestions = [],
aRecommendations = [],
aHistoryData = [],
sModelName = that._getSuggestionsModelName(),
oControl = that.oControl,
oModel = oControl.getModel(sModelName),
aSelectedKeys = [];
if (Array.isArray(aResults[0] && aResults[0].results)) {
aSuggestions = that._addSuggestionsToGroup(aResults[0].results, HEADER_GROUPS.Others);
}
if (Array.isArray(aResults[1] && aResults[1].results)) {
aRecommendations = that._addSuggestionsToGroup(aResults[1].results, HEADER_GROUPS.Recommendations);
}
if (that._shouldHaveHistory()) {
aHistoryData = that._getHistoryProvider().getFieldData(that._fieldViewMetadata.fullName);
aHistoryData = that._addSuggestionsToGroup(aHistoryData, HEADER_GROUPS.RecentlyUsed);
}
aData = aData.concat(aRecommendations).concat(aSuggestions);
aData = that._getDistinctSuggestions(aData);
aData = aData.concat(aHistoryData);
that._showSuggestionsMoreButton(aSuggestions.length >= length);
that.oControl.getModel(sModelName).setData(aData);
// TODO: this will not be needed when MultiComboBox do not clear selected tokens on model update
if (oControl.getSelectedKeys) {
aSelectedKeys = oControl.getSelectedKeys();
}
that._bindInnerControlSuggestions();
oModel.setData(aData);
if (oControl.setSelectedKeys) {
oControl.setSelectedKeys(aSelectedKeys);
}
});

@@ -792,15 +735,3 @@ };

ValueListProvider.prototype._addRecommendationsToGroup = function (aRecommendations) {
if (!aRecommendations) {
return [];
}
return aRecommendations.map(function (oRecommendation) {
oRecommendation[SUGGESTIONS_GROUP_PROPERTY_NAME] = HEADER_GROUPS.Recommendations;
return oRecommendation;
});
};
ValueListProvider.prototype._addSuggestionsToGroup = function (aSuggestions) {
ValueListProvider.prototype._addSuggestionsToGroup = function (aSuggestions, iGroupIndex) {
if (!aSuggestions) {

@@ -810,6 +741,7 @@ return [];

return aSuggestions.map(function (oRecommendation) {
oRecommendation[SUGGESTIONS_GROUP_PROPERTY_NAME] = HEADER_GROUPS.Others;
return aSuggestions.map(function (oSuggestion) {
var oGroupObject = {};
oGroupObject[SUGGESTIONS_GROUP_PROPERTY_NAME] = iGroupIndex;
return oRecommendation;
return Object.assign({}, oSuggestion, oGroupObject);
});

@@ -833,9 +765,10 @@ };

ValueListProvider.prototype._getGroupHeaderTitle = function (sGroupKey) {
var sGroupTitle = this._oResourceBundle.getText("VALUELIST_OTHERS_TITLE");
if (sGroupKey === HEADER_GROUPS.Recommendations) {
sGroupTitle = this._oResourceBundle.getText("VALUELIST_RECOMMENDATIONS_TITLE");
switch (sGroupKey) {
case HEADER_GROUPS.Recommendations:
return this._oResourceBundle.getText("VALUELIST_RECOMMENDATIONS_TITLE");
case HEADER_GROUPS.RecentlyUsed:
return this._oResourceBundle.getText("VALUELIST_RECENTLY_USED_TITLE");
default:
return this._oResourceBundle.getText("VALUELIST_OTHERS_TITLE");
}
return sGroupTitle;
};

@@ -900,25 +833,11 @@

ValueListProvider.prototype._setupRecommendations = function () {
if (this._shouldHaveRecommendations()) {
this.oControl.setModel(new JSONModel(), SUGGESTIONS_MODEL_NAME);
if (!this._shouldHaveRecommendations()) {
return;
}
this._resolveRecommendationListAnnotationData(this._getRecommendationListAnnotation());
this._fetchRecommendations();
if (this.sAggregationName && this.sAggregationName === "suggestionRows") {
this._createSuggestionTemplate();
this._setupInputRecommendationInteractions();
} else {
this._createDropDownTemplate();
this._setupComboBoxRecommendationInteractions();
}
this._bindInnerControlForRecommendations();
}
this._resolveRecommendationListAnnotationData(this._getRecommendationListAnnotation());
this._fetchRecommendations();
};
ValueListProvider.prototype._shouldHaveRecommendations = function () {
return this._bRecommendationListEnabled && this._hasRecommendationListAnnotation();
};
ValueListProvider.prototype._hasRecommendationListAnnotation = function () {
return MetadataAnalyser.isRecommendationList(this._fieldViewMetadata);

@@ -949,6 +868,15 @@ };

success: function (aData) {
var aRecommendations = that._addRecommendationsToGroup(aData.results);
var aRecommendations = that._addSuggestionsToGroup(aData.results, HEADER_GROUPS.Recommendations),
sModelName = that._getSuggestionsModelName(),
oModel = that.oControl.getModel(sModelName),
aCurrentData = oModel.getData(),
aDataToSet = aRecommendations.sort(that._sortRecommendations.bind(that));
that._aRecommendations = aRecommendations.sort(that._sortRecommendations.bind(that));
that.oControl.getModel(that._getSuggestionsModelName()).setData(aRecommendations);
that._aRecommendations = aDataToSet;
if (Array.isArray(aCurrentData)) {
aDataToSet = [].concat(aCurrentData).concat(aDataToSet);
}
oModel.setData(aDataToSet);
that._showSuggestionsMoreButton(false);

@@ -964,14 +892,113 @@ resolve(aData);

ValueListProvider.prototype._bindInnerControlForRecommendations = function () {
// Bind the specified aggregation with valueList path in the model
this.oControl.bindAggregation(this.sAggregationName, {
ValueListProvider.prototype._getHistoryProvider = function () {
return HistoryValuesProvider.getInstance();
};
ValueListProvider.prototype._setupHistoryValues = function () {
if (!this._shouldHaveHistory()) {
return;
}
var oHistoryProvider = this._getHistoryProvider();
oHistoryProvider.registerControl(this.oControl, this._fieldViewMetadata.fullName);
oHistoryProvider.attachEvent("fieldUpdated", function (oEvent) {
if (this._fieldViewMetadata.fullName !== oEvent.getParameter("fieldName")) {
return;
}
var aData = oEvent.getParameter("fieldData") || [];
this._updateModelHistoryData(aData);
if (this.oControl && this.oControl._oSuggestionPopover && this.oControl._oSuggestionPopover._oPopover && this.oControl._oSuggestionPopover._oPopover.close) {
this.oControl._oSuggestionPopover._oPopover.close();
}
}.bind(this));
this._oHistoryDataPromise = oHistoryProvider.isDataReady().then(function (oData) {
var aData = oData[this._fieldViewMetadata.fullName] || [];
this._updateModelHistoryData(aData);
return aData;
}.bind(this));
};
ValueListProvider.prototype._updateModelHistoryData = function (aData) {
var aDataToSet = [],
aRecentlyUsed = this._addSuggestionsToGroup(aData, HEADER_GROUPS.RecentlyUsed),
sModelName = this._getSuggestionsModelName(),
oModel = this.oControl.getModel(sModelName),
oOldData = oModel.getData();
if (Array.isArray(oOldData)) {
oOldData = oOldData.filter(function (oField) {
return oField[SUGGESTIONS_GROUP_PROPERTY_NAME] !== HEADER_GROUPS.RecentlyUsed;
});
} else {
oOldData = [];
}
aDataToSet = aDataToSet.concat(oOldData).concat(aRecentlyUsed);
oModel.setData(aDataToSet);
this._showSuggestionsMoreButton(false);
};
ValueListProvider.prototype._shouldHaveHistory = function () {
var oShellConfig = window["sap-ushell-config"],
oShellAppsConfig,
oInputFieldHistory,
bEnabled;
if (oShellConfig) {
oShellAppsConfig = oShellConfig.apps;
}
if (oShellAppsConfig) {
oInputFieldHistory = oShellAppsConfig.inputFieldHistory;
}
if (oInputFieldHistory) {
bEnabled = oInputFieldHistory.enabled;
}
return sap.ushell && sap.ushell.Container && bEnabled && !MetadataAnalyser.isPotentiallySensitive(this._fieldViewMetadata);
};
ValueListProvider.prototype._bindInnerControlSuggestions = function () {
if (this.sAggregationName && this.sAggregationName === "suggestionRows") {
this._createSuggestionTemplate();
} else {
this._createDropDownTemplate();
}
var oBindingParams = {
path: this._getSuggestionsModelName() + ">/" ,
groupHeaderFactory: this._groupHeaderFactory,
sorter: this._getGroupHeaderSorter(),
template: this._oTemplate,
templateShareable: false
});
templateShareable: false,
length: this._getBindingLength()
};
if (this._shouldHaveRecommendations() || this._shouldHaveHistory()) {
oBindingParams.groupHeaderFactory = this._groupHeaderFactory;
oBindingParams.sorter = this._getGroupHeaderSorter();
}
if (this.sAggregationName) {
// Bind the specified aggregation with valueList path in the model
this.oControl.bindAggregation(this.sAggregationName, oBindingParams);
}
};
ValueListProvider.prototype._setupInputRecommendationInteractions = function () {
ValueListProvider.prototype._setupSuggestionInteractions = function () {
if (this._shouldHaveRecommendations() || this._shouldHaveHistory()) {
if (this.sAggregationName === "suggestionRows") {
this._setupInputSuggestionInteractions();
return;
}
this._setupComboBoxSuggestionInteractions();
}
};
ValueListProvider.prototype._setupInputSuggestionInteractions = function () {
var oInput = this.oControl;

@@ -982,11 +1009,27 @@

var sModelName = this._getSuggestionsModelName(),
sObjKey = oItem.getBindingContext(sModelName).getObject()[this.sKey].toLowerCase();
sObjKey = oItem.getBindingContext(sModelName).getObject()[this.sKey];
return sObjKey.indexOf(sValue.toLowerCase()) !== -1;
return sObjKey.toLowerCase().indexOf(sValue.toLowerCase()) !== -1;
}.bind(this));
// Handles the state of the Input while input
oInput.attachLiveChange(function(oEvent) {
var sValue = oEvent.getParameter("value"),
aAllowedGroups = [HEADER_GROUPS.RecentlyUsed, HEADER_GROUPS.Recommendations];
if (sValue === "") {
this.oControl._oSuggPopover._oPopover.close();
this._showInitialSuggestions(aAllowedGroups);
}
}, this);
oInput.addEventDelegate({
onfocusin: function () {
var aAlowedGroups = [HEADER_GROUPS.RecentlyUsed, HEADER_GROUPS.Recommendations],
aAllowedHistory = [HEADER_GROUPS.RecentlyUsed];
if (this._isNotRecommendationItemSelected("suggestionRows", oInput.getValue())) {
this._showRecommendations();
this._showInitialSuggestions(aAlowedGroups);
} else if (this._shouldHaveHistory()) {
this._showInitialSuggestions(aAllowedHistory);
}

@@ -996,2 +1039,7 @@ }

if (oInput.isA("sap.m.MultiInput") || !this._shouldHaveRecommendations()) {
// Skip Value state setting
return;
}
// Handles the state of the Input after suggestion item selection

@@ -1014,19 +1062,5 @@ oInput.attachSuggestionItemSelected(function (oEvent) {

}, this);
// Handles the state of the Input while input
oInput.attachLiveChange(function(oEvent) {
var sValue = oEvent.getParameter("value");
if (this._isNotRecommendationItemSelected("suggestionRows", sValue)) {
this._setControlValueState(ValueState.Warning);
}
if (sValue === "") {
this.oControl._oSuggPopover._oPopover.close();
this._showRecommendations();
}
}, this);
};
ValueListProvider.prototype._setupComboBoxRecommendationInteractions = function () {
ValueListProvider.prototype._setupComboBoxSuggestionInteractions = function () {
var oComboBox = this.oControl;

@@ -1043,3 +1077,3 @@

// ensures that the click happened over the input field.
oComboBox._isTargetControlInputField = !oTargetControl.isA(oComboBox.getMetadata().getName());
oComboBox._isTargetControlInputField = !(oTargetControl.isA("sap.m.ComboBox") || oTargetControl.isA("sap.m.MultiComboBox"));
oComboBox._isTargetControlIcon = oTargetControl.isA("sap.ui.core.Icon");

@@ -1062,4 +1096,9 @@ oComboBox._isMouseDown = true;

var aAlowedGroups = [HEADER_GROUPS.RecentlyUsed, HEADER_GROUPS.Recommendations],
aAllowedHistory = [HEADER_GROUPS.RecentlyUsed];
if (this._isNotRecommendationItemSelected("items", oComboBox.getValue())) {
this._showRecommendations();
this._showInitialSuggestions(aAlowedGroups);
} else if (this._shouldHaveHistory()) {
this._showInitialSuggestions(aAllowedHistory);
}

@@ -1069,2 +1108,6 @@ }

if (oComboBox.isA("sap.m.MultiComboBox") || !this._shouldHaveRecommendations()) {
// Skip Value state setting
return;
}
// Resets the state of the ComboBox after interraction with the control

@@ -1107,3 +1150,3 @@ oComboBox.attachChange(function (oEvent) {

ValueListProvider.prototype._showRecommendations = function () {
ValueListProvider.prototype._showInitialSuggestions = function (aAllowedGroups) {
var that = this;

@@ -1113,5 +1156,5 @@

var sModelName = that._getSuggestionsModelName(),
sRankProperty = that._oRecommendationListAnnotation.rankProperty;
iOrder = oItem.getBindingContext(sModelName).getObject()[SUGGESTIONS_GROUP_PROPERTY_NAME];
return !!oItem.getBindingContext(sModelName).getObject()[sRankProperty];
return aAllowedGroups.indexOf(iOrder) !== -1;
});

@@ -1121,9 +1164,3 @@ };

ValueListProvider.prototype._getSuggestionsModelName = function () {
var sPath;
if (this._shouldHaveRecommendations()) {
sPath = SUGGESTIONS_MODEL_NAME;
}
return sPath;
return SUGGESTIONS_MODEL_NAME;
};

@@ -1141,2 +1178,12 @@

ValueListProvider.prototype._getBindingLength = function () {
var iLength = 300;
if (this.oODataModel && this.oODataModel.iSizeLimit && this.oODataModel.iSizeLimit > iLength) {
iLength = this.oODataModel.iSizeLimit;
}
return iLength;
};
/**

@@ -1143,0 +1190,0 @@ * check if a maxLength is given for the field and truncate the entered searchText if length > maxLength

@@ -12,3 +12,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -15,0 +15,0 @@ * @since 1.29.0

@@ -11,3 +11,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -14,0 +14,0 @@ * @since 1.28.0

@@ -11,3 +11,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -382,3 +382,2 @@ * @since 1.28.0

fieldViewMetadata: oEdmProperty,
recommendationListEnabled: true,
loadAnnotation: true,

@@ -385,0 +384,0 @@ fullyQualifiedFieldName: sAnnotationPath,

@@ -27,3 +27,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
*

@@ -30,0 +30,0 @@ * @constructor

@@ -11,3 +11,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -14,0 +14,0 @@ * @since 1.28.0

@@ -11,3 +11,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -14,0 +14,0 @@ * @since 1.28.0

@@ -12,3 +12,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @since 1.28.0

@@ -15,0 +15,0 @@ * @returns {sap.ui.comp.smartfield.ODataControlSelector} new control selector instance.

@@ -11,3 +11,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -14,0 +14,0 @@ * @since 1.28.0

@@ -14,2 +14,3 @@ /*

"sap/ui/comp/odata/type/FiscalDate",
"sap/ui/comp/odata/type/NumericText",
"sap/ui/comp/smartfield/type/DateTimeOffset",

@@ -39,2 +40,3 @@ "sap/ui/comp/smartfield/type/Decimal",

FiscalDateType,
NumericText,
DateTimeOffsetType,

@@ -65,3 +67,3 @@ DecimalType,

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
*

@@ -146,2 +148,6 @@ * @constructor

if (mConstraints.isDigitSequence){
return new NumericText(mFormatOptions, mConstraints);
}
if (mSettings.composite) {

@@ -148,0 +154,0 @@ mFormatOptions = Object.assign({}, mFormatOptions, this._getTextArrangementFormatOptions());

@@ -14,3 +14,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -17,0 +17,0 @@ * @since 1.31.0

@@ -18,3 +18,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -21,0 +21,0 @@ * @since 1.28.0

@@ -16,3 +16,3 @@ /*

"use strict";
var _rDecimal = /^[-+]?(\d+)(?:\.(\d+))?$/;
var _rDecimal = /^([-]?)(\d+)(?:\.(\d+))?$/;

@@ -34,4 +34,4 @@ var Currency = CurrencyBase.extend("sap.ui.comp.smartfield.type.Currency", {

if (Array.isArray(aMatches)) {
sIntegerPart = aMatches[1];
sFractionPart = aMatches[2];
sIntegerPart = aMatches[1] + aMatches[2];
sFractionPart = aMatches[3];
if (Number.parseInt(sFractionPart) === 0) {

@@ -64,4 +64,4 @@ aValues[0] = sIntegerPart;

var iIntegerDigits = aMatches[1].length,
iFractionDigits = (aMatches[2] || "").length,
var iIntegerDigits = aMatches[2].length,
iFractionDigits = (aMatches[3] || "").length,
iPrecision = this.oConstraints.precision || Infinity,

@@ -68,0 +68,0 @@ sCurrency = vValues[1],

@@ -11,3 +11,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -14,0 +14,0 @@ * @since 1.28.0

@@ -11,3 +11,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -14,0 +14,0 @@ * @since 1.28.0

@@ -11,3 +11,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -14,0 +14,0 @@ * @since 1.28.0

@@ -11,3 +11,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -14,0 +14,0 @@ * @since 1.28.0

@@ -11,3 +11,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -14,0 +14,0 @@ * @since 1.28.0

@@ -11,3 +11,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -14,0 +14,0 @@ * @since 1.31.0

@@ -11,3 +11,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -14,0 +14,0 @@ * @since 1.28.0

@@ -11,3 +11,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -14,0 +14,0 @@ * @since 1.28.0

@@ -11,3 +11,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @private

@@ -14,0 +14,0 @@ * @since 1.34.0

@@ -29,3 +29,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
*

@@ -32,0 +32,0 @@ * @constructor

@@ -23,3 +23,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @experimental Since 1.27.0

@@ -26,0 +26,0 @@ */

@@ -18,3 +18,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @experimental Since 1.33.0

@@ -21,0 +21,0 @@ */

@@ -17,3 +17,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @experimental Since 1.27.0

@@ -20,0 +20,0 @@ */

@@ -20,3 +20,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @experimental Since 1.46

@@ -23,0 +23,0 @@ */

@@ -17,3 +17,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @experimental Since 1.27.0

@@ -20,0 +20,0 @@ */

@@ -17,3 +17,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @experimental Since 1.27.0

@@ -20,0 +20,0 @@ */

@@ -13,3 +13,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @experimental Since 1.27.0

@@ -16,0 +16,0 @@ */

@@ -14,3 +14,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @experimental Since 1.27.0

@@ -17,0 +17,0 @@ */

@@ -24,3 +24,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @experimental Since 1.27.0

@@ -27,0 +27,0 @@ */

@@ -18,3 +18,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @experimental Since 1.27.0

@@ -21,0 +21,0 @@ */

@@ -14,3 +14,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @experimental Since 1.46

@@ -17,0 +17,0 @@ */

@@ -15,3 +15,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @experimental Since 1.46

@@ -18,0 +18,0 @@ */

@@ -13,3 +13,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @experimental Since 1.44.0

@@ -16,0 +16,0 @@ */

@@ -48,3 +48,3 @@ /*

* @extends sap.ui.comp.smartmicrochart.SmartMicroChartBase
* @version 1.76.0
* @version 1.77.0
* @since 1.38

@@ -51,0 +51,0 @@ * @constructor

@@ -36,3 +36,3 @@ /*

* @extends sap.ui.comp.smartmicrochart.SmartMicroChartBase
* @version 1.76.0
* @version 1.77.0
* @since 1.38

@@ -39,0 +39,0 @@ * @constructor

@@ -37,3 +37,3 @@ /*

* @extends sap.ui.comp.smartmicrochart.SmartMicroChartBase
* @version 1.76.0
* @version 1.77.0
* @since 1.60

@@ -40,0 +40,0 @@ * @constructor

@@ -38,3 +38,3 @@ /*

* @extends sap.ui.comp.smartmicrochart.SmartMicroChartBase
* @version 1.76.0
* @version 1.77.0
* @since 1.58

@@ -41,0 +41,0 @@ * @constructor

@@ -34,3 +34,3 @@ /*

* @extends sap.ui.comp.smartmicrochart.SmartMicroChartBase
* @version 1.76.0
* @version 1.77.0
* @since 1.61

@@ -37,0 +37,0 @@ * @constructor

@@ -34,3 +34,3 @@ /*

* @extends sap.ui.comp.smartmicrochart.SmartMicroChartBase
* @version 1.76.0
* @version 1.77.0
* @constructor

@@ -37,0 +37,0 @@ * @public

@@ -37,3 +37,3 @@ /*

* @extends sap.ui.comp.smartmicrochart.SmartMicroChartBase
* @version 1.76.0
* @version 1.77.0
* @since 1.60

@@ -40,0 +40,0 @@ * @constructor

@@ -35,3 +35,3 @@ /*

* @extends sap.ui.core.Control
* @version 1.76.0
* @version 1.77.0
* @since 1.38

@@ -38,0 +38,0 @@ * @constructor

@@ -10,3 +10,3 @@ /*!

* @static
* @version 1.76.0
* @version 1.77.0
* @since 1.38.0

@@ -13,0 +13,0 @@ */

@@ -32,3 +32,3 @@ /*

* @extends sap.ui.comp.smartmicrochart.SmartMicroChartBase
* @version 1.76.0
* @version 1.77.0
* @constructor

@@ -35,0 +35,0 @@ * @public

@@ -35,3 +35,3 @@ /*

* @extends sap.ui.comp.smartmicrochart.SmartMicroChartBase
* @version 1.76.0
* @version 1.77.0
* @since 1.58

@@ -38,0 +38,0 @@ * @constructor

@@ -26,3 +26,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
*

@@ -29,0 +29,0 @@ * @public

@@ -111,3 +111,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
*

@@ -923,3 +923,5 @@ * @public

this._oSmartField.setValue = this._handleSmartFieldSetValue;
this._oSmartField.attachInitialise(this._handleSmartFieldInitialized.bind(this), this);
this._pInitialised = new Promise(function (fnResolve, fnReject) {
this._oSmartField.attachInitialise({resolve: fnResolve, reject: fnReject}, this._handleSmartFieldInitialized, this);
}.bind(this));
this._oSmartField.attachInnerControlsCreated(this._handleInnerControlsCreation.bind(this), this);

@@ -1026,3 +1028,3 @@

*/
Field.prototype._handleSmartFieldInitialized = function () {
Field.prototype._handleSmartFieldInitialized = function (oEvent, oPromiseObject) {
if (this.isTime()) {

@@ -1041,2 +1043,3 @@ Log.error(

this._oApplyToEmptyOnlyCheckBox.setVisible(false);
oPromiseObject.resolve();
};

@@ -1043,0 +1046,0 @@

@@ -18,3 +18,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
*/

@@ -21,0 +21,0 @@ var AddMultiEditFields = {};

@@ -87,3 +87,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
*

@@ -90,0 +90,0 @@ * @public

@@ -345,8 +345,6 @@ /*

});
return this._oFlLibrary;
}
} else {
// Require flex classes directy, as lib is there
return fnRequireFlexAPI();
}
return this._oFlLibrary;
};

@@ -353,0 +351,0 @@

@@ -17,3 +17,3 @@ /*

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @constructor

@@ -20,0 +20,0 @@ * @public

@@ -33,3 +33,3 @@ /*!

* @author SAP SE
* @version 1.76.0
* @version 1.77.0
* @since 1.63.0

@@ -36,0 +36,0 @@ *

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc