Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-buttons

Package Overview
Dependencies
Maintainers
3
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-buttons - npm Package Compare versions

Comparing version 24.1.41 to 24.1.45

8

CHANGELOG.md

@@ -5,2 +5,10 @@ # Changelog

### Switch
#### Bug Fixes
- `#I530742` - The issue with "Switch unintentionally changed when we touch the switch and drag vertically" has been resolved.
## 24.1.41 (2023-12-18)
### RadioButton

@@ -7,0 +15,0 @@

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 24.1.41
* version : 24.1.45
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"_from": "@syncfusion/ej2-buttons@*",
"_id": "@syncfusion/ej2-buttons@18.64.1",
"_id": "@syncfusion/ej2-buttons@24.1.41",
"_inBundle": false,
"_integrity": "sha512-vSPwcXBB5RZ6CQVAuxhO2aMkD3yq7aAOn1TX807bbU17okTQLspThfjFB9peU4z/I3I7OgGeQMky1hG/fd08+w==",
"_integrity": "sha512-fbVvDYLOBmUn9suOWqVCsn5/FLuCoIo8Gk3x9XPzBnFds+pp2c61jpLJaR3q4/Ox7BWtbUE/hsDDfRpRQSTjjA==",
"_location": "/@syncfusion/ej2-buttons",

@@ -47,4 +47,4 @@ "_phantomChildren": {},

],
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-buttons/-/ej2-buttons-18.64.1.tgz",
"_shasum": "b359265a25fce8a082ec7811265164ed7f1b7a68",
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-buttons/-/ej2-buttons-24.1.41.tgz",
"_shasum": "52b75076e1637d7e4eafce94ec7dafeca24c97d9",
"_spec": "@syncfusion/ej2-buttons@*",

@@ -60,3 +60,3 @@ "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",

"dependencies": {
"@syncfusion/ej2-base": "~24.1.41"
"@syncfusion/ej2-base": "~24.1.42"
},

@@ -107,4 +107,4 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "24.1.41",
"version": "24.1.45",
"sideEffects": false
}

@@ -136,2 +136,2 @@ # JavaScript Button Controls

© Copyright 2023 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
© Copyright 2024 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.

@@ -105,3 +105,3 @@ var __extends = (this && this.__extends) || (function () {

this.element.tabIndex = 0;
this.element.setAttribute('role', 'option');
this.element.setAttribute('role', 'button');
}

@@ -138,3 +138,3 @@ else {

classNames.iconWrapper : ' ')) + ' ' + fieldsData.cssClass).split(' ').filter(function (css) { return css; });
if (!this.chipType()) {
if (!this.chipType() || this.type === 'chip') {
chipListArray = chipArray;

@@ -434,3 +434,3 @@ addClass([this.element], className);

}
else if (e.keyCode === 46 && this.enableDelete) {
else if ((e.keyCode === 46 || e.keyCode === 8) && this.enableDelete) {
this.clickHandler(e, true);

@@ -437,0 +437,0 @@ }

@@ -24,2 +24,4 @@ import { Component, INotifyPropertyChanged } from '@syncfusion/ej2-base';

private initialSwitchCheckedValue;
private bTouchY;
private bTouchX;
/**

@@ -26,0 +28,0 @@ * Triggers when Switch state has been changed by user interaction.

@@ -366,7 +366,24 @@ var __extends = (this && this.__extends) || (function () {

Switch.prototype.switchMouseUp = function (e) {
var aTouchY = 0;
var yDiff = 0;
var aTouchX = 0;
var xDiff = 0;
var target = e.target;
if (e.type === 'touchmove') {
e.preventDefault();
aTouchX = e.changedTouches[0].clientX;
aTouchY = e.changedTouches[0].clientY;
xDiff = this.bTouchX - aTouchX;
yDiff = this.bTouchY - aTouchY;
if (Math.abs(xDiff) < Math.abs(yDiff)) {
this.isDrag = false;
this.rippleTouchHandler('mouseup');
}
else {
this.isDrag = true;
}
}
if (e.type === 'touchstart') {
this.bTouchX = e.changedTouches[0].clientX;
this.bTouchY = e.changedTouches[0].clientY;
this.isDrag = true;

@@ -377,5 +394,9 @@ this.rippleTouchHandler('mousedown');

if ((e.type === 'mouseup' && target.className.indexOf('e-switch') < 0) || e.type === 'touchend') {
this.clickHandler(e);
this.rippleTouchHandler('mouseup');
e.preventDefault();
xDiff = this.bTouchX - e.changedTouches[0].clientX;
yDiff = this.bTouchY - e.changedTouches[0].clientY;
if (Math.abs(xDiff) >= Math.abs(yDiff)) {
this.clickHandler(e);
this.rippleTouchHandler('mouseup');
e.preventDefault();
}
}

@@ -382,0 +403,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc