@vaadin/select
Advanced tools
Comparing version 23.2.0-alpha2 to 23.2.0-alpha3
{ | ||
"name": "@vaadin/select", | ||
"version": "23.2.0-alpha2", | ||
"version": "23.2.0-alpha3", | ||
"publishConfig": { | ||
@@ -39,18 +39,18 @@ "access": "public" | ||
"@polymer/polymer": "^3.2.0", | ||
"@vaadin/button": "23.2.0-alpha2", | ||
"@vaadin/component-base": "23.2.0-alpha2", | ||
"@vaadin/field-base": "23.2.0-alpha2", | ||
"@vaadin/input-container": "23.2.0-alpha2", | ||
"@vaadin/item": "23.2.0-alpha2", | ||
"@vaadin/list-box": "23.2.0-alpha2", | ||
"@vaadin/lit-renderer": "23.2.0-alpha2", | ||
"@vaadin/vaadin-list-mixin": "23.2.0-alpha2", | ||
"@vaadin/vaadin-lumo-styles": "23.2.0-alpha2", | ||
"@vaadin/vaadin-material-styles": "23.2.0-alpha2", | ||
"@vaadin/vaadin-overlay": "23.2.0-alpha2", | ||
"@vaadin/vaadin-themable-mixin": "23.2.0-alpha2" | ||
"@vaadin/button": "23.2.0-alpha3", | ||
"@vaadin/component-base": "23.2.0-alpha3", | ||
"@vaadin/field-base": "23.2.0-alpha3", | ||
"@vaadin/input-container": "23.2.0-alpha3", | ||
"@vaadin/item": "23.2.0-alpha3", | ||
"@vaadin/list-box": "23.2.0-alpha3", | ||
"@vaadin/lit-renderer": "23.2.0-alpha3", | ||
"@vaadin/vaadin-list-mixin": "23.2.0-alpha3", | ||
"@vaadin/vaadin-lumo-styles": "23.2.0-alpha3", | ||
"@vaadin/vaadin-material-styles": "23.2.0-alpha3", | ||
"@vaadin/vaadin-overlay": "23.2.0-alpha3", | ||
"@vaadin/vaadin-themable-mixin": "23.2.0-alpha3" | ||
}, | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/polymer-legacy-adapter": "23.2.0-alpha2", | ||
"@vaadin/polymer-legacy-adapter": "23.2.0-alpha3", | ||
"@vaadin/testing-helpers": "^0.3.2", | ||
@@ -60,3 +60,3 @@ "lit": "^2.0.0", | ||
}, | ||
"gitHead": "c9b8113d0fa9a602f8b9cb915c1826355af2e8df" | ||
"gitHead": "06e5875be93ca50da2846dafc65a8531010c0576" | ||
} |
@@ -6,6 +6,6 @@ /** | ||
*/ | ||
import { TemplateResult } from 'lit'; | ||
import { DirectiveResult } from 'lit/directive.js'; | ||
import type { TemplateResult } from 'lit'; | ||
import type { DirectiveResult } from 'lit/directive.js'; | ||
import { LitRendererDirective } from '@vaadin/lit-renderer'; | ||
import { Select } from '../vaadin-select.js'; | ||
import type { Select } from '../vaadin-select.js'; | ||
@@ -12,0 +12,0 @@ export type SelectLitRenderer = (select: Select) => TemplateResult; |
@@ -50,2 +50,7 @@ /** | ||
/** | ||
* Fired whenever the field is validated. | ||
*/ | ||
export type SelectValidatedEvent = CustomEvent<{ valid: boolean }>; | ||
export interface SelectCustomEventMap { | ||
@@ -57,2 +62,4 @@ 'opened-changed': SelectOpenedChangedEvent; | ||
'value-changed': SelectValueChangedEvent; | ||
validated: SelectValidatedEvent; | ||
} | ||
@@ -167,2 +174,3 @@ | ||
* @fires {CustomEvent} value-changed - Fired when the `value` property changes. | ||
* @fires {CustomEvent} validated - Fired whenever the field is validated. | ||
*/ | ||
@@ -250,9 +258,2 @@ declare class Select extends DelegateFocusMixin(FieldMixin(ElementMixin(ThemableMixin(HTMLElement)))) { | ||
/** | ||
* Returns true if `value` is valid, and sets the `invalid` flag appropriately. | ||
* | ||
* @returns True if the value is valid and sets the `invalid` flag appropriately | ||
*/ | ||
validate(): boolean; | ||
addEventListener<K extends keyof SelectEventMap>( | ||
@@ -259,0 +260,0 @@ type: K, |
@@ -128,2 +128,3 @@ /** | ||
* @fires {CustomEvent} value-changed - Fired when the `value` property changes. | ||
* @fires {CustomEvent} validated - Fired whenever the field is validated. | ||
* | ||
@@ -701,8 +702,8 @@ * @extends HTMLElement | ||
/** | ||
* Returns true if `value` is valid, and sets the `invalid` flag appropriately. | ||
* Returns true if the current value satisfies all constraints (if any) | ||
* | ||
* @return {boolean} True if the value is valid and sets the `invalid` flag appropriately | ||
* @return {boolean} | ||
*/ | ||
validate() { | ||
return !(this.invalid = !(this.disabled || !this.required || this.value)); | ||
checkValidity() { | ||
return this.disabled || !this.required || !!this.value; | ||
} | ||
@@ -709,0 +710,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
61670
1339
+ Added@vaadin/button@23.2.0-alpha3(transitive)
+ Added@vaadin/component-base@23.2.0-alpha3(transitive)
+ Added@vaadin/field-base@23.2.0-alpha3(transitive)
+ Added@vaadin/icon@23.2.0-alpha3(transitive)
+ Added@vaadin/input-container@23.2.0-alpha3(transitive)
+ Added@vaadin/item@23.2.0-alpha3(transitive)
+ Added@vaadin/list-box@23.2.0-alpha3(transitive)
+ Added@vaadin/lit-renderer@23.2.0-alpha3(transitive)
+ Added@vaadin/vaadin-list-mixin@23.2.0-alpha3(transitive)
+ Added@vaadin/vaadin-lumo-styles@23.2.0-alpha3(transitive)
+ Added@vaadin/vaadin-material-styles@23.2.0-alpha3(transitive)
+ Added@vaadin/vaadin-overlay@23.2.0-alpha3(transitive)
+ Added@vaadin/vaadin-themable-mixin@23.2.0-alpha3(transitive)
- Removed@vaadin/button@23.2.0-alpha2(transitive)
- Removed@vaadin/component-base@23.2.0-alpha2(transitive)
- Removed@vaadin/field-base@23.2.0-alpha2(transitive)
- Removed@vaadin/icon@23.2.0-alpha2(transitive)
- Removed@vaadin/input-container@23.2.0-alpha2(transitive)
- Removed@vaadin/item@23.2.0-alpha2(transitive)
- Removed@vaadin/list-box@23.2.0-alpha2(transitive)
- Removed@vaadin/lit-renderer@23.2.0-alpha2(transitive)
- Removed@vaadin/vaadin-list-mixin@23.2.0-alpha2(transitive)
- Removed@vaadin/vaadin-lumo-styles@23.2.0-alpha2(transitive)
- Removed@vaadin/vaadin-material-styles@23.2.0-alpha2(transitive)
- Removed@vaadin/vaadin-overlay@23.2.0-alpha2(transitive)
- Removed@vaadin/vaadin-themable-mixin@23.2.0-alpha2(transitive)
Updated@vaadin/button@23.2.0-alpha3
Updated@vaadin/item@23.2.0-alpha3