@sapui5/sap.ndc 1.84.42 → 1.84.44
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.84.
|
|
8
|
+
<version>1.84.44</version>
|
|
9
9
|
|
|
10
10
|
<documentation>SAPUI5 library with controls with native device capabilities.</documentation>
|
|
11
11
|
|
|
@@ -114,7 +114,6 @@ sap.ui.define([
|
|
|
114
114
|
title: "", //oDialogTitle
|
|
115
115
|
onLiveUpdate: null, //Live update function
|
|
116
116
|
barcodeOverlaySetup: false,
|
|
117
|
-
isNoScanner: false,
|
|
118
117
|
scanningStartTime: 0,
|
|
119
118
|
keepCameraScan: false,
|
|
120
119
|
disableBarcodeInputDialog: false
|
|
@@ -312,8 +311,16 @@ sap.ui.define([
|
|
|
312
311
|
// set the feature available to false since the feature flag is false
|
|
313
312
|
oModel.setProperty("/available", false);
|
|
314
313
|
oStatusModel.setProperty("/available", false);
|
|
314
|
+
disableZXingCPP();
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Disable ZXingCPP
|
|
319
|
+
* @private
|
|
320
|
+
*/
|
|
321
|
+
function disableZXingCPP() {
|
|
315
322
|
setScannerAPIUnAvailable("ZXingCPP");
|
|
316
|
-
Log.debug("BarcodeScanner.
|
|
323
|
+
Log.debug("BarcodeScanner.disableZXingCPP: Set status of Feature scanner APIs (ZXingCPP) to unavailable!");
|
|
317
324
|
}
|
|
318
325
|
|
|
319
326
|
/**
|
|
@@ -333,7 +340,7 @@ sap.ui.define([
|
|
|
333
340
|
}
|
|
334
341
|
Log.debug("BarcodeScanner.initScannerAPIs: Cordova BarcodeScanner plugin is available!");
|
|
335
342
|
// disable feature scanner APIs (ZXingCPP)
|
|
336
|
-
|
|
343
|
+
disableZXingCPP();
|
|
337
344
|
} else {
|
|
338
345
|
Log.debug("BarcodeScanner.initScannerAPIs: Cordova BarcodeScanner plugin is unavailable!");
|
|
339
346
|
setScannerAPIUnAvailable("Cordova");
|
|
@@ -891,7 +898,7 @@ sap.ui.define([
|
|
|
891
898
|
if (oStream) {
|
|
892
899
|
playbackVideoAndDecode(bAttachOrientationChangeListener);
|
|
893
900
|
} else {
|
|
894
|
-
|
|
901
|
+
oScanDialog && oScanDialog.getModel().setProperty("/isNoScanner", true);
|
|
895
902
|
openBarcodeInputDialog(oResourceModel.getResourceBundle().getText('BARCODE_DIALOG_CAMERA_STREAM_ERROR_MSG'));
|
|
896
903
|
}
|
|
897
904
|
}
|
|
@@ -904,7 +911,7 @@ sap.ui.define([
|
|
|
904
911
|
delete oModel.getProperty("/config/defaultConstraints/video").zoom;
|
|
905
912
|
openCamera();
|
|
906
913
|
} else {
|
|
907
|
-
|
|
914
|
+
oScanDialog && oScanDialog.getModel().setProperty("/isNoScanner", true);
|
|
908
915
|
openBarcodeInputDialog(error);
|
|
909
916
|
}
|
|
910
917
|
}
|
|
@@ -977,9 +984,9 @@ sap.ui.define([
|
|
|
977
984
|
oModel.setProperty("/scanDialog/barcodeOverlaySetup", false);
|
|
978
985
|
} else {
|
|
979
986
|
if (oModel.getProperty("/available")) {
|
|
980
|
-
|
|
987
|
+
oScanDialog.getModel().setProperty("/isNoScanner", false);
|
|
981
988
|
} else {
|
|
982
|
-
|
|
989
|
+
oScanDialog.getModel().setProperty("/isNoScanner", true);
|
|
983
990
|
}
|
|
984
991
|
openBarcodeInputDialog();
|
|
985
992
|
}
|