@syncfusion/ej2-buttons
Advanced tools
Comparing version 20.4.40 to 20.4.42
@@ -5,2 +5,8 @@ # Changelog | ||
### Checkbox | ||
#### Bug Fixes | ||
- `#I427235` - The issue `cssClass` property not updated properly while string with a white space in the end of the property in checkbox has been fixed. | ||
### Chips | ||
@@ -12,2 +18,4 @@ | ||
## 20.4.40 (2022-12-28) | ||
## 20.3.47 (2022-09-29) | ||
@@ -14,0 +22,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 20.4.40 | ||
* version : 20.4.42 | ||
* Copyright Syncfusion Inc. 2001 - 2020. 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.46.0", | ||
"_id": "@syncfusion/ej2-buttons@20.4.40", | ||
"_inBundle": false, | ||
"_integrity": "sha512-mOnDb4lVluuQ+9rsZW/ZlBN4vzD3SHvYjGPsuw2A9NqgKo4jdIu+UfjE7F7arHjxKx21UaVD8iUTLplSBkTp7A==", | ||
"_integrity": "sha512-JQQGhmvAsh0LJuEw9ze146KmyH55VfjzBd0BZ/nbJmgPRi8VqvqU/ukvdsxCU0kAPlSgF8iqAO2L43bDfDDZBg==", | ||
"_location": "/@syncfusion/ej2-buttons", | ||
@@ -46,4 +46,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-buttons/-/ej2-buttons-18.46.0.tgz", | ||
"_shasum": "e2f276d951bd47b3c934a165f48fce5a0da716d1", | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-buttons/-/ej2-buttons-20.4.40.tgz", | ||
"_shasum": "09663eb95e74febdd2a9573475151e83e7802899", | ||
"_spec": "@syncfusion/ej2-buttons@*", | ||
@@ -59,3 +59,3 @@ "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~20.4.40" | ||
"@syncfusion/ej2-base": "~20.4.42" | ||
}, | ||
@@ -106,4 +106,4 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "20.4.40", | ||
"version": "20.4.42", | ||
"sideEffects": false | ||
} |
@@ -108,2 +108,2 @@ # ej2-buttons Component | ||
© Copyright 2022 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution. | ||
© Copyright 2023 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution. |
@@ -92,3 +92,3 @@ var __extends = (this && this.__extends) || (function () { | ||
if (this.cssClass) { | ||
addClass([this.element], this.cssClass.split(' ')); | ||
addClass([this.element], this.cssClass.replace(/\s+/g, ' ').trim().split(' ')); | ||
} | ||
@@ -275,3 +275,3 @@ if (this.isPrimary) { | ||
if (newProp.cssClass) { | ||
addClass([this.element], newProp.cssClass.split(' ')); | ||
addClass([this.element], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' ')); | ||
} | ||
@@ -278,0 +278,0 @@ break; |
@@ -254,3 +254,3 @@ var __extends = (this && this.__extends) || (function () { | ||
if (this.cssClass) { | ||
addClass([wrapper], this.cssClass.split(' ')); | ||
addClass([wrapper], this.cssClass.replace(/\s+/g, ' ').trim().split(' ')); | ||
} | ||
@@ -342,3 +342,3 @@ wrapper.appendChild(label); | ||
if (newProp.cssClass) { | ||
addClass([wrapper], newProp.cssClass.split(' ')); | ||
addClass([wrapper], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' ')); | ||
} | ||
@@ -345,0 +345,0 @@ break; |
@@ -326,5 +326,7 @@ import { Component, INotifyPropertyChanged } from '@syncfusion/ej2-base'; | ||
* | ||
* @param {number | HTMLElement } fields - We can pass index number or element of chip. | ||
* {% codeBlock src='chips/find/index.md' %}{% endcodeBlock %} | ||
* | ||
* @param {number | HTMLElement } fields - We can pass index number or element of chip. | ||
* | ||
* @returns {void} | ||
*/ | ||
@@ -335,6 +337,8 @@ find(fields: number | HTMLElement): ChipDataArgs; | ||
* | ||
* {% codeBlock src='chips/add/index.md' %}{% endcodeBlock %} | ||
* | ||
* @param {string[] | number[] | ChipModel[] | string | number | ChipModel} chipsData - We can pass array of string or | ||
* array of number or array of chip model or string data or number data or chip model. | ||
* {% codeBlock src='chips/add/index.md' %}{% endcodeBlock %} | ||
* | ||
* @returns {void} | ||
@@ -346,6 +350,8 @@ */ | ||
* | ||
* {% codeBlock src='chips/select/index.md' %}{% endcodeBlock %} | ||
* | ||
* @param {number | number[] | HTMLElement | HTMLElement[]} fields - We can pass number or array of number | ||
* or chip element or array of chip element. | ||
* {% codeBlock src='chips/select/index.md' %}{% endcodeBlock %} | ||
* | ||
* @returns {void} | ||
*/ | ||
@@ -358,6 +364,8 @@ select(fields: number | number[] | HTMLElement | HTMLElement[] | string[], selectionType?: selectionType): void; | ||
* | ||
* {% codeBlock src='chips/remove/index.md' %}{% endcodeBlock %} | ||
* | ||
* @param {number | number[] | HTMLElement | HTMLElement[]} fields - We can pass number or array of number | ||
* or chip element or array of chip element. | ||
* {% codeBlock src='chips/remove/index.md' %}{% endcodeBlock %} | ||
* | ||
* @returns {void} | ||
*/ | ||
@@ -367,4 +375,6 @@ remove(fields: number | number[] | HTMLElement | HTMLElement[]): void; | ||
* Returns the selected chip(s) data. | ||
* | ||
* {% codeBlock src='chips/getSelectedChips/index.md' %}{% endcodeBlock %} | ||
* | ||
* @returns {void} | ||
*/ | ||
@@ -383,4 +393,6 @@ getSelectedChips(): SelectedItem | SelectedItems; | ||
* Removes the component from the DOM and detaches all its related event handlers. Also, it removes the attributes and classes. | ||
* | ||
* {% codeBlock src='chips/destroy/index.md' %}{% endcodeBlock %} | ||
* | ||
* @returns {void} | ||
*/ | ||
@@ -387,0 +399,0 @@ destroy(): void; |
@@ -103,3 +103,4 @@ var __extends = (this && this.__extends) || (function () { | ||
if (this.type === 'chip') { | ||
this.enabled ? this.element.tabIndex = 0 : this.element.setAttribute('aria-disabled', 'true'); | ||
if (this.enabled) | ||
this.element.tabIndex = 0; | ||
this.element.setAttribute('role', 'option'); | ||
@@ -152,4 +153,8 @@ } | ||
} | ||
if (!fieldsData.enabled) { | ||
if (fieldsData.enabled) { | ||
wrapper.setAttribute('aria-disabled', 'false'); | ||
} | ||
else { | ||
wrapper.removeAttribute('tabindex'); | ||
wrapper.setAttribute('aria-disabled', 'true'); | ||
} | ||
@@ -226,5 +231,7 @@ append(chipArray, wrapper); | ||
* | ||
* @param {number | HTMLElement } fields - We can pass index number or element of chip. | ||
* {% codeBlock src='chips/find/index.md' %}{% endcodeBlock %} | ||
* | ||
* @param {number | HTMLElement } fields - We can pass index number or element of chip. | ||
* | ||
* @returns {void} | ||
*/ | ||
@@ -250,6 +257,8 @@ ChipList.prototype.find = function (fields) { | ||
* | ||
* {% codeBlock src='chips/add/index.md' %}{% endcodeBlock %} | ||
* | ||
* @param {string[] | number[] | ChipModel[] | string | number | ChipModel} chipsData - We can pass array of string or | ||
* array of number or array of chip model or string data or number data or chip model. | ||
* {% codeBlock src='chips/add/index.md' %}{% endcodeBlock %} | ||
* | ||
* @returns {void} | ||
@@ -269,6 +278,8 @@ */ | ||
* | ||
* {% codeBlock src='chips/select/index.md' %}{% endcodeBlock %} | ||
* | ||
* @param {number | number[] | HTMLElement | HTMLElement[]} fields - We can pass number or array of number | ||
* or chip element or array of chip element. | ||
* {% codeBlock src='chips/select/index.md' %}{% endcodeBlock %} | ||
* | ||
* @returns {void} | ||
*/ | ||
@@ -339,6 +350,8 @@ ChipList.prototype.select = function (fields, selectionType) { | ||
* | ||
* {% codeBlock src='chips/remove/index.md' %}{% endcodeBlock %} | ||
* | ||
* @param {number | number[] | HTMLElement | HTMLElement[]} fields - We can pass number or array of number | ||
* or chip element or array of chip element. | ||
* {% codeBlock src='chips/remove/index.md' %}{% endcodeBlock %} | ||
* | ||
* @returns {void} | ||
*/ | ||
@@ -367,4 +380,6 @@ ChipList.prototype.remove = function (fields) { | ||
* Returns the selected chip(s) data. | ||
* | ||
* {% codeBlock src='chips/getSelectedChips/index.md' %}{% endcodeBlock %} | ||
* | ||
* @returns {void} | ||
*/ | ||
@@ -563,4 +578,6 @@ ChipList.prototype.getSelectedChips = function () { | ||
* Removes the component from the DOM and detaches all its related event handlers. Also, it removes the attributes and classes. | ||
* | ||
* {% codeBlock src='chips/destroy/index.md' %}{% endcodeBlock %} | ||
* | ||
* @returns {void} | ||
*/ | ||
@@ -567,0 +584,0 @@ ChipList.prototype.destroy = function () { |
@@ -214,3 +214,3 @@ var __extends = (this && this.__extends) || (function () { | ||
if (this.cssClass) { | ||
addClass([wrapper], this.cssClass.split(' ')); | ||
addClass([wrapper], this.cssClass.replace(/\s+/g, ' ').trim().split(' ')); | ||
} | ||
@@ -271,3 +271,3 @@ if (this.label) { | ||
if (newProp.cssClass) { | ||
addClass([wrap], newProp.cssClass.split(' ')); | ||
addClass([wrap], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' ')); | ||
} | ||
@@ -377,3 +377,3 @@ break; | ||
if (key === 'class') { | ||
addClass([wrapper], this.htmlAttributes["" + key].split(' ')); | ||
addClass([wrapper], this.htmlAttributes["" + key].replace(/\s+/g, ' ').trim().split(' ')); | ||
} | ||
@@ -380,0 +380,0 @@ else if (key === 'title' || key === 'style') { |
@@ -181,3 +181,3 @@ var __extends = (this && this.__extends) || (function () { | ||
if (this.cssClass) { | ||
addClass([wrapper], this.cssClass.split(' ')); | ||
addClass([wrapper], this.cssClass.replace(/\s+/g, ' ').trim().split(' ')); | ||
} | ||
@@ -240,3 +240,3 @@ }; | ||
if (newProp.cssClass) { | ||
addClass([wrapper], newProp.cssClass.split(' ')); | ||
addClass([wrapper], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' ')); | ||
} | ||
@@ -243,0 +243,0 @@ break; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8821233
181207