Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@plcmp/pl-checkbox

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plcmp/pl-checkbox - npm Package Compare versions

Comparing version
0.1.6
to
0.1.7
+2
-2
package.json
{
"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"
}
}

@@ -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 @@ }