@umbraco-ui/uui-boolean-input
Advanced tools
Comparing version 1.9.0-rc.1 to 1.9.0
@@ -35,2 +35,3 @@ import { UUIFormControlMixin, LabelMixin } from '@umbraco-ui/uui-base/lib/mixins'; | ||
this._checked = false; | ||
this.indeterminate = false; | ||
this.disabled = false; | ||
@@ -119,2 +120,3 @@ this.readonly = false; | ||
this.checked = this._input.checked; | ||
this.indeterminate = this._input.indeterminate; | ||
this.dispatchEvent(new UUIBooleanInputEvent(UUIBooleanInputEvent.CHANGE)); | ||
@@ -131,2 +133,3 @@ } | ||
.checked=${this.checked} | ||
.indeterminate=${this.indeterminate} | ||
aria-checked="${this.checked ? "true" : "false"}" | ||
@@ -158,4 +161,3 @@ aria-label=${this.label} | ||
:host([readonly]) label { | ||
cursor: text; | ||
user-select: auto; | ||
cursor: default; | ||
} | ||
@@ -184,3 +186,4 @@ | ||
:host([disabled]) .label { | ||
:host([disabled]) label { | ||
cursor: not-allowed; | ||
opacity: 0.5; | ||
@@ -198,2 +201,5 @@ } | ||
property({ type: Boolean, reflect: true }) | ||
], UUIBooleanInputElement.prototype, "indeterminate", 2); | ||
__decorateClass([ | ||
property({ type: Boolean, reflect: true }) | ||
], UUIBooleanInputElement.prototype, "disabled", 2); | ||
@@ -200,0 +206,0 @@ __decorateClass([ |
@@ -33,2 +33,9 @@ import { LitElement, TemplateResult } from 'lit'; | ||
/** | ||
* Indeterminate state for the input. | ||
* @type {boolean} | ||
* @attr | ||
* @default false | ||
*/ | ||
indeterminate: boolean; | ||
/** | ||
* Disables the input. | ||
@@ -35,0 +42,0 @@ * @type {boolean} |
{ | ||
"name": "@umbraco-ui/uui-boolean-input", | ||
"version": "1.9.0-rc.1", | ||
"version": "1.9.0", | ||
"license": "MIT", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@umbraco-ui/uui-base": "1.9.0-rc.1" | ||
"@umbraco-ui/uui-base": "1.9.0" | ||
}, | ||
@@ -45,3 +45,3 @@ "scripts": { | ||
"homepage": "https://uui.umbraco.com/?path=/story/uui-boolean-input", | ||
"gitHead": "7092b4717d8b9d4825b15e087508b8f75bf81a92" | ||
"gitHead": "37111ea2cebb5883dcef0e682916f1e101013123" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
12062
283
0
+ Added@umbraco-ui/uui-base@1.9.0(transitive)
- Removed@umbraco-ui/uui-base@1.9.0-rc.1(transitive)
Updated@umbraco-ui/uui-base@1.9.0