@material/mwc-base
Advanced tools
Comparing version 0.26.0-canary.3a5d5f34.0 to 0.26.0-canary.406d6fe1.0
@@ -30,2 +30,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 = { | ||
@@ -37,4 +43,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; | ||
} | ||
@@ -78,3 +85,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) { | ||
@@ -81,0 +90,0 @@ return tsDecorator(protoOrDescriptor, name, descriptor); |
{ | ||
"name": "@material/mwc-base", | ||
"version": "0.26.0-canary.3a5d5f34.0", | ||
"version": "0.26.0-canary.406d6fe1.0", | ||
"description": "", | ||
@@ -15,4 +15,4 @@ "main": "base-element.js", | ||
"@lit/reactive-element": "1.0.0-rc.4", | ||
"@material/base": "=13.0.0-canary.c79aa0cdd.0", | ||
"@material/dom": "=13.0.0-canary.c79aa0cdd.0", | ||
"@material/base": "=14.0.0-canary.353ca7e9f.0", | ||
"@material/dom": "=14.0.0-canary.353ca7e9f.0", | ||
"lit": "^2.0.0", | ||
@@ -22,6 +22,6 @@ "tslib": "^2.0.1" | ||
"devDependencies": { | ||
"@material/elevation": "=13.0.0-canary.c79aa0cdd.0", | ||
"@material/feature-targeting": "=13.0.0-canary.c79aa0cdd.0", | ||
"@material/ripple": "=13.0.0-canary.c79aa0cdd.0", | ||
"@material/theme": "=13.0.0-canary.c79aa0cdd.0" | ||
"@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" | ||
}, | ||
@@ -31,3 +31,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "0708ad010478b6186d6be52d3494f33bd4d40e17" | ||
"gitHead": "d1410f3120b13ff08ccd731739c038b9fb14af78" | ||
} |
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
51064
495