@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,658 +0,0 @@
1
- <!DOCTYPE html>
2
- <html class="popover1auto">
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>Popover</title>
8
-
9
- <script data-ui5-config type="application/json">
10
- {
11
- "language": "EN",
12
- "libs": "sap.ui.webc.main"
13
- }
14
- </script>
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
- <script>
23
- // delete Document.prototype.adoptedStyleSheets
24
- </script>
25
- <script type="module" crossorigin src="/assets/bundle.common.ad270030.js"></script>
26
- <link rel="stylesheet" href="/assets/Popover.366b9193.css">
27
- </head>
28
-
29
- <body class="popover2auto">
30
- <iframe id="clickThisIframe" src="//localhost:8080"></iframe>
31
-
32
- <ui5-button id="btn">Click me !</ui5-button>
33
-
34
- <ui5-popover id="pop" class="popover6auto" placement-type="Top" accessible-name="This popover is important">
35
- <div slot="header">
36
- <ui5-button id="first-focusable">I am in the header</ui5-button>
37
- </div>
38
-
39
- <ui5-list>
40
- <ui5-li>Hello</ui5-li>
41
- <ui5-li>World</ui5-li>
42
- <ui5-li>Again</ui5-li>
43
- </ui5-list>
44
-
45
- <br>
46
- <br>
47
-
48
- <ui5-button id="popbtn">Open Popover</ui5-button>
49
-
50
- <ui5-popover placement-type="Bottom" hide-arrow id="danger">
51
-
52
- <ui5-list>
53
- <ui5-li>Hello</ui5-li>
54
- <ui5-li>World</ui5-li>
55
- <ui5-li>Again</ui5-li>
56
- </ui5-list>
57
-
58
- <br>
59
- <br>
60
-
61
- <ui5-button id="bigDanger">Super Danger !</ui5-button>
62
-
63
- <ui5-popover id="bigDangerPop">
64
- <ui5-list>
65
- <ui5-li>Hello</ui5-li>
66
- <ui5-li>World</ui5-li>
67
- <ui5-li>Again</ui5-li>
68
- </ui5-list>
69
- </ui5-popover>
70
- </ui5-popover>
71
-
72
- <br>
73
- <br>
74
-
75
- <ui5-select>
76
- <ui5-option>Hello</ui5-option>
77
- <ui5-option>World</ui5-option>
78
- </ui5-select>
79
-
80
- <br>
81
- <br>
82
-
83
- <div slot="footer">
84
- <ui5-button>I am in the footer</ui5-button>
85
- </div>
86
- </ui5-popover>
87
-
88
- <br>
89
- <br>
90
- <ui5-button id="btnOpenWithAttr">Open with Attribute</ui5-button>
91
- <ui5-popover id="popoverAttr" opener="btnOpenWithAttr">
92
- <ui5-button id="btnCloseWithMethod">Close with Method</ui5-button>
93
- <ui5-button id="btnCloseWithAttr">Close with Attribute</ui5-button>
94
- </ui5-popover>
95
-
96
- <br>
97
- <br>
98
-
99
- <ui5-select>
100
- <ui5-option>Hello</ui5-option>
101
- <ui5-option>World</ui5-option>
102
- </ui5-select>
103
-
104
- <br>
105
- <br>
106
-
107
- <ui5-date-picker id="field"></ui5-date-picker>
108
-
109
- <br>
110
- <br>
111
-
112
- <ui5-multi-combobox>
113
- <ui5-cb-item text="Hello"></ui5-cb-item>
114
- <ui5-cb-item text="World"></ui5-cb-item>
115
- </ui5-multi-combobox>
116
-
117
- <br>
118
- <br>
119
-
120
- <ui5-select id="many-items"></ui5-select>
121
-
122
- <br>
123
- <br>
124
-
125
- <ui5-button id="big-popover-button">
126
- Open Big Popover
127
- </ui5-button>
128
-
129
- <ui5-popover placement-type="Bottom" id="big-popover" header-text="hello world">
130
- <ui5-list id="bigList"></ui5-list>
131
- </ui5-popover>
132
-
133
- <ui5-button id="acc-role-popover-button">
134
- Open Popover ACC role - AlertDialog
135
- </ui5-button>
136
-
137
- <ui5-button id="acc-role-popover-button2">
138
- Open Popover ACC role - None
139
- </ui5-button>
140
-
141
- <ui5-popover placement-type="Bottom" id="acc-role-popover" header-text="Test ACC world" accessible-role="AlertDialog">
142
- <ui5-list id="bigList2"></ui5-list>
143
- </ui5-popover>
144
-
145
- <ui5-popover placement-type="Bottom" id="acc-role-popover2" header-text="Test ACC world" accessible-role="None">
146
- <ui5-list id="bigList3"></ui5-list>
147
- </ui5-popover>
148
-
149
- <ui5-button id="btnPopModal">Opens modal popover!</ui5-button>
150
-
151
- <ui5-popover id="modalPopover" modal header-text="Modal popover">
152
- <ui5-list>
153
- <ui5-li>Hello</ui5-li>
154
- <ui5-li>Again</ui5-li>
155
- <ui5-li>Wooooooooooooooooooooooooooooorld</ui5-li>
156
- </ui5-list>
157
-
158
- <div slot="footer">
159
- <ui5-button id="modalPopoverClose">Close</ui5-button>
160
- </div>
161
- </ui5-popover>
162
-
163
- <ui5-button id="btnPopModalNoLayer">Opens modal popover with no block layer!</ui5-button>
164
-
165
- <ui5-popover id="modalPopoverNoLayer" modal header-text="Modal popover" hide-backdrop>
166
- <ui5-list>
167
- <ui5-li>Hello</ui5-li>
168
- <ui5-li>Again</ui5-li>
169
- <ui5-li>Wooooooooooooooooooooooooooooorld</ui5-li>
170
- </ui5-list>
171
-
172
- <div slot="footer">
173
- <ui5-button id="modalPopoverNoLayerClose">Close</ui5-button>
174
- </div>
175
- </ui5-popover>
176
-
177
- <ui5-button id="btnPopFocus">Opens popover with initial focus!</ui5-button>
178
-
179
- <ui5-popover id="popFocus" initial-focus="focusMe" header-text="Popover header">
180
- <ui5-list>
181
- <ui5-li>Hello</ui5-li>
182
- <ui5-li>Again</ui5-li>
183
- <ui5-li>Wold</ui5-li>
184
- </ui5-list>
185
-
186
- <div slot="footer">
187
- <ui5-button id="focusMe">Close</ui5-button>
188
- </div>
189
- </ui5-popover>
190
-
191
- <br>
192
- <br>
193
- <ui5-title>Test open popup and hide opener</ui5-title>
194
- <ui5-button id="btnQuickViewCardOpener">Open popup and hide myself</ui5-button>
195
- <ui5-button id="btnMoveFocus">focusable element</ui5-button>
196
- <br>
197
- <br>
198
- <ui5-title>placement-type="Right" (default)</ui5-title>
199
- <p>No space on the Right, try Left, Bottom, Top</p>
200
- <ui5-button id="btnFullWidth" class="popover7auto">Click me !</ui5-button>
201
- <ui5-button id="btnNormalWidth">Click me !</ui5-button>
202
- <br>
203
- <br>
204
- <ui5-title>placement-type="Right" (default) and allow-target-overlap=true </ui5-title>
205
- <p>No space on the right, try Left, Bottom, Top and if nothing works, the target will be overlapped</p>
206
- <ui5-button id="btnFullWidthTargetOverlap" class="popover7auto">Click me !</ui5-button>
207
- <ui5-button id="btnNormalWidthTargetOverlap">Click me !</ui5-button>
208
-
209
- <br>
210
- <br>
211
- <ui5-title>placement-type="Left"</ui5-title>
212
- <p>No space on the Left, try Right, Bottom, Top</p>
213
- <ui5-button id="btnFullWidthLeft" class="popover7auto">Click me !</ui5-button>
214
- <div class="popover13auto">
215
- <ui5-button id="btnNormalWidthLeft">Click me !</ui5-button>
216
- </div>
217
-
218
- <br>
219
- <br>
220
- <ui5-title>placement-type="Left" and allow-target-overlap=true</ui5-title>
221
- <p>No space on the right, try Roght, Bottom, Top and if nothing works, the target will be overlapped</p>
222
- <ui5-button id="btnFullWidthLeftTargetOverlap" class="popover7auto">Click me !</ui5-button>
223
- <div class="popover13auto">
224
- <ui5-button id="btnNormalWidthLeftTargetOverlap">Click me !</ui5-button>
225
- </div>
226
-
227
- <br>
228
- <br>
229
- <ui5-title>placement-type="Top"</ui5-title>
230
- <ui5-button id="btnFullWidthTop" class="popover7auto">Click me !</ui5-button>
231
-
232
- <br>
233
- <br>
234
- <ui5-title>placement-type="Bottom"</ui5-title>
235
- <ui5-button id="btnFullWidthBottom" class="popover7auto">Click me !</ui5-button>
236
-
237
- <ui5-popover header-text="My Heading" id="popFullWidth" class="popover6auto">
238
- <div slot="header">
239
- <ui5-button id="first-focusable">I am in the header</ui5-button>
240
- </div>
241
-
242
- <ui5-list>
243
- <ui5-li>Hello</ui5-li>
244
- <ui5-li>World</ui5-li>
245
- <ui5-li>Again</ui5-li>
246
- </ui5-list>
247
- </ui5-popover>
248
-
249
- <ui5-popover allow-target-overlap header-text="My Heading" id="popFullWidthTargetOverlap" class="popover6auto" >
250
- <div slot="header">
251
- <ui5-button id="first-focusable">I am in the header</ui5-button>
252
- </div>
253
-
254
- <ui5-list>
255
- <ui5-li>Hello</ui5-li>
256
- <ui5-li>World</ui5-li>
257
- <ui5-li>Again</ui5-li>
258
- </ui5-list>
259
- </ui5-popover>
260
-
261
-
262
- <ui5-popover header-text="My Heading" id="popFullWidthLeft" class="popover6auto" placement-type="Left">
263
- <div slot="header">
264
- <ui5-button id="first-focusable">I am in the header</ui5-button>
265
- </div>
266
-
267
- <ui5-list>
268
- <ui5-li>Hello</ui5-li>
269
- <ui5-li>World</ui5-li>
270
- <ui5-li>Again</ui5-li>
271
- </ui5-list>
272
- </ui5-popover>
273
-
274
- <ui5-popover header-text="My Heading" id="popFullWidthLeftTargetOverlap" class="popover6auto" placement-type="Left" allow-target-overlap>
275
- <div slot="header">
276
- <ui5-button id="first-focusable">I am in the header</ui5-button>
277
- </div>
278
-
279
- <ui5-list>
280
- <ui5-li>Hello</ui5-li>
281
- <ui5-li>World</ui5-li>
282
- <ui5-li>Again</ui5-li>
283
- </ui5-list>
284
- </ui5-popover>
285
-
286
-
287
- <ui5-popover header-text="My Heading" id="popFullWidthTop" class="popover6auto" placement-type="Top">
288
- <div slot="header">
289
- <ui5-button id="first-focusable">I am in the header</ui5-button>
290
- </div>
291
-
292
- <ui5-list>
293
- <ui5-li>Hello</ui5-li>
294
- <ui5-li>World</ui5-li>
295
- <ui5-li>Again</ui5-li>
296
- </ui5-list>
297
- </ui5-popover>
298
-
299
- <ui5-popover header-text="My Heading" id="popFullWidthBottom" class="popover6auto" placement-type="Bottom">
300
- <div slot="header">
301
- <ui5-button id="first-focusable">I am in the header</ui5-button>
302
- </div>
303
-
304
- <ui5-list>
305
- <ui5-li>Hello</ui5-li>
306
- <ui5-li>World</ui5-li>
307
- <ui5-li>Again</ui5-li>
308
- </ui5-list>
309
- </ui5-popover>
310
-
311
-
312
- <ui5-popover id="quickViewCard" placement-type="Right" height="500px">
313
- <ui5-input id="searchInput" class="popover6auto">
314
- <ui5-icon id="searchIcon" slot="icon" name="search"></ui5-icon>
315
- </ui5-input>
316
- <ui5-list class="popover8auto">
317
- <ui5-li-groupheader>Actions</ui5-li-groupheader>
318
- <ui5-li>Delete Product</ui5-li>
319
- <ui5-li>Audit Log Settings</ui5-li>
320
- <ui5-li>OData API Audit</ui5-li>
321
- <ui5-li-groupheader>Products</ui5-li-groupheader>
322
- <ui5-li image="./img/HT-1010.jpg" icon="navigation-right-arrow" additional-text="Re-stock" description="#12331232131" additional-text-state="Error">Laptop Lenovo</ui5-li>
323
- <ui5-li image="./img/HT-1022.jpg" icon="navigation-right-arrow" additional-text="Re-stock" description="#12331232131" additional-text-state="Error">IPhone 3</ui5-li>
324
- <ui5-li image="./img/HT-1030.jpg" icon-end icon="navigation-right-arrow" description="#12331232131" additional-text="Reuqired" additional-text-state="Error">HP Monitor 24</ui5-li>
325
- </ui5-list>
326
- </ui5-popover>
327
-
328
-
329
- <div class="popover11auto">
330
- <p>Right-aligned Popover, wider than button, arrow should be centered on the button</p>
331
- <ui5-button id="btnOpenXRightWide">Open</ui5-button>
332
- </div>
333
-
334
- <ui5-popover id="popXRightWide" placement-type="Bottom" horizontal-align="Right">
335
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni architecto tenetur quia nam reprehenderit quas eveniet possimus similique quisquam culpa distinctio ex doloremque molestiae maxime sed harum, in exercitationem! Incidunt?
336
- </ui5-popover>
337
-
338
- <br>
339
- <br>
340
-
341
- <ui5-button id="firstBtn">First button</ui5-button>
342
- <ui5-button id="secondBtn">Second button</ui5-button>
343
- <ui5-popover id="popNoFocusableContent" placement-type="Bottom">Sample text for the ui5-popover</ui5-popover>
344
-
345
- <br>
346
- <br>
347
-
348
- <div class="popover12auto">
349
- <ui5-button id="btnOpenDynamic" icon="overflow"></ui5-button>
350
- </div>
351
-
352
- <br>
353
-
354
- <ui5-button id="btnOpenPopoverWithDiv">Open Popover with div Inside</ui5-button>
355
-
356
- <ui5-popover id="popWithDiv" header-text="Newsletter subscription" modal>
357
- <div id="divContent">I'm a div, which can't get focus. Click me and see where focus goes.</div>
358
- <div slot="footer" class="popover-footer">
359
- <ui5-button design="Emphasized">Subscribe</ui5-button>
360
- </div>
361
- </ui5-popover>
362
-
363
- <div class="popover13auto">
364
- <ui5-button id="btnRightEdge">Popover on right edge of screen</ui5-button>
365
- </div>
366
-
367
- <ui5-popover header-text="Header" id="popoverRightEdge" placement-type="Top">
368
- <ui5-label>Input field: </ui5-label>
369
- <ui5-input></ui5-input>
370
- </ui5-popover>
371
-
372
- <br>
373
- <br>
374
-
375
- <ui5-button id="btnAccNameRef">Popover with accessibleNameRef</ui5-button>
376
- <ui5-label id="lblAccNameRef">Some label</ui5-label>
377
- <ui5-popover id="popAccNameRef" accessible-name-ref="lblAccNameRef" header-text="Header text">
378
- <span>Hello world</span>
379
- </ui5-popover>
380
-
381
- <br>
382
- <br>
383
-
384
- <ui5-button id="openChainedPopover1">Open chained popover 1</ui5-button>
385
- <ui5-popover id="chainedPopover1">
386
- Chained Popover 1
387
- <ui5-list id="openChainedPopover2List">
388
- <ui5-li>Open chained popover 2</ui5-li>
389
- </ui5-list>
390
- </ui5-popover>
391
- <ui5-popover id="chainedPopover2" placement-type="Bottom">
392
- Chained Popover 2
393
- <ui5-button id="closeChainedPopover2">Close chained popover 2</ui5-button>
394
- </ui5-popover>
395
-
396
- <!-- Sample when Popover is created in order different than "header, content, footer" sequence -->
397
- <ui5-button id="popoverFocusButton">Dialog Focus</ui5-button>
398
- <ui5-popover id="popoverFocus">
399
- <div slot="header">Header text</div>
400
-
401
- <div slot="footer" class="dialog-footer">
402
- <div style="flex: 1"></div>
403
- <ui5-button id="closeButton" design="Emphasized">Close</ui5-button>
404
- </div>
405
-
406
- <span>Some message</span>
407
- <ui5-button id="fistButtonInPopover">Confirm</ui5-button>
408
- </ui5-popover>
409
-
410
- <h2>Horizontal Align</h2>
411
- <div>
412
- <ui5-radio-button name="horizontalAlign" checked text="Center"></ui5-radio-button>
413
- <ui5-radio-button name="horizontalAlign" text="Stretch"></ui5-radio-button>
414
- <ui5-radio-button name="horizontalAlign" text="Left"></ui5-radio-button>
415
- <ui5-radio-button name="horizontalAlign" text="Right"></ui5-radio-button>
416
- </div>
417
- <div>
418
- <ui5-checkbox id="rtlCb" text="rtl"></ui5-checkbox>
419
- </div>
420
-
421
- <div id="horizontalAlignContainer">
422
- <div id="targetOpener" class="popover10auto">
423
- <span>Target opener</span>
424
- </div>
425
- <ui5-popover id="popoverHorizontalAlign" placement-type="Top">
426
- <span></span>
427
- </ui5-popover>
428
- </div>
429
- <ui5-button id="horizontalAlignBtn">Open horizontally aligned popover</ui5-button>
430
-
431
- <br>
432
- <br>
433
- <ui5-button id="createAndRemove">Create a popover and then remove it</ui5-button>
434
- <span id="createAndRemoveResult" style="display: none;"></span>
435
- <br>
436
- <br>
437
-
438
- <script>
439
- btn.addEventListener("click", function (event) {
440
- pop.showAt(btn);
441
- });
442
-
443
- btnOpenWithAttr.addEventListener("click", function () {
444
- popoverAttr.setAttribute("open", "");
445
- });
446
-
447
- btnCloseWithMethod.addEventListener("click", function () {
448
- popoverAttr.close();
449
- });
450
-
451
- btnCloseWithAttr.addEventListener("click", function () {
452
- popoverAttr.removeAttribute("open");
453
- });
454
-
455
- popbtn.addEventListener("click", function (event) {
456
- danger.showAt(popbtn);
457
- });
458
-
459
- bigDanger.addEventListener("click", function (event) {
460
- bigDangerPop.showAt(bigDanger);
461
- });
462
-
463
- btnPopModal.addEventListener("click", function (event) {
464
- modalPopover.showAt(btnPopModal);
465
- });
466
-
467
- btnPopModalNoLayer.addEventListener("click", function() {
468
- modalPopoverNoLayer.showAt(btnPopModalNoLayer);
469
- });
470
-
471
- modalPopoverNoLayerClose.addEventListener("click", function() {
472
- modalPopoverNoLayer.close();
473
- });
474
-
475
- modalPopoverClose.addEventListener("click", function (event) {
476
- modalPopover.close();
477
- });
478
-
479
- btnPopFocus.addEventListener("click", function (event) {
480
- popFocus.showAt(btnPopFocus);
481
- });
482
-
483
- document.getElementById("many-items").innerHTML = [].map.call("Ullamco ea ad fugiat enim elit dolore ullamco ad magna excepteur cupidatat.", function (item, index) {
484
- return "<ui5-option>" + item + "</ui5-option>";
485
- }).join("");
486
-
487
- document.getElementById("bigList").innerHTML = [].map.call("Ullamco ea ad fugiat enim elit dolore ullamco ad magna excepteur cupidatat.", function (item, index) {
488
- return "<ui5-li>" + item + "</ui5-li>";
489
- }).join("");
490
-
491
- document.getElementById("bigList2").innerHTML = [].map.call("Ullamco ea ad fugiat enim elit dolore ullamco ad magna excepteur cupidatat.", function (item, index) {
492
- return "<ui5-li>" + item + "</ui5-li>";
493
- }).join("");
494
-
495
- document.getElementById("bigList3").innerHTML = [].map.call("Ullamco ea ad fugiat enim elit dolore ullamco ad magna excepteur cupidatat.", function (item, index) {
496
- return "<ui5-li>" + item + "</ui5-li>";
497
- }).join("");
498
-
499
- document.getElementById("big-popover-button").addEventListener("click", function (event) {
500
- document.getElementById("big-popover").showAt(event.target);
501
- });
502
-
503
- document.getElementById("acc-role-popover-button").addEventListener("click", function (event) {
504
- document.getElementById("acc-role-popover").showAt(event.target);
505
- });
506
-
507
- document.getElementById("acc-role-popover-button2").addEventListener("click", function (event) {
508
- document.getElementById("acc-role-popover2").showAt(event.target);
509
- });
510
-
511
- btnFullWidth.addEventListener("click", function (event) {
512
- popFullWidth.showAt(btnFullWidth);
513
- });
514
- btnNormalWidth.addEventListener("click", function (event) {
515
- popFullWidth.showAt(btnNormalWidth);
516
- });
517
-
518
- btnFullWidthTargetOverlap.addEventListener("click", function (event) {
519
- popFullWidthTargetOverlap.showAt(btnFullWidthTargetOverlap);
520
- });
521
- btnNormalWidthTargetOverlap.addEventListener("click", function (event) {
522
- popFullWidthTargetOverlap.showAt(btnNormalWidthTargetOverlap);
523
- });
524
-
525
- btnFullWidthLeft.addEventListener("click", function (event) {
526
- popFullWidthLeft.showAt(btnFullWidthLeft);
527
- });
528
- btnNormalWidthLeft.addEventListener("click", function (event) {
529
- popFullWidthLeft.showAt(btnNormalWidthLeft);
530
- });
531
-
532
- btnFullWidthLeftTargetOverlap.addEventListener("click", function (event) {
533
- popFullWidthLeftTargetOverlap.showAt(btnFullWidthLeftTargetOverlap);
534
- });
535
- btnNormalWidthLeftTargetOverlap.addEventListener("click", function (event) {
536
- popFullWidthLeftTargetOverlap.showAt(btnNormalWidthLeftTargetOverlap);
537
- });
538
-
539
- btnFullWidthTop.addEventListener("click", function (event) {
540
- popFullWidthTop.showAt(btnFullWidthTop);
541
- });
542
-
543
- btnFullWidthBottom.addEventListener("click", function (event) {
544
- popFullWidthBottom.showAt(btnFullWidthBottom);
545
- });
546
-
547
- btnQuickViewCardOpener.addEventListener("click", function (event) {
548
- quickViewCard.showAt(btnQuickViewCardOpener);
549
-
550
- btnQuickViewCardOpener.setAttribute("hidden", true);
551
- })
552
-
553
- firstBtn.addEventListener("click", function (event) {
554
- popNoFocusableContent.innerHTML = "First button is clicked";
555
- popNoFocusableContent.showAt(event.target);
556
- });
557
-
558
- secondBtn.addEventListener("click", function (event) {
559
- popNoFocusableContent.innerHTML = "Second button is clicked";
560
- popNoFocusableContent.showAt(event.target);
561
- });
562
-
563
- btnOpenDynamic.addEventListener("click", function () {
564
- var popover = document.createElement("ui5-popover"),
565
- button = document.createElement("ui5-button");
566
-
567
- button.textContent = "Focusable element";
568
- popover.appendChild(button);
569
- popover.setAttribute("id", "dynamic-popover");
570
- popover.setAttribute("placement-type", "Bottom");
571
-
572
- document.body.appendChild(popover);
573
-
574
- popover.showAt(btnOpenDynamic);
575
- });
576
-
577
- btnOpenPopoverWithDiv.addEventListener("click", function (event) {
578
- popWithDiv.showAt(event.target);
579
- });
580
-
581
- btnOpenXRightWide.addEventListener("click", function () {
582
- popXRightWide.showAt(btnOpenXRightWide);
583
- });
584
-
585
- btnRightEdge.addEventListener("click", function () {
586
- popoverRightEdge.showAt(btnRightEdge);
587
- });
588
-
589
- btnAccNameRef.addEventListener("click", function () {
590
- popAccNameRef.showAt(btnAccNameRef);
591
- });
592
-
593
- openChainedPopover1.addEventListener("click", function () {
594
- chainedPopover1.showAt(openChainedPopover1);
595
- });
596
-
597
- openChainedPopover2List.addEventListener("ui5-item-click", function () {
598
- chainedPopover1.close();
599
- chainedPopover2.showAt(openChainedPopover1);
600
- });
601
-
602
- closeChainedPopover2.addEventListener("click", function () {
603
- chainedPopover2.close();
604
- });
605
-
606
- chainedPopover2.addEventListener("ui5-after-close", function () {
607
- var toast = document.createElement("ui5-toast");
608
- toast.appendChild(document.createTextNode("Closed chained popover 2"));
609
- document.body.appendChild(toast);
610
- toast.show();
611
- });
612
-
613
- popoverFocusButton.addEventListener("click", function () {
614
- popoverFocus.showAt(popoverFocusButton);
615
- });
616
-
617
- horizontalAlignBtn.addEventListener("click", function () {
618
- var selectedAlign = document.querySelector("[ui5-radio-button][name='horizontalAlign'][checked]").text;
619
-
620
- popoverHorizontalAlign.horizontalAlign = selectedAlign;
621
- popoverHorizontalAlign.firstElementChild.innerText = "Horizontal alignment is: " + selectedAlign;
622
- popoverHorizontalAlign.showAt(targetOpener);
623
- });
624
-
625
- rtlCb.addEventListener("ui5-change", function (e) {
626
- horizontalAlignContainer.setAttribute("dir", rtlCb.checked ? "rtl" : "")
627
- });
628
-
629
- createAndRemove.addEventListener("click", function () {
630
- var pop = document.createElement("ui5-popover");
631
-
632
- pop.setAttribute("open", true);
633
- pop.setAttribute("opener", "createAndRemove");
634
-
635
- var inp = document.createElement("ui5-input");
636
- inp.setAttribute("slot", "header")
637
- pop.appendChild(inp)
638
-
639
- document.body.appendChild(pop)
640
-
641
- pop.addEventListener("ui5-before-open", async () => {
642
- var applyFocusResult = pop.applyFocus();
643
- pop.remove();
644
-
645
- try {
646
- await applyFocusResult;
647
- createAndRemoveResult.innerText = "No uncaught errors";
648
- } catch (e) {
649
- createAndRemoveResult.innerText = e.toString();
650
- }
651
- createAndRemoveResult.style.display = "";
652
- })
653
- });
654
-
655
- </script>
656
- </body>
657
-
658
- </html>