Skip to content

Commit 9208d52

Browse files
author
pipeline
committed
v18.4.30 is released
1 parent 8ab7a6d commit 9208d52

File tree

865 files changed

+109206
-36381
lines changed

Some content is hidden

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

865 files changed

+109206
-36381
lines changed

controls/base/CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
## [Unreleased]
44

5-
## 18.3.51 (2020-11-24)
5+
## 18.3.52 (2020-12-01)
6+
7+
### Common
8+
9+
#### New Features
10+
11+
- Provided version based state persistence support.
612

713
### Common
814

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

+1-1
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

+1-1
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

+15-2
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

+1-1
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

+15-2
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

+1-1
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

+15-2
Original file line numberDiff line numberDiff line change
@@ -5635,8 +5635,8 @@ var Base = /** @class */ (function () {
56355635
}
56365636
newChanges = newChanges ? newChanges : {};
56375637
extend(this.bulkChanges, {}, newChanges, true);
5638-
if (this.allowServerDataBinding) {
5639-
var sfBlazor = 'sfBlazor';
5638+
var sfBlazor = 'sfBlazor';
5639+
if (this.allowServerDataBinding && window[sfBlazor].updateModel) {
56405640
window[sfBlazor].updateModel(this);
56415641
this.bulkChanges = {};
56425642
}
@@ -7065,6 +7065,19 @@ var Component = /** @class */ (function (_super) {
70657065
return this.element;
70667066
}
70677067
};
7068+
/**
7069+
* Returns the persistence data for component
7070+
*/
7071+
//tslint:disable:no-any
7072+
Component.prototype.getLocalData = function () {
7073+
var eleId = this.getModuleName() + this.element.id;
7074+
if (exports.versionBasedStatePersistence) {
7075+
return window.localStorage.getItem(eleId + this.ej2StatePersistenceVersion);
7076+
}
7077+
else {
7078+
return window.localStorage.getItem(eleId);
7079+
}
7080+
};
70687081
/**
70697082
* Appends the control within the given HTML element
70707083
* @param {string | HTMLElement} selector - Target element where control needs to be appended

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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-base",
3-
"version": "18.3.51",
3+
"version": "18.3.52",
44
"description": "A common package of Essential JS 2 base libraries, methods and class definitions",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/base/spec/dom.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ describe('Dom', () => {
7777
expect((eleAr[6].attributes as any).className).toBe('class1');
7878
eleAr.pop();
7979
});
80+
8081
});
8182

8283
describe('removeClass', () => {
@@ -117,7 +118,7 @@ describe('Dom', () => {
117118
it('get single element context based', () => {
118119
expect(Dom.select('#ele-level-3', elem1)).toBe(elem3);
119120
});
120-
121+
121122
it('get id starts with number element', () => {
122123
expect(Dom.select('#1-element', elem4));
123124
});

controls/base/src/base.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ export abstract class Base<ElementType extends HTMLElement> {
122122
}
123123
newChanges = newChanges ? newChanges : {};
124124
extend(this.bulkChanges, {}, newChanges, true);
125-
if (this.allowServerDataBinding) {
126-
let sfBlazor: string = 'sfBlazor';
125+
let sfBlazor: string = 'sfBlazor';
126+
if (this.allowServerDataBinding && (window as any)[sfBlazor].updateModel) {
127127
(window as any)[sfBlazor].updateModel(this);
128128
this.bulkChanges = {};
129129
}

controls/base/src/component.ts

+12
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,18 @@ export abstract class Component<ElementType extends HTMLElement> extends Base<El
115115
return this.element;
116116
}
117117
}
118+
/**
119+
* Returns the persistence data for component
120+
*/
121+
//tslint:disable:no-any
122+
public getLocalData(): any {
123+
let eleId: string = this.getModuleName() + this.element.id;
124+
if (versionBasedStatePersistence) {
125+
return window.localStorage.getItem(eleId + this.ej2StatePersistenceVersion);
126+
} else {
127+
return window.localStorage.getItem(eleId);
128+
}
129+
}
118130
/**
119131
* Appends the control within the given HTML element
120132
* @param {string | HTMLElement} selector - Target element where control needs to be appended

0 commit comments

Comments
 (0)