@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,451 +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>ui5-multi-input</title>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<script>// delete Document.prototype.adoptedStyleSheets;</script>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<script type="module" crossorigin src="/assets/bundle.common.fa62259e.js"></script>
|
|
17
|
-
<link rel="stylesheet" href="/assets/MultiInput.715aafd5.css">
|
|
18
|
-
</head>
|
|
19
|
-
|
|
20
|
-
<body class="multiinput1auto ui5-content-density-compact" >
|
|
21
|
-
|
|
22
|
-
<div class="sample-container">
|
|
23
|
-
|
|
24
|
-
<h1>Basic API</h1>
|
|
25
|
-
|
|
26
|
-
<h1 class="sample-container-title">Empty Multi Input</h1>
|
|
27
|
-
<ui5-multi-input id="empty-mi" placeholder="Placeholder"></ui5-multi-input>
|
|
28
|
-
|
|
29
|
-
<br>
|
|
30
|
-
<br>
|
|
31
|
-
|
|
32
|
-
<h1 class="sample-container-title">Multi Input with Value Help Icon</h1>
|
|
33
|
-
<ui5-multi-input show-value-help-icon id="vh"></ui5-multi-input>
|
|
34
|
-
|
|
35
|
-
<br>
|
|
36
|
-
<br>
|
|
37
|
-
|
|
38
|
-
<h1 class="sample-container-title">Multi Input with Value Help Icon and a custom icon</h1>
|
|
39
|
-
<ui5-multi-input show-value-help-icon>
|
|
40
|
-
<ui5-icon slot="icon" name="decline"></ui5-icon>
|
|
41
|
-
</ui5-multi-input>
|
|
42
|
-
|
|
43
|
-
<br>
|
|
44
|
-
<br>
|
|
45
|
-
|
|
46
|
-
<h1 class="sample-container-title">Multi Input with 1 token</h1>
|
|
47
|
-
<ui5-multi-input id="one-token">
|
|
48
|
-
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
49
|
-
</ui5-multi-input>
|
|
50
|
-
|
|
51
|
-
<br>
|
|
52
|
-
<br>
|
|
53
|
-
|
|
54
|
-
<h1 class="sample-container-title">Readonly Multi Input with tokens</h1>
|
|
55
|
-
<ui5-multi-input id="readonly-mi" readonly>
|
|
56
|
-
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
57
|
-
<ui5-token slot="tokens" text="Dolor"></ui5-token>
|
|
58
|
-
<ui5-token slot="tokens" text="Lorem"></ui5-token>
|
|
59
|
-
<ui5-token slot="tokens" text="Ipsum"></ui5-token>
|
|
60
|
-
</ui5-multi-input>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
<br>
|
|
64
|
-
<br>
|
|
65
|
-
|
|
66
|
-
<h1 class="sample-container-title">Multi Input with 11 tokens (overflowing)</h1>
|
|
67
|
-
<ui5-multi-input id="basic-overflow">
|
|
68
|
-
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
69
|
-
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
70
|
-
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
71
|
-
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
72
|
-
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
73
|
-
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
74
|
-
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
75
|
-
<ui5-token slot="tokens" text="esse"></ui5-token>
|
|
76
|
-
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
77
|
-
<ui5-token slot="tokens" text="amet"></ui5-token>
|
|
78
|
-
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
79
|
-
</ui5-multi-input>
|
|
80
|
-
|
|
81
|
-
<br>
|
|
82
|
-
<br>
|
|
83
|
-
|
|
84
|
-
<h1 class="sample-container-title">Multi Input with 11 tokens (overflowing) and value help icon</h1>
|
|
85
|
-
<ui5-multi-input show-value-help-icon id="basic-overflow-and-icon">
|
|
86
|
-
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
87
|
-
|
|
88
|
-
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
89
|
-
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
90
|
-
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
91
|
-
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
92
|
-
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
93
|
-
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
94
|
-
<ui5-token slot="tokens" text="esse"></ui5-token>
|
|
95
|
-
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
96
|
-
<ui5-token slot="tokens" text="amet"></ui5-token>
|
|
97
|
-
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
98
|
-
</ui5-multi-input>
|
|
99
|
-
|
|
100
|
-
<br>
|
|
101
|
-
<br>
|
|
102
|
-
|
|
103
|
-
<span id="basic-event-listener"></span>
|
|
104
|
-
</div>
|
|
105
|
-
|
|
106
|
-
<div class="sample-container">
|
|
107
|
-
<h1>Value States</h1>
|
|
108
|
-
|
|
109
|
-
<h1 class="sample-container-title">Multi Input - Success</h1>
|
|
110
|
-
<ui5-multi-input id="multiInput-success"
|
|
111
|
-
value-state="Success">
|
|
112
|
-
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
113
|
-
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
114
|
-
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
115
|
-
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
116
|
-
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
117
|
-
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
118
|
-
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
119
|
-
<ui5-token slot="tokens" text="esse"></ui5-token>
|
|
120
|
-
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
121
|
-
<ui5-token slot="tokens" text="amet"></ui5-token>
|
|
122
|
-
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
123
|
-
</ui5-multi-input>
|
|
124
|
-
|
|
125
|
-
<br>
|
|
126
|
-
<br>
|
|
127
|
-
<h1 class="sample-container-title">Multi Input - Information</h1>
|
|
128
|
-
<ui5-multi-input id="multiInput-information"
|
|
129
|
-
value-state="Information">
|
|
130
|
-
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
131
|
-
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
132
|
-
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
133
|
-
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
134
|
-
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
135
|
-
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
136
|
-
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
137
|
-
<ui5-token slot="tokens" text="esse"></ui5-token>
|
|
138
|
-
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
139
|
-
<ui5-token slot="tokens" text="amet"></ui5-token>
|
|
140
|
-
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
141
|
-
<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>
|
|
142
|
-
</ui5-multi-input>
|
|
143
|
-
|
|
144
|
-
<br>
|
|
145
|
-
<br>
|
|
146
|
-
|
|
147
|
-
<h1 class="sample-container-title">Multi Input - Warning</h1>
|
|
148
|
-
<ui5-multi-input id="multiInput-warning"
|
|
149
|
-
value-state="Warning">
|
|
150
|
-
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
151
|
-
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
152
|
-
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
153
|
-
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
154
|
-
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
155
|
-
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
156
|
-
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
157
|
-
<ui5-token slot="tokens" text="esse"></ui5-token>
|
|
158
|
-
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
159
|
-
<ui5-token slot="tokens" text="amet"></ui5-token>
|
|
160
|
-
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
161
|
-
</ui5-multi-input>
|
|
162
|
-
|
|
163
|
-
<br>
|
|
164
|
-
<br>
|
|
165
|
-
|
|
166
|
-
<h1 class="sample-container-title">Multi Input - Error</h1>
|
|
167
|
-
<ui5-multi-input id="multiInput-error"
|
|
168
|
-
value-state="Error">
|
|
169
|
-
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
170
|
-
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
171
|
-
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
172
|
-
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
173
|
-
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
174
|
-
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
175
|
-
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
176
|
-
<ui5-token slot="tokens" text="esse"></ui5-token>
|
|
177
|
-
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
178
|
-
<ui5-token slot="tokens" text="amet"></ui5-token>
|
|
179
|
-
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
180
|
-
</ui5-multi-input>
|
|
181
|
-
|
|
182
|
-
<br>
|
|
183
|
-
<br>
|
|
184
|
-
</div>
|
|
185
|
-
|
|
186
|
-
<div class="sample-container">
|
|
187
|
-
<h1>Tokens</h1>
|
|
188
|
-
|
|
189
|
-
<h1 class="sample-container-title">Multi Input without tokens</h1>
|
|
190
|
-
<ui5-multi-input id="no-tokens"></ui5-multi-input>
|
|
191
|
-
<br>
|
|
192
|
-
<br>
|
|
193
|
-
|
|
194
|
-
<ui5-button id="add-tokens">Add more tokens</ui5-button>
|
|
195
|
-
|
|
196
|
-
<br>
|
|
197
|
-
<br>
|
|
198
|
-
|
|
199
|
-
<h1 class="sample-container-title">Multi Input with 1 token</h1>
|
|
200
|
-
<ui5-multi-input id="single-token">
|
|
201
|
-
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
202
|
-
</ui5-multi-input>
|
|
203
|
-
<br>
|
|
204
|
-
<br>
|
|
205
|
-
|
|
206
|
-
<ui5-button id="add-to-single">Add more tokens</ui5-button>
|
|
207
|
-
|
|
208
|
-
<br>
|
|
209
|
-
<br>
|
|
210
|
-
|
|
211
|
-
<h1 class="sample-container-title">Multi Input with 2 tokens</h1>
|
|
212
|
-
<ui5-multi-input id="two-tokens" value="abc">
|
|
213
|
-
<ui5-token slot="tokens" id="firstToken" text="aa"></ui5-token>
|
|
214
|
-
<ui5-token slot="tokens" id="secondToken" text="bb"></ui5-token>
|
|
215
|
-
</ui5-multi-input>
|
|
216
|
-
<br>
|
|
217
|
-
<br>
|
|
218
|
-
|
|
219
|
-
<h1 class="sample-container-title">Multi Input with 5 tokens</h1>
|
|
220
|
-
<ui5-multi-input id="multiple-token">
|
|
221
|
-
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
222
|
-
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
223
|
-
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
224
|
-
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
225
|
-
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
226
|
-
</ui5-multi-input>
|
|
227
|
-
|
|
228
|
-
<br>
|
|
229
|
-
<br>
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
<ui5-button id="add-to-multiple">Add more tokens</ui5-button>
|
|
233
|
-
</div>
|
|
234
|
-
|
|
235
|
-
<div class="sample-container">
|
|
236
|
-
<h1>Tokens + Suggestions</h1>
|
|
237
|
-
|
|
238
|
-
<ui5-multi-input show-suggestions show-value-help-icon id="suggestion-token">
|
|
239
|
-
<ui5-suggestion-item text="Aute"></ui5-suggestion-item>
|
|
240
|
-
<ui5-suggestion-item text="ad"></ui5-suggestion-item>
|
|
241
|
-
<ui5-suggestion-item text="exercitation"></ui5-suggestion-item>
|
|
242
|
-
<ui5-suggestion-item text="esse"></ui5-suggestion-item>
|
|
243
|
-
<ui5-suggestion-item text="labore"></ui5-suggestion-item>
|
|
244
|
-
<ui5-suggestion-item text="amet"></ui5-suggestion-item>
|
|
245
|
-
<ui5-suggestion-item text="aute"></ui5-suggestion-item>
|
|
246
|
-
<ui5-suggestion-item text="excepteur"></ui5-suggestion-item>
|
|
247
|
-
</ui5-multi-input>
|
|
248
|
-
|
|
249
|
-
<ui5-dialog id="dialog" header-text="Add Competency">
|
|
250
|
-
|
|
251
|
-
<ui5-list id="tokens-list">
|
|
252
|
-
|
|
253
|
-
</ui5-list>
|
|
254
|
-
|
|
255
|
-
<div slot="footer" class="footer">
|
|
256
|
-
<ui5-button design="Emphasized">Save</ui5-button>
|
|
257
|
-
<ui5-button>Cancel</ui5-button>
|
|
258
|
-
</div>
|
|
259
|
-
</ui5-dialog>
|
|
260
|
-
</div>
|
|
261
|
-
|
|
262
|
-
<div class="sample-container">
|
|
263
|
-
<ui5-multi-input show-suggestions id="token-unique" show-value-help-icon style="width: 50%">
|
|
264
|
-
<div slot="valueStateMessage" id="value-state-wrapper">Token is already in the list</div>
|
|
265
|
-
<ui5-suggestion-item text="Argentina"></ui5-suggestion-item>
|
|
266
|
-
</ui5-multi-input>
|
|
267
|
-
</div>
|
|
268
|
-
|
|
269
|
-
<div class="sample-container">
|
|
270
|
-
<h1>Test value-help-trigger with F4 and Alt + ArrowUp/Down</h1>
|
|
271
|
-
|
|
272
|
-
<ui5-multi-input id="multi-with-value-help-icon" show-value-help-icon>
|
|
273
|
-
</ui5-multi-input>
|
|
274
|
-
<ui5-input id="value-help-trigger-counter" placeholder="event count.."></ui5-input>
|
|
275
|
-
</div>
|
|
276
|
-
|
|
277
|
-
<div>
|
|
278
|
-
<ui5-title>MultiInput with tokens with custom icon</ui5-title>
|
|
279
|
-
<ui5-multi-input id="mi-with-tokens-customicon" placeholder="Placeholder" class="multiinput2auto">
|
|
280
|
-
<ui5-token slot="tokens" text="Menu">
|
|
281
|
-
<ui5-icon name="menu" accessible-name="Menu here" slot="closeIcon"></ui5-icon>
|
|
282
|
-
</ui5-token>
|
|
283
|
-
<ui5-token slot="tokens" text="Not a menu">
|
|
284
|
-
</ui5-token>
|
|
285
|
-
</ui5-multi-input>
|
|
286
|
-
</div>
|
|
287
|
-
|
|
288
|
-
<div class="sample-container">
|
|
289
|
-
|
|
290
|
-
<h1 class="sample-container-title">Eventing</h1>
|
|
291
|
-
|
|
292
|
-
<ui5-multi-input id="mi-event">
|
|
293
|
-
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
294
|
-
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
295
|
-
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
296
|
-
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
297
|
-
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
298
|
-
</ui5-multi-input>
|
|
299
|
-
|
|
300
|
-
<br>
|
|
301
|
-
<span>Event:</span>
|
|
302
|
-
<br>
|
|
303
|
-
<input id="event-type">
|
|
304
|
-
<br>
|
|
305
|
-
<span>Count:</span>
|
|
306
|
-
<br>
|
|
307
|
-
<input id="event-count">
|
|
308
|
-
<br>
|
|
309
|
-
<span>Event target text:</span>
|
|
310
|
-
<br>
|
|
311
|
-
<input id="event-target-text">
|
|
312
|
-
|
|
313
|
-
</div>
|
|
314
|
-
|
|
315
|
-
<script>
|
|
316
|
-
|
|
317
|
-
var createTokenFromText = function (text) {
|
|
318
|
-
var token = document.createElement("ui5-token");
|
|
319
|
-
|
|
320
|
-
token.setAttribute("text", text);
|
|
321
|
-
token.setAttribute("slot", "tokens");
|
|
322
|
-
|
|
323
|
-
return token;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
var createTokenFromLI = function (li) {
|
|
327
|
-
return createTokenFromText(li.text);
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
var addTokenToMI = function (token, id) {
|
|
331
|
-
document.getElementById(id).appendChild(token);
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
document.getElementById("add-tokens").addEventListener("click", function(event) {
|
|
335
|
-
addTokenToMI(createTokenFromText("test"), "no-tokens");
|
|
336
|
-
});
|
|
337
|
-
|
|
338
|
-
document.getElementById("add-to-single").addEventListener("click", function(event) {
|
|
339
|
-
addTokenToMI(createTokenFromText("test"), "single-token");
|
|
340
|
-
});
|
|
341
|
-
|
|
342
|
-
document.getElementById("add-to-multiple").addEventListener("click", function(event) {
|
|
343
|
-
addTokenToMI(createTokenFromText("test"), "multiple-token");
|
|
344
|
-
});
|
|
345
|
-
|
|
346
|
-
/* ----------------- */
|
|
347
|
-
|
|
348
|
-
document.getElementById("vh").addEventListener("ui5-value-help-trigger", function (event) {
|
|
349
|
-
alert("test");
|
|
350
|
-
});
|
|
351
|
-
|
|
352
|
-
document.getElementById("suggestion-token").addEventListener("ui5-value-help-trigger", function (event) {
|
|
353
|
-
var list = document.getElementById("tokens-list");
|
|
354
|
-
|
|
355
|
-
list.innerHTML = "";
|
|
356
|
-
|
|
357
|
-
event.target.tokens.forEach(function (token) {
|
|
358
|
-
var li = document.createElement("ui5-li");
|
|
359
|
-
li.innerHTML = token.text;
|
|
360
|
-
|
|
361
|
-
list.appendChild(li);
|
|
362
|
-
});
|
|
363
|
-
|
|
364
|
-
document.getElementById("dialog").show();
|
|
365
|
-
});
|
|
366
|
-
|
|
367
|
-
document.getElementById("suggestion-token").addEventListener("ui5-suggestion-item-select", function (event) {
|
|
368
|
-
var item = event.detail.item;
|
|
369
|
-
var mi = event.target
|
|
370
|
-
var token = document.createElement("ui5-token");
|
|
371
|
-
|
|
372
|
-
token.setAttribute("text", item.text);
|
|
373
|
-
token.setAttribute("slot", "tokens");
|
|
374
|
-
event.target.appendChild(token);
|
|
375
|
-
|
|
376
|
-
// discuss ?!
|
|
377
|
-
event.target.value = "";
|
|
378
|
-
});
|
|
379
|
-
|
|
380
|
-
document.getElementById("basic-overflow-and-icon").addEventListener("ui5-value-help-trigger", function (event) {
|
|
381
|
-
document.getElementById("basic-event-listener").innerHTML = "value help icon press";
|
|
382
|
-
});
|
|
383
|
-
|
|
384
|
-
let valueHelpTriggerCounter = 0;
|
|
385
|
-
document.getElementById("multi-with-value-help-icon").addEventListener("ui5-value-help-trigger", function (event) {
|
|
386
|
-
document.getElementById("value-help-trigger-counter").value = ++valueHelpTriggerCounter;
|
|
387
|
-
});
|
|
388
|
-
|
|
389
|
-
const handleTokenDelete = (event) => {
|
|
390
|
-
var mi = event.target;
|
|
391
|
-
mi.removeChild(event.detail.token);
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
document.getElementById("suggestion-token").addEventListener("ui5-token-delete", handleTokenDelete);
|
|
395
|
-
document.getElementById("two-tokens").addEventListener("ui5-token-delete", handleTokenDelete);
|
|
396
|
-
document.getElementById("readonly-mi").addEventListener("ui5-token-delete", handleTokenDelete);
|
|
397
|
-
|
|
398
|
-
const handleTokenDelete2 = (event) => {
|
|
399
|
-
const eventType = document.getElementById("event-type");
|
|
400
|
-
const eventCount = document.getElementById("event-count");
|
|
401
|
-
const eventTargetText = document.getElementById("event-target-text");
|
|
402
|
-
|
|
403
|
-
eventType.value = event.type;
|
|
404
|
-
eventTargetText.value = event.detail.token.text;
|
|
405
|
-
|
|
406
|
-
if (!eventCount.value || isNaN(eventCount.value)) {
|
|
407
|
-
eventCount.value = 1;
|
|
408
|
-
} else {
|
|
409
|
-
eventCount.value = parseInt(eventCount.value) + 1;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
document.getElementById("mi-event").addEventListener("ui5-token-delete", handleTokenDelete2);
|
|
413
|
-
|
|
414
|
-
document.getElementById("token-unique").addEventListener("ui5-token-delete", function (event) {
|
|
415
|
-
const token = event.detail?.token;
|
|
416
|
-
token && token.remove();
|
|
417
|
-
});
|
|
418
|
-
|
|
419
|
-
document.getElementById("token-unique").addEventListener("ui5-change", function (event) {
|
|
420
|
-
if (!event.target.value) {
|
|
421
|
-
return;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
var isDuplicate = event.target.tokens.some(function(token) {
|
|
425
|
-
return token.text === event.target.value
|
|
426
|
-
});
|
|
427
|
-
|
|
428
|
-
if (isDuplicate) {
|
|
429
|
-
event.target.valueState = "Error";
|
|
430
|
-
|
|
431
|
-
setTimeout(function () {
|
|
432
|
-
event.target.valueState = "None";
|
|
433
|
-
}, 2000);
|
|
434
|
-
|
|
435
|
-
return;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
event.target.appendChild(createTokenFromText(event.target.value));
|
|
439
|
-
|
|
440
|
-
event.target.value = "";
|
|
441
|
-
});
|
|
442
|
-
|
|
443
|
-
document
|
|
444
|
-
.getElementById("token-unique")
|
|
445
|
-
.addEventListener("ui5-value-help-trigger", function (event) {
|
|
446
|
-
event.target.openPicker();
|
|
447
|
-
});
|
|
448
|
-
</script>
|
|
449
|
-
</body>
|
|
450
|
-
|
|
451
|
-
</html>
|
|
@@ -1,161 +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>ui5-multi-input</title>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<script>// delete Document.prototype.adoptedStyleSheets;</script>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<script type="module" crossorigin src="/assets/bundle.common.fa62259e.js"></script>
|
|
17
|
-
<link rel="stylesheet" href="/assets/MultiInput_Suggestions.e43fcf8a.css">
|
|
18
|
-
</head>
|
|
19
|
-
|
|
20
|
-
<body class="multiinput_suggestions1auto ui5-content-density-compact" >
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<div class="sample-container">
|
|
24
|
-
<h1>Tokens + Suggestions</h1>
|
|
25
|
-
|
|
26
|
-
<ui5-multi-input show-suggestions show-value-help-icon id="suggestion-token">
|
|
27
|
-
<ui5-suggestion-item text="Aute"></ui5-suggestion-item>
|
|
28
|
-
<ui5-suggestion-item text="ad"></ui5-suggestion-item>
|
|
29
|
-
<ui5-suggestion-item text="exercitation"></ui5-suggestion-item>
|
|
30
|
-
<ui5-suggestion-item text="esse"></ui5-suggestion-item>
|
|
31
|
-
<ui5-suggestion-item text="labore"></ui5-suggestion-item>
|
|
32
|
-
<ui5-suggestion-item text="amet"></ui5-suggestion-item>
|
|
33
|
-
<ui5-suggestion-item text="aute"></ui5-suggestion-item>
|
|
34
|
-
<ui5-suggestion-item text="excepteur"></ui5-suggestion-item>
|
|
35
|
-
</ui5-multi-input>
|
|
36
|
-
|
|
37
|
-
<ui5-dialog id="dialog" header-text="Add Competency">
|
|
38
|
-
|
|
39
|
-
<ui5-list id="tokens-list">
|
|
40
|
-
|
|
41
|
-
</ui5-list>
|
|
42
|
-
|
|
43
|
-
<div slot="footer" class="footer">
|
|
44
|
-
<ui5-button design="Emphasized">Save</ui5-button>
|
|
45
|
-
<ui5-button>Cancel</ui5-button>
|
|
46
|
-
</div>
|
|
47
|
-
</ui5-dialog>
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
<div class="sample-container">
|
|
51
|
-
|
|
52
|
-
<h1>Token Creation on enter or focus out</h1>
|
|
53
|
-
|
|
54
|
-
<ui5-multi-input show-suggestions id="token-creation"></ui5-multi-input>
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<div class="sample-container">
|
|
58
|
-
|
|
59
|
-
<h1>Token Creation onChange (unique)</h1>
|
|
60
|
-
|
|
61
|
-
<ui5-multi-input show-suggestions id="token-unique">
|
|
62
|
-
<div slot="valueStateMessage">Token is already in the list</div>
|
|
63
|
-
</ui5-multi-input>
|
|
64
|
-
</div>
|
|
65
|
-
|
|
66
|
-
<script>
|
|
67
|
-
|
|
68
|
-
var createTokenFromText = function (text) {
|
|
69
|
-
var token = document.createElement("ui5-token");
|
|
70
|
-
|
|
71
|
-
token.setAttribute("text", text);
|
|
72
|
-
token.setAttribute("slot", "tokens");
|
|
73
|
-
|
|
74
|
-
return token;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
var createTokenFromLI = function (li) {
|
|
78
|
-
return createTokenFromText(li.text);
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
var addTokenToMI = function (token, id) {
|
|
82
|
-
document.getElementById(id).appendChild(token);
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/* ----------------- */
|
|
86
|
-
|
|
87
|
-
document.getElementById("suggestion-token").addEventListener("ui5-value-help-trigger", function (event) {
|
|
88
|
-
var list = document.getElementById("tokens-list");
|
|
89
|
-
|
|
90
|
-
list.innerHTML = "";
|
|
91
|
-
|
|
92
|
-
event.target.tokens.forEach(function (token) {
|
|
93
|
-
var li = document.createElement("ui5-li");
|
|
94
|
-
li.innerHTML = token.text;
|
|
95
|
-
|
|
96
|
-
list.appendChild(li);
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
document.getElementById("dialog").show();
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
document.getElementById("suggestion-token").addEventListener("ui5-suggestion-item-select", function (event) {
|
|
103
|
-
var item = event.detail.item;
|
|
104
|
-
var mi = event.target
|
|
105
|
-
var token = document.createElement("ui5-token");
|
|
106
|
-
|
|
107
|
-
token.setAttribute("text", item.text);
|
|
108
|
-
token.setAttribute("slot", "tokens");
|
|
109
|
-
event.target.appendChild(token);
|
|
110
|
-
|
|
111
|
-
// discuss ?!
|
|
112
|
-
event.target.value = "";
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
document.getElementById("suggestion-token").addEventListener("ui5-token-delete", function (event) {
|
|
116
|
-
var mi = event.target;
|
|
117
|
-
|
|
118
|
-
mi.removeChild(event.detail.token);
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
document.getElementById("token-creation").addEventListener("ui5-change", function (event) {
|
|
122
|
-
event.target.appendChild(createTokenFromText(event.target.value));
|
|
123
|
-
|
|
124
|
-
event.target.value = "";
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
document.getElementById("token-creation").addEventListener("ui5-token-delete", function (event) {
|
|
128
|
-
event.target.removeChild(event.detail.token);
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
document.getElementById("token-unique").addEventListener("ui5-change", function (event) {
|
|
132
|
-
if (!event.target.value) {
|
|
133
|
-
return;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
var isDuplicate = event.target.tokens.some(function(token) {
|
|
137
|
-
return token.text === event.target.value;
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
if (isDuplicate) {
|
|
141
|
-
event.target.valueState = "Error";
|
|
142
|
-
|
|
143
|
-
setTimeout(function () {
|
|
144
|
-
event.target.valueState = "None";
|
|
145
|
-
}, 2000);
|
|
146
|
-
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
event.target.appendChild(createTokenFromText(event.target.value));
|
|
151
|
-
|
|
152
|
-
event.target.value = "";
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
document.getElementById("token-unique").addEventListener("ui5-token-delete", function (event) {
|
|
156
|
-
event.target.removeChild(event.detail.token);
|
|
157
|
-
});
|
|
158
|
-
</script>
|
|
159
|
-
</body>
|
|
160
|
-
|
|
161
|
-
</html>
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="EN">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<title>OpenUI loaded on demand</title>
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
7
|
-
<meta charset="utf-8">
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<script data-ui5-config type="application/json">
|
|
12
|
-
{
|
|
13
|
-
"language": "de",
|
|
14
|
-
"theme": "sap_horizon"
|
|
15
|
-
}
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<script type="module" crossorigin src="/assets/bundle.common.fa62259e.js"></script>
|
|
20
|
-
<link rel="stylesheet" href="/assets/kitchen-styles.7e433e08.css">
|
|
21
|
-
</head>
|
|
22
|
-
|
|
23
|
-
<body>
|
|
24
|
-
|
|
25
|
-
<ui5-title>This is a UI5 Web Components date picker</ui5-title>
|
|
26
|
-
<ui5-date-picker></ui5-date-picker>
|
|
27
|
-
|
|
28
|
-
<br><br>
|
|
29
|
-
|
|
30
|
-
<ui5-button id="load">Load OpenUI5</ui5-button>
|
|
31
|
-
|
|
32
|
-
<br><br>
|
|
33
|
-
|
|
34
|
-
<div id="sapMDatePicker">OpenUI5 app (sap.m.DatePicker) to be loaded here...</div>
|
|
35
|
-
|
|
36
|
-
<script>
|
|
37
|
-
document.querySelector("#load").addEventListener("click", () => {
|
|
38
|
-
// Runs the OpenUI5 app
|
|
39
|
-
const runApp = () => {
|
|
40
|
-
new sap.m.DatePicker().placeAt("sapMDatePicker");
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
// Set up the OpenUI5 config
|
|
44
|
-
window["sap-ui-config"] = {
|
|
45
|
-
theme: window["sap-ui-webcomponents-bundle"].configuration.getTheme(),
|
|
46
|
-
language: window["sap-ui-webcomponents-bundle"].configuration.getLanguage(),
|
|
47
|
-
oninit: runApp
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
// Load OpenUI5
|
|
51
|
-
const script = document.createElement("script");
|
|
52
|
-
script.id = "sap-ui-bootstrap";
|
|
53
|
-
script.src = "https://sdk.openui5.org/resources/sap-ui-core.js";
|
|
54
|
-
script.setAttribute("data-sap-ui-libs", "sap.m");
|
|
55
|
-
document.head.appendChild(script);
|
|
56
|
-
});
|
|
57
|
-
</script>
|
|
58
|
-
|
|
59
|
-
</body>
|
|
60
|
-
</html>
|