Skip to content

Commit b8dfb3e

Browse files
author
pipeline
committed
v24.1.46 is released
1 parent 48c6357 commit b8dfb3e

File tree

2,467 files changed

+336
-318
lines changed

Some content is hidden

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

2,467 files changed

+336
-318
lines changed

components/base/releasenotes/README.md

-183
This file was deleted.

components/ribbon/README.md

-3
This file was deleted.

components/barcodegenerator/CHANGELOG.md renamed to src/barcodegenerator/CHANGELOG.md

-2
File renamed without changes.

components/base/CHANGELOG.md renamed to src/base/CHANGELOG.md

+6
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

components/base/spec/component.spec.tsx renamed to src/base/spec/component.spec.tsx

+18-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ describe('test', () => {
8888
});
8989
describe('HTML attributes processed properly', () => {
9090
beforeEach(() => {
91-
result = ReactDom.render(<ReactStyler content='sde' form='testform'
92-
id='attribute' data-check='dataAttribute' aria-pressed='false' />, ele);
91+
result = ReactDom.render(<ReactStyler content='sde' title='titleAttribute' form='testform'
92+
id='attribute' data-check='dataAttribute' aria-pressed='false' delayUpdate={false}
93+
immediateRender={true} isLegacyTemplate={true} statelessTemplates={['content']} />, ele);
9394
});
9495
it('Check deafulat html attributes', () => {
9596
expect(ele.firstElementChild.id).toBe('attribute');
@@ -103,6 +104,21 @@ describe('test', () => {
103104
it('Check custom control attributes', () => {
104105
expect(ele.firstElementChild.getAttribute('form')).toBe('testform');
105106
});
107+
it('Check base and component attributes', () => {
108+
// Base attribute should not be append to the DOM element.
109+
expect(ele.firstElementChild.getAttribute('content')).toBe(null);
110+
expect(ele.firstElementChild.getAttribute('delayUpdate')).toBe(null);
111+
expect(ele.firstElementChild.getAttribute('immediateRender')).toBe(null);
112+
expect(ele.firstElementChild.getAttribute('isLegacyTemplate')).toBe(null);
113+
expect(ele.firstElementChild.getAttribute('statelessTemplates')).toBe(null);
114+
// Base properties are maintained within the instance.
115+
expect(result.content).toBe('sde');
116+
expect(result.delayUpdate).toBe(false);
117+
expect(result.immediateRender).toBe(true);
118+
expect(result.isLegacyTemplate).toBe(true);
119+
expect(result.statelessTemplates.length).toBe(1);
120+
expect(result.statelessTemplates[0]).toBe('content');
121+
});
106122
});
107123
it('Check injectable', () => {
108124
result = ReactDom.render(<ReactStyler ><Inject services={[DummyInject]} /></ReactStyler>, ele);
File renamed without changes.

components/base/src/component-base.ts renamed to src/base/src/component-base.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ export class ComponentBase<P, S> extends React.Component<P, S> {
220220
this.isReact = true;
221221
let propKeys: string[] = Object.keys(this.props);
222222
let stringValue: string[] = ['autocomplete', 'dropdownlist', 'combobox'];
223+
let ignoreProps: string[] = ['children', 'statelessTemplates', 'immediateRender', 'isLegacyTemplate', 'delayUpdate'];
223224
// if ((stringValue.indexOf(this.getModuleName()) !== -1) && (!isNullOrUndefined(this.props["value"]))) {
224225
// this.value = (<{ [key: string]: Object }>this.props)["value"];
225226
// }
@@ -228,7 +229,7 @@ export class ComponentBase<P, S> extends React.Component<P, S> {
228229
}
229230
this.attrKeys = defaulthtmlkeys.concat(this.controlAttributes || []);
230231
for (let prop of propKeys) {
231-
if (prop.indexOf('data-') !== -1 || prop.indexOf('aria-') !== -1 || this.attrKeys.indexOf(prop) !== -1 || (Object.keys((this as any).properties).indexOf(`${prop}`) === -1 && prop.indexOf('children') === -1)) {
232+
if (prop.indexOf('data-') !== -1 || prop.indexOf('aria-') !== -1 || this.attrKeys.indexOf(prop) !== -1 || (Object.keys((this as any).properties).indexOf(`${prop}`) === -1 && ignoreProps.indexOf(`${prop}`) === -1)) {
232233
if( this.htmlattributes[`${prop}`] !== (<{ [key: string]: Object }>this.props)[`${prop}`]) {
233234
this.htmlattributes[`${prop}`] = (<{ [key: string]: Object }>this.props)[`${prop}`];
234235
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

components/buttons/CHANGELOG.md renamed to src/buttons/CHANGELOG.md

+6
File renamed without changes.
File renamed without changes.

components/buttons/package.json renamed to src/buttons/package.json

+7-13
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,30 @@
11
{
22
"name": "@syncfusion/ej2-react-buttons",
3-
"version": "24.1.41",
3+
"version": "24.1.45",
44
"description": "A package of feature-rich Essential JS 2 components such as Button, CheckBox, RadioButton and Switch. for React",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",
77
"keywords": [
8-
"react",
9-
"reactjs",
10-
"ej2-react-buttons",
11-
"react-button",
12-
"react-checkbox",
13-
"react-radiobutton",
14-
"react-switch",
15-
"react-fab",
16-
"react-speeddial"
8+
"ej2",
9+
"syncfusion",
10+
"ej2-react-buttons"
1711
],
1812
"repository": {
1913
"type": "git",
20-
"url": "https://github.com/syncfusion/ej2-react-ui-components.git"
14+
"url": "https://github.com/syncfusion/ej2-react-buttons.git"
2115
},
2216
"main": "./dist/ej2-react-buttons.umd.min.js",
2317
"module": "./index.js",
2418
"es2015": "dist/es6/ej2-react-buttons.es2015.js",
2519
"readme": "ReadMe.md",
2620
"dependencies": {
21+
"awesome-typescript-loader": "^3.1.3",
22+
"source-map-loader": "^0.2.1",
2723
"@syncfusion/ej2-base": "*",
2824
"@syncfusion/ej2-react-base": "*",
2925
"@syncfusion/ej2-buttons": "*"
3026
},
3127
"devDependencies": {
32-
"awesome-typescript-loader": "^3.1.3",
33-
"source-map-loader": "^0.2.1",
3428
"@types/chai": "^3.4.28",
3529
"@types/es6-promise": "0.0.28",
3630
"@types/jasmine": "2.8.22",
File renamed without changes.
File renamed without changes.
File renamed without changes.

components/calendars/CHANGELOG.md renamed to src/calendars/CHANGELOG.md

+1-1
File renamed without changes.
File renamed without changes.

components/calendars/package.json renamed to src/calendars/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
22
"name": "@syncfusion/ej2-react-calendars",
3-
"version": "24.1.43",
3+
"version": "24.1.44",
44
"description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization. for React",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",
77
"keywords": [
8-
"react",
9-
"react-calendars",
8+
"ej2",
9+
"syncfusion",
1010
"ej2-react-calendars"
1111
],
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/syncfusion/ej2-react-ui-components.git"
14+
"url": "https://github.com/syncfusion/ej2-react-calendars.git"
1515
},
1616
"main": "./dist/ej2-react-calendars.umd.min.js",
1717
"module": "./index.js",
1818
"es2015": "dist/es6/ej2-react-calendars.es2015.js",
1919
"readme": "ReadMe.md",
2020
"dependencies": {
21+
"awesome-typescript-loader": "^3.1.3",
22+
"source-map-loader": "^0.2.1",
2123
"@syncfusion/ej2-base": "*",
2224
"@syncfusion/ej2-react-base": "*",
2325
"@syncfusion/ej2-calendars": "*"
2426
},
2527
"devDependencies": {
26-
"awesome-typescript-loader": "^3.1.3",
27-
"source-map-loader": "^0.2.1",
2828
"@types/chai": "^3.4.28",
2929
"@types/es6-promise": "0.0.28",
3030
"@types/jasmine": "2.8.22",
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)