@ui5/webcomponents 1.14.2 → 1.14.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/.vscode/diff/vulsCount.txt +1 -0
  2. package/.vscode/settings.json +3 -0
  3. package/CHANGELOG.md +11 -0
  4. package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js +1 -1
  5. package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js.map +1 -1
  6. package/package.json +7 -8
  7. package/src/ComboBoxPopover.hbs +16 -12
  8. package/LICENSE.txt +0 -201
  9. package/dist/assets/test/pages/ComboBox.html.e6b2c662.js +0 -1
  10. package/dist/assets/test/pages/Icon.html.4f593716.js +0 -1
  11. package/dist/assets/test/pages/Label.html.36a2faae.js +0 -4
  12. package/dist/assets/test/pages/Popups.html.c29d144e.js +0 -1
  13. package/dist/test/pages/72override.html +0 -33
  14. package/dist/test/pages/AnimanitionOff.html +0 -52
  15. package/dist/test/pages/Avatar.html +0 -264
  16. package/dist/test/pages/AvatarGroup.html +0 -376
  17. package/dist/test/pages/Badge.html +0 -75
  18. package/dist/test/pages/Breadcrumbs.html +0 -239
  19. package/dist/test/pages/BusyIndicator.html +0 -278
  20. package/dist/test/pages/Button.html +0 -273
  21. package/dist/test/pages/Calendar.html +0 -103
  22. package/dist/test/pages/Card.html +0 -347
  23. package/dist/test/pages/Carousel.html +0 -613
  24. package/dist/test/pages/CheckBox.html +0 -90
  25. package/dist/test/pages/ColorPalette.html +0 -126
  26. package/dist/test/pages/ColorPalettePopover.html +0 -141
  27. package/dist/test/pages/ColorPicker.html +0 -66
  28. package/dist/test/pages/ComboBox.html +0 -292
  29. package/dist/test/pages/Components.html +0 -106
  30. package/dist/test/pages/CoreControls.html +0 -203
  31. package/dist/test/pages/CoreControls_exp.html +0 -203
  32. package/dist/test/pages/CustomCSS.html +0 -55
  33. package/dist/test/pages/DatePicker.html +0 -211
  34. package/dist/test/pages/DatePicker_test_page.html +0 -109
  35. package/dist/test/pages/DateRangePicker.html +0 -67
  36. package/dist/test/pages/DateTimePicker.html +0 -199
  37. package/dist/test/pages/DateTimePicker_Timezone.html +0 -72
  38. package/dist/test/pages/DayPicker.html +0 -37
  39. package/dist/test/pages/Dialog.html +0 -813
  40. package/dist/test/pages/DialogLifecycle.html +0 -62
  41. package/dist/test/pages/DialogSemantic.html +0 -58
  42. package/dist/test/pages/Eventing.html +0 -33
  43. package/dist/test/pages/F6Test1.html +0 -42
  44. package/dist/test/pages/F6Test2.html +0 -42
  45. package/dist/test/pages/F6Test3.html +0 -39
  46. package/dist/test/pages/F6Test4.html +0 -46
  47. package/dist/test/pages/F6Test5.html +0 -42
  48. package/dist/test/pages/F6Test6.html +0 -39
  49. package/dist/test/pages/F6Test7.html +0 -36
  50. package/dist/test/pages/FileUploader.html +0 -138
  51. package/dist/test/pages/FormComponents.html +0 -76
  52. package/dist/test/pages/FormSupport.html +0 -59
  53. package/dist/test/pages/HCB.html +0 -45
  54. package/dist/test/pages/Icon.html +0 -278
  55. package/dist/test/pages/Icon_and_theming.html +0 -67
  56. package/dist/test/pages/Icon_custom.html +0 -26
  57. package/dist/test/pages/Input.html +0 -731
  58. package/dist/test/pages/InputFieldLabels.html +0 -355
  59. package/dist/test/pages/InputFieldMinWidth.html +0 -230
  60. package/dist/test/pages/InputIcons.html +0 -80
  61. package/dist/test/pages/Input_quickview.html +0 -204
  62. package/dist/test/pages/InputsAlignment.html +0 -131
  63. package/dist/test/pages/InputsLazyLoading.html +0 -244
  64. package/dist/test/pages/ItemNavigation.html +0 -94
  65. package/dist/test/pages/Kitchen.html +0 -637
  66. package/dist/test/pages/Kitchen.openui5.html +0 -570
  67. package/dist/test/pages/Label.html +0 -192
  68. package/dist/test/pages/Link.html +0 -201
  69. package/dist/test/pages/List.html +0 -465
  70. package/dist/test/pages/ListGrowing_Button.html +0 -64
  71. package/dist/test/pages/ListGrowing_Scroll.html +0 -93
  72. package/dist/test/pages/List_keyboard_support.html +0 -130
  73. package/dist/test/pages/List_test_page.html +0 -395
  74. package/dist/test/pages/LitKeyFunction.html +0 -40
  75. package/dist/test/pages/MemoryLeak.html +0 -78
  76. package/dist/test/pages/Menu.html +0 -161
  77. package/dist/test/pages/MessagePage.html +0 -39
  78. package/dist/test/pages/MessageStrip.html +0 -55
  79. package/dist/test/pages/MultiComboBox.html +0 -489
  80. package/dist/test/pages/MultiInput.html +0 -451
  81. package/dist/test/pages/MultiInput_Suggestions.html +0 -161
  82. package/dist/test/pages/OpenUI5-second.html +0 -60
  83. package/dist/test/pages/OpenUI5.html +0 -83
  84. package/dist/test/pages/Panel.html +0 -226
  85. package/dist/test/pages/Popover.html +0 -658
  86. package/dist/test/pages/PopoverArrowBounds.html +0 -52
  87. package/dist/test/pages/Popups.html +0 -131
  88. package/dist/test/pages/ProgressIndicator.html +0 -151
  89. package/dist/test/pages/RTL.html +0 -118
  90. package/dist/test/pages/RadioButton.html +0 -201
  91. package/dist/test/pages/RangeSlider.html +0 -96
  92. package/dist/test/pages/RatingIndicator.html +0 -97
  93. package/dist/test/pages/ResizeHandler.html +0 -74
  94. package/dist/test/pages/ResponsivePopover.html +0 -267
  95. package/dist/test/pages/SegmentedButton.html +0 -151
  96. package/dist/test/pages/Select.html +0 -272
  97. package/dist/test/pages/Simple.html +0 -25
  98. package/dist/test/pages/Slider.html +0 -79
  99. package/dist/test/pages/SplitButton.html +0 -101
  100. package/dist/test/pages/StepInput.html +0 -189
  101. package/dist/test/pages/Switch.html +0 -97
  102. package/dist/test/pages/TabContainer.html +0 -904
  103. package/dist/test/pages/Table-perf-pure.html +0 -73
  104. package/dist/test/pages/Table-perf.html +0 -76
  105. package/dist/test/pages/Table.html +0 -2808
  106. package/dist/test/pages/Table2.html +0 -53
  107. package/dist/test/pages/TableAllPopin.html +0 -228
  108. package/dist/test/pages/TableCustomStyling.html +0 -89
  109. package/dist/test/pages/TableGrouping.html +0 -109
  110. package/dist/test/pages/TableGrowingWithButton.html +0 -805
  111. package/dist/test/pages/TableGrowingWithScroll.html +0 -801
  112. package/dist/test/pages/TableSelection.html +0 -445
  113. package/dist/test/pages/Test.html +0 -15
  114. package/dist/test/pages/TextArea.html +0 -222
  115. package/dist/test/pages/TimePicker.html +0 -89
  116. package/dist/test/pages/TimeSelection.html +0 -31
  117. package/dist/test/pages/Title.html +0 -60
  118. package/dist/test/pages/Toast.html +0 -111
  119. package/dist/test/pages/ToggleButton.html +0 -71
  120. package/dist/test/pages/Tokenizer.html +0 -91
  121. package/dist/test/pages/Tree.html +0 -307
  122. package/dist/test/pages/TreeDynamic.html +0 -56
  123. package/dist/test/pages/WheelSlider_Test_Page.html +0 -26
  124. package/dist/test/pages/base/AriaLabelHelper.html +0 -334
  125. package/dist/test/pages/base/DOMObserver.html +0 -20
  126. package/dist/test/pages/base/IconCollection.html +0 -23
  127. package/dist/test/pages/base/IconCollectionInCustomTheme.html +0 -25
  128. package/dist/test/pages/base/IgnoreCustomElements.html +0 -26
  129. package/dist/test/pages/base/InvisibleMessage.html +0 -44
  130. package/dist/test/pages/form.html +0 -123
  131. package/dist/test/pages/i18n-defaultLang.html +0 -31
  132. package/dist/test/pages/i18n-demo.html +0 -79
