@ui5/webcomponents 1.9.3 → 1.9.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 (207) hide show
  1. package/.dev-server-port +1 -0
  2. package/CHANGELOG.md +11 -0
  3. package/LICENSE.txt +201 -0
  4. package/dist/AvatarGroup.js +2 -19
  5. package/dist/assets/test/pages/72override.html.dda35518.css +1 -0
  6. package/dist/assets/test/pages/AnimanitionOff.html.b7566ecc.css +1 -0
  7. package/dist/assets/test/pages/Avatar.html.62cc0573.css +1 -0
  8. package/dist/assets/test/pages/AvatarGroup.html.20647fe1.css +1 -0
  9. package/dist/assets/test/pages/Badge.html.bcc1c9a3.css +1 -0
  10. package/dist/assets/test/pages/Breadcrumbs.html.5753069f.css +1 -0
  11. package/dist/assets/test/pages/BusyIndicator.html.ce95c23c.css +1 -0
  12. package/dist/assets/test/pages/Button.html.957848f0.css +1 -0
  13. package/dist/assets/test/pages/Calendar.html.9ff42e30.css +1 -0
  14. package/dist/assets/test/pages/Card.html.8c5e4756.css +1 -0
  15. package/dist/assets/test/pages/Carousel.html.fcdd32a7.css +1 -0
  16. package/dist/assets/test/pages/CheckBox.html.08ae630d.css +1 -0
  17. package/dist/assets/test/pages/ColorPalette.html.8c4c4ca3.css +1 -0
  18. package/dist/assets/test/pages/ColorPalettePopover.html.727f90e2.css +1 -0
  19. package/dist/assets/test/pages/ColorPicker.html.cc0c0d29.css +1 -0
  20. package/dist/assets/test/pages/ComboBox.html.14fbc3aa.css +1 -0
  21. package/dist/assets/test/pages/ComboBox.html.2c2a9927.js +1 -0
  22. package/dist/assets/test/pages/Components.html.b41617c5.css +1 -0
  23. package/dist/assets/test/pages/CoreControls.html.dabd050c.css +1 -0
  24. package/dist/assets/test/pages/CoreControls_exp.html.46ab2dc9.css +1 -0
  25. package/dist/assets/test/pages/CustomCSS.html.4d6e9b1f.css +1 -0
  26. package/dist/assets/test/pages/DatePicker.html.e667d0b8.css +1 -0
  27. package/dist/assets/test/pages/DatePicker_test_page.html.882ab55e.css +1 -0
  28. package/dist/assets/test/pages/DateRangePicker.html.1b5072fd.css +1 -0
  29. package/dist/assets/test/pages/DateTimePicker.html.eff0e2e0.css +1 -0
  30. package/dist/assets/test/pages/DayPicker.html.5700622a.css +1 -0
  31. package/dist/assets/test/pages/Dialog.html.329cb1dc.css +1 -0
  32. package/dist/assets/test/pages/DialogLifecycle.html.e4ac6ba2.css +1 -0
  33. package/dist/assets/test/pages/DialogSemantic.html.f61ec13d.css +1 -0
  34. package/dist/assets/test/pages/DurationPicker.html.92ecf486.css +1 -0
  35. package/dist/assets/test/pages/Eventing.html.cd934528.css +1 -0
  36. package/dist/assets/test/pages/FileUploader.html.30b8cbbd.css +1 -0
  37. package/dist/assets/test/pages/FormSupport.html.4e02207b.css +1 -0
  38. package/dist/assets/test/pages/HCB.html.d458990b.css +1 -0
  39. package/dist/assets/test/pages/Icon.html.87536fdd.js +1 -0
  40. package/dist/assets/test/pages/Icon.html.be3b1acc.css +1 -0
  41. package/dist/assets/test/pages/Input.html.85ce57b4.css +1 -0
  42. package/dist/assets/test/pages/Input_quickview.html.86df3de3.css +1 -0
  43. package/dist/assets/test/pages/InputsAlignment.html.5c5593c2.css +1 -0
  44. package/dist/assets/test/pages/ItemNavigation.html.f5758aae.css +1 -0
  45. package/dist/assets/test/pages/Kitchen.html.d0d90fc6.css +1 -0
  46. package/dist/assets/test/pages/Kitchen.openui5.html.910e3d52.css +1 -0
  47. package/dist/assets/test/pages/Label.html.7c2bcd8f.js +4 -0
  48. package/dist/assets/test/pages/Label.html.e994dc8e.css +1 -0
  49. package/dist/assets/test/pages/Link.html.d4c480d9.css +1 -0
  50. package/dist/assets/test/pages/List.html.65a3c4b3.css +1 -0
  51. package/dist/assets/test/pages/ListGrowing_Button.html.49bbaf80.css +1 -0
  52. package/dist/assets/test/pages/ListGrowing_Scroll.html.841dd1ed.css +1 -0
  53. package/dist/assets/test/pages/List_keyboard_support.html.a7297baf.css +1 -0
  54. package/dist/assets/test/pages/List_test_page.html.356d4e16.css +1 -0
  55. package/dist/assets/test/pages/LitKeyFunction.html.f3f9d649.css +1 -0
  56. package/dist/assets/test/pages/MemoryLeak.html.35d77e5e.css +1 -0
  57. package/dist/assets/test/pages/Menu.html.a758a26d.css +1 -0
  58. package/dist/assets/test/pages/MessagePage.html.30ffc162.css +1 -0
  59. package/dist/assets/test/pages/MessageStrip.html.8c2c85d5.css +1 -0
  60. package/dist/assets/test/pages/MultiComboBox.html.f06e18eb.css +1 -0
  61. package/dist/assets/test/pages/MultiInput.html.1c75cdc2.css +1 -0
  62. package/dist/assets/test/pages/MultiInput_Suggestions.html.79cd0348.css +1 -0
  63. package/dist/assets/test/pages/OpenUI5.html.cf1daa05.css +1 -0
  64. package/dist/assets/test/pages/Panel.html.399730d1.css +1 -0
  65. package/dist/assets/test/pages/Popover.html.87315ecf.css +1 -0
  66. package/dist/assets/test/pages/PopoverArrowBounds.html.c1e5feb1.css +1 -0
  67. package/dist/assets/test/pages/Popups.html.80f57dca.js +1 -0
  68. package/dist/assets/test/pages/Popups.html.bb021765.css +1 -0
  69. package/dist/assets/test/pages/ProgressIndicator.html.d61b0c53.css +1 -0
  70. package/dist/assets/test/pages/RTL.html.dbeca857.css +1 -0
  71. package/dist/assets/test/pages/RadioButton.html.ccfd1850.css +1 -0
  72. package/dist/assets/test/pages/RangeSlider.html.437a9174.css +1 -0
  73. package/dist/assets/test/pages/RatingIndicator.html.737cd73b.css +1 -0
  74. package/dist/assets/test/pages/ResizeHandler.html.ed7c5d20.css +1 -0
  75. package/dist/assets/test/pages/ResponsivePopover.html.6f67ae07.css +1 -0
  76. package/dist/assets/test/pages/SegmentedButton.html.8678479b.css +1 -0
  77. package/dist/assets/test/pages/Select.html.9c98a470.css +1 -0
  78. package/dist/assets/test/pages/Simple.html.8f2ddb30.css +1 -0
  79. package/dist/assets/test/pages/Slider.html.8ea10965.css +1 -0
  80. package/dist/assets/test/pages/SplitButton.html.5c992973.css +1 -0
  81. package/dist/assets/test/pages/StepInput.html.f22c112d.css +1 -0
  82. package/dist/assets/test/pages/Switch.html.a4f3262f.css +1 -0
  83. package/dist/assets/test/pages/TabContainer.html.7f2ade15.css +1 -0
  84. package/dist/assets/test/pages/Table-perf-pure.html.fce52e4b.css +1 -0
  85. package/dist/assets/test/pages/Table-perf.html.88634378.css +1 -0
  86. package/dist/assets/test/pages/Table.html.c43386f4.css +1 -0
  87. package/dist/assets/test/pages/Table2.html.aca0c111.css +1 -0
  88. package/dist/assets/test/pages/TableAllPopin.html.ad586de4.css +1 -0
  89. package/dist/assets/test/pages/TableCustomStyling.html.a85167d6.css +1 -0
  90. package/dist/assets/test/pages/TableGrouping.html.602ae2ad.css +1 -0
  91. package/dist/assets/test/pages/TableGrowingWithButton.html.5a39b2bf.css +1 -0
  92. package/dist/assets/test/pages/TableGrowingWithScroll.html.8ef93d31.css +1 -0
  93. package/dist/assets/test/pages/TableSelection.html.dba2d678.css +1 -0
  94. package/dist/assets/test/pages/TextArea.html.f8e10fd6.css +1 -0
  95. package/dist/assets/test/pages/TimePicker.html.9a4bb300.css +1 -0
  96. package/dist/assets/test/pages/TimeSelection.html.8ad57759.css +1 -0
  97. package/dist/assets/test/pages/Title.html.7bb51811.css +1 -0
  98. package/dist/assets/test/pages/Toast.html.47a93be2.css +1 -0
  99. package/dist/assets/test/pages/ToggleButton.html.3b7dbb8c.css +1 -0
  100. package/dist/assets/test/pages/Tree.html.74fe2a1d.css +1 -0
  101. package/dist/assets/test/pages/WheelSlider_Test_Page.html.8a9a5e49.css +1 -0
  102. package/dist/assets/test/pages/form.html.f0f82118.css +1 -0
  103. package/dist/assets/test/pages/i18n-defaultLang.html.b9d79c6b.css +1 -0
  104. package/dist/assets/test/pages/i18n-demo.html.c6751b5c.css +1 -0
  105. package/dist/test/pages/72override.html +33 -0
  106. package/dist/test/pages/AnimanitionOff.html +52 -0
  107. package/dist/test/pages/Avatar.html +265 -0
  108. package/dist/test/pages/AvatarGroup.html +376 -0
  109. package/dist/test/pages/Badge.html +75 -0
  110. package/dist/test/pages/Breadcrumbs.html +239 -0
  111. package/dist/test/pages/BusyIndicator.html +255 -0
  112. package/dist/test/pages/Button.html +267 -0
  113. package/dist/test/pages/Calendar.html +96 -0
  114. package/dist/test/pages/Card.html +347 -0
  115. package/dist/test/pages/Carousel.html +574 -0
  116. package/dist/test/pages/CheckBox.html +76 -0
  117. package/dist/test/pages/ColorPalette.html +126 -0
  118. package/dist/test/pages/ColorPalettePopover.html +141 -0
  119. package/dist/test/pages/ColorPicker.html +66 -0
  120. package/dist/test/pages/ComboBox.html +279 -0
  121. package/dist/test/pages/Components.html +106 -0
  122. package/dist/test/pages/CoreControls.html +203 -0
  123. package/dist/test/pages/CoreControls_exp.html +203 -0
  124. package/dist/test/pages/CustomCSS.html +55 -0
  125. package/dist/test/pages/DatePicker.html +193 -0
  126. package/dist/test/pages/DatePicker_test_page.html +97 -0
  127. package/dist/test/pages/DateRangePicker.html +64 -0
  128. package/dist/test/pages/DateTimePicker.html +190 -0
  129. package/dist/test/pages/DayPicker.html +37 -0
  130. package/dist/test/pages/Dialog.html +667 -0
  131. package/dist/test/pages/DialogLifecycle.html +62 -0
  132. package/dist/test/pages/DialogSemantic.html +59 -0
  133. package/dist/test/pages/DurationPicker.html +76 -0
  134. package/dist/test/pages/Eventing.html +33 -0
  135. package/dist/test/pages/FileUploader.html +138 -0
  136. package/dist/test/pages/FormSupport.html +59 -0
  137. package/dist/test/pages/HCB.html +45 -0
  138. package/dist/test/pages/Icon.html +257 -0
  139. package/dist/test/pages/Icon_custom.html +26 -0
  140. package/dist/test/pages/Input.html +722 -0
  141. package/dist/test/pages/InputFieldMinWidth.html +72 -0
  142. package/dist/test/pages/Input_quickview.html +204 -0
  143. package/dist/test/pages/InputsAlignment.html +131 -0
  144. package/dist/test/pages/InputsLazyLoading.html +244 -0
  145. package/dist/test/pages/ItemNavigation.html +94 -0
  146. package/dist/test/pages/Kitchen.html +638 -0
  147. package/dist/test/pages/Kitchen.openui5.html +570 -0
  148. package/dist/test/pages/Label.html +161 -0
  149. package/dist/test/pages/Link.html +201 -0
  150. package/dist/test/pages/List.html +432 -0
  151. package/dist/test/pages/ListGrowing_Button.html +64 -0
  152. package/dist/test/pages/ListGrowing_Scroll.html +93 -0
  153. package/dist/test/pages/List_keyboard_support.html +132 -0
  154. package/dist/test/pages/List_test_page.html +334 -0
  155. package/dist/test/pages/LitKeyFunction.html +40 -0
  156. package/dist/test/pages/MemoryLeak.html +78 -0
  157. package/dist/test/pages/Menu.html +79 -0
  158. package/dist/test/pages/MessagePage.html +39 -0
  159. package/dist/test/pages/MessageStrip.html +55 -0
  160. package/dist/test/pages/MultiComboBox.html +446 -0
  161. package/dist/test/pages/MultiInput.html +409 -0
  162. package/dist/test/pages/MultiInput_Suggestions.html +161 -0
  163. package/dist/test/pages/OpenUI5.html +83 -0
  164. package/dist/test/pages/Panel.html +227 -0
  165. package/dist/test/pages/Popover.html +614 -0
  166. package/dist/test/pages/PopoverArrowBounds.html +54 -0
  167. package/dist/test/pages/Popups.html +133 -0
  168. package/dist/test/pages/ProgressIndicator.html +151 -0
  169. package/dist/test/pages/RTL.html +118 -0
  170. package/dist/test/pages/RadioButton.html +201 -0
  171. package/dist/test/pages/RangeSlider.html +69 -0
  172. package/dist/test/pages/RatingIndicator.html +97 -0
  173. package/dist/test/pages/ResizeHandler.html +74 -0
  174. package/dist/test/pages/ResponsivePopover.html +204 -0
  175. package/dist/test/pages/SegmentedButton.html +116 -0
  176. package/dist/test/pages/Select.html +240 -0
  177. package/dist/test/pages/Simple.html +34 -0
  178. package/dist/test/pages/Slider.html +79 -0
  179. package/dist/test/pages/SplitButton.html +100 -0
  180. package/dist/test/pages/StepInput.html +164 -0
  181. package/dist/test/pages/Switch.html +88 -0
  182. package/dist/test/pages/TabContainer.html +876 -0
  183. package/dist/test/pages/Table-perf-pure.html +73 -0
  184. package/dist/test/pages/Table-perf.html +76 -0
  185. package/dist/test/pages/Table.html +2808 -0
  186. package/dist/test/pages/Table2.html +53 -0
  187. package/dist/test/pages/TableAllPopin.html +205 -0
  188. package/dist/test/pages/TableCustomStyling.html +89 -0
  189. package/dist/test/pages/TableGrouping.html +109 -0
  190. package/dist/test/pages/TableGrowingWithButton.html +805 -0
  191. package/dist/test/pages/TableGrowingWithScroll.html +801 -0
  192. package/dist/test/pages/TableSelection.html +445 -0
  193. package/dist/test/pages/TextArea.html +212 -0
  194. package/dist/test/pages/TimePicker.html +81 -0
  195. package/dist/test/pages/TimeSelection.html +31 -0
  196. package/dist/test/pages/Title.html +37 -0
  197. package/dist/test/pages/Toast.html +111 -0
  198. package/dist/test/pages/ToggleButton.html +69 -0
  199. package/dist/test/pages/Tree.html +294 -0
  200. package/dist/test/pages/WheelSlider_Test_Page.html +26 -0
  201. package/dist/test/pages/base/DOMObserver.html +20 -0
  202. package/dist/test/pages/base/InvisibleMessage.html +44 -0
  203. package/dist/test/pages/form.html +123 -0
  204. package/dist/test/pages/i18n-defaultLang.html +31 -0
  205. package/dist/test/pages/i18n-demo.html +79 -0
  206. package/package.json +9 -8
  207. package/src/AvatarGroup.js +2 -19
