@ui5/webcomponents 1.9.2 → 1.9.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/.dev-server-port +1 -0
- package/CHANGELOG.md +19 -0
- package/LICENSE.txt +201 -0
- package/dist/AvatarGroup.js +2 -19
- package/dist/TabContainer.js +3 -3
- package/dist/TreeItem.js +5 -5
- package/dist/TreeItemBase.js +12 -11
- package/dist/TreeItemCustom.js +5 -5
- package/dist/api.json +1 -1
- package/dist/assets/test/pages/72override.html.dda35518.css +1 -0
- package/dist/assets/test/pages/AnimanitionOff.html.b7566ecc.css +1 -0
- package/dist/assets/test/pages/Avatar.html.62cc0573.css +1 -0
- package/dist/assets/test/pages/AvatarGroup.html.20647fe1.css +1 -0
- package/dist/assets/test/pages/Badge.html.bcc1c9a3.css +1 -0
- package/dist/assets/test/pages/Breadcrumbs.html.5753069f.css +1 -0
- package/dist/assets/test/pages/BusyIndicator.html.ce95c23c.css +1 -0
- package/dist/assets/test/pages/Button.html.957848f0.css +1 -0
- package/dist/assets/test/pages/Calendar.html.9ff42e30.css +1 -0
- package/dist/assets/test/pages/Card.html.8c5e4756.css +1 -0
- package/dist/assets/test/pages/Carousel.html.fcdd32a7.css +1 -0
- package/dist/assets/test/pages/CheckBox.html.08ae630d.css +1 -0
- package/dist/assets/test/pages/ColorPalette.html.8c4c4ca3.css +1 -0
- package/dist/assets/test/pages/ColorPalettePopover.html.727f90e2.css +1 -0
- package/dist/assets/test/pages/ColorPicker.html.cc0c0d29.css +1 -0
- package/dist/assets/test/pages/ComboBox.html.14fbc3aa.css +1 -0
- package/dist/assets/test/pages/ComboBox.html.2c2a9927.js +1 -0
- package/dist/assets/test/pages/Components.html.b41617c5.css +1 -0
- package/dist/assets/test/pages/CoreControls.html.dabd050c.css +1 -0
- package/dist/assets/test/pages/CoreControls_exp.html.46ab2dc9.css +1 -0
- package/dist/assets/test/pages/CustomCSS.html.4d6e9b1f.css +1 -0
- package/dist/assets/test/pages/DatePicker.html.e667d0b8.css +1 -0
- package/dist/assets/test/pages/DatePicker_test_page.html.882ab55e.css +1 -0
- package/dist/assets/test/pages/DateRangePicker.html.1b5072fd.css +1 -0
- package/dist/assets/test/pages/DateTimePicker.html.eff0e2e0.css +1 -0
- package/dist/assets/test/pages/DayPicker.html.5700622a.css +1 -0
- package/dist/assets/test/pages/Dialog.html.329cb1dc.css +1 -0
- package/dist/assets/test/pages/DialogLifecycle.html.e4ac6ba2.css +1 -0
- package/dist/assets/test/pages/DialogSemantic.html.f61ec13d.css +1 -0
- package/dist/assets/test/pages/DurationPicker.html.92ecf486.css +1 -0
- package/dist/assets/test/pages/Eventing.html.cd934528.css +1 -0
- package/dist/assets/test/pages/FileUploader.html.30b8cbbd.css +1 -0
- package/dist/assets/test/pages/FormSupport.html.4e02207b.css +1 -0
- package/dist/assets/test/pages/HCB.html.d458990b.css +1 -0
- package/dist/assets/test/pages/Icon.html.87536fdd.js +1 -0
- package/dist/assets/test/pages/Icon.html.be3b1acc.css +1 -0
- package/dist/assets/test/pages/Input.html.85ce57b4.css +1 -0
- package/dist/assets/test/pages/Input_quickview.html.86df3de3.css +1 -0
- package/dist/assets/test/pages/InputsAlignment.html.5c5593c2.css +1 -0
- package/dist/assets/test/pages/ItemNavigation.html.f5758aae.css +1 -0
- package/dist/assets/test/pages/Kitchen.html.d0d90fc6.css +1 -0
- package/dist/assets/test/pages/Kitchen.openui5.html.910e3d52.css +1 -0
- package/dist/assets/test/pages/Label.html.7c2bcd8f.js +4 -0
- package/dist/assets/test/pages/Label.html.e994dc8e.css +1 -0
- package/dist/assets/test/pages/Link.html.d4c480d9.css +1 -0
- package/dist/assets/test/pages/List.html.65a3c4b3.css +1 -0
- package/dist/assets/test/pages/ListGrowing_Button.html.49bbaf80.css +1 -0
- package/dist/assets/test/pages/ListGrowing_Scroll.html.841dd1ed.css +1 -0
- package/dist/assets/test/pages/List_keyboard_support.html.a7297baf.css +1 -0
- package/dist/assets/test/pages/List_test_page.html.356d4e16.css +1 -0
- package/dist/assets/test/pages/LitKeyFunction.html.f3f9d649.css +1 -0
- package/dist/assets/test/pages/MemoryLeak.html.35d77e5e.css +1 -0
- package/dist/assets/test/pages/Menu.html.a758a26d.css +1 -0
- package/dist/assets/test/pages/MessagePage.html.30ffc162.css +1 -0
- package/dist/assets/test/pages/MessageStrip.html.8c2c85d5.css +1 -0
- package/dist/assets/test/pages/MultiComboBox.html.f06e18eb.css +1 -0
- package/dist/assets/test/pages/MultiInput.html.1c75cdc2.css +1 -0
- package/dist/assets/test/pages/MultiInput_Suggestions.html.79cd0348.css +1 -0
- package/dist/assets/test/pages/OpenUI5.html.cf1daa05.css +1 -0
- package/dist/assets/test/pages/Panel.html.399730d1.css +1 -0
- package/dist/assets/test/pages/Popover.html.87315ecf.css +1 -0
- package/dist/assets/test/pages/PopoverArrowBounds.html.c1e5feb1.css +1 -0
- package/dist/assets/test/pages/Popups.html.80f57dca.js +1 -0
- package/dist/assets/test/pages/Popups.html.bb021765.css +1 -0
- package/dist/assets/test/pages/ProgressIndicator.html.d61b0c53.css +1 -0
- package/dist/assets/test/pages/RTL.html.dbeca857.css +1 -0
- package/dist/assets/test/pages/RadioButton.html.ccfd1850.css +1 -0
- package/dist/assets/test/pages/RangeSlider.html.437a9174.css +1 -0
- package/dist/assets/test/pages/RatingIndicator.html.737cd73b.css +1 -0
- package/dist/assets/test/pages/ResizeHandler.html.ed7c5d20.css +1 -0
- package/dist/assets/test/pages/ResponsivePopover.html.6f67ae07.css +1 -0
- package/dist/assets/test/pages/SegmentedButton.html.8678479b.css +1 -0
- package/dist/assets/test/pages/Select.html.9c98a470.css +1 -0
- package/dist/assets/test/pages/Simple.html.8f2ddb30.css +1 -0
- package/dist/assets/test/pages/Slider.html.8ea10965.css +1 -0
- package/dist/assets/test/pages/SplitButton.html.5c992973.css +1 -0
- package/dist/assets/test/pages/StepInput.html.f22c112d.css +1 -0
- package/dist/assets/test/pages/Switch.html.a4f3262f.css +1 -0
- package/dist/assets/test/pages/TabContainer.html.7f2ade15.css +1 -0
- package/dist/assets/test/pages/Table-perf-pure.html.fce52e4b.css +1 -0
- package/dist/assets/test/pages/Table-perf.html.88634378.css +1 -0
- package/dist/assets/test/pages/Table.html.c43386f4.css +1 -0
- package/dist/assets/test/pages/Table2.html.aca0c111.css +1 -0
- package/dist/assets/test/pages/TableAllPopin.html.ad586de4.css +1 -0
- package/dist/assets/test/pages/TableCustomStyling.html.a85167d6.css +1 -0
- package/dist/assets/test/pages/TableGrouping.html.602ae2ad.css +1 -0
- package/dist/assets/test/pages/TableGrowingWithButton.html.5a39b2bf.css +1 -0
- package/dist/assets/test/pages/TableGrowingWithScroll.html.8ef93d31.css +1 -0
- package/dist/assets/test/pages/TableSelection.html.dba2d678.css +1 -0
- package/dist/assets/test/pages/TextArea.html.f8e10fd6.css +1 -0
- package/dist/assets/test/pages/TimePicker.html.9a4bb300.css +1 -0
- package/dist/assets/test/pages/TimeSelection.html.8ad57759.css +1 -0
- package/dist/assets/test/pages/Title.html.7bb51811.css +1 -0
- package/dist/assets/test/pages/Toast.html.47a93be2.css +1 -0
- package/dist/assets/test/pages/ToggleButton.html.3b7dbb8c.css +1 -0
- package/dist/assets/test/pages/Tree.html.74fe2a1d.css +1 -0
- package/dist/assets/test/pages/WheelSlider_Test_Page.html.8a9a5e49.css +1 -0
- package/dist/assets/test/pages/form.html.f0f82118.css +1 -0
- package/dist/assets/test/pages/i18n-defaultLang.html.b9d79c6b.css +1 -0
- package/dist/assets/test/pages/i18n-demo.html.c6751b5c.css +1 -0
- package/dist/test/pages/72override.html +33 -0
- package/dist/test/pages/AnimanitionOff.html +52 -0
- package/dist/test/pages/Avatar.html +265 -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 +255 -0
- package/dist/test/pages/Button.html +267 -0
- package/dist/test/pages/Calendar.html +96 -0
- package/dist/test/pages/Card.html +347 -0
- package/dist/test/pages/Carousel.html +574 -0
- package/dist/test/pages/CheckBox.html +76 -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 +279 -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 +193 -0
- package/dist/test/pages/DatePicker_test_page.html +97 -0
- package/dist/test/pages/DateRangePicker.html +64 -0
- package/dist/test/pages/DateTimePicker.html +190 -0
- package/dist/test/pages/DayPicker.html +37 -0
- package/dist/test/pages/Dialog.html +667 -0
- package/dist/test/pages/DialogLifecycle.html +62 -0
- package/dist/test/pages/DialogSemantic.html +59 -0
- package/dist/test/pages/DurationPicker.html +76 -0
- package/dist/test/pages/Eventing.html +33 -0
- package/dist/test/pages/FileUploader.html +138 -0
- package/dist/test/pages/FormSupport.html +59 -0
- package/dist/test/pages/HCB.html +45 -0
- package/dist/test/pages/Icon.html +257 -0
- package/dist/test/pages/Icon_custom.html +26 -0
- package/dist/test/pages/Input.html +722 -0
- package/dist/test/pages/InputFieldMinWidth.html +72 -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 +638 -0
- package/dist/test/pages/Kitchen.openui5.html +570 -0
- package/dist/test/pages/Label.html +161 -0
- package/dist/test/pages/Link.html +201 -0
- package/dist/test/pages/List.html +432 -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 +132 -0
- package/dist/test/pages/List_test_page.html +334 -0
- package/dist/test/pages/LitKeyFunction.html +40 -0
- package/dist/test/pages/MemoryLeak.html +78 -0
- package/dist/test/pages/Menu.html +79 -0
- package/dist/test/pages/MessagePage.html +39 -0
- package/dist/test/pages/MessageStrip.html +55 -0
- package/dist/test/pages/MultiComboBox.html +446 -0
- package/dist/test/pages/MultiInput.html +409 -0
- package/dist/test/pages/MultiInput_Suggestions.html +161 -0
- package/dist/test/pages/OpenUI5.html +83 -0
- package/dist/test/pages/Panel.html +227 -0
- package/dist/test/pages/Popover.html +614 -0
- package/dist/test/pages/PopoverArrowBounds.html +54 -0
- package/dist/test/pages/Popups.html +133 -0
- package/dist/test/pages/ProgressIndicator.html +151 -0
- package/dist/test/pages/RTL.html +118 -0
- package/dist/test/pages/RadioButton.html +201 -0
- package/dist/test/pages/RangeSlider.html +69 -0
- package/dist/test/pages/RatingIndicator.html +97 -0
- package/dist/test/pages/ResizeHandler.html +74 -0
- package/dist/test/pages/ResponsivePopover.html +204 -0
- package/dist/test/pages/SegmentedButton.html +116 -0
- package/dist/test/pages/Select.html +240 -0
- package/dist/test/pages/Simple.html +34 -0
- package/dist/test/pages/Slider.html +79 -0
- package/dist/test/pages/SplitButton.html +100 -0
- package/dist/test/pages/StepInput.html +164 -0
- package/dist/test/pages/Switch.html +88 -0
- package/dist/test/pages/TabContainer.html +876 -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 +205 -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/TextArea.html +212 -0
- package/dist/test/pages/TimePicker.html +81 -0
- package/dist/test/pages/TimeSelection.html +31 -0
- package/dist/test/pages/Title.html +37 -0
- package/dist/test/pages/Toast.html +111 -0
- package/dist/test/pages/ToggleButton.html +69 -0
- package/dist/test/pages/Tree.html +294 -0
- package/dist/test/pages/WheelSlider_Test_Page.html +26 -0
- package/dist/test/pages/base/DOMObserver.html +20 -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/AvatarGroup.js +2 -19
- package/src/TabContainer.js +3 -3
- package/src/TreeItem.js +5 -5
- package/src/TreeItemBase.js +12 -11
- package/src/TreeItemCustom.js +5 -5
|
@@ -0,0 +1,614 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html class="popover1auto">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
7
|
+
<title>Popover</title>
|
|
8
|
+
|
|
9
|
+
<script data-ui5-config type="application/json">
|
|
10
|
+
{
|
|
11
|
+
"language": "EN",
|
|
12
|
+
"libs": "sap.ui.webcomponents.main"
|
|
13
|
+
}
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
// delete Document.prototype.adoptedStyleSheets
|
|
24
|
+
</script>
|
|
25
|
+
<script type="module" crossorigin src="/assets/bundle.common.ac7489b0.js"></script>
|
|
26
|
+
<link rel="stylesheet" href="/assets/test/pages/Popover.html.87315ecf.css">
|
|
27
|
+
</head>
|
|
28
|
+
|
|
29
|
+
<body class="popover2auto">
|
|
30
|
+
<!-- <ui5-button id="btnOpenPopover" design="Emphasized" icon="employee">Open Popover</ui5-button>
|
|
31
|
+
|
|
32
|
+
<ui5-popover id="popoverToOpen" header-text="Popover">
|
|
33
|
+
<div class="popover3auto">
|
|
34
|
+
<ui5-title level="H2">Hello World!</ui5-title>
|
|
35
|
+
</div>
|
|
36
|
+
<ui5-textarea
|
|
37
|
+
placeholder="Type some text"
|
|
38
|
+
max-length="2"
|
|
39
|
+
show-exceeded-text>
|
|
40
|
+
</ui5-textarea>
|
|
41
|
+
<div slot="footer" class="popover4auto">
|
|
42
|
+
<div class="popover5auto"></div>
|
|
43
|
+
<ui5-button id="btnInPopover">Close</ui5-button>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<ui5-select id="test">
|
|
47
|
+
<ui5-option>Hello</ui5-option>
|
|
48
|
+
<ui5-option>World</ui5-option>
|
|
49
|
+
</ui5-select>
|
|
50
|
+
</div>
|
|
51
|
+
</ui5-popover>
|
|
52
|
+
|
|
53
|
+
<ui5-input id="field"></ui5-input> -->
|
|
54
|
+
|
|
55
|
+
<ui5-button id="btn">Click me !</ui5-button>
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
<ui5-popover id="pop" class="popover6auto" placement-type="Top" accessible-name="This popover is important">
|
|
59
|
+
<div slot="header">
|
|
60
|
+
<ui5-button id="first-focusable">I am in the header</ui5-button>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<ui5-list>
|
|
64
|
+
<ui5-li>Hello</ui5-li>
|
|
65
|
+
<ui5-li>World</ui5-li>
|
|
66
|
+
<ui5-li>Again</ui5-li>
|
|
67
|
+
</ui5-list>
|
|
68
|
+
|
|
69
|
+
<br>
|
|
70
|
+
<br>
|
|
71
|
+
|
|
72
|
+
<ui5-button id="popbtn">Open Popover</ui5-button>
|
|
73
|
+
|
|
74
|
+
<ui5-popover placement-type="Bottom" hide-arrow id="danger">
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
<ui5-list>
|
|
78
|
+
<ui5-li>Hello</ui5-li>
|
|
79
|
+
<ui5-li>World</ui5-li>
|
|
80
|
+
<ui5-li>Again</ui5-li>
|
|
81
|
+
</ui5-list>
|
|
82
|
+
|
|
83
|
+
<br>
|
|
84
|
+
<br>
|
|
85
|
+
|
|
86
|
+
<ui5-button id="bigDanger">Super Danger !</ui5-button>
|
|
87
|
+
|
|
88
|
+
<ui5-popover id="bigDangerPop">
|
|
89
|
+
<ui5-list>
|
|
90
|
+
<ui5-li>Hello</ui5-li>
|
|
91
|
+
<ui5-li>World</ui5-li>
|
|
92
|
+
<ui5-li>Again</ui5-li>
|
|
93
|
+
</ui5-list>
|
|
94
|
+
</ui5-popover>
|
|
95
|
+
</ui5-popover>
|
|
96
|
+
|
|
97
|
+
<br>
|
|
98
|
+
<br>
|
|
99
|
+
|
|
100
|
+
<ui5-select>
|
|
101
|
+
<ui5-option>Hello</ui5-option>
|
|
102
|
+
<ui5-option>World</ui5-option>
|
|
103
|
+
</ui5-select>
|
|
104
|
+
|
|
105
|
+
<br>
|
|
106
|
+
<br>
|
|
107
|
+
|
|
108
|
+
<!-- <ui5-date-picker></ui5-date-picker> -->
|
|
109
|
+
|
|
110
|
+
<div slot="footer">
|
|
111
|
+
<ui5-button>I am in the footer</ui5-button>
|
|
112
|
+
</div>
|
|
113
|
+
</ui5-popover>
|
|
114
|
+
|
|
115
|
+
<br>
|
|
116
|
+
<br>
|
|
117
|
+
<ui5-button id="btnOpenWithAttr">Open with Attribute</ui5-button>
|
|
118
|
+
<ui5-popover id="popoverAttr" opener="btnOpenWithAttr">
|
|
119
|
+
<ui5-button id="btnCloseWithMethod">Close with Method</ui5-button>
|
|
120
|
+
<ui5-button id="btnCloseWithAttr">Close with Attribute</ui5-button>
|
|
121
|
+
</ui5-popover>
|
|
122
|
+
|
|
123
|
+
<br>
|
|
124
|
+
<br>
|
|
125
|
+
|
|
126
|
+
<ui5-select>
|
|
127
|
+
<ui5-option>Hello</ui5-option>
|
|
128
|
+
<ui5-option>World</ui5-option>
|
|
129
|
+
</ui5-select>
|
|
130
|
+
|
|
131
|
+
<br>
|
|
132
|
+
<br>
|
|
133
|
+
|
|
134
|
+
<ui5-date-picker id="field"></ui5-date-picker>
|
|
135
|
+
|
|
136
|
+
<br>
|
|
137
|
+
<br>
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
<ui5-multi-combobox>
|
|
141
|
+
<ui5-cb-item text="Hello"></ui5-cb-item>
|
|
142
|
+
<ui5-cb-item text="World"></ui5-cb-item>
|
|
143
|
+
</ui5-multi-combobox>
|
|
144
|
+
|
|
145
|
+
<br>
|
|
146
|
+
<br>
|
|
147
|
+
|
|
148
|
+
<ui5-select id="many-items"></ui5-select>
|
|
149
|
+
|
|
150
|
+
<br>
|
|
151
|
+
<br>
|
|
152
|
+
|
|
153
|
+
<ui5-button id="big-popover-button">
|
|
154
|
+
Open Big Popover
|
|
155
|
+
</ui5-button>
|
|
156
|
+
|
|
157
|
+
<ui5-popover placement-type="Bottom" id="big-popover" header-text="hello world">
|
|
158
|
+
<ui5-list id="bigList"></ui5-list>
|
|
159
|
+
</ui5-popover>
|
|
160
|
+
|
|
161
|
+
<ui5-button id="btnPopModal">Opens modal popover!</ui5-button>
|
|
162
|
+
|
|
163
|
+
<ui5-popover id="modalPopover" modal header-text="Modal popover">
|
|
164
|
+
<ui5-list>
|
|
165
|
+
<ui5-li>Hello</ui5-li>
|
|
166
|
+
<ui5-li>Again</ui5-li>
|
|
167
|
+
<ui5-li>Wooooooooooooooooooooooooooooorld</ui5-li>
|
|
168
|
+
</ui5-list>
|
|
169
|
+
|
|
170
|
+
<div slot="footer">
|
|
171
|
+
<ui5-button id="modalPopoverClose">Close</ui5-button>
|
|
172
|
+
</div>
|
|
173
|
+
</ui5-popover>
|
|
174
|
+
|
|
175
|
+
<ui5-button id="btnPopModalNoLayer">Opens modal popover with no block layer!</ui5-button>
|
|
176
|
+
|
|
177
|
+
<ui5-popover id="modalPopoverNoLayer" modal header-text="Modal popover" hide-backdrop>
|
|
178
|
+
<ui5-list>
|
|
179
|
+
<ui5-li>Hello</ui5-li>
|
|
180
|
+
<ui5-li>Again</ui5-li>
|
|
181
|
+
<ui5-li>Wooooooooooooooooooooooooooooorld</ui5-li>
|
|
182
|
+
</ui5-list>
|
|
183
|
+
|
|
184
|
+
<div slot="footer">
|
|
185
|
+
<ui5-button id="modalPopoverNoLayerClose">Close</ui5-button>
|
|
186
|
+
</div>
|
|
187
|
+
</ui5-popover>
|
|
188
|
+
|
|
189
|
+
<ui5-button id="btnPopFocus">Opens popover with initial focus!</ui5-button>
|
|
190
|
+
|
|
191
|
+
<ui5-popover id="popFocus" initial-focus="focusMe" header-text="Popover header">
|
|
192
|
+
<ui5-list>
|
|
193
|
+
<ui5-li>Hello</ui5-li>
|
|
194
|
+
<ui5-li>Again</ui5-li>
|
|
195
|
+
<ui5-li>Wold</ui5-li>
|
|
196
|
+
</ui5-list>
|
|
197
|
+
|
|
198
|
+
<div slot="footer">
|
|
199
|
+
<ui5-button id="focusMe">Close</ui5-button>
|
|
200
|
+
</div>
|
|
201
|
+
</ui5-popover>
|
|
202
|
+
|
|
203
|
+
<br>
|
|
204
|
+
<br>
|
|
205
|
+
<ui5-title>Test open popup and hide opener</ui5-title>
|
|
206
|
+
<ui5-button id="btnQuickViewCardOpener">Open popup and hide myself</ui5-button>
|
|
207
|
+
<ui5-button id="btnMoveFocus">focusable element</ui5-button>
|
|
208
|
+
<br>
|
|
209
|
+
<br>
|
|
210
|
+
<ui5-title>placement-type="Right" (default)</ui5-title>
|
|
211
|
+
<p>No space on the Right, try Left, Bottom, Top</p>
|
|
212
|
+
<ui5-button id="btnFullWidth" class="popover7auto">Click me !</ui5-button>
|
|
213
|
+
<ui5-button id="btnNormalWidth">Click me !</ui5-button>
|
|
214
|
+
<br>
|
|
215
|
+
<br>
|
|
216
|
+
<ui5-title>placement-type="Right" (default) and allow-target-overlap=true </ui5-title>
|
|
217
|
+
<p>No space on the right, try Left, Bottom, Top and if nothing works, the target will be overlapped</p>
|
|
218
|
+
<ui5-button id="btnFullWidthTargetOverlap" class="popover7auto">Click me !</ui5-button>
|
|
219
|
+
<ui5-button id="btnNormalWidthTargetOverlap">Click me !</ui5-button>
|
|
220
|
+
|
|
221
|
+
<br>
|
|
222
|
+
<br>
|
|
223
|
+
<ui5-title>placement-type="Left"</ui5-title>
|
|
224
|
+
<p>No space on the Left, try Right, Bottom, Top</p>
|
|
225
|
+
<ui5-button id="btnFullWidthLeft" class="popover7auto">Click me !</ui5-button>
|
|
226
|
+
<div class="popover13auto">
|
|
227
|
+
<ui5-button id="btnNormalWidthLeft">Click me !</ui5-button>
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
<br>
|
|
231
|
+
<br>
|
|
232
|
+
<ui5-title>placement-type="Left" and allow-target-overlap=true</ui5-title>
|
|
233
|
+
<p>No space on the right, try Roght, Bottom, Top and if nothing works, the target will be overlapped</p>
|
|
234
|
+
<ui5-button id="btnFullWidthLeftTargetOverlap" class="popover7auto">Click me !</ui5-button>
|
|
235
|
+
<div class="popover13auto">
|
|
236
|
+
<ui5-button id="btnNormalWidthLeftTargetOverlap">Click me !</ui5-button>
|
|
237
|
+
</div>
|
|
238
|
+
|
|
239
|
+
<br>
|
|
240
|
+
<br>
|
|
241
|
+
<ui5-title>placement-type="Top"</ui5-title>
|
|
242
|
+
<ui5-button id="btnFullWidthTop" class="popover7auto">Click me !</ui5-button>
|
|
243
|
+
|
|
244
|
+
<br>
|
|
245
|
+
<br>
|
|
246
|
+
<ui5-title>placement-type="Bottom"</ui5-title>
|
|
247
|
+
<ui5-button id="btnFullWidthBottom" class="popover7auto">Click me !</ui5-button>
|
|
248
|
+
|
|
249
|
+
<ui5-popover header-text="My Heading" id="popFullWidth" class="popover6auto">
|
|
250
|
+
<div slot="header">
|
|
251
|
+
<ui5-button id="first-focusable">I am in the header</ui5-button>
|
|
252
|
+
</div>
|
|
253
|
+
|
|
254
|
+
<ui5-list>
|
|
255
|
+
<ui5-li>Hello</ui5-li>
|
|
256
|
+
<ui5-li>World</ui5-li>
|
|
257
|
+
<ui5-li>Again</ui5-li>
|
|
258
|
+
</ui5-list>
|
|
259
|
+
</ui5-popover>
|
|
260
|
+
|
|
261
|
+
<ui5-popover allow-target-overlap header-text="My Heading" id="popFullWidthTargetOverlap" class="popover6auto" >
|
|
262
|
+
<div slot="header">
|
|
263
|
+
<ui5-button id="first-focusable">I am in the header</ui5-button>
|
|
264
|
+
</div>
|
|
265
|
+
|
|
266
|
+
<ui5-list>
|
|
267
|
+
<ui5-li>Hello</ui5-li>
|
|
268
|
+
<ui5-li>World</ui5-li>
|
|
269
|
+
<ui5-li>Again</ui5-li>
|
|
270
|
+
</ui5-list>
|
|
271
|
+
</ui5-popover>
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
<ui5-popover header-text="My Heading" id="popFullWidthLeft" class="popover6auto" placement-type="Left">
|
|
275
|
+
<div slot="header">
|
|
276
|
+
<ui5-button id="first-focusable">I am in the header</ui5-button>
|
|
277
|
+
</div>
|
|
278
|
+
|
|
279
|
+
<ui5-list>
|
|
280
|
+
<ui5-li>Hello</ui5-li>
|
|
281
|
+
<ui5-li>World</ui5-li>
|
|
282
|
+
<ui5-li>Again</ui5-li>
|
|
283
|
+
</ui5-list>
|
|
284
|
+
</ui5-popover>
|
|
285
|
+
|
|
286
|
+
<ui5-popover header-text="My Heading" id="popFullWidthLeftTargetOverlap" class="popover6auto" placement-type="Left" allow-target-overlap>
|
|
287
|
+
<div slot="header">
|
|
288
|
+
<ui5-button id="first-focusable">I am in the header</ui5-button>
|
|
289
|
+
</div>
|
|
290
|
+
|
|
291
|
+
<ui5-list>
|
|
292
|
+
<ui5-li>Hello</ui5-li>
|
|
293
|
+
<ui5-li>World</ui5-li>
|
|
294
|
+
<ui5-li>Again</ui5-li>
|
|
295
|
+
</ui5-list>
|
|
296
|
+
</ui5-popover>
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
<ui5-popover header-text="My Heading" id="popFullWidthTop" class="popover6auto" placement-type="Top">
|
|
300
|
+
<div slot="header">
|
|
301
|
+
<ui5-button id="first-focusable">I am in the header</ui5-button>
|
|
302
|
+
</div>
|
|
303
|
+
|
|
304
|
+
<ui5-list>
|
|
305
|
+
<ui5-li>Hello</ui5-li>
|
|
306
|
+
<ui5-li>World</ui5-li>
|
|
307
|
+
<ui5-li>Again</ui5-li>
|
|
308
|
+
</ui5-list>
|
|
309
|
+
</ui5-popover>
|
|
310
|
+
|
|
311
|
+
<ui5-popover header-text="My Heading" id="popFullWidthBottom" class="popover6auto" placement-type="Bottom">
|
|
312
|
+
<div slot="header">
|
|
313
|
+
<ui5-button id="first-focusable">I am in the header</ui5-button>
|
|
314
|
+
</div>
|
|
315
|
+
|
|
316
|
+
<ui5-list>
|
|
317
|
+
<ui5-li>Hello</ui5-li>
|
|
318
|
+
<ui5-li>World</ui5-li>
|
|
319
|
+
<ui5-li>Again</ui5-li>
|
|
320
|
+
</ui5-list>
|
|
321
|
+
</ui5-popover>
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
<ui5-popover id="quickViewCard" placement-type="Right" height="500px">
|
|
325
|
+
<ui5-input id="searchInput" class="popover6auto">
|
|
326
|
+
<ui5-icon id="searchIcon" slot="icon" name="search"></ui5-icon>
|
|
327
|
+
</ui5-input>
|
|
328
|
+
<ui5-list class="popover8auto">
|
|
329
|
+
<ui5-li-groupheader>Actions</ui5-li-groupheader>
|
|
330
|
+
<ui5-li>Delete Product</ui5-li>
|
|
331
|
+
<ui5-li>Audit Log Settings</ui5-li>
|
|
332
|
+
<ui5-li>OData API Audit</ui5-li>
|
|
333
|
+
<ui5-li-groupheader>Products</ui5-li-groupheader>
|
|
334
|
+
<ui5-li image="./img/HT-1010.jpg" icon="navigation-right-arrow" additional-text="Re-stock" description="#12331232131" additional-text-state="Error">Laptop Lenovo</ui5-li>
|
|
335
|
+
<ui5-li image="./img/HT-1022.jpg" icon="navigation-right-arrow" additional-text="Re-stock" description="#12331232131" additional-text-state="Error">IPhone 3</ui5-li>
|
|
336
|
+
<ui5-li image="./img/HT-1030.jpg" icon-end icon="navigation-right-arrow" description="#12331232131" additional-text="Reuqired" additional-text-state="Error">HP Monitor 24</ui5-li>
|
|
337
|
+
</ui5-list>
|
|
338
|
+
</ui5-popover>
|
|
339
|
+
|
|
340
|
+
<br>
|
|
341
|
+
<br>
|
|
342
|
+
<div id="targetOpener" class="popover9auto"></div>
|
|
343
|
+
|
|
344
|
+
<ui5-button id="btnOpenXLeft">Open Popup Left aligned</ui5-button>
|
|
345
|
+
|
|
346
|
+
<ui5-popover
|
|
347
|
+
header-text="My Heading"
|
|
348
|
+
id="popXLeft" horizontal-align="Left"
|
|
349
|
+
class="popover6auto">
|
|
350
|
+
<div slot="header">
|
|
351
|
+
<ui5-button id="first-focusable">I am in the header</ui5-button>
|
|
352
|
+
</div>
|
|
353
|
+
<div>
|
|
354
|
+
<ui5-button id="first-focusable">I am in the header</ui5-button>
|
|
355
|
+
</div>
|
|
356
|
+
<div>
|
|
357
|
+
<ui5-button id="first-focusable">I am in the header</ui5-button>
|
|
358
|
+
</div>
|
|
359
|
+
</ui5-popover>
|
|
360
|
+
|
|
361
|
+
<div id="targetOpener2" class="popover10auto"></div>
|
|
362
|
+
|
|
363
|
+
<ui5-button id="btnOpenXRight">Open Popup Right aligned</ui5-button>
|
|
364
|
+
|
|
365
|
+
<ui5-popover
|
|
366
|
+
header-text="My Heading"
|
|
367
|
+
id="popXRight" horizontal-align="Right"
|
|
368
|
+
class="popover6auto">
|
|
369
|
+
<div slot="header">
|
|
370
|
+
<ui5-button id="first-focusable">I am in the header</ui5-button>
|
|
371
|
+
</div>
|
|
372
|
+
<div>
|
|
373
|
+
<ui5-button id="first-focusable">I am in the header</ui5-button>
|
|
374
|
+
</div>
|
|
375
|
+
<div>
|
|
376
|
+
<ui5-button id="first-focusable">I am in the header</ui5-button>
|
|
377
|
+
</div>
|
|
378
|
+
</ui5-popover>
|
|
379
|
+
|
|
380
|
+
<div class="popover11auto">
|
|
381
|
+
<p>Right-aligned Popover, wider than button, arrow should be centered on the button</p>
|
|
382
|
+
<ui5-button id="btnOpenXRightWide">Open</ui5-button>
|
|
383
|
+
</div>
|
|
384
|
+
|
|
385
|
+
<ui5-popover id="popXRightWide" placement-type="Bottom" horizontal-align="Right">
|
|
386
|
+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni architecto tenetur quia nam reprehenderit quas eveniet possimus similique quisquam culpa distinctio ex doloremque molestiae maxime sed harum, in exercitationem! Incidunt?
|
|
387
|
+
</ui5-popover>
|
|
388
|
+
|
|
389
|
+
<br>
|
|
390
|
+
<br>
|
|
391
|
+
|
|
392
|
+
<ui5-button id="firstBtn">First button</ui5-button>
|
|
393
|
+
<ui5-button id="secondBtn">Second button</ui5-button>
|
|
394
|
+
<ui5-popover id="popNoFocusableContent" placement-type="Bottom">Sample text for the ui5-popover</ui5-popover>
|
|
395
|
+
|
|
396
|
+
<br>
|
|
397
|
+
<br>
|
|
398
|
+
|
|
399
|
+
<div class="popover12auto">
|
|
400
|
+
<ui5-button id="btnOpenDynamic" icon="overflow"></ui5-button>
|
|
401
|
+
</div>
|
|
402
|
+
|
|
403
|
+
<br>
|
|
404
|
+
|
|
405
|
+
<ui5-button id="btnOpenPopoverWithDiv">Open Popover with div Inside</ui5-button>
|
|
406
|
+
|
|
407
|
+
<ui5-popover id="popWithDiv" header-text="Newsletter subscription" modal>
|
|
408
|
+
<div id="divContent">I'm a div, which can't get focus. Click me and see where focus goes.</div>
|
|
409
|
+
<div slot="footer" class="popover-footer">
|
|
410
|
+
<ui5-button design="Emphasized">Subscribe</ui5-button>
|
|
411
|
+
</div>
|
|
412
|
+
</ui5-popover>
|
|
413
|
+
|
|
414
|
+
<div class="popover13auto">
|
|
415
|
+
<ui5-button id="btnRightEdge">Popover on right edge of screen</ui5-button>
|
|
416
|
+
</div>
|
|
417
|
+
|
|
418
|
+
<ui5-popover header-text="Header" id="popoverRightEdge" placement-type="Top">
|
|
419
|
+
<ui5-label>Input field: </ui5-label>
|
|
420
|
+
<ui5-input></ui5-input>
|
|
421
|
+
</ui5-popover>
|
|
422
|
+
|
|
423
|
+
<br>
|
|
424
|
+
<br>
|
|
425
|
+
|
|
426
|
+
<ui5-button id="btnAccNameRef">Popover with accessibleNameRef</ui5-button>
|
|
427
|
+
<ui5-label id="lblAccNameRef">Some label</ui5-label>
|
|
428
|
+
<ui5-popover id="popAccNameRef" accessible-name-ref="lblAccNameRef" header-text="Header text">
|
|
429
|
+
<span>Hello world</span>
|
|
430
|
+
</ui5-popover>
|
|
431
|
+
|
|
432
|
+
<br>
|
|
433
|
+
<br>
|
|
434
|
+
|
|
435
|
+
<ui5-button id="openChainedPopover1">Open chained popover 1</ui5-button>
|
|
436
|
+
<ui5-popover id="chainedPopover1">
|
|
437
|
+
Chained Popover 1
|
|
438
|
+
<ui5-list id="openChainedPopover2List">
|
|
439
|
+
<ui5-li>Open chained popover 2</ui5-li>
|
|
440
|
+
</ui5-list>
|
|
441
|
+
</ui5-popover>
|
|
442
|
+
<ui5-popover id="chainedPopover2" placement-type="Bottom">
|
|
443
|
+
Chained Popover 2
|
|
444
|
+
<ui5-button id="closeChainedPopover2">Close chained popover 2</ui5-button>
|
|
445
|
+
</ui5-popover>
|
|
446
|
+
|
|
447
|
+
<script>
|
|
448
|
+
btn.addEventListener("click", function (event) {
|
|
449
|
+
pop.showAt(btn);
|
|
450
|
+
});
|
|
451
|
+
|
|
452
|
+
btnOpenWithAttr.addEventListener("click", function () {
|
|
453
|
+
popoverAttr.setAttribute("open", "");
|
|
454
|
+
});
|
|
455
|
+
|
|
456
|
+
btnCloseWithMethod.addEventListener("click", function () {
|
|
457
|
+
popoverAttr.close();
|
|
458
|
+
});
|
|
459
|
+
|
|
460
|
+
btnCloseWithAttr.addEventListener("click", function () {
|
|
461
|
+
popoverAttr.removeAttribute("open");
|
|
462
|
+
});
|
|
463
|
+
|
|
464
|
+
popbtn.addEventListener("click", function (event) {
|
|
465
|
+
danger.showAt(popbtn);
|
|
466
|
+
});
|
|
467
|
+
|
|
468
|
+
bigDanger.addEventListener("click", function (event) {
|
|
469
|
+
bigDangerPop.showAt(bigDanger);
|
|
470
|
+
});
|
|
471
|
+
|
|
472
|
+
btnPopModal.addEventListener("click", function (event) {
|
|
473
|
+
modalPopover.showAt(btnPopModal);
|
|
474
|
+
});
|
|
475
|
+
|
|
476
|
+
btnPopModalNoLayer.addEventListener("click", function() {
|
|
477
|
+
modalPopoverNoLayer.showAt(btnPopModalNoLayer);
|
|
478
|
+
});
|
|
479
|
+
|
|
480
|
+
modalPopoverNoLayerClose.addEventListener("click", function() {
|
|
481
|
+
modalPopoverNoLayer.close();
|
|
482
|
+
});
|
|
483
|
+
|
|
484
|
+
modalPopoverClose.addEventListener("click", function (event) {
|
|
485
|
+
modalPopover.close();
|
|
486
|
+
});
|
|
487
|
+
|
|
488
|
+
btnPopFocus.addEventListener("click", function (event) {
|
|
489
|
+
popFocus.showAt(btnPopFocus);
|
|
490
|
+
});
|
|
491
|
+
|
|
492
|
+
document.getElementById("many-items").innerHTML = [].map.call("Ullamco ea ad fugiat enim elit dolore ullamco ad magna excepteur cupidatat.", function (item, index) {
|
|
493
|
+
return "<ui5-option>" + item + "</ui5-option>";
|
|
494
|
+
}).join("");
|
|
495
|
+
|
|
496
|
+
document.getElementById("bigList").innerHTML = [].map.call("Ullamco ea ad fugiat enim elit dolore ullamco ad magna excepteur cupidatat.", function (item, index) {
|
|
497
|
+
return "<ui5-li>" + item + "</ui5-li>";
|
|
498
|
+
}).join("");
|
|
499
|
+
|
|
500
|
+
document.getElementById("big-popover-button").addEventListener("click", function (event) {
|
|
501
|
+
document.getElementById("big-popover").showAt(event.target);
|
|
502
|
+
});
|
|
503
|
+
|
|
504
|
+
btnFullWidth.addEventListener("click", function (event) {
|
|
505
|
+
popFullWidth.showAt(btnFullWidth);
|
|
506
|
+
});
|
|
507
|
+
btnNormalWidth.addEventListener("click", function (event) {
|
|
508
|
+
popFullWidth.showAt(btnNormalWidth);
|
|
509
|
+
});
|
|
510
|
+
|
|
511
|
+
btnFullWidthTargetOverlap.addEventListener("click", function (event) {
|
|
512
|
+
popFullWidthTargetOverlap.showAt(btnFullWidthTargetOverlap);
|
|
513
|
+
});
|
|
514
|
+
btnNormalWidthTargetOverlap.addEventListener("click", function (event) {
|
|
515
|
+
popFullWidthTargetOverlap.showAt(btnNormalWidthTargetOverlap);
|
|
516
|
+
});
|
|
517
|
+
|
|
518
|
+
btnFullWidthLeft.addEventListener("click", function (event) {
|
|
519
|
+
popFullWidthLeft.showAt(btnFullWidthLeft);
|
|
520
|
+
});
|
|
521
|
+
btnNormalWidthLeft.addEventListener("click", function (event) {
|
|
522
|
+
popFullWidthLeft.showAt(btnNormalWidthLeft);
|
|
523
|
+
});
|
|
524
|
+
|
|
525
|
+
btnFullWidthLeftTargetOverlap.addEventListener("click", function (event) {
|
|
526
|
+
popFullWidthLeftTargetOverlap.showAt(btnFullWidthLeftTargetOverlap);
|
|
527
|
+
});
|
|
528
|
+
btnNormalWidthLeftTargetOverlap.addEventListener("click", function (event) {
|
|
529
|
+
popFullWidthLeftTargetOverlap.showAt(btnNormalWidthLeftTargetOverlap);
|
|
530
|
+
});
|
|
531
|
+
|
|
532
|
+
btnFullWidthTop.addEventListener("click", function (event) {
|
|
533
|
+
popFullWidthTop.showAt(btnFullWidthTop);
|
|
534
|
+
});
|
|
535
|
+
|
|
536
|
+
btnFullWidthBottom.addEventListener("click", function (event) {
|
|
537
|
+
popFullWidthBottom.showAt(btnFullWidthBottom);
|
|
538
|
+
});
|
|
539
|
+
|
|
540
|
+
btnQuickViewCardOpener.addEventListener("click", function (event) {
|
|
541
|
+
quickViewCard.showAt(btnQuickViewCardOpener);
|
|
542
|
+
|
|
543
|
+
btnQuickViewCardOpener.setAttribute("hidden", true);
|
|
544
|
+
})
|
|
545
|
+
btnOpenXLeft.addEventListener("click", function (event) {
|
|
546
|
+
popXLeft.showAt(targetOpener);
|
|
547
|
+
});
|
|
548
|
+
btnOpenXRight.addEventListener("click", function (event) {
|
|
549
|
+
popXRight.showAt(targetOpener2);
|
|
550
|
+
});
|
|
551
|
+
|
|
552
|
+
firstBtn.addEventListener("click", function (event) {
|
|
553
|
+
popNoFocusableContent.innerHTML = "First button is clicked";
|
|
554
|
+
popNoFocusableContent.showAt(event.target);
|
|
555
|
+
});
|
|
556
|
+
|
|
557
|
+
secondBtn.addEventListener("click", function (event) {
|
|
558
|
+
popNoFocusableContent.innerHTML = "Second button is clicked";
|
|
559
|
+
popNoFocusableContent.showAt(event.target);
|
|
560
|
+
});
|
|
561
|
+
|
|
562
|
+
btnOpenDynamic.addEventListener("click", function () {
|
|
563
|
+
var popover = document.createElement("ui5-popover"),
|
|
564
|
+
button = document.createElement("ui5-button");
|
|
565
|
+
|
|
566
|
+
button.textContent = "Focusable element";
|
|
567
|
+
popover.appendChild(button);
|
|
568
|
+
popover.setAttribute("id", "dynamic-popover");
|
|
569
|
+
popover.setAttribute("placement-type", "Bottom");
|
|
570
|
+
|
|
571
|
+
document.body.appendChild(popover);
|
|
572
|
+
|
|
573
|
+
popover.showAt(btnOpenDynamic);
|
|
574
|
+
});
|
|
575
|
+
|
|
576
|
+
btnOpenPopoverWithDiv.addEventListener("click", function (event) {
|
|
577
|
+
popWithDiv.showAt(event.target);
|
|
578
|
+
});
|
|
579
|
+
|
|
580
|
+
btnOpenXRightWide.addEventListener("click", function () {
|
|
581
|
+
popXRightWide.showAt(btnOpenXRightWide);
|
|
582
|
+
});
|
|
583
|
+
|
|
584
|
+
btnRightEdge.addEventListener("click", function () {
|
|
585
|
+
popoverRightEdge.showAt(btnRightEdge);
|
|
586
|
+
});
|
|
587
|
+
|
|
588
|
+
btnAccNameRef.addEventListener("click", function () {
|
|
589
|
+
popAccNameRef.showAt(btnAccNameRef);
|
|
590
|
+
});
|
|
591
|
+
|
|
592
|
+
openChainedPopover1.addEventListener("click", function () {
|
|
593
|
+
chainedPopover1.showAt(openChainedPopover1);
|
|
594
|
+
});
|
|
595
|
+
|
|
596
|
+
openChainedPopover2List.addEventListener("ui5-item-click", function () {
|
|
597
|
+
chainedPopover1.close();
|
|
598
|
+
chainedPopover2.showAt(openChainedPopover1);
|
|
599
|
+
});
|
|
600
|
+
|
|
601
|
+
closeChainedPopover2.addEventListener("click", function () {
|
|
602
|
+
chainedPopover2.close();
|
|
603
|
+
});
|
|
604
|
+
|
|
605
|
+
chainedPopover2.addEventListener("after-close", function () {
|
|
606
|
+
var toast = document.createElement("ui5-toast");
|
|
607
|
+
toast.appendChild(document.createTextNode("Closed chained popover 2"));
|
|
608
|
+
document.body.appendChild(toast);
|
|
609
|
+
toast.show();
|
|
610
|
+
});
|
|
611
|
+
</script>
|
|
612
|
+
</body>
|
|
613
|
+
|
|
614
|
+
</html>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html class="popover1auto">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
7
|
+
<title>PopoverArrowBounds</title>
|
|
8
|
+
|
|
9
|
+
<script data-ui5-config type="application/json">
|
|
10
|
+
{
|
|
11
|
+
"language": "EN",
|
|
12
|
+
"libs": "sap.ui.webcomponents.main"
|
|
13
|
+
}
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
<script type="module" crossorigin src="/assets/bundle.common.ac7489b0.js"></script>
|
|
21
|
+
<link rel="stylesheet" href="/assets/test/pages/PopoverArrowBounds.html.c1e5feb1.css">
|
|
22
|
+
</head>
|
|
23
|
+
|
|
24
|
+
<body class="sapUiSizeCompact">
|
|
25
|
+
<ui5-button id="myBtn1" data-placement-type="Left" class="myBtn">1</ui5-button>
|
|
26
|
+
<ui5-button id="myBtn2" data-placement-type="Left" data-vertical-align="Top" class="myBtn">2</ui5-button>
|
|
27
|
+
<ui5-button id="myBtn3" data-placement-type="Bottom" class="myBtn">3</ui5-button>
|
|
28
|
+
<ui5-button id="myBtn4" data-placement-type="Top" class="myBtn">4</ui5-button>
|
|
29
|
+
<ui5-button id="myBtn5" data-placement-type="Left" class="myBtn">5</ui5-button>
|
|
30
|
+
<ui5-button id="myBtn6" data-placement-type="Left" class="myBtn">6</ui5-button>
|
|
31
|
+
|
|
32
|
+
<ui5-toggle-button id="customSizeBtn">Bigger Popover</ui5-toggle-button>
|
|
33
|
+
|
|
34
|
+
<ui5-popover id="myPopover">My Popover</ui5-popover>
|
|
35
|
+
|
|
36
|
+
<script>
|
|
37
|
+
var myPopover = document.getElementById("myPopover");
|
|
38
|
+
|
|
39
|
+
Array.from(document.querySelectorAll(".myBtn")).forEach(function (btn) {
|
|
40
|
+
btn.addEventListener("click", function() {
|
|
41
|
+
myPopover.placementType = btn.dataset.placementType;
|
|
42
|
+
myPopover.verticalAlign = btn.dataset.verticalAlign;
|
|
43
|
+
myPopover.showAt(btn);
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
var customSizeBtn = document.getElementById("customSizeBtn");
|
|
48
|
+
customSizeBtn.addEventListener("click", function (event) {
|
|
49
|
+
myPopover.classList.toggle("customSize");
|
|
50
|
+
})
|
|
51
|
+
</script>
|
|
52
|
+
</body>
|
|
53
|
+
|
|
54
|
+
</html>
|