Skip to content

Commit b3bf799

Browse files
author
pipeline
committed
v18.3.52 is released
1 parent 43f581d commit b3bf799

File tree

401 files changed

+4768
-2638
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

401 files changed

+4768
-2638
lines changed

controls/barcodegenerator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-barcode-generator",
3-
"version": "18.3.35",
3+
"version": "18.3.47",
44
"description": "Barcode generator component is a pure JavaScript library which will convert a string to Barcode and show it to the user. This supports major 1D and 2D barcodes including coda bar, code 128, QR Code.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/barcodegenerator/src/barcode/one-dimension.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ export abstract class OneDimension extends BarcodeBase {
191191
/* tslint:disable */
192192
/** @private */
193193
public calculateBarCodeAttributes(code: number[] | string[], canvas: HTMLElement, isUpcE?: string): void {
194-
let temp: boolean = false;let canDoubleWidth: number;
194+
let temp: boolean = false;
195+
let canDoubleWidth: number;
195196
let barcodeSize: Rect = this.getDrawableSize(this.margin, this.width as number, this.height as number);
196197
if (barcodeSize.height > 0 && barcodeSize.width > 0) {
197198
let tempBaseAttributes: BaseAttributes; let options: BaseAttributes[] = []; let offsetX: number = barcodeSize.x;

controls/base/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## [Unreleased]
44

5+
## 18.3.51 (2020-11-24)
6+
7+
### Common
8+
9+
#### Bug Fixes
10+
11+
- Script error throws on expanding node in `TreeView` while using HTML id contains `#` has been fixed.
12+
513
## 18.3.48 (2020-11-11)
614

715
### Common

controls/base/dist/ej2-base.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/ej2-base.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/es6/ej2-base.es2015.js

Lines changed: 26 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/es6/ej2-base.es2015.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/es6/ej2-base.es5.js

Lines changed: 26 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/es6/ej2-base.es5.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/global/blazor/base.js

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5341,7 +5341,9 @@ function querySelectId(selector) {
53415341
if (!list[j].match(/\[.*\]/)) {
53425342
var splitId = list[j].split('#');
53435343
if (splitId[1].match(/^\d/)) {
5344-
list[j] = list[j].replace(/#/, '[id=\'') + '\']';
5344+
var setId = list[j].split('.');
5345+
setId[0] = setId[0].replace(/#/, '[id=\'') + '\']';
5346+
list[j] = setId.join('.');
53455347
}
53465348
}
53475349
}
@@ -6967,6 +6969,15 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
69676969
var componentCount = 0;
69686970
var lastPageID;
69696971
var lastHistoryLen = 0;
6972+
exports.versionBasedStatePersistence = false;
6973+
/**
6974+
* To enable or disable version based statePersistence functionality for all components globally.
6975+
* @param {boolean} status - Optional argument Specifies the status value to enable or disable versionBasedStatePersistence option.
6976+
* @returns {void}
6977+
*/
6978+
function enableVersionBasedPersistence(status) {
6979+
exports.versionBasedStatePersistence = status;
6980+
}
69706981
/**
69716982
* Base class for all Essential JavaScript components
69726983
*/
@@ -7229,14 +7240,25 @@ var Component = /** @class */ (function (_super) {
72297240
}
72307241
};
72317242
Component.prototype.mergePersistData = function () {
7232-
var data = window.localStorage.getItem(this.getModuleName() + this.element.id);
7243+
var data;
7244+
if (exports.versionBasedStatePersistence) {
7245+
data = window.localStorage.getItem(this.getModuleName() + this.element.id + this.ej2StatePersistenceVersion);
7246+
}
7247+
else {
7248+
data = window.localStorage.getItem(this.getModuleName() + this.element.id);
7249+
}
72337250
if (!(isNullOrUndefined(data) || (data === ''))) {
72347251
this.setProperties(JSON.parse(data), true);
72357252
}
72367253
};
72377254
Component.prototype.setPersistData = function () {
72387255
if (!this.isDestroyed) {
7239-
window.localStorage.setItem(this.getModuleName() + this.element.id, this.getPersistData());
7256+
if (exports.versionBasedStatePersistence) {
7257+
window.localStorage.setItem(this.getModuleName() + this.element.id + this.ej2StatePersistenceVersion, this.getPersistData());
7258+
}
7259+
else {
7260+
window.localStorage.setItem(this.getModuleName() + this.element.id, this.getPersistData());
7261+
}
72407262
}
72417263
};
72427264
//tslint:disable-next-line
@@ -9030,6 +9052,7 @@ exports.Base = Base;
90309052
exports.getComponent = getComponent;
90319053
exports.removeChildInstance = removeChildInstance;
90329054
exports.Browser = Browser;
9055+
exports.enableVersionBasedPersistence = enableVersionBasedPersistence;
90339056
exports.Component = Component;
90349057
exports.ChildProperty = ChildProperty;
90359058
exports.Position = Position;

0 commit comments

Comments
 (0)