@@ -1,75 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
-
4
- <head>
5
- <meta charset="utf-8">
6
-
7
- <title>Badge</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 data-ui5-config type="application/json">
12
- {
13
- "language": "EN"
14
- }
15
- </script>
16
-
17
-
18
- <script type="module" crossorigin src="/assets/bundle.common.fa62259e.js"></script>
19
- <link rel="stylesheet" href="/assets/Badge.b61adec8.css">
20
- </head>
21
-
22
- <body class="badge1auto">
23
- <section class="group">
24
- <h2>Badges</h2>
25
- <ui5-badge color-scheme="1">This is an info label</ui5-badge><br>
26
- <ui5-badge color-scheme="2">Required Required Required</ui5-badge><br>
27
- <ui5-badge color-scheme="3">Hello world</ui5-badge><br>
28
- <ui5-badge color-scheme="4">you are right</ui5-badge><br>
29
- <ui5-badge color-scheme="5">Solution provided</ui5-badge><br>
30
- <ui5-badge color-scheme="6">Available</ui5-badge><br>
31
- <ui5-badge color-scheme="7">Required</ui5-badge><br>
32
- <ui5-badge color-scheme="8">Required</ui5-badge><br>
33
- <ui5-badge color-scheme="9">Required</ui5-badge><br>
34
- <ui5-badge color-scheme="10">IN WAREHOUSE</ui5-badge><br>
35
-
36
- <ui5-badge id="badgeWithTextAndIcon" color-scheme="1">
37
- <ui5-icon name="accept" slot="icon"></ui5-icon>Done
38
- </ui5-badge>
39
- <ui5-badge id="badgeIconOnly" color-scheme="2">
40
- <ui5-icon name="sap-ui5" slot="icon"></ui5-icon>
41
- </ui5-badge>
42
- <ui5-badge color-scheme="3">
43
- In Process
44
- </ui5-badge>
45
- <ui5-badge color-scheme="4">
46
- <ui5-icon name="lab" slot="icon"></ui5-icon>
47
- </ui5-badge>
48
- <ui5-badge color-scheme="5">
49
- <ui5-icon name="email-read" slot="icon"></ui5-icon>
50
- </ui5-badge>
51
- <ui5-badge color-scheme="6">
52
- <ui5-icon name="pending" slot="icon"></ui5-icon>Pending
53
- </ui5-badge>
54
- <ui5-badge color-scheme="7">
55
- <ui5-icon name="lightbulb" slot="icon"></ui5-icon>
56
- </ui5-badge>
57
- <ui5-badge color-scheme="8">
58
- <ui5-icon name="locked" slot="icon"></ui5-icon>
59
- </ui5-badge>
60
- </section>
61
-
62
- <h2>sap_horizon</h2>
63
- <div class="sap_horizon">
64
- <ui5-badge color-scheme="1">Grey</ui5-badge>
65
- <ui5-badge color-scheme="2">Blue</ui5-badge>
66
- <ui5-badge color-scheme="3">Teal</ui5-badge>
67
- <ui5-badge color-scheme="4">Green</ui5-badge>
68
- <ui5-badge color-scheme="5">Mango</ui5-badge>
69
- <ui5-badge color-scheme="6">Red</ui5-badge>
70
- <ui5-badge color-scheme="7">Pink</ui5-badge>
71
- <ui5-badge color-scheme="8">Indigo</ui5-badge>
72
- </div>
73
- </body>
74
-
75
- </html>
@@ -1,239 +0,0 @@
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.fa62259e.js"></script>
26
- <link rel="stylesheet" href="/assets/Breadcrumbs.84456832.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>
@@ -1,278 +0,0 @@
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.fa62259e.js"></script>
25
- <link rel="stylesheet" href="/assets/BusyIndicator.26348187.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
- <br>
191
- <br>
192
- <div style="display: flex;">
193
- <div style="border: 1px solid black;">
194
- <ui5-busy-indicator active style="height: 100%;">
195
- <div style="background-color: orange; width: 200px; height: 100%;">
196
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nobis
197
- quasi, minus ullam aut eaque dolorem eos rem itaque unde, veritatis
198
- consequuntur numquam! Repellat sunt, dignissimos fugit voluptate
199
- animi repudiandae placeat?
200
- </div>
201
- </ui5-busy-indicator>
202
- </div>
203
- <div style="border: 1px solid black;">
204
- <ui5-busy-indicator id="busy-indicator-height" active style="height: 100%;">
205
- <div style="background-color: orange; width: 200px; height: 100%;">
206
- Lorem ipsum dolor sit amet, consectetur adipisicing elit.
207
- </div>
208
- </ui5-busy-indicator>
209
- </div>
210
- </div>
211
- <br />
212
-
213
- <script>
214
- document.getElementById("fetch-btn").addEventListener("click", function(event) {
215
- var busyIndicator = document.getElementById("busy-container");
216
- var list = document.getElementById("fetch-list");
217
- busyIndicator.setAttribute("active", "");
218
-
219
- setTimeout(function() {
220
- var elements = ["UI5", "Web", "Components"].forEach(function(title) {
221
- var el = document.createElement("ui5-li");
222
- el.textContent = title;
223
-
224
- list.appendChild(el);
225
- });
226
-
227
- list.noDataText = "";
228
- busyIndicator.removeAttribute("active");
229
- }, 2000);
230
- });
231
-
232
- var dynamicTree = document.getElementById("treeDynamic");
233
- var busyIndicator = document.getElementById("busy-tree");
234
- var input = document.getElementById("tree-input");
235
- var inputValue = 0;
236
-
237
- dynamicTree.addEventListener("ui5-item-toggle", function(event) {
238
- var item = event.detail.item; // get the node that is toggled
239
- console.log(item);
240
- // Only for the dynamic node, only when it's empty
241
- if (item.id === "dynamicNode" && item.children.length === 0) {
242
- busyIndicator.active = true;
243
- event.preventDefault(); // do not let the toggle button switch yet
244
- setTimeout(function() {
245
- var newItem = document.createElement("ui5-tree-item"); // Fetching from db....
246
- newItem.text = "Node fetched from DB after 2 sec";
247
- item.appendChild(newItem);
248
- item.toggle(); // now manually switch
249
- busyIndicator.active = false;
250
- }, 2000);
251
- }
252
- });
253
-
254
- dynamicTree.addEventListener("ui5-item-click", function(event) {
255
- var item = event.detail.item; // get the node that is toggled
256
-
257
- // Only for the dynamic node, only when it's empty
258
- if (item.id === "dynamicNode") {
259
- input.value = ++inputValue;
260
- }
261
- });
262
-
263
- document.getElementById("open-dialog-inactive-indicator").addEventListener("click", function () {
264
- document.getElementById("dialog-inactive-indicator").show();
265
- });
266
-
267
- document.getElementById("open-dialog-active-indicator").addEventListener("click", function () {
268
- document.getElementById("dialog-active-indicator").show();
269
- });
270
-
271
- document.getElementById("open-dialog-delayed-indicator").addEventListener("click", function () {
272
- document.getElementById("dialog-delayed-indicator-indicator").active = true;
273
- document.getElementById("dialog-delayed-indicator").show();
274
- });
275
- </script>
276
- </body>
277
-
278
- </html>