@material/mwc-base
Advanced tools
Comparing version 0.26.0-canary.3a5d5f34.0 to 0.26.0-canary.3b2452cc.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.3a5d5f34.0", | ||
"version": "0.26.0-canary.3b2452cc.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.b6510c8c1.0", | ||
"@material/dom": "=14.0.0-canary.b6510c8c1.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.b6510c8c1.0", | ||
"@material/feature-targeting": "=14.0.0-canary.b6510c8c1.0", | ||
"@material/ripple": "=14.0.0-canary.b6510c8c1.0", | ||
"@material/theme": "=14.0.0-canary.b6510c8c1.0" | ||
}, | ||
@@ -31,3 +31,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "0708ad010478b6186d6be52d3494f33bd4d40e17" | ||
"gitHead": "a95f7a1cbf5dd38cd64c9bb8e02e76d0b8927f1d" | ||
} |
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
51048
495