@material/mwc-checkbox
Advanced tools
Comparing version 0.22.1 to 0.23.0-canary.21918905.0
@@ -18,3 +18,3 @@ /** | ||
disabled: boolean; | ||
name?: string; | ||
name: string; | ||
value: string; | ||
@@ -36,3 +36,2 @@ /** @soyPrefixAttribute */ | ||
protected focused: boolean; | ||
protected useStateLayerCustomProperties: boolean; | ||
ripple: Promise<Ripple | null>; | ||
@@ -48,2 +47,4 @@ protected mdcFoundationClass: undefined; | ||
protected renderRipple(): TemplateResult | string; | ||
/** @soyTemplate */ | ||
protected renderRippleTemplate(): TemplateResult; | ||
/** | ||
@@ -55,2 +56,3 @@ * @soyTemplate | ||
protected render(): TemplateResult; | ||
protected setFormData(formData: FormData): void; | ||
protected handleFocus(): void; | ||
@@ -57,0 +59,0 @@ protected handleBlur(): void; |
@@ -1,2 +0,1 @@ | ||
import { __decorate } from "tslib"; | ||
/** | ||
@@ -7,2 +6,5 @@ * @license | ||
*/ | ||
import { __decorate } from "tslib"; | ||
// Style preference for leading underscores. | ||
// tslint:disable:strip-private-property-underscore | ||
import '@material/mwc-ripple/mwc-ripple'; | ||
@@ -22,3 +24,4 @@ import { ariaProperty } from '@material/mwc-base/aria-property'; | ||
this.disabled = false; | ||
this.value = ''; | ||
this.name = ''; | ||
this.value = 'on'; | ||
/** | ||
@@ -33,3 +36,2 @@ * Touch target extends beyond visual boundary of a component by default. | ||
this.focused = false; | ||
this.useStateLayerCustomProperties = false; | ||
// MDC Foundation is unused | ||
@@ -77,7 +79,9 @@ this.mdcFoundationClass = undefined; | ||
renderRipple() { | ||
return this.shouldRenderRipple ? html `<mwc-ripple | ||
return this.shouldRenderRipple ? this.renderRippleTemplate() : ''; | ||
} | ||
/** @soyTemplate */ | ||
renderRippleTemplate() { | ||
return html `<mwc-ripple | ||
.disabled="${this.disabled}" | ||
.internalUseStateLayerCustomProperties="${this.useStateLayerCustomProperties}" | ||
unbounded></mwc-ripple>` : | ||
''; | ||
unbounded></mwc-ripple>`; | ||
} | ||
@@ -146,2 +150,7 @@ /** | ||
} | ||
setFormData(formData) { | ||
if (this.name && this.checked) { | ||
formData.append(this.name, this.value); | ||
} | ||
} | ||
handleFocus() { | ||
@@ -239,5 +248,2 @@ this.focused = true; | ||
__decorate([ | ||
state() | ||
], CheckboxBase.prototype, "useStateLayerCustomProperties", void 0); | ||
__decorate([ | ||
queryAsync('mwc-ripple') | ||
@@ -244,0 +250,0 @@ ], CheckboxBase.prototype, "ripple", void 0); |
@@ -0,1 +1,6 @@ | ||
/** | ||
* @license | ||
* Copyright 2018 Google LLC | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
import { CheckboxBase } from './mwc-checkbox-base'; | ||
@@ -2,0 +7,0 @@ declare global { |
@@ -1,2 +0,1 @@ | ||
import { __decorate } from "tslib"; | ||
/** | ||
@@ -7,2 +6,5 @@ * @license | ||
*/ | ||
import { __decorate } from "tslib"; | ||
// Style preference for leading underscores. | ||
// tslint:disable:strip-private-property-underscore | ||
import { customElement } from 'lit-element'; | ||
@@ -9,0 +11,0 @@ import { CheckboxBase } from './mwc-checkbox-base'; |
{ | ||
"name": "@material/mwc-checkbox", | ||
"version": "0.22.1", | ||
"version": "0.23.0-canary.21918905.0", | ||
"description": "Material Design checkbox web component", | ||
@@ -19,4 +19,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@material/mwc-base": "^0.22.1", | ||
"@material/mwc-ripple": "^0.22.1", | ||
"@material/mwc-base": "0.23.0-canary.21918905.0", | ||
"@material/mwc-ripple": "0.23.0-canary.21918905.0", | ||
"lit-element": "^2.5.1", | ||
@@ -30,5 +30,5 @@ "lit-html": "^1.4.1", | ||
"devDependencies": { | ||
"@material/checkbox": "=12.0.0-canary.22d29cbb4.0", | ||
"@material/theme": "=12.0.0-canary.22d29cbb4.0", | ||
"@material/touch-target": "=12.0.0-canary.22d29cbb4.0" | ||
"@material/checkbox": "=13.0.0-canary.cc5377458.0", | ||
"@material/theme": "=13.0.0-canary.cc5377458.0", | ||
"@material/touch-target": "=13.0.0-canary.cc5377458.0" | ||
}, | ||
@@ -38,3 +38,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "fbc09b4e8766843c4aef86023c2cfa4cb9e7cf5d" | ||
"gitHead": "b4df0dc9ece9df56af685bbc48963988f2cb45f8" | ||
} |
@@ -30,3 +30,3 @@ # `<mwc-checkbox>` [![Published on npm](https://img.shields.io/npm/v/@material/mwc-checkbox.svg)](https://www.npmjs.com/package/@material/mwc-checkbox) | ||
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/fbc09b4e8766843c4aef86023c2cfa4cb9e7cf5d/packages/checkbox/images/checked.png" width="29px" height="29px"> | ||
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/b4df0dc9ece9df56af685bbc48963988f2cb45f8/packages/checkbox/images/checked.png" width="29px" height="29px"> | ||
@@ -48,3 +48,3 @@ ```html | ||
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/fbc09b4e8766843c4aef86023c2cfa4cb9e7cf5d/packages/checkbox/images/standard_disabled.png" height="80px"> | ||
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/b4df0dc9ece9df56af685bbc48963988f2cb45f8/packages/checkbox/images/standard_disabled.png" height="80px"> | ||
@@ -67,3 +67,3 @@ ```html | ||
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/fbc09b4e8766843c4aef86023c2cfa4cb9e7cf5d/packages/checkbox/images/styled_standard_disabled.png" height="80px"> | ||
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/b4df0dc9ece9df56af685bbc48963988f2cb45f8/packages/checkbox/images/styled_standard_disabled.png" height="80px"> | ||
@@ -103,3 +103,3 @@ ```html | ||
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/fbc09b4e8766843c4aef86023c2cfa4cb9e7cf5d/packages/checkbox/images/formfield.png" width="132px" height="123px"> | ||
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/b4df0dc9ece9df56af685bbc48963988f2cb45f8/packages/checkbox/images/formfield.png" width="132px" height="123px"> | ||
@@ -161,5 +161,5 @@ ```html | ||
-------------------------------- | ------------------------------------------------------------- | ----------- | ||
`--mdc-checkbox-ink-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/fbc09b4e8766843c4aef86023c2cfa4cb9e7cf5d/packages/checkbox/images/color_fff.png) `#fff` | Color of mark inside a `checked` or `indeterminate` checkbox (enabled or disabled). | ||
`--mdc-checkbox-unchecked-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/fbc09b4e8766843c4aef86023c2cfa4cb9e7cf5d/packages/checkbox/images/color_0,0,0,54.png) `rgba(0, 0, 0, 0.54)` | Color of the unchecked box. | ||
`--mdc-checkbox-disabled-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/fbc09b4e8766843c4aef86023c2cfa4cb9e7cf5d/packages/checkbox/images/color_0,0,0,38.png) `rgba(0, 0, 0, 0.38)` | Color of the checkbox box and fill when disabled. | ||
`--mdc-checkbox-ink-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/b4df0dc9ece9df56af685bbc48963988f2cb45f8/packages/checkbox/images/color_fff.png) `#fff` | Color of mark inside a `checked` or `indeterminate` checkbox (enabled or disabled). | ||
`--mdc-checkbox-unchecked-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/b4df0dc9ece9df56af685bbc48963988f2cb45f8/packages/checkbox/images/color_0,0,0,54.png) `rgba(0, 0, 0, 0.54)` | Color of the unchecked box. | ||
`--mdc-checkbox-disabled-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/b4df0dc9ece9df56af685bbc48963988f2cb45f8/packages/checkbox/images/color_0,0,0,38.png) `rgba(0, 0, 0, 0.38)` | Color of the checkbox box and fill when disabled. | ||
@@ -166,0 +166,0 @@ #### Global Custom Properties |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
83259
413
+ Added@material/mwc-base@0.23.0-canary.21918905.0(transitive)
+ Added@material/mwc-ripple@0.23.0-canary.21918905.0(transitive)
- Removed@material/mwc-base@0.22.1(transitive)
- Removed@material/mwc-ripple@0.22.1(transitive)