@vaadin/checkbox-group
Advanced tools
Comparing version 23.2.0-alpha3 to 23.2.0-alpha4
{ | ||
"name": "@vaadin/checkbox-group", | ||
"version": "23.2.0-alpha3", | ||
"version": "23.2.0-alpha4", | ||
"publishConfig": { | ||
@@ -26,3 +26,5 @@ "access": "public" | ||
"vaadin-*.d.ts", | ||
"vaadin-*.js" | ||
"vaadin-*.js", | ||
"web-types.json", | ||
"web-types.lit.json" | ||
], | ||
@@ -38,7 +40,7 @@ "keywords": [ | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/checkbox": "23.2.0-alpha3", | ||
"@vaadin/component-base": "23.2.0-alpha3", | ||
"@vaadin/vaadin-lumo-styles": "23.2.0-alpha3", | ||
"@vaadin/vaadin-material-styles": "23.2.0-alpha3", | ||
"@vaadin/vaadin-themable-mixin": "23.2.0-alpha3" | ||
"@vaadin/checkbox": "23.2.0-alpha4", | ||
"@vaadin/component-base": "23.2.0-alpha4", | ||
"@vaadin/vaadin-lumo-styles": "23.2.0-alpha4", | ||
"@vaadin/vaadin-material-styles": "23.2.0-alpha4", | ||
"@vaadin/vaadin-themable-mixin": "23.2.0-alpha4" | ||
}, | ||
@@ -50,3 +52,7 @@ "devDependencies": { | ||
}, | ||
"gitHead": "06e5875be93ca50da2846dafc65a8531010c0576" | ||
"web-types": [ | ||
"web-types.json", | ||
"web-types.lit.json" | ||
], | ||
"gitHead": "cbf5f1d0f38ac9b81c65cf9ef5660182e176e598" | ||
} |
@@ -80,6 +80,6 @@ /** | ||
/** | ||
* The value of the checkbox group. | ||
* Note: toggling the checkboxes modifies the value by creating new | ||
* array each time, to override Polymer dirty-checking for arrays. | ||
* You can still use Polymer array mutation methods to update the value. | ||
* An array containing values of the currently checked checkboxes. | ||
* | ||
* The array is immutable so toggling checkboxes always results in | ||
* creating a new array. | ||
*/ | ||
@@ -91,3 +91,3 @@ value: string[]; | ||
listener: (this: CheckboxGroup, ev: CheckboxGroupEventMap[K]) => void, | ||
options?: boolean | AddEventListenerOptions, | ||
options?: AddEventListenerOptions | boolean, | ||
): void; | ||
@@ -98,3 +98,3 @@ | ||
listener: (this: CheckboxGroup, ev: CheckboxGroupEventMap[K]) => void, | ||
options?: boolean | EventListenerOptions, | ||
options?: EventListenerOptions | boolean, | ||
): void; | ||
@@ -101,0 +101,0 @@ } |
@@ -120,6 +120,7 @@ /** | ||
/** | ||
* The value of the checkbox group. | ||
* Note: toggling the checkboxes modifies the value by creating new | ||
* array each time, to override Polymer dirty-checking for arrays. | ||
* You can still use Polymer array mutation methods to update the value. | ||
* An array containing values of the currently checked checkboxes. | ||
* | ||
* The array is immutable so toggling checkboxes always results in | ||
* creating a new array. | ||
* | ||
* @type {!Array<!string>} | ||
@@ -131,2 +132,3 @@ */ | ||
notify: true, | ||
observer: '__valueChanged', | ||
}, | ||
@@ -136,6 +138,2 @@ }; | ||
static get observers() { | ||
return ['__valueChanged(value, value.splices)']; | ||
} | ||
constructor() { | ||
@@ -311,12 +309,11 @@ super(); | ||
* @param {string | null | undefined} value | ||
* @param {string | null | undefined} oldValue | ||
* @private | ||
*/ | ||
__valueChanged(value) { | ||
__valueChanged(value, oldValue) { | ||
// Setting initial value to empty array, skip validation | ||
if (value.length === 0 && this.__oldValue === undefined) { | ||
if (value.length === 0 && oldValue === undefined) { | ||
return; | ||
} | ||
this.__oldValue = value; | ||
this.toggleAttribute('has-value', value.length > 0); | ||
@@ -328,3 +325,5 @@ | ||
this.validate(); | ||
if (oldValue !== undefined) { | ||
this.validate(); | ||
} | ||
} | ||
@@ -331,0 +330,0 @@ |
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
43549
13
786
+ Added@vaadin/checkbox@23.2.0-alpha4(transitive)
+ Added@vaadin/component-base@23.2.0-alpha4(transitive)
+ Added@vaadin/field-base@23.2.0-alpha4(transitive)
+ Added@vaadin/icon@23.2.0-alpha4(transitive)
+ Added@vaadin/vaadin-lumo-styles@23.2.0-alpha4(transitive)
+ Added@vaadin/vaadin-material-styles@23.2.0-alpha4(transitive)
+ Added@vaadin/vaadin-themable-mixin@23.2.0-alpha4(transitive)
- Removed@vaadin/checkbox@23.2.0-alpha3(transitive)
- Removed@vaadin/component-base@23.2.0-alpha3(transitive)
- Removed@vaadin/field-base@23.2.0-alpha3(transitive)
- Removed@vaadin/icon@23.2.0-alpha3(transitive)
- Removed@vaadin/vaadin-lumo-styles@23.2.0-alpha3(transitive)
- Removed@vaadin/vaadin-material-styles@23.2.0-alpha3(transitive)
- Removed@vaadin/vaadin-themable-mixin@23.2.0-alpha3(transitive)