Socket
Socket
Sign inDemoInstall

@anypoint-web-components/anypoint-checkbox

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anypoint-web-components/anypoint-checkbox - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

.idea/anypoint-checkbox.iml

2

package.json
{
"name": "@anypoint-web-components/anypoint-checkbox",
"description": "Anypoint and Material DS styled checkbox",
"version": "1.2.4",
"version": "1.2.5",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "main": "index.js",

@@ -78,10 +78,2 @@ import { LitElement, html } from 'lit-element';

static get formAssociated() {
return true;
}
get form() {
return this._internals && this._internals.form;
}
/**

@@ -129,7 +121,2 @@ * @returns {EventListener} Previously registered event listener or null

this._hasIronCheckedElementBehavior = true;
// @ts-ignore
if (this.attachInternals) {
// @ts-ignore
this._internals = this.attachInternals();
}
}

@@ -198,15 +185,3 @@

this.setAttribute('aria-checked', value ? 'true' : 'false');
if (this._internals && this._internals.setFormValue && this._internals.setValidity) {
this._internals.setFormValue(value ? this.value : '');
if (!this.matches(':disabled') && this.hasAttribute('required') && !value) {
this._internals.setValidity({
customError: true
}, 'This field is required.');
} else {
this._internals.setValidity({});
}
} else {
this.validate(this.checked);
}
this.validate(this.checked);
}

@@ -222,5 +197,2 @@

checkValidity() {
if (this._internals && this._internals.checkValidity) {
return this._internals.checkValidity();
}
return this.required ? this.checked : true;

@@ -235,13 +207,7 @@ }

this.checked = false;
if (this._internals && this._internals.setFormValue) {
this._internals.setFormValue('');
}
}
formStateRestoreCallback(state) {
if (this._internals && this._internals.setFormValue) {
this._internals.setFormValue(state);
}
this.checked = !!state;
}
}
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