@ui5/webcomponents 1.14.2 → 1.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/diff/vulsCount.txt +1 -0
- package/.vscode/settings.json +3 -0
- package/CHANGELOG.md +11 -0
- package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js +1 -1
- package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js.map +1 -1
- package/package.json +7 -8
- package/src/ComboBoxPopover.hbs +16 -12
- package/LICENSE.txt +0 -201
- package/dist/assets/test/pages/ComboBox.html.e6b2c662.js +0 -1
- package/dist/assets/test/pages/Icon.html.4f593716.js +0 -1
- package/dist/assets/test/pages/Label.html.36a2faae.js +0 -4
- package/dist/assets/test/pages/Popups.html.c29d144e.js +0 -1
- package/dist/test/pages/72override.html +0 -33
- package/dist/test/pages/AnimanitionOff.html +0 -52
- package/dist/test/pages/Avatar.html +0 -264
- package/dist/test/pages/AvatarGroup.html +0 -376
- package/dist/test/pages/Badge.html +0 -75
- package/dist/test/pages/Breadcrumbs.html +0 -239
- package/dist/test/pages/BusyIndicator.html +0 -278
- package/dist/test/pages/Button.html +0 -273
- package/dist/test/pages/Calendar.html +0 -103
- package/dist/test/pages/Card.html +0 -347
- package/dist/test/pages/Carousel.html +0 -613
- package/dist/test/pages/CheckBox.html +0 -90
- package/dist/test/pages/ColorPalette.html +0 -126
- package/dist/test/pages/ColorPalettePopover.html +0 -141
- package/dist/test/pages/ColorPicker.html +0 -66
- package/dist/test/pages/ComboBox.html +0 -292
- package/dist/test/pages/Components.html +0 -106
- package/dist/test/pages/CoreControls.html +0 -203
- package/dist/test/pages/CoreControls_exp.html +0 -203
- package/dist/test/pages/CustomCSS.html +0 -55
- package/dist/test/pages/DatePicker.html +0 -211
- package/dist/test/pages/DatePicker_test_page.html +0 -109
- package/dist/test/pages/DateRangePicker.html +0 -67
- package/dist/test/pages/DateTimePicker.html +0 -199
- package/dist/test/pages/DateTimePicker_Timezone.html +0 -72
- package/dist/test/pages/DayPicker.html +0 -37
- package/dist/test/pages/Dialog.html +0 -813
- package/dist/test/pages/DialogLifecycle.html +0 -62
- package/dist/test/pages/DialogSemantic.html +0 -58
- package/dist/test/pages/Eventing.html +0 -33
- package/dist/test/pages/F6Test1.html +0 -42
- package/dist/test/pages/F6Test2.html +0 -42
- package/dist/test/pages/F6Test3.html +0 -39
- package/dist/test/pages/F6Test4.html +0 -46
- package/dist/test/pages/F6Test5.html +0 -42
- package/dist/test/pages/F6Test6.html +0 -39
- package/dist/test/pages/F6Test7.html +0 -36
- package/dist/test/pages/FileUploader.html +0 -138
- package/dist/test/pages/FormComponents.html +0 -76
- package/dist/test/pages/FormSupport.html +0 -59
- package/dist/test/pages/HCB.html +0 -45
- package/dist/test/pages/Icon.html +0 -278
- package/dist/test/pages/Icon_and_theming.html +0 -67
- package/dist/test/pages/Icon_custom.html +0 -26
- package/dist/test/pages/Input.html +0 -731
- package/dist/test/pages/InputFieldLabels.html +0 -355
- package/dist/test/pages/InputFieldMinWidth.html +0 -230
- package/dist/test/pages/InputIcons.html +0 -80
- package/dist/test/pages/Input_quickview.html +0 -204
- package/dist/test/pages/InputsAlignment.html +0 -131
- package/dist/test/pages/InputsLazyLoading.html +0 -244
- package/dist/test/pages/ItemNavigation.html +0 -94
- package/dist/test/pages/Kitchen.html +0 -637
- package/dist/test/pages/Kitchen.openui5.html +0 -570
- package/dist/test/pages/Label.html +0 -192
- package/dist/test/pages/Link.html +0 -201
- package/dist/test/pages/List.html +0 -465
- package/dist/test/pages/ListGrowing_Button.html +0 -64
- package/dist/test/pages/ListGrowing_Scroll.html +0 -93
- package/dist/test/pages/List_keyboard_support.html +0 -130
- package/dist/test/pages/List_test_page.html +0 -395
- package/dist/test/pages/LitKeyFunction.html +0 -40
- package/dist/test/pages/MemoryLeak.html +0 -78
- package/dist/test/pages/Menu.html +0 -161
- package/dist/test/pages/MessagePage.html +0 -39
- package/dist/test/pages/MessageStrip.html +0 -55
- package/dist/test/pages/MultiComboBox.html +0 -489
- package/dist/test/pages/MultiInput.html +0 -451
- package/dist/test/pages/MultiInput_Suggestions.html +0 -161
- package/dist/test/pages/OpenUI5-second.html +0 -60
- package/dist/test/pages/OpenUI5.html +0 -83
- package/dist/test/pages/Panel.html +0 -226
- package/dist/test/pages/Popover.html +0 -658
- package/dist/test/pages/PopoverArrowBounds.html +0 -52
- package/dist/test/pages/Popups.html +0 -131
- package/dist/test/pages/ProgressIndicator.html +0 -151
- package/dist/test/pages/RTL.html +0 -118
- package/dist/test/pages/RadioButton.html +0 -201
- package/dist/test/pages/RangeSlider.html +0 -96
- package/dist/test/pages/RatingIndicator.html +0 -97
- package/dist/test/pages/ResizeHandler.html +0 -74
- package/dist/test/pages/ResponsivePopover.html +0 -267
- package/dist/test/pages/SegmentedButton.html +0 -151
- package/dist/test/pages/Select.html +0 -272
- package/dist/test/pages/Simple.html +0 -25
- package/dist/test/pages/Slider.html +0 -79
- package/dist/test/pages/SplitButton.html +0 -101
- package/dist/test/pages/StepInput.html +0 -189
- package/dist/test/pages/Switch.html +0 -97
- package/dist/test/pages/TabContainer.html +0 -904
- package/dist/test/pages/Table-perf-pure.html +0 -73
- package/dist/test/pages/Table-perf.html +0 -76
- package/dist/test/pages/Table.html +0 -2808
- package/dist/test/pages/Table2.html +0 -53
- package/dist/test/pages/TableAllPopin.html +0 -228
- package/dist/test/pages/TableCustomStyling.html +0 -89
- package/dist/test/pages/TableGrouping.html +0 -109
- package/dist/test/pages/TableGrowingWithButton.html +0 -805
- package/dist/test/pages/TableGrowingWithScroll.html +0 -801
- package/dist/test/pages/TableSelection.html +0 -445
- package/dist/test/pages/Test.html +0 -15
- package/dist/test/pages/TextArea.html +0 -222
- package/dist/test/pages/TimePicker.html +0 -89
- package/dist/test/pages/TimeSelection.html +0 -31
- package/dist/test/pages/Title.html +0 -60
- package/dist/test/pages/Toast.html +0 -111
- package/dist/test/pages/ToggleButton.html +0 -71
- package/dist/test/pages/Tokenizer.html +0 -91
- package/dist/test/pages/Tree.html +0 -307
- package/dist/test/pages/TreeDynamic.html +0 -56
- package/dist/test/pages/WheelSlider_Test_Page.html +0 -26
- package/dist/test/pages/base/AriaLabelHelper.html +0 -334
- package/dist/test/pages/base/DOMObserver.html +0 -20
- package/dist/test/pages/base/IconCollection.html +0 -23
- package/dist/test/pages/base/IconCollectionInCustomTheme.html +0 -25
- package/dist/test/pages/base/IgnoreCustomElements.html +0 -26
- package/dist/test/pages/base/InvisibleMessage.html +0 -44
- package/dist/test/pages/form.html +0 -123
- package/dist/test/pages/i18n-defaultLang.html +0 -31
- package/dist/test/pages/i18n-demo.html +0 -79
|
@@ -1,489 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
7
|
-
<title>MultiComboBox test page</title>
|
|
8
|
-
<script>
|
|
9
|
-
// delete Document.prototype.adoptedStyleSheets
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<script data-ui5-config type="application/json">
|
|
13
|
-
{
|
|
14
|
-
"rtl": false
|
|
15
|
-
}
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<script type="module" crossorigin src="/assets/bundle.common.fa62259e.js"></script>
|
|
25
|
-
<link rel="stylesheet" href="/assets/MultiComboBox.2c89838f.css">
|
|
26
|
-
</head>
|
|
27
|
-
|
|
28
|
-
<body class="multicombobox1auto">
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<!-- <ui5-token>UI5 WebComponents</ui5-token> -->
|
|
32
|
-
|
|
33
|
-
<!-- <ui5-token selected>UI5 WebComponents</ui5-token> -->
|
|
34
|
-
|
|
35
|
-
<!-- <br />
|
|
36
|
-
<br />
|
|
37
|
-
|
|
38
|
-
<ui5-tokenizer class="multicombobox2auto">
|
|
39
|
-
<ui5-token>Hello</ui5-token>
|
|
40
|
-
<ui5-token>UI5</ui5-token>
|
|
41
|
-
<ui5-token>webcomponents</ui5-token>
|
|
42
|
-
</ui5-tokenizer>
|
|
43
|
-
|
|
44
|
-
<span>value </span>
|
|
45
|
-
|
|
46
|
-
<ui5-tokenizer show-more class="multicombobox2auto">
|
|
47
|
-
<ui5-token>World!</ui5-token>
|
|
48
|
-
<ui5-token>Martin</ui5-token>
|
|
49
|
-
<ui5-token>Hristovthelong</ui5-token>
|
|
50
|
-
</ui5-tokenizer>
|
|
51
|
-
|
|
52
|
-
<span>value </span>
|
|
53
|
-
|
|
54
|
-
<ui5-tokenizer show-more class="multicombobox2auto">
|
|
55
|
-
<ui5-token>B</ui5-token>
|
|
56
|
-
<ui5-token>A</ui5-token>
|
|
57
|
-
<ui5-token>A</ui5-token>
|
|
58
|
-
<ui5-token>A</ui5-token>
|
|
59
|
-
<ui5-token>B</ui5-token>
|
|
60
|
-
<ui5-token>B</ui5-token>
|
|
61
|
-
<ui5-token>B</ui5-token>
|
|
62
|
-
</ui5-tokenizer>
|
|
63
|
-
|
|
64
|
-
<span>value </span>-->
|
|
65
|
-
|
|
66
|
-
<div class="demo-section">
|
|
67
|
-
<span>Predefined value</span>
|
|
68
|
-
|
|
69
|
-
<br>
|
|
70
|
-
<ui5-multi-combobox allow-custom-values id="multi1" accessible-name="MultiComboBox with predefined values">
|
|
71
|
-
<ui5-mcb-item selected text="Cosy"></ui5-mcb-item>
|
|
72
|
-
<ui5-mcb-item text="Compact"></ui5-mcb-item>
|
|
73
|
-
<ui5-mcb-item selected text="Condensed"></ui5-mcb-item>
|
|
74
|
-
<ui5-mcb-item selected text="Longest word in the world"></ui5-mcb-item>
|
|
75
|
-
</ui5-multi-combobox>
|
|
76
|
-
<br>
|
|
77
|
-
<br>
|
|
78
|
-
<ui5-button id="focus-mcb">Focus MultiComboBox</ui5-button>
|
|
79
|
-
</div>
|
|
80
|
-
|
|
81
|
-
<div class="demo-section">
|
|
82
|
-
<ui5-label id="mcbLabel">Validating input and predefined</ui5-label>
|
|
83
|
-
|
|
84
|
-
<br>
|
|
85
|
-
<ui5-multi-combobox id="mcb-predefined-value" value="com" accessible-name-ref="mcbLabel">
|
|
86
|
-
<ui5-mcb-item selected text="Cosy"></ui5-mcb-item>
|
|
87
|
-
<ui5-mcb-item text="Compact"></ui5-mcb-item>
|
|
88
|
-
<ui5-mcb-item selected text="Condensed"></ui5-mcb-item>
|
|
89
|
-
<ui5-mcb-item selected text="Longest word in the world"></ui5-mcb-item>
|
|
90
|
-
</ui5-multi-combobox>
|
|
91
|
-
</div>
|
|
92
|
-
|
|
93
|
-
<div class="demo-section">
|
|
94
|
-
<span>allow-custom-values and predefined value</span>
|
|
95
|
-
|
|
96
|
-
<br>
|
|
97
|
-
<ui5-multi-combobox id="multi-acv" allow-custom-values value="com">
|
|
98
|
-
<ui5-mcb-item selected text="Cosy"></ui5-mcb-item>
|
|
99
|
-
<ui5-mcb-item text="Compact"></ui5-mcb-item>
|
|
100
|
-
<ui5-mcb-item text="Condensed"></ui5-mcb-item>
|
|
101
|
-
</ui5-multi-combobox>
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
|
-
<div class="demo-section">
|
|
105
|
-
<span>Validating input and placeholder </span>
|
|
106
|
-
|
|
107
|
-
<br>
|
|
108
|
-
<ui5-multi-combobox id="mcb-with-placeholder" placeholder="Some initial text">
|
|
109
|
-
<ui5-mcb-item selected text="Cosy"></ui5-mcb-item>
|
|
110
|
-
<ui5-mcb-item text="Compact"></ui5-mcb-item>
|
|
111
|
-
<ui5-mcb-item selected text="Condensed"></ui5-mcb-item>
|
|
112
|
-
<ui5-mcb-item selected text="Longest word in the world"></ui5-mcb-item>
|
|
113
|
-
</ui5-multi-combobox>
|
|
114
|
-
</div>
|
|
115
|
-
|
|
116
|
-
<div class="demo-section">
|
|
117
|
-
<span>disabled and placeholder </span>
|
|
118
|
-
|
|
119
|
-
<br>
|
|
120
|
-
<ui5-multi-combobox allow-custom-values placeholder="Some initial text" disabled>
|
|
121
|
-
<ui5-mcb-item selected text="Cosy"></ui5-mcb-item>
|
|
122
|
-
<ui5-mcb-item text="Compact"></ui5-mcb-item>
|
|
123
|
-
<ui5-mcb-item selected text="Condensed"></ui5-mcb-item>
|
|
124
|
-
<ui5-mcb-item selected text="Longest word in the world"></ui5-mcb-item>
|
|
125
|
-
</ui5-multi-combobox>
|
|
126
|
-
</div>
|
|
127
|
-
|
|
128
|
-
<div class="demo-section">
|
|
129
|
-
<span>value state success </span>
|
|
130
|
-
|
|
131
|
-
<br>
|
|
132
|
-
<ui5-multi-combobox id="mcb-success" allow-custom-values placeholder="Some initial text"
|
|
133
|
-
value-state="Success">
|
|
134
|
-
<ui5-mcb-item selected text="Cosy"></ui5-mcb-item>
|
|
135
|
-
<ui5-mcb-item text="Compact"></ui5-mcb-item>
|
|
136
|
-
<ui5-mcb-item selected text="Condensed"></ui5-mcb-item>
|
|
137
|
-
<ui5-mcb-item selected text="Longest word in the world"></ui5-mcb-item>
|
|
138
|
-
</ui5-multi-combobox>
|
|
139
|
-
</div>
|
|
140
|
-
|
|
141
|
-
<div class="demo-section">
|
|
142
|
-
<span>value state information </span>
|
|
143
|
-
|
|
144
|
-
<br>
|
|
145
|
-
<ui5-multi-combobox allow-custom-values placeholder="Some initial text" id="mcb-information"
|
|
146
|
-
value-state="Information">
|
|
147
|
-
<ui5-mcb-item selected text="Cosy"></ui5-mcb-item>
|
|
148
|
-
<ui5-mcb-item text="Compact"></ui5-mcb-item>
|
|
149
|
-
<ui5-mcb-item selected text="Condensed"></ui5-mcb-item>
|
|
150
|
-
<ui5-mcb-item selected text="Longest word in the world"></ui5-mcb-item>
|
|
151
|
-
<div slot="valueStateMessage">Information message. This is a <a href="#">Link</a>. Extra long text used as an information message. Extra long text used as an information message - 2. Extra long text used as an information message - 3.</div>
|
|
152
|
-
</ui5-multi-combobox>
|
|
153
|
-
</div>
|
|
154
|
-
|
|
155
|
-
<div class="demo-section">
|
|
156
|
-
<span>value state warning </span>
|
|
157
|
-
|
|
158
|
-
<br>
|
|
159
|
-
<ui5-multi-combobox id="mcb-warning" allow-custom-values placeholder="Some initial text"
|
|
160
|
-
value-state="Warning">
|
|
161
|
-
<ui5-mcb-item selected text="Cosy"></ui5-mcb-item>
|
|
162
|
-
<ui5-mcb-item text="Compact"></ui5-mcb-item>
|
|
163
|
-
<ui5-mcb-item selected text="Condensed"></ui5-mcb-item>
|
|
164
|
-
<ui5-mcb-item selected text="Longest word in the world"></ui5-mcb-item>
|
|
165
|
-
</ui5-multi-combobox>
|
|
166
|
-
</div>
|
|
167
|
-
|
|
168
|
-
<div class="demo-section">
|
|
169
|
-
<span>value state error </span>
|
|
170
|
-
|
|
171
|
-
<br>
|
|
172
|
-
<ui5-multi-combobox id="mcb-error" allow-custom-values placeholder="Some initial text"
|
|
173
|
-
value-state="Error">
|
|
174
|
-
<ui5-mcb-item selected text="Cosy"></ui5-mcb-item>
|
|
175
|
-
<ui5-mcb-item text="Compact"></ui5-mcb-item>
|
|
176
|
-
<ui5-mcb-item selected text="Condensed"></ui5-mcb-item>
|
|
177
|
-
<ui5-mcb-item selected text="Longest word in the world"></ui5-mcb-item>
|
|
178
|
-
</ui5-multi-combobox>
|
|
179
|
-
</div>
|
|
180
|
-
|
|
181
|
-
<div class="demo-section">
|
|
182
|
-
<span>readonly </span>
|
|
183
|
-
|
|
184
|
-
<br>
|
|
185
|
-
<ui5-multi-combobox id="mcb-ro" allow-custom-values placeholder="Some initial text" readonly>
|
|
186
|
-
<ui5-mcb-item selected text="Cosy"></ui5-mcb-item>
|
|
187
|
-
<ui5-mcb-item text="Compact"></ui5-mcb-item>
|
|
188
|
-
<ui5-mcb-item selected text="Condensed"></ui5-mcb-item>
|
|
189
|
-
<ui5-mcb-item selected text="Longest word in the world"></ui5-mcb-item>
|
|
190
|
-
</ui5-multi-combobox>
|
|
191
|
-
</div>
|
|
192
|
-
|
|
193
|
-
<div class="demo-section">
|
|
194
|
-
<span>Readonly with value state </span>
|
|
195
|
-
|
|
196
|
-
<br>
|
|
197
|
-
<ui5-multi-combobox id="readonly-value-state-mcb" value-state="Error" readonly>
|
|
198
|
-
<ui5-mcb-item text="Cosy"></ui5-mcb-item>
|
|
199
|
-
<ui5-mcb-item text="Compact"></ui5-mcb-item>
|
|
200
|
-
<ui5-mcb-item text="Condensed"></ui5-mcb-item>
|
|
201
|
-
<ui5-mcb-item text="Longest word in the world"></ui5-mcb-item>
|
|
202
|
-
</ui5-multi-combobox>
|
|
203
|
-
</div>
|
|
204
|
-
|
|
205
|
-
<div class="demo-section">
|
|
206
|
-
<span>MultiComboBox with items</span>
|
|
207
|
-
|
|
208
|
-
<br>
|
|
209
|
-
<ui5-multi-combobox allow-custom-values placeholder="Some initial text" id="mcb">
|
|
210
|
-
<ui5-mcb-item text="Cosy" id="first-item"></ui5-mcb-item>
|
|
211
|
-
<ui5-mcb-item text="Compact"></ui5-mcb-item>
|
|
212
|
-
<ui5-mcb-item text="Condensed"></ui5-mcb-item>
|
|
213
|
-
<ui5-mcb-item text="Longest word in the world"></ui5-mcb-item>
|
|
214
|
-
<ui5-mcb-item text="Longest word in the world 1"></ui5-mcb-item>
|
|
215
|
-
<ui5-mcb-item text="Longest word in the world 2"></ui5-mcb-item>
|
|
216
|
-
</ui5-multi-combobox>
|
|
217
|
-
</div>
|
|
218
|
-
|
|
219
|
-
<div class="demo-section">
|
|
220
|
-
<span>MultiComboBox without type ahead</span>
|
|
221
|
-
|
|
222
|
-
<br>
|
|
223
|
-
<ui5-multi-combobox allow-custom-values placeholder="Some initial text" no-typeahead id="mcb-no-typeahead">
|
|
224
|
-
<ui5-mcb-item text="Cosy" id="first-item"></ui5-mcb-item>
|
|
225
|
-
<ui5-mcb-item text="Compact"></ui5-mcb-item>
|
|
226
|
-
<ui5-mcb-item text="Condensed"></ui5-mcb-item>
|
|
227
|
-
<ui5-mcb-item text="Longest word in the world"></ui5-mcb-item>
|
|
228
|
-
</ui5-multi-combobox>
|
|
229
|
-
</div>
|
|
230
|
-
|
|
231
|
-
<div class="demo-section">
|
|
232
|
-
<span>MultiComboBox with more items</span>
|
|
233
|
-
|
|
234
|
-
<br>
|
|
235
|
-
<ui5-multi-combobox allow-custom-values placeholder="Some initial text" id="mcb-items">
|
|
236
|
-
<ui5-mcb-item text="Item 0" id="first-item"></ui5-mcb-item>
|
|
237
|
-
<ui5-mcb-item selected text="Item 1"></ui5-mcb-item>
|
|
238
|
-
<ui5-mcb-item selected text="Item 2"></ui5-mcb-item>
|
|
239
|
-
<ui5-mcb-item selected text="Item 3"></ui5-mcb-item>
|
|
240
|
-
<ui5-mcb-item selected text="Item 4"></ui5-mcb-item>
|
|
241
|
-
<ui5-mcb-item selected text="Item 5"></ui5-mcb-item>
|
|
242
|
-
<ui5-mcb-item text="Another Item 0" ></ui5-mcb-item>
|
|
243
|
-
<ui5-mcb-item text="Another Item 1"></ui5-mcb-item>
|
|
244
|
-
<ui5-mcb-item text="Another Item 2"></ui5-mcb-item>
|
|
245
|
-
<ui5-mcb-item text="Another Item 3"></ui5-mcb-item>
|
|
246
|
-
<ui5-mcb-item text="Another Item 4"></ui5-mcb-item>
|
|
247
|
-
<ui5-mcb-item text="Another Item 5"></ui5-mcb-item>
|
|
248
|
-
</ui5-multi-combobox>
|
|
249
|
-
</div>
|
|
250
|
-
|
|
251
|
-
<div class="demo-section">
|
|
252
|
-
<span>MultiComboBox with validation</span>
|
|
253
|
-
|
|
254
|
-
<br>
|
|
255
|
-
<ui5-multi-combobox allow-custom-values placeholder="Some initial text" id="another-mcb">
|
|
256
|
-
<ui5-mcb-item text="Cosy"></ui5-mcb-item>
|
|
257
|
-
<ui5-mcb-item text="Compact"></ui5-mcb-item>
|
|
258
|
-
<ui5-mcb-item text="Condensed"></ui5-mcb-item>
|
|
259
|
-
<ui5-mcb-item text="Longest word in the world"></ui5-mcb-item>
|
|
260
|
-
</ui5-multi-combobox>
|
|
261
|
-
</div>
|
|
262
|
-
|
|
263
|
-
<div class="demo-section">
|
|
264
|
-
<span>MultiComboBox n more</span> <br/>
|
|
265
|
-
|
|
266
|
-
<ui5-multi-combobox class="multicombobox3auto" placeholder="Some initial text" id="more-mcb">
|
|
267
|
-
<ui5-mcb-item text="Cosy" selected></ui5-mcb-item>
|
|
268
|
-
<ui5-mcb-item text="Compact" selected></ui5-mcb-item>
|
|
269
|
-
<ui5-mcb-item text="Condensed"></ui5-mcb-item>
|
|
270
|
-
<ui5-mcb-item text="Longest word in the world" selected></ui5-mcb-item>
|
|
271
|
-
</ui5-multi-combobox>
|
|
272
|
-
</div>
|
|
273
|
-
|
|
274
|
-
<div class="demo-section">
|
|
275
|
-
<span>MultiComboBox with validation</span>
|
|
276
|
-
|
|
277
|
-
<br>
|
|
278
|
-
<ui5-multi-combobox placeholder="Some initial text" id="mcb-validation">
|
|
279
|
-
<ui5-mcb-item text="Cosy"></ui5-mcb-item>
|
|
280
|
-
<ui5-mcb-item text="Compact"></ui5-mcb-item>
|
|
281
|
-
<ui5-mcb-item text="Condensed"></ui5-mcb-item>
|
|
282
|
-
<ui5-mcb-item text="Longest word in the world"></ui5-mcb-item>
|
|
283
|
-
</ui5-multi-combobox>
|
|
284
|
-
</div>
|
|
285
|
-
|
|
286
|
-
<div class="demo-section">
|
|
287
|
-
<span>MultiComboBox with grouping</span>
|
|
288
|
-
|
|
289
|
-
<br>
|
|
290
|
-
<ui5-multi-combobox id="mcb-grouping" allow-custom-values placeholder="Select a country">
|
|
291
|
-
<ui5-mcb-group-item text="Asia"></ui5-mcb-group-item>
|
|
292
|
-
<ui5-mcb-item text="Afghanistan"></ui5-mcb-item>
|
|
293
|
-
<ui5-mcb-item text="China"></ui5-mcb-item>
|
|
294
|
-
<ui5-mcb-item text="India"></ui5-mcb-item>
|
|
295
|
-
<ui5-mcb-item text="Indonesia"></ui5-mcb-item>
|
|
296
|
-
<ui5-mcb-group-item text="Europe"></ui5-mcb-group-item>
|
|
297
|
-
<ui5-mcb-item text="Austria"></ui5-mcb-item>
|
|
298
|
-
<ui5-mcb-item text="Bulgaria"></ui5-mcb-item>
|
|
299
|
-
<ui5-mcb-item text="Germany"></ui5-mcb-item>
|
|
300
|
-
<ui5-mcb-item text="Italy"></ui5-mcb-item>
|
|
301
|
-
<ui5-mcb-group-item text="North America"></ui5-mcb-group-item>
|
|
302
|
-
<ui5-mcb-item text="Canada"></ui5-mcb-item>
|
|
303
|
-
<ui5-mcb-item text="Granada"></ui5-mcb-item>
|
|
304
|
-
<ui5-mcb-item text="Haiti"></ui5-mcb-item>
|
|
305
|
-
<ui5-mcb-item text="United States"></ui5-mcb-item>
|
|
306
|
-
</ui5-multi-combobox>
|
|
307
|
-
<span>SelectionChange events emitted:</span>
|
|
308
|
-
<span id="selection-change-events-fired"></span>
|
|
309
|
-
</div>
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
<hr class="demo-section">
|
|
313
|
-
|
|
314
|
-
<div class="demo-section">
|
|
315
|
-
<span>Fired event: </span>
|
|
316
|
-
<input type="text" id="events-input" />
|
|
317
|
-
|
|
318
|
-
<br>
|
|
319
|
-
<br>
|
|
320
|
-
|
|
321
|
-
<span>Parameters Count: </span>
|
|
322
|
-
<input type="text" id="events-parameters" />
|
|
323
|
-
|
|
324
|
-
<br>
|
|
325
|
-
<br>
|
|
326
|
-
|
|
327
|
-
<span>Event call count: </span>
|
|
328
|
-
<input type="text" id="events-call-count" value="0" />
|
|
329
|
-
|
|
330
|
-
<br>
|
|
331
|
-
<br>
|
|
332
|
-
|
|
333
|
-
<button id="reset-btn">Reset fields</button>
|
|
334
|
-
</div>
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
<section class="ui5-content-density-compact">
|
|
338
|
-
<h3>MultiComboBox in Compact</h3>
|
|
339
|
-
<div>
|
|
340
|
-
<ui5-multi-combobox id="mcb-compact" placeholder="Some initial text">
|
|
341
|
-
<ui5-mcb-item text="Cosy" selected></ui5-mcb-item>
|
|
342
|
-
<ui5-mcb-item text="Compact" selected></ui5-mcb-item>
|
|
343
|
-
<ui5-mcb-item text="Condensed"></ui5-mcb-item>
|
|
344
|
-
<ui5-mcb-item text="Longest word in the world"></ui5-mcb-item>
|
|
345
|
-
</ui5-multi-combobox>
|
|
346
|
-
</div>
|
|
347
|
-
</section>
|
|
348
|
-
|
|
349
|
-
<div class="demo-section">
|
|
350
|
-
<ui5-label>Two-column items </ui5-label>
|
|
351
|
-
<br/>
|
|
352
|
-
<ui5-multi-combobox id="mcb-two-column-layout" class="multicombobox4auto">
|
|
353
|
-
<ui5-mcb-item text="Algeria" additional-text="DZ"></ui5-mcb-item>
|
|
354
|
-
<ui5-mcb-item text="Argentina" additional-text="AR"></ui5-mcb-item>
|
|
355
|
-
<ui5-mcb-item text="Australia" additional-text="AU"></ui5-mcb-item>
|
|
356
|
-
<ui5-mcb-item text="Austria" additional-text="AT"></ui5-mcb-item>
|
|
357
|
-
<ui5-mcb-item text="Bahrain" additional-text="BH"></ui5-mcb-item>
|
|
358
|
-
<ui5-mcb-item text="Belgium" additional-text="BE"></ui5-mcb-item>
|
|
359
|
-
<ui5-mcb-item text="Brazil" additional-text="BR"></ui5-mcb-item>
|
|
360
|
-
<ui5-mcb-item text="Bulgaria" additional-text="BG"></ui5-mcb-item>
|
|
361
|
-
<ui5-mcb-item text="Canada" additional-text="CA"></ui5-mcb-item>
|
|
362
|
-
<ui5-mcb-item text="Chile" additional-text="CL"></ui5-mcb-item>
|
|
363
|
-
</ui5-multi-combobox>
|
|
364
|
-
</div>
|
|
365
|
-
|
|
366
|
-
<div class="demo-section">
|
|
367
|
-
<span>Placeholder test</span>
|
|
368
|
-
|
|
369
|
-
<br>
|
|
370
|
-
<ui5-button id="sel">Toggle Item</ui5-button>
|
|
371
|
-
<ui5-multi-combobox id="mcb-init-selected-item" placeholder="Placeholder" style="width: 300px;">
|
|
372
|
-
<ui5-mcb-item text="Item1"></ui5-mcb-item>
|
|
373
|
-
<ui5-mcb-item selected id="mcb1" text="Initially selected"></ui5-mcb-item>
|
|
374
|
-
</ui5-multi-combobox>
|
|
375
|
-
<br />
|
|
376
|
-
<br />
|
|
377
|
-
<ui5-button id="sel2">Toggle Item</ui5-button>
|
|
378
|
-
<ui5-multi-combobox id="mcb-init-nonselected-item" placeholder="Placeholder" style="width: 300px;">
|
|
379
|
-
<ui5-mcb-item text="Item1"></ui5-mcb-item>
|
|
380
|
-
<ui5-mcb-item id="mcb1_2" text="Initially not selected"></ui5-mcb-item>
|
|
381
|
-
</ui5-multi-combobox>
|
|
382
|
-
</div>
|
|
383
|
-
|
|
384
|
-
<div>
|
|
385
|
-
<ui5-multi-combobox id="mcb-long-token">
|
|
386
|
-
<ui5-mcb-item selected text="Longest word in the world"></ui5-mcb-item>
|
|
387
|
-
</ui5-multi-combobox>
|
|
388
|
-
</div>
|
|
389
|
-
|
|
390
|
-
<div class="sample-container">
|
|
391
|
-
<ui5-button id="add">Add Tokens</ui5-button>
|
|
392
|
-
<ui5-multi-combobox id="mcb-dynamic-selection"></ui5-multi-combobox>
|
|
393
|
-
</div>
|
|
394
|
-
|
|
395
|
-
<div class="sample-container">
|
|
396
|
-
<ui5-multi-combobox id="n-more-many-items">
|
|
397
|
-
<ui5-mcb-item selected text="Item 1"></ui5-mcb-item>
|
|
398
|
-
<ui5-mcb-item selected text="Item 2"></ui5-mcb-item>
|
|
399
|
-
<ui5-mcb-item selected text="Item 3"></ui5-mcb-item>
|
|
400
|
-
<ui5-mcb-item selected text="Item 4"></ui5-mcb-item>
|
|
401
|
-
<ui5-mcb-item selected text="Item 5"></ui5-mcb-item>
|
|
402
|
-
<ui5-mcb-item selected text="Item 6"></ui5-mcb-item>
|
|
403
|
-
<ui5-mcb-item selected text="Item 7"></ui5-mcb-item>
|
|
404
|
-
</ui5-multi-combobox>
|
|
405
|
-
</div>
|
|
406
|
-
|
|
407
|
-
<script>
|
|
408
|
-
let selectionChangeEventsFired = 0;
|
|
409
|
-
var eventNameInput = document.getElementById("events-input");
|
|
410
|
-
var eventParamsInput = document.getElementById("events-parameters");
|
|
411
|
-
var callCountInput = document.getElementById("events-call-count");
|
|
412
|
-
var resetBtn = document.getElementById("reset-btn");
|
|
413
|
-
var selectionChangeCounter = 0;
|
|
414
|
-
var openChangeCounter = 0;
|
|
415
|
-
|
|
416
|
-
document.getElementById("mcb").addEventListener("ui5-selectionChange", function (event) {
|
|
417
|
-
selectionChangeCounter += 1;
|
|
418
|
-
eventNameInput.value = "selectionChange";
|
|
419
|
-
eventParamsInput.value = event.detail.items.length;
|
|
420
|
-
callCountInput.value = selectionChangeCounter;
|
|
421
|
-
});
|
|
422
|
-
|
|
423
|
-
document.getElementById("multi1").addEventListener("ui5-openChange", function (event) {
|
|
424
|
-
openChangeCounter += 1;
|
|
425
|
-
eventNameInput.value = "openChange";
|
|
426
|
-
callCountInput.value = openChangeCounter;
|
|
427
|
-
});
|
|
428
|
-
|
|
429
|
-
resetBtn.addEventListener("click", function (event) {
|
|
430
|
-
eventNameInput.value = "";
|
|
431
|
-
eventParamsInput.value = "";
|
|
432
|
-
callCountInput.value = "";
|
|
433
|
-
selectionChangeCounter = 0;
|
|
434
|
-
openChangeCounter = 0;
|
|
435
|
-
});
|
|
436
|
-
|
|
437
|
-
// Placeholders test
|
|
438
|
-
const btn = document.getElementById("sel");
|
|
439
|
-
const mcb1 = document.getElementById("mcb1");
|
|
440
|
-
const btn2 = document.getElementById("sel2");
|
|
441
|
-
const mcb1_2 = document.getElementById("mcb1_2");
|
|
442
|
-
const btnfocusMCB = document.getElementById("focus-mcb");
|
|
443
|
-
const mcbFocus = document.getElementById("multi1");
|
|
444
|
-
|
|
445
|
-
let selected = mcb1.hasAttribute("selected");
|
|
446
|
-
btn.addEventListener("click", () => {
|
|
447
|
-
if (!selected) {
|
|
448
|
-
mcb1.setAttribute("selected", selected);
|
|
449
|
-
} else {
|
|
450
|
-
mcb1.removeAttribute("selected");
|
|
451
|
-
}
|
|
452
|
-
selected = !selected;
|
|
453
|
-
});
|
|
454
|
-
|
|
455
|
-
let selected2 = mcb1_2.hasAttribute("selected");
|
|
456
|
-
btn2.addEventListener("click", () => {
|
|
457
|
-
if (!selected2) {
|
|
458
|
-
mcb1_2.setAttribute("selected", selected2);
|
|
459
|
-
} else {
|
|
460
|
-
mcb1_2.removeAttribute("selected");
|
|
461
|
-
}
|
|
462
|
-
selected2 = !selected2;
|
|
463
|
-
});
|
|
464
|
-
|
|
465
|
-
btnfocusMCB.addEventListener("click", () => {
|
|
466
|
-
mcbFocus.focus();
|
|
467
|
-
});
|
|
468
|
-
|
|
469
|
-
document.getElementById("add").addEventListener("click", event => {
|
|
470
|
-
const mcb = document.getElementById("mcb-dynamic-selection");
|
|
471
|
-
|
|
472
|
-
["Item 1", "Item 2", "Item 3", "Item 4", "Item 5", "Item 6"].forEach(text => {
|
|
473
|
-
const item = document.createElement("ui5-mcb-item");
|
|
474
|
-
item.text = text;
|
|
475
|
-
item.selected = true;
|
|
476
|
-
|
|
477
|
-
mcb.appendChild(item);
|
|
478
|
-
});
|
|
479
|
-
});
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
document.getElementById("mcb-grouping").addEventListener("ui5-selection-change", (e) => {
|
|
483
|
-
document.getElementById("selection-change-events-fired").textContent = ++selectionChangeEventsFired;
|
|
484
|
-
})
|
|
485
|
-
</script>
|
|
486
|
-
|
|
487
|
-
</body>
|
|
488
|
-
|
|
489
|
-
</html>
|