@anypoint-web-components/anypoint-checkbox
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -260,2 +260,3 @@ import { LitElement, html, css } from 'lit-element'; | ||
this.ariaActiveAttribute = 'aria-checked'; | ||
this.checked = false; | ||
/* to work with iron-form */ | ||
@@ -273,3 +274,5 @@ this._hasIronCheckedElementBehavior = true; | ||
} | ||
super.connectedCallback(); | ||
if (super.connectedCallback) { | ||
super.connectedCallback(); | ||
} | ||
if (!this.hasAttribute('aria-checked')) { | ||
@@ -276,0 +279,0 @@ this.setAttribute('aria-checked', 'false'); |
{ | ||
"name": "@anypoint-web-components/anypoint-checkbox", | ||
"description": "Anypoint styled checkbox", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"license": "Apache-2.0", | ||
@@ -32,28 +32,30 @@ "main": "anypoint-checkbox.js", | ||
"@anypoint-web-components/anypoint-form-mixins": "^1.0.1", | ||
"lit-element": "^2.0.1" | ||
"lit-element": "^2.2.1" | ||
}, | ||
"devDependencies": { | ||
"@advanced-rest-client/a11y-suite": "^1.0.0", | ||
"@advanced-rest-client/arc-demo-helper": "^1.0.3", | ||
"@advanced-rest-client/testing-karma-sl": "^1.0.2", | ||
"@advanced-rest-client/arc-demo-helper": "^1.0.12", | ||
"@advanced-rest-client/eslint-config": "^1.0.7", | ||
"@advanced-rest-client/prettier-config": "^0.1.0", | ||
"@advanced-rest-client/testing-karma-sl": "^1.0.3", | ||
"@anypoint-web-components/anypoint-radio-button": "^0.1.2", | ||
"@anypoint-web-components/anypoint-styles": "^1.0.0-preview.1", | ||
"@polymer/iron-form": "^3.0.1", | ||
"@commitlint/cli": "^7.0.0", | ||
"@commitlint/cli": "^8.1.0", | ||
"@commitlint/config-conventional": "^7.0.0", | ||
"@open-wc/eslint-config": "^0.4.1", | ||
"@open-wc/prettier-config": "^0.1.0", | ||
"@open-wc/testing": "^0.11.1", | ||
"@open-wc/testing-karma": "^2.0.6", | ||
"@open-wc/testing": "^2.2.8", | ||
"@open-wc/testing-karma": "^3.1.13", | ||
"@polymer/gen-typescript-declarations": "^1.6.1", | ||
"@polymer/iron-form": "^3.0.1", | ||
"@polymer/iron-test-helpers": "^3.0.1", | ||
"deepmerge": "^4.0.0", | ||
"es-dev-server": "^1.10.4", | ||
"husky": "^1.0.0", | ||
"lint-staged": "^8.0.0", | ||
"owc-dev-server": "^1.0.0", | ||
"sinon": "^7.3.2", | ||
"webpack-merge": "^4.1.5" | ||
"karma": "^4.2.0", | ||
"lint-staged": "^9.2.1", | ||
"sinon": "^7.4.1" | ||
}, | ||
"scripts": { | ||
"test": "karma start --coverage", | ||
"update-types": "gen-typescript-declarations --deleteExisting --outDir .", | ||
"start": "owc-dev-server --app-index demo/index.html --open --watch", | ||
"update-types": "gen-typescript-declarations --deleteExisting --outDir . --verify", | ||
"start": "es-dev-server --app-index demo/index.html --node-resolve --open --watch", | ||
"start:compatibility": "es-dev-server --app-index demo/index.html --compatibility all --node-resolve --open --watch", | ||
"lint:eslint": "eslint --ext .js,.html .", | ||
@@ -60,0 +62,0 @@ "format:eslint": "eslint --ext .js,.html . --fix", |
@@ -1,1 +0,1 @@ | ||
module.exports = require('@open-wc/prettier-config'); | ||
module.exports = require('@advanced-rest-client/prettier-config'); |
@@ -33,8 +33,16 @@ [![Build Status](https://travis-ci.org/anypoint-web-components/anypoint-checkbox.svg?branch=master)](https://travis-ci.org/anypoint-web-components/anypoint-checkbox) | ||
```html | ||
<script type="module" src="node_modules/@anypoint-web-components/anypoint-checkbox/anypoint-checkbox.js"></script> | ||
<anypoint-checkbox>Regular checkbox</anypoint-checkbox> | ||
<anypoint-checkbox checked>Checked checkbox</anypoint-checkbox> | ||
<anypoint-checkbox indeterminate>Indeterminate checkbox</anypoint-checkbox> | ||
<anypoint-checkbox required>Required checkbox</anypoint-checkbox> | ||
<anypoint-checkbox disabled>Disabled checkbox</anypoint-checkbox> | ||
<html> | ||
<head> | ||
<script type="module"> | ||
import '@anypoint-web-components/anypoint-checkbox/anypoint-checkbox.js'; | ||
</script> | ||
</head> | ||
<body> | ||
<anypoint-checkbox>Regular checkbox</anypoint-checkbox> | ||
<anypoint-checkbox checked>Checked checkbox</anypoint-checkbox> | ||
<anypoint-checkbox indeterminate>Indeterminate checkbox</anypoint-checkbox> | ||
<anypoint-checkbox required>Required checkbox</anypoint-checkbox> | ||
<anypoint-checkbox disabled>Disabled checkbox</anypoint-checkbox> | ||
</body> | ||
</html> | ||
``` | ||
@@ -41,0 +49,0 @@ |
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
21561
8
438
113
19
Updatedlit-element@^2.2.1