Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@boldreports/javascript-reporting-extensions

Package Overview
Dependencies
Maintainers
3
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boldreports/javascript-reporting-extensions - npm Package Compare versions

Comparing version 5.4.26 to 5.4.30

images/barcode.png

10

barcode.reportitem.js

@@ -87,2 +87,4 @@ var EJBarcode = (function () {

};
EJBarcode.prototype.updatePropertyUIValue = function (name, value) {
};
EJBarcode.prototype.onPositionChanged = function (top, left) {

@@ -117,3 +119,3 @@ };

'CategoryId': 'basicsettings',
'DisplayName': this.getLocale('categoryBasicSettings'),
'DisplayName': 'categoryBasicSettings',
'IsExpand': true,

@@ -124,3 +126,3 @@ 'Items': [

'Name': 'BarcodeType',
'DisplayName': this.getLocale('BarcodeType'),
'DisplayName': 'BarcodeType',
'Value': barCodeType,

@@ -136,3 +138,3 @@ 'ItemType': 'DropDown',

'Name': 'BarcodeValue',
'DisplayName': this.getLocale('barcodeValue'),
'DisplayName': 'barcodeValue',
'EnableExpression': true,

@@ -145,3 +147,3 @@ 'Value': this.getPropertyVal('BarcodeValue'),

'Name': 'DisplayBarcodeText',
'DisplayName': this.getLocale('displayText'),
'DisplayName': 'displayText',
'Value': this.isDisplayText() ? true : false,

@@ -148,0 +150,0 @@ 'ItemType': 'Bool',

2

package.json
{
"name": "@boldreports/javascript-reporting-extensions",
"version": "5.4.26",
"version": "5.4.30",
"description": "The Bold Reports Extensions by Syncfusion contains scripts and themes for barcode report item to be integrated in JavaScript Report Viewer and JavaScript Report Designer for enterprise web development(HTML5)",

@@ -5,0 +5,0 @@ "repository": {

var EJQRBarcode = (function () {
function EJQRBarcode(rptDesigner) {
this.customJSON = null;
this.propertyPanel = null;
this.rootElement = null;

@@ -10,2 +11,3 @@ this.customItemDiv = null;

this.reportDesigner = rptDesigner;
this.propertyPanel = this.reportDesigner.getInstance('PropertyPanel');
}

@@ -81,2 +83,13 @@ EJQRBarcode.prototype.initializeItem = function (args) {

this.updatePropertyVal(name, newValue);
if (!this.reportDesigner.undoManager.isPerformAction) {
var baseInstance = this.rootElement.data('CustomItem');
var correctionOldVal = this.getPropertyVal('CorrectionLevel');
baseInstance.updatePropertyChange(this.getCorrectionId(oldValue), correctionOldVal, null);
var correctionId = this.getCorrectionId(newValue);
if (correctionId) {
var correctionNewVal = this.getCorrectionVal(newValue);
baseInstance.updatePropertyChange(this.getCorrectionId(newValue), null, correctionNewVal);
this.updatePropertyUIValue(correctionId, correctionNewVal);
}
}
break;

@@ -88,4 +101,32 @@ case 'BarcodeValue':

this.updatePropertyVal(name, (newValue === true) ? 'true' : 'false');
break;
case 'QrcodeCorrectionLevel':
newValue = this.getQrErrCorrLevel(newValue);
this.updatePropertyVal('CorrectionLevel', newValue);
break;
case 'Pdf417CorrectionLevel':
newValue = this.getPdfErrCorrLevel(newValue);
this.updatePropertyVal('CorrectionLevel', newValue);
break;
}
};
EJQRBarcode.prototype.updatePropertyUIValue = function (name, value) {
var customId = this.customJSON.UniqueId;
switch (name) {
case 'BarcodeType':
this.propertyPanel.updatePropertyUIValue('barcodetype', value, customId);
break;
case 'BarcodeValue':
this.propertyPanel.updatePropertyUIValue('barcodevalue', value, customId);
break;
case 'DisplayBarcodeText':
this.propertyPanel.updatePropertyUIValue('displaybarcodetext', value, customId);
break;
case 'QrcodeCorrectionLevel':
this.propertyPanel.updatePropertyUIValue('qrerrcorrlevel', value, customId);
break;
case 'Pdf417CorrectionLevel':
this.propertyPanel.updatePropertyUIValue('pdferrcorrlevel', value, customId);
}
};
EJQRBarcode.prototype.onPositionChanged = function (top, left) {

@@ -119,3 +160,3 @@ };

'CategoryId': 'basicsettings',
'DisplayName': this.getLocale('categoryBasicSettings'),
'DisplayName': 'categoryBasicSettings',
'IsExpand': true,

@@ -126,6 +167,23 @@ 'Items': [

'Name': 'BarcodeType',
'DisplayName': this.getLocale('BarcodeType'),
'DisplayName': 'BarcodeType',
'Value': this.getBarcodeType(this.getPropertyVal('BarcodeType')),
'ItemType': 'DropDown',
'EnableExpression': false,
'DependentItems': [
{
'EnableItems': ['basicsettings_qrerrcorrlevel'],
'DisableItems': ['basicsettings_pdferrcorrlevel'],
'Value': ['QR Barcode']
},
{
'EnableItems': ['basicsettings_pdferrcorrlevel'],
'DisableItems': ['basicsettings_qrerrcorrlevel'],
'Value': ['PDF417']
},
{
'EnableItems': [],
'DisableItems': ['basicsettings_qrerrcorrlevel', 'basicsettings_pdferrcorrlevel'],
'Value': ['Data Matrix']
}
],
'ValueList': ['QR Barcode', 'Data Matrix', 'PDF417']

@@ -136,3 +194,3 @@ },

'Name': 'BarcodeValue',
'DisplayName': this.getLocale('barcodeValue'),
'DisplayName': 'barcodeValue',
'EnableExpression': true,

@@ -145,3 +203,3 @@ 'Value': this.getPropertyVal('BarcodeValue'),

'Name': 'DisplayBarcodeText',
'DisplayName': this.getLocale('displayText'),
'DisplayName': 'displayText',
'Value': this.isDisplayText() ? true : false,

@@ -151,2 +209,22 @@ 'ItemType': 'Bool',

'IsVisible': false
},
{
'ItemId': 'qrerrcorrlevel',
'Name': 'QrcodeCorrectionLevel',
'DisplayName': 'correctionLabel',
'Value': this.getQrErrCorrLevel(this.getPropertyVal('CorrectionLevel')),
'ParentId': 'basicsettings_barcodetype',
'ItemType': 'DropDown',
'EnableExpression': false,
'ValueList': this.getQrcodeCorrectionLevel()
},
{
'ItemId': 'pdferrcorrlevel',
'Name': 'Pdf417CorrectionLevel',
'DisplayName': 'correctionLabel',
'Value': this.getPdfErrCorrLevel(this.getPropertyVal('CorrectionLevel')),
'ParentId': 'basicsettings_barcodetype',
'ItemType': 'DropDown',
'EnableExpression': false,
'ValueList': this.getPDF417CorrectionLevel()
}

@@ -169,2 +247,52 @@ ]

};
EJQRBarcode.prototype.getPDF417CorrectionLevel = function () {
return [
{
text: 'auto', value: 'Auto'
},
{
text: 'level0', value: 'Level0'
},
{
text: 'level1', value: 'Level1'
},
{
text: 'level2', value: 'Level2'
},
{
text: 'level3', value: 'Level3'
},
{
text: 'level4', value: 'Level4'
},
{
text: 'level5', value: 'Level5'
},
{
text: 'level6', value: 'Level6'
},
{
text: 'level7', value: 'Level7'
},
{
text: 'level8', value: 'Level8'
}
];
};
EJQRBarcode.prototype.getQrcodeCorrectionLevel = function () {
return [
{
text: 'low', value: 'Low'
},
{
text: 'medium', value: 'Medium'
},
{
text: 'quartile', value: 'Quartile'
},
{
text: 'high', value: 'High'
}
];
};
EJQRBarcode.prototype.getBarcodeType = function (type) {

@@ -178,6 +306,33 @@ switch (type.toLowerCase()) {

};
EJQRBarcode.prototype.getQrErrCorrLevel = function (level) {
var errLvl = level ? level.toLowerCase() : '';
switch (errLvl) {
case 'low': return 'Low';
case 'medium': return 'Medium';
case 'quartile': return 'Quartile';
case 'high': return 'High';
}
return 'Low';
};
EJQRBarcode.prototype.getPdfErrCorrLevel = function (level) {
var errLvl = level ? level.toLowerCase() : '';
switch (errLvl) {
case 'auto': return 'Auto';
case 'level0': return 'Level0';
case 'level1': return 'Level1';
case 'level2': return 'Level2';
case 'level3': return 'Level3';
case 'level4': return 'Level4';
case 'level5': return 'Level5';
case 'level6': return 'Level6';
case 'level7': return 'Level7';
case 'level8': return 'Level8';
}
return 'Auto';
};
EJQRBarcode.prototype.setBarcodeType = function (type) {
switch (type.toLowerCase()) {
case 'qr barcode': return 'QRBarcode';
case 'data matrix': return 'DataMatrix';
var barcodeType = type.replace(/\s+/g, '');
switch (barcodeType.toLowerCase()) {
case 'qrbarcode': return 'QRBarcode';
case 'datamatrix': return 'DataMatrix';
case 'pdf417': return 'PDF417';

@@ -187,2 +342,18 @@ }

};
EJQRBarcode.prototype.getCorrectionVal = function (type) {
var barcodeType = type.replace(/\s+/g, '');
switch (barcodeType.toLowerCase()) {
case 'qrbarcode': return this.getQrcodeCorrectionLevel()[0].value;
case 'pdf417': return this.getPDF417CorrectionLevel()[0].value;
}
return null;
};
EJQRBarcode.prototype.getCorrectionId = function (type) {
var barcodeType = type.replace(/\s+/g, '');
switch (barcodeType.toLowerCase()) {
case 'qrbarcode': return 'QrcodeCorrectionLevel';
case 'pdf417': return 'Pdf417CorrectionLevel';
}
return null;
};
EJQRBarcode.prototype.setPropertyVal = function (name, val) {

@@ -199,2 +370,3 @@ if (this.customJSON.CustomProperties === null) {

this.customJSON.CustomProperties[index].Value = value;
break;
}

@@ -210,2 +382,3 @@ }

this.setPropertyVal('DisplayBarcodeText', 'true');
this.setPropertyVal('CorrectionLevel', 'Low');
}

@@ -253,2 +426,77 @@ return this.customJSON;

return defaultLocale.categoryBasicSettings;
case 'correctionlabel':
if (barcodeLocale && barcodeLocale.correctionLabel) {
return barcodeLocale.correctionLabel;
}
return defaultLocale.correctionLabel;
case 'low':
if (barcodeLocale && barcodeLocale.qrcodeCorrectionLevel.low) {
return barcodeLocale.qrcodeCorrectionLevel.low;
}
return defaultLocale.qrcodeCorrectionLevel.low;
case 'medium':
if (barcodeLocale && barcodeLocale.qrcodeCorrectionLevel.medium) {
return barcodeLocale.qrcodeCorrectionLevel.medium;
}
return defaultLocale.qrcodeCorrectionLevel.medium;
case 'quartile':
if (barcodeLocale && barcodeLocale.qrcodeCorrectionLevel.quartile) {
return barcodeLocale.qrcodeCorrectionLevel.quartile;
}
return defaultLocale.qrcodeCorrectionLevel.quartile;
case 'high':
if (barcodeLocale && barcodeLocale.qrcodeCorrectionLevel.high) {
return barcodeLocale.qrcodeCorrectionLevel.high;
}
return defaultLocale.qrcodeCorrectionLevel.high;
case 'level0':
if (barcodeLocale && barcodeLocale.pdf417CorrectionLevel.level0) {
return barcodeLocale.pdf417CorrectionLevel.level0;
}
return defaultLocale.pdf417CorrectionLevel.level0;
case 'level1':
if (barcodeLocale && barcodeLocale.pdf417CorrectionLevel.level1) {
return barcodeLocale.pdf417CorrectionLevel.level1;
}
return defaultLocale.pdf417CorrectionLevel.level1;
case 'level2':
if (barcodeLocale && barcodeLocale.pdf417CorrectionLevel.level2) {
return barcodeLocale.pdf417CorrectionLevel.level2;
}
return defaultLocale.pdf417CorrectionLevel.level2;
case 'level3':
if (barcodeLocale && barcodeLocale.pdf417CorrectionLevel.level3) {
return barcodeLocale.pdf417CorrectionLevel.level3;
}
return defaultLocale.pdf417CorrectionLevel.level3;
case 'level4':
if (barcodeLocale && barcodeLocale.pdf417CorrectionLevel.level4) {
return barcodeLocale.pdf417CorrectionLevel.level4;
}
return defaultLocale.pdf417CorrectionLevel.level4;
case 'level5':
if (barcodeLocale && barcodeLocale.pdf417CorrectionLevel.level5) {
return barcodeLocale.pdf417CorrectionLevel.level5;
}
return defaultLocale.pdf417CorrectionLevel.level5;
case 'level6':
if (barcodeLocale && barcodeLocale.pdf417CorrectionLevel.level6) {
return barcodeLocale.pdf417CorrectionLevel.level6;
}
return defaultLocale.pdf417CorrectionLevel.level6;
case 'level7':
if (barcodeLocale && barcodeLocale.pdf417CorrectionLevel.level7) {
return barcodeLocale.pdf417CorrectionLevel.level7;
}
return defaultLocale.pdf417CorrectionLevel.level7;
case 'level8':
if (barcodeLocale && barcodeLocale.pdf417CorrectionLevel.level8) {
return barcodeLocale.pdf417CorrectionLevel.level8;
}
return defaultLocale.pdf417CorrectionLevel.level8;
case 'auto':
if (barcodeLocale && barcodeLocale.pdf417CorrectionLevel.auto) {
return barcodeLocale.pdf417CorrectionLevel.auto;
}
return defaultLocale.pdf417CorrectionLevel.auto;
}

@@ -292,2 +540,21 @@ return text;

title: 'QRBarcode'
},
correctionLabel: 'Correction Level',
qrcodeCorrectionLevel: {
low: 'Low',
medium: 'Medium',
quartile: 'Quartile',
high: 'High'
},
pdf417CorrectionLevel: {
auto: 'Auto',
level0: 'Level0',
level1: 'Level1',
level2: 'Level2',
level3: 'Level3',
level4: 'Level4',
level5: 'Level5',
level6: 'Level6',
level7: 'Level7',
level8: 'Level8',
}

@@ -304,3 +571,22 @@ };

title: 'QRBarcode'
},
correctionLabel: 'Niveau de correction',
qrcodeCorrectionLevel: {
low: 'Faible',
medium: 'Moyen',
quartile: 'Quartile',
high: 'Haut'
},
pdf417CorrectionLevel: {
auto: 'Auto',
level0: 'Niveau0',
level1: 'Niveau1',
level2: 'Niveau2',
level3: 'Niveau3',
level4: 'Niveau4',
level5: 'Niveau5',
level6: 'Niveau6',
level7: 'Niveau7',
level8: 'Niveau8',
}
};

@@ -17,3 +17,3 @@ ## BoldReports Javascript Extension

Download our JavaScript Reporting Platform installer from [here](https://www.boldreports.com/pricing/).
Download our JavaScript Reporting Platform installer from [here](https://www.boldreports.com/pricing/?utm_source=npm&utm_medium=listing&utm_campaign=boldreports-extensions-npm).

@@ -20,0 +20,0 @@ ## Support

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc