@ui5/webcomponents 1.14.3 → 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.
Files changed (129) hide show
  1. package/.vscode/diff/vulsCount.txt +1 -0
  2. package/.vscode/settings.json +3 -0
  3. package/package.json +7 -8
  4. package/LICENSE.txt +0 -201
  5. package/dist/assets/test/pages/ComboBox.html.81ae00e2.js +0 -1
  6. package/dist/assets/test/pages/Icon.html.1951ea7c.js +0 -1
  7. package/dist/assets/test/pages/Label.html.e50a04af.js +0 -4
  8. package/dist/assets/test/pages/Popups.html.d7a532db.js +0 -1
  9. package/dist/test/pages/72override.html +0 -33
  10. package/dist/test/pages/AnimanitionOff.html +0 -52
  11. package/dist/test/pages/Avatar.html +0 -264
  12. package/dist/test/pages/AvatarGroup.html +0 -376
  13. package/dist/test/pages/Badge.html +0 -75
  14. package/dist/test/pages/Breadcrumbs.html +0 -239
  15. package/dist/test/pages/BusyIndicator.html +0 -278
  16. package/dist/test/pages/Button.html +0 -273
  17. package/dist/test/pages/Calendar.html +0 -103
  18. package/dist/test/pages/Card.html +0 -347
  19. package/dist/test/pages/Carousel.html +0 -613
  20. package/dist/test/pages/CheckBox.html +0 -90
  21. package/dist/test/pages/ColorPalette.html +0 -126
  22. package/dist/test/pages/ColorPalettePopover.html +0 -141
  23. package/dist/test/pages/ColorPicker.html +0 -66
  24. package/dist/test/pages/ComboBox.html +0 -292
  25. package/dist/test/pages/Components.html +0 -106
  26. package/dist/test/pages/CoreControls.html +0 -203
  27. package/dist/test/pages/CoreControls_exp.html +0 -203
  28. package/dist/test/pages/CustomCSS.html +0 -55
  29. package/dist/test/pages/DatePicker.html +0 -211
  30. package/dist/test/pages/DatePicker_test_page.html +0 -109
  31. package/dist/test/pages/DateRangePicker.html +0 -67
  32. package/dist/test/pages/DateTimePicker.html +0 -199
  33. package/dist/test/pages/DateTimePicker_Timezone.html +0 -72
  34. package/dist/test/pages/DayPicker.html +0 -37
  35. package/dist/test/pages/Dialog.html +0 -813
  36. package/dist/test/pages/DialogLifecycle.html +0 -62
  37. package/dist/test/pages/DialogSemantic.html +0 -58
  38. package/dist/test/pages/Eventing.html +0 -33
  39. package/dist/test/pages/F6Test1.html +0 -42
  40. package/dist/test/pages/F6Test2.html +0 -42
  41. package/dist/test/pages/F6Test3.html +0 -39
  42. package/dist/test/pages/F6Test4.html +0 -46
  43. package/dist/test/pages/F6Test5.html +0 -42
  44. package/dist/test/pages/F6Test6.html +0 -39
  45. package/dist/test/pages/F6Test7.html +0 -36
  46. package/dist/test/pages/FileUploader.html +0 -138
  47. package/dist/test/pages/FormComponents.html +0 -76
  48. package/dist/test/pages/FormSupport.html +0 -59
  49. package/dist/test/pages/HCB.html +0 -45
  50. package/dist/test/pages/Icon.html +0 -278
  51. package/dist/test/pages/Icon_and_theming.html +0 -67
  52. package/dist/test/pages/Icon_custom.html +0 -26
  53. package/dist/test/pages/Input.html +0 -731
  54. package/dist/test/pages/InputFieldLabels.html +0 -355
  55. package/dist/test/pages/InputFieldMinWidth.html +0 -230
  56. package/dist/test/pages/InputIcons.html +0 -80
  57. package/dist/test/pages/Input_quickview.html +0 -204
  58. package/dist/test/pages/InputsAlignment.html +0 -131
  59. package/dist/test/pages/InputsLazyLoading.html +0 -244
  60. package/dist/test/pages/ItemNavigation.html +0 -94
  61. package/dist/test/pages/Kitchen.html +0 -637
  62. package/dist/test/pages/Kitchen.openui5.html +0 -570
  63. package/dist/test/pages/Label.html +0 -192
  64. package/dist/test/pages/Link.html +0 -201
  65. package/dist/test/pages/List.html +0 -465
  66. package/dist/test/pages/ListGrowing_Button.html +0 -64
  67. package/dist/test/pages/ListGrowing_Scroll.html +0 -93
  68. package/dist/test/pages/List_keyboard_support.html +0 -130
  69. package/dist/test/pages/List_test_page.html +0 -395
  70. package/dist/test/pages/LitKeyFunction.html +0 -40
  71. package/dist/test/pages/MemoryLeak.html +0 -78
  72. package/dist/test/pages/Menu.html +0 -161
  73. package/dist/test/pages/MessagePage.html +0 -39
  74. package/dist/test/pages/MessageStrip.html +0 -55
  75. package/dist/test/pages/MultiComboBox.html +0 -489
  76. package/dist/test/pages/MultiInput.html +0 -451
  77. package/dist/test/pages/MultiInput_Suggestions.html +0 -161
  78. package/dist/test/pages/OpenUI5-second.html +0 -60
  79. package/dist/test/pages/OpenUI5.html +0 -83
  80. package/dist/test/pages/OpenUI5Nightly.html +0 -83
  81. package/dist/test/pages/Panel.html +0 -226
  82. package/dist/test/pages/Popover.html +0 -658
  83. package/dist/test/pages/PopoverArrowBounds.html +0 -52
  84. package/dist/test/pages/Popups.html +0 -131
  85. package/dist/test/pages/ProgressIndicator.html +0 -151
  86. package/dist/test/pages/RTL.html +0 -118
  87. package/dist/test/pages/RadioButton.html +0 -201
  88. package/dist/test/pages/RangeSlider.html +0 -96
  89. package/dist/test/pages/RatingIndicator.html +0 -97
  90. package/dist/test/pages/ResizeHandler.html +0 -74
  91. package/dist/test/pages/ResponsivePopover.html +0 -267
  92. package/dist/test/pages/SegmentedButton.html +0 -151
  93. package/dist/test/pages/Select.html +0 -272
  94. package/dist/test/pages/Simple.html +0 -25
  95. package/dist/test/pages/Slider.html +0 -79
  96. package/dist/test/pages/SplitButton.html +0 -101
  97. package/dist/test/pages/StepInput.html +0 -189
  98. package/dist/test/pages/Switch.html +0 -97
  99. package/dist/test/pages/TabContainer.html +0 -904
  100. package/dist/test/pages/Table-perf-pure.html +0 -73
  101. package/dist/test/pages/Table-perf.html +0 -76
  102. package/dist/test/pages/Table.html +0 -2808
  103. package/dist/test/pages/Table2.html +0 -53
  104. package/dist/test/pages/TableAllPopin.html +0 -228
  105. package/dist/test/pages/TableCustomStyling.html +0 -89
  106. package/dist/test/pages/TableGrouping.html +0 -109
  107. package/dist/test/pages/TableGrowingWithButton.html +0 -805
  108. package/dist/test/pages/TableGrowingWithScroll.html +0 -801
  109. package/dist/test/pages/TableSelection.html +0 -445
  110. package/dist/test/pages/Test.html +0 -15
  111. package/dist/test/pages/TextArea.html +0 -222
  112. package/dist/test/pages/TimePicker.html +0 -89
  113. package/dist/test/pages/TimeSelection.html +0 -31
  114. package/dist/test/pages/Title.html +0 -60
  115. package/dist/test/pages/Toast.html +0 -111
  116. package/dist/test/pages/ToggleButton.html +0 -71
  117. package/dist/test/pages/Tokenizer.html +0 -91
  118. package/dist/test/pages/Tree.html +0 -307
  119. package/dist/test/pages/TreeDynamic.html +0 -56
  120. package/dist/test/pages/WheelSlider_Test_Page.html +0 -26
  121. package/dist/test/pages/base/AriaLabelHelper.html +0 -334
  122. package/dist/test/pages/base/DOMObserver.html +0 -20
  123. package/dist/test/pages/base/IconCollection.html +0 -23
  124. package/dist/test/pages/base/IconCollectionInCustomTheme.html +0 -25
  125. package/dist/test/pages/base/IgnoreCustomElements.html +0 -26
  126. package/dist/test/pages/base/InvisibleMessage.html +0 -44
  127. package/dist/test/pages/form.html +0 -123
  128. package/dist/test/pages/i18n-defaultLang.html +0 -31
  129. package/dist/test/pages/i18n-demo.html +0 -79
@@ -1,731 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
6
- <title>ui5-input</title>
7
-
8
-
9
-
10
-
11
-
12
- <script>// delete Document.prototype.adoptedStyleSheets;</script>
13
-
14
- <script type="module" crossorigin src="/assets/bundle.common.ad270030.js"></script>
15
- <link rel="stylesheet" href="/assets/Input.38261f5b.css">
16
- </head>
17
-
18
- <body class="input1auto">
19
- <h3> Input with suggestions: type 'a'</h3>
20
- <ui5-label id="myLabel">Event [suggestionItemSelect] :: N/A</ui5-label><br/>
21
- <ui5-label id="myLabelChange">Event [change] :: N/A</ui5-label><br/>
22
- <ui5-label id="myLabelLiveChange">Event [input] :: N/A</ui5-label><br/>
23
-
24
- <div>
25
- <h3>Input in Cozy</h3>
26
- <ui5-input id="myInput"
27
- class="input2auto"
28
- show-suggestions
29
- placeholder="Search for a country ..."
30
- >
31
- </ui5-input>
32
-
33
- <div>
34
- Change event count: <span id="myInput-change-count"></span>
35
- </div>
36
- <div id="myInput-change-result"></div>
37
- </div>
38
-
39
- <div class="sapUiSizeCompact">
40
- <h3>Input in Compact</h3>
41
- <ui5-input id="inputCompact"
42
- class="input2auto"
43
- show-suggestions
44
- placeholder="Search for a country ...">
45
- </ui5-input>
46
- </div>
47
-
48
- <br/>
49
- <br/>
50
- <h3>Input suggestions with ui5-li</h3>
51
- <ui5-input id="myInput2" show-suggestions class="input3auto">
52
- <ui5-li>Cozy</ui5-li>
53
- <ui5-li>Compact</ui5-li>
54
- <ui5-li>Condensed</ui5-li>
55
- <ui5-li type="Inactive">Inactive Compact</ui5-li>
56
- <ui5-li type="Inactive">Inactive Condensed</ui5-li>
57
- </ui5-input>
58
- <br/>
59
- <br/>
60
- <h3>Input suggestions with grouping</h3>
61
- <ui5-input id="myInputGrouping" show-suggestions class="input3auto">
62
- <ui5-suggestion-group-item text="Content Density"></ui5-suggestion-group-item>
63
- <ui5-suggestion-item text="Compact"></ui5-suggestion-item>
64
- <ui5-suggestion-item text="Condensed"></ui5-suggestion-item>
65
- <ui5-suggestion-item text="Cozy"></ui5-suggestion-item>
66
- <ui5-suggestion-group-item text="Themes"></ui5-suggestion-group-item>
67
- <ui5-suggestion-item type="Inactive" text="Inactive Quartz"></ui5-suggestion-item>
68
- <ui5-suggestion-item type="Inactive" text="Inactive HCB"></ui5-suggestion-item>
69
- </ui5-input>
70
-
71
- <h3>Input suggestions with highlighing</h3>
72
- <ui5-input id="myInputHighlighted" show-suggestions class="input3auto">
73
- <ui5-suggestion-item text="Adam D" description="Administrative Support"></ui5-suggestion-item>
74
- <ui5-suggestion-item text="Aanya Sing" description="Administrative Support"></ui5-suggestion-item>
75
- <ui5-suggestion-item text="Allen K" description="Technical Support"></ui5-suggestion-item>
76
- <ui5-suggestion-item text="Alex" description="Technical Support"></ui5-suggestion-item>
77
- </ui5-input>
78
-
79
- <h3> Input disabled</h3>
80
- <ui5-input class="input4auto" id="input-disabled" disabled placeholder="Disabled one ...">
81
- <ui5-icon slot="icon" name="appointment-2"></ui5-icon>
82
- </ui5-input>
83
- <input />
84
-
85
- <h3> Input maxLength = 5</h3>
86
- <ui5-input id="input-max-length" maxLength="5" placeholder="Max length of 5"></ui5-input>
87
-
88
- <h3> Input valueState Success</h3>
89
- <ui5-input id="input3" value-state="Success" placeholder="Success state ..."></ui5-input>
90
-
91
- <h3> Input valueState Information</h3>
92
- <ui5-input value-state="Information" placeholder="Info state ..."></ui5-input>
93
-
94
- <h3> Test 'change' event</h3>
95
- <ui5-input id="input1" value-state="Warning" placeholder="Warning state ..."></ui5-input>
96
-
97
- <h3>Input with valueState and Dynamic suggestions</h3>
98
- <ui5-input id="inputError"
99
- class="input2auto"
100
- show-suggestions
101
- value-state="Error"
102
- placeholder="Search for a country ...">
103
- <div slot="valueStateMessage">Custom error value state message with a <a href="#">Link</a>.</div>
104
- <div slot="valueStateMessage">Additionl custom error value state message with a <a href="#">Link</a>. Extra long text used as an error message. Extra long text used as an error message - 2. Extra long text used as an error message - 3.</div>
105
- </ui5-input>
106
-
107
- <h3>Input with long suggestions with valueState and ui5-li</h3>
108
- <ui5-input id="long-sugg" show-suggestions class="input2auto" value-state="Information">
109
- <ui5-li>Cozy</ui5-li>
110
- <ui5-li>Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2. text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.</ui5-li>
111
- <ui5-li>Condensed</ui5-li>
112
- <ui5-li>Cozy</ui5-li>
113
- <ui5-li>Compact</ui5-li>
114
- <ui5-li>Condensed</ui5-li>
115
- </ui5-input>
116
-
117
- <h3>Input with disabled autocomplete (type-ahead)</h3>
118
- <ui5-input id="input-disabled-autocomplete" show-suggestions no-typeahead="true">
119
- <ui5-li>Cozy</ui5-li>
120
- <ui5-li>Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2. text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.Extra long text used as a list item. Extra long text used as a list item -2.</ui5-li>
121
- <ui5-li>Condensed</ui5-li>
122
- <ui5-li>CozyTwo</ui5-li>
123
- <ui5-li>Compact</ui5-li>
124
- <ui5-li>Condensed</ui5-li>
125
- </ui5-input>
126
-
127
- <h3> 'change' event result</h3>
128
- <ui5-input id="inputResult"></ui5-input>
129
-
130
- <h3> 'selection-item-select' event result</h3>
131
- <ui5-input id="input-selection-event-test"></ui5-input>
132
-
133
- <h3> 'suggestionItemSelect' event result on group item</h3>
134
- <ui5-input id="inputResultGrouping"></ui5-input>
135
-
136
- <h3> Test 'input' event</h3>
137
- <ui5-input id="input2" value-state="Error" placeholder="Error state ...">
138
- <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>
139
- </ui5-input>
140
- <h3> 'input' test result</h3>
141
- <ui5-input id="inputLiveChangeResult"></ui5-input>
142
-
143
- <h3> Input test change with suggestions</h3>
144
- <ui5-input id="inputChange-Suggestions" show-suggestions>
145
- <ui5-icon slot="icon" name="message-warning"></ui5-icon>
146
- <ui5-suggestion-item text="Project"></ui5-suggestion-item>
147
- <ui5-suggestion-item text="Fellowship"></ui5-suggestion-item>
148
- <ui5-suggestion-item text="Vocational Training"></ui5-suggestion-item>
149
- </ui5-input>
150
-
151
- <h3> Input test change</h3>
152
- <ui5-input id="inputChange"></ui5-input>
153
-
154
- <h3> Input test change result</h3>
155
- <ui5-input id="inputChangeResult"></ui5-input>
156
- <h3>Input test ESC</h3>
157
- <ui5-input id="myInputEsc" show-suggestions class="input3auto">
158
- <ui5-suggestion-item text="Chromium"></ui5-suggestion-item>
159
- <ui5-suggestion-item text="Titanium"></ui5-suggestion-item>
160
- <ui5-suggestion-item text="Iron"></ui5-suggestion-item>
161
- <ui5-suggestion-item text="Gold"></ui5-suggestion-item>
162
- <ui5-suggestion-item text="Silver"></ui5-suggestion-item>
163
- </ui5-input>
164
-
165
- <h3> Input readonly</h3>
166
- <ui5-input id="input-readonly" value="Value can`t be changed" readonly></ui5-input>
167
- <ui5-input id="input-readonly" placeholder="Value can`t be changed" readonly></ui5-input>
168
-
169
- <h3> Input required</h3>
170
- <ui5-input id="input-required" value="This input is required" required></ui5-input>
171
-
172
- <h3> Input type 'Number'</h3>
173
- <ui5-input id="input-number" type="Number" placeholder="Numbers are allowed only ..."></ui5-input>
174
-
175
- <ui5-input id="input-number2" type="Number" placeholder="Numbers are allowed only ..."></ui5-input>
176
-
177
- <h3> Input type 'Password'</h3>
178
- <ui5-input id="input-password" type="Password" placeholder="Typing in private ..."></ui5-input>
179
-
180
- <h3> Input type 'Email'</h3>
181
- <ui5-input id="input-email" type="Email" name="my-input-email"></ui5-input>
182
-
183
- <h3> Input type 'Tel'</h3>
184
- <ui5-input id="input-tel" maxlength="10" type="Tel" name="my-input-tel"></ui5-input>
185
-
186
- <h3> Input type 'URL'</h3>
187
- <ui5-input id="input-url" type="URL"></ui5-input>
188
-
189
- <h3> Input With aria-label</h3>
190
- <ui5-input id="aria-label-input" accessible-name="Enter your secret password"></ui5-input>
191
-
192
- <h3> Readonly input with value state</h3>
193
- <ui5-input id="readonly-value-state-input" readonly value-state="Error"></ui5-input>
194
-
195
- <h3> Inputs alignment</h3>
196
- <ui5-button>Press</ui5-button>
197
- <ui5-date-picker id='dp5'
198
- placeholder='Delivery Date...'
199
- title='Delivery Date!'>
200
- </ui5-date-picker>
201
-
202
- <ui5-date-picker id='dp5'
203
- placeholder='Delivery Date...'
204
- value-state="Error"
205
- title='Delivery Date!'>
206
- </ui5-date-picker>
207
-
208
- <ui5-date-picker
209
- placeholder='Delivery Date...'
210
- value-state="Information"
211
- title='Delivery Date!'>
212
- </ui5-date-picker>
213
-
214
- <ui5-select id="mySelect2">
215
- <ui5-option>Cozy</ui5-option>
216
- <ui5-option selected>Compact</ui5-option>
217
- <ui5-option>Condensed</ui5-option>
218
- </ui5-select>
219
-
220
- <ui5-input value="input" value-state="Error"></ui5-input>
221
-
222
- <ui5-select id="mySelect2" value-state="Error">
223
- <ui5-option>Cozy</ui5-option>
224
- <ui5-option selected>Compact</ui5-option>
225
- <ui5-option>Condensed</ui5-option>
226
- </ui5-select>
227
-
228
- <ui5-select value-state="Information">
229
- <ui5-option>Cozy</ui5-option>
230
- <ui5-option selected>Compact</ui5-option>
231
- <ui5-option>Condensed</ui5-option>
232
- </ui5-select>
233
-
234
- <ui5-multi-combobox value-state="Error"></ui5-multi-combobox>
235
- <ui5-multi-combobox value-state="Information"></ui5-multi-combobox>
236
-
237
- <h3> Input with multiple icons</h3>
238
- <ui5-input id="input3" placeholder="Search ...">
239
- <ui5-icon slot="icon" name="search" class="input5auto"></ui5-icon>
240
- <ui5-icon slot="icon" name="decline" class="input5auto"></ui5-icon>
241
- </ui5-input>
242
-
243
- <h3> Input firing submit event and submit action on 'ENTER' in a form</h3>
244
- <form id="submit-form">
245
- <ui5-input id="submit-input" name="my-submit-input" placeholder="Type something and press 'ENTER' ..."></ui5-input>
246
- </form>
247
-
248
- <h3> Test scroll pos</h3>
249
- <ui5-input id="scrollInput" show-suggestions>
250
- <ui5-li>Cozy</ui5-li>
251
- <ui5-li>Compact</ui5-li>
252
- <ui5-li>Condensed</ui5-li>
253
- <ui5-li>Cozy</ui5-li>
254
- <ui5-li>Compact</ui5-li>
255
- <ui5-li>Condensed</ui5-li>
256
- <ui5-li>Cozy</ui5-li>
257
- <ui5-li>Compact</ui5-li>
258
- <ui5-li>Condensed</ui5-li>
259
- <ui5-li>Cozy</ui5-li>
260
- <ui5-li>Compact</ui5-li>
261
- <ui5-li>Condensed</ui5-li>
262
- <ui5-li>Cozy</ui5-li>
263
- <ui5-li>Compact</ui5-li>
264
- <ui5-li>Condensed</ui5-li>
265
- <ui5-li>Cozy</ui5-li>
266
- <ui5-li>Compact</ui5-li>
267
- <ui5-li>Condensed</ui5-li>
268
- <ui5-li>Cozy</ui5-li>
269
- <ui5-li>Compact</ui5-li>
270
- <ui5-li>Condensed</ui5-li>
271
- <ui5-li>Cozy</ui5-li>
272
- <ui5-li>Compact</ui5-li>
273
- <ui5-li>Condensed</ui5-li>
274
- <ui5-li>Cozy</ui5-li>
275
- <ui5-li>Compact</ui5-li>
276
- <ui5-li>Condensed</ui5-li>
277
- <ui5-li>Cozy</ui5-li>
278
- <ui5-li>Compact</ui5-li>
279
- <ui5-li>Condensed</ui5-li>
280
- <ui5-li>Cozy</ui5-li>
281
- <ui5-li>Compact</ui5-li>
282
- <ui5-li>Condensed</ui5-li>
283
- <ui5-li>Cozy</ui5-li>
284
- <ui5-li>Compact</ui5-li>
285
- <ui5-li>Condensed</ui5-li>
286
- <ui5-li>Cozy</ui5-li>
287
- <ui5-li>Compact</ui5-li>
288
- <ui5-li>Condensed</ui5-li>
289
- <ui5-li>Cozy</ui5-li>
290
- <ui5-li>Compact</ui5-li>
291
- <ui5-li>Condensed</ui5-li>
292
- <ui5-li>Cozy</ui5-li>
293
- <ui5-li>Compact</ui5-li>
294
- <ui5-li>Condensed</ui5-li>
295
- <ui5-li>Cozy</ui5-li>
296
- <ui5-li>Compact</ui5-li>
297
- <ui5-li>Condensed</ui5-li>
298
- <ui5-li>Cozy</ui5-li>
299
- <ui5-li>Compact</ui5-li>
300
- <ui5-li>Condensed</ui5-li>
301
- </ui5-input>
302
- <br><br>
303
- <ui5-input id="scrollResult"></ui5-input>
304
-
305
- <h3>Test accessibleName and accessibleNameRef</h3>
306
- <ui5-input accessible-name="Very important input"></ui5-input>
307
- <br>
308
- <ui5-label id="enterNameLabel">Enter name: </ui5-label>
309
- <ui5-input accessible-name-ref="enterNameLabel"></ui5-input>
310
-
311
- <h3>Input suggestions with highlighing and XSS test</h3>
312
- <ui5-input show-suggestions class="input3auto">
313
- <ui5-suggestion-item text="<script>alert('XSS')</script>" description="Administrative Support"></ui5-suggestion-item>
314
- <ui5-suggestion-item text="Aanya Sing" description="<b onmouseover=alert('XSS')></b>">
315
- </ui5-suggestion-item>
316
- </ui5-input>
317
-
318
- <h3>Test width of suggestions popover</h3>
319
- <ui5-input id="suggestionsPopoverWidth" show-suggestions class="input6auto">
320
- <ui5-li>Argentinaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</ui5-li>
321
- </ui5-input>
322
-
323
- <h3>Input in a Dialog</h3>
324
- <ui5-button id="btnOpenDialog">Open Dialog</ui5-button>
325
- <ui5-dialog id="dialog">
326
- <ui5-input id="inputInDialog" show-suggestions class="input3auto">
327
- <ui5-li>Cozy</ui5-li>
328
- <ui5-li>Compact</ui5-li>
329
- <ui5-li>Condensed</ui5-li>
330
- <ui5-li type="Inactive">Inactive Compact</ui5-li>
331
- <ui5-li type="Inactive">Inactive Condensed</ui5-li>
332
- </ui5-input>
333
- </ui5-dialog>
334
-
335
- <h3>Short Input With Centered Text</h3>
336
- <ui5-input class="short" value="244"></ui5-input>
337
-
338
- <h3>Input with suggestions: clear value on selection change</h3>
339
- <ui5-input id="change-event-value" show-suggestions>
340
- <ui5-li>Cozy</ui5-li>
341
- <ui5-li>Compact</ui5-li>
342
- <ui5-li>Condensed</ui5-li>
343
- </ui5-input>
344
-
345
-
346
- <h3>Test Backspace</h3>
347
- <ui5-input id="input-number3" type="Number" value="4"></ui5-input><br>
348
- <ui5-button id="input-number3-focusout">Click</ui5-button>
349
-
350
- <ui5-input id="input-number31" type="Number" value="4.333"></ui5-input><br>
351
- <ui5-input id="input-number32" type="Number" value="4.3"></ui5-input><br>
352
- <ui5-input id="input-number33" type="Number" value=".33"></ui5-input><br>
353
- <ui5-input id="input-number34" type="Number" value="-1.33"></ui5-input><br>
354
- <ui5-input id="input-number35" type="Number" value="-1.33e-2"></ui5-input><br>
355
- <ui5-input id="input-number35_eventValue" value="-1.33e-2"></ui5-input><br>
356
-
357
- <h3>sap_horizon</h3>
358
-
359
- <div class="sap_horizon">
360
-
361
- <ui5-input placeholder="No Value State"></ui5-input>
362
- <ui5-input placeholder="Disabled" disabled></ui5-input>
363
- <ui5-input placeholder="ReadnOnly" readonly></ui5-input>
364
- <ui5-input id="vs-error-default" placeholder="Error ValueState" value-state="Error"></ui5-input>
365
- <ui5-input id="vs-warning-default" placeholder="Warning ValueState" value-state="Warning"></ui5-input>
366
- <ui5-input id="vs-success-default" placeholder="Success ValueState" value-state="Success"></ui5-input>
367
- <ui5-input id="vs-information-default" placeholder="Information ValueState" value-state="Information"></ui5-input>
368
- </div>
369
-
370
- <br>
371
- <br>
372
-
373
- <div id="xss-wrapper">
374
- <ui5-button id="xss-btn">add xss item</ui5-button>
375
- <ui5-input show-suggestions id="xss-input">
376
- <ui5-suggestion-item text=""></ui5-suggestion-item>
377
- <ui5-suggestion-item text="&lt;b&gt;&lt;/b&gt;"></ui5-suggestion-item>
378
- <ui5-suggestion-item text="3412test1234"></ui5-suggestion-item>
379
- <ui5-suggestion-item text="[[[b]]]"></ui5-suggestion-item>
380
- <ui5-suggestion-item text="&amp;amp;"></ui5-suggestion-item>
381
- </ui5-input>
382
- <span id="xss-result">NO XSS</span>
383
- </div>
384
-
385
- <br>
386
- <br>
387
- <br>
388
-
389
- <div>
390
- <h3>Inputs with clear icon</h3>
391
-
392
- <ui5-input id="clear-input" show-clear-icon placeholder="Type to show clear icon..."></ui5-input>
393
- <br />
394
- <br />
395
- <span>Change: </span><span id="clear-input-change-event-count">0</span>
396
- <br />
397
- <span>Input: </span><span id="clear-input-input-event-count">0</span>
398
- <br />
399
- <br />
400
- <span class="sapUiSizeCompact">
401
- <ui5-input id="clear-input-compact" show-clear-icon placeholder="Type to show clear icon..." value="test"></ui5-input>
402
- <br>
403
- <button id="clear-icon-readonly-toggle">Toggle readonly</button>
404
- <br>
405
-
406
- <button id="clear-icon-disabled-toggle">Toggle disabled</button>
407
- </span>
408
- <br />
409
- <br />
410
- <span>Input with suggestions and clear icon</span>
411
- <br />
412
- <ui5-input id="clear-input-suggestions" show-suggestions show-clear-icon placeholder="Type to show clear icon...">
413
- <ui5-suggestion-item text="text 1"></ui5-suggestion-item>
414
- <ui5-suggestion-item text="text 2"></ui5-suggestion-item>
415
- <ui5-suggestion-item text="text 3"></ui5-suggestion-item>
416
- <ui5-suggestion-item text="text 4"></ui5-suggestion-item>
417
- <ui5-suggestion-item text="text 5"></ui5-suggestion-item>
418
- </ui5-input>
419
- <br />
420
- </div>
421
-
422
- <h3>Input with openPicker() on focusin</h3>
423
- <ui5-input id="openPickerInput" show-suggestions show-clear-icon class="input3auto" placeholder="Click to show recent values...">
424
- <ui5-suggestion-group-item>Recent Items</ui5-suggestion-group-item>
425
- <ui5-suggestion-item type="Inactive">No recent users</ui5-suggestion-item>
426
- </ui5-input>
427
-
428
- <h3>Input - change event handling</h3>
429
-
430
- <ui5-input id="input-change-1"></ui5-input>
431
- <ui5-button id="clear-button">Clear</ui5-button>
432
- <div>
433
- Change event count: <span id="input-change-count-1"></span>
434
- </div>
435
-
436
- <ui5-input show-suggestions id="input-change-2">
437
- <ui5-suggestion-item text="SOF"></ui5-suggestion-item>
438
- <ui5-suggestion-item text="USA"></ui5-suggestion-item>
439
- </ui5-input>
440
- <div>
441
- Change event count: <span id="input-change-count-2"></span>
442
- </div>
443
-
444
- <ui5-input id="input-change-3" type="Number" value="12.4"></ui5-input>
445
- <div>
446
- Change event value: <span id="input-change-value-3"></span>
447
- </div>
448
- <script>
449
- document.getElementById("submit-input").addEventListener("keypress", function(event) {
450
- if (event.key === 'Enter') {
451
- var formToSubmit = document.getElementById("submit-form");
452
- var submitEvent = new Event('submit');
453
-
454
- /* The old way - supported by all browsers:
455
- The submit method of the form won't trigger
456
- a submit event by itself, dispatch it manually */
457
-
458
- // formToSubmit.dispatchEvent(submitEvent);
459
- // formToSubmit.submit();
460
-
461
- // Fires submit event and submits
462
- // No MS IE11 & Safari support yet
463
- formToSubmit.requestSubmit()
464
- }
465
- });
466
-
467
- document.getElementById("submit-form").addEventListener("submit", function(event) {
468
- event.preventDefault();
469
- alert("Submitted");
470
- });
471
-
472
- btnOpenDialog.addEventListener("click", function () {
473
- dialog.show();
474
- });
475
- var sap_database_entries = [{ key: "A", text: "A" }, { key: "Afg", text: "Afghanistan" }, { key: "Arg", text: "Argentina" }, { key: "Alb", text: "Albania" }, { key: "Arm", text: "Armenia" }, { key: "Alg", text: "Algeria" }, { key: "And", text: "Andorra" }, { key: "Ang", text: "Angola" }, { key: "Ast", text: "Austria" }, { key: "Aus", text: "Australia" }, { key: "Aze", text: "Azerbaijan" }, { key: "Aruba", text: "Aruba" }, { key: "Antigua", text: "Antigua and Barbuda" }, { key: "B", text: "B" }, { key: "Bel", text: "Belarus" }, { key: "Bel", text: "Belgium" }, { key: "Bg", text: "Bulgaria" }, { key: "Bra", text: "Brazil" }, { key: "C", text: "C" }, { key: "Ch", text: "China" }, { key: "Cub", text: "Cuba" }, { key: "Chil", text: "Chili" }, { key: "L", text: "L" }, { key: "Lat", text: "Latvia" }, { key: "Lit", text: "Litva" }, { key: "P", text: "P" }, { key: "Prt", text: "Portugal" }, { key: "S", text: "S" }, { key: "Sen", text: "Senegal" }, { key: "Ser", text: "Serbia" }, { key: "Sey", text: "Seychelles" }, { key: "Sierra", text: "Sierra Leone" }, { key: "Sgp", text: "Singapore" }, { key: "Sint", text: "Sint Maarten" }, { key: "Slv", text: "Slovakia" }, { key: "Slo", text: "Slovenia" }];
476
-
477
- var input = document.getElementById('myInput');
478
- var inputChangeWithSuggestions = document.getElementById('inputChange-Suggestions');
479
- var inputGrouping = document.getElementById('myInputGrouping');
480
- var myInput2 = document.getElementById('myInput2');
481
- var inputError = document.getElementById("inputError");
482
- var input1 = document.getElementById('input1');
483
- var input2 = document.getElementById('input2');
484
- var inputResult = document.getElementById('inputResult');
485
- var inputResultGrouping = document.getElementById('inputResultGrouping');
486
- var inputLiveChangeResult = document.getElementById('inputLiveChangeResult');
487
- var label = document.getElementById('myLabel');
488
- var labelChange = document.getElementById('myLabelChange');
489
- var labelLiveChange = document.getElementById('myLabelLiveChange');
490
- var oXSSButton = document.getElementById("xss-btn");
491
-
492
- var suggestionSelectedCounterWithGrouping = 0;
493
-
494
- var suggest = function (event) {
495
- var input = event.target;
496
- var value = input.value;
497
- var suggestionItems = [];
498
-
499
- if (value) {
500
- suggestionItems = sap_database_entries.filter(function (item) {
501
- return item.text.toUpperCase().indexOf(value.toUpperCase()) === 0;
502
- });
503
- }
504
-
505
- while (input.lastChild && input.lastChild !== input.valueStateMessage[0]) {
506
- input.removeChild(input.lastChild);
507
- }
508
-
509
- suggestionItems.forEach(function(item, idx) {
510
- let suggestion;
511
- const groupItem = item.text.length === 1;
512
-
513
- if (groupItem) {
514
- suggestion = document.createElement("ui5-suggestion-group-item");
515
- suggestion.id = item.key;
516
- suggestion.text = item.text;
517
- input.appendChild(suggestion);
518
- } else {
519
- suggestion = document.createElement("ui5-suggestion-item");
520
- suggestion.id = item.key;
521
- suggestion.icon = "world";
522
- suggestion.description = "travel the world";
523
- suggestion.text = item.text
524
- suggestion.additionalText = "explore";
525
- suggestion.additionalTextState = "Success";
526
- input.appendChild(suggestion);
527
- }
528
- });
529
-
530
- labelLiveChange.innerHTML = "Event [input] :: " + value;
531
- };
532
-
533
- input.addEventListener("ui5-input", suggest);
534
- inputCompact.addEventListener("ui5-input", suggest);
535
- inputError.addEventListener("ui5-input", suggest);
536
-
537
- input.addEventListener("ui5-suggestionItemSelect", function (event) {
538
- var item = event.detail.item;
539
- label.innerHTML = "Event [suggestionSelectEvent] :: " + item.id;
540
- suggestionSelectedCounter += 1;
541
- inputResult.value = suggestionSelectedCounter;
542
- });
543
-
544
- inputGrouping.addEventListener("ui5-suggestionItemSelect", function (event) {
545
- var item = event.detail.item;
546
- suggestionSelectedCounterWithGrouping += 1;
547
- inputResultGrouping.value = suggestionSelectedCounterWithGrouping;
548
- });
549
-
550
- input.addEventListener("ui5-change", function (event) {
551
- labelChange.innerHTML = "Event [change] :: " + event.target.value;
552
- });
553
-
554
- var changeCounter = 0;
555
- var inputCounter = 0;
556
- var suggestionSelectedCounter = 0;
557
-
558
- input1.addEventListener("ui5-change", function (event) {
559
- changeCounter += 1;
560
- inputResult.value = changeCounter;
561
- });
562
-
563
- input2.addEventListener("ui5-input", function (event) {
564
- inputCounter += 1;
565
- inputLiveChangeResult.value = inputCounter;
566
- });
567
-
568
- myInput2.addEventListener("ui5-suggestionItemSelect", function (event) {
569
- var item = event.detail.item;
570
- suggestionSelectedCounter += 1;
571
- inputResult.value = suggestionSelectedCounter;
572
- });
573
-
574
- var inputChangeResultCounter = 0;
575
-
576
- inputChange.addEventListener("ui5-change", function (event) {
577
- inputChangeResult.value = ++inputChangeResultCounter;
578
- });
579
-
580
- inputChangeWithSuggestions.addEventListener("ui5-change", function (event) {
581
- inputChangeResult.value = ++inputChangeResultCounter;
582
- });
583
-
584
-
585
- scrollInput.addEventListener("ui5-suggestion-scroll", function (event) {
586
- scrollResult.value = event.detail.scrollTop;
587
- console.log("scroll", { scrolltop: event.detail.scrollTop, container: event.detail.scrollContainer });
588
- });
589
-
590
- input.addEventListener("ui5-change", (event) => {
591
- const changeCount = document.getElementById("myInput-change-count");
592
- const changeResult = document.getElementById("myInput-change-result");
593
- changeCount.innerText = parseInt(changeCount.innerText || 0) + 1;
594
- changeResult.innerText += event.target.value + "\r\n";
595
- });
596
-
597
- oXSSButton.addEventListener("click", function () {
598
- const oXSSItem = document.createElement("ui5-suggestion-item");
599
-
600
- oXSSItem.text = `Canada<<img src="xss" onerror="document.getElementById('xss-result').innerText = 'XSS FOUND'">`
601
- document.getElementById("xss-input").appendChild(oXSSItem);
602
- });
603
-
604
- const clearInput = document.getElementById("clear-input");
605
-
606
- clearInput.addEventListener("ui5-change", event => {
607
- const span = document.getElementById("clear-input-change-event-count");
608
-
609
- span.innerText = span.innerText ? parseInt(span.innerText) + 1 : 1;
610
- });
611
-
612
- clearInput.addEventListener("ui5-input", event => {
613
- const span = document.getElementById("clear-input-input-event-count");
614
-
615
- span.innerText = span.innerText ? parseInt(span.innerText) + 1 : 1;
616
- });
617
-
618
- const compactClearIconInput = document.getElementById("clear-input-compact");
619
-
620
- document.getElementById("clear-icon-disabled-toggle").addEventListener("click", event => {
621
- compactClearIconInput.toggleAttribute("disabled");
622
- });
623
-
624
- document.getElementById("clear-icon-readonly-toggle").addEventListener("click", event => {
625
- compactClearIconInput.toggleAttribute("readonly");
626
- });
627
-
628
- document.getElementById("myInput").addEventListener("ui5-suggestion-item-select", event => {
629
- const resultInput = document.getElementById("input-selection-event-test");
630
- resultInput.setAttribute("value", parseInt(resultInput.getAttribute("value") || 0) + 1);
631
- });
632
-
633
- const openPickerInput = document.getElementById("openPickerInput");
634
- let recentItems = [];
635
- openPickerInput.addEventListener("input", handleSuggestions);
636
- openPickerInput.addEventListener("suggestion-item-select", handleSelection);
637
- openPickerInput.addEventListener("click", handleHistory);
638
- openPickerInput.addEventListener("focus", handleHistory);
639
-
640
- function handleSuggestions() {
641
- fetch('https://dummyjson.com/users?select=firstName,lastName&limit=100')
642
- .then(res => res.json())
643
- .then(({users}) => {
644
- var value = openPickerInput.value;
645
- var suggestionItems = [];
646
-
647
- [].slice.call(openPickerInput.children).forEach(child => {
648
- openPickerInput.removeChild(child);
649
- });
650
-
651
- const recentItemsGroup = document.createElement("ui5-suggestion-group-item");
652
- recentItemsGroup.text = "Recent items";
653
- openPickerInput.appendChild(recentItemsGroup);
654
-
655
- if (recentItems.length) {
656
- recentItems.forEach(name => {
657
- const item = document.createElement("ui5-suggestion-item");
658
- item.icon = "employee";
659
- item.text = name;
660
- openPickerInput.appendChild(item);
661
- })
662
- } else {
663
- const noRecentItem = document.createElement("ui5-suggestion-item");
664
- noRecentItem.text = "No recent users";
665
- noRecentItem.type = "Inactive";
666
- openPickerInput.appendChild(noRecentItem);
667
- }
668
-
669
- if (value) {
670
- let currentItems = Array.from(openPickerInput.children).map(({text}) => text);
671
- suggestionItems = users
672
- .map(({ firstName, lastName }) => `${firstName} ${lastName}`)
673
- .filter(item => item.toUpperCase().indexOf(value.toUpperCase()) === 0 && !currentItems.includes(item));
674
- }
675
-
676
- if (suggestionItems.length) {
677
- const suggestionsGroup = document.createElement("ui5-suggestion-group-item");
678
- suggestionsGroup.text = "Suggestions";
679
- openPickerInput.appendChild(suggestionsGroup);
680
-
681
- suggestionItems.forEach(item => {
682
- var li = document.createElement("ui5-suggestion-item");
683
- li.icon = "employee";
684
- li.text = item;
685
- openPickerInput.appendChild(li);
686
- });
687
- }
688
- });
689
- }
690
-
691
- function handleSelection(event) {
692
- const name = event.detail.item.text;
693
- const idx = recentItems.indexOf(name);
694
- idx > -1 && recentItems.splice(idx, 1);
695
- recentItems.unshift(name);
696
- recentItems.length > 5 && recentItems.pop();
697
- }
698
-
699
- function handleHistory() {
700
- handleSuggestions();
701
- openPickerInput.openPicker();
702
- }
703
-
704
- document.getElementById("clear-button").addEventListener("click", event => {
705
- document.getElementById("input-change-1").value = "";
706
- });
707
-
708
- document.getElementById("input-change-1").addEventListener("ui5-change", (event) => {
709
- const changeCount = document.getElementById("input-change-count-1");
710
- changeCount.innerText = parseInt(changeCount.innerText || 0) + 1;
711
- });
712
-
713
- document.getElementById("input-change-2").addEventListener("ui5-change", (event) => {
714
- const changeCount = document.getElementById("input-change-count-2");
715
- changeCount.innerText = parseInt(changeCount.innerText || 0) + 1;
716
- });
717
-
718
- document.getElementById("input-change-3").addEventListener("ui5-change", (event) => {
719
- const changeCount = document.getElementById("input-change-value-3");
720
- changeCount.innerText = event.target.value;
721
- });
722
-
723
- document.getElementById("input-number35").addEventListener("ui5-input", event => {
724
- const resultInput = document.getElementById("input-number35_eventValue");
725
- resultInput.value = event.target.value;
726
- });
727
-
728
- document.getElementById("change-event-value").addEventListener("ui5-change", event => event.target.value = "");
729
- </script>
730
- </body>
731
- </html>