Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vaadin/combo-box

Package Overview
Dependencies
Maintainers
19
Versions
405
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/combo-box - npm Package Compare versions

Comparing version 22.0.0-alpha7 to 22.0.0-alpha8

28

package.json
{
"name": "@vaadin/combo-box",
"version": "22.0.0-alpha7",
"version": "22.0.0-alpha8",
"publishConfig": {

@@ -36,22 +36,22 @@ "access": "public"

"@polymer/polymer": "^3.0.0",
"@vaadin/component-base": "22.0.0-alpha7",
"@vaadin/field-base": "22.0.0-alpha7",
"@vaadin/input-container": "22.0.0-alpha7",
"@vaadin/item": "22.0.0-alpha7",
"@vaadin/vaadin-lumo-styles": "22.0.0-alpha7",
"@vaadin/vaadin-material-styles": "22.0.0-alpha7",
"@vaadin/vaadin-overlay": "22.0.0-alpha7",
"@vaadin/vaadin-themable-mixin": "22.0.0-alpha7",
"@vaadin/virtual-list": "22.0.0-alpha7"
"@vaadin/component-base": "22.0.0-alpha8",
"@vaadin/field-base": "22.0.0-alpha8",
"@vaadin/input-container": "22.0.0-alpha8",
"@vaadin/item": "22.0.0-alpha8",
"@vaadin/vaadin-lumo-styles": "22.0.0-alpha8",
"@vaadin/vaadin-material-styles": "22.0.0-alpha8",
"@vaadin/vaadin-overlay": "22.0.0-alpha8",
"@vaadin/vaadin-themable-mixin": "22.0.0-alpha8",
"@vaadin/virtual-list": "22.0.0-alpha8"
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/dialog": "22.0.0-alpha7",
"@vaadin/polymer-legacy-adapter": "22.0.0-alpha7",
"@vaadin/dialog": "22.0.0-alpha8",
"@vaadin/polymer-legacy-adapter": "22.0.0-alpha8",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/text-field": "22.0.0-alpha7",
"@vaadin/text-field": "22.0.0-alpha8",
"lit": "^2.0.0",
"sinon": "^9.2.0"
},
"gitHead": "8e89419c6b44a1d225d5859e180d7b35e47ddb52"
"gitHead": "c24468526298ee26ad7f7280b59f6c8789e1f75f"
}

@@ -1,3 +0,20 @@

