Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vaadin/checkbox-group

Package Overview
Dependencies
Maintainers
14
Versions
409
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/checkbox-group - npm Package Compare versions

Comparing version 23.2.0-alpha3 to 23.2.0-alpha4

web-types.json

22

package.json
{
"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 @@

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