@sapui5/sap.ndc 1.96.36 → 1.96.38
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-2022 SAP SE. All rights reserved.</copyright>
|
|
8
|
-
<version>1.96.
|
|
8
|
+
<version>1.96.38</version>
|
|
9
9
|
|
|
10
10
|
<documentation>SAPUI5 library with controls with native device capabilities.</documentation>
|
|
11
11
|
|
|
@@ -384,6 +384,14 @@ sap.ui.define([
|
|
|
384
384
|
function loadZXingCPPAPI() {
|
|
385
385
|
Log.debug("BarcodeScanner.loadZXingCPPAPI: load ZXingCPP API");
|
|
386
386
|
updateScannerAPI("ZXingCPP", oScannerAPIStatus.Loading);
|
|
387
|
+
var oBusyDialog = oModel.getProperty("/busyDialog");
|
|
388
|
+
if (!oBusyDialog) {
|
|
389
|
+
var newBusyDialog = new BusyDialog({
|
|
390
|
+
title: oResourceModel.getProperty("BARCODE_DIALOG_BUSY_TITLE"),
|
|
391
|
+
text: oResourceModel.getProperty("BARCODE_DIALOG_BUSY_TEXT_ZXINGCPP")
|
|
392
|
+
});
|
|
393
|
+
oModel.setProperty("/busyDialog", newBusyDialog);
|
|
394
|
+
}
|
|
387
395
|
sap.ui.require([
|
|
388
396
|
"sap/ndc/thirdparty/zxingcpp/zxing_reader"
|
|
389
397
|
], function (ZXing) {
|
|
@@ -394,8 +402,18 @@ sap.ui.define([
|
|
|
394
402
|
}
|
|
395
403
|
Log.debug("BarcodeScanner.loadZXingCPPAPI: ZXingCPP API is Initial!");
|
|
396
404
|
updateScannerAPI("ZXingCPP", oScannerAPIStatus.Initial);
|
|
405
|
+
var oBusyDialog = oModel.getProperty("/busyDialog");
|
|
406
|
+
if (oBusyDialog) {
|
|
407
|
+
oBusyDialog.close();
|
|
408
|
+
oModel.setProperty("/busyDialog", null);
|
|
409
|
+
}
|
|
397
410
|
}, function (oError) {
|
|
398
411
|
loadZXingCPPFailed("BarcodeScanner.loadZXingCPPAPI: ZXingCPP API is unavailable.\n" + oError);
|
|
412
|
+
var oBusyDialog = oModel.getProperty("/busyDialog");
|
|
413
|
+
if (oBusyDialog) {
|
|
414
|
+
oBusyDialog.close();
|
|
415
|
+
oModel.setProperty("/busyDialog", null);
|
|
416
|
+
}
|
|
399
417
|
});
|
|
400
418
|
}
|
|
401
419
|
|
|
@@ -1050,7 +1068,15 @@ sap.ui.define([
|
|
|
1050
1068
|
* @private
|
|
1051
1069
|
*/
|
|
1052
1070
|
function scanWithZXingCPP() {
|
|
1053
|
-
|
|
1071
|
+
var oZXingCPP = oModel.getProperty("/apis/ZXingCPP/instance");
|
|
1072
|
+
var oBusyDialog = oModel.getProperty("/busyDialog");
|
|
1073
|
+
if (!oZXingCPP && checkScannerAPIStatus("ZXingCPP", oScannerAPIStatus.Loading) && oBusyDialog) {
|
|
1074
|
+
oBusyDialog.open();
|
|
1075
|
+
Log.debug("BarcodeScanner.scanWithZXingCPP: zxing_reader file is loading.");
|
|
1076
|
+
setTimeout(function() {
|
|
1077
|
+
scanWithZXingCPP();
|
|
1078
|
+
}, 0);
|
|
1079
|
+
} else if (checkScannerAPIStatus("ZXingCPP", oScannerAPIStatus.Initial)) {
|
|
1054
1080
|
Log.debug("BarcodeScanner.scanWithZXingCPP: ZXingCPP instances is not loaded, start to load them.");
|
|
1055
1081
|
loadZXingCPPInstance(function() {
|
|
1056
1082
|
openScanDialog();
|