@lion/switch
Advanced tools
Comparing version 0.12.0 to 0.12.1
# Change Log | ||
## 0.12.1 | ||
### Patch Changes | ||
- 0aa4480e: Refactor of some fields to ensure that \_inputNode has the right type. It starts as HTMLElement for LionField, and all HTMLInputElement, HTMLSelectElement and HTMLTextAreaElement logic, are moved to the right places. | ||
- Updated dependencies [d5faa459] | ||
- Updated dependencies [0aa4480e] | ||
- @lion/form-core@0.6.3 | ||
## 0.12.0 | ||
@@ -4,0 +13,0 @@ |
{ | ||
"name": "@lion/switch", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"description": "A Switch is used for switching a property or feature on and off", | ||
@@ -37,3 +37,3 @@ "license": "MIT", | ||
"@lion/core": "0.13.0", | ||
"@lion/form-core": "0.6.2" | ||
"@lion/form-core": "0.6.3" | ||
}, | ||
@@ -40,0 +40,0 @@ "keywords": [ |
@@ -32,6 +32,6 @@ import { css, html, ScopedElementsMixin } from '@lion/core'; | ||
* Therefore we do a full override and typecast to an intersection type that includes LionSwitchButton | ||
* @returns {HTMLInputElement & LionSwitchButton} | ||
* @returns {LionSwitchButton} | ||
*/ | ||
get _inputNode() { | ||
return /** @type {HTMLInputElement & LionSwitchButton} */ (Array.from(this.children).find( | ||
return /** @type {LionSwitchButton} */ (Array.from(this.children).find( | ||
el => el.slot === 'input', | ||
@@ -38,0 +38,0 @@ )); |
@@ -14,2 +14,3 @@ declare const LionSwitchButton_base: typeof LitElement & import("@open-wc/dedupe-mixin").Constructor<import("@lion/core/types/DisabledWithTabIndexMixinTypes").DisabledWithTabIndexHost> & import("@open-wc/dedupe-mixin").Constructor<import("@lion/core/types/DisabledMixinTypes").DisabledHost>; | ||
static get styles(): import("lit-element").CSSResult[]; | ||
value: string; | ||
role: string; | ||
@@ -16,0 +17,0 @@ checked: boolean; |
@@ -75,2 +75,5 @@ import { html, css, LitElement, DisabledWithTabIndexMixin } from '@lion/core'; | ||
super(); | ||
// inputNode = this, which always requires a value prop | ||
this.value = ''; | ||
this.role = 'switch'; | ||
@@ -77,0 +80,0 @@ this.checked = false; |
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
39476
539
+ Added@lion/form-core@0.6.3(transitive)
- Removed@lion/form-core@0.6.2(transitive)
Updated@lion/form-core@0.6.3