@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,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.ad270030.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.ad270030.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>