Skip to content

Commit deb1151

Browse files
author
pipeline
committed
v31.2.18 is released
1 parent ab66b5b commit deb1151

File tree

130 files changed

+1340
-262
lines changed

Some content is hidden

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

130 files changed

+1340
-262
lines changed

controls/base/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22

33
## [Unreleased]
44

5-
## 31.2.16 (2025-12-02)
5+
## 31.2.18 (2025-12-09)
6+
7+
### Common
8+
9+
#### Bug Fixes
10+
11+
- `#787955` - Resolved an issue where opening HTML via File Explorer switched layout from Page to Web by handling file:// origin in postMessage.
12+
13+
## 31.2.5 (2025-11-04)
614

715
### Common
816

controls/base/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-base",
3-
"version": "31.2.4",
3+
"version": "31.2.12",
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/src/util.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ export function setImmediate(handler: Function): Function {
5656
}
5757
};
5858
window.addEventListener('message', <EventListener>messageHandler, false);
59-
window.postMessage(secret, window.location.origin);
59+
const origin = window.location.origin.indexOf('file://') === 0 ? '*' : window.location.origin;
60+
window.postMessage(secret, origin);
6061
return unbind = () => {
6162
window.removeEventListener('message', <EventListener>messageHandler);
6263
handler = messageHandler = secret = undefined;

controls/base/src/validate-lic.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,16 @@ function convertToChar(cArr: number[]): string {
336336
* @returns {void}
337337
*/
338338
export function registerLicense(key: string): void {
339+
if (typeof window !== 'undefined') {
340+
key = (window as any).syncfusionLicenseKey ? (window as any).syncfusionLicenseKey : key;
341+
}
339342
licenseValidator = new LicenseValidator(key);
340343
}
341344

342345
export const validateLicense: Function = (component: string, key?: string): boolean => {
346+
if (typeof window !== 'undefined') {
347+
key = (window as any).syncfusionLicenseKey ? (window as any).syncfusionLicenseKey : key;
348+
}
343349
if (key) {
344350
registerLicense(key);
345351
}

controls/buttons/CHANGELOG.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,31 @@
22

33
## [Unreleased]
44

5-
## 30.1.37 (2025-06-25)
5+
## 31.2.18 (2025-12-09)
6+
7+
### Button
8+
9+
#### Bug Fixes
10+
11+
- `#I785731` - Fixed the issue where a CSP violation occurs when clicking the Apply button in the `DateRangePicker` component.
12+
13+
## 31.2.3 (2025-10-22)
14+
15+
### Chip
16+
17+
#### Bug Fixes
18+
19+
- `#I771127` - Implemented a fix to prevent chip reordering when random clicks occur, ensuring consistent behaviour when the `allowDragAndDrop` feature is enabled.
20+
21+
## 31.1.21 (2025-09-23)
22+
23+
### Checkbox
24+
25+
#### Bug Fixes
26+
27+
- `#FD69833`- Fixed an issue where `EnablePersistence` was not functioning correctly in the CheckBox component.
28+
29+
## 31.1.17 (2025-09-05)
630

731
### Chip
832

controls/buttons/README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,6 @@ The [JavaScript Speed Dial](https://www.syncfusion.com/javascript-ui-controls/js
129129
* [Modal](https://ej2.syncfusion.com/documentation/speed-dial/modal) - Adds an overlay to prevent the background interaction.
130130
* [Templates](https://ej2.syncfusion.com/documentation/speed-dial/template) - Customize Speed Dial items and the popup content using templates.
131131

132-
<p align="center">
133-
Trusted by the world's leading companies
134-
<a href="https://www.syncfusion.com/">
135-
<img src="https://raw.githubusercontent.com/SyncfusionExamples/nuget-img/master/syncfusion/syncfusion-trusted-companies.webp" alt="Syncfusion logo">
136-
</a>
137-
</p>
138-
139132
## Setup
140133

141134
To install `buttons` and its dependent packages, use the following command,
@@ -156,6 +149,15 @@ Button controls are also offered to following list of frameworks.
156149
* Expanse Tracker - [Source](https://github.com/syncfusion/ej2-sample-ts-expensetracker), [Live Demo](https://ej2.syncfusion.com/showcase/typescript/expensetracker/?utm_source=npm&utm_campaign=button#/dashboard)
157150
* Loan Calculator - [Source](https://github.com/syncfusion/ej2-sample-ts-loancalculator), [Live Demo](https://ej2.syncfusion.com/showcase/typescript/loancalculator/?utm_source=npm&utm_campaign=button)
158151

152+
## Resources
153+
154+
* [Documentation](https://ej2.syncfusion.com/documentation/button/getting-started)
155+
* [Theme Studio](https://ej2.syncfusion.com/themestudio/)
156+
* [Custom Resource Generator](https://crg.syncfusion.com/)
157+
* [What's New](https://www.syncfusion.com/products/whatsnew/essential-js2?utm_medium=listing&utm_source=github)
158+
* [Road Map](https://www.syncfusion.com/products/roadmap/essential-js2?utm_medium=listing&utm_source=github)
159+
* [E-Books](https://www.syncfusion.com/ebooks?tag=javascript&utm_medium=listing&utm_source=github)
160+
159161
## Support
160162

161163
Product support is available through following mediums.
@@ -172,10 +174,10 @@ Check the changelog [here](https://github.com/syncfusion/ej2-javascript-ui-contr
172174

173175
## License and copyright
174176

175-
> This is a commercial product and requires a paid license for possession or use. Syncfusion<sup>®</sup> licensed software, including this component, is subject to the terms and conditions of Syncfusion<sup>®</sup> [EULA](https://www.syncfusion.com/eula/es/). To acquire a license for 80+ [JavaScript UI controls](https://www.syncfusion.com/javascript-ui-controls), you can [purchase](https://www.syncfusion.com/sales/products) or [start a free 30-day trial](https://www.syncfusion.com/account/manage-trials/start-trials).
177+
> This is a commercial product and requires a paid license for possession or use. Syncfusion<sup>®</sup> licensed software, including this component, is subject to the terms and conditions of Syncfusion<sup>®</sup> [EULA](https://www.syncfusion.com/eula/es/). To acquire a license for 140+ [JavaScript UI controls](https://www.syncfusion.com/javascript-ui-controls), you can [purchase](https://www.syncfusion.com/sales/products) or [start a free 30-day trial](https://www.syncfusion.com/account/manage-trials/start-trials).
176178
177179
> A [free community license](https://www.syncfusion.com/products/communitylicense) is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
178180
179181
See [LICENSE FILE](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/license?utm_source=npm&utm_campaign=button) for more info.
180182

181-
&copy; Copyright 2024 Syncfusion<sup>®</sup> Inc. All Rights Reserved. The Syncfusion<sup>®</sup> Essential Studio<sup>®</sup> license and copyright applies to this distribution.
183+
&copy; Copyright 2025 Syncfusion<sup>®</sup> Inc. All Rights Reserved. The Syncfusion<sup>®</sup> Essential Studio<sup>®</sup> license and copyright applies to this distribution.

controls/buttons/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-buttons",
3-
"version": "30.1.37",
3+
"version": "31.2.16",
44
"description": "A package of feature-rich Essential JS 2 components such as Button, CheckBox, RadioButton and Switch.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/buttons/src/button/button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export class Button extends Component<HTMLButtonElement> implements INotifyPrope
260260
this.element.removeAttribute('disabled');
261261
}
262262
if (this.content) {
263-
this.element.innerHTML = this.element.innerHTML.replace(this.content, '');
263+
this.element.textContent = '';
264264
}
265265
const span: Element = this.element.querySelector('span.e-btn-icon') as Element;
266266
if (span) {

controls/buttons/src/check-box/check-box.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,10 @@ export class CheckBox extends Component<HTMLInputElement> implements INotifyProp
526526
let element: HTMLInputElement = this.element;
527527
this.tagName = this.element.tagName;
528528
element = wrapperInitialize(this.createElement, 'EJS-CHECKBOX', 'checkbox', element, WRAPPER, 'checkbox');
529+
if (this.element.hasAttribute('id') && this.isAngular && this.element.tagName === 'EJS-CHECKBOX') {
530+
element.id = this.element.id;
531+
this.element.removeAttribute('id');
532+
}
529533
this.element = element;
530534
if (this.element.getAttribute('type') !== 'checkbox') {
531535
this.element.setAttribute('type', 'checkbox');

controls/buttons/src/chips/chip-list.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ export class ChipList extends Component<HTMLElement> implements INotifyPropertyC
568568
preventDefault: false,
569569
clone: true,
570570
dragArea: this.dragArea,
571+
distance: 8,
571572
helper: () => {
572573
clonedChipElement = chip.cloneNode(true) as HTMLElement;
573574
clonedChipElement.classList.add(classNames.cloneChip);

0 commit comments

Comments
 (0)