@vaadin/combo-box
Advanced tools
Comparing version 23.1.0-beta4 to 23.1.0-rc1
{ | ||
"name": "@vaadin/combo-box", | ||
"version": "23.1.0-beta4", | ||
"version": "23.1.0-rc1", | ||
"publishConfig": { | ||
@@ -39,22 +39,21 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "23.1.0-beta4", | ||
"@vaadin/field-base": "23.1.0-beta4", | ||
"@vaadin/input-container": "23.1.0-beta4", | ||
"@vaadin/item": "23.1.0-beta4", | ||
"@vaadin/lit-renderer": "23.1.0-beta4", | ||
"@vaadin/vaadin-lumo-styles": "23.1.0-beta4", | ||
"@vaadin/vaadin-material-styles": "23.1.0-beta4", | ||
"@vaadin/vaadin-overlay": "23.1.0-beta4", | ||
"@vaadin/vaadin-themable-mixin": "23.1.0-beta4" | ||
"@vaadin/component-base": "23.1.0-rc1", | ||
"@vaadin/field-base": "23.1.0-rc1", | ||
"@vaadin/input-container": "23.1.0-rc1", | ||
"@vaadin/item": "23.1.0-rc1", | ||
"@vaadin/lit-renderer": "23.1.0-rc1", | ||
"@vaadin/vaadin-lumo-styles": "23.1.0-rc1", | ||
"@vaadin/vaadin-material-styles": "23.1.0-rc1", | ||
"@vaadin/vaadin-overlay": "23.1.0-rc1", | ||
"@vaadin/vaadin-themable-mixin": "23.1.0-rc1" | ||
}, | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/dialog": "23.1.0-beta4", | ||
"@vaadin/polymer-legacy-adapter": "23.1.0-beta4", | ||
"@vaadin/polymer-legacy-adapter": "23.1.0-rc1", | ||
"@vaadin/testing-helpers": "^0.3.2", | ||
"@vaadin/text-field": "23.1.0-beta4", | ||
"@vaadin/text-field": "23.1.0-rc1", | ||
"lit": "^2.0.0", | ||
"sinon": "^13.0.2" | ||
}, | ||
"gitHead": "06e283473964ecb3085aacf3eddb5333d052a045" | ||
"gitHead": "5ecb85e16e938df827fefca4bd2a665a1e29913e" | ||
} |
@@ -8,3 +8,3 @@ /** | ||
export type ComboBoxDataProviderCallback<TItem> = (items: Array<TItem>, size: number) => void; | ||
export type ComboBoxDataProviderCallback<TItem> = (items: TItem[], size: number) => void; | ||
@@ -11,0 +11,0 @@ export interface ComboBoxDataProviderParams { |
@@ -77,14 +77,2 @@ /** | ||
/** @private */ | ||
_dataProviderClearFilter(dataProvider, opened, value) { | ||
// Can't depend on filter in this observer as we don't want | ||
// to clear the filter whenever it's set | ||
if (dataProvider && !this.loading && this.filter && !(opened && this.autoOpenDisabled && value === this.filter)) { | ||
this.size = undefined; | ||
this._pendingRequests = {}; | ||
this.filter = ''; | ||
this.clearCache(); | ||
} | ||
} | ||
/** @protected */ | ||
@@ -122,4 +110,28 @@ ready() { | ||
this._refreshData(); | ||
} | ||
/** @private */ | ||
_dataProviderClearFilter(dataProvider, opened, value) { | ||
// Can't depend on filter in this observer as we don't want | ||
// to clear the filter whenever it's set | ||
if (dataProvider && !this.loading && this.filter && !(opened && this.autoOpenDisabled && value === this.filter)) { | ||
this._refreshData(true); | ||
} | ||
} | ||
/** @private */ | ||
_refreshData(clearFilter) { | ||
// Immediately mark as loading if this refresh leads to re-fetching pages | ||
// This prevents some issues with the properties below triggering | ||
// observers that also rely on the loading state | ||
this.loading = this._shouldFetchData(); | ||
// Reset size and internal loading state | ||
this.size = undefined; | ||
this._pendingRequests = {}; | ||
// Clear filter if requested | ||
if (clearFilter) { | ||
this.filter = ''; | ||
} | ||
// Clear cached pages, and reload current page if we need the data | ||
this.clearCache(); | ||
@@ -126,0 +138,0 @@ } |
@@ -34,10 +34,2 @@ /** | ||
export declare class ComboBoxMixinClass<TItem> { | ||
protected readonly _propertyForValue: string; | ||
protected _inputElementValue: string | undefined; | ||
protected _revertInputValue(): void; | ||
protected _getItemElements(): HTMLElement[]; | ||
/** | ||
@@ -76,3 +68,3 @@ * True if the dropdown is open, false otherwise. | ||
*/ | ||
items: Array<TItem> | undefined; | ||
items: TItem[] | undefined; | ||
@@ -93,3 +85,3 @@ /** | ||
*/ | ||
filteredItems: Array<TItem> | undefined; | ||
filteredItems: TItem[] | undefined; | ||
@@ -157,2 +149,6 @@ /** | ||
protected readonly _propertyForValue: string; | ||
protected _inputElementValue: string | undefined; | ||
/** | ||
@@ -186,2 +182,6 @@ * Requests an update for the content of items. | ||
checkValidity(): boolean; | ||
protected _revertInputValue(): void; | ||
protected _getItemElements(): HTMLElement[]; | ||
} |
import '@vaadin/vaadin-material-styles/color.js'; | ||
import '@vaadin/vaadin-overlay/theme/material/vaadin-overlay.js'; | ||
import { menuOverlay } from '@vaadin/vaadin-material-styles/mixins/menu-overlay.js'; | ||
@@ -3,0 +4,0 @@ import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; |
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
139163
6
3518
+ Added@vaadin/component-base@23.1.0-rc1(transitive)
+ Added@vaadin/field-base@23.1.0-rc1(transitive)
+ Added@vaadin/icon@23.1.0-rc1(transitive)
+ Added@vaadin/input-container@23.1.0-rc1(transitive)
+ Added@vaadin/item@23.1.0-rc1(transitive)
+ Added@vaadin/lit-renderer@23.1.0-rc1(transitive)
+ Added@vaadin/vaadin-lumo-styles@23.1.0-rc1(transitive)
+ Added@vaadin/vaadin-material-styles@23.1.0-rc1(transitive)
+ Added@vaadin/vaadin-overlay@23.1.0-rc1(transitive)
+ Added@vaadin/vaadin-themable-mixin@23.1.0-rc1(transitive)
- Removed@vaadin/component-base@23.1.0-beta4(transitive)
- Removed@vaadin/field-base@23.1.0-beta4(transitive)
- Removed@vaadin/icon@23.1.0-beta4(transitive)
- Removed@vaadin/input-container@23.1.0-beta4(transitive)
- Removed@vaadin/item@23.1.0-beta4(transitive)
- Removed@vaadin/lit-renderer@23.1.0-beta4(transitive)
- Removed@vaadin/vaadin-lumo-styles@23.1.0-beta4(transitive)
- Removed@vaadin/vaadin-material-styles@23.1.0-beta4(transitive)
- Removed@vaadin/vaadin-overlay@23.1.0-beta4(transitive)
- Removed@vaadin/vaadin-themable-mixin@23.1.0-beta4(transitive)
Updated@vaadin/item@23.1.0-rc1