@@ -4,7 +4,7 @@ import property from "@ui5/webcomponents-base/dist/decorators/property.js";
4
4
import slot from "@ui5/webcomponents-base/dist/decorators/slot.js" ;
5
5
import event from "@ui5/webcomponents-base/dist/decorators/event-strict.js" ;
6
6
import type { ClassMap , Timeout } from "@ui5/webcomponents-base/dist/types.js" ;
7
- import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer .js" ;
7
+ import jsxRender from "@ui5/webcomponents-base/dist/renderer/JsxRenderer .js" ;
8
8
import ResizeHandler from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js" ;
9
9
import type { ResizeObserverCallback } from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js" ;
10
10
import ValueState from "@ui5/webcomponents-base/dist/types/ValueState.js" ;
@@ -44,9 +44,6 @@ import {
44
44
} from "@ui5/webcomponents-base/dist/Device.js" ;
45
45
import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js" ;
46
46
import i18n from "@ui5/webcomponents-base/dist/decorators/i18n.js" ;
47
- import "@ui5/webcomponents-icons/dist/decline.js" ;
48
- import "@ui5/webcomponents-icons/dist/multiselect-all.js" ;
49
- import "@ui5/webcomponents-icons/dist/not-editable.js" ;
50
47
import "@ui5/webcomponents-icons/dist/error.js" ;
51
48
import "@ui5/webcomponents-icons/dist/alert.js" ;
52
49
import "@ui5/webcomponents-icons/dist/sys-enter-2.js" ;
@@ -92,7 +89,7 @@ import {
92
89
} from "./generated/i18n/i18n-defaults.js" ;
93
90
94
91
// Templates
95
- import MultiComboBoxTemplate from "./generated/templates/ MultiComboBoxTemplate.lit .js" ;
92
+ import MultiComboBoxTemplate from "./MultiComboBoxTemplate.js" ;
96
93
97
94
// Styles
98
95
import multiCbxStyles from "./generated/themes/MultiComboBox.css.js" ;
@@ -113,6 +110,7 @@ import SuggestionItem from "./SuggestionItem.js";
113
110
*/
114
111
interface IMultiComboBoxItem extends UI5Element {
115
112
text ?: string ,
113
+ additionalText ?: string ,
116
114
headerText ?: string ,
117
115
selected : boolean ,
118
116
isGroupItem ?: boolean ,
@@ -178,7 +176,7 @@ type MultiComboboxItemWithSelection = {
178
176
tag : "ui5-multi-combobox" ,
179
177
languageAware : true ,
180
178
formAssociated : true ,
181
- renderer : litRender ,
179
+ renderer : jsxRender ,
182
180
template : MultiComboBoxTemplate ,
183
181
styles : [
184
182
multiCbxStyles ,
@@ -2017,20 +2015,26 @@ class MultiComboBox extends UI5Element implements IFormInputElement {
2017
2015
}
2018
2016
2019
2017
get classes ( ) : ClassMap {
2018
+ const popover = {
2019
+ "ui5-multi-combobox-all-items-responsive-popover" : true ,
2020
+ "ui5-suggestions-popover" : true ,
2021
+ "ui5-popover-with-value-state-header-phone" : this . _isPhone && this . hasValueStateMessage ,
2022
+ "ui5-popover-with-value-state-header" : ! this . _isPhone && this . hasValueStateMessage ,
2023
+ } ;
2024
+ const popoverValueState = {
2025
+ "ui5-valuestatemessage-root" : true ,
2026
+ "ui5-valuestatemessage-header" : true ,
2027
+ "ui5-valuestatemessage--success" : ( this . valueState === ValueState . Positive ) || ( isPhone ( ) && this . _dialogInputValueState === ValueState . Positive ) ,
2028
+ "ui5-valuestatemessage--error" : ( this . valueState === ValueState . Negative ) || ( isPhone ( ) && this . _dialogInputValueState === ValueState . Negative ) ,
2029
+ "ui5-valuestatemessage--warning" : ( this . valueState === ValueState . Critical ) || ( isPhone ( ) && this . _dialogInputValueState === ValueState . Critical ) ,
2030
+ "ui5-valuestatemessage--information" : ( this . valueState === ValueState . Information ) || ( isPhone ( ) && this . _dialogInputValueState === ValueState . Information ) ,
2031
+ } ;
2020
2032
return {
2021
- popover : {
2022
- "ui5-multi-combobox-all-items-responsive-popover" : true ,
2023
- "ui5-suggestions-popover" : true ,
2024
- "ui5-popover-with-value-state-header-phone" : this . _isPhone && this . hasValueStateMessage ,
2025
- "ui5-popover-with-value-state-header" : ! this . _isPhone && this . hasValueStateMessage ,
2026
- } ,
2027
- popoverValueState : {
2028
- "ui5-valuestatemessage-root" : true ,
2029
- "ui5-valuestatemessage-header" : true ,
2030
- "ui5-valuestatemessage--success" : ( this . valueState === ValueState . Positive ) || ( isPhone ( ) && this . _dialogInputValueState === ValueState . Positive ) ,
2031
- "ui5-valuestatemessage--error" : ( this . valueState === ValueState . Negative ) || ( isPhone ( ) && this . _dialogInputValueState === ValueState . Negative ) ,
2032
- "ui5-valuestatemessage--warning" : ( this . valueState === ValueState . Critical ) || ( isPhone ( ) && this . _dialogInputValueState === ValueState . Critical ) ,
2033
- "ui5-valuestatemessage--information" : ( this . valueState === ValueState . Information ) || ( isPhone ( ) && this . _dialogInputValueState === ValueState . Information ) ,
2033
+ popover,
2034
+ popoverValueState,
2035
+ responsivePopoverHeaderValueState : {
2036
+ "ui5-responsive-popover-header" : true ,
2037
+ ...popoverValueState ,
2034
2038
} ,
2035
2039
} ;
2036
2040
}
0 commit comments