@plcmp/pl-checkbox
Advanced tools
+2
-2
| { | ||
| "name": "@plcmp/pl-checkbox", | ||
| "version": "0.1.6", | ||
| "version": "0.1.7", | ||
| "description": "Simple checkbox component.", | ||
@@ -26,5 +26,5 @@ "main": "pl-checkbox.js", | ||
| "dependencies": { | ||
| "polylib": "^1.0.0", | ||
| "polylib": "^1.1.4", | ||
| "@plcmp/pl-labeled-container": "^0.1.1" | ||
| } | ||
| } |
+14
-7
@@ -7,10 +7,12 @@ import { PlElement, html, css } from "polylib"; | ||
| static properties = { | ||
| label: { type: String }, | ||
| variant: { type: String }, | ||
| orientation: { type: String }, | ||
| label: { type: String }, | ||
| variant: { type: String }, | ||
| orientation: { type: String }, | ||
| caption: { type: String }, | ||
| disabled: { type: Boolean, reflectToAttribute: true }, | ||
| hidden: { type: Boolean, reflectToAttribute: true }, | ||
| checked: { type: Boolean, observer: '_checkedObserver' } | ||
| caption: { type: String }, | ||
| disabled: { type: Boolean, reflectToAttribute: true }, | ||
| hidden: { type: Boolean, reflectToAttribute: true }, | ||
| readonly: { type: Boolean, reflectToAttribute: true }, | ||
| checked: { type: Boolean, observer: '_checkedObserver' } | ||
| }; | ||
@@ -65,2 +67,6 @@ | ||
| :host([readonly]) { | ||
| pointer-events: none; | ||
| } | ||
| .checkbox-container { | ||
@@ -164,2 +170,3 @@ display: flex; | ||
| _onClick() { | ||
| if (this.readonly) return; | ||
| this.checked = !this.checked; | ||
@@ -166,0 +173,0 @@ } |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
7757
2.05%144
3.6%0
-100%Updated