@vaadin/vaadin-checkbox
Advanced tools
Comparing version 2.3.0 to 2.4.0-alpha1
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-checkbox", | ||
"version": "2.3.0", | ||
"version": "2.4.0-alpha1", | ||
"main": "vaadin-checkbox.js", | ||
@@ -22,2 +22,3 @@ "author": "Vaadin Ltd", | ||
"files": [ | ||
"vaadin-*.d.ts", | ||
"vaadin-*.js", | ||
@@ -35,12 +36,12 @@ "src", | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/vaadin-control-state-mixin": "^2.1.1", | ||
"@vaadin/vaadin-themable-mixin": "^1.2.1", | ||
"@vaadin/vaadin-control-state-mixin": "^2.2.1", | ||
"@vaadin/vaadin-themable-mixin": "^1.6.1", | ||
"@vaadin/vaadin-lumo-styles": "^1.4.1", | ||
"@vaadin/vaadin-material-styles": "^1.2.0", | ||
"@vaadin/vaadin-element-mixin": "^2.3.0" | ||
"@vaadin/vaadin-element-mixin": "^2.4.1" | ||
}, | ||
"scripts": { | ||
"generate-typings": "gen-typescript-declarations --outDir . --verify" | ||
}, | ||
"devDependencies": { | ||
"generate-typings": "gen-typescript-declarations --outDir . --verify" | ||
}, | ||
"devDependencies": { | ||
"@polymer/iron-component-page": "^4.0.0", | ||
@@ -52,4 +53,4 @@ "@polymer/iron-test-helpers": "^3.0.0", | ||
"@polymer/iron-form": "^3.0.0", | ||
"@vaadin/vaadin-button": "^2.1.0" | ||
"@vaadin/vaadin-button": "^2.4.0-alpha1" | ||
} | ||
} |
@@ -49,2 +49,3 @@ /** | ||
* @mixes ThemableMixin | ||
* @mixes DirMixin | ||
* @element vaadin-checkbox-group | ||
@@ -129,2 +130,3 @@ * @demo demo/index.html | ||
* You can still use Polymer array mutation methods to update the value. | ||
* @type {!Array<!string>} | ||
*/ | ||
@@ -155,2 +157,3 @@ value: { | ||
* This property is set to true when the control value is invalid. | ||
* @type {boolean} | ||
*/ | ||
@@ -233,2 +236,3 @@ invalid: { | ||
/** @private */ | ||
get _checkboxes() { | ||
@@ -238,2 +242,3 @@ return this._filterCheckboxes(this.querySelectorAll('*')); | ||
/** @private */ | ||
_filterCheckboxes(nodes) { | ||
@@ -244,2 +249,3 @@ return Array.from(nodes) | ||
/** @private */ | ||
_disabledChanged(disabled) { | ||
@@ -251,2 +257,6 @@ this.setAttribute('aria-disabled', disabled); | ||
/** | ||
* @param {string} value | ||
* @protected | ||
*/ | ||
_addCheckboxToValue(value) { | ||
@@ -258,2 +268,6 @@ if (this.value.indexOf(value) === -1) { | ||
/** | ||
* @param {string} value | ||
* @protected | ||
*/ | ||
_removeCheckboxFromValue(value) { | ||
@@ -263,2 +277,6 @@ this.value = this.value.filter(v => v !== value); | ||
/** | ||
* @param {CheckboxElement} checkbox | ||
* @protected | ||
*/ | ||
_changeSelectedCheckbox(checkbox) { | ||
@@ -276,2 +294,3 @@ if (this._updatingValue) { | ||
/** @private */ | ||
_updateValue(value, splices) { | ||
@@ -301,2 +320,3 @@ // setting initial value to empty array, skip validation | ||
/** @private */ | ||
_labelChanged(label) { | ||
@@ -310,2 +330,3 @@ if (label) { | ||
/** @private */ | ||
_getErrorMessageAriaHidden(invalid, errorMessage) { | ||
@@ -315,2 +336,6 @@ return (!errorMessage || !invalid).toString(); | ||
/** | ||
* @return {boolean} | ||
* @protected | ||
*/ | ||
_containsFocus() { | ||
@@ -323,2 +348,6 @@ const root = this.getRootNode(); | ||
/** | ||
* @param {boolean} focused | ||
* @protected | ||
*/ | ||
_setFocused(focused) { | ||
@@ -325,0 +354,0 @@ if (focused) { |
@@ -114,3 +114,3 @@ /** | ||
static get version() { | ||
return '2.3.0'; | ||
return '2.4.0-alpha1'; | ||
} | ||
@@ -122,2 +122,3 @@ | ||
* True if the checkbox is checked. | ||
* @type {boolean} | ||
*/ | ||
@@ -135,2 +136,3 @@ checked: { | ||
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#Indeterminate_state_checkboxes | ||
* @type {boolean} | ||
*/ | ||
@@ -153,2 +155,3 @@ indeterminate: { | ||
/** @private */ | ||
_nativeCheckbox: { | ||
@@ -199,2 +202,3 @@ type: Object | ||
/** @private */ | ||
_updateLabelAttribute() { | ||
@@ -210,2 +214,3 @@ const label = this.shadowRoot.querySelector('[part~="label"]'); | ||
/** @private */ | ||
_isAssignedNodesEmpty(nodes) { | ||
@@ -219,2 +224,3 @@ // The assigned nodes considered to be empty if there is no slotted content or only one empty text node | ||
/** @private */ | ||
_checkedChanged(checked) { | ||
@@ -228,2 +234,3 @@ if (this.indeterminate) { | ||
/** @private */ | ||
_indeterminateChanged(indeterminate) { | ||
@@ -237,2 +244,3 @@ if (indeterminate) { | ||
/** @private */ | ||
_addActiveListeners() { | ||
@@ -271,3 +279,6 @@ // DOWN | ||
/** @protected */ | ||
/** | ||
* @return {!HTMLInputElement} | ||
* @protected | ||
*/ | ||
get focusElement() { | ||
@@ -294,2 +305,3 @@ return this.shadowRoot.querySelector('input'); | ||
/** @private */ | ||
_handleClick(e) { | ||
@@ -314,2 +326,3 @@ if (this.__interactionsAllowed(e)) { | ||
/** @protected */ | ||
_toggleChecked() { | ||
@@ -316,0 +329,0 @@ this.checked = !this.checked; |
import './theme/lumo/vaadin-checkbox-group.js'; | ||
export * from './src/vaadin-checkbox-group.js'; |
import './theme/lumo/vaadin-checkbox.js'; | ||
export * from './src/vaadin-checkbox.js'; |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
55212
19
1184
1