import multiSelectAll from "@ui5/webcomponents-icons/dist/multiselect-all.js"; import type MultiComboBox from "./MultiComboBox.js"; import ResponsivePopover from "./ResponsivePopover.js"; import Button from "./Button.js"; import Input from "./Input.js"; import ToggleButton from "./ToggleButton.js"; import SuggestionItem from "./SuggestionItem.js"; import Icon from "./Icon.js"; import List from "./List.js"; import PopoverHorizontalAlign from "./types/PopoverHorizontalAlign.js"; import Popover from "./Popover.js"; import CheckBox from "./CheckBox.js"; import Title from "./Title.js"; import BusyIndicator from "./BusyIndicator.js"; export default function MultiComboBoxPopoverTemplate(this: MultiComboBox) { return (<> {this.loading && } {!this.loading && this._isPhone && <>
{this._headerTitleText}
{this._filteredItems.map(item => ( ))}
{this.hasValueStateMessage &&
{this.open && valueStateMessage.call(this)}
} {selectAllWrapper.call(this)} } {!this.loading && !this._isPhone && <> {this.hasValueStateMessage &&
{this.open && valueStateMessage.call(this)}
} {selectAllWrapper.call(this)} } {!this.loading && this.filterSelected ? {this.selectedItems.map(item => )} : !this.loading && {this._filteredItems.map(item => )} } {this._isPhone && }
{this.hasValueStateMessage &&
{this.valueStateOpen && valueStateMessage.call(this)}
} ); } function valueStateMessage(this: MultiComboBox) { return this.shouldDisplayDefaultValueStateMessage ? this.valueStateDefaultText : ; } function selectAllWrapper(this: MultiComboBox) { if (this.showSelectAll) { return (
); } }