@sapui5/sap.ndc 1.122.0 → 1.123.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/sap/ndc/.library
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>SAPUI5
|
|
7
7
|
* (c) Copyright 2009-2024 SAP SE. All rights reserved.</copyright>
|
|
8
|
-
<version>1.
|
|
8
|
+
<version>1.123.0</version>
|
|
9
9
|
|
|
10
10
|
<documentation>SAPUI5 library with controls with native device capabilities.</documentation>
|
|
11
11
|
|
|
@@ -479,11 +479,11 @@ sap.ui.define([
|
|
|
479
479
|
|
|
480
480
|
/**
|
|
481
481
|
* Load ZXingCPP scanner Instance.
|
|
482
|
-
* @param {function}
|
|
483
|
-
* @param {function}
|
|
482
|
+
* @param {function} openScanUI The scan dialog will be opened if load success
|
|
483
|
+
* @param {function} errorHandle The error message will be handled if load failed
|
|
484
484
|
* @private
|
|
485
485
|
*/
|
|
486
|
-
function loadZXingCPPInstance(
|
|
486
|
+
function loadZXingCPPInstance(openScanUI, errorHandle) {
|
|
487
487
|
// since the size of zxing_reader.wasm is about 1M, we need to open a busy dialog to lock the current frame/page
|
|
488
488
|
var oBusyDialog = new BusyDialog({
|
|
489
489
|
title: oResourceModel.getProperty("BARCODE_DIALOG_BUSY_TITLE"),
|
|
@@ -507,11 +507,11 @@ sap.ui.define([
|
|
|
507
507
|
}
|
|
508
508
|
Log.debug("BarcodeScanner.loadZXingCPPInstance: ZXingCPP API is available!");
|
|
509
509
|
oBusyDialog.close();
|
|
510
|
-
|
|
510
|
+
openScanUI();
|
|
511
511
|
}, function(oError) {
|
|
512
512
|
loadZXingCPPFailed("BarcodeScanner.loadZXingCPPInstance: can not load wasm lib instance of ZXingCPP.\n" + oError);
|
|
513
513
|
oBusyDialog.close();
|
|
514
|
-
|
|
514
|
+
errorHandle();
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
|
|
@@ -1637,9 +1637,7 @@ sap.ui.define([
|
|
|
1637
1637
|
function scanWithZXingCPP() {
|
|
1638
1638
|
if (checkScannerAPIStatus("ZXingCPP", oScannerAPIStatus.Initial)) {
|
|
1639
1639
|
Log.debug("BarcodeScanner.scanWithZXingCPP: ZXingCPP instances is not loaded, start to load them.");
|
|
1640
|
-
loadZXingCPPInstance(function() {
|
|
1641
|
-
openScanDialog();
|
|
1642
|
-
}, function() {
|
|
1640
|
+
loadZXingCPPInstance(openScanDialog, function() {
|
|
1643
1641
|
if (isScannerAPIAvailable("ZebraEnterpriseBrowser")) {
|
|
1644
1642
|
setCurrentScannerAPI("ZebraEnterpriseBrowser");
|
|
1645
1643
|
Log.debug("BarcodeScanner.scanWithZXingCPP: Zebra is available, set the current scanner API to Zebra.");
|
|
@@ -2008,6 +2006,9 @@ sap.ui.define([
|
|
|
2008
2006
|
// Add the symbology identifier of GS1 as prefix into the barcode text of ZXingCPP
|
|
2009
2007
|
barcode.text = barcode.symbologyIdentifier + barcode.text;
|
|
2010
2008
|
}
|
|
2009
|
+
if (typeof barcode.cancelled !== "boolean") {
|
|
2010
|
+
barcode.cancelled = false;
|
|
2011
|
+
}
|
|
2011
2012
|
onFnSuccess(barcode);
|
|
2012
2013
|
}
|
|
2013
2014
|
BarcodeScanner.closeScanDialog();
|
|
@@ -198,6 +198,11 @@ sap.ui.define([
|
|
|
198
198
|
return this;
|
|
199
199
|
};
|
|
200
200
|
|
|
201
|
+
BarcodeScannerButton.prototype._setTooltip = function () {
|
|
202
|
+
var sTooltip = this.getTooltip_AsString();
|
|
203
|
+
this.getAggregation("_btn").setTooltip(sTooltip);
|
|
204
|
+
};
|
|
205
|
+
|
|
201
206
|
return BarcodeScannerButton;
|
|
202
207
|
|
|
203
208
|
});
|
|
@@ -24,6 +24,8 @@ sap.ui.define([],
|
|
|
24
24
|
* oControl an object representation of the control that should be rendered
|
|
25
25
|
*/
|
|
26
26
|
BarcodeScannerButtonRenderer.render = function(oRm, oControl) {
|
|
27
|
+
|
|
28
|
+
oControl._setTooltip();
|
|
27
29
|
//we need this additional wrapping element to be able to control this button from our controller.
|
|
28
30
|
oRm.openStart("span", oControl);
|
|
29
31
|
// we need to change the containing span tag's width instead of the button
|