@material/mwc-base
Advanced tools
Comparing version 0.26.0-canary.dfc00d60.0 to 0.26.0-canary.e1bcf14e.0
@@ -14,3 +14,3 @@ /** | ||
/** | ||
* lit-element uses internal properties with two leading underscores to | ||
* lit uses internal properties with two leading underscores to | ||
* provide storage for accessors | ||
@@ -31,2 +31,8 @@ */ | ||
} | ||
// TODO(b/202853219): Remove this check when internal tooling is | ||
// compatible | ||
// tslint:disable-next-line:no-any bail if applied to internal generated class | ||
if (prototype.dispatchWizEvent) { | ||
return descriptor; | ||
} | ||
const wrappedDescriptor = { | ||
@@ -38,4 +44,5 @@ configurable: true, | ||
const options = constructor.getPropertyOptions(name); | ||
// the attribute will be a string at runtime | ||
attribute = options.attribute; | ||
// if attribute is not a string, use `name` instead | ||
attribute = | ||
typeof options.attribute === 'string' ? options.attribute : name; | ||
} | ||
@@ -79,3 +86,5 @@ if (this.hasAttribute(attribute)) { | ||
*/ | ||
export function ariaProperty(protoOrDescriptor, name, descriptor) { | ||
export function ariaProperty(protoOrDescriptor, name, | ||
// tslint:disable-next-line:no-any any is required as a return type from decorators | ||
descriptor) { | ||
if (name !== undefined) { | ||
@@ -82,0 +91,0 @@ return tsDecorator(protoOrDescriptor, name, descriptor); |
{ | ||
"name": "@material/mwc-base", | ||
"version": "0.26.0-canary.dfc00d60.0", | ||
"version": "0.26.0-canary.e1bcf14e.0", | ||
"description": "", | ||
@@ -15,4 +15,4 @@ "main": "base-element.js", | ||
"@lit/reactive-element": "1.0.0-rc.4", | ||
"@material/base": "=14.0.0-canary.353ca7e9f.0", | ||
"@material/dom": "=14.0.0-canary.353ca7e9f.0", | ||
"@material/base": "=14.0.0-canary.3366a71d7.0", | ||
"@material/dom": "=14.0.0-canary.3366a71d7.0", | ||
"lit": "^2.0.0", | ||
@@ -22,6 +22,6 @@ "tslib": "^2.0.1" | ||
"devDependencies": { | ||
"@material/elevation": "=14.0.0-canary.353ca7e9f.0", | ||
"@material/feature-targeting": "=14.0.0-canary.353ca7e9f.0", | ||
"@material/ripple": "=14.0.0-canary.353ca7e9f.0", | ||
"@material/theme": "=14.0.0-canary.353ca7e9f.0" | ||
"@material/elevation": "=14.0.0-canary.3366a71d7.0", | ||
"@material/feature-targeting": "=14.0.0-canary.3366a71d7.0", | ||
"@material/ripple": "=14.0.0-canary.3366a71d7.0", | ||
"@material/theme": "=14.0.0-canary.3366a71d7.0" | ||
}, | ||
@@ -31,3 +31,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "3edf5d72f0c17bcf7c2e7377e2c0b4579168d2b0" | ||
"gitHead": "3cb6bc85426db9ac617c732735c808fd66cd1572" | ||
} |
Sorry, the diff of this file is not supported yet
51048
495