@material/mwc-formfield
Advanced tools
Comparing version 0.14.0-canary.c759cfbc.0 to 0.14.0-canary.edd465cd.0
@@ -7,3 +7,3 @@ import { __decorate } from "tslib"; | ||
import { html, property, query } from 'lit-element'; | ||
import { classMap } from 'lit-html/directives/class-map'; | ||
import { classMap } from 'lit-html/directives/class-map.js'; | ||
export class FormfieldBase extends BaseElement { | ||
@@ -24,12 +24,18 @@ constructor() { | ||
}, | ||
activateInputRipple: () => { | ||
activateInputRipple: async () => { | ||
const input = this.input; | ||
if (input instanceof FormElement && input.ripple) { | ||
input.ripple.activate(); | ||
if (input instanceof FormElement) { | ||
const ripple = await input.ripple; | ||
if (ripple) { | ||
ripple.activate(); | ||
} | ||
} | ||
}, | ||
deactivateInputRipple: () => { | ||
deactivateInputRipple: async () => { | ||
const input = this.input; | ||
if (input instanceof FormElement && input.ripple) { | ||
input.ripple.deactivate(); | ||
if (input instanceof FormElement) { | ||
const ripple = await input.ripple; | ||
if (ripple) { | ||
ripple.deactivate(); | ||
} | ||
} | ||
@@ -36,0 +42,0 @@ }, |
{ | ||
"name": "@material/mwc-formfield", | ||
"version": "0.14.0-canary.c759cfbc.0", | ||
"version": "0.14.0-canary.edd465cd.0", | ||
"description": "", | ||
@@ -18,4 +18,4 @@ "main": "mwc-formfield.js", | ||
"dependencies": { | ||
"@material/form-field": "=6.0.0-canary.69edc6e28.0", | ||
"@material/mwc-base": "0.14.0-canary.c759cfbc.0", | ||
"@material/form-field": "=6.0.0-canary.9cf5e9842.0", | ||
"@material/mwc-base": "0.14.0-canary.edd465cd.0", | ||
"lit-element": "^2.2.1", | ||
@@ -28,3 +28,3 @@ "lit-html": "^1.1.2", | ||
}, | ||
"gitHead": "e0a8ac49c085c004f390a2995879e67aea1010e7" | ||
"gitHead": "3954ee24dd2fd1d9171cd7a967586e7d2b34ae38" | ||
} |
@@ -27,3 +27,3 @@ # `<mwc-formfield>` [![Published on npm](https://img.shields.io/npm/v/@material/mwc-formfield.svg)](https://www.npmjs.com/package/@material/mwc-formfield) | ||
> tooling step is required to resolve *bare module specifiers*, as well as | ||
> transpilation and polyfills for Edge and IE11. See | ||
> transpilation and polyfills for IE11. See | ||
> [here](https://github.com/material-components/material-components-web-components#quick-start) | ||
@@ -36,3 +36,3 @@ > for detailed instructions. | ||
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/e0a8ac49c085c004f390a2995879e67aea1010e7/packages/formfield/images/with_checkbox.png" width="105px" height="40px"> | ||
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/3954ee24dd2fd1d9171cd7a967586e7d2b34ae38/packages/formfield/images/with_checkbox.png" width="105px" height="40px"> | ||
@@ -52,3 +52,3 @@ ```html | ||
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/e0a8ac49c085c004f390a2995879e67aea1010e7/packages/formfield/images/with_radio.png" width="94px" height="80px"> | ||
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/3954ee24dd2fd1d9171cd7a967586e7d2b34ae38/packages/formfield/images/with_radio.png" width="94px" height="80px"> | ||
@@ -78,3 +78,3 @@ ```html | ||
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/e0a8ac49c085c004f390a2995879e67aea1010e7/packages/formfield/images/with_switch.png" width="160px" height="48px"> | ||
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/3954ee24dd2fd1d9171cd7a967586e7d2b34ae38/packages/formfield/images/with_switch.png" width="160px" height="48px"> | ||
@@ -81,0 +81,0 @@ ```html |
@@ -23,3 +23,3 @@ /** | ||
import {html, property, query} from 'lit-element'; | ||
import {classMap} from 'lit-html/directives/class-map'; | ||
import {classMap} from 'lit-html/directives/class-map.js'; | ||
@@ -59,12 +59,18 @@ export class FormfieldBase extends BaseElement { | ||
}, | ||
activateInputRipple: () => { | ||
activateInputRipple: async () => { | ||
const input = this.input; | ||
if (input instanceof FormElement && input.ripple) { | ||
input.ripple.activate(); | ||
if (input instanceof FormElement) { | ||
const ripple = await input.ripple; | ||
if (ripple) { | ||
ripple.activate(); | ||
} | ||
} | ||
}, | ||
deactivateInputRipple: () => { | ||
deactivateInputRipple: async () => { | ||
const input = this.input; | ||
if (input instanceof FormElement && input.ripple) { | ||
input.ripple.deactivate(); | ||
if (input instanceof FormElement) { | ||
const ripple = await input.ripple; | ||
if (ripple) { | ||
ripple.deactivate(); | ||
} | ||
} | ||
@@ -78,3 +84,3 @@ }, | ||
// be emitted into the runtime, which will cause an "HTMLSlotElement is | ||
// undefined" error in browsers that don't define it (e.g. Edge and IE11). | ||
// undefined" error in browsers that don't define it (e.g. IE11). | ||
@query('slot') protected slotEl!: HTMLElement; | ||
@@ -81,0 +87,0 @@ |
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
44021
321
+ Added@material/mwc-base@0.14.0-canary.edd465cd.0(transitive)
- Removed@material/mwc-base@0.14.0-canary.c759cfbc.0(transitive)