@@ -0,0 +1,239 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+
7
+ <title>Breadcrumbs</title>
8
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
9
+ <meta charset="utf-8">
10
+
11
+ <script>// delete Document.prototype.adoptedStyleSheets;</script>
12
+
13
+ <script data-ui5-config type="application/json">
14
+ {
15
+ "language": "EN"
16
+ }
17
+ </script>
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+ <script type="module" crossorigin src="/assets/bundle.common.ac7489b0.js"></script>
26
+ <link rel="stylesheet" href="/assets/test/pages/Breadcrumbs.html.5753069f.css">
27
+ </head>
28
+
29
+ <body class="breadcrumbs1auto">
30
+
31
+ <ui5-toggle-button id="myBtn">turn lights</ui5-toggle-button>
32
+ <div class="breadcrumbs2auto"><label for="size">Resize last container: </label>
33
+ <div class="breadcrumbs3auto">
34
+
35
+ <ui5-button id="extendSizeBtn"
36
+ class="breadcrumbs4auto"
37
+ icon="slim-arrow-up" ></ui5-button>
38
+
39
+ <ui5-button id="shrinkSizeBtn"
40
+ class="breadcrumbs4auto"
41
+ icon="slim-arrow-down"></ui5-button>
42
+ </div>
43
+
44
+ </div>
45
+ <div class="breadcrumbs2auto">
46
+ <label for="size">Resize last link: </label>
47
+ <div class="breadcrumbs5auto">
48
+
49
+ <ui5-button id="extendLinkTextBtn"
50
+ class="breadcrumbs4auto"
51
+ icon="slim-arrow-up"></ui5-button>
52
+
53
+ <ui5-button id="shortenLinkTextBtn"
54
+ class="breadcrumbs4auto"
55
+ icon="slim-arrow-down"></ui5-button>
56
+ </div>
57
+ </div>
58
+
59
+ <h2>Breadcrumbs with current location</h2>
60
+
61
+ <ui5-breadcrumbs id="breadcrumbs2">
62
+ <ui5-breadcrumbs-item href="https://www.sap.com">Link1 </ui5-breadcrumbs-item>
63
+ <ui5-breadcrumbs-item href="https://www.sap.com" target="_blank">Link2</ui5-breadcrumbs-item>
64
+ <ui5-breadcrumbs-item href="#">Link3</ui5-breadcrumbs-item>
65
+ <ui5-breadcrumbs-item href="#">Link4</ui5-breadcrumbs-item>
66
+ <ui5-breadcrumbs-item href="#">Link5</ui5-breadcrumbs-item>
67
+ <ui5-breadcrumbs-item href="#">Link6</ui5-breadcrumbs-item>
68
+ <ui5-breadcrumbs-item href="#">Link7</ui5-breadcrumbs-item>
69
+ <ui5-breadcrumbs-item>Location</ui5-breadcrumbs-item>
70
+ </ui5-breadcrumbs>
71
+
72
+ <h2>Breadcrumbs with no current location</h2>
73
+
74
+ <ui5-breadcrumbs id="breadcrumbs3" design="NoCurrentPage">
75
+ <ui5-breadcrumbs-item href="https://www.sap.com">Link1 </ui5-breadcrumbs-item>
76
+ <ui5-breadcrumbs-item href="https://www.sap.com" target="_blank">Link2</ui5-breadcrumbs-item>
77
+ <ui5-breadcrumbs-item href="#">Link3</ui5-breadcrumbs-item>
78
+ <ui5-breadcrumbs-item href="#">Link4</ui5-breadcrumbs-item>
79
+ <ui5-breadcrumbs-item href="#">Link5</ui5-breadcrumbs-item>
80
+ <ui5-breadcrumbs-item href="#">Link6</ui5-breadcrumbs-item>
81
+ <ui5-breadcrumbs-item href="#">Link7</ui5-breadcrumbs-item>
82
+ </ui5-breadcrumbs>
83
+
84
+ <h2>Breadcrumbs with specific separator style</h2>
85
+ <ui5-select id="selectSeparator">
86
+ <ui5-option>Slash</ui5-option>
87
+ <ui5-option>BackSlash</ui5-option>
88
+ <ui5-option>DoubleBackSlash</ui5-option>
89
+ <ui5-option>DoubleGreaterThan</ui5-option>
90
+ <ui5-option>DoubleSlash</ui5-option>
91
+ <ui5-option>GreaterThan</ui5-option>
92
+ </ui5-select>
93
+ <div class="breadcrumbs7auto">
94
+ <ui5-breadcrumbs id="breadcrumbs4">
95
+ <ui5-breadcrumbs-item href="#">Link1 </ui5-breadcrumbs-item>
96
+ <ui5-breadcrumbs-item href="#">Link2</ui5-breadcrumbs-item>
97
+ <ui5-breadcrumbs-item href="#">Link3</ui5-breadcrumbs-item>
98
+ <ui5-breadcrumbs-item href="#">Location</ui5-breadcrumbs-item>
99
+ </ui5-breadcrumbs>
100
+ </div>
101
+
102
+ <div class="breadcrumbs8auto">
103
+
104
+ <h2>Breadcrumb items with accessible name</h2>
105
+
106
+ <ui5-breadcrumbs id="breadcrumbsWithAccName" design="NoCurrentPage">
107
+ <ui5-breadcrumbs-item href="#" id="firstItemWithACCName" accessible-name="first link acc name">
108
+ Link1
109
+ </ui5-breadcrumbs-item>
110
+ <ui5-breadcrumbs-item href="#">Link2</ui5-breadcrumbs-item>
111
+ <ui5-breadcrumbs-item href="#">Link3</ui5-breadcrumbs-item>
112
+ <ui5-breadcrumbs-item href="#">Link4</ui5-breadcrumbs-item>
113
+ <ui5-breadcrumbs-item href="#" id="lastItemWithACCName" accessible-name="last link acc name">
114
+ Link5
115
+ </ui5-breadcrumbs-item>
116
+ </ui5-breadcrumbs>
117
+ </div>
118
+
119
+ <div id="wrapper" class="breadcrumbs9auto">
120
+
121
+ <h2>Breadcrumbs with overflowing links</h2>
122
+
123
+ <ui5-breadcrumbs id="breadcrumbs1">
124
+ <ui5-breadcrumbs-item href="https://www.sap.com" target="_blank">Link1 </ui5-breadcrumbs-item>
125
+ <ui5-breadcrumbs-item href="https://www.sap.com" target="_blank">Link2</ui5-breadcrumbs-item>
126
+ <ui5-breadcrumbs-item href="#">Link3</ui5-breadcrumbs-item>
127
+ <ui5-breadcrumbs-item href="#">Link4</ui5-breadcrumbs-item>
128
+ <ui5-breadcrumbs-item href="#">Link5</ui5-breadcrumbs-item>
129
+ <ui5-breadcrumbs-item href="#">Link6</ui5-breadcrumbs-item>
130
+ <ui5-breadcrumbs-item id="item7" href="#">aaaaa</ui5-breadcrumbs-item>
131
+ <ui5-breadcrumbs-item>Location</ui5-breadcrumbs-item>
132
+ </ui5-breadcrumbs>
133
+ </div>
134
+
135
+ <div class="breadcrumbs9auto">
136
+
137
+ <h2>Breadcrumbs with links and preventDefault</h2>
138
+
139
+ <ui5-breadcrumbs id="breadcrumbsPreventDefault" separator-class="Slash">
140
+ <ui5-breadcrumbs-item href="#shouldnotbehere">Link1 </ui5-breadcrumbs-item>
141
+ <ui5-breadcrumbs-item href="..">Link2</ui5-breadcrumbs-item>
142
+ <ui5-breadcrumbs-item href="#shouldnotbehere">Link3</ui5-breadcrumbs-item>
143
+ <ui5-breadcrumbs-item href="#shouldnotbehere">Link4</ui5-breadcrumbs-item>
144
+ <ui5-breadcrumbs-item>Location</ui5-breadcrumbs-item>
145
+ </ui5-breadcrumbs>
146
+ </div>
147
+
148
+ <div class="breadcrumbs9auto">
149
+ <h2>Empty Breadcrumbs</h2>
150
+ <ui5-breadcrumbs></ui5-breadcrumbs>
151
+ </div>
152
+
153
+ <div class="breadcrumbs9auto">
154
+ <h2>Empty Breadcrumbs with Location only</h2>
155
+ <ui5-breadcrumbs id="breadcrumbsWithSingleItem">
156
+ <ui5-breadcrumbs-item>Location</ui5-breadcrumbs-item>
157
+ </ui5-breadcrumbs>
158
+ </div>
159
+
160
+ Last pressed link: <span id="result"></span>
161
+
162
+
163
+ <script>
164
+ // HCB button
165
+ var btn = document.getElementById('myBtn');
166
+ btn.addEventListener("click", function(event) {
167
+ var hcb = event.target.pressed;
168
+ var styles = hcb ? "background:#333;color:palegoldenrod;" : "background:#fff;color:#333;";
169
+ var theme = hcb ? "sap_belize_hcb" : "sap_fiori_3";
170
+
171
+ document.body.setAttribute("style", styles);
172
+ var Conf = window["sap-ui-webcomponents-bundle"].configuration;
173
+ Conf.setTheme(theme);
174
+ });
175
+
176
+ // log events
177
+ breadcrumbs1.addEventListener("ui5-item-click", (event) => {result.innerText = event.detail.item.innerText});
178
+
179
+ var breadcrumbsPreventDefault = document.querySelector("#breadcrumbsPreventDefault");
180
+ breadcrumbsPreventDefault.addEventListener("ui5-item-click", (event) => {
181
+ let keyText ='';
182
+
183
+ if(event.detail.ctrlKey) {
184
+ keyText += 'CTRL:';
185
+ }
186
+ if(event.detail.altKey) {
187
+ keyText += 'ALT:';
188
+ }
189
+ if(event.detail.shiftKey) {
190
+ keyText += 'SHIFT:';
191
+ }
192
+ if(event.detail.metaKey) {
193
+ keyText += 'META:';
194
+ }
195
+ event.preventDefault();
196
+ result.innerText = keyText + event.detail.item.innerText;
197
+ });
198
+
199
+ extendSizeBtn.addEventListener("click", () => resizeContainer(true));
200
+ shrinkSizeBtn.addEventListener("click", () => resizeContainer());
201
+
202
+ extendLinkTextBtn.addEventListener("click", () => updateLinkContent(true));
203
+ shortenLinkTextBtn.addEventListener("click", () => updateLinkContent());
204
+
205
+ // resize breadcrumbs container
206
+ function resizeContainer(extendSize) {
207
+ let wrapperWidth = wrapper.clientWidth,
208
+ step = 50,
209
+ amount = extendSize ? step: -step,
210
+ newWidth = Math.max(wrapperWidth + amount, 0);
211
+ wrapper.style.width = newWidth + "px";
212
+ }
213
+
214
+ // cause resize of the breadcrumbs last link
215
+ function updateLinkContent(extendSize) {
216
+ let link = item7,
217
+ step = 5,
218
+ content = link.innerText,
219
+ newContent;
220
+
221
+ if (extendSize) {
222
+ newContent = content + new Array(step + 1).join( "a" );
223
+ } else {
224
+ newContent = content.substring(step);
225
+ }
226
+
227
+ link.innerText = newContent;
228
+ }
229
+
230
+ selectSeparator.addEventListener("ui5-change", function(e) {
231
+ let separator = e.detail.selectedOption.textContent;
232
+ breadcrumbs4.setAttribute("separator-style", separator);
233
+ });
234
+
235
+ </script>
236
+
237
+ </body>
238
+
239
+ </html>
@@ -0,0 +1,255 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
6
+ <meta charset="utf-8">
7
+
8
+ <title>Busy Indicator</title>
9
+ <script>
10
+ // delete Document.prototype.adoptedStyleSheets
11
+ </script>
12
+
13
+ <script data-ui5-config type="application/json">
14
+ {
15
+ "rtl": false
16
+ }
17
+ </script>
18
+
19
+
20
+
21
+
22
+
23
+
24
+ <script type="module" crossorigin src="/assets/bundle.common.ac7489b0.js"></script>
25
+ <link rel="stylesheet" href="/assets/test/pages/BusyIndicator.html.ce95c23c.css">
26
+ </head>
27
+
28
+ <body class="busyindicator1auto">
29
+ <ui5-title>Large ui5-busy-indicator</ui5-title>
30
+ <ui5-busy-indicator active size="Large"></ui5-busy-indicator>
31
+ <br/>
32
+ <br/>
33
+
34
+ <ui5-title>Default Medium ui5-busy-indicator</ui5-title>
35
+ <ui5-busy-indicator size="Medium" active id="indicator1"></ui5-busy-indicator>
36
+
37
+ <br />
38
+ <br />
39
+ <ui5-busy-indicator size="Medium" active id="indicator2"></ui5-busy-indicator>
40
+
41
+ <ui5-title>ui5-busy-indicator with text</ui5-title>
42
+
43
+ <br />
44
+ <br />
45
+ <ui5-busy-indicator active text="Loading" class="busyindicator2auto"></ui5-busy-indicator>
46
+
47
+ <br />
48
+ <br />
49
+
50
+ <div>
51
+ <ui5-button id="beforeIndicatorWithBtn">focus stop before</ui5-button>
52
+ <ui5-busy-indicator id="indicatorWithBtn" size="Medium" active>
53
+ <ui5-button>Hello World</ui5-button>
54
+ </ui5-busy-indicator>
55
+ <ui5-button id="afterIndicatorWithBtn" >focus stop after</ui5-button>
56
+ </div>
57
+
58
+ <br />
59
+ <br />
60
+ <ui5-busy-indicator size="Medium" active text="Loading">
61
+ <ui5-checkbox text="Hello World"></ui5-checkbox>
62
+ </ui5-busy-indicator>
63
+
64
+ <br />
65
+ <br />
66
+
67
+ <ui5-button id="fetch-btn" class="busyindicator3auto">Fetch List Data</ui5-button>
68
+ <br>
69
+ <br>
70
+ <ui5-busy-indicator id="busy-container" class="busyindicator4auto" size="Medium" text="Loading">
71
+ <ui5-list id="fetch-list" no-data-text="No Data" header-text="Available Items" class="busyindicator5auto"></ui5-list>
72
+ </ui5-busy-indicator>
73
+
74
+
75
+ <br>
76
+ <br>
77
+ <br>
78
+ <br>
79
+
80
+ <ui5-busy-indicator size="Medium" active class="busyindicator6auto">
81
+ <ui5-list class="busyindicator7auto">
82
+ <ui5-li>Item 1</ui5-li>
83
+ <ui5-li>Item 2</ui5-li>
84
+ <ui5-li>Item 3</ui5-li>
85
+ </ui5-list>
86
+ </ui5-busy-indicator>
87
+
88
+ <ui5-busy-indicator size="Medium" active class="busyindicator6auto" text="Custom loading text">
89
+ <ui5-list class="busyindicator7auto">
90
+ <ui5-li>Item 1</ui5-li>
91
+ <ui5-li>Item 2</ui5-li>
92
+ <ui5-li>Item 3</ui5-li>
93
+ </ui5-list>
94
+ </ui5-busy-indicator>
95
+
96
+ <br>
97
+ <br>
98
+ <br>
99
+
100
+ <span>Medium (default) </span>
101
+ <br>
102
+ <br>
103
+
104
+ <ui5-busy-indicator active></ui5-busy-indicator>
105
+ <br>
106
+ <br>
107
+ <span>Small </span>
108
+
109
+ <br>
110
+ <br>
111
+ <ui5-busy-indicator size="Small" active></ui5-busy-indicator>
112
+ <br>
113
+ <br>
114
+ <span>Medium </span>
115
+
116
+ <br>
117
+ <br>
118
+ <ui5-busy-indicator size="Medium" active></ui5-busy-indicator>
119
+ <br>
120
+ <br>
121
+ <span>Large </span>
122
+
123
+ <br>
124
+ <br>
125
+ <ui5-busy-indicator size="Large" active></ui5-busy-indicator>
126
+ <br>
127
+ <br>
128
+
129
+ <ui5-busy-indicator id="busy-tree" class="busyindicator8auto" delay="0">
130
+ <ui5-tree id="treeDynamic">
131
+ <div slot="header">
132
+ <ui5-title>Dynamic tree</ui5-title>
133
+ </div>
134
+
135
+ <ui5-tree-item text="Has no children at all"></ui5-tree-item>
136
+
137
+ <ui5-tree-item text="Has preloaded children">
138
+ <ui5-tree-item text="Child 1"></ui5-tree-item>
139
+ <ui5-tree-item text="Child 2"></ui5-tree-item>
140
+ </ui5-tree-item>
141
+
142
+ <ui5-tree-item id="dynamicNode" text="Has children, but not yet loaded" has-children></ui5-tree-item>
143
+ </ui5-tree>
144
+ </ui5-busy-indicator>
145
+
146
+ <ui5-input value="0" id="tree-input"></ui5-input>
147
+
148
+ <br>
149
+ <br>
150
+
151
+ <ui5-button id="open-dialog-inactive-indicator">Open Dialog with Inactive Indicator</ui5-button>
152
+ <ui5-dialog id="dialog-inactive-indicator">
153
+ <div slot="header">Dialog with focus issue</div>
154
+ <div>
155
+ <div>Buttons are wrapped in busy indicator, which is inactive.</div>
156
+ <ui5-busy-indicator>
157
+ <ui5-button id="dialog-inactive-indicator-focused-button">button 1</ui5-button>
158
+ <ui5-button>button 2</ui5-button>
159
+ <ui5-button>button 3</ui5-button>
160
+ </ui5-busy-indicator>
161
+ </div>
162
+ </ui5-dialog>
163
+
164
+ <ui5-button id="open-dialog-active-indicator">Open Dialog with Active Indicator</ui5-button>
165
+ <ui5-dialog id="dialog-active-indicator">
166
+ <div slot="header">Dialog with focus issue</div>
167
+ <div>
168
+ <div>Buttons are wrapped in busy indicator, which is active.</div>
169
+ <ui5-busy-indicator active>
170
+ <ui5-button>button 1</ui5-button>
171
+ <ui5-button>button 2</ui5-button>
172
+ <ui5-button>button 3</ui5-button>
173
+ </ui5-busy-indicator>
174
+ </div>
175
+ </ui5-dialog>
176
+
177
+ <br>
178
+ <br>
179
+ <span>Indicator with delay</span>
180
+ <div></div>
181
+ <ui5-button id="open-dialog-delayed-indicator">Open dialog</ui5-button>
182
+ <ui5-dialog id="dialog-delayed-indicator">
183
+ <ui5-busy-indicator id="dialog-delayed-indicator-indicator" delay="5000" >
184
+ <span>Will become busy after 5 seconds</span>
185
+ <span>Shouldn't attempt to focus the busy indicator</span>
186
+ </ui5-busy-indicator>
187
+ <ui5-button id="dialog-delayed-indicator-focus-stop">focus stop</ui5-button>
188
+ </ui5-dialog>
189
+
190
+ <script>
191
+ document.getElementById("fetch-btn").addEventListener("click", function(event) {
192
+ var busyIndicator = document.getElementById("busy-container");
193
+ var list = document.getElementById("fetch-list");
194
+ busyIndicator.setAttribute("active", "");
195
+
196
+ setTimeout(function() {
197
+ var elements = ["UI5", "Web", "Components"].forEach(function(title) {
198
+ var el = document.createElement("ui5-li");
199
+ el.textContent = title;
200
+
201
+ list.appendChild(el);
202
+ });
203
+
204
+ list.noDataText = "";
205
+ busyIndicator.removeAttribute("active");
206
+ }, 2000);
207
+ });
208
+
209
+ var dynamicTree = document.getElementById("treeDynamic");
210
+ var busyIndicator = document.getElementById("busy-tree");
211
+ var input = document.getElementById("tree-input");
212
+ var inputValue = 0;
213
+
214
+ dynamicTree.addEventListener("ui5-itemToggle", function(event) {
215
+ var item = event.detail.item; // get the node that is toggled
216
+ console.log(item);
217
+ // Only for the dynamic node, only when it's empty
218
+ if (item.id === "dynamicNode" && item.children.length === 0) {
219
+ busyIndicator.active = true;
220
+ event.preventDefault(); // do not let the toggle button switch yet
221
+ setTimeout(function() {
222
+ var newItem = document.createElement("ui5-tree-item"); // Fetching from db....
223
+ newItem.text = "Node fetched from DB after 2 sec";
224
+ item.appendChild(newItem);
225
+ item.toggle(); // now manually switch
226
+ busyIndicator.active = false;
227
+ }, 2000);
228
+ }
229
+ });
230
+
231
+ dynamicTree.addEventListener("ui5-itemClick", function(event) {
232
+ var item = event.detail.item; // get the node that is toggled
233
+
234
+ // Only for the dynamic node, only when it's empty
235
+ if (item.id === "dynamicNode") {
236
+ input.value = ++inputValue;
237
+ }
238
+ });
239
+
240
+ document.getElementById("open-dialog-inactive-indicator").addEventListener("click", function () {
241
+ document.getElementById("dialog-inactive-indicator").show();
242
+ });
243
+
244
+ document.getElementById("open-dialog-active-indicator").addEventListener("click", function () {
245
+ document.getElementById("dialog-active-indicator").show();
246
+ });
247
+
248
+ document.getElementById("open-dialog-delayed-indicator").addEventListener("click", function () {
249
+ document.getElementById("dialog-delayed-indicator-indicator").active = true;
250
+ document.getElementById("dialog-delayed-indicator").show();
251
+ });
252
+ </script>
253
+ </body>
254
+
255
+ </html>