openui5-fhir
Advanced tools
Comparing version 2.2.6 to 2.2.7
@@ -0,1 +1,8 @@ | ||
## [2.2.7](https://github.com/SAP/openui5-fhir/compare/v2.2.6...v2.2.7) (2021-06-10) | ||
### Bug Fixes | ||
* better handling of strings with ws and numbers ([#272](https://github.com/SAP/openui5-fhir/issues/272)) ([d196651](https://github.com/SAP/openui5-fhir/commit/d19665169a0af3e5c057c653be0f07830070b558)) | ||
## [2.2.6](https://github.com/SAP/openui5-fhir/compare/v2.2.5...v2.2.6) (2021-05-22) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "openui5-fhir", | ||
"version": "2.2.6", | ||
"version": "2.2.7", | ||
"author": "SAP SE", | ||
@@ -28,7 +28,7 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"eslint": "^7.26.0", | ||
"eslint": "^7.28.0", | ||
"eslint-watch": "^7.0.0", | ||
"js-beautify": "^1.13.13", | ||
"jsdoc": "^3.6.7", | ||
"karma": "^6.3.2", | ||
"karma": "^6.3.3", | ||
"karma-chrome-launcher": "^3.1.0", | ||
@@ -38,3 +38,3 @@ "karma-coverage": "^2.0.3", | ||
"karma-ui5": "^2.3.3", | ||
"@ui5/cli": "^2.10.4", | ||
"@ui5/cli": "^2.11.0", | ||
"coveralls": "^3.1.0", | ||
@@ -41,0 +41,0 @@ "replace-in-file": "^6.2.0", |
@@ -11,3 +11,3 @@ sap.ui.define(function() { | ||
* @author SAP SE | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
* @public | ||
@@ -17,3 +17,3 @@ */ | ||
name : "sap.fhir", | ||
version : "2.2.6", | ||
version : "2.2.7", | ||
noLibraryCSS: true, | ||
@@ -20,0 +20,0 @@ dependencies : [ "sap.ui.core" ], |
@@ -32,3 +32,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
* | ||
@@ -35,0 +35,0 @@ * @see sap.fhir.model.r4.Context.create |
@@ -34,3 +34,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -37,0 +37,0 @@ var FHIRContextBinding = ContextBinding.extend("sap.fhir.model.r4.FHIRContextBinding", { |
@@ -23,3 +23,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -222,4 +222,4 @@ var FHIRFilterOperatorUtils = {}; | ||
* | ||
* @param {string} sFilterValue The value type of a filter object | ||
* @param {any} vValue The value of a filter object | ||
* @param {string} sFilterType The value type of a filter object | ||
* @param {any} vFilterValue The value of a filter object | ||
* @returns {string} Formatted FHIR filter value | ||
@@ -229,13 +229,8 @@ * @public | ||
*/ | ||
FHIRFilterOperatorUtils.getFilterValueForComplexFilter = function (sFilterValue, vValue) { | ||
FHIRFilterOperatorUtils.getFilterValueForComplexFilter = function (sFilterType, vFilterValue) { | ||
var sValue; | ||
// special handling for string parameter as per fhir | ||
// given eq "peter" | ||
if (sFilterValue && sFilterValue === FHIRFilterType.string) { | ||
sValue = "\"" + vValue + "\""; | ||
} else if (typeof vValue === "string" && isNaN(new Date(vValue).getTime())) { | ||
// incase of date as string it shouldnt be encoded | ||
sValue = "\"" + vValue + "\""; | ||
if (this.isFilterValueEncodable(sFilterType, vFilterValue)) { | ||
sValue = "\"" + vFilterValue + "\""; | ||
} else { | ||
sValue = vValue; | ||
sValue = vFilterValue; | ||
} | ||
@@ -245,3 +240,29 @@ return sValue; | ||
/** | ||
* Determines if the value should be encoded or not | ||
* | ||
* @param {string} sFilterType The value type of a filter object | ||
* @param {any} vFilterValue The value of a filter object | ||
* @returns {boolean} true if the value needs to be encoded | ||
* @private | ||
* @since 2.2.7 | ||
*/ | ||
FHIRFilterOperatorUtils.isFilterValueEncodable = function (sFilterType, vFilterValue) { | ||
var sRegex = "[ \r\n\t\S]+"; | ||
return (sFilterType && sFilterType === FHIRFilterType.string) || (typeof vFilterValue === "string" && (vFilterValue.match(sRegex) != null || this.isValidDate(vFilterValue))); | ||
}; | ||
/** | ||
* Determines if the given vValue can be parsed to a valid date object | ||
* | ||
* @param {any} vFilterValue The value of a filter object | ||
* @returns {boolean} true if the value is not valid date | ||
* @private | ||
* @since 2.2.7 | ||
*/ | ||
FHIRFilterOperatorUtils.isValidDate = function (vFilterValue) { | ||
return isNaN(new Date(vFilterValue).getTime()); | ||
}; | ||
return FHIRFilterOperatorUtils; | ||
}); |
@@ -23,3 +23,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -26,0 +26,0 @@ var FHIRFilterProcessor = {}; |
@@ -46,3 +46,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -49,0 +49,0 @@ var FHIRListBinding = ListBinding.extend("sap.fhir.model.r4.FHIRListBinding", { |
@@ -31,3 +31,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -34,0 +34,0 @@ var FHIRPropertyBinding = PropertyBinding.extend("sap.fhir.model.r4.FHIRPropertyBinding", { |
@@ -30,3 +30,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -33,0 +33,0 @@ var FHIRUtils = {}; |
@@ -29,3 +29,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -32,0 +32,0 @@ var BindingInfo = function(sResourceId, sResourceType, sResourcePath, sRelativePath, sAbsolutePath, aBinding, sGroupId, sRequestPath, aResourcePath, sResourceServerPath, sETag) { |
@@ -19,3 +19,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -22,0 +22,0 @@ var FHIRBundle = function(sBundleType, sGroupId) { |
@@ -21,3 +21,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -24,0 +24,0 @@ var FHIRBundleEntry = function(sFullUrl, oResource, oRequest) { |
@@ -29,3 +29,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -32,0 +32,0 @@ var FHIRBundleRequest = function(oBinding, sMethod, sUrl, fnSuccess, fnError, sIfMatch, sIfNoneMatch, sIfNoneExist, sIfModifiedSince) { |
@@ -19,3 +19,3 @@ /*! | ||
* @since 2.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -22,0 +22,0 @@ var FHIROperationOutcome = function (oResource) { |
@@ -37,3 +37,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -40,0 +40,0 @@ var FHIRRequestor = function(sServiceUrl, oModel, bCSRF, sPrefer, oDefaultQueryParams) { |
@@ -20,3 +20,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -23,0 +23,0 @@ var FHIRUrl = function(sUrl, sServiceUrl) { |
@@ -18,3 +18,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -21,0 +21,0 @@ var HTTPMethod = { |
@@ -20,3 +20,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -23,0 +23,0 @@ var RequestHandle = function(oBinding) { |
@@ -22,3 +22,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -25,0 +25,0 @@ var Sliceable = {}; |
@@ -18,3 +18,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -21,0 +21,0 @@ var OperationMode = { |
@@ -17,3 +17,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -20,0 +20,0 @@ var SubmitMode = { |
@@ -16,3 +16,3 @@ /*! | ||
* @since 1.1.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -19,0 +19,0 @@ |
@@ -13,3 +13,3 @@ /*! | ||
* @since 1.1.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -16,0 +16,0 @@ |
@@ -13,3 +13,3 @@ /*! | ||
* @since 1.1.0 | ||
* @version 2.2.6 | ||
* @version 2.2.7 | ||
*/ | ||
@@ -16,0 +16,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
344324
7838