@ui5/webcomponents 1.15.1 → 1.16.0-rc.0
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/CHANGELOG.md +11 -0
- package/LICENSE.txt +201 -0
- package/dist/ProgressIndicator.d.ts +10 -0
- package/dist/ProgressIndicator.js +3 -0
- package/dist/ProgressIndicator.js.map +1 -1
- package/dist/api.json +1 -1
- package/dist/assets/test/pages/ComboBox.html.b1886e2d.js +1 -0
- package/dist/assets/test/pages/Icon.html.5c84a641.js +1 -0
- package/dist/assets/test/pages/Label.html.89122b02.js +4 -0
- package/dist/assets/test/pages/Popups.html.ef68fcd5.js +1 -0
- package/dist/custom-elements.json +1 -1
- package/dist/generated/templates/ProgressIndicatorTemplate.lit.js +1 -1
- package/dist/generated/templates/ProgressIndicatorTemplate.lit.js.map +1 -1
- package/dist/test/pages/72override.html +33 -0
- package/dist/test/pages/AnimanitionOff.html +52 -0
- package/dist/test/pages/Avatar.html +264 -0
- package/dist/test/pages/AvatarGroup.html +376 -0
- package/dist/test/pages/Badge.html +75 -0
- package/dist/test/pages/Breadcrumbs.html +239 -0
- package/dist/test/pages/BusyIndicator.html +278 -0
- package/dist/test/pages/Button.html +280 -0
- package/dist/test/pages/Calendar.html +103 -0
- package/dist/test/pages/Card.html +348 -0
- package/dist/test/pages/Carousel.html +613 -0
- package/dist/test/pages/CheckBox.html +90 -0
- package/dist/test/pages/ColorPalette.html +126 -0
- package/dist/test/pages/ColorPalettePopover.html +141 -0
- package/dist/test/pages/ColorPicker.html +66 -0
- package/dist/test/pages/ComboBox.html +302 -0
- package/dist/test/pages/Components.html +106 -0
- package/dist/test/pages/CoreControls.html +203 -0
- package/dist/test/pages/CoreControls_exp.html +203 -0
- package/dist/test/pages/CustomCSS.html +55 -0
- package/dist/test/pages/DatePicker.html +211 -0
- package/dist/test/pages/DatePicker_test_page.html +109 -0
- package/dist/test/pages/DateRangePicker.html +67 -0
- package/dist/test/pages/DateTimePicker.html +199 -0
- package/dist/test/pages/DateTimePicker_Timezone.html +72 -0
- package/dist/test/pages/DayPicker.html +37 -0
- package/dist/test/pages/Dialog.html +813 -0
- package/dist/test/pages/DialogLifecycle.html +62 -0
- package/dist/test/pages/DialogSemantic.html +58 -0
- package/dist/test/pages/Eventing.html +33 -0
- package/dist/test/pages/F6Test1.html +42 -0
- package/dist/test/pages/F6Test2.html +42 -0
- package/dist/test/pages/F6Test3.html +39 -0
- package/dist/test/pages/F6Test4.html +46 -0
- package/dist/test/pages/F6Test5.html +42 -0
- package/dist/test/pages/F6Test6.html +39 -0
- package/dist/test/pages/F6Test7.html +36 -0
- package/dist/test/pages/FileUploader.html +138 -0
- package/dist/test/pages/FontFace.html +21 -0
- package/dist/test/pages/FormComponents.html +76 -0
- package/dist/test/pages/FormSupport.html +59 -0
- package/dist/test/pages/HCB.html +45 -0
- package/dist/test/pages/Icon.html +278 -0
- package/dist/test/pages/Icon_and_theming.html +67 -0
- package/dist/test/pages/Icon_custom.html +26 -0
- package/dist/test/pages/Input.html +731 -0
- package/dist/test/pages/InputFieldLabels.html +355 -0
- package/dist/test/pages/InputFieldMinWidth.html +230 -0
- package/dist/test/pages/InputIcons.html +80 -0
- package/dist/test/pages/Input_quickview.html +204 -0
- package/dist/test/pages/InputsAlignment.html +131 -0
- package/dist/test/pages/InputsLazyLoading.html +244 -0
- package/dist/test/pages/ItemNavigation.html +94 -0
- package/dist/test/pages/Kitchen.html +637 -0
- package/dist/test/pages/Kitchen.openui5.html +571 -0
- package/dist/test/pages/Label.html +192 -0
- package/dist/test/pages/Link.html +201 -0
- package/dist/test/pages/List.html +465 -0
- package/dist/test/pages/ListGrowing_Button.html +64 -0
- package/dist/test/pages/ListGrowing_Scroll.html +93 -0
- package/dist/test/pages/List_keyboard_support.html +130 -0
- package/dist/test/pages/List_test_page.html +413 -0
- package/dist/test/pages/LitKeyFunction.html +40 -0
- package/dist/test/pages/MemoryLeak.html +78 -0
- package/dist/test/pages/Menu.html +161 -0
- package/dist/test/pages/MessagePage.html +39 -0
- package/dist/test/pages/MessageStrip.html +55 -0
- package/dist/test/pages/MultiComboBox.html +500 -0
- package/dist/test/pages/MultiInput.html +485 -0
- package/dist/test/pages/MultiInput_Suggestions.html +161 -0
- package/dist/test/pages/OpenUI5-second.html +60 -0
- package/dist/test/pages/OpenUI5.html +104 -0
- package/dist/test/pages/OpenUI5Nightly.html +83 -0
- package/dist/test/pages/Panel.html +226 -0
- package/dist/test/pages/Popover.html +658 -0
- package/dist/test/pages/PopoverArrowBounds.html +52 -0
- package/dist/test/pages/Popups.html +131 -0
- package/dist/test/pages/ProgressIndicator.html +154 -0
- package/dist/test/pages/RTL.html +118 -0
- package/dist/test/pages/RadioButton.html +201 -0
- package/dist/test/pages/RangeSlider.html +96 -0
- package/dist/test/pages/RatingIndicator.html +117 -0
- package/dist/test/pages/ResizeHandler.html +74 -0
- package/dist/test/pages/ResponsivePopover.html +267 -0
- package/dist/test/pages/SegmentedButton.html +151 -0
- package/dist/test/pages/Select.html +272 -0
- package/dist/test/pages/Simple.html +25 -0
- package/dist/test/pages/Slider.html +79 -0
- package/dist/test/pages/SplitButton.html +127 -0
- package/dist/test/pages/StepInput.html +189 -0
- package/dist/test/pages/Switch.html +97 -0
- package/dist/test/pages/TabContainer.html +904 -0
- package/dist/test/pages/Table-perf-pure.html +73 -0
- package/dist/test/pages/Table-perf.html +76 -0
- package/dist/test/pages/Table.html +2808 -0
- package/dist/test/pages/Table2.html +53 -0
- package/dist/test/pages/TableAllPopin.html +228 -0
- package/dist/test/pages/TableCustomStyling.html +89 -0
- package/dist/test/pages/TableGrouping.html +109 -0
- package/dist/test/pages/TableGrowingWithButton.html +805 -0
- package/dist/test/pages/TableGrowingWithScroll.html +801 -0
- package/dist/test/pages/TableSelection.html +445 -0
- package/dist/test/pages/Test.html +15 -0
- package/dist/test/pages/TextArea.html +222 -0
- package/dist/test/pages/TimePicker.html +89 -0
- package/dist/test/pages/TimePickerClock.html +90 -0
- package/dist/test/pages/TimeSelection.html +31 -0
- package/dist/test/pages/TimeSelectionClocks.html +64 -0
- package/dist/test/pages/Title.html +60 -0
- package/dist/test/pages/Toast.html +111 -0
- package/dist/test/pages/ToggleButton.html +71 -0
- package/dist/test/pages/Tokenizer.html +91 -0
- package/dist/test/pages/Tree.html +307 -0
- package/dist/test/pages/TreeDynamic.html +56 -0
- package/dist/test/pages/WheelSlider_Test_Page.html +26 -0
- package/dist/test/pages/base/AriaLabelHelper.html +334 -0
- package/dist/test/pages/base/DOMObserver.html +20 -0
- package/dist/test/pages/base/IconCollection.html +23 -0
- package/dist/test/pages/base/IconCollectionInCustomTheme.html +25 -0
- package/dist/test/pages/base/IgnoreCustomElements.html +26 -0
- package/dist/test/pages/base/InvisibleMessage.html +44 -0
- package/dist/test/pages/form.html +123 -0
- package/dist/test/pages/i18n-defaultLang.html +31 -0
- package/dist/test/pages/i18n-demo.html +79 -0
- package/package.json +9 -8
- package/src/ProgressIndicator.hbs +1 -0
|
@@ -0,0 +1,151 @@
|
|
|
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>ui5-segmented-button</title>
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
<script>// delete Document.prototype.adoptedStyleSheets;</script>
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
<script type="module" crossorigin src="/assets/bundle.common.cd5b5590.js"></script>
|
|
18
|
+
<link rel="stylesheet" href="/assets/SegmentedButton.654bc4ab.css">
|
|
19
|
+
</head>
|
|
20
|
+
|
|
21
|
+
<body>
|
|
22
|
+
<header class="header">
|
|
23
|
+
<h1 class="header-title">ui5-segmented-button</h1>
|
|
24
|
+
</header>
|
|
25
|
+
|
|
26
|
+
<section class="main">
|
|
27
|
+
<div class="samples">
|
|
28
|
+
<h2>Segmentedbutton example</h2>
|
|
29
|
+
<div class="sample" id="main-sample">
|
|
30
|
+
<ui5-segmented-button id="segButtonSingle">
|
|
31
|
+
<ui5-segmented-button-item>Item</ui5-segmented-button-item>
|
|
32
|
+
</ui5-segmented-button>
|
|
33
|
+
|
|
34
|
+
<section>
|
|
35
|
+
<ui5-segmented-button id="segButton1">
|
|
36
|
+
<ui5-segmented-button-item tooltip="Employee" icon="employee" pressed></ui5-segmented-button-item>
|
|
37
|
+
<ui5-segmented-button-item>SegmentedButtonItem</ui5-segmented-button-item>
|
|
38
|
+
<ui5-segmented-button-item>Item</ui5-segmented-button-item>
|
|
39
|
+
</ui5-segmented-button>
|
|
40
|
+
</section>
|
|
41
|
+
|
|
42
|
+
<section>
|
|
43
|
+
<h1>Example with 4 items</h1>
|
|
44
|
+
|
|
45
|
+
<ui5-segmented-button id="segButtonMulti" mode="MultiSelect">
|
|
46
|
+
<ui5-segmented-button-item>Item</ui5-segmented-button-item>
|
|
47
|
+
<ui5-segmented-button-item>Item</ui5-segmented-button-item>
|
|
48
|
+
<ui5-segmented-button-item>Click</ui5-segmented-button-item>
|
|
49
|
+
<ui5-segmented-button-item pressed>Pressed SegmentedButtonItem</ui5-segmented-button-item>
|
|
50
|
+
</ui5-segmented-button>
|
|
51
|
+
</section>
|
|
52
|
+
|
|
53
|
+
<section>
|
|
54
|
+
<h1>Example with 5 items</h1>
|
|
55
|
+
|
|
56
|
+
<ui5-segmented-button id="segButton2">
|
|
57
|
+
<ui5-segmented-button-item pressed>Word</ui5-segmented-button-item>
|
|
58
|
+
<ui5-segmented-button-item pressed>Pressed SegmentedButtonItem With Bigger Text</ui5-segmented-button-item>
|
|
59
|
+
<ui5-segmented-button-item pressed>Item</ui5-segmented-button-item>
|
|
60
|
+
<ui5-segmented-button-item pressed>Pressed SegmentedButtonItem</ui5-segmented-button-item>
|
|
61
|
+
<ui5-segmented-button-item pressed>A</ui5-segmented-button-item>
|
|
62
|
+
</ui5-segmented-button>
|
|
63
|
+
</section>
|
|
64
|
+
|
|
65
|
+
<section>
|
|
66
|
+
<h1>Example with Icons and custom width</h1>
|
|
67
|
+
|
|
68
|
+
<ui5-segmented-button class="segmentedbutton1auto">
|
|
69
|
+
<ui5-segmented-button-item icon="employee"></ui5-segmented-button-item>
|
|
70
|
+
<ui5-segmented-button-item icon="menu" pressed></ui5-segmented-button-item>
|
|
71
|
+
<ui5-segmented-button-item icon="factory"></ui5-segmented-button-item>
|
|
72
|
+
</ui5-segmented-button>
|
|
73
|
+
</section>
|
|
74
|
+
|
|
75
|
+
<section>
|
|
76
|
+
<h1>SegmentedButton with 100% width</h1>
|
|
77
|
+
|
|
78
|
+
<ui5-segmented-button class="segmentedbutton2auto">
|
|
79
|
+
<ui5-segmented-button-item pressed>Pressed SegmentedButtonItem</ui5-segmented-button-item>
|
|
80
|
+
<ui5-segmented-button-item>SegmentedButtonItem</ui5-segmented-button-item>
|
|
81
|
+
<ui5-segmented-button-item>SegmentedButtonItem</ui5-segmented-button-item>
|
|
82
|
+
</ui5-segmented-button>
|
|
83
|
+
</section>
|
|
84
|
+
|
|
85
|
+
<section>
|
|
86
|
+
<h1>SegmentedButton wrapped in a container with set width</h1>
|
|
87
|
+
<div class="segmentedbutton1auto">
|
|
88
|
+
<ui5-segmented-button class="segmentedbutton2auto">
|
|
89
|
+
<ui5-segmented-button-item icon="employee" pressed></ui5-segmented-button-item>
|
|
90
|
+
<ui5-segmented-button-item icon="menu"></ui5-segmented-button-item>
|
|
91
|
+
<ui5-segmented-button-item icon="accept"></ui5-segmented-button-item>
|
|
92
|
+
</ui5-segmented-button>
|
|
93
|
+
</div>
|
|
94
|
+
</section>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</section>
|
|
98
|
+
|
|
99
|
+
<section>
|
|
100
|
+
<h3>Initial focus test</h3>
|
|
101
|
+
<p>the focus should go to the first item</p>
|
|
102
|
+
<ui5-button id="button1">Press</ui5-button>
|
|
103
|
+
<ui5-segmented-button id="testSB1">
|
|
104
|
+
<ui5-segmented-button-item id="testSB1ToggleBtn" icon="employee"></ui5-segmented-button-item>
|
|
105
|
+
<ui5-segmented-button-item icon="menu"></ui5-segmented-button-item>
|
|
106
|
+
<ui5-segmented-button-item icon="accept"></ui5-segmented-button-item>
|
|
107
|
+
</ui5-segmented-button>
|
|
108
|
+
<ui5-button id="button2">Press</ui5-button>
|
|
109
|
+
<ui5-segmented-button id="testSB2">
|
|
110
|
+
<ui5-segmented-button-item icon="employee"></ui5-segmented-button-item>
|
|
111
|
+
<ui5-segmented-button-item id="testSB2ToggleBtn" icon="menu" pressed></ui5-segmented-button-item>
|
|
112
|
+
<ui5-segmented-button-item icon="accept"></ui5-segmented-button-item>
|
|
113
|
+
</ui5-segmented-button>
|
|
114
|
+
</section>
|
|
115
|
+
|
|
116
|
+
<section>
|
|
117
|
+
<h3>Programatical change test</h3>
|
|
118
|
+
<ui5-segmented-button id="segButtonProg">
|
|
119
|
+
<ui5-segmented-button-item id="sbpItem1" pressed>First</ui5-segmented-button-item>
|
|
120
|
+
<ui5-segmented-button-item id="sbpItem2">Second</ui5-segmented-button-item>
|
|
121
|
+
<ui5-segmented-button-item id="sbpItem3">Third</ui5-segmented-button-item>
|
|
122
|
+
</ui5-segmented-button>
|
|
123
|
+
<ui5-button id="progSetButton1">Press second item</ui5-button>
|
|
124
|
+
<ui5-button id="progSetButton2">Press multiple items</ui5-button>
|
|
125
|
+
<ui5-button id="progSetButton3">Press pressed item</ui5-button>
|
|
126
|
+
<ui5-button id="progSetButton4">Press first item</ui5-button>
|
|
127
|
+
</section>
|
|
128
|
+
|
|
129
|
+
<script>
|
|
130
|
+
|
|
131
|
+
progSetButton1.addEventListener("click", function() {
|
|
132
|
+
segButtonProg.items[1].pressed = true;
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
progSetButton2.addEventListener("click", function() {
|
|
136
|
+
segButtonProg.items[0].pressed = true;
|
|
137
|
+
segButtonProg.items[2].pressed = true;
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
progSetButton3.addEventListener("click", function() {
|
|
141
|
+
segButtonProg.selectedItem.pressed = true;
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
progSetButton4.addEventListener("click", function() {
|
|
145
|
+
segButtonProg.items[0].pressed = true;
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
</script>
|
|
149
|
+
|
|
150
|
+
</body>
|
|
151
|
+
</html>
|
|
@@ -0,0 +1,272 @@
|
|
|
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
|
+
<title>ui5-select</title>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
// delete Document.prototype.adoptedStyleSheets;
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
<script type="module" crossorigin src="/assets/bundle.common.cd5b5590.js"></script>
|
|
18
|
+
<link rel="stylesheet" href="/assets/Select.e17517bf.css">
|
|
19
|
+
</head>
|
|
20
|
+
|
|
21
|
+
<body class="select1auto">
|
|
22
|
+
<ui5-toggle-button id="myBtn">turn lights</ui5-toggle-button>
|
|
23
|
+
<ui5-button id="add-items-btn">Add new Items</ui5-button>
|
|
24
|
+
<ui5-button id="restore-items-btn">Restore Items</ui5-button>
|
|
25
|
+
<ui5-button id="myBtn2">click</ui5-button>
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
<h2>Content size</h2>
|
|
29
|
+
<ui5-label id="lblResult"></ui5-label>
|
|
30
|
+
<ui5-select id="mySelect">
|
|
31
|
+
<ui5-option id="firstOption" selected>Cozy</ui5-option>
|
|
32
|
+
<ui5-option selected>Compact</ui5-option>
|
|
33
|
+
<ui5-option selected>Condensed</ui5-option>
|
|
34
|
+
</ui5-select>
|
|
35
|
+
|
|
36
|
+
<h2>Change prevention</h2>
|
|
37
|
+
<ui5-select id="selectPrevent">
|
|
38
|
+
<ui5-option>Cozy</ui5-option>
|
|
39
|
+
<ui5-option>Compact</ui5-option>
|
|
40
|
+
<ui5-option selected>Condensed</ui5-option>
|
|
41
|
+
</ui5-select>
|
|
42
|
+
|
|
43
|
+
<h2>Error Select</h2>
|
|
44
|
+
<ui5-select id="errorSelect" value-state="Error">
|
|
45
|
+
<ui5-option selected>Cozy</ui5-option>
|
|
46
|
+
<ui5-option selected>Compact</ui5-option>
|
|
47
|
+
<ui5-option selected>Condensed</ui5-option>
|
|
48
|
+
</ui5-select>
|
|
49
|
+
|
|
50
|
+
<h2>Warning Select</h2>
|
|
51
|
+
<ui5-select id="warningSelect" value-state="Warning">
|
|
52
|
+
<ui5-option>This option has text bigger than ui5-select's width</ui5-option>
|
|
53
|
+
<div slot="valueStateMessage">Information message. This is a <a href="#test1">Link</a>. Extra long text used as an information message. Extra long text used as an information message - 2. Extra long text used as an information message - 3.</div>
|
|
54
|
+
|
|
55
|
+
</ui5-select>
|
|
56
|
+
|
|
57
|
+
<h2>Success Select</h2>
|
|
58
|
+
<ui5-select id="successSelect" value-state="Success">
|
|
59
|
+
<ui5-option selected>Cozy</ui5-option>
|
|
60
|
+
<ui5-option selected>Compact</ui5-option>
|
|
61
|
+
<ui5-option selected>Condensed</ui5-option>
|
|
62
|
+
</ui5-select>
|
|
63
|
+
|
|
64
|
+
<h2>Success Select</h2>
|
|
65
|
+
<ui5-select id="infoSelect" value-state="Information">
|
|
66
|
+
<ui5-option selected>Cozy</ui5-option>
|
|
67
|
+
<ui5-option selected>Compact</ui5-option>
|
|
68
|
+
<ui5-option selected>Condensed</ui5-option>
|
|
69
|
+
</ui5-select>
|
|
70
|
+
|
|
71
|
+
<h2>Disabled Select</h2>
|
|
72
|
+
<ui5-select id="mySelect4" disabled value-state="Success"></ui5-select>
|
|
73
|
+
|
|
74
|
+
<h2> Input with suggestions</h2>
|
|
75
|
+
<ui5-input id="myInput" show-suggestions placeholder="Search for a country ..."></ui5-input>
|
|
76
|
+
|
|
77
|
+
<h2>Selection not cycling</h2>
|
|
78
|
+
<ui5-select id="selectionNotCycling">
|
|
79
|
+
<ui5-option>Opt1</ui5-option>
|
|
80
|
+
<ui5-option>Opt2</ui5-option>
|
|
81
|
+
<ui5-option selected>Opt3</ui5-option>
|
|
82
|
+
</ui5-select>
|
|
83
|
+
|
|
84
|
+
<ui5-select id="selectionNotCycling2">
|
|
85
|
+
<ui5-option selected>Opt1</ui5-option>
|
|
86
|
+
<ui5-option>Opt2</ui5-option>
|
|
87
|
+
<ui5-option>Opt3</ui5-option>
|
|
88
|
+
</ui5-select>
|
|
89
|
+
|
|
90
|
+
<ui5-select id="mySelectEsc">
|
|
91
|
+
<ui5-option>Cozy</ui5-option>
|
|
92
|
+
<ui5-option selected>Compact</ui5-option>
|
|
93
|
+
<ui5-option>Condensed</ui5-option>
|
|
94
|
+
</ui5-select>
|
|
95
|
+
|
|
96
|
+
<ui5-select id="keyboardHandling">
|
|
97
|
+
<ui5-option>Banana</ui5-option>
|
|
98
|
+
<ui5-option selected>Orange</ui5-option>
|
|
99
|
+
<ui5-option>Watermelon</ui5-option>
|
|
100
|
+
</ui5-select>
|
|
101
|
+
|
|
102
|
+
<h2> Change event counter holder</h2>
|
|
103
|
+
<ui5-input id="inputResult"></ui5-input>
|
|
104
|
+
|
|
105
|
+
<h2> Open event counter holder</h2>
|
|
106
|
+
<ui5-input id="inputResultOpen"></ui5-input>
|
|
107
|
+
|
|
108
|
+
<h2> Close event counter holder</h2>
|
|
109
|
+
<ui5-input id="inputResultClose"></ui5-input>
|
|
110
|
+
|
|
111
|
+
<section>
|
|
112
|
+
<h3>Select aria-label and aria-labelledby</h3>
|
|
113
|
+
<span id="infoText">info text</span>
|
|
114
|
+
<div>
|
|
115
|
+
<ui5-select id="textAreaAriaLabel" accessible-name="Hello World">
|
|
116
|
+
<ui5-option selected>First</ui5-option>
|
|
117
|
+
<ui5-option selected>Second</ui5-option>
|
|
118
|
+
<ui5-option selected>Third</ui5-option>
|
|
119
|
+
</ui5-select>
|
|
120
|
+
|
|
121
|
+
<ui5-select id="textAreaAriaLabelledBy" accessible-name-ref="infoText">
|
|
122
|
+
<ui5-option selected>One</ui5-option>
|
|
123
|
+
<ui5-option selected>Two</ui5-option>
|
|
124
|
+
<ui5-option selected>Three</ui5-option>
|
|
125
|
+
</ui5-select>
|
|
126
|
+
</div>
|
|
127
|
+
</section>
|
|
128
|
+
|
|
129
|
+
<section class="ui5-content-density-compact">
|
|
130
|
+
<h3>Select in Compact</h3>
|
|
131
|
+
<div>
|
|
132
|
+
<ui5-select>
|
|
133
|
+
<ui5-option selected>Cozy</ui5-option>
|
|
134
|
+
<ui5-option selected>Compact</ui5-option>
|
|
135
|
+
<ui5-option selected>Condensed</ui5-option>
|
|
136
|
+
</ui5-select>
|
|
137
|
+
</div>
|
|
138
|
+
</section>
|
|
139
|
+
|
|
140
|
+
<section>
|
|
141
|
+
<h2>Select with a disabled option</h2>
|
|
142
|
+
<ui5-select id="mySelect5">
|
|
143
|
+
<ui5-option disabled>Cozy</ui5-option>
|
|
144
|
+
<ui5-option selected>Compact</ui5-option>
|
|
145
|
+
<ui5-option>Condensed</ui5-option>
|
|
146
|
+
</ui5-select>
|
|
147
|
+
</section>
|
|
148
|
+
|
|
149
|
+
<section>
|
|
150
|
+
<h2>Select with additional text</h2>
|
|
151
|
+
<ui5-select id="mySelect6">
|
|
152
|
+
<ui5-option additional-text="DZ">Algeria</ui5-option>
|
|
153
|
+
<ui5-option selected additional-text="AR">Argentina</ui5-option>
|
|
154
|
+
<ui5-option additional-text="AU">Australia</ui5-option>
|
|
155
|
+
</ui5-select>
|
|
156
|
+
</section>
|
|
157
|
+
</body>
|
|
158
|
+
<script>
|
|
159
|
+
var countries = [{ key: "Aus", text: "Australia" }, { key: "Aruba", text: "Aruba" }, { key: "Antigua", text: "Antigua and Barbuda" }, { key: "Bel", text: "Belgium" }, { key: "Bg", text: "Bulgaria" }, { key: "Bra", text: "Brazil" }];
|
|
160
|
+
var new_countries = [{ key: "Aus", text: "Australia1" }, { key: "Aruba", text: "Aruba1" }, { key: "Antigua", text: "Antigua and Barbuda1" }, { key: "Bel", text: "Belgium1" }, { key: "Bg", text: "Bulgaria1" }, { key: "Bra", text: "Brazil1" }];
|
|
161
|
+
var sap_database_entries = [{ key: "Afg", text: "Afghanistan" }, { key: "Arg", text: "Argentina" }, { key: "Alb", text: "Albania" }, { key: "Arm", text: "Armenia" }, { key: "Alg", text: "Algeria" }, { key: "And", text: "Andorra" }, { key: "Ang", text: "Angola" }, { key: "Ast", text: "Austria" }, { key: "Aus", text: "Australia" }, { key: "Aze", text: "Azerbaijan" }, { key: "Aruba", text: "Aruba" }, { key: "Antigua", text: "Antigua and Barbuda" }, { key: "Bel", text: "Belarus" }, { key: "Bel", text: "Belgium" }, { key: "Bg", text: "Bulgaria" }, { key: "Bra", text: "Brazil" }, { key: "Ch", text: "China" }, { key: "Cub", text: "Cuba" }, { key: "Chil", text: "Chili" }, { key: "Lat", text: "Latvia" }, { key: "Lit", text: "Litva" }, { key: "Prt", text: "Portugal" }, { key: "Sen", text: "Senegal" }, { key: "Ser", text: "Serbia" }, { key: "Afg", text: "Seychelles" }, { key: "Sierra", text: "Sierra Leone" }, { key: "Sgp", text: "Singapore" }, { key: "Sint", text: "Sint Maarten" }, { key: "Slv", text: "Slovakia" }, { key: "Slo", text: "Slovenia" }];
|
|
162
|
+
|
|
163
|
+
var btn = document.getElementById('myBtn');
|
|
164
|
+
var addItemsBtn = document.getElementById('add-items-btn');
|
|
165
|
+
var restoreItemsBtn = document.getElementById('restore-items-btn');
|
|
166
|
+
var input = document.getElementById('myInput');
|
|
167
|
+
var inputResult = document.getElementById('inputResult');
|
|
168
|
+
var inputResultOpen = document.getElementById('inputResultOpen');
|
|
169
|
+
var inputResultClose = document.getElementById('inputResultClose');
|
|
170
|
+
var select = document.getElementById('mySelect');
|
|
171
|
+
var select2 = document.getElementById('errorSelect');
|
|
172
|
+
var select3 = document.getElementById('warningSelect');
|
|
173
|
+
var lbl = document.getElementById('lblResult');
|
|
174
|
+
var counter = 0;
|
|
175
|
+
var counterOpen = 0;
|
|
176
|
+
var counterClose = 0;
|
|
177
|
+
|
|
178
|
+
// Select
|
|
179
|
+
|
|
180
|
+
selectPrevent.addEventListener("ui5-change", function(e) {
|
|
181
|
+
e.preventDefault();
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
select.addEventListener("ui5-change", function(e) {
|
|
185
|
+
lbl.innerHTML = "selected item :: " + e.detail.selectedOption.textContent + " :: " + (++counter);
|
|
186
|
+
inputResult.value = counter;
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
select.addEventListener("change", function(e) {
|
|
190
|
+
console.log("Select change event fired", e);
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
select.addEventListener("ui5-open", function(e) {
|
|
194
|
+
++counterOpen;
|
|
195
|
+
inputResultOpen.value = counterOpen;
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
select.addEventListener("ui5-close", function(e) {
|
|
199
|
+
++counterClose;
|
|
200
|
+
inputResultClose.value = counterClose
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
select2.addEventListener("ui5-change", function(e) {
|
|
204
|
+
++counter;
|
|
205
|
+
inputResult.value = counter;
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
// Input with Suggestions
|
|
209
|
+
input.addEventListener("ui5-input", function (event) {
|
|
210
|
+
var value = event.target.value;
|
|
211
|
+
var suggestionItems = [];
|
|
212
|
+
|
|
213
|
+
if (value) {
|
|
214
|
+
suggestionItems = sap_database_entries.filter(function (item) {
|
|
215
|
+
return item.text.toUpperCase().indexOf(value.toUpperCase()) === 0;
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
while (input.firstChild) {
|
|
220
|
+
input.removeChild(input.firstChild);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
suggestionItems.forEach(function(item) {
|
|
224
|
+
var li = document.createElement("ui5-li");
|
|
225
|
+
li.id = item.key;
|
|
226
|
+
li.textContent = item.text;
|
|
227
|
+
input.appendChild(li);
|
|
228
|
+
});
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
// HCB button
|
|
233
|
+
btn.addEventListener("click", function(event) {
|
|
234
|
+
var hcb = event.target.pressed;
|
|
235
|
+
var styles = hcb ? "background:#333;color:palegoldenrod;" : "background:#fff;color:#333;";
|
|
236
|
+
var theme = hcb ? "sap_belize_hcb" : "sap_fiori_3";
|
|
237
|
+
|
|
238
|
+
document.body.setAttribute("style", styles);
|
|
239
|
+
var Conf = window["sap-ui-webcomponents-bundle"].configuration;
|
|
240
|
+
Conf.setTheme(theme);
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
countries.forEach(function(item, idx) {
|
|
244
|
+
var li = document.createElement("ui5-option");
|
|
245
|
+
li.id = item.key;
|
|
246
|
+
|
|
247
|
+
if (idx === 0) {
|
|
248
|
+
li.selected = true;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
li.textContent = item.text;
|
|
252
|
+
select3.appendChild(li);
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
var initialItemsHTML = "";
|
|
256
|
+
|
|
257
|
+
addItemsBtn.addEventListener("click", function(event) {
|
|
258
|
+
initialItemsHTML = select.innerHTML;
|
|
259
|
+
|
|
260
|
+
var li = document.createElement('ui5-option');
|
|
261
|
+
|
|
262
|
+
li.textContent = "New";
|
|
263
|
+
|
|
264
|
+
select.innerHTML = "";
|
|
265
|
+
select.appendChild(li);
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
restoreItemsBtn.addEventListener("click", function(event) {
|
|
269
|
+
select.innerHTML = initialItemsHTML;
|
|
270
|
+
});
|
|
271
|
+
</script>
|
|
272
|
+
</html>
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<script type="module" crossorigin src="/assets/bundle.common.cd5b5590.js"></script>
|
|
17
|
+
<link rel="stylesheet" href="/assets/Simple.02bd88fc.css">
|
|
18
|
+
</head>
|
|
19
|
+
|
|
20
|
+
<body class="simple1auto">
|
|
21
|
+
|
|
22
|
+
<ui5-icon name="add"></ui5-icon>
|
|
23
|
+
|
|
24
|
+
</body>
|
|
25
|
+
</html>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
|
|
7
|
+
<title>UI5 Slider</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
|
+
<script>// delete Document.prototype.adoptedStyleSheets;</script>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<script type="module" crossorigin src="/assets/bundle.common.cd5b5590.js"></script>
|
|
25
|
+
<link rel="stylesheet" href="/assets/Slider.1416b3bb.css">
|
|
26
|
+
</head>
|
|
27
|
+
|
|
28
|
+
<body class="slider1auto">
|
|
29
|
+
<section class="group">
|
|
30
|
+
<h2>Basic Slider</h2>
|
|
31
|
+
<ui5-slider id="basic-slider" accessible-name="Basic Slider" min="0" max="10"></ui5-slider>
|
|
32
|
+
|
|
33
|
+
<h2>Basic Slider with tooltip</h2>
|
|
34
|
+
<ui5-slider id="basic-slider-with-tooltip" min="0" max="20" show-tooltip></ui5-slider>
|
|
35
|
+
|
|
36
|
+
<h2>Disabled Slider with tickmarks and labels</h2>
|
|
37
|
+
<ui5-slider id="disabled-slider-with-tickmarks" min="20" max="100" value="30" label-interval="5" disabled show-tickmarks></ui5-slider>
|
|
38
|
+
|
|
39
|
+
<h2>Slider with tickmarks</h2>
|
|
40
|
+
<ui5-slider id="tickmarks-slider" min="0" max="100" step="2" show-tickmarks value="12"></ui5-slider>
|
|
41
|
+
|
|
42
|
+
<h2>Slider with many steps and small width</h2>
|
|
43
|
+
<ui5-slider id="small-slider" min="0" max="100" step="1" class="slider2auto"></ui5-slider>
|
|
44
|
+
<ui5-slider id="small-slider-two" min="0" max="200" step="1" class="slider3auto" show-tooltip></ui5-slider>
|
|
45
|
+
|
|
46
|
+
<h2>Inactive slider with no steps and tooltip</h2>
|
|
47
|
+
<ui5-slider id="inactive-slider" min="-10" max="90" step="0" show-tooltip></ui5-slider>
|
|
48
|
+
|
|
49
|
+
<h2 class="slider4auto">Slider with steps, tooltips, tickmarks and labels</h2>
|
|
50
|
+
<ui5-slider id="slider-tickmarks-labels" min="-20" max="20" step="2" value="12" show-tooltip label-interval="2" show-tickmarks class="slider5auto"></ui5-slider>
|
|
51
|
+
|
|
52
|
+
<h2>Slider with float number step (1.25), tooltips, tickmarks and labels between 3 steps (3.75 value)</h2>
|
|
53
|
+
<ui5-slider id="slider-tickmarks-tooltips-labels" min="-12.5" max="47.5" step="1.25" value="10" show-tooltip label-interval="3" show-tickmarks></ui5-slider>
|
|
54
|
+
|
|
55
|
+
<h2>Basic RTL Slider</h2>
|
|
56
|
+
<ui5-slider id="basic-slider-rtl" min="0" max="10" dir="rtl"></ui5-slider>
|
|
57
|
+
</section>
|
|
58
|
+
|
|
59
|
+
<section class="group">
|
|
60
|
+
<h2>Event Testing Slider</h2>
|
|
61
|
+
<ui5-slider id="test-slider" min="0" max="10"></ui5-slider>
|
|
62
|
+
<h2>Event Testing Result Slider</h2>
|
|
63
|
+
<ui5-slider id="test-result-slider" value="1"></ui5-slider>
|
|
64
|
+
</section>
|
|
65
|
+
|
|
66
|
+
<script>
|
|
67
|
+
const eventTargetSlider = document.getElementById("test-slider");
|
|
68
|
+
const eventResultSlider = document.getElementById("test-result-slider");
|
|
69
|
+
|
|
70
|
+
eventTargetSlider.addEventListener("ui5-input", () => {
|
|
71
|
+
eventResultSlider.setAttribute("value", parseInt(eventResultSlider.getAttribute("value")) + 1);
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
eventTargetSlider.addEventListener("ui5-change", () => {
|
|
75
|
+
eventResultSlider.setAttribute("value", parseInt(eventResultSlider.getAttribute("value")) + 1);
|
|
76
|
+
});
|
|
77
|
+
</script>
|
|
78
|
+
</body>
|
|
79
|
+
</html>
|
|
@@ -0,0 +1,127 @@
|
|
|
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>ui5-split-button</title>
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
<script type="module" crossorigin src="/assets/bundle.common.cd5b5590.js"></script>
|
|
16
|
+
<link rel="stylesheet" href="/assets/SplitButton.d2e2e966.css">
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<header class="header">
|
|
21
|
+
<h1 class="header-title">ui5-split-button</h1>
|
|
22
|
+
</header>
|
|
23
|
+
|
|
24
|
+
<header class="header">
|
|
25
|
+
<h3 class="header-title">Button Types</h3>
|
|
26
|
+
</header>
|
|
27
|
+
<div class="samples-margin">
|
|
28
|
+
<ui5-split-button id="sbDefault" design="Default">Default</ui5-split-button>
|
|
29
|
+
<ui5-split-button id="sbEmphasized" design="Emphasized">Emphasized</ui5-split-button>
|
|
30
|
+
<ui5-split-button id="sbPositive" design="Positive">Positive</ui5-split-button>
|
|
31
|
+
<ui5-split-button id="sbNegative" design="Negative">Negative</ui5-split-button>
|
|
32
|
+
<ui5-split-button id="sbAttention" design="Attention">Attention</ui5-split-button>
|
|
33
|
+
<ui5-split-button id="sbTransparent" design="Transparent">Transparent</ui5-split-button>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<header class="header">
|
|
37
|
+
<h3 class="header-title">Disabled Buttons</h3>
|
|
38
|
+
</header>
|
|
39
|
+
<div class="samples-margin">
|
|
40
|
+
<ui5-split-button id="sbDisabled" design="Default" disabled>Default</ui5-split-button>
|
|
41
|
+
<ui5-split-button design="Emphasized" disabled>Emphasized</ui5-split-button>
|
|
42
|
+
<ui5-split-button design="Positive" disabled>Positive</ui5-split-button>
|
|
43
|
+
<ui5-split-button design="Negative" disabled>Negative</ui5-split-button>
|
|
44
|
+
<ui5-split-button design="Attention" disabled>Attention</ui5-split-button>
|
|
45
|
+
<ui5-split-button design="Transparent" disabled>Transparent</ui5-split-button>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<header class="header">
|
|
49
|
+
<h3 class="header-title">Icons</h3>
|
|
50
|
+
</header>
|
|
51
|
+
<div class="samples-margin">
|
|
52
|
+
<ui5-split-button id="sbTextIcon" icon="add">Icon</ui5-split-button>
|
|
53
|
+
<ui5-split-button id="sbTextActiveIcon" active-icon="accept">Active Icon</ui5-split-button>
|
|
54
|
+
<ui5-split-button id="sbTextIconActiveIcon" icon="add" active-icon="accept">Icon + Active Icon</ui5-split-button>
|
|
55
|
+
<ui5-split-button icon="text-color"></ui5-split-button>
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
<header class="header">
|
|
59
|
+
<h3 class="header-title">Event Display</h3>
|
|
60
|
+
</header>
|
|
61
|
+
<div class="samples-margin">
|
|
62
|
+
<ui5-input id="displayEvent" style="width: 100px"></ui5-input> on <ui5-input id="displayElement" style="width: 100px"></ui5-input>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<header class="header">
|
|
66
|
+
<h3 class="header-title">Text Direction</h3>
|
|
67
|
+
</header>
|
|
68
|
+
<div class="samples-margin">
|
|
69
|
+
<ui5-switch id="direction" text-on="RTL" text-off="LTR"></ui5-switch>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<h3>Test textContent</h3>
|
|
73
|
+
<ui5-split-button id="emptySpBtn" design="Default"></ui5-split-button>
|
|
74
|
+
<ui5-split-button id="defaultSpBtn" design="Default">Default</ui5-split-button>
|
|
75
|
+
|
|
76
|
+
<ui5-split-button id="splitBtnWithMenuDefaultActionDefaultAction" design="Default">openMenu</ui5-split-button>
|
|
77
|
+
<ui5-menu id="menu">
|
|
78
|
+
<ui5-menu-item text="New File" accessible-name="Opens a file explorer" additional-text="Ctrl+Alt+Shift+N" icon="add-document"></ui5-menu-item>
|
|
79
|
+
<ui5-menu-item text="New Folder with very long title for a menu item" additional-text="Ctrl+F" icon="add-folder" disabled></ui5-menu-item>
|
|
80
|
+
</ui5-menu>
|
|
81
|
+
|
|
82
|
+
<ui5-split-button id="splitBtnWithMenuWithAssociatedLastAction" design="Default">openMenu</ui5-split-button>
|
|
83
|
+
<ui5-menu id="menuInSplitBtnAssociatedLastAction">
|
|
84
|
+
<ui5-menu-item text="Edit" icon="add"></ui5-menu-item>
|
|
85
|
+
<ui5-menu-item text="Save" icon="save"></ui5-menu-item>
|
|
86
|
+
<ui5-menu-item text="Delete" icon="delete"></ui5-menu-item>
|
|
87
|
+
</ui5-menu>
|
|
88
|
+
</body>
|
|
89
|
+
<script>
|
|
90
|
+
var displayEvent = document.getElementById("displayEvent"),
|
|
91
|
+
displayElement = document.getElementById("displayElement"),
|
|
92
|
+
directionSwitch = document.getElementById("direction");
|
|
93
|
+
|
|
94
|
+
document.querySelectorAll("ui5-split-button").forEach(function(item) {
|
|
95
|
+
item.addEventListener("ui5-click", displayEventDetails);
|
|
96
|
+
item.addEventListener("ui5-arrow-click", displayEventDetails);
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
splitBtnWithMenuDefaultActionDefaultAction.addEventListener("ui5-arrow-click", function() {
|
|
100
|
+
menu.open ? menu.close() : menu.showAt(splitBtnWithMenuDefaultActionDefaultAction);
|
|
101
|
+
})
|
|
102
|
+
|
|
103
|
+
splitBtnWithMenuWithAssociatedLastAction.addEventListener("ui5-arrow-click", function() {
|
|
104
|
+
menuInSplitBtnAssociatedLastAction.open ?
|
|
105
|
+
menuInSplitBtnAssociatedLastAction.close() :
|
|
106
|
+
menuInSplitBtnAssociatedLastAction.showAt(splitBtnWithMenuWithAssociatedLastAction)
|
|
107
|
+
})
|
|
108
|
+
|
|
109
|
+
menuInSplitBtnAssociatedLastAction.addEventListener("ui5-item-click", function(event) {
|
|
110
|
+
splitBtnWithMenuWithAssociatedLastAction.innerText = event.detail.text;
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
direction.addEventListener("ui5-change", function() {
|
|
114
|
+
document.body.setAttribute("dir", direction.checked ? "rtl" : "ltr");
|
|
115
|
+
window["sap-ui-webcomponents-bundle"].applyDirection();
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
function displayEventDetails(event) {
|
|
119
|
+
displayEvent.value = event.type;
|
|
120
|
+
displayElement.value = event.target.textContent;
|
|
121
|
+
setTimeout(function() {
|
|
122
|
+
displayEvent.value = "";
|
|
123
|
+
displayElement.value = "";
|
|
124
|
+
}, 1000);
|
|
125
|
+
}
|
|
126
|
+
</script>
|
|
127
|
+
</html>
|