@boldreports/javascript-reporting-extensions 13.1.41 → 14.1.13
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/barcode.reportitem.js +126 -0
- package/htmldocument.reportitem.js +154 -0
- package/package.json +1 -1
- package/pdf.signature.reportitem.js +219 -2
- package/pdfdocument.reportitem.js +133 -0
- package/qrbarcode.reportitem.js +259 -0
- package/shape.reportitem.js +695 -36
- package/signature.dialog.js +93 -2
- package/signature.reportitem.js +74 -4
package/signature.dialog.js
CHANGED
|
@@ -468,7 +468,7 @@ var SignatureDialog = (function () {
|
|
|
468
468
|
this.instance._destroyEJ2Objects(this.container.find('.e-dlg-content .e-signDialog-root-container'));
|
|
469
469
|
}
|
|
470
470
|
else {
|
|
471
|
-
ej.
|
|
471
|
+
ej.WidgetUtil.destroyEj2Objects(this.container.find('.e-dlg-content .e-signDialog-root-container'));
|
|
472
472
|
}
|
|
473
473
|
this.dlgInstance.destroy();
|
|
474
474
|
$('#' + this.id + '_signDialog').remove();
|
|
@@ -633,7 +633,7 @@ var SignatureDialog = (function () {
|
|
|
633
633
|
this.instance._destroyEJ2Objects(this.container.find('.e-dlg-content .e-signDialog-root-container'));
|
|
634
634
|
}
|
|
635
635
|
else {
|
|
636
|
-
ej.
|
|
636
|
+
ej.WidgetUtil.destroyEj2Objects(this.container.find('.e-dlg-content .e-signDialog-root-container'));
|
|
637
637
|
}
|
|
638
638
|
this.dlgInstance.destroy();
|
|
639
639
|
this.container = null;
|
|
@@ -689,6 +689,71 @@ SignatureDialog.Locale['en-US'] = {
|
|
|
689
689
|
ariaLabelCrop: 'Crop the signature',
|
|
690
690
|
ariaLabelClear: 'Clear the signature'
|
|
691
691
|
};
|
|
692
|
+
SignatureDialog.Locale['fi-FI'] = {
|
|
693
|
+
cancel: 'Peruuta',
|
|
694
|
+
closeToolTip: 'Sulje',
|
|
695
|
+
clear: 'Tyhjennä',
|
|
696
|
+
ok: 'OK',
|
|
697
|
+
title: 'Allekirjoitus',
|
|
698
|
+
strokeColor: 'Viivan väri',
|
|
699
|
+
strokeWidth: 'Viivan paksuus',
|
|
700
|
+
crop: 'Rajaa',
|
|
701
|
+
ariaLabelCanvas: 'Piirrä allekirjoitus tähän alueeseen',
|
|
702
|
+
ariaLabelCrop: 'Rajaa allekirjoitus',
|
|
703
|
+
ariaLabelClear: 'Tyhjennä allekirjoitus'
|
|
704
|
+
};
|
|
705
|
+
SignatureDialog.Locale['da-DK'] = {
|
|
706
|
+
cancel: 'Annuller',
|
|
707
|
+
closeToolTip: 'Luk',
|
|
708
|
+
clear: 'Ryd',
|
|
709
|
+
ok: 'OK',
|
|
710
|
+
title: 'Signatur',
|
|
711
|
+
strokeColor: 'Stregfarve',
|
|
712
|
+
strokeWidth: 'Stregbredde',
|
|
713
|
+
crop: 'Beskær',
|
|
714
|
+
ariaLabelCanvas: 'Lærredsområde til at tegne din signatur',
|
|
715
|
+
ariaLabelCrop: 'Beskær signaturen',
|
|
716
|
+
ariaLabelClear: 'Ryd signaturen'
|
|
717
|
+
};
|
|
718
|
+
SignatureDialog.Locale['nl-NL'] = {
|
|
719
|
+
cancel: 'Annuleren',
|
|
720
|
+
closeToolTip: 'Sluiten',
|
|
721
|
+
clear: 'Wissen',
|
|
722
|
+
ok: 'OK',
|
|
723
|
+
title: 'Handtekening',
|
|
724
|
+
strokeColor: 'Lijnkleur',
|
|
725
|
+
strokeWidth: 'Lijndikte',
|
|
726
|
+
crop: 'Bijsnijden',
|
|
727
|
+
ariaLabelCanvas: 'Canvasgebied om uw handtekening te tekenen',
|
|
728
|
+
ariaLabelCrop: 'De handtekening bijsnijden',
|
|
729
|
+
ariaLabelClear: 'De handtekening wissen'
|
|
730
|
+
};
|
|
731
|
+
SignatureDialog.Locale['el-GR'] = {
|
|
732
|
+
cancel: 'Ακύρωση',
|
|
733
|
+
closeToolTip: 'Κλείσιμο',
|
|
734
|
+
clear: 'Καθαρισμός',
|
|
735
|
+
ok: 'OK',
|
|
736
|
+
title: 'Υπογραφή',
|
|
737
|
+
strokeColor: 'Χρώμα γραμμής',
|
|
738
|
+
strokeWidth: 'Πλάτος γραμμής',
|
|
739
|
+
crop: 'Περικοπή',
|
|
740
|
+
ariaLabelCanvas: 'Περιοχή καμβά για να σχεδιάσετε την υπογραφή σας',
|
|
741
|
+
ariaLabelCrop: 'Περικοπή της υπογραφής σας',
|
|
742
|
+
ariaLabelClear: 'Καθαρισμός της υπογραφής σας'
|
|
743
|
+
};
|
|
744
|
+
SignatureDialog.Locale['en-GB'] = {
|
|
745
|
+
cancel: 'Cancel',
|
|
746
|
+
closeToolTip: 'Close',
|
|
747
|
+
clear: 'Clear',
|
|
748
|
+
ok: 'OK',
|
|
749
|
+
title: 'Signature',
|
|
750
|
+
strokeColor: 'Stroke Colour',
|
|
751
|
+
strokeWidth: 'Stroke Width',
|
|
752
|
+
crop: 'Crop',
|
|
753
|
+
ariaLabelCanvas: 'Canvas area to draw your signature',
|
|
754
|
+
ariaLabelCrop: 'Crop the signature',
|
|
755
|
+
ariaLabelClear: 'Clear the signature'
|
|
756
|
+
};
|
|
692
757
|
SignatureDialog.Locale['ar-AE'] = {
|
|
693
758
|
cancel: 'إلغاء',
|
|
694
759
|
closeToolTip: 'إغلاق',
|
|
@@ -897,3 +962,29 @@ SignatureDialog.Locale['zh-Hant'] = {
|
|
|
897
962
|
ariaLabelCrop: '裁剪簽名',
|
|
898
963
|
ariaLabelClear: '清除簽名'
|
|
899
964
|
};
|
|
965
|
+
SignatureDialog.Locale['cs-CZ'] = {
|
|
966
|
+
cancel: 'Zrušit',
|
|
967
|
+
closeToolTip: 'Zavřít',
|
|
968
|
+
clear: 'Smazat',
|
|
969
|
+
ok: 'OK',
|
|
970
|
+
title: 'Podpis',
|
|
971
|
+
strokeColor: 'Barva čáry',
|
|
972
|
+
strokeWidth: 'Tloušťka čáry',
|
|
973
|
+
crop: 'Oříznout',
|
|
974
|
+
ariaLabelCanvas: 'Oblast plátna pro kreslení podpisu',
|
|
975
|
+
ariaLabelCrop: 'Oříznout podpis',
|
|
976
|
+
ariaLabelClear: 'Smazat podpis'
|
|
977
|
+
};
|
|
978
|
+
SignatureDialog.Locale['et-EE'] = {
|
|
979
|
+
cancel: 'Tühista',
|
|
980
|
+
closeToolTip: 'Sulge',
|
|
981
|
+
clear: 'Puhasta',
|
|
982
|
+
ok: 'OK',
|
|
983
|
+
title: 'Allkiri',
|
|
984
|
+
strokeColor: 'Joone värv',
|
|
985
|
+
strokeWidth: 'Joone paksus',
|
|
986
|
+
crop: 'Kärbi',
|
|
987
|
+
ariaLabelCanvas: 'Lõuendala piirkond allkirja joonestamiseks',
|
|
988
|
+
ariaLabelCrop: 'Kärbi allkiri',
|
|
989
|
+
ariaLabelClear: 'Puhasta allkiri'
|
|
990
|
+
};
|
package/signature.reportitem.js
CHANGED
|
@@ -26,7 +26,7 @@ var EJSignature = (function () {
|
|
|
26
26
|
EJSignature.prototype.renderSignature = function () {
|
|
27
27
|
var bgColor = (this.customJSON && this.customJSON.Style && this.customJSON.Style.BackgroundColor
|
|
28
28
|
&& this.customJSON.Style.BackgroundColor !== 'Transparent' && this.customJSON.Style.BackgroundColor !== '#00ffffff')
|
|
29
|
-
? ej.
|
|
29
|
+
? ej.ImageUtil.convertColorFormat(this.customJSON.Style.BackgroundColor, true) : 'white';
|
|
30
30
|
this.customItemDiv = this.buildElement('div', 'customitem e-rptdesigner-customItem-sign', '', { 'id': this.customJSON.Name + '_customItem' }, { 'background-color': bgColor });
|
|
31
31
|
this.canvasTag = this.buildElement('canvas', '', '', { 'id': this.customJSON.Name + '_customItem_canvas' }, { width: '100%', height: '100%' });
|
|
32
32
|
this.customItemDiv.append(this.canvasTag);
|
|
@@ -78,7 +78,7 @@ var EJSignature = (function () {
|
|
|
78
78
|
width: width
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
this.setSign(imgData, document.getElementById(this.customJSON.Name + '_customItem_canvas'), (this.customJSON.Style.BackgroundColor === 'Transparent' || this.customJSON.Style.BackgroundColor === '#00ffffff') ? 'white' : ej.
|
|
81
|
+
this.setSign(imgData, document.getElementById(this.customJSON.Name + '_customItem_canvas'), (this.customJSON.Style.BackgroundColor === 'Transparent' || this.customJSON.Style.BackgroundColor === '#00ffffff') ? 'white' : ej.ImageUtil.convertColorFormat(this.customJSON.Style.BackgroundColor, true));
|
|
82
82
|
};
|
|
83
83
|
EJSignature.prototype.customAction = function (paramInfo) {
|
|
84
84
|
var imgData = this.getPropertyVal('SignatureValue');
|
|
@@ -194,7 +194,7 @@ var EJSignature = (function () {
|
|
|
194
194
|
if (imgData) {
|
|
195
195
|
var base64String = imgData.replace('data:image/png;base64,', '');
|
|
196
196
|
this.updatePropertyVal('SignatureValue', base64String);
|
|
197
|
-
this.setSign(imgData, document.getElementById(this.customJSON.Name + '_customItem_canvas'), (this.customJSON.Style.BackgroundColor === 'Transparent' || this.customJSON.Style.BackgroundColor === '#00ffffff') ? 'white' : ej.
|
|
197
|
+
this.setSign(imgData, document.getElementById(this.customJSON.Name + '_customItem_canvas'), (this.customJSON.Style.BackgroundColor === 'Transparent' || this.customJSON.Style.BackgroundColor === '#00ffffff') ? 'white' : ej.ImageUtil.convertColorFormat(this.customJSON.Style.BackgroundColor, true));
|
|
198
198
|
}
|
|
199
199
|
else {
|
|
200
200
|
this.clearSign(document.getElementById(this.customJSON.Name + '_customItem_canvas'));
|
|
@@ -207,7 +207,7 @@ var EJSignature = (function () {
|
|
|
207
207
|
EJSignature.prototype.undoRedoAction = function (canvasInfo) {
|
|
208
208
|
if (canvasInfo) {
|
|
209
209
|
if (canvasInfo.propertyName && canvasInfo.propertyName.toLowerCase() === 'signature') {
|
|
210
|
-
ej.
|
|
210
|
+
ej.WidgetUtil.invokeMethod(this, canvasInfo.method, [canvasInfo.undoRedo, { imageData: canvasInfo.imageData }]);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
};
|
|
@@ -373,6 +373,56 @@ EJSignature.Locale['en-US'] = {
|
|
|
373
373
|
title: 'Signature'
|
|
374
374
|
}
|
|
375
375
|
};
|
|
376
|
+
EJSignature.Locale['fi-FI'] = {
|
|
377
|
+
btnText: 'Piirrä',
|
|
378
|
+
categoryBasicSettings: 'Perusasetukset',
|
|
379
|
+
signatureLabel: 'Allekirjoitus',
|
|
380
|
+
toolTip: {
|
|
381
|
+
requirements: 'Näytä mikä tahansa sähköinen allekirjoitus allekirjoittamista varten.',
|
|
382
|
+
description: 'Tätä raporttielementtiä käytetään graafisen allekirjoituksen lisäämiseen.',
|
|
383
|
+
title: 'Allekirjoitus'
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
EJSignature.Locale['da-DK'] = {
|
|
387
|
+
btnText: 'Tegn',
|
|
388
|
+
categoryBasicSettings: 'Grundindstillinger',
|
|
389
|
+
signatureLabel: 'Signatur',
|
|
390
|
+
toolTip: {
|
|
391
|
+
requirements: 'Vis elektroniske signaturer til underskrift.',
|
|
392
|
+
description: 'Dette rapportelement bruges til at tilføje en grafisk signatur.',
|
|
393
|
+
title: 'Signatur'
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
EJSignature.Locale['nl-NL'] = {
|
|
397
|
+
btnText: 'Tekenen',
|
|
398
|
+
categoryBasicSettings: 'Basisinstellingen',
|
|
399
|
+
signatureLabel: 'Handtekening',
|
|
400
|
+
toolTip: {
|
|
401
|
+
requirements: 'Kan elke elektronische handtekening voor ondertekening weergeven.',
|
|
402
|
+
description: 'Dit rapportitem wordt gebruikt om een grafische handtekening toe te voegen',
|
|
403
|
+
title: 'Handtekening'
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
EJSignature.Locale['el-GR'] = {
|
|
407
|
+
btnText: 'Σχεδίαση',
|
|
408
|
+
categoryBasicSettings: 'Βασικές ρυθμίσεις',
|
|
409
|
+
signatureLabel: 'Υπογραφή',
|
|
410
|
+
toolTip: {
|
|
411
|
+
requirements: 'Προβάλλει οποιαδήποτε ηλεκτρονική υπογραφή για υπογραφή.',
|
|
412
|
+
description: 'Χρησιμοποιείται για την προσθήκη γραφικής υπογραφής',
|
|
413
|
+
title: 'Υπογραφή'
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
EJSignature.Locale['en-GB'] = {
|
|
417
|
+
btnText: 'Draw',
|
|
418
|
+
categoryBasicSettings: 'Basic Settings',
|
|
419
|
+
signatureLabel: 'Signature',
|
|
420
|
+
toolTip: {
|
|
421
|
+
requirements: 'Display any electronic signature for signing.',
|
|
422
|
+
description: 'This report item is used to add a graphic signature.',
|
|
423
|
+
title: 'Signature'
|
|
424
|
+
}
|
|
425
|
+
};
|
|
376
426
|
EJSignature.Locale['fr-FR'] = {
|
|
377
427
|
signatureLabel: 'Signature',
|
|
378
428
|
btnText: 'Dessiner',
|
|
@@ -523,3 +573,23 @@ EJSignature.Locale['zh-Hant'] = {
|
|
|
523
573
|
title: '簽名'
|
|
524
574
|
}
|
|
525
575
|
};
|
|
576
|
+
EJSignature.Locale['cs-CZ'] = {
|
|
577
|
+
btnText: 'Kreslit',
|
|
578
|
+
categoryBasicSettings: 'Základní nastavení',
|
|
579
|
+
signatureLabel: 'Podpis',
|
|
580
|
+
toolTip: {
|
|
581
|
+
requirements: 'Zobrazit jakýkoli elektronický podpis k podepsání.',
|
|
582
|
+
description: 'Tato položka sestavy se používá pro přidání grafického podpisu',
|
|
583
|
+
title: 'Podpis'
|
|
584
|
+
}
|
|
585
|
+
};
|
|
586
|
+
EJSignature.Locale['et-EE'] = {
|
|
587
|
+
btnText: 'Joonista',
|
|
588
|
+
categoryBasicSettings: 'Põhiseaded',
|
|
589
|
+
signatureLabel: 'Allkiri',
|
|
590
|
+
toolTip: {
|
|
591
|
+
requirements: 'Kuvab elektroonilise allkirja allkirjastamiseks.',
|
|
592
|
+
description: 'Seda aruandeüksust kasutatakse graafilise allkirja lisamiseks',
|
|
593
|
+
title: 'Allkiri'
|
|
594
|
+
}
|
|
595
|
+
};
|