@sapui5/sap.ndc 1.132.1 → 1.134.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ndc",
3
- "version": "1.132.1",
3
+ "version": "1.134.0",
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-2024 SAP SE. All rights reserved.</copyright>
8
- <version>1.132.1</version>
8
+ <version>1.134.0</version>
9
9
 
10
10
  <documentation>SAPUI5 library with controls with native device capabilities.</documentation>
11
11
 
@@ -463,6 +463,14 @@ sap.ui.define([
463
463
  function loadZXingCPPAPI() {
464
464
  Log.debug("BarcodeScanner.loadZXingCPPAPI: load ZXingCPP API");
465
465
  updateScannerAPI("ZXingCPP", oScannerAPIStatus.Loading);
466
+ var oBusyDialog = oModel.getProperty("/busyDialog");
467
+ if (!oBusyDialog) {
468
+ var newBusyDialog = new BusyDialog({
469
+ title: oResourceModel.getProperty("BARCODE_DIALOG_BUSY_TITLE"),
470
+ text: oResourceModel.getProperty("BARCODE_DIALOG_BUSY_TEXT_ZXINGCPP")
471
+ });
472
+ oModel.setProperty("/busyDialog", newBusyDialog);
473
+ }
466
474
  sap.ui.require([
467
475
  "sap/ndc/thirdparty/zxingcpp/zxing_reader"
468
476
  ], function (ZXing) {
@@ -473,8 +481,18 @@ sap.ui.define([
473
481
  }
474
482
  Log.debug("BarcodeScanner.loadZXingCPPAPI: ZXingCPP API is Initial!");
475
483
  updateScannerAPI("ZXingCPP", oScannerAPIStatus.Initial);
484
+ var oBusyDialog = oModel.getProperty("/busyDialog");
485
+ if (oBusyDialog) {
486
+ oBusyDialog.close();
487
+ oModel.setProperty("/busyDialog", null);
488
+ }
476
489
  }, function (oError) {
477
490
  loadZXingCPPFailed("BarcodeScanner.loadZXingCPPAPI: ZXingCPP API is unavailable.\n" + oError);
491
+ var oBusyDialog = oModel.getProperty("/busyDialog");
492
+ if (oBusyDialog) {
493
+ oBusyDialog.close();
494
+ oModel.setProperty("/busyDialog", null);
495
+ }
478
496
  });
479
497
  }
480
498
 
@@ -1642,7 +1660,15 @@ sap.ui.define([
1642
1660
  * @private
1643
1661
  */
1644
1662
  function scanWithZXingCPP() {
1645
- if (checkScannerAPIStatus("ZXingCPP", oScannerAPIStatus.Initial)) {
1663
+ var oZXingCPP = oModel.getProperty("/apis/ZXingCPP/instance");
1664
+ var oBusyDialog = oModel.getProperty("/busyDialog");
1665
+ if (!oZXingCPP && checkScannerAPIStatus("ZXingCPP", oScannerAPIStatus.Loading) && oBusyDialog) {
1666
+ oBusyDialog.open();
1667
+ Log.debug("BarcodeScanner.scanWithZXingCPP: zxing_reader file is loading.");
1668
+ setTimeout(function() {
1669
+ scanWithZXingCPP();
1670
+ }, 0);
1671
+ } else if (checkScannerAPIStatus("ZXingCPP", oScannerAPIStatus.Initial)) {
1646
1672
  Log.debug("BarcodeScanner.scanWithZXingCPP: ZXingCPP instances is not loaded, start to load them.");
1647
1673
  loadZXingCPPInstance(openScanDialog, function() {
1648
1674
  if (isScannerAPIAvailable("ZebraEnterpriseBrowser")) {
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  ],
34
34
  elements: [],
35
35
  noLibraryCSS: true,
36
- version: "1.132.1"
36
+ version: "1.134.0"
37
37
  });
38
38
 
39
39
  return thisLib;