@dreamworld/dw-checkbox
Advanced tools
Comparing version 1.2.2-dispatch-event-on-updated.1 to 1.2.2-toggle-selection-not-working-though-label.1
@@ -104,3 +104,3 @@ /** | ||
this.alignEnd = false; | ||
this._checked = false; | ||
this.checked = false; | ||
this.indeterminate = false; | ||
@@ -110,13 +110,4 @@ this.label = ""; | ||
} | ||
/** | ||
* dispatch `checked-changed` event. | ||
*/ | ||
updated(changedProps){ | ||
if(changedProps.has('checked')){ | ||
this.dispatchEvent(new CustomEvent('checked-changed', { detail: { checked: this.checked } } )); | ||
} | ||
} | ||
/** | ||
* Toggles current state of the checkbox | ||
@@ -135,5 +126,7 @@ */ | ||
this.checked = e.target.checked; | ||
this.dispatchEvent(new Event('checked-changed', e)); | ||
} | ||
} | ||
window.customElements.define('dw-checkbox', DwCheckbox); |
{ | ||
"name": "@dreamworld/dw-checkbox", | ||
"version": "1.2.2-dispatch-event-on-updated.1", | ||
"version": "1.2.2-toggle-selection-not-working-though-label.1", | ||
"description": "", | ||
@@ -25,3 +25,3 @@ "main": "dw-checkbox.js", | ||
"@dreamworld/dw-form": "1.0.1", | ||
"@material/mwc-checkbox": "^0.6.0", | ||
"@material/mwc-checkbox": "^0.20.0", | ||
"lit-element": "^2.2.1" | ||
@@ -36,4 +36,18 @@ }, | ||
"resolutions": { | ||
"@semantic-release/npm": "5.2.0-beta.5" | ||
"@material/mwc-formfield": "0.20.0", | ||
"@semantic-release/npm": "5.2.0-beta.5", | ||
"lit-element": "2.4.0", | ||
"@material/mwc-base": "0.20.0", | ||
"@material/base": "9.0.0-canary.1c156d69d.0", | ||
"@material/feature-targeting": "9.0.0-canary.1c156d69d.0", | ||
"@material/ripple": "9.0.0-canary.1c156d69d.0", | ||
"@material/theme": "9.0.0-canary.1c156d69d.0", | ||
"tslib": "2.0.3", | ||
"@material/animation": "9.0.0-canary.1c156d69d.0", | ||
"@material/dom": "9.0.0-canary.1c156d69d.0", | ||
"lit-html": "1.3.0", | ||
"@material/form-field": "9.0.0-canary.1c156d69d.0", | ||
"@material/rtl": "9.0.0-canary.1c156d69d.0", | ||
"@material/typography": "9.0.0-canary.1c156d69d.0" | ||
} | ||
} |
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
12741
234
+ Added@material/mwc-base@0.20.0(transitive)
+ Added@material/mwc-checkbox@0.20.0(transitive)
+ Added@material/mwc-ripple@0.20.0(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@material/checkbox@1.1.0(transitive)
- Removed@material/mwc-checkbox@0.6.0(transitive)
- Removed@material/mwc-ripple@0.6.0(transitive)