@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ndc",
3
- "version": "1.84.42",
3
+ "version": "1.84.44",
4
4
  "description": "SAPUI5 Library sap.ndc",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -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.42</version>
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.disableFeatureAPIs: Set status of Feature scanner APIs (ZXingCPP) to unavailable!");
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
- disableFeatureAPIs();
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
- oModel.setProperty("/scanDialog/isNoScanner", true);
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
- oModel.setProperty("/scanDialog/isNoScanner", true);
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
- oModel.setProperty("/scanDialog/isNoScanner", false);
987
+ oScanDialog.getModel().setProperty("/isNoScanner", false);
981
988
  } else {
982
- oModel.setProperty("/scanDialog/isNoScanner", true);
989
+ oScanDialog.getModel().setProperty("/isNoScanner", true);
983
990
  }
984
991
  openBarcodeInputDialog();
985
992
  }
@@ -32,7 +32,7 @@ sap.ui.define(['sap/m/library', 'sap/ui/core/library'],
32
32
  ],
33
33
  elements: [],
34
34
  noLibraryCSS: true,
35
- version: "1.84.42"
35
+ version: "1.84.44"
36
36
  });
37
37
 
38
38
  return sap.ndc;