@sapui5/sap.ndc 1.121.1 → 1.122.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.122.0</version>
|
|
9
9
|
|
|
10
10
|
<documentation>SAPUI5 library with controls with native device capabilities.</documentation>
|
|
11
11
|
|
|
@@ -122,7 +122,6 @@ sap.ui.define([
|
|
|
122
122
|
title: "", //oDialogTitle
|
|
123
123
|
onLiveUpdate: null, //Live update function
|
|
124
124
|
barcodeOverlaySetup: false,
|
|
125
|
-
isNoScanner: false,
|
|
126
125
|
scanningStartTime: 0,
|
|
127
126
|
keepCameraScan: false,
|
|
128
127
|
isDecodePaused: false,
|
|
@@ -390,8 +389,16 @@ sap.ui.define([
|
|
|
390
389
|
// set the feature available to false since the feature flag is false
|
|
391
390
|
oModel.setProperty("/available", false);
|
|
392
391
|
oStatusModel.setProperty("/available", false);
|
|
392
|
+
disableZXingCPP();
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Disable ZXingCPP
|
|
397
|
+
* @private
|
|
398
|
+
*/
|
|
399
|
+
function disableZXingCPP() {
|
|
393
400
|
setScannerAPIUnAvailable("ZXingCPP");
|
|
394
|
-
Log.debug("BarcodeScanner.
|
|
401
|
+
Log.debug("BarcodeScanner.disableZXingCPP: Set status of Feature scanner APIs (ZXingCPP) to unavailable!");
|
|
395
402
|
}
|
|
396
403
|
|
|
397
404
|
/**
|
|
@@ -411,7 +418,7 @@ sap.ui.define([
|
|
|
411
418
|
}
|
|
412
419
|
Log.debug("BarcodeScanner.initScannerAPIs: Cordova BarcodeScanner plugin is available!");
|
|
413
420
|
// disable feature scanner APIs (ZXingCPP)
|
|
414
|
-
|
|
421
|
+
disableZXingCPP();
|
|
415
422
|
} else {
|
|
416
423
|
Log.debug("BarcodeScanner.initScannerAPIs: Cordova BarcodeScanner plugin is unavailable!");
|
|
417
424
|
setScannerAPIUnAvailable("Cordova");
|
|
@@ -1386,7 +1393,7 @@ sap.ui.define([
|
|
|
1386
1393
|
if (oStream) {
|
|
1387
1394
|
playbackVideoAndDecode(bAttachOrientationChangeListener);
|
|
1388
1395
|
} else {
|
|
1389
|
-
|
|
1396
|
+
oScanDialog && oScanDialog.getModel().setProperty("/isNoScanner", true);
|
|
1390
1397
|
openBarcodeInputDialog(oResourceModel.getResourceBundle().getText('BARCODE_DIALOG_CAMERA_STREAM_ERROR_MSG'));
|
|
1391
1398
|
}
|
|
1392
1399
|
}
|
|
@@ -1399,7 +1406,7 @@ sap.ui.define([
|
|
|
1399
1406
|
delete oModel.getProperty("/config/defaultConstraints/video").zoom;
|
|
1400
1407
|
openCamera();
|
|
1401
1408
|
} else {
|
|
1402
|
-
|
|
1409
|
+
oScanDialog && oScanDialog.getModel().setProperty("/isNoScanner", true);
|
|
1403
1410
|
openBarcodeInputDialog(error);
|
|
1404
1411
|
}
|
|
1405
1412
|
}
|
|
@@ -1561,9 +1568,9 @@ sap.ui.define([
|
|
|
1561
1568
|
oModel.setProperty("/scanDialog/barcodeOverlaySetup", false);
|
|
1562
1569
|
} else {
|
|
1563
1570
|
if (oModel.getProperty("/available")) {
|
|
1564
|
-
|
|
1571
|
+
oScanDialog.getModel().setProperty("/isNoScanner", false);
|
|
1565
1572
|
} else {
|
|
1566
|
-
|
|
1573
|
+
oScanDialog.getModel().setProperty("/isNoScanner", true);
|
|
1567
1574
|
}
|
|
1568
1575
|
openBarcodeInputDialog();
|
|
1569
1576
|
}
|
package/src/sap/ndc/library.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#
|
|
3
3
|
|
|
4
4
|
#XTIT: title of the manual barcode input
|
|
5
|
-
BARCODE_DIALOG_TITLE=\u0412\u043D\u0435\u0441\u0438 \u0431\u0430\u0440\u043A\u043E\u0434
|
|
5
|
+
BARCODE_DIALOG_TITLE=\u0412\u043D\u0435\u0441\u0438 \u0431\u0430\u0440\u043A\u043E\u0434
|
|
6
6
|
|
|
7
7
|
#XBUT: OK button in the manual barcode input dialog
|
|
8
8
|
BARCODE_DIALOG_OK=\u0412\u043E \u0440\u0435\u0434
|
|
@@ -23,7 +23,7 @@ BARCODE_DIALOG_CAMERA_UPDATE_PARAMETER_ERROR_MSG=\u041F\u0430\u0440\u0430\u043C\
|
|
|
23
23
|
BARCODE_DIALOG_SCANNING_TITLE=\u0421\u043A\u0435\u043D\u0438\u0440\u0430\u0458 \u0433\u043E \u0431\u0430\u0440\u043A\u043E\u0434\u043E\u0442
|
|
24
24
|
|
|
25
25
|
#XTOL: Barcode Scanner Button tooltip
|
|
26
|
-
BARCODE_SCANNER_BUTTON_TOOLTIP=\u0421\u043A\u0435\u043D\u0435\u0440 \
|
|
26
|
+
BARCODE_SCANNER_BUTTON_TOOLTIP=\u0421\u043A\u0435\u043D\u0435\u0440 \u0437\u0430 \u0431\u0430\u0440\u043A\u043E\u0434\u043E\u0432\u0438
|
|
27
27
|
|
|
28
28
|
#XTIT: title of the scan bar busy dialog
|
|
29
29
|
BARCODE_DIALOG_BUSY_TITLE=\u0421\u0435 \u0432\u0447\u0438\u0442\u0443\u0432\u0430\u0430\u0442 \u0431\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0438
|