import { ComboBoxDataProvider } from './interfaces';
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
export type ComboBoxDataProviderCallback<TItem> = (items: Array<TItem>, size: number) => void;
export interface ComboBoxDataProviderParams {
page: number;
pageSize: number;
filter: string;
}
export type ComboBoxDataProvider<TItem> = (
params: ComboBoxDataProviderParams,
callback: ComboBoxDataProviderCallback<TItem>
) => void;
declare function ComboBoxDataProviderMixin<TItem, T extends new (...args: any[]) => {}>(

@@ -4,0 +21,0 @@ base: T

@@ -9,5 +9,55 @@ /**

import { ComboBoxDataProviderMixin } from './vaadin-combo-box-data-provider-mixin.js';
import { ComboBoxDefaultItem, ComboBoxEventMap } from './interfaces';
import { ComboBoxDefaultItem } from './vaadin-combo-box-mixin.js';
export {
ComboBoxDataProvider,
ComboBoxDataProviderCallback,
ComboBoxDataProviderParams
} from './vaadin-combo-box-data-provider-mixin.js';
export { ComboBoxDefaultItem, ComboBoxItemModel, ComboBoxRenderer } from './vaadin-combo-box-mixin.js';
/**
* Fired when the user sets a custom value.
*/
export type ComboBoxLightCustomValueSetEvent = CustomEvent<string>;
/**
* Fired when the `opened` property changes.
*/
export type ComboBoxLightOpenedChangedEvent = CustomEvent<{ value: boolean }>;
/**
* Fired when the `invalid` property changes.
*/
export type ComboBoxLightInvalidChangedEvent = CustomEvent<{ value: boolean }>;
/**
* Fired when the `value` property changes.
*/
export type ComboBoxLightValueChangedEvent = CustomEvent<{ value: string }>;
/**
* Fired when the `filter` property changes.
*/
export type ComboBoxLightFilterChangedEvent = CustomEvent<{ value: string }>;
/**
* Fired when the `selectedItem` property changes.
*/
export type ComboBoxLightSelectedItemChangedEvent<TItem> = CustomEvent<{ value: TItem | null | undefined }>;
export interface ComboBoxLightEventMap<TItem> extends HTMLElementEventMap {
'custom-value-set': ComboBoxLightCustomValueSetEvent;
'opened-changed': ComboBoxLightOpenedChangedEvent;
'filter-changed': ComboBoxLightFilterChangedEvent;
'invalid-changed': ComboBoxLightInvalidChangedEvent;
'value-changed': ComboBoxLightValueChangedEvent;
'selected-item-changed': ComboBoxLightSelectedItemChangedEvent<TItem>;
}
/**
* `<vaadin-combo-box-light>` is a customizable version of the `<vaadin-combo-box>` providing

@@ -65,11 +115,11 @@ * only the dropdown functionality and leaving the input field definition to the user.

addEventListener<K extends keyof ComboBoxEventMap<TItem>>(
addEventListener<K extends keyof ComboBoxLightEventMap<TItem>>(
type: K,
listener: (this: ComboBoxLight<TItem>, ev: ComboBoxEventMap<TItem>[K]) => void,
listener: (this: ComboBoxLight<TItem>, ev: ComboBoxLightEventMap<TItem>[K]) => void,
options?: boolean | AddEventListenerOptions
): void;
removeEventListener<K extends keyof ComboBoxEventMap<TItem>>(
removeEventListener<K extends keyof ComboBoxLightEventMap<TItem>>(
type: K,
listener: (this: ComboBoxLight<TItem>, ev: ComboBoxEventMap<TItem>[K]) => void,
listener: (this: ComboBoxLight<TItem>, ev: ComboBoxLightEventMap<TItem>[K]) => void,
options?: boolean | EventListenerOptions

@@ -76,0 +126,0 @@ ): void;

@@ -9,4 +9,17 @@ /**

import { InputMixin } from '@vaadin/field-base/src/input-mixin.js';
import { ComboBoxRenderer } from './interfaces';
import { ComboBox } from './vaadin-combo-box.js';
export type ComboBoxDefaultItem = any;
export interface ComboBoxItemModel<TItem> {
index: number;
item: TItem;
}
export type ComboBoxRenderer<TItem> = (
root: HTMLElement,
comboBox: ComboBox<TItem>,
model: ComboBoxItemModel<TItem>
) => void;
declare function ComboBoxMixin<TItem, T extends new (...args: any[]) => {}>(

@@ -13,0 +26,0 @@ base: T

@@ -313,13 +313,2 @@ /**

/**
* Manually invoke existing renderer.
*
* @deprecated Since Vaadin 21, `render()` is deprecated. Please use `requestContentUpdate()` instead.
*/
render() {
console.warn('WARNING: Since Vaadin 21, render() is deprecated. Please use requestContentUpdate() instead.');
this.requestContentUpdate();
}
/**
* Opens the dropdown list.

@@ -326,0 +315,0 @@ */

@@ -12,5 +12,55 @@ /**

import { ComboBoxMixin } from './vaadin-combo-box-mixin.js';
import { ComboBoxDefaultItem, ComboBoxEventMap } from './interfaces';
import { ComboBoxDefaultItem } from './vaadin-combo-box-mixin.js';
export {
ComboBoxDataProvider,
ComboBoxDataProviderCallback,
ComboBoxDataProviderParams
} from './vaadin-combo-box-data-provider-mixin.js';
export { ComboBoxDefaultItem, ComboBoxItemModel, ComboBoxRenderer } from './vaadin-combo-box-mixin.js';
/**
* Fired when the user sets a custom value.
*/
export type ComboBoxCustomValueSetEvent = CustomEvent<string>;
/**
* Fired when the `opened` property changes.
*/
export type ComboBoxOpenedChangedEvent = CustomEvent<{ value: boolean }>;
/**
* Fired when the `invalid` property changes.
*/
export type ComboBoxInvalidChangedEvent = CustomEvent<{ value: boolean }>;
/**
* Fired when the `value` property changes.
*/
export type ComboBoxValueChangedEvent = CustomEvent<{ value: string }>;
/**
* Fired when the `filter` property changes.
*/
export type ComboBoxFilterChangedEvent = CustomEvent<{ value: string }>;
/**
* Fired when the `selectedItem` property changes.
*/
export type ComboBoxSelectedItemChangedEvent<TItem> = CustomEvent<{ value: TItem | null | undefined }>;
export interface ComboBoxEventMap<TItem> extends HTMLElementEventMap {
'custom-value-set': ComboBoxCustomValueSetEvent;
'opened-changed': ComboBoxOpenedChangedEvent;
'filter-changed': ComboBoxFilterChangedEvent;
'invalid-changed': ComboBoxInvalidChangedEvent;
'value-changed': ComboBoxValueChangedEvent;
'selected-item-changed': ComboBoxSelectedItemChangedEvent<TItem>;
}
/**
* `<vaadin-combo-box>` is a combo box element combining a dropdown list with an

@@ -17,0 +67,0 @@ * input field for filtering the list of items. If you want to replace the default

@@ -191,5 +191,5 @@ /**

<div class="vaadin-combo-box-container">
<div part="label" on-click="focus">
<div part="label">
<slot name="label"></slot>
<span part="required-indicator" aria-hidden="true"></span>
<span part="required-indicator" aria-hidden="true" on-click="focus"></span>
</div>

@@ -196,0 +196,0 @@

export * from './src/vaadin-combo-box.js';
export * from './src/interfaces';
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc