-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: make multi-select-combo-box item not extend item (#5385)
- Loading branch information
1 parent
23a684e
commit 4358eae
Showing
7 changed files
with
132 additions
and
39 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
packages/multi-select-combo-box/src/vaadin-multi-select-combo-box-item.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2018 - 2023 Vaadin Ltd. | ||
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
import type { ComboBoxDefaultItem, ComboBoxItemMixinClass } from '@vaadin/combo-box/src/vaadin-combo-box-item-mixin.js'; | ||
import type { DirMixinClass } from '@vaadin/component-base/src/dir-mixin.js'; | ||
import type { ThemableMixinClass } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
import type { MultiSelectComboBox } from './vaadin-multi-select-combo-box.js'; | ||
|
||
/** | ||
* An item element used by the `<vaadin-multi-select-combo-box>` dropdown. | ||
* | ||
* ### Styling | ||
* | ||
* The following shadow DOM parts are available for styling: | ||
* | ||
* Part name | Description | ||
* ------------|-------------- | ||
* `checkmark` | The graphical checkmark shown for a selected item | ||
* `content` | The element that wraps the item content | ||
* | ||
* The following state attributes are exposed for styling: | ||
* | ||
* Attribute | Description | ||
* -------------|------------- | ||
* `selected` | Set when the item is selected | ||
* `focused` | Set when the item is focused | ||
* | ||
* See [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation. | ||
*/ | ||
declare class MultiSelectComboBoxItem extends HTMLElement {} | ||
|
||
interface MultiSelectComboBoxItem<TItem = ComboBoxDefaultItem> | ||
extends ComboBoxItemMixinClass<TItem, MultiSelectComboBox>, | ||
DirMixinClass, | ||
ThemableMixinClass {} | ||
|
||
declare global { | ||
interface HTMLElementTagNameMap { | ||
'vaadin-multi-select-combo-box-item': MultiSelectComboBoxItem; | ||
} | ||
} | ||
|
||
export { MultiSelectComboBoxItem }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters