All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.MultiComboBox.js.map Maven / Gradle / Ivy

The newest version!
{"version":3,"file":"MultiComboBox.js","sourceRoot":"","sources":["../src/MultiComboBox.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,KAAK,MAAM,kDAAkD,CAAC;AAErE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,aAAa,MAAM,wDAAwD,CAAC;AAEnF,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EACN,MAAM,EACN,MAAM,EACN,IAAI,EACJ,OAAO,EACP,WAAW,EACX,YAAY,EACZ,OAAO,EACP,MAAM,EACN,KAAK,EACL,SAAS,EACT,aAAa,EACb,SAAS,EACT,WAAW,EACX,UAAU,EACV,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,SAAS,EACT,OAAO,EACP,aAAa,EACb,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,GACP,MAAM,sCAAsC,CAAC;AAC9C,OAAO,kDAAkD,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EACN,OAAO,EACP,SAAS,EACT,SAAS,GACT,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,0CAA0C,CAAC;AAClD,OAAO,kDAAkD,CAAC;AAC1D,OAAO,+CAA+C,CAAC;AACvD,OAAO,wCAAwC,CAAC;AAChD,OAAO,wCAAwC,CAAC;AAChD,OAAO,8CAA8C,CAAC;AACtD,OAAO,8CAA8C,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;AACjG,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CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI,EAAE,CAAC;4CAC1C;AAQlC;IADC,IAAI,EAAE;2CACa;AAcpB;IADC,IAAI,EAAE;wDACgC;AArOlC,aAAa;IAxElB,aAAa,CAAC;QACd,GAAG,EAAE,oBAAoB;QACzB,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,qBAAqB;QAC/B,MAAM,EAAE;YACP,cAAc;YACd,0BAA0B;YAC1B,oBAAoB;YACpB,cAAc;YACd,oBAAoB;SACpB;QACD,YAAY,EAAE;YACb,iBAAiB;YACjB,sBAAsB;YACtB,SAAS;YACT,KAAK;YACL,IAAI;YACJ,KAAK;YACL,iBAAiB;YACjB,OAAO;YACP,IAAI;YACJ,gBAAgB;YAChB,aAAa;YACb,YAAY;YACZ,MAAM;YACN,QAAQ;YACR,cAAc;SACd;KACD,CAAC;IACF;;;OAGG;;IACF,KAAK,CAAC,QAAQ,CAAC;IAEhB;;;OAGG;;IACF,KAAK,CAAC,OAAO,CAAC;IAEf;;;;OAIG;;IACF,KAAK,CAAC,MAAM,CAAC;IAEd;;;;OAIG;;IACF,KAAK,CAAC,OAAO,CAAC;IAEf;;;;;OAKG;;IACF,KAAK,CAA0C,kBAAkB,EAAE;QACnE,MAAM,EAAE;YACP;;eAEG;YACH,KAAK,EAAE,EAAE,IAAI,EAAE,CAAA,KAAyB,CAAA,EAAE;SAC1C;KACD,CAAC;GAEI,aAAa,CA0vDlB;AAED,aAAa,CAAC,MAAM,EAAE,CAAC;AAEvB,eAAe,aAAa,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport type { ClassMap, Timeout } from \"@ui5/webcomponents-base/dist/types.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport type { ResizeObserverCallback } from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\nimport {\n\tisShow,\n\tisDown,\n\tisUp,\n\tisSpace,\n\tisSpaceCtrl,\n\tisSpaceShift,\n\tisRight,\n\tisHome,\n\tisEnd,\n\tisTabNext,\n\tisTabPrevious,\n\tisUpShift,\n\tisDownShift,\n\tisLeftCtrl,\n\tisRightCtrl,\n\tisUpCtrl,\n\tisDownCtrl,\n\tisHomeCtrl,\n\tisEndCtrl,\n\tisCtrlA,\n\tisInsertShift,\n\tisBackSpace,\n\tisDelete,\n\tisEscape,\n\tisEnter,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport \"@ui5/webcomponents-icons/dist/slim-arrow-down.js\";\nimport { renderFinished } from \"@ui5/webcomponents-base/dist/Render.js\";\nimport {\n\tisPhone,\n\tisAndroid,\n\tisFirefox,\n} from \"@ui5/webcomponents-base/dist/Device.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport \"@ui5/webcomponents-icons/dist/decline.js\";\nimport \"@ui5/webcomponents-icons/dist/multiselect-all.js\";\nimport \"@ui5/webcomponents-icons/dist/not-editable.js\";\nimport \"@ui5/webcomponents-icons/dist/error.js\";\nimport \"@ui5/webcomponents-icons/dist/alert.js\";\nimport \"@ui5/webcomponents-icons/dist/sys-enter-2.js\";\nimport \"@ui5/webcomponents-icons/dist/information.js\";\nimport { getEffectiveAriaLabelText } from \"@ui5/webcomponents-base/dist/util/AriaLabelHelper.js\";\nimport { getScopedVarName } from \"@ui5/webcomponents-base/dist/CustomElementsScope.js\";\nimport { submitForm } from \"@ui5/webcomponents-base/dist/features/InputElementsFormSupport.js\";\nimport type { IFormInputElement } from \"@ui5/webcomponents-base/dist/features/InputElementsFormSupport.js\";\nimport MultiComboBoxItem, { isInstanceOfMultiComboBoxItem } from \"./MultiComboBoxItem.js\";\nimport MultiComboBoxItemGroup, { isInstanceOfMultiComboBoxItemGroup } from \"./MultiComboBoxItemGroup.js\";\nimport ListItemGroup from \"./ListItemGroup.js\";\nimport Tokenizer, { getTokensCountText } from \"./Tokenizer.js\";\nimport type { TokenizerTokenDeleteEventDetail } from \"./Tokenizer.js\";\nimport Token from \"./Token.js\";\nimport Icon from \"./Icon.js\";\nimport type { IIcon } from \"./Icon.js\";\nimport Popover from \"./Popover.js\";\nimport ResponsivePopover from \"./ResponsivePopover.js\";\nimport List from \"./List.js\";\nimport type { ListSelectionChangeEventDetail } from \"./List.js\";\nimport ListItemStandard from \"./ListItemStandard.js\";\nimport ToggleButton from \"./ToggleButton.js\";\nimport * as Filters from \"./Filters.js\";\nimport Button from \"./Button.js\";\nimport {\n\tVALUE_STATE_SUCCESS,\n\tVALUE_STATE_ERROR,\n\tVALUE_STATE_WARNING,\n\tVALUE_STATE_INFORMATION,\n\tVALUE_STATE_TYPE_SUCCESS,\n\tVALUE_STATE_TYPE_INFORMATION,\n\tVALUE_STATE_TYPE_ERROR,\n\tVALUE_STATE_TYPE_WARNING,\n\tINPUT_SUGGESTIONS_TITLE,\n\tSELECT_OPTIONS,\n\tSHOW_SELECTED_BUTTON,\n\tMULTICOMBOBOX_DIALOG_OK_BUTTON,\n\tCOMBOBOX_AVAILABLE_OPTIONS,\n\tVALUE_STATE_ERROR_ALREADY_SELECTED,\n\tMCB_SELECTED_ITEMS,\n\tINPUT_CLEAR_ICON_ACC_NAME,\n\tFORM_MIXED_TEXTFIELD_REQUIRED,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Templates\nimport MultiComboBoxTemplate from \"./generated/templates/MultiComboBoxTemplate.lit.js\";\n\n// Styles\nimport multiCbxStyles from \"./generated/themes/MultiComboBox.css.js\";\nimport ResponsivePopoverCommonCss from \"./generated/themes/ResponsivePopoverCommon.css.js\";\nimport ValueStateMessageCss from \"./generated/themes/ValueStateMessage.css.js\";\nimport SuggestionsCss from \"./generated/themes/Suggestions.css.js\";\nimport MultiComboBoxPopover from \"./generated/themes/MultiComboBoxPopover.css.js\";\nimport type ComboBoxFilter from \"./types/ComboBoxFilter.js\";\nimport type ListItemBase from \"./ListItemBase.js\";\nimport CheckBox from \"./CheckBox.js\";\nimport Input from \"./Input.js\";\nimport type { InputEventDetail } from \"./Input.js\";\nimport type PopoverHorizontalAlign from \"./types/PopoverHorizontalAlign.js\";\nimport SuggestionItem from \"./SuggestionItem.js\";\n\n/**\n * Interface for components that may be slotted inside a `ui5-multi-combobox` as items\n * @public\n */\ninterface IMultiComboBoxItem extends UI5Element {\n\ttext?: string,\n\theaderText?: string,\n\tselected: boolean,\n\tisGroupItem?: boolean,\n\tstableDomRef: string,\n\t_isVisible?: boolean,\n\titems?: Array,\n}\n\ntype ValueStateAnnouncement = Record, string>;\ntype ValueStateTypeAnnouncement = Record, string>;\n\ntype MultiComboBoxSelectionChangeEventDetail = {\n\titems: Array,\n};\n\ntype MultiComboboxItemWithSelection = {\n\tref: IMultiComboBoxItem,\n\tselected: boolean,\n};\n\n/**\n * @class\n *\n * ### Overview\n *\n * The `ui5-multi-combobox` component consists of a list box with items and a text field allowing the user to either type a value directly into the text field, or choose from the list of existing items.\n *\n * The drop-down list is used for selecting and filtering values, it enables users to select one or more options from a predefined list. The control provides an editable input field to filter the list, and a dropdown arrow to expand/collapse the list of available options.\n * The options in the list have checkboxes that permit multi-selection. Entered values are displayed as tokens.\n * ### Structure\n * The `ui5-multi-combobox` consists of the following elements:\n *\n * -  Tokenizer - a list of tokens with selected options.\n * -  Input field - displays the selected option/s as token/s. Users can type to filter the list.\n * -  Drop-down arrow - expands\\collapses the option list.\n * -  Option list - the list of available options.\n *\n * ### Keyboard Handling\n *\n * The `ui5-multi-combobox` provides advanced keyboard handling.\n *\n * #### Picker\n * If the `ui5-multi-combobox` is focused,\n * you can open or close the drop-down by pressing [F4], [Alt] + [Up] or [Alt] + [Down] keys.\n * Once the drop-down is opened, you can use the `UP` and `DOWN` arrow keys\n * to navigate through the available options and select one by pressing the `Space` or `Enter` keys.\n *\n * #### Tokens\n *\n * -  Left/Right arrow keys - moves the focus selection form the currently focused token to the previous/next one (if available).\n * -  Delete -  deletes the token and focuses the previous token.\n * -  Backspace -  deletes the token and focus the next token.\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents/dist/MultiComboBox.js\";`\n * @constructor\n * @extends UI5Element\n * @public\n * @since 0.11.0\n * @csspart token-\\{index\\} - Used to style each token(where `token-0` corresponds to the first item)\n */\n@customElement({\n\ttag: \"ui5-multi-combobox\",\n\tlanguageAware: true,\n\tformAssociated: true,\n\trenderer: litRender,\n\ttemplate: MultiComboBoxTemplate,\n\tstyles: [\n\t\tmultiCbxStyles,\n\t\tResponsivePopoverCommonCss,\n\t\tValueStateMessageCss,\n\t\tSuggestionsCss,\n\t\tMultiComboBoxPopover,\n\t],\n\tdependencies: [\n\t\tMultiComboBoxItem,\n\t\tMultiComboBoxItemGroup,\n\t\tTokenizer,\n\t\tToken,\n\t\tIcon,\n\t\tInput,\n\t\tResponsivePopover,\n\t\tPopover,\n\t\tList,\n\t\tListItemStandard,\n\t\tListItemGroup,\n\t\tToggleButton,\n\t\tButton,\n\t\tCheckBox,\n\t\tSuggestionItem,\n\t],\n})\n/**\n * Fired when the input operation has finished by pressing Enter or on focusout.\n * @public\n */\n@event(\"change\")\n\n/**\n * Fired when the value of the component changes at each keystroke or clear icon is pressed.\n * @public\n */\n@event(\"input\")\n\n/**\n * Fired when the dropdown is opened.\n * @since 2.0.0\n * @public\n */\n@event(\"open\")\n\n/**\n * Fired when the dropdown is closed.\n * @since 2.0.0\n * @public\n */\n@event(\"close\")\n\n/**\n * Fired when selection is changed by user interaction.\n * @param {IMultiComboBoxItem[]} items an array of the selected items.\n * @public\n * @allowPreventDefault\n */\n@event(\"selection-change\", {\n\tdetail: {\n\t\t/**\n\t\t * @public\n\t\t */\n\t\titems: { type: Array },\n\t},\n})\n\nclass MultiComboBox extends UI5Element implements IFormInputElement {\n\t/**\n\t * Defines the value of the component.\n\t *\n\t * **Note:** The property is updated upon typing.\n\t * @default \"\"\n\t * @formEvents change input\n\t * @formProperty\n\t * @public\n\t */\n\t@property()\n\tvalue = \"\";\n\n\t/**\n\t * Determines the name by which the component will be identified upon submission in an HTML form.\n\t *\n\t * **Note:** This property is only applicable within the context of an HTML Form element.\n\t * **Note:** When the component is used inside a form element,\n\t * the value is sent as the first element in the form data, even if it's empty.\n\t * @default undefined\n\t * @public\n\t * @since 2.0.0\n\t */\n\t@property()\n\tname?: string;\n\n\t/**\n\t * Defines whether the value will be autcompleted to match an item\n\t * @default false\n\t * @public\n\t * @since 1.4.0\n\t */\n\t@property({ type: Boolean })\n\tnoTypeahead = false;\n\n\t/**\n\t * Defines a short hint intended to aid the user with data entry when the\n\t * component has no value.\n\t * @default undefined\n\t * @public\n\t */\n\t@property()\n\tplaceholder?: string;\n\n\t/**\n\t * Defines if the user input will be prevented, if no matching item has been found\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tnoValidation = false;\n\n\t/**\n\t * Defines whether the component is in disabled state.\n\t *\n\t * **Note:** A disabled component is completely noninteractive.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tdisabled = false;\n\n\t/**\n\t * Defines the value state of the component.\n\t * @default \"None\"\n\t * @public\n\t */\n\t@property()\n\tvalueState: `${ValueState}` = \"None\";\n\n\t/**\n\t * Defines whether the component is read-only.\n\t *\n\t * **Note:** A read-only component is not editable,\n\t * but still provides visual feedback upon user interaction.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\treadonly = false;\n\n\t/**\n\t * Defines whether the component is required.\n\t * @default false\n\t * @public\n\t * @since 1.0.0-rc.5\n\t */\n\t@property({ type: Boolean })\n\trequired = false;\n\n\t/**\n\t * Defines the filter type of the component.\n\t * @default \"StartsWithPerTerm\"\n\t * @public\n\t */\n\t@property()\n\tfilter: `${ComboBoxFilter}` = \"StartsWithPerTerm\";\n\n\t/**\n\t * Defines whether the clear icon of the multi-combobox will be shown.\n\t * @default false\n\t * @public\n\t * @since 1.20.1\n\t */\n\t@property({ type: Boolean })\n\tshowClearIcon = false;\n\n\t/**\n\t * Defines the accessible ARIA name of the component.\n\t * @default undefined\n\t * @public\n\t * @since 1.4.0\n\t */\n\t@property()\n\taccessibleName?: string;\n\n\t/**\n\t * Receives id(or many ids) of the elements that label the component.\n\t * @default undefined\n\t * @public\n\t * @since 1.4.0\n\t */\n\t@property()\n\taccessibleNameRef?: string;\n\n\t/**\n\t * Determines if the select all checkbox is visible on top of suggestions.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tshowSelectAll = false;\n\n\t@property()\n\t_effectiveValueState: `${ValueState}` = \"None\";\n\t/**\n\t * Indicates whether the value state message popover is open.\n\t * @private\n\t */\n\t@property({ type: Boolean, noAttribute: true })\n\tvalueStateOpen = false;\n\n\t/**\n\t * Indicates whether the Tokenizer n-more popover is open.\n\t * @private\n\t */\n\t@property({ type: Boolean, noAttribute: true })\n\ttokenizerOpen = false;\n\n\t/**\n\t * Indicates whether the items picker is open.\n\t * @private\n\t */\n\t@property({ type: Boolean, noAttribute: true })\n\t_open = false;\n\n\t@property()\n\t_valueBeforeOpen = this.value;\n\n\t@property({ type: Array })\n\t_filteredItems!: Array;\n\n\t@property({ type: Array })\n\t_previouslySelectedItems!: Array;\n\n\t@property({ type: Boolean })\n\tfilterSelected = false;\n\n\t@property({ type: Boolean })\n\tfocused = false;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_tokenizerFocused = false;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_iconPressed = false;\n\n\t@property({ type: Number, noAttribute: true })\n\t_inputWidth = 0;\n\n\t@property({ type: Number, noAttribute: true })\n\t_listWidth = 0;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_performingSelectionTwice = false;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_allSelected = false;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_effectiveShowClearIcon = false;\n\n\t@property()\n\t_dialogInputValueState: `${ValueState}` = \"None\";\n\n\t/**\n\t * Indicates whether the tokenizer has tokens\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\ttokenizerAvailable = false;\n\n\t/**\n\t * Defines the component items.\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true, invalidateOnChildChange: true })\n\titems!: Array;\n\n\t/**\n\t* Defines the icon to be displayed in the component.\n\t* @public\n\t* @since 1.0.0-rc.9\n\t*/\n\t@slot()\n\ticon!: Array;\n\n\t/**\n\t * Defines the value state message that will be displayed as pop up under the component.\n\t * The value state message slot should contain only one root element.\n\t *\n\t * **Note:** If not specified, a default text (in the respective language) will be displayed.\n\t *\n\t * **Note:** The `valueStateMessage` would be displayed,\n\t * when the component is in `Information`, `Critical` or `Negative` value state.\n\t * @since 1.0.0-rc.9\n\t * @public\n\t */\n\t@slot()\n\tvalueStateMessage!: Array;\n\n\tselectedValues: Array;\n\t_inputLastValue: string;\n\t_deleting: boolean;\n\t_validationTimeout: Timeout | null;\n\t_handleResizeBound: ResizeObserverCallback;\n\tvalueBeforeAutoComplete: string;\n\tcurrentItemIdx: number;\n\t_lastValue: string;\n\t_shouldFilterItems?: boolean;\n\t_showMorePressed?: boolean;\n\t_clearingValue?: boolean;\n\tvalueStateHeader?: HTMLElement;\n\tlist?: List;\n\t_shouldAutocomplete?: boolean;\n\t_preventTokenizerToggle?: boolean;\n\t_isOpenedByKeyboard?: boolean;\n\t_itemToFocus?: IMultiComboBoxItem;\n\t_itemsBeforeOpen: Array;\n\tselectedItems: Array;\n\tstatic i18nBundle: I18nBundle;\n\n\tget formValidityMessage() {\n\t\treturn MultiComboBox.i18nBundle.getText(FORM_MIXED_TEXTFIELD_REQUIRED);\n\t}\n\n\tget formValidity(): ValidityStateFlags {\n\t\tconst selectedItems = (this.items || []).filter(item => item.selected);\n\n\t\treturn { valueMissing: this.required && !this.value && !selectedItems.length };\n\t}\n\n\tasync formElementAnchor() {\n\t\treturn this.getFocusDomRefAsync();\n\t}\n\n\tget formFormattedValue(): FormData | string | null {\n\t\tconst selectedItems = (this.items || []).filter(item => item.selected);\n\n\t\tif (selectedItems.length && this.name) {\n\t\t\tconst formData = new FormData();\n\n\t\t\tformData.append(this.name, this.value);\n\n\t\t\tfor (let i = 0; i < selectedItems.length; i++) {\n\t\t\t\tformData.append(this.name, selectedItems[i].text!);\n\t\t\t}\n\n\t\t\treturn formData;\n\t\t}\n\n\t\treturn this.value;\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._filteredItems = [];\n\t\tthis.selectedItems = [];\n\t\tthis._previouslySelectedItems = [];\n\t\tthis.selectedValues = [];\n\t\tthis._itemsBeforeOpen = [];\n\t\tthis._inputLastValue = \"\";\n\t\tthis._deleting = false;\n\t\tthis._validationTimeout = null;\n\t\tthis._handleResizeBound = this._handleResize.bind(this);\n\t\tthis.valueBeforeAutoComplete = \"\";\n\t\tthis._lastValue = this.getAttribute(\"value\") || \"\";\n\t\tthis.currentItemIdx = -1;\n\t}\n\n\tonEnterDOM() {\n\t\tResizeHandler.register(this, this._handleResizeBound);\n\t}\n\n\tonExitDOM() {\n\t\tResizeHandler.deregister(this, this._handleResizeBound);\n\t}\n\n\t_handleResize() {\n\t\tthis._inputWidth = this.offsetWidth;\n\t}\n\n\t_handleMobileInput(e: CustomEvent) {\n\t\tif (!this.open || this.readonly) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst target = e.target as Input;\n\t\tconst value = target.value;\n\n\t\tif (!this.noValidation && !this._filterItems(value).length) {\n\t\t\tthis._dialogInputValueState = ValueState.Negative;\n\t\t} else {\n\t\t\tthis._dialogInputValueState = this.valueState;\n\t\t}\n\n\t\tthis.value = value;\n\t\tthis._shouldFilterItems = true;\n\t\tthis.valueBeforeAutoComplete = value;\n\n\t\tthis.fireEvent(\"input\");\n\t}\n\n\t_inputChange() {\n\t\tif (!this._clearingValue && this._lastValue !== this.value) {\n\t\t\tthis._lastValue = this.value;\n\t\t\tthis.fireEvent(\"change\");\n\t\t}\n\t}\n\n\t_onMobileInputKeydown(e: KeyboardEvent) {\n\t\tif (!isEnter(e)) {\n\t\t\treturn;\n\t\t}\n\t\tconst { value } = (e.target as Input);\n\t\tconst matchingItem = this._getItems().find(item => item.text === value);\n\n\t\tif (!matchingItem) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst initiallySelected = matchingItem?.selected;\n\t\tconst changePrevented = this.fireSelectionChange();\n\n\t\tif (!changePrevented) {\n\t\t\tmatchingItem.selected = !initiallySelected;\n\t\t\tthis._getResponsivePopover().preventFocusRestore = false;\n\t\t\tthis._open = false;\n\t\t\tthis.value = \"\";\n\t\t}\n\t}\n\n\t_toggleTokenizerPopover() {\n\t\tthis.tokenizerOpen = false;\n\t\tthis._open = !this.open;\n\t}\n\n\ttogglePopoverByDropdownIcon() {\n\t\tthis._shouldFilterItems = false;\n\t\tthis._open = !this.open;\n\t\tthis.tokenizerOpen = false;\n\t}\n\n\t_showFilteredItems() {\n\t\tthis.filterSelected = true;\n\t\tthis._showMorePressed = true;\n\n\t\tthis._toggleTokenizerPopover();\n\t}\n\n\tfilterSelectedItems(e: MouseEvent) {\n\t\tthis.filterSelected = (e.target as ToggleButton).pressed;\n\t\tconst selectedItems = this._filteredItems.filter(item => item.selected);\n\n\t\tthis.selectedItems = this._getItems().filter((item, idx, allItems) => MultiComboBox._groupItemFilter(item, ++idx, allItems, selectedItems) || selectedItems.indexOf(item) !== -1);\n\t}\n\n\t/**\n\t * Indicates whether the dropdown is open. True if the dropdown is open, false otherwise.\n\t * @default false\n\t * @public\n\t */\n\tget open(): boolean {\n\t\treturn this._open;\n\t}\n\n\tget _showAllItemsButtonPressed(): boolean {\n\t\treturn this.filterSelected;\n\t}\n\n\tget _inputDom(): HTMLInputElement {\n\t\treturn this.shadowRoot!.querySelector(\"#ui5-multi-combobox-input\")!;\n\t}\n\n\t_inputLiveChange(e: InputEvent) {\n\t\tconst input = e.target as HTMLInputElement;\n\t\tconst value: string = input.value;\n\t\tconst filteredItems: Array = this._filterItems(value);\n\t\tconst oldValueState: `${ValueState}` = this.valueState;\n\n\t\tthis._shouldFilterItems = true;\n\n\t\tif (this.filterSelected) {\n\t\t\tthis.filterSelected = false;\n\t\t}\n\n\t\tif (this._validationTimeout) {\n\t\t\tif (this._filterItems(value).length) {\n\t\t\t\tthis.valueState = this._effectiveValueState;\n\t\t\t\tthis._validationTimeout = null;\n\t\t\t} else {\n\t\t\t\tinput.value = this._inputLastValue;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tthis._effectiveValueState = this.valueState;\n\n\t\tif (!filteredItems.length && value && !this.noValidation) {\n\t\t\tconst newValue = this.valueBeforeAutoComplete || this._inputLastValue;\n\n\t\t\tinput.value = newValue;\n\t\t\tthis.value = newValue;\n\t\t\tthis.valueState = ValueState.Negative;\n\n\t\t\tthis._shouldAutocomplete = false;\n\t\t\tthis._resetValueState(oldValueState);\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis._inputLastValue = input.value;\n\t\tthis.value = input.value;\n\t\tthis._filteredItems = filteredItems;\n\n\t\tif (!isPhone()) {\n\t\t\tif (filteredItems.length === 0) {\n\t\t\t\tthis._open = false;\n\t\t\t} else {\n\t\t\t\tthis._open = true;\n\t\t\t}\n\t\t}\n\n\t\tthis.fireEvent(\"input\");\n\t}\n\n\t_tokenDelete(e: CustomEvent) {\n\t\tthis._previouslySelectedItems = this._getSelectedItems();\n\t\tconst token: Token[] = e.detail.tokens;\n\t\tconst deletingItems = this.items.filter(item => token.some(t => t.getAttribute(\"data-ui5-id\") === item._id));\n\n\t\tdeletingItems.forEach(item => {\n\t\t\titem.selected = false;\n\t\t});\n\n\t\tthis._deleting = true;\n\t\tthis._preventTokenizerToggle = true;\n\n\t\tthis.focus();\n\t\tconst changePrevented = this.fireSelectionChange();\n\n\t\tif (changePrevented) {\n\t\t\tthis._revertSelection();\n\t\t}\n\t}\n\n\tget _getPlaceholder(): string {\n\t\tif (this._getSelectedItems().length) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\treturn this.placeholder || \"\";\n\t}\n\n\t_handleArrowLeft() {\n\t\tconst inputDomRef = this._inputDom;\n\t\tconst cursorPosition = inputDomRef.selectionStart || 0;\n\t\tconst isTextSelected = ((inputDomRef.selectionEnd || 0) - cursorPosition) > 0;\n\n\t\tif (cursorPosition === 0 && !isTextSelected) {\n\t\t\tthis._tokenizer._focusLastToken();\n\t\t}\n\t}\n\n\t_onPopoverFocusOut() {\n\t\tif (!isPhone()) {\n\t\t\tthis._tokenizer.expanded = this._open;\n\t\t}\n\t}\n\n\t_tokenizerFocusOut(e: FocusEvent) {\n\t\tthis._tokenizerFocused = false;\n\n\t\tconst tokensCount = this._tokenizer.tokens.length;\n\t\tconst selectedTokens = this._selectedTokensCount;\n\t\tconst lastTokenBeingDeleted = tokensCount - 1 === 0 && this._deleting;\n\t\tconst allTokensAreBeingDeleted = selectedTokens === tokensCount && this._deleting;\n\t\tconst relatedTarget: HTMLElement | undefined = e.relatedTarget as HTMLElement;\n\n\t\tif (!this.shadowRoot?.contains(relatedTarget)) {\n\t\t\tthis._tokenizer.tokens.forEach(token => {\n\t\t\t\ttoken.selected = false;\n\t\t\t});\n\n\t\t\tthis._tokenizer.expanded = this._preventTokenizerToggle ? this._tokenizer.expanded : false;\n\t\t}\n\n\t\tif (allTokensAreBeingDeleted || lastTokenBeingDeleted) {\n\t\t\tsetTimeout(() => {\n\t\t\t\tif (!isPhone()) {\n\t\t\t\t\tthis._inputDom.focus();\n\t\t\t\t}\n\n\t\t\t\tthis._deleting = false;\n\t\t\t}, 0);\n\t\t}\n\t}\n\n\t_tokenizerFocusIn() {\n\t\tthis._tokenizerFocused = true;\n\t\tthis.focused = false;\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tconst isArrowDownCtrl: boolean = isDownCtrl(e);\n\t\tconst isCtrl: boolean = e.metaKey || e.ctrlKey;\n\n\t\tif (isShow(e) && !this.disabled) {\n\t\t\tthis._handleShow(e);\n\t\t\treturn;\n\t\t}\n\n\t\tif (isDownShift(e) || isUpShift(e)) {\n\t\t\te.preventDefault();\n\t\t\treturn;\n\t\t}\n\n\t\tif (isUp(e) || isDown(e) || isUpCtrl(e) || isArrowDownCtrl) {\n\t\t\tthis._handleArrowNavigation(e, isArrowDownCtrl);\n\t\t\treturn;\n\t\t}\n\n\t\t// CTRL + Arrow Down navigation is performed by the ItemNavigation module of the List,\n\t\t// here we only implement the text selection of the selected item\n\t\tif (isArrowDownCtrl && !this.open) {\n\t\t\tsetTimeout(() => this._inputDom.setSelectionRange(0, this._inputDom.value.length), 0);\n\t\t}\n\n\t\tif (isLeftCtrl(e) || isRightCtrl(e)) {\n\t\t\tthis._handleArrowCtrl(e);\n\t\t\treturn;\n\t\t}\n\n\t\tif (isInsertShift(e)) {\n\t\t\tthis._handleInsertPaste(e);\n\t\t\treturn;\n\t\t}\n\n\t\tif (isCtrl && e.key.toLowerCase() === \"i\" && this._tokenizer.tokens.length > 0) {\n\t\t\te.preventDefault();\n\t\t\tthis._toggleTokenizerPopover();\n\t\t}\n\n\t\tif (isSpaceShift(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (\n\t\t\te.key === \"ArrowLeft\"\n\t\t\t|| e.key === \"Show\"\n\t\t\t|| e.key === \"PageUp\"\n\t\t\t|| e.key === \"PageDown\"\n\t\t\t|| e.key === \"Backspace\"\n\t\t\t|| e.key === \"Escape\"\n\t\t\t|| e.key === \"Home\"\n\t\t\t|| e.key === \"End\"\n\t\t\t|| e.key === \"Tab\"\n\t\t\t|| e.key === \"ArrowDown\"\n\t\t\t|| e.key === \"Enter\"\n\t\t) {\n\t\t\tthis[`_handle${e.key}`](e);\n\t\t}\n\n\t\tthis._shouldAutocomplete = !this.noTypeahead && !(isBackSpace(e) || isDelete(e) || isEscape(e) || isEnter(e));\n\t}\n\n\t_selectItems(matchingItems: IMultiComboBoxItem[]) {\n\t\tthis._previouslySelectedItems = this._getSelectedItems();\n\n\t\tmatchingItems.forEach(item => {\n\t\t\titem.selected = true;\n\t\t\tthis.value = \"\";\n\n\t\t\tconst changePrevented = this.fireSelectionChange();\n\n\t\t\tif (changePrevented) {\n\t\t\t\tthis._revertSelection();\n\t\t\t}\n\t\t});\n\t}\n\n\t_handlePaste(e: ClipboardEvent) {\n\t\tif (this.readonly || !e.clipboardData) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst pastedText = (e.clipboardData).getData(\"text/plain\");\n\n\t\tif (!pastedText) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._handleTokenCreationUponPaste(pastedText, e);\n\t}\n\n\t_handleTokenCreationUponPaste(pastedText: string, e: KeyboardEvent | ClipboardEvent) {\n\t\tconst separatedText = pastedText.split(/\\r\\n|\\r|\\n|\\t/g).filter(t => !!t);\n\t\tconst matchingItems = this._getItems().filter(item => !item.isGroupItem && !item.selected && separatedText.includes(item.text!));\n\n\t\tif (matchingItems.length > 1) {\n\t\t\te.preventDefault();\n\t\t\tthis._selectItems(matchingItems);\n\t\t}\n\t}\n\n\tasync _handleInsertPaste(e: KeyboardEvent) {\n\t\tif (this.readonly || isFirefox()) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst pastedText = await navigator.clipboard.readText();\n\n\t\tif (!pastedText) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._handleTokenCreationUponPaste(pastedText, e);\n\t}\n\n\t_handleShow(e: KeyboardEvent) {\n\t\tconst items = this._getItems();\n\t\tconst selectedItem = this._getSelectedItems()[0];\n\t\tconst focusedToken = this._tokenizer.tokens.find(token => token.focused);\n\t\tconst value = this.value;\n\t\tconst matchingItem = this._getItems().find(item => item.text?.localeCompare(value, undefined, { sensitivity: \"base\" }) === 0);\n\n\t\te.preventDefault();\n\n\t\tif (this.readonly) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._isOpenedByKeyboard = true;\n\t\tthis._shouldFilterItems = false;\n\t\tthis._filteredItems = this._getItems();\n\n\t\tthis._toggleTokenizerPopover();\n\n\t\tif (!focusedToken && matchingItem) {\n\t\t\tthis._itemToFocus = matchingItem;\n\t\t\treturn;\n\t\t}\n\n\t\tif (selectedItem && !focusedToken) {\n\t\t\tthis._itemToFocus = selectedItem;\n\t\t} else if (focusedToken && e.target === focusedToken) {\n\t\t\tthis._itemToFocus = items.find(item => item.text === focusedToken.text);\n\t\t} else {\n\t\t\tthis._itemToFocus = items.find(item => isInstanceOfMultiComboBoxItem(item));\n\t\t}\n\t}\n\n\t_handlePageUp(e: KeyboardEvent) {\n\t\te.preventDefault();\n\t}\n\n\t_handlePageDown(e: KeyboardEvent) {\n\t\te.preventDefault();\n\t}\n\n\t_handleBackspace(e: KeyboardEvent) {\n\t\tif ((e.target as HTMLInputElement).value === \"\") {\n\t\t\te.preventDefault();\n\t\t\tthis._tokenizer._focusLastToken();\n\t\t}\n\t}\n\n\t_handleEscape() {\n\t\tconst innerInput = this._innerInput;\n\t\tconst isAutoCompleted = ((innerInput.selectionEnd || 0) - (innerInput.selectionStart || 0)) > 0;\n\n\t\tif (isAutoCompleted) {\n\t\t\tthis.value = this.valueBeforeAutoComplete;\n\t\t}\n\n\t\tif (!this.noValidation || (!this._open && this.noValidation)) {\n\t\t\tthis.value = this._lastValue;\n\t\t}\n\t}\n\n\t_handleHome(e: KeyboardEvent) {\n\t\tconst shouldFocusToken = this._isFocusInside && (e.target as HTMLInputElement).selectionStart === 0 && this._tokenizer.tokens.length > 0;\n\n\t\tif (shouldFocusToken) {\n\t\t\te.preventDefault();\n\t\t\tthis._tokenizer.tokens[0].focus();\n\t\t}\n\t}\n\n\t_handleEnd(e: KeyboardEvent) {\n\t\tconst tokens = this._tokenizer.tokens;\n\t\tconst lastTokenIdx = tokens.length - 1;\n\t\tconst shouldFocusInput = e.target === tokens[lastTokenIdx] && tokens[lastTokenIdx] === this.shadowRoot!.activeElement;\n\n\t\tif (shouldFocusInput) {\n\t\t\te.preventDefault();\n\t\t\tthis._inputDom.focus();\n\t\t}\n\t}\n\n\t_handleTab() {\n\t\tthis._open = false;\n\t}\n\n\t_handleSelectAll() {\n\t\tconst filteredItems = this._filteredItems.filter(item => !item.isGroupItem);\n\t\tconst allItemsSelected = filteredItems.every(item => item.selected);\n\t\tthis._previouslySelectedItems = filteredItems.filter(item => item.selected).map(item => item);\n\n\t\tfilteredItems.forEach(item => {\n\t\t\titem.selected = !allItemsSelected;\n\t\t});\n\n\t\tconst changePrevented = this.fireSelectionChange();\n\n\t\tif (changePrevented) {\n\t\t\tthis._revertSelection();\n\t\t}\n\t}\n\n\tasync _onListHeaderKeydown(e: KeyboardEvent) {\n\t\tconst isArrowDown = isDown(e);\n\t\tconst isArrowUp = isUp(e);\n\t\tconst isSelectAllFocused = (e.target as HTMLElement).classList.contains(\"ui5-mcb-select-all-checkbox\");\n\n\t\tif (isTabNext(e) || isTabPrevious(e)) {\n\t\t\tthis._onItemTab();\n\t\t\treturn;\n\t\t}\n\n\t\te.preventDefault();\n\n\t\tif (isArrowDown || isDownCtrl(e)) {\n\t\t\tif (this.showSelectAll && !isSelectAllFocused) {\n\t\t\t\treturn (this._getResponsivePopover()!.querySelector(\".ui5-mcb-select-all-checkbox\") as CheckBox).focus();\n\t\t\t}\n\n\t\t\tthis._handleArrowDown();\n\t\t}\n\n\t\tif (isArrowUp || isUpCtrl(e)) {\n\t\t\tif (e.target === this.valueStateHeader || !this.valueStateHeader) {\n\t\t\t\tthis._shouldAutocomplete = true;\n\t\t\t\treturn this._inputDom.focus();\n\t\t\t}\n\n\t\t\tif (this.showSelectAll && isSelectAllFocused) {\n\t\t\t\tthis.valueStateHeader?.focus();\n\t\t\t}\n\t\t}\n\t}\n\n\t_handleSelectAllCheckboxClick(e: CustomEvent) {\n\t\tif (!this.filterSelected) {\n\t\t\tthis._handleSelectAll();\n\t\t\tthis.filterSelected = false;\n\t\t} else {\n\t\t\tthis._previouslySelectedItems = this._getSelectedItems();\n\t\t\tthis.selectedItems?.filter(item => !item.isGroupItem).forEach(item => {\n\t\t\t\titem.selected = (e.target as CheckBox).checked;\n\t\t\t});\n\n\t\t\tif (!(e.target as CheckBox).checked) {\n\t\t\t\tthis.filterSelected = false;\n\t\t\t}\n\n\t\t\tconst changePrevented = this.fireSelectionChange();\n\n\t\t\tif (changePrevented) {\n\t\t\t\tthis._revertSelection();\n\t\t\t}\n\t\t}\n\t}\n\n\t_onItemKeydown(e: KeyboardEvent) {\n\t\tconst isFirstItemGroup = this.list?.items[1] === e.target && this.list?.items[0].hasAttribute(\"ui5-li-group\");\n\t\tconst isFirstItem = this.list?.items[0] === e.target || isFirstItemGroup;\n\t\tconst isArrowUp = isUp(e) || isUpCtrl(e);\n\n\t\tif (this.hasValueStateMessage && !this.valueStateHeader) {\n\t\t\tthis._setValueStateHeader();\n\t\t}\n\n\t\tif (isTabNext(e) || isTabPrevious(e)) {\n\t\t\tthis._onItemTab();\n\t\t\treturn;\n\t\t}\n\n\t\tif (isHomeCtrl(e)) {\n\t\t\tthis.list?._itemNavigation._handleHome();\n\t\t\tthis.list?.items[this.list?._itemNavigation._currentIndex].focus();\n\t\t}\n\n\t\tif (isEndCtrl(e)) {\n\t\t\tthis.list?._itemNavigation._handleEnd();\n\t\t\tthis.list?.items[this.list?._itemNavigation._currentIndex].focus();\n\t\t}\n\n\t\te.preventDefault();\n\n\t\tif (isDownShift(e) || isUpShift(e)) {\n\t\t\tthis._handleItemRangeSelection(e);\n\t\t\treturn;\n\t\t}\n\n\t\tif ((isUpCtrl(e)) && !isFirstItem) {\n\t\t\tthis.list?._itemNavigation._handleUp();\n\t\t\tthis.list?.items[this.list?._itemNavigation._currentIndex].focus();\n\t\t}\n\n\t\tif (isDownCtrl(e)) {\n\t\t\tthis.list?._itemNavigation._handleDown();\n\t\t\tthis.list?.items[this.list?._itemNavigation._currentIndex].focus();\n\t\t}\n\n\t\tif (isShow(e)) {\n\t\t\tthis._toggleTokenizerPopover();\n\t\t}\n\n\t\tif (isCtrlA(e)) {\n\t\t\tthis._handleSelectAll();\n\t\t\treturn;\n\t\t}\n\n\t\tif (isFirstItem && isArrowUp) {\n\t\t\tif (this.showSelectAll) {\n\t\t\t\tif (isFirstItemGroup) {\n\t\t\t\t\tthis.list?.items[0].focus();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t(this._getResponsivePopover()!.querySelector(\".ui5-mcb-select-all-checkbox\") as CheckBox).focus();\n\t\t\t} else if (this.valueStateHeader) {\n\t\t\t\tthis.valueStateHeader.focus();\n\t\t\t} else {\n\t\t\t\tthis._inputDom.focus();\n\t\t\t\tthis._shouldAutocomplete = true;\n\t\t\t}\n\t\t}\n\t}\n\n\t_handleArrowCtrl(e: KeyboardEvent) {\n\t\tconst input = this._inputDom;\n\t\tconst isArrowLeft = isLeftCtrl(e);\n\n\t\tif (isArrowLeft && input.selectionStart === 0 && input.selectionEnd === 0) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (isArrowLeft && ((input.selectionEnd || 0) - (input.selectionStart || 0) > 0)) {\n\t\t\tinput.setSelectionRange(0, 0);\n\t\t}\n\t}\n\n\t_onItemTab() {\n\t\tthis._getResponsivePopover().preventFocusRestore = true;\n\t\tthis._inputDom.focus();\n\t\tthis._open = false;\n\t\tthis._tokenizer.expanded = false;\n\t}\n\n\t_handleArrowNavigation(e: KeyboardEvent, isDownControl: boolean) {\n\t\tconst isArrowDown = isDownControl || isDown(e);\n\t\tconst hasSuggestions = this._getItems().length;\n\n\t\te.preventDefault();\n\n\t\tif (this.hasValueStateMessage && !this.valueStateHeader) {\n\t\t\tthis._setValueStateHeader();\n\t\t}\n\n\t\tif (isArrowDown && this.open) {\n\t\t\tif (this.valueStateHeader) {\n\t\t\t\tthis.value = this.valueBeforeAutoComplete || this.value;\n\t\t\t\tthis.valueStateHeader.focus();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (this.showSelectAll) {\n\t\t\t\t(this._getResponsivePopover()!.querySelector(\".ui5-mcb-select-all-checkbox\") as CheckBox).focus();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif (isArrowDown && hasSuggestions) {\n\t\t\tthis._handleArrowDown();\n\t\t}\n\n\t\tif (!isArrowDown && !this._open && !this.readonly) {\n\t\t\tthis._navigateToPrevItem();\n\t\t}\n\t}\n\n\tasync _handleArrowDown() {\n\t\tconst firstListItem = this.list?.listItems[0];\n\n\t\tif (this.open) {\n\t\t\tfirstListItem && this.list?._itemNavigation.setCurrentItem(firstListItem);\n\t\t\tthis.value = this.valueBeforeAutoComplete || this.value;\n\n\t\t\t// wait item navigation to apply correct tabindex\n\t\t\tawait renderFinished();\n\t\t\tfirstListItem?.focus();\n\t\t} else if (!this.readonly) {\n\t\t\tthis._navigateToNextItem();\n\t\t}\n\t}\n\n\t_handleItemRangeSelection(e: KeyboardEvent) {\n\t\tconst items = this._getItems();\n\t\tconst listItems = this.list?.items;\n\t\tconst currentItemIdx = Number(listItems?.indexOf(e.target as ListItemBase));\n\t\tconst nextItemIdx = currentItemIdx + 1;\n\t\tconst prevItemIdx = currentItemIdx - 1;\n\t\tthis._previouslySelectedItems = this._getSelectedItems();\n\t\tif (isDownShift(e) && items[nextItemIdx]) {\n\t\t\titems[nextItemIdx].selected = items[currentItemIdx].selected;\n\t\t\titems[nextItemIdx].focus();\n\t\t}\n\n\t\tif (isUpShift(e) && items[prevItemIdx]) {\n\t\t\titems[prevItemIdx].selected = items[currentItemIdx].selected;\n\t\t\titems[prevItemIdx].focus();\n\t\t}\n\n\t\tconst changePrevented = this.fireSelectionChange();\n\n\t\tif (changePrevented) {\n\t\t\tthis._revertSelection();\n\t\t}\n\t}\n\n\t_navigateToNextItem() {\n\t\tconst items = this._getItems();\n\t\tconst itemsCount = items.length;\n\t\tconst previousItemIdx = this.currentItemIdx;\n\n\t\tif (previousItemIdx > -1 && items[previousItemIdx].text !== this.value) {\n\t\t\tthis.currentItemIdx = -1;\n\t\t}\n\n\t\tif (previousItemIdx >= itemsCount - 1) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet currentItem = this._getItems()[++this.currentItemIdx];\n\n\t\twhile ((this.currentItemIdx < itemsCount - 1 && currentItem.selected) || currentItem.isGroupItem) {\n\t\t\tcurrentItem = this._getItems()[++this.currentItemIdx];\n\t\t}\n\n\t\tif (currentItem.selected === true || currentItem.isGroupItem) {\n\t\t\tthis.currentItemIdx = previousItemIdx;\n\t\t\treturn;\n\t\t}\n\n\t\tthis.value = currentItem.text!;\n\t\tthis._innerInput.value = currentItem.text!;\n\t\tthis._innerInput.setSelectionRange(0, currentItem.text!.length);\n\t}\n\n\t_navigateToPrevItem() {\n\t\tconst items = this._getItems();\n\t\tlet previousItemIdx = this.currentItemIdx;\n\n\t\tif ((!this.value && previousItemIdx !== -1) || (previousItemIdx !== -1 && this.value && this.value !== items[previousItemIdx].text)) {\n\t\t\tpreviousItemIdx = -1;\n\t\t}\n\n\t\tif (previousItemIdx === -1) {\n\t\t\tthis.currentItemIdx = items.length;\n\t\t}\n\n\t\tif (previousItemIdx === 0) {\n\t\t\tthis.currentItemIdx = 0;\n\t\t\treturn;\n\t\t}\n\n\t\tlet currentItem = this._getItems()[--this.currentItemIdx];\n\n\t\twhile ((currentItem && this.currentItemIdx > 0) && (currentItem.selected || currentItem.isGroupItem)) {\n\t\t\tcurrentItem = this._getItems()[--this.currentItemIdx];\n\t\t}\n\n\t\tif (!currentItem) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (currentItem.selected || currentItem.isGroupItem) {\n\t\t\tthis.currentItemIdx = previousItemIdx;\n\t\t\treturn;\n\t\t}\n\n\t\tthis.value = currentItem.text!;\n\t\tthis._innerInput.value = currentItem.text!;\n\t\tthis._innerInput.setSelectionRange(0, currentItem.text!.length);\n\t}\n\n\t_handleEnter() {\n\t\tconst lowerCaseValue = this.value.toLowerCase();\n\t\tconst matchingItem = this._getItems().find(item => (!item.isGroupItem && item.text!.toLowerCase() === lowerCaseValue));\n\t\tconst oldValueState = this.valueState;\n\t\tconst innerInput = this._innerInput;\n\n\t\tif (this._internals.form) {\n\t\t\tsubmitForm(this);\n\t\t}\n\n\t\tif (matchingItem) {\n\t\t\tif (matchingItem.selected) {\n\t\t\t\tif (this._validationTimeout) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.valueState = ValueState.Negative;\n\t\t\t\tthis._performingSelectionTwice = true;\n\t\t\t\tthis._resetValueState(oldValueState, () => {\n\t\t\t\t\tthis._performingSelectionTwice = false;\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis._previouslySelectedItems = this._getSelectedItems();\n\t\t\t\tmatchingItem.selected = true;\n\t\t\t\tthis.value = \"\";\n\t\t\t\tconst changePrevented = this.fireSelectionChange();\n\n\t\t\t\tif (changePrevented) {\n\t\t\t\t\tthis._revertSelection();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tinnerInput.setSelectionRange(matchingItem.text!.length, matchingItem.text!.length);\n\t\t\tthis._open = false;\n\t\t}\n\t}\n\n\t_resetValueState(valueState: `${ValueState}`, callback?: () => void) {\n\t\tthis._validationTimeout = setTimeout(() => {\n\t\t\tthis._effectiveValueState = this.valueState;\n\t\t\tthis._dialogInputValueState = valueState;\n\t\t\tthis.valueState = valueState;\n\t\t\tthis._validationTimeout = null;\n\n\t\t\tcallback && callback();\n\t\t}, 2000);\n\t}\n\n\t_onTokenizerKeydown(e: KeyboardEvent) {\n\t\tif (isRight(e)) {\n\t\t\tconst lastTokenIndex = this._tokenizer.tokens.length - this._tokenizer.overflownTokens.length - 1;\n\n\t\t\tif (e.target === this._tokenizer.tokens[lastTokenIndex]) {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tthis._inputDom.focus();\n\t\t\t\t}, 0);\n\t\t\t}\n\t\t}\n\n\t\tif (isInsertShift(e)) {\n\t\t\tthis._handleInsertPaste(e);\n\t\t}\n\n\t\tif (isHome(e)) {\n\t\t\tthis._handleHome(e);\n\t\t}\n\n\t\tif (isEnd(e)) {\n\t\t\tthis._handleEnd(e);\n\t\t}\n\n\t\tif (isShow(e) && !this.readonly && !this.disabled) {\n\t\t\tthis._preventTokenizerToggle = true;\n\t\t\tthis._handleShow(e);\n\t\t}\n\t}\n\n\t_filterItems(str: string) {\n\t\tconst itemsToFilter = this._getItems().filter(item => !item.isGroupItem);\n\t\tconst filteredItems = (Filters[this.filter] || Filters.StartsWithPerTerm)(str, itemsToFilter, \"text\");\n\n\t\t// Return the filtered items and their group items\n\t\treturn this._getItems().filter((item, idx, allItems) => MultiComboBox._groupItemFilter(item, ++idx, allItems, filteredItems) || filteredItems.indexOf(item) !== -1);\n\t}\n\n\t/**\n\t * Returns true if the group header should be shown (if there is a filtered suggestion item for this group item)\n\t * @private\n\t */\n\tstatic _groupItemFilter(item: IMultiComboBoxItem, idx: number, allItems: Array, filteredItems: Array) {\n\t\tif (item.isGroupItem) {\n\t\t\tlet groupHasFilteredItems;\n\n\t\t\twhile (allItems[idx] && !allItems[idx].isGroupItem && !groupHasFilteredItems) {\n\t\t\t\tgroupHasFilteredItems = filteredItems.indexOf(allItems[idx]) !== -1;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\treturn groupHasFilteredItems;\n\t\t}\n\t}\n\n\t_afterOpen() {\n\t\tconst action = this._open ? \"open\" : \"close\";\n\n\t\tif (!isPhone() && !this._isOpenedByKeyboard) {\n\t\t\tthis._innerInput.focus();\n\t\t} else if (this._isOpenedByKeyboard) {\n\t\t\tthis._itemToFocus?.focus();\n\t\t} else {\n\t\t\tthis._getResponsivePopover().focus();\n\t\t}\n\n\t\tthis.fireEvent(action);\n\n\t\tthis._previouslySelectedItems = this._getSelectedItems();\n\t\tthis._isOpenedByKeyboard = false;\n\t}\n\n\t/**\n\t * Retrieves a flat structure of all MultiComboBox items from the slotted nodes.\n\t *\n\t * @private\n\t */\n\t_getItems(): Array {\n\t\tconst items: IMultiComboBoxItem[] = [];\n\t\tconst slottedItems = this.getSlottedNodes(\"items\");\n\n\t\tslottedItems.forEach(item => {\n\t\t\tif (isInstanceOfMultiComboBoxItemGroup(item)) {\n\t\t\t\tconst groupItems = [item, ...item.items].filter(Boolean);\n\t\t\t\titems.push(...groupItems);\n\t\t\t} else {\n\t\t\t\titems.push(item);\n\t\t\t}\n\t\t});\n\n\t\treturn items;\n\t}\n\n\t_getSelectedItems(): Array {\n\t\t// Angular 2 way data binding\n\t\tthis.selectedValues = this._getItems().filter(item => item.selected);\n\t\treturn this.selectedValues as Array;\n\t}\n\n\t_listSelectionChange(e: CustomEvent) {\n\t\tlet changePrevented;\n\n\t\tif (!isPhone()) {\n\t\t\tthis._previouslySelectedItems = this._getSelectedItems();\n\t\t}\n\n\t\t// sync list items and cb items\n\t\tthis.syncItems((e.target as List).listItems);\n\n\t\t// don't call selection change right after selection as user can cancel it on phone\n\t\tif (!isPhone()) {\n\t\t\tchangePrevented = this.fireSelectionChange();\n\n\t\t\tif (changePrevented) {\n\t\t\t\te.preventDefault();\n\t\t\t\tthis._revertSelection();\n\t\t\t}\n\t\t}\n\n\t\t// casted to KeyboardEvent since isSpace and isSpaceCtrl accepts KeyboardEvent only\n\t\tconst castedEvent = { key: e.detail.key } as KeyboardEvent;\n\n\t\tif (!e.detail.selectedItems.length && this.filterSelected) {\n\t\t\tthis.filterSelected = false;\n\t\t}\n\n\t\tif (!e.detail.selectionComponentPressed && !isSpace(castedEvent) && !isSpaceCtrl(castedEvent)) {\n\t\t\tthis._open = false;\n\t\t\tthis.value = \"\";\n\n\t\t\t// if the item (not checkbox) is clicked, call the selection change\n\t\t\tif (isPhone()) {\n\t\t\t\tchangePrevented = this.fireSelectionChange();\n\t\t\t\tif (changePrevented) {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\tthis._revertSelection();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.fireEvent(\"input\");\n\t\t\treturn;\n\t\t}\n\n\t\tthis.value = this.valueBeforeAutoComplete || \"\";\n\t}\n\n\tsyncItems(listItems: Array) {\n\t\tlistItems.forEach(item => {\n\t\t\tthis._getItems().forEach(mcbItem => {\n\t\t\t\tif (mcbItem._id === item.getAttribute(\"data-ui5-token-id\")) {\n\t\t\t\t\tmcbItem.selected = item.selected;\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\tfireSelectionChange() {\n\t\tconst changePrevented = !this.fireEvent(\"selection-change\", {\n\t\t\titems: this._getSelectedItems(),\n\t\t}, true);\n\n\t\t// Angular 2 way data binding\n\t\tthis.fireEvent(\"value-changed\");\n\n\t\treturn changePrevented;\n\t}\n\n\t_getList(): List {\n\t\tthis.list = this.shadowRoot!.querySelector(\".ui5-multi-combobox-all-items-list\")!;\n\t\treturn this.list;\n\t}\n\n\t_click() {\n\t\tif (isPhone() && !this.readonly && !this._showMorePressed && !this._deleting) {\n\t\t\tthis._open = true;\n\t\t}\n\n\t\tthis._showMorePressed = false;\n\t}\n\n\thandleBeforeTokenizerPopoverOpen() {\n\t\tconst tokens = this._tokenizer.tokens;\n\t\tconst hasTruncatedToken = tokens.length === 1 && tokens[0].isTruncatable;\n\t\tconst popover = this._getResponsivePopover();\n\n\t\tif (hasTruncatedToken && popover) {\n\t\t\tpopover.preventFocusRestore = true;\n\t\t\tpopover.open = false;\n\t\t}\n\t}\n\n\t_beforeClose() {\n\t\tthis._open = false;\n\t}\n\n\t_afterClose() {\n\t\tconst action = this._open ? \"open\" : \"close\";\n\n\t\t// close device's keyboard and prevent further typing\n\t\tif (isPhone()) {\n\t\t\tthis._dialogInputValueState = this.valueState;\n\t\t\tthis._tokenizer.expanded = false;\n\t\t}\n\n\t\tthis.fireEvent(action);\n\n\t\tthis._iconPressed = false;\n\t\tthis._preventTokenizerToggle = false;\n\t\tthis.filterSelected = false;\n\t}\n\n\t_beforeOpen() {\n\t\tthis._open = true;\n\t\tthis._itemsBeforeOpen = this._getItems().map(item => {\n\t\t\treturn {\n\t\t\t\tref: item,\n\t\t\t\tselected: item.selected,\n\t\t\t};\n\t\t});\n\n\t\tthis._valueBeforeOpen = this.value;\n\t\tthis._dialogInputValueState = this.valueState;\n\n\t\t// in order to use the autocomplete feature of the input we should not set value in state\n\t\tthis._innerInput.value = this.value;\n\n\t\tif (this.filterSelected) {\n\t\t\tconst selectedItems = this._filteredItems.filter(item => item.selected);\n\t\t\tthis.selectedItems = this._getItems().filter((item, idx, allItems) => MultiComboBox._groupItemFilter(item, ++idx, allItems, selectedItems) || selectedItems.indexOf(item) !== -1);\n\t\t}\n\t}\n\n\t_handleTypeAhead(item: IMultiComboBoxItem, filterValue: string) {\n\t\tif (!item) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst value = item.text;\n\t\tconst innerInput = this._innerInput;\n\n\t\tfilterValue = filterValue || \"\";\n\t\tthis.value = value!;\n\n\t\tinnerInput.value = value!;\n\t\tinnerInput.setSelectionRange(filterValue.length, value!.length);\n\n\t\tthis._shouldAutocomplete = false;\n\t}\n\n\t_getFirstMatchingItem(current: string) {\n\t\tif (!this._getItems().length) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst matchingItems = this._startsWithMatchingItems(current).filter(item => !item.selected);\n\n\t\tif (matchingItems.length) {\n\t\t\treturn matchingItems[0];\n\t\t}\n\t}\n\n\t_startsWithMatchingItems(str: string) {\n\t\treturn Filters.StartsWith(str, this._getItems().filter(item => !item.isGroupItem), \"text\");\n\t}\n\n\t_revertSelection() {\n\t\tthis._filteredItems.forEach(item => {\n\t\t\titem.selected = this._previouslySelectedItems.includes(item);\n\t\t});\n\t}\n\n\tonBeforeRendering() {\n\t\tconst input = this._innerInput;\n\t\tconst autoCompletedChars = input && (input.selectionEnd || 0) - (input.selectionStart || 0);\n\t\tconst value = input && input.value;\n\n\t\tif (this.open) {\n\t\t\tconst list = this._getList();\n\t\t\tconst selectedListItemsCount = list?.querySelectorAll(\"[ui5-li][selected]\")?.length;\n\t\t\tconst items = this._getItems().filter(item => !item.isGroupItem);\n\t\t\tconst listItems = list?.querySelectorAll(\"[ui5-li]\")?.length;\n\t\t\tconst selectedItemsCount = items.filter(item => item.selected).length;\n\t\t\tthis._allSelected = selectedItemsCount === items.length || selectedListItemsCount === listItems;\n\t\t}\n\n\t\tthis._effectiveShowClearIcon = (this.showClearIcon && !!this.value && !this.readonly && !this.disabled);\n\n\t\tthis._inputLastValue = value;\n\n\t\tif (input && !input.value) {\n\t\t\tthis.valueBeforeAutoComplete = \"\";\n\t\t\tthis._filteredItems = this._getItems();\n\t\t}\n\n\t\tthis.tokenizerAvailable = this._getSelectedItems().length > 0;\n\t\tthis.style.setProperty(getScopedVarName(\"--_ui5-input-icons-count\"), `${this.iconsCount}`);\n\n\t\tif (!input || !value) {\n\t\t\treturn;\n\t\t}\n\t\t// Typehead causes issues on Android devices, so we disable it for now\n\t\t// If there is already a selection the autocomplete has already been performed\n\t\tif (this._shouldAutocomplete && !isAndroid()) {\n\t\t\tconst item = this._getFirstMatchingItem(value);\n\n\t\t\t// Keep the original typed in text intact\n\t\t\tthis.valueBeforeAutoComplete = value;\n\t\t\titem && this._handleTypeAhead(item, value);\n\t\t}\n\n\t\tif (this._shouldFilterItems) {\n\t\t\tthis._filteredItems = this._filterItems(this._shouldAutocomplete || !!autoCompletedChars ? this.valueBeforeAutoComplete : value);\n\t\t} else {\n\t\t\tthis._filteredItems = this._getItems();\n\t\t}\n\t}\n\n\tonAfterRendering() {\n\t\tthis._getList();\n\t\tthis.valueStateOpen = this.shouldDisplayOnlyValueStateMessage;\n\t\tthis.storeResponsivePopoverWidth();\n\n\t\tthis._deleting = false;\n\t\t// force resize of the tokenizer on invalidation\n\t\tthis._tokenizer._handleResize();\n\t\tthis._tokenizer.preventInitialFocus = true;\n\n\t\tif (this.open && !isPhone()) {\n\t\t\tthis._tokenizer.expanded = true;\n\t\t}\n\n\t\tif (this._tokenizer.expanded && this.hasAttribute(\"focused\")) {\n\t\t\tthis._tokenizer.scrollToEnd();\n\t\t}\n\n\t\tthis._getItems().forEach(item => {\n\t\t\titem._getRealDomRef = () => this._getResponsivePopover()!.querySelector(`*[data-ui5-stable=${item.stableDomRef}]`)!;\n\t\t});\n\t}\n\n\tget _isPhone() {\n\t\treturn isPhone();\n\t}\n\n\t_onIconMousedown() {\n\t\tthis._iconPressed = true;\n\t}\n\n\t_clear() {\n\t\tthis.value = \"\";\n\t\tthis._inputDom.value = \"\";\n\t\tthis.fireEvent(\"input\");\n\n\t\tif (!this._isPhone) {\n\t\t\tthis.focus();\n\t\t}\n\t}\n\n\t_iconMouseDown() {\n\t\tthis._clearingValue = true;\n\t}\n\n\tstoreResponsivePopoverWidth() {\n\t\tif (this._open && !this._listWidth) {\n\t\t\tthis._listWidth = this.list!.offsetWidth;\n\t\t}\n\t}\n\n\thandleCancel() {\n\t\tthis._itemsBeforeOpen.forEach(item => {\n\t\t\tif (isInstanceOfMultiComboBoxItem(item.ref)) {\n\t\t\t\titem.ref.selected = item.selected;\n\t\t\t}\n\t\t});\n\n\t\tthis._toggleTokenizerPopover();\n\n\t\tthis.value = this._valueBeforeOpen;\n\t}\n\n\thandleOK() {\n\t\tif (isPhone()) {\n\t\t\tconst changePrevented = this.fireSelectionChange();\n\n\t\t\tif (changePrevented) {\n\t\t\t\tthis._revertSelection();\n\t\t\t}\n\t\t}\n\n\t\tif (!this.noValidation) {\n\t\t\tthis.value = \"\";\n\t\t}\n\n\t\tthis._toggleTokenizerPopover();\n\t}\n\n\t_forwardFocusToInner() {\n\t\tthis._innerInput.focus();\n\t}\n\n\tget morePopoverOpener(): HTMLElement {\n\t\tconst tokens = this._tokenizer?.tokens;\n\n\t\tif (tokens?.length === 1 && tokens[0].isTruncatable) {\n\t\t\treturn tokens[0];\n\t\t}\n\n\t\treturn this;\n\t}\n\n\t_getPopover() {\n\t\treturn this.shadowRoot!.querySelector(\"[ui5-popover]\")!;\n\t}\n\n\t_getResponsivePopover() {\n\t\treturn this.shadowRoot!.querySelector(\"[ui5-responsive-popover]\")!;\n\t}\n\n\t_setValueStateHeader() {\n\t\tconst responsivePopover = this._getResponsivePopover();\n\t\tthis.valueStateHeader = responsivePopover.querySelector(\"div.ui5-responsive-popover-header.ui5-valuestatemessage-root\")!;\n\t}\n\n\tget _tokenizer() {\n\t\treturn this.shadowRoot!.querySelector(\"[ui5-tokenizer]\")!;\n\t}\n\n\tinputFocusIn(e: FocusEvent) {\n\t\tif (!isPhone()) {\n\t\t\tthis.focused = true;\n\t\t\tthis._tokenizer.expanded = true;\n\t\t\tthis._tokenizer.scrollToEnd();\n\t\t} else {\n\t\t\tthis._innerInput.blur();\n\t\t}\n\n\t\tthis._clearingValue = false;\n\n\t\tif (!isPhone() && (((e.relatedTarget as HTMLElement)?.tagName !== \"UI5-STATIC-AREA-ITEM\") || !e.relatedTarget)) {\n\t\t\tthis._innerInput.setSelectionRange(0, this.value.length);\n\t\t}\n\t\tthis._tokenizer.tokens.forEach(token => {\n\t\t\ttoken.selected = false;\n\t\t});\n\n\t\tthis.valueBeforeAutoComplete = \"\";\n\t}\n\n\tinputFocusOut(e: FocusEvent) {\n\t\tconst responsivePopover = this._getResponsivePopover();\n\t\tconst popover = this._getPopover();\n\t\tconst focusIsGoingInPopover = [responsivePopover, popover].some(popup => popup?.contains(e.relatedTarget as Node));\n\t\tconst focusIsGoingInValueStatePopup = this?.contains(e.relatedTarget as Node);\n\n\t\tif (focusIsGoingInValueStatePopup) {\n\t\t\te.stopImmediatePropagation();\n\t\t\treturn;\n\t\t}\n\n\t\tif ((!this.shadowRoot!.contains(e.relatedTarget as Node) || focusIsGoingInPopover) && !this._deleting && !this._clearingValue) {\n\t\t\tthis.focused = false;\n\n\t\t\tif (this._lastValue !== this.value) {\n\t\t\t\tthis._inputChange();\n\t\t\t}\n\n\t\t\tthis._tokenizer.expanded = this.open;\n\t\t\t// remove the value if user focus out the input and focus is not going in the popover\n\t\t\tif (!isPhone() && !this.noValidation && !focusIsGoingInPopover) {\n\t\t\t\tthis.value = \"\";\n\t\t\t}\n\t\t}\n\t}\n\n\tget editable() {\n\t\treturn !this.readonly;\n\t}\n\n\tget _isFocusInside() {\n\t\treturn !isPhone() && (this.focused || this._tokenizerFocused);\n\t}\n\n\tget selectedItemsListMode() {\n\t\treturn this.readonly ? \"None\" : \"Multiple\";\n\t}\n\n\tget _listItemsType() {\n\t\treturn this.readonly ? \"Inactive\" : \"Active\";\n\t}\n\n\tget hasValueState() {\n\t\treturn (this.valueState !== ValueState.None) || (this._dialogInputValueState !== ValueState.None);\n\t}\n\n\tget hasValueStateMessage() {\n\t\tconst valueState = isPhone() ? this._dialogInputValueState : this.valueState;\n\n\t\treturn this.hasValueState && valueState !== ValueState.Positive;\n\t}\n\n\tget ariaValueStateHiddenText() {\n\t\tif (!this.hasValueState) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet text = \"\";\n\n\t\tif (this.valueState !== ValueState.None) {\n\t\t\ttext = this.valueStateTypeMappings[this.valueState];\n\t\t}\n\n\t\tif (this.shouldDisplayDefaultValueStateMessage) {\n\t\t\treturn `${text} ${this.valueStateDefaultText || \"\"}`;\n\t\t}\n\n\t\treturn `${text}`.concat(\" \", this.valueStateMessage.map(el => el.textContent).join(\" \"));\n\t}\n\n\tget valueStateDefaultText(): string {\n\t\tconst valueState = isPhone() ? this._dialogInputValueState : this.valueState;\n\n\t\tif (valueState === ValueState.None) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tif (this._performingSelectionTwice) {\n\t\t\treturn MultiComboBox.i18nBundle.getText(VALUE_STATE_ERROR_ALREADY_SELECTED);\n\t\t}\n\n\t\treturn this.valueStateTextMappings[valueState];\n\t}\n\n\tget valueStateTextId() {\n\t\treturn this.hasValueState ? `ui5-multi-combobox-valueStateDesc` : undefined;\n\t}\n\n\tget ariaLabelText() {\n\t\treturn getEffectiveAriaLabelText(this);\n\t}\n\n\t/**\n\t * This method is relevant for sap_horizon theme only\n\t */\n\tget _valueStateMessageIcon() {\n\t\tconst valueState = (isPhone() && this.open) ? this._dialogInputValueState : this.valueState;\n\n\t\tif (valueState === ValueState.None) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\treturn {\n\t\t\t[ValueState.Negative]: \"error\",\n\t\t\t[ValueState.Critical]: \"alert\",\n\t\t\t[ValueState.Positive]: \"sys-enter-2\",\n\t\t\t[ValueState.Information]: \"information\",\n\t\t}[valueState];\n\t}\n\n\tget _tokensCountText() {\n\t\tif (!this._tokenizer) {\n\t\t\treturn;\n\t\t}\n\t\treturn getTokensCountText(this._tokenizer.tokens.length);\n\t}\n\n\tget _tokensCountTextId() {\n\t\treturn \"ui5-multi-combobox-hiddenText-nMore\";\n\t}\n\n\tget _selectedTokensCount() {\n\t\treturn this._tokenizer.tokens.filter(token => token.selected).length;\n\t}\n\n\tget ariaDescribedByText() {\n\t\treturn this.valueStateTextId ? `${this._tokensCountTextId} ${this.valueStateTextId}` : `${this._tokensCountTextId}`;\n\t}\n\n\tget shouldDisplayDefaultValueStateMessage() {\n\t\treturn !this.valueStateMessage.length && this.hasValueStateMessage;\n\t}\n\n\tget shouldDisplayOnlyValueStateMessage() {\n\t\treturn this.focused && !this.readonly && this.hasValueStateMessage && !this._iconPressed && !this.open;\n\t}\n\n\tget valueStateTypeMappings(): ValueStateTypeAnnouncement {\n\t\treturn {\n\t\t\t[ValueState.Positive]: MultiComboBox.i18nBundle.getText(VALUE_STATE_TYPE_SUCCESS),\n\t\t\t[ValueState.Information]: MultiComboBox.i18nBundle.getText(VALUE_STATE_TYPE_INFORMATION),\n\t\t\t[ValueState.Negative]: MultiComboBox.i18nBundle.getText(VALUE_STATE_TYPE_ERROR),\n\t\t\t[ValueState.Critical]: MultiComboBox.i18nBundle.getText(VALUE_STATE_TYPE_WARNING),\n\t\t};\n\t}\n\n\tget valueStateTextMappings(): ValueStateAnnouncement {\n\t\treturn {\n\t\t\t[ValueState.Positive]: MultiComboBox.i18nBundle.getText(VALUE_STATE_SUCCESS),\n\t\t\t[ValueState.Negative]: MultiComboBox.i18nBundle.getText(VALUE_STATE_ERROR),\n\t\t\t[ValueState.Critical]: MultiComboBox.i18nBundle.getText(VALUE_STATE_WARNING),\n\t\t\t[ValueState.Information]: MultiComboBox.i18nBundle.getText(VALUE_STATE_INFORMATION),\n\t\t};\n\t}\n\n\tget _innerInput(): HTMLInputElement {\n\t\tif (isPhone()) {\n\t\t\tif (this._getResponsivePopover()?.open) {\n\t\t\t\treturn this._getResponsivePopover().querySelector(\"[ui5-input]\")!.shadowRoot!.querySelector(\"input\")!;\n\t\t\t}\n\t\t}\n\n\t\treturn this._inputDom;\n\t}\n\n\tget _headerTitleText() {\n\t\treturn MultiComboBox.i18nBundle.getText(INPUT_SUGGESTIONS_TITLE);\n\t}\n\n\tget _iconAccessibleNameText() {\n\t\treturn MultiComboBox.i18nBundle.getText(SELECT_OPTIONS);\n\t}\n\n\tget _showSelectedButtonAccessibleNameText() {\n\t\treturn MultiComboBox.i18nBundle.getText(SHOW_SELECTED_BUTTON);\n\t}\n\n\tget _dialogOkButton() {\n\t\treturn MultiComboBox.i18nBundle.getText(MULTICOMBOBOX_DIALOG_OK_BUTTON);\n\t}\n\n\tget _tokenizerExpanded() {\n\t\tif (isPhone()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this._preventTokenizerToggle) {\n\t\t\treturn this._tokenizer.expanded;\n\t\t}\n\n\t\tconst isCurrentlyExpanded = this._tokenizer?.expanded;\n\t\tconst shouldBeExpanded = this.focused || this._open || isCurrentlyExpanded;\n\n\t\treturn shouldBeExpanded;\n\t}\n\n\tget _valueStatePopoverHorizontalAlign(): `${PopoverHorizontalAlign}` {\n\t\treturn this.effectiveDir !== \"rtl\" ? \"Start\" : \"End\";\n\t}\n\n\tget iconsCount() {\n\t\tconst slottedIconsCount = this.icon?.length || 0;\n\t\tconst clearIconCount = Number(this._effectiveShowClearIcon) ?? 0;\n\t\tconst arrowDownIconsCount = this.readonly ? 0 : 1;\n\n\t\treturn slottedIconsCount + clearIconCount + arrowDownIconsCount;\n\t}\n\n\tget clearIconAccessibleName() {\n\t\treturn MultiComboBox.i18nBundle.getText(INPUT_CLEAR_ICON_ACC_NAME);\n\t}\n\n\tget selectAllCheckboxLabel() {\n\t\tconst items = this._getItems().filter(item => !item.isGroupItem);\n\t\tconst selected = items.filter(item => item.selected);\n\n\t\treturn MultiComboBox.i18nBundle.getText(MCB_SELECTED_ITEMS, selected.length, items.length);\n\t}\n\n\tget _popupLabel() {\n\t\treturn MultiComboBox.i18nBundle.getText(COMBOBOX_AVAILABLE_OPTIONS);\n\t}\n\n\tget classes(): ClassMap {\n\t\treturn {\n\t\t\tpopover: {\n\t\t\t\t\"ui5-multi-combobox-all-items-responsive-popover\": true,\n\t\t\t\t\"ui5-suggestions-popover\": true,\n\t\t\t\t\"ui5-popover-with-value-state-header-phone\": this._isPhone && this.hasValueStateMessage,\n\t\t\t\t\"ui5-popover-with-value-state-header\": !this._isPhone && this.hasValueStateMessage,\n\t\t\t},\n\t\t\tpopoverValueState: {\n\t\t\t\t\"ui5-valuestatemessage-root\": true,\n\t\t\t\t\"ui5-valuestatemessage-header\": true,\n\t\t\t\t\"ui5-valuestatemessage--success\": (this.valueState === ValueState.Positive) || (this._dialogInputValueState === ValueState.Positive),\n\t\t\t\t\"ui5-valuestatemessage--error\": (this.valueState === ValueState.Negative) || (this._dialogInputValueState === ValueState.Negative),\n\t\t\t\t\"ui5-valuestatemessage--warning\": (this.valueState === ValueState.Critical) || (this._dialogInputValueState === ValueState.Critical),\n\t\t\t\t\"ui5-valuestatemessage--information\": (this.valueState === ValueState.Information) || (this._dialogInputValueState === ValueState.Information),\n\t\t\t},\n\t\t};\n\t}\n\n\tget styles() {\n\t\tconst remSizeIxPx = parseInt(getComputedStyle(document.documentElement).fontSize);\n\t\treturn {\n\t\t\tpopoverValueStateMessage: {\n\t\t\t\t\"width\": `${this._listWidth || 0}px`,\n\t\t\t\t\"display\": this._listWidth === 0 ? \"none\" : \"inline-block\",\n\t\t\t},\n\t\t\tpopoverHeader: {\n\t\t\t\t\"max-width\": isPhone() ? \"100%\" : `${this._inputWidth}px`,\n\t\t\t},\n\t\t\tsuggestionsPopover: {\n\t\t\t\t\"min-width\": `${this._inputWidth}px`,\n\t\t\t\t\"max-width\": (this._inputWidth / remSizeIxPx) > 40 ? `${this._inputWidth}px` : \"40rem\",\n\t\t\t},\n\t\t};\n\t}\n\n\tstatic async onDefine() {\n\t\tMultiComboBox.i18nBundle = await getI18nBundle(\"@ui5/webcomponents\");\n\t}\n}\n\nMultiComboBox.define();\n\nexport default MultiComboBox;\n\nexport type {\n\tIMultiComboBoxItem,\n\tMultiComboBoxSelectionChangeEventDetail,\n};\n"]}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy