@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.
- package/.vscode/diff/vulsCount.txt +1 -0
- package/.vscode/settings.json +3 -0
- package/CHANGELOG.md +11 -0
- package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js +1 -1
- package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js.map +1 -1
- package/package.json +7 -8
- package/src/ComboBoxPopover.hbs +16 -12
- package/LICENSE.txt +0 -201
- package/dist/assets/test/pages/ComboBox.html.e6b2c662.js +0 -1
- package/dist/assets/test/pages/Icon.html.4f593716.js +0 -1
- package/dist/assets/test/pages/Label.html.36a2faae.js +0 -4
- package/dist/assets/test/pages/Popups.html.c29d144e.js +0 -1
- package/dist/test/pages/72override.html +0 -33
- package/dist/test/pages/AnimanitionOff.html +0 -52
- package/dist/test/pages/Avatar.html +0 -264
- package/dist/test/pages/AvatarGroup.html +0 -376
- package/dist/test/pages/Badge.html +0 -75
- package/dist/test/pages/Breadcrumbs.html +0 -239
- package/dist/test/pages/BusyIndicator.html +0 -278
- package/dist/test/pages/Button.html +0 -273
- package/dist/test/pages/Calendar.html +0 -103
- package/dist/test/pages/Card.html +0 -347
- package/dist/test/pages/Carousel.html +0 -613
- package/dist/test/pages/CheckBox.html +0 -90
- package/dist/test/pages/ColorPalette.html +0 -126
- package/dist/test/pages/ColorPalettePopover.html +0 -141
- package/dist/test/pages/ColorPicker.html +0 -66
- package/dist/test/pages/ComboBox.html +0 -292
- package/dist/test/pages/Components.html +0 -106
- package/dist/test/pages/CoreControls.html +0 -203
- package/dist/test/pages/CoreControls_exp.html +0 -203
- package/dist/test/pages/CustomCSS.html +0 -55
- package/dist/test/pages/DatePicker.html +0 -211
- package/dist/test/pages/DatePicker_test_page.html +0 -109
- package/dist/test/pages/DateRangePicker.html +0 -67
- package/dist/test/pages/DateTimePicker.html +0 -199
- package/dist/test/pages/DateTimePicker_Timezone.html +0 -72
- package/dist/test/pages/DayPicker.html +0 -37
- package/dist/test/pages/Dialog.html +0 -813
- package/dist/test/pages/DialogLifecycle.html +0 -62
- package/dist/test/pages/DialogSemantic.html +0 -58
- package/dist/test/pages/Eventing.html +0 -33
- package/dist/test/pages/F6Test1.html +0 -42
- package/dist/test/pages/F6Test2.html +0 -42
- package/dist/test/pages/F6Test3.html +0 -39
- package/dist/test/pages/F6Test4.html +0 -46
- package/dist/test/pages/F6Test5.html +0 -42
- package/dist/test/pages/F6Test6.html +0 -39
- package/dist/test/pages/F6Test7.html +0 -36
- package/dist/test/pages/FileUploader.html +0 -138
- package/dist/test/pages/FormComponents.html +0 -76
- package/dist/test/pages/FormSupport.html +0 -59
- package/dist/test/pages/HCB.html +0 -45
- package/dist/test/pages/Icon.html +0 -278
- package/dist/test/pages/Icon_and_theming.html +0 -67
- package/dist/test/pages/Icon_custom.html +0 -26
- package/dist/test/pages/Input.html +0 -731
- package/dist/test/pages/InputFieldLabels.html +0 -355
- package/dist/test/pages/InputFieldMinWidth.html +0 -230
- package/dist/test/pages/InputIcons.html +0 -80
- package/dist/test/pages/Input_quickview.html +0 -204
- package/dist/test/pages/InputsAlignment.html +0 -131
- package/dist/test/pages/InputsLazyLoading.html +0 -244
- package/dist/test/pages/ItemNavigation.html +0 -94
- package/dist/test/pages/Kitchen.html +0 -637
- package/dist/test/pages/Kitchen.openui5.html +0 -570
- package/dist/test/pages/Label.html +0 -192
- package/dist/test/pages/Link.html +0 -201
- package/dist/test/pages/List.html +0 -465
- package/dist/test/pages/ListGrowing_Button.html +0 -64
- package/dist/test/pages/ListGrowing_Scroll.html +0 -93
- package/dist/test/pages/List_keyboard_support.html +0 -130
- package/dist/test/pages/List_test_page.html +0 -395
- package/dist/test/pages/LitKeyFunction.html +0 -40
- package/dist/test/pages/MemoryLeak.html +0 -78
- package/dist/test/pages/Menu.html +0 -161
- package/dist/test/pages/MessagePage.html +0 -39
- package/dist/test/pages/MessageStrip.html +0 -55
- package/dist/test/pages/MultiComboBox.html +0 -489
- package/dist/test/pages/MultiInput.html +0 -451
- package/dist/test/pages/MultiInput_Suggestions.html +0 -161
- package/dist/test/pages/OpenUI5-second.html +0 -60
- package/dist/test/pages/OpenUI5.html +0 -83
- package/dist/test/pages/Panel.html +0 -226
- package/dist/test/pages/Popover.html +0 -658
- package/dist/test/pages/PopoverArrowBounds.html +0 -52
- package/dist/test/pages/Popups.html +0 -131
- package/dist/test/pages/ProgressIndicator.html +0 -151
- package/dist/test/pages/RTL.html +0 -118
- package/dist/test/pages/RadioButton.html +0 -201
- package/dist/test/pages/RangeSlider.html +0 -96
- package/dist/test/pages/RatingIndicator.html +0 -97
- package/dist/test/pages/ResizeHandler.html +0 -74
- package/dist/test/pages/ResponsivePopover.html +0 -267
- package/dist/test/pages/SegmentedButton.html +0 -151
- package/dist/test/pages/Select.html +0 -272
- package/dist/test/pages/Simple.html +0 -25
- package/dist/test/pages/Slider.html +0 -79
- package/dist/test/pages/SplitButton.html +0 -101
- package/dist/test/pages/StepInput.html +0 -189
- package/dist/test/pages/Switch.html +0 -97
- package/dist/test/pages/TabContainer.html +0 -904
- package/dist/test/pages/Table-perf-pure.html +0 -73
- package/dist/test/pages/Table-perf.html +0 -76
- package/dist/test/pages/Table.html +0 -2808
- package/dist/test/pages/Table2.html +0 -53
- package/dist/test/pages/TableAllPopin.html +0 -228
- package/dist/test/pages/TableCustomStyling.html +0 -89
- package/dist/test/pages/TableGrouping.html +0 -109
- package/dist/test/pages/TableGrowingWithButton.html +0 -805
- package/dist/test/pages/TableGrowingWithScroll.html +0 -801
- package/dist/test/pages/TableSelection.html +0 -445
- package/dist/test/pages/Test.html +0 -15
- package/dist/test/pages/TextArea.html +0 -222
- package/dist/test/pages/TimePicker.html +0 -89
- package/dist/test/pages/TimeSelection.html +0 -31
- package/dist/test/pages/Title.html +0 -60
- package/dist/test/pages/Toast.html +0 -111
- package/dist/test/pages/ToggleButton.html +0 -71
- package/dist/test/pages/Tokenizer.html +0 -91
- package/dist/test/pages/Tree.html +0 -307
- package/dist/test/pages/TreeDynamic.html +0 -56
- package/dist/test/pages/WheelSlider_Test_Page.html +0 -26
- package/dist/test/pages/base/AriaLabelHelper.html +0 -334
- package/dist/test/pages/base/DOMObserver.html +0 -20
- package/dist/test/pages/base/IconCollection.html +0 -23
- package/dist/test/pages/base/IconCollectionInCustomTheme.html +0 -25
- package/dist/test/pages/base/IgnoreCustomElements.html +0 -26
- package/dist/test/pages/base/InvisibleMessage.html +0 -44
- package/dist/test/pages/form.html +0 -123
- package/dist/test/pages/i18n-defaultLang.html +0 -31
- package/dist/test/pages/i18n-demo.html +0 -79
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
|
|
7
|
-
<title>Button</title>
|
|
8
|
-
<script>
|
|
9
|
-
// delete Document.prototype.adoptedStyleSheets
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<script type="module" crossorigin src="/assets/bundle.common.fa62259e.js"></script>
|
|
19
|
-
<link rel="stylesheet" href="/assets/Button.50012cf5.css">
|
|
20
|
-
</head>
|
|
21
|
-
|
|
22
|
-
<body class="button1auto">
|
|
23
|
-
<ui5-button icon="home" id="icon-only-comment"><!----><!----></ui5-button>
|
|
24
|
-
<ui5-button icon="text" id="icon-only-blank-text"> </ui5-button>
|
|
25
|
-
<ui5-button>
|
|
26
|
-
<ui5-avatar id="btnImage" size="XS">
|
|
27
|
-
<img src="https://sdk.openui5.org/test-resources/sap/f/images/Woman_avatar_01.png" />
|
|
28
|
-
</ui5-avatar>
|
|
29
|
-
</ui5-button>
|
|
30
|
-
<ui5-icon name="invalid_name"></ui5-icon>
|
|
31
|
-
<ui5-button design="Emphasized" icon="invalid_name">Press</ui5-button>
|
|
32
|
-
|
|
33
|
-
<ui5-button id="download" icon="download" accessible-name="Download application"></ui5-button>
|
|
34
|
-
<ui5-button id="button1" icon="home" design="Emphasized">Action Bar Button</ui5-button>
|
|
35
|
-
<ui5-button class="button2auto">Primary <br> button</ui5-button>
|
|
36
|
-
<ui5-button class="button2auto button3auto" design="Transparent">Secondary <span >button</span></ui5-button>
|
|
37
|
-
<ui5-button disabled id="button-disabled">Inactive</ui5-button>
|
|
38
|
-
<ui5-button design="Positive">Accept</ui5-button>
|
|
39
|
-
<ui5-button design="Negative">Decline</ui5-button>
|
|
40
|
-
|
|
41
|
-
<br />
|
|
42
|
-
<br />
|
|
43
|
-
|
|
44
|
-
<div>
|
|
45
|
-
<ui5-toggle-button design="Positive" icon="add"></ui5-toggle-button>
|
|
46
|
-
<ui5-toggle-button design="Negative" icon="add"></ui5-toggle-button>
|
|
47
|
-
</div>
|
|
48
|
-
|
|
49
|
-
<br />
|
|
50
|
-
<br />
|
|
51
|
-
|
|
52
|
-
<ui5-input id="click-counter"></ui5-input>
|
|
53
|
-
|
|
54
|
-
<ui5-button class="button2auto" design="Emphasized">Action<br> <i>Bar</i><br> Button</ui5-button>
|
|
55
|
-
<ui5-button>Primary button</ui5-button>
|
|
56
|
-
<ui5-button design="Transparent">Secondary button</ui5-button>
|
|
57
|
-
<ui5-button disabled>Inactive</ui5-button>
|
|
58
|
-
<ui5-button design="Positive">Agree</ui5-button>
|
|
59
|
-
<ui5-button design="Negative">Decline</ui5-button>
|
|
60
|
-
<ui5-button design="Attention">Warning</ui5-button>
|
|
61
|
-
<ui5-button id="attentionIconButton" design="Attention" icon="message-warning">Warning</ui5-button>
|
|
62
|
-
<ui5-button design="Attention" icon="message-warning"></ui5-button>
|
|
63
|
-
<br/>
|
|
64
|
-
<br/>
|
|
65
|
-
<br/>
|
|
66
|
-
|
|
67
|
-
<ui5-button icon="download" accessible-name="Download application"></ui5-button>
|
|
68
|
-
<ui5-button icon="employee" accessible-name="Download book">Action Bar Button</ui5-button>
|
|
69
|
-
<ui5-button icon="download"></ui5-button>
|
|
70
|
-
|
|
71
|
-
<ui5-button icon="employee" accessible-name="Download book" class="button4auto">Action Bar Button</ui5-button>
|
|
72
|
-
<ui5-button icon="employee" icon-end accessible-name="Download book" class="button4auto">Action Bar Button</ui5-button>
|
|
73
|
-
|
|
74
|
-
<br />
|
|
75
|
-
<br />
|
|
76
|
-
|
|
77
|
-
<ui5-label id="1download-text">Download Application</ui5-label>
|
|
78
|
-
<ui5-label id="download-text2">From This Button</ui5-label>
|
|
79
|
-
|
|
80
|
-
<ui5-button icon="employee" accessible-name="Help me">Action Bar Button</ui5-button>
|
|
81
|
-
<ui5-button id="buttonAccNameRef" icon="download" accessible-name="Help me" accessible-name-ref="1download-text"></ui5-button>
|
|
82
|
-
|
|
83
|
-
<ui5-button icon="employee" accessible-name-ref="1download-text download-text2">Action Bar Button</ui5-button>
|
|
84
|
-
<ui5-button icon="download" accessible-name-ref="1download-text"></ui5-button>
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
<br/>
|
|
89
|
-
<br/>
|
|
90
|
-
<br/>
|
|
91
|
-
|
|
92
|
-
<ui5-button design="Default" icon="employee">Default</ui5-button>
|
|
93
|
-
<ui5-button disabled design="Default" icon="employee">Default</ui5-button>
|
|
94
|
-
<br/>
|
|
95
|
-
<br/>
|
|
96
|
-
|
|
97
|
-
<ui5-button design="Positive" icon="employee">Agree</ui5-button>
|
|
98
|
-
<ui5-button disabled design="Positive" icon="employee">Agree</ui5-button>
|
|
99
|
-
<br/>
|
|
100
|
-
<br/>
|
|
101
|
-
|
|
102
|
-
<ui5-button design="Negative" icon="employee">Decline</ui5-button>
|
|
103
|
-
<ui5-button disabled design="Negative" icon="employee">Decline</ui5-button>
|
|
104
|
-
<br/>
|
|
105
|
-
<br/>
|
|
106
|
-
|
|
107
|
-
<ui5-button design="Transparent" icon="employee">Transparent</ui5-button>
|
|
108
|
-
<ui5-button disabled design="Transparent" icon="employee">Transparent</ui5-button>
|
|
109
|
-
<br/>
|
|
110
|
-
<br/>
|
|
111
|
-
|
|
112
|
-
<ui5-button design="Emphasized" icon="employee">Emphasized</ui5-button>
|
|
113
|
-
<ui5-button disabled design="Emphasized" icon="employee">Emphasized</ui5-button>
|
|
114
|
-
|
|
115
|
-
<br/>
|
|
116
|
-
<br/>
|
|
117
|
-
<br/>
|
|
118
|
-
<br/>
|
|
119
|
-
<br/>
|
|
120
|
-
|
|
121
|
-
<ui5-button icon-end icon="employee">Icon last</ui5-button>
|
|
122
|
-
<ui5-button icon="employee" id="disabled-button-icon-only" disabled></ui5-button>
|
|
123
|
-
<ui5-button id="disabled-button-without-icon" disabled>Disabled Buton</ui5-button>
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
<ui5-checkbox text="Option A"></ui5-checkbox>
|
|
128
|
-
<ui5-checkbox disabled text="Option A"></ui5-checkbox>
|
|
129
|
-
<br/>
|
|
130
|
-
<ui5-label>"This is a label, this is a label"</ui5-label>
|
|
131
|
-
|
|
132
|
-
<br/>
|
|
133
|
-
<br/>
|
|
134
|
-
<br/>
|
|
135
|
-
<br/>
|
|
136
|
-
<br/>
|
|
137
|
-
|
|
138
|
-
<ui5-toggle-button design="Emphasized">Action Bar Button</ui5-toggle-button>
|
|
139
|
-
<ui5-toggle-button>Primary button</ui5-toggle-button>
|
|
140
|
-
<ui5-toggle-button design="Transparent">Secondary button</ui5-toggle-button>
|
|
141
|
-
<ui5-toggle-button disabled>Inactive</ui5-toggle-button>
|
|
142
|
-
<ui5-toggle-button design="Positive">Agree</ui5-toggle-button>
|
|
143
|
-
<ui5-toggle-button design="Negative">Decline</ui5-toggle-button>
|
|
144
|
-
|
|
145
|
-
<br/>
|
|
146
|
-
<br/>
|
|
147
|
-
<br/>
|
|
148
|
-
|
|
149
|
-
<ui5-toggle-button icon="employee">Action Bar Button</ui5-toggle-button>
|
|
150
|
-
<ui5-toggle-button icon="download"></ui5-toggle-button>
|
|
151
|
-
<ui5-toggle-button icon="download"></ui5-toggle-button>
|
|
152
|
-
|
|
153
|
-
<br/>
|
|
154
|
-
<br/>
|
|
155
|
-
<br/>
|
|
156
|
-
|
|
157
|
-
<ui5-toggle-button design="Default" icon="employee">Default</ui5-toggle-button>
|
|
158
|
-
<ui5-toggle-button disabled design="Default" icon="employee">Default</ui5-toggle-button>
|
|
159
|
-
<br/>
|
|
160
|
-
<br/>
|
|
161
|
-
|
|
162
|
-
<ui5-toggle-button design="Positive" icon="employee">Agree</ui5-toggle-button>
|
|
163
|
-
<ui5-toggle-button disabled design="Positive" icon="employee">Agree</ui5-toggle-button>
|
|
164
|
-
<br/>
|
|
165
|
-
<br/>
|
|
166
|
-
|
|
167
|
-
<ui5-toggle-button design="Negative" icon="employee">Decline</ui5-toggle-button>
|
|
168
|
-
<ui5-toggle-button disabled design="Negative" icon="employee">Decline</ui5-toggle-button>
|
|
169
|
-
<br/>
|
|
170
|
-
<br/>
|
|
171
|
-
|
|
172
|
-
<ui5-toggle-button design="Transparent" icon="employee">Transparent</ui5-toggle-button>
|
|
173
|
-
<ui5-toggle-button disabled design="Transparent" icon="employee">Transparent</ui5-toggle-button>
|
|
174
|
-
<br/>
|
|
175
|
-
<br/>
|
|
176
|
-
|
|
177
|
-
<ui5-toggle-button design="Emphasized" icon="employee">Emphasized</ui5-toggle-button>
|
|
178
|
-
<ui5-toggle-button disabled design="Emphasized" icon="employee">Emphasized</ui5-toggle-button>
|
|
179
|
-
|
|
180
|
-
<br/>
|
|
181
|
-
<br/>
|
|
182
|
-
<ui5-button class="long-button long-button-begin" icon="download">Download</ui5-button>
|
|
183
|
-
<ui5-button class="long-button" icon="download">Download</ui5-button>
|
|
184
|
-
<ui5-button class="long-button long-button-end" icon="download">Download</ui5-button>
|
|
185
|
-
|
|
186
|
-
<br/>
|
|
187
|
-
<br/>
|
|
188
|
-
<ui5-title>Buttons with tooltip</ui5-title>
|
|
189
|
-
<br/>
|
|
190
|
-
<ui5-button id="customTooltip" icon="message-information" tooltip="Go home"></ui5-button>
|
|
191
|
-
<ui5-button icon="accept" tooltip="Accept terms & conditions"></ui5-button>
|
|
192
|
-
<ui5-button icon="action-settings" tooltip="Go to settings"></ui5-button>
|
|
193
|
-
<ui5-button icon="alert" tooltip="Fire an alert"></ui5-button>
|
|
194
|
-
<ui5-button icon="arrow-down" tooltip="Go down"></ui5-button>
|
|
195
|
-
<ui5-button icon="arrow-down" disabled tooltip="Go down"></ui5-button>
|
|
196
|
-
|
|
197
|
-
<br/>
|
|
198
|
-
<br/>
|
|
199
|
-
|
|
200
|
-
<ui5-button id="openDialogButton" design="Emphasized">Show Registration Dialog</ui5-button>
|
|
201
|
-
|
|
202
|
-
<ui5-dialog id="registration-dialog" header-text="Register Form">
|
|
203
|
-
<section class="login-form">
|
|
204
|
-
<div>
|
|
205
|
-
<ui5-label for="username" required>Username: </ui5-label>
|
|
206
|
-
<ui5-input id="username"></ui5-input>
|
|
207
|
-
</div>
|
|
208
|
-
|
|
209
|
-
<div>
|
|
210
|
-
<ui5-label for="password" required>Password: </ui5-label>
|
|
211
|
-
<ui5-input id="password" type="Password" value-state="Error"></ui5-input>
|
|
212
|
-
</div>
|
|
213
|
-
|
|
214
|
-
<div>
|
|
215
|
-
<ui5-label for="email" type="Email" required>Email: </ui5-label>
|
|
216
|
-
<ui5-input id="email"></ui5-input>
|
|
217
|
-
</div>
|
|
218
|
-
|
|
219
|
-
<div>
|
|
220
|
-
<ui5-label for="address">Address: </ui5-label>
|
|
221
|
-
<ui5-input id="address"></ui5-input>
|
|
222
|
-
</div>
|
|
223
|
-
</section>
|
|
224
|
-
|
|
225
|
-
<div slot="footer">
|
|
226
|
-
<div style="flex: 1;"></div>
|
|
227
|
-
<ui5-button id="closeDialogButton" design="Emphasized">Register</ui5-button>
|
|
228
|
-
</div>
|
|
229
|
-
</ui5-dialog>
|
|
230
|
-
<script>
|
|
231
|
-
var clickCounter = document.querySelector("#click-counter");
|
|
232
|
-
var button = document.querySelector("#button1");
|
|
233
|
-
var disabledButton = document.querySelector("#button-disabled");
|
|
234
|
-
var disabledButtonIconOnly = document.querySelector("#disabled-button-icon-only");
|
|
235
|
-
var disabledButtonWithoutIcon = document.querySelector("#disabled-button-without-icon")
|
|
236
|
-
var clickCount = 0;
|
|
237
|
-
|
|
238
|
-
[button, disabledButton, disabledButtonIconOnly, disabledButtonWithoutIcon].forEach(function (el) {
|
|
239
|
-
el.addEventListener("click", function(event) {
|
|
240
|
-
clickCount += 1;
|
|
241
|
-
clickCounter.value = clickCount;
|
|
242
|
-
});
|
|
243
|
-
});
|
|
244
|
-
|
|
245
|
-
button.accessibilityAttributes = {
|
|
246
|
-
expanded: "true"
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
button.addEventListener("click", function(event) {
|
|
250
|
-
button.accessibilityAttributes = {
|
|
251
|
-
expanded: button.accessibilityAttributes.expanded === "true" ? "false" : "true"
|
|
252
|
-
};
|
|
253
|
-
});
|
|
254
|
-
|
|
255
|
-
var dialogOpener = document.getElementById("openDialogButton");
|
|
256
|
-
var dialog = document.getElementById("registration-dialog");
|
|
257
|
-
var dialogCloser = document.getElementById("closeDialogButton");
|
|
258
|
-
|
|
259
|
-
dialogOpener.accessibilityAttributes = {
|
|
260
|
-
hasPopup: "dialog",
|
|
261
|
-
controls: dialog.id,
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
dialogOpener.addEventListener("click", function() {
|
|
265
|
-
dialog.show();
|
|
266
|
-
});
|
|
267
|
-
|
|
268
|
-
dialogCloser.addEventListener("click", function() {
|
|
269
|
-
dialog.close();
|
|
270
|
-
});
|
|
271
|
-
</script>
|
|
272
|
-
</body>
|
|
273
|
-
</html>
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
6
|
-
|
|
7
|
-
<title>Calendar Playground</title>
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
// delete Document.prototype.adoptedStyleSheets;
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<script data-ui5-config type="application/json">
|
|
14
|
-
{
|
|
15
|
-
"language": "EN"
|
|
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/Calendar.50f74bde.css">
|
|
26
|
-
</head>
|
|
27
|
-
<body class="calendar1auto">
|
|
28
|
-
|
|
29
|
-
<section>
|
|
30
|
-
<ui5-label id="selectLabel" label-for="selectionType">Selection type for the first calendar:</ui5-label>
|
|
31
|
-
<ui5-select id="selectionType">
|
|
32
|
-
<ui5-option selected>Single</ui5-option>
|
|
33
|
-
<ui5-option>Multiple</ui5-option>
|
|
34
|
-
<ui5-option>Range</ui5-option>
|
|
35
|
-
</ui5-select>
|
|
36
|
-
<br>
|
|
37
|
-
<ui5-label id="toggleButtonLabel" label-for="weekNumbersButton">Show/hide weeknumbers for the first calendar:</ui5-label>
|
|
38
|
-
<ui5-toggle-button id="weekNumbersButton">hide</ui5-toggle-button>
|
|
39
|
-
|
|
40
|
-
<ui5-calendar id="calendar1"></ui5-calendar>
|
|
41
|
-
<ui5-textarea id="textArea" placeholder="Selected dates..."></ui5-textarea>
|
|
42
|
-
</section>
|
|
43
|
-
|
|
44
|
-
<section>
|
|
45
|
-
<ui5-calendar data-ui5-compact-size></ui5-calendar>
|
|
46
|
-
</section>
|
|
47
|
-
|
|
48
|
-
<section>
|
|
49
|
-
<ui5-calendar id="calendar2" primary-calendar-type='Islamic'></ui5-calendar>
|
|
50
|
-
</section>
|
|
51
|
-
|
|
52
|
-
<section>
|
|
53
|
-
<ui5-calendar id="calendar11" min-date="tomorrow"></ui5-calendar>
|
|
54
|
-
<ui5-calendar id="calendar12" max-date="yesterday"></ui5-calendar>
|
|
55
|
-
<ui5-calendar id="calendar3" min-date="1/7/2020" max-date="21/10/2020" format-pattern="dd/MM/yyyy"></ui5-calendar>
|
|
56
|
-
</section>
|
|
57
|
-
|
|
58
|
-
<section>
|
|
59
|
-
<ui5-title>Calendar with preset dates</ui5-title>
|
|
60
|
-
<ui5-calendar selection-mode="Multiple">
|
|
61
|
-
<ui5-date value="Jan 20, 2021"></ui5-date>
|
|
62
|
-
<ui5-date value="Jan 22, 2021"></ui5-date>
|
|
63
|
-
</ui5-calendar>
|
|
64
|
-
</section>
|
|
65
|
-
|
|
66
|
-
<section>
|
|
67
|
-
<ui5-title>Calendar with Minimum and Maximum Date & Format Pattern</ui5-title>
|
|
68
|
-
<ui5-calendar id="calendar4" data-ui5-compact-size min-date="7/7/2020" max-date="20/10/2020" timestamp="1594080000" format-pattern="dd/MM/yyyy"></ui5-calendar>
|
|
69
|
-
</section>
|
|
70
|
-
|
|
71
|
-
<section>
|
|
72
|
-
<ui5-title> Calendar with no format pattern & ISO min-max dates</ui5-title>
|
|
73
|
-
<ui5-calendar id="calendar6" min-date="2020-10-20" max-date="2023-10-20"></ui5-calendar>
|
|
74
|
-
</section>
|
|
75
|
-
|
|
76
|
-
<section>
|
|
77
|
-
<ui5-title>Calendar with primary and secondary calendar type</ui5-title>
|
|
78
|
-
<ui5-calendar id="calendar5" primary-calendar-type='Islamic' secondary-calendar-type='Gregorian'></ui5-calendar>
|
|
79
|
-
</section>
|
|
80
|
-
|
|
81
|
-
</body>
|
|
82
|
-
|
|
83
|
-
<script>
|
|
84
|
-
const toggleButton = document.getElementById("weekNumbersButton");
|
|
85
|
-
const select = document.getElementById("selectionType");
|
|
86
|
-
const calendar1 = document.getElementById("calendar1");
|
|
87
|
-
const textArea = document.getElementById("textArea");
|
|
88
|
-
|
|
89
|
-
select.addEventListener("ui5-change", function(event) {
|
|
90
|
-
calendar1.setAttribute("selection-mode", event.detail.selectedOption.textContent)
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
toggleButton.addEventListener("click", function(event) {
|
|
94
|
-
calendar1.hideWeekNumbers = event.target.pressed ? true : false;
|
|
95
|
-
toggleButton.innerHTML = event.target.pressed ? "show" : "hide";
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
calendar1.addEventListener("ui5-selected-dates-change", function(event) {
|
|
99
|
-
textArea.setAttribute("value", event.detail.dates.join(", ") + " / " + event.detail.values.join(", "));
|
|
100
|
-
});
|
|
101
|
-
</script>
|
|
102
|
-
|
|
103
|
-
</html>
|