@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,89 +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
|
-
<script>
|
|
8
|
-
// delete Document.prototype.adoptedStyleSheets;
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<script type="module" crossorigin src="/assets/bundle.common.fa62259e.js"></script>
|
|
17
|
-
<link rel="stylesheet" href="/assets/TimePicker.0bfa349e.css">
|
|
18
|
-
</head>
|
|
19
|
-
<body class="timepicker1auto">
|
|
20
|
-
|
|
21
|
-
<div class="samples">
|
|
22
|
-
<div class="sample-box-1">
|
|
23
|
-
<ui5-time-picker id="timepicker" format-pattern="HH:mm:ss"></ui5-time-picker>
|
|
24
|
-
<ui5-time-picker></ui5-time-picker>
|
|
25
|
-
<ui5-time-picker id="timepicker2" format-pattern="hh:mm:ss" value=""></ui5-time-picker>
|
|
26
|
-
<ui5-time-picker id="timepicker3" format-pattern="hh:mm:ss a"></ui5-time-picker>
|
|
27
|
-
<ui5-time-picker id="timepicker4" format-pattern="HH:mm" value="12:05"></ui5-time-picker>
|
|
28
|
-
<ui5-time-picker id="timepicker5" format-pattern="hh:mm:ss" value="12:00:01"></ui5-time-picker>
|
|
29
|
-
<br>
|
|
30
|
-
</div>
|
|
31
|
-
|
|
32
|
-
<div class="sample-box-2">
|
|
33
|
-
<ui5-time-picker class="timepicker2auto"></ui5-time-picker>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
<br /><br />
|
|
38
|
-
<ui5-title>Test "change" event</ui5-title>
|
|
39
|
-
<ui5-time-picker id="timepickerChange" format-pattern="HH:mm" value="12:00"></ui5-time-picker>
|
|
40
|
-
<ui5-input id="changeResult" value="0"></ui5-input>
|
|
41
|
-
|
|
42
|
-
<br /><br />
|
|
43
|
-
<ui5-title>Test "input" event</ui5-title>
|
|
44
|
-
<ui5-time-picker id="timepickerInput"></ui5-time-picker>
|
|
45
|
-
<ui5-input id="inputResult"></ui5-input>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
<br /><br />
|
|
49
|
-
<ui5-title>Test empty value</ui5-title>
|
|
50
|
-
<ui5-time-picker id="timepickerEmptyValue"></ui5-time-picker>
|
|
51
|
-
<ui5-button id="testBtn">btn for testing</ui5-button>
|
|
52
|
-
|
|
53
|
-
<br /><br />
|
|
54
|
-
<ui5-title>Test set time value</ui5-title>
|
|
55
|
-
<ui5-time-picker id="timepickerSetTime" value=""></ui5-time-picker>
|
|
56
|
-
<ui5-button id="setTimeButton">Set time</ui5-button>
|
|
57
|
-
|
|
58
|
-
<ui5-title>Test valueStateMessage slot</ui5-title>
|
|
59
|
-
<ui5-time-picker id="timepickerValueStateMessage" value-state="Error">
|
|
60
|
-
<div slot="valueStateMessage" id="customValueStateMessage">Please provide valid value</div>
|
|
61
|
-
</ui5-time-picker>
|
|
62
|
-
<ui5-button id="testBtn">btn for testing</ui5-button>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
<section class="ui5-content-density-compact">
|
|
66
|
-
<h3>TimePicker in Compact</h3>
|
|
67
|
-
<div>
|
|
68
|
-
<ui5-time-picker></ui5-time-picker>
|
|
69
|
-
</div>
|
|
70
|
-
</section>
|
|
71
|
-
|
|
72
|
-
<script>
|
|
73
|
-
var counter = 0;
|
|
74
|
-
timepickerChange.addEventListener("ui5-change", function() {
|
|
75
|
-
changeResult.value = ++counter;
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
var inputCounter = 0;
|
|
79
|
-
timepickerInput.addEventListener("ui5-input", function() {
|
|
80
|
-
inputResult.value = ++inputCounter;
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
var tp = document.getElementById('timepickerSetTime');
|
|
84
|
-
document.getElementById('setTimeButton').addEventListener("click", function(e) {
|
|
85
|
-
tp.setAttribute("value", tp.formatValue(new Date(2020, 3, 13, 3, 16, 16)));
|
|
86
|
-
});
|
|
87
|
-
</script>
|
|
88
|
-
</body>
|
|
89
|
-
</html>
|
|
@@ -1,31 +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
|
-
<script>
|
|
8
|
-
// delete Document.prototype.adoptedStyleSheets;
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<script type="module" crossorigin src="/assets/bundle.common.fa62259e.js"></script>
|
|
17
|
-
<link rel="stylesheet" href="/assets/TimeSelection.f76266ae.css">
|
|
18
|
-
</head>
|
|
19
|
-
<body class="timeselection1auto">
|
|
20
|
-
<ui5-time-selection id="timepicker" format-pattern="HH:mm:ss"></ui5-time-selection>
|
|
21
|
-
<br><br>
|
|
22
|
-
<ui5-time-selection id="timepicker2" format-pattern="hh:mm:ss" value=""></ui5-time-selection>
|
|
23
|
-
<br><br>
|
|
24
|
-
<ui5-time-selection id="timepicker3" format-pattern="hh:mm:ss a"></ui5-time-selection>
|
|
25
|
-
<br><br>
|
|
26
|
-
<ui5-time-selection id="timepicker4" format-pattern="HH:mm" value="12:05"></ui5-time-selection>
|
|
27
|
-
<br><br>
|
|
28
|
-
<ui5-time-selection id="timepicker5" format-pattern="hh:mm:ss" value="12:00:01"></ui5-time-selection>
|
|
29
|
-
|
|
30
|
-
</body>
|
|
31
|
-
</html>
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
|
|
7
|
-
<title>Title test page</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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<script type="module" crossorigin src="/assets/bundle.common.fa62259e.js"></script>
|
|
17
|
-
<link rel="stylesheet" href="/assets/Title.3d358ef7.css">
|
|
18
|
-
</head>
|
|
19
|
-
|
|
20
|
-
<body class="title1auto">
|
|
21
|
-
<section>
|
|
22
|
-
<ui5-title id="titleH1" level="H1">Title Level 1</ui5-title>
|
|
23
|
-
<ui5-title>Title Level Auto (2)</ui5-title>
|
|
24
|
-
<ui5-title id="titleH2" level="H2">Title Level 2</ui5-title>
|
|
25
|
-
<ui5-title id="titleH3" level="H3">Title Level 3</ui5-title>
|
|
26
|
-
<ui5-title id="titleH4" level="H4">Title Level 4</ui5-title>
|
|
27
|
-
<ui5-title id="titleH5" level="H5">Title Level 5</ui5-title>
|
|
28
|
-
<ui5-title id="titleH6" level="H6">Title Level 6</ui5-title>
|
|
29
|
-
<ui5-title level="H2">A Very Long Long Long Long Title Text with Level Two</ui5-title>
|
|
30
|
-
</section>
|
|
31
|
-
|
|
32
|
-
<section class="wrapping">
|
|
33
|
-
<h2>Wrapping</h2>
|
|
34
|
-
<ui5-title level="H6" id="truncated-title">Truncated Title Lorem Ipsum Dolor, Sit Amet Consectetur Adipisicing Elit. Numquam, Ab.</ui5-title>
|
|
35
|
-
<ui5-title level="H6" wrapping-type="Normal" id="wrapping-title">Wrapping Title Lorem Ipsum Dolor, Sit Amet Consectetur Adipisicing Elit. Numquam, Ab.</ui5-title>
|
|
36
|
-
</section>
|
|
37
|
-
|
|
38
|
-
<section>
|
|
39
|
-
<h2>Usage With ui5-link</h2>
|
|
40
|
-
<ui5-title level="H3">
|
|
41
|
-
<ui5-link design="Default">With Default Link (57)</ui5-link>
|
|
42
|
-
</ui5-title>
|
|
43
|
-
<ui5-title level="H3">
|
|
44
|
-
<ui5-link design="Emphasized">With Emphasized Link (58)</ui5-link>
|
|
45
|
-
</ui5-title>
|
|
46
|
-
<ui5-title level="H3">
|
|
47
|
-
<ui5-link design="Subtle">With Subtle Link (59)</ui5-link>
|
|
48
|
-
</ui5-title>
|
|
49
|
-
<div class="wrapping">
|
|
50
|
-
<h2>Wrapping With Link</h2>
|
|
51
|
-
<ui5-title level="H6">
|
|
52
|
-
<ui5-link design="Default">Truncated With Link (60) Lorem Ipsum Dolor, Sit Amet Consectetur Adipisicing Elit. Numquam, Ab.</ui5-link>
|
|
53
|
-
</ui5-title>
|
|
54
|
-
<ui5-title level="H6" wrapping-type="Normal">
|
|
55
|
-
<ui5-link design="Default">Wrapping With Link (61) Lorem Ipsum Dolor, Sit Amet Consectetur Adipisicing Elit. Numquam, Ab.</ui5-link>
|
|
56
|
-
</ui5-title>
|
|
57
|
-
</div>
|
|
58
|
-
</section>
|
|
59
|
-
</body>
|
|
60
|
-
</html>
|
|
@@ -1,111 +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
|
-
<title>ui5-toast</title>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<script>// delete Document.prototype.adoptedStyleSheets;</script>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<script type="module" crossorigin src="/assets/bundle.common.fa62259e.js"></script>
|
|
15
|
-
<link rel="stylesheet" href="/assets/Toast.d7517578.css">
|
|
16
|
-
</head>
|
|
17
|
-
|
|
18
|
-
<body>
|
|
19
|
-
|
|
20
|
-
<ui5-title>Toast ( ui5-toast )</ui5-title>
|
|
21
|
-
|
|
22
|
-
<!--TopStart-->
|
|
23
|
-
<ui5-button id="wcBtnShowToastTS">Show TopStart Toast</ui5-button>
|
|
24
|
-
<ui5-toast id="wcToastTS" placement="TopStart">TopStart</ui5-toast>
|
|
25
|
-
|
|
26
|
-
<br>
|
|
27
|
-
|
|
28
|
-
<!--TopCenter-->
|
|
29
|
-
<ui5-button id="wcBtnShowToastTC">Show TopCenter Toast</ui5-button>
|
|
30
|
-
<ui5-toast id="wcToastTC" placement="TopCenter">TopCenter</ui5-toast>
|
|
31
|
-
|
|
32
|
-
<br>
|
|
33
|
-
|
|
34
|
-
<!--TopEnd-->
|
|
35
|
-
<ui5-button id="wcBtnShowToastTE">Show TopEnd Toast</ui5-button>
|
|
36
|
-
<ui5-toast id="wcToastTE" duration="-1" placement="TopEnd">TopEnd</ui5-toast>
|
|
37
|
-
|
|
38
|
-
<br>
|
|
39
|
-
|
|
40
|
-
<!--MiddleStart-->
|
|
41
|
-
<ui5-button id="wcBtnShowToastMS">Show MiddleStart Toast</ui5-button>
|
|
42
|
-
<ui5-toast id="wcToastMS" duration="500" placement="MiddleStart">MiddleStart</ui5-toast>
|
|
43
|
-
|
|
44
|
-
<br>
|
|
45
|
-
|
|
46
|
-
<!--MiddleCenter-->
|
|
47
|
-
<ui5-button id="wcBtnShowToastMC">Show MiddleCenter Toast</ui5-button>
|
|
48
|
-
<ui5-toast id="wcToastMC" placement="MiddleCenter">MiddleCenter</ui5-toast>
|
|
49
|
-
|
|
50
|
-
<br>
|
|
51
|
-
|
|
52
|
-
<!--MiddleEnd-->
|
|
53
|
-
<ui5-button id="wcBtnShowToastME">Show MiddleEnd Toast</ui5-button>
|
|
54
|
-
<ui5-toast id="wcToastME" duration="1500" placement="MiddleEnd">MiddleEnd</ui5-toast>
|
|
55
|
-
|
|
56
|
-
<br>
|
|
57
|
-
|
|
58
|
-
<!--BottomStart-->
|
|
59
|
-
<ui5-button id="wcBtnShowToastBS">Show BottomStart Toast</ui5-button>
|
|
60
|
-
<ui5-toast id="wcToastBS" duration="10000" placement="BottomStart">BottomStart</ui5-toast>
|
|
61
|
-
|
|
62
|
-
<br>
|
|
63
|
-
|
|
64
|
-
<!--BottomCenter-->
|
|
65
|
-
<ui5-button id="wcBtnShowToastBC">Show BottomCenter Toast</ui5-button>
|
|
66
|
-
<ui5-toast id="wcToastBC">BottomCenter</ui5-toast>
|
|
67
|
-
|
|
68
|
-
<br>
|
|
69
|
-
|
|
70
|
-
<!--BottomEnd-->
|
|
71
|
-
<ui5-button id="wcBtnShowToastBE">Show BottomEnd Toast</ui5-button>
|
|
72
|
-
<ui5-toast id="wcToastBE" placement="BottomEnd">BottomEnd</ui5-toast>
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
<!--Toast and Dialog-->
|
|
76
|
-
<ui5-dialog id="dialog">
|
|
77
|
-
<div>Hello World</div>
|
|
78
|
-
<ui5-button id="btnDialog2">Close Dialog</ui5-button>
|
|
79
|
-
|
|
80
|
-
<ui5-button id="btnToastInDialog">Open Toast</ui5-button>
|
|
81
|
-
<ui5-toast id="toastInDialog" placement="BottomEnd">Toast</ui5-toast>
|
|
82
|
-
</ui5-dialog>
|
|
83
|
-
|
|
84
|
-
<h3>Test Dialog and Toast</h3>
|
|
85
|
-
<ui5-button id="btnDialog">Open Dialog</ui5-button>
|
|
86
|
-
|
|
87
|
-
<script>
|
|
88
|
-
|
|
89
|
-
// Attaching click listeners to the buttons which show the toasts
|
|
90
|
-
document.querySelectorAll("ui5-button").forEach(function(button){
|
|
91
|
-
button.addEventListener('click', function () {
|
|
92
|
-
document.querySelector("#" + button.id.replace("BtnShow", "")).show();
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
btnDialog.addEventListener('click', function () {
|
|
97
|
-
dialog.show();
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
btnDialog2.addEventListener('click', function () {
|
|
101
|
-
dialog.close();
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
btnToastInDialog.addEventListener('click', function () {
|
|
105
|
-
toastInDialog.show();
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
</script>
|
|
109
|
-
|
|
110
|
-
</body>
|
|
111
|
-
</html>
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
|
|
7
|
-
<title>ToggleButton</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>
|
|
12
|
-
// delete Document.prototype.adoptedStyleSheets
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<script data-ui5-config type="application/json">
|
|
16
|
-
{
|
|
17
|
-
"language": "EN"
|
|
18
|
-
}
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<script type="module" crossorigin src="/assets/bundle.common.fa62259e.js"></script>
|
|
27
|
-
<link rel="stylesheet" href="/assets/ToggleButton.666e069a.css">
|
|
28
|
-
</head>
|
|
29
|
-
|
|
30
|
-
<body class="togglebutton1auto">
|
|
31
|
-
|
|
32
|
-
<header class="header">
|
|
33
|
-
<h1 class="header-title">ui5-toggle-button</h1>
|
|
34
|
-
</header>
|
|
35
|
-
|
|
36
|
-
<section class="main">
|
|
37
|
-
<div class="samples">
|
|
38
|
-
<h2>ToggleButton states</h2>
|
|
39
|
-
<div class="sample" id="main-sample">
|
|
40
|
-
<ui5-toggle-button class="toggleButton" id="toggle-button" pressed>ToggleButton</ui5-toggle-button>
|
|
41
|
-
<ui5-toggle-button class="toggleButton" pressed>Pressed ToggleButton</ui5-toggle-button>
|
|
42
|
-
<ui5-toggle-button class="toggleButton" disabled id="disabled-toggle-button">Disabled ToggleButton</ui5-toggle-button>
|
|
43
|
-
<ui5-toggle-button class="toggleButton" disabled pressed>Disabled ToggleButton</ui5-toggle-button>
|
|
44
|
-
<ui5-toggle-button class="toggleButton" design="Positive">Accept ToggleButton</ui5-toggle-button>
|
|
45
|
-
<ui5-toggle-button class="toggleButton" design="Positive" pressed>Accept ToggleButton</ui5-toggle-button>
|
|
46
|
-
<ui5-toggle-button class="toggleButton" design="Negative">Reject ToggleButton</ui5-toggle-button>
|
|
47
|
-
<ui5-toggle-button class="toggleButton" design="Negative" pressed>Reject ToggleButton</ui5-toggle-button>
|
|
48
|
-
<ui5-toggle-button class="toggleButton" design="Transparent">Transparent ToggleButton</ui5-toggle-button>
|
|
49
|
-
<ui5-toggle-button class="toggleButton" design="Transparent" pressed>Transparent ToggleButton</ui5-toggle-button>
|
|
50
|
-
<ui5-toggle-button class="toggleButton" design="Emphasized">Emphasized ToggleButton</ui5-toggle-button>
|
|
51
|
-
<ui5-toggle-button class="toggleButton" design="Emphasized" pressed>Emphasized ToggleButton</ui5-toggle-button>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
<div class="result">
|
|
55
|
-
<h2>Result</h2>
|
|
56
|
-
<span id="click-result"></span>
|
|
57
|
-
</div>
|
|
58
|
-
</section>
|
|
59
|
-
|
|
60
|
-
<script>
|
|
61
|
-
var clickResult = document.getElementById("click-result");
|
|
62
|
-
|
|
63
|
-
Array.prototype.slice.call(document.querySelectorAll(".toggleButton")).forEach(function (el) {
|
|
64
|
-
el.addEventListener("click", function (event) {
|
|
65
|
-
clickResult.innerHTML = event.target.textContent + ": " + (event.target.pressed);
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
</script>
|
|
70
|
-
</body>
|
|
71
|
-
</html>
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
|
|
7
|
-
<title>Tokenizer</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/Tokenizer.09a50163.css">
|
|
20
|
-
</head>
|
|
21
|
-
|
|
22
|
-
<body>
|
|
23
|
-
<div class="wrapper">
|
|
24
|
-
|
|
25
|
-
<ui5-segmented-button id="theme-switch">
|
|
26
|
-
<ui5-segmented-button-item data-ui5-theme-name="sap_horizon" selected>Morning</ui5-segmented-button-item>
|
|
27
|
-
<ui5-segmented-button-item data-ui5-theme-name="sap_horizon_dark">Evening</ui5-segmented-button-item>
|
|
28
|
-
<ui5-segmented-button-item data-ui5-theme-name="sap_horizon_hcb">HCB</ui5-segmented-button-item>
|
|
29
|
-
<ui5-segmented-button-item data-ui5-theme-name="sap_horizon_hcw">HCW</ui5-segmented-button-item>
|
|
30
|
-
</ui5-segmented-button>
|
|
31
|
-
|
|
32
|
-
<div class="row">
|
|
33
|
-
<div class="col"></div>
|
|
34
|
-
<div class="col">Compact</div>
|
|
35
|
-
<div class="col">Cozy</div>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
<div class="row">
|
|
39
|
-
<div class="col">Regular</div>
|
|
40
|
-
<div class="col sapUiSizeCompact">
|
|
41
|
-
<ui5-tokenizer show-more>
|
|
42
|
-
<ui5-token text="Token"></ui5-token>
|
|
43
|
-
<ui5-token text="Token 2"></ui5-token>
|
|
44
|
-
<ui5-token text="Token 3"></ui5-token>
|
|
45
|
-
<ui5-token text="Token 4"></ui5-token>
|
|
46
|
-
<ui5-token text="Token 5"></ui5-token>
|
|
47
|
-
</ui5-tokenizer>
|
|
48
|
-
</div>
|
|
49
|
-
<div class="col">
|
|
50
|
-
<ui5-tokenizer show-more>
|
|
51
|
-
<ui5-token text="Token"></ui5-token>
|
|
52
|
-
<ui5-token text="Token 2"></ui5-token>
|
|
53
|
-
<ui5-token text="Token 3"></ui5-token>
|
|
54
|
-
<ui5-token text="Token 4"></ui5-token>
|
|
55
|
-
<ui5-token text="Token 5"></ui5-token>
|
|
56
|
-
</ui5-tokenizer>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
|
|
60
|
-
<div class="row">
|
|
61
|
-
<div class="col">Selected on First Token</div>
|
|
62
|
-
<div class="col sapUiSizeCompact">
|
|
63
|
-
<ui5-tokenizer show-more>
|
|
64
|
-
<ui5-token selected text="Token"></ui5-token>
|
|
65
|
-
<ui5-token text="Token 2"></ui5-token>
|
|
66
|
-
<ui5-token text="Token 3"></ui5-token>
|
|
67
|
-
<ui5-token text="Token 4"></ui5-token>
|
|
68
|
-
<ui5-token text="Token 5"></ui5-token>
|
|
69
|
-
</ui5-tokenizer>
|
|
70
|
-
</div>
|
|
71
|
-
<div class="col">
|
|
72
|
-
<ui5-tokenizer show-more>
|
|
73
|
-
<ui5-token selected text="Token"></ui5-token>
|
|
74
|
-
<ui5-token text="Token 2"></ui5-token>
|
|
75
|
-
<ui5-token text="Token 3"></ui5-token>
|
|
76
|
-
<ui5-token text="Token 4"></ui5-token>
|
|
77
|
-
<ui5-token text="Token 5"></ui5-token>
|
|
78
|
-
</ui5-tokenizer>
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
|
|
83
|
-
<script>
|
|
84
|
-
|
|
85
|
-
document.getElementById("theme-switch").addEventListener("ui5-selection-change", event => {
|
|
86
|
-
window["sap-ui-webcomponents-bundle"].configuration.setTheme(event.detail.selectedItem.getAttribute("data-ui5-theme-name"));
|
|
87
|
-
});
|
|
88
|
-
</script>
|
|
89
|
-
</body>
|
|
90
|
-
|
|
91
|
-
</html>
|