Comparing version 2.1.18 to 2.1.19
@@ -112,2 +112,3 @@ import { html, css, LitElement } from "lit"; | ||
} | ||
doClick() { | ||
@@ -114,0 +115,0 @@ if (this.disabled) { |
@@ -45,2 +45,10 @@ import { LitElement, html, css } from 'lit'; | ||
static get properties() { | ||
return { | ||
useReactiveLabels: { type: Boolean }, | ||
checkedLabel: { type: String }, | ||
uncheckedLabel: { type: String }, | ||
}; | ||
} | ||
render() { | ||
@@ -52,3 +60,6 @@ return html` | ||
</section> | ||
${this.innerTemplate} | ||
${this.useReactiveLabels | ||
? this.reactiveLabelsTemplate | ||
: this.innerTemplate | ||
} | ||
</div> | ||
@@ -58,2 +69,13 @@ `; | ||
get reactiveLabelsTemplate() { | ||
return html` | ||
<label class="label"> | ||
${this.checked | ||
? this.checkedLabel | ||
: this.uncheckedLabel | ||
} | ||
</label> | ||
` | ||
} | ||
toggle() { | ||
@@ -60,0 +82,0 @@ if (this.disabled) { |
{ | ||
"name": "@dile/ui", | ||
"version": "2.1.18", | ||
"version": "2.1.19", | ||
"description": "UI Core components from dile-components.", | ||
@@ -29,3 +29,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "590589b6c02e4ad4ca232a7959b19eccaea30295" | ||
"gitHead": "6f6fd44a9d3244f6f73e29d50a00a4eb8277286b" | ||
} |
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
213006
6763