@progress/kendo-charts 2.12.3-develop.2 → 2.12.3-develop.3
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.
|
@@ -153,7 +153,7 @@ class Barcode {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
if (textOptions.visible) {
|
|
156
|
-
textToDisplay = value;
|
|
156
|
+
textToDisplay = this._displayValue != null ? this._displayValue : value;
|
|
157
157
|
|
|
158
158
|
if (options.checksum && defined(encoding.checksum)) {
|
|
159
159
|
textToDisplay += " " + encoding.checksum;
|
|
@@ -280,14 +280,17 @@ class Barcode {
|
|
|
280
280
|
|
|
281
281
|
_setOptions(options) {
|
|
282
282
|
this.type = (options.type || this.options.type).toLowerCase();
|
|
283
|
+
this._displayValue = null;
|
|
283
284
|
|
|
284
285
|
if (this.type === "upca") {
|
|
285
286
|
this.type = "ean13";
|
|
287
|
+
this._displayValue = options.value;
|
|
286
288
|
options.value = '0' + options.value;
|
|
287
289
|
}
|
|
288
290
|
|
|
289
291
|
if (this.type === "upce") {
|
|
290
292
|
this.type = "ean8";
|
|
293
|
+
this._displayValue = options.value;
|
|
291
294
|
options.value = '0' + options.value;
|
|
292
295
|
}
|
|
293
296
|
|
|
@@ -153,7 +153,7 @@ class Barcode {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
if (textOptions.visible) {
|
|
156
|
-
textToDisplay = value;
|
|
156
|
+
textToDisplay = this._displayValue != null ? this._displayValue : value;
|
|
157
157
|
|
|
158
158
|
if (options.checksum && defined(encoding.checksum)) {
|
|
159
159
|
textToDisplay += " " + encoding.checksum;
|
|
@@ -280,14 +280,17 @@ class Barcode {
|
|
|
280
280
|
|
|
281
281
|
_setOptions(options) {
|
|
282
282
|
this.type = (options.type || this.options.type).toLowerCase();
|
|
283
|
+
this._displayValue = null;
|
|
283
284
|
|
|
284
285
|
if (this.type === "upca") {
|
|
285
286
|
this.type = "ean13";
|
|
287
|
+
this._displayValue = options.value;
|
|
286
288
|
options.value = '0' + options.value;
|
|
287
289
|
}
|
|
288
290
|
|
|
289
291
|
if (this.type === "upce") {
|
|
290
292
|
this.type = "ean8";
|
|
293
|
+
this._displayValue = options.value;
|
|
291
294
|
options.value = '0' + options.value;
|
|
292
295
|
}
|
|
293
296
|
|