github
117 of 193 branches covered (60.62%)
0 of 197 new or added lines in 10 files covered. (0.0%)
4 existing lines in 1 file now uncovered.9633 of 20254 relevant lines covered (47.56%)
712.78 hits per line
NEW
|
/** @format */
|
|
NEW
|
/* eslint-disable class-methods-use-this, max-classes-per-file */
|
× |
NEW
|
|
× |
NEW
|
import { LsmbBaseInput } from "@/elements/lsmb-base-input"; |
× |
NEW
|
|
× |
NEW
|
export class LsmbBaseChecked extends LsmbBaseInput { |
× |
NEW
|
|
× |
NEW
|
static get observedAttributes() {
|
× |
NEW
|
/* all but "checked" prop are inherited */
|
× |
NEW
|
return ["disabled", "readonly", "required", "value", "checked"]; |
× |
NEW
|
} |
× |
NEW
|
|
× |
NEW
|
_boolAttrs() { |
× |
NEW
|
return ["disabled", "readonly", "required", "checked"]; |
× |
NEW
|
} |
× |
NEW
|
|
× |
NEW
|
get checked() { |
× |
NEW
|
return this.hasAttribute("checked"); |
× |
NEW
|
} |
× |
NEW
|
|
× |
NEW
|
set checked(newValue) { |
× |
NEW
|
if (newValue) {
|
× |
NEW
|
this.setAttribute("checked", ""); |
× |
NEW
|
} else {
|
× |
NEW
|
this.removeAttribute("checked"); |
× |
NEW
|
} |
× |
NEW
|
} |
× |
NEW
|
} |
× |