Skip to content

Commit 11dc3b1

Browse files
authored
refactor(ui5-popover): hideHeader property renamed to noHeader (#553)
BREAKING CHANGE: hideHeader property renamed to noHeader
1 parent 98f7075 commit 11dc3b1

File tree

14 files changed

+20
-20
lines changed

14 files changed

+20
-20
lines changed

packages/main/src/DatePicker.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
id="{{_id}}-popover"
3131
allow-target-overlap="{{_popover.allowTargetOverlap}}"
3232
placement-type="{{_popover.placementType}}"
33-
hide-header="{{_popover.hideHeader}}"
33+
no-header="{{_popover.noHeader}}"
3434
hide-arrow="{{_popover.hideArrow}}"
3535
horizontal-align="{{_popover.horizontalAlign}}"
3636
stay-open-on-scroll="{{_popover.stayOpenOnScroll}}"

packages/main/src/DatePicker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class DatePicker extends UI5Element {
253253
this._popover = {
254254
placementType: PopoverPlacementType.Bottom,
255255
horizontalAlign: PopoverHorizontalAlign.Left,
256-
hideHeader: true,
256+
noHeader: true,
257257
hideArrow: true,
258258
allowTargetOverlap: true,
259259
stayOpenOnScroll: true,

packages/main/src/Dialog.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</span>
1919

2020
{{#*inline "header"}}
21-
{{#unless hideHeader}}
21+
{{#unless noHeader}}
2222
<header>
2323
{{#if header}}
2424
<div role="heading" class="sapMPopupHeader">

packages/main/src/Input.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{{#if showSuggestions}}
3131
<ui5-popover
3232
placement-type="Bottom"
33-
hide-header="true"
33+
no-header="true"
3434
hide-arrow="true"
3535
horizontal-align="Stretch"
3636
initial-focus="{{_id}}-inner">

packages/main/src/MultiComboBox.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<ui5-popover
3737
class="ui5-multi-combobox-selected-items--popover"
3838
horizontal-align="Stretch"
39-
hide-header
39+
no-header
4040
?hide-arrow={{editable}}
4141
placement-type="Bottom">
4242
<ui5-list separators="None" mode="{{selectedItemsListMode}}"
@@ -50,7 +50,7 @@
5050
</ui5-popover>
5151

5252
<ui5-popover class="ui5-multi-combobox-all-items--popover"
53-
hide-header
53+
no-header
5454
hide-arrow
5555
horizontal-align="Stretch"
5656
initial-focus="ui5-multi-combobox--input"

packages/main/src/Popover.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</span>
1616

1717
{{#*inline "header"}}
18-
{{#unless hideHeader}}
18+
{{#unless noHeader}}
1919
<header>
2020
{{#if header}}
2121
<div role="toolbar" class="sapMPopupHeader">

packages/main/src/Popover.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ class Popover extends Popup {
471471

472472
let maxContentHeight = Math.round(maxHeight);
473473

474-
if (!this.hideHeader) {
474+
if (!this.noHeader) {
475475
const headerDomRef = this.getPopupDomRef().querySelector(".sapMPopupHeader");
476476
if (headerDomRef) {
477477
maxContentHeight = Math.round(maxHeight - headerDomRef.offsetHeight);
@@ -649,7 +649,7 @@ class Popover extends Popup {
649649
}
650650

651651
get headerId() {
652-
return this.hideHeader ? undefined : `${this._id}-header`;
652+
return this.noHeader ? undefined : `${this._id}-header`;
653653
}
654654

655655
get focusHelper() {

packages/main/src/Popup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const metadata = {
6868
* @defaultvalue false
6969
* @public
7070
*/
71-
hideHeader: {
71+
noHeader: {
7272
type: Boolean,
7373
},
7474
/**

packages/main/src/Select.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{{#if items}}
1313
<ui5-popover
1414
placement-type="Bottom"
15-
hide-header="true"
15+
no-header="true"
1616
hide-arrow="true"
1717
horizontal-align="Stretch">
1818
<ui5-list separators="None">

packages/main/src/ShellBar.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</button>
2929
{{/if}}
3030

31-
<ui5-popover class="sapWCShellBarMenuPopover" hide-header placement-type="Bottom">
31+
<ui5-popover class="sapWCShellBarMenuPopover" no-header placement-type="Bottom">
3232
<ui5-list separators="None" mode="SingleSelect" @ui5-itemPress={{_menuItemPress}}>
3333
<slot name="menuItems"></slot>
3434
</ui5-list>
@@ -75,7 +75,7 @@
7575
</div>
7676
</div>
7777

78-
<ui5-popover class="sapWCShellBarOverflowPopover" placement-type="Bottom" horizontal-align="{{popoverHorizontalAlign}}" hide-header hide-arrow>
78+
<ui5-popover class="sapWCShellBarOverflowPopover" placement-type="Bottom" horizontal-align="{{popoverHorizontalAlign}}" no-header hide-arrow>
7979
<ui5-list separators="None" @ui5-itemPress="{{_actionList.itemPress}}">
8080
{{#each _hiddenIcons}}
8181
<ui5-li

packages/main/src/TabContainer.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<ui5-popover
7474
id="{{_id}}-overflowMenu"
7575
hide-arrow
76-
hide-header
76+
no-header
7777
placement-type="Bottom"
7878
horizontal-align="Right">
7979
<ui5-list @ui5-itemPress="{{_overflowList.click}}">

packages/main/test/sap/ui/webcomponents/main/pages/Popups.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<content id="popover"></content>
6767
</div>
6868

69-
<ui5-popover placement-type="Bottom" horizontal-align="Stretch" hide-arrow hide-header initial-focus="input1" class="wcPopoverWithList">
69+
<ui5-popover placement-type="Bottom" horizontal-align="Stretch" hide-arrow no-header initial-focus="input1" class="wcPopoverWithList">
7070
<ui5-list id="myList" inset separators="Inner" mode="MultiSelect" footer-text="Copyright" no-data-text="No data">
7171
<!-- Header -->
7272
<div style="display: flex; align-items: center;" slot="header">

packages/main/test/sap/ui/webcomponents/main/pages/ShellBar.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
<ui5-li slot="menuItems">Application 5</ui5-li>
133133
</ui5-shellbar>
134134

135-
<ui5-popover id="popover" hide-header placement-type="Bottom">
135+
<ui5-popover id="popover" no-header placement-type="Bottom">
136136
<div class="popover-header">
137137
<ui5-title style="padding: 0.25rem 1rem 0rem 1rem">John Doe</ui5-title>
138138
</div>
@@ -148,7 +148,7 @@
148148
</div>
149149
</ui5-popover>
150150

151-
<ui5-popover id="app-list-popover" hide-header placement-type="Bottom">
151+
<ui5-popover id="app-list-popover" no-header placement-type="Bottom">
152152
<ui5-list separators="None">
153153
<ui5-li>Application 1</ui5-li>
154154
<ui5-li>Application 2</ui5-li>
@@ -158,7 +158,7 @@
158158
</ui5-list>
159159
</ui5-popover>
160160

161-
<ui5-popover id="custom-item-popover" hide-header placement-type="Bottom">
161+
<ui5-popover id="custom-item-popover" no-header placement-type="Bottom">
162162
<ui5-list separators="None">
163163
<ui5-li id="custom-item-1" type="Active">Custom Popover Item 1</ui5-li>
164164
<ui5-li type="Active">Custom Popover Item 2</ui5-li>

packages/main/test/sap/ui/webcomponents/main/samples/ShellBar.sample.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h3>ShellBar</h3>
7575
<ui5-li slot="menuItems">Application 5</ui5-li>
7676
</ui5-shellbar>
7777

78-
<ui5-popover id="action-popover" hide-header placement-type="Bottom">
78+
<ui5-popover id="action-popover" no-header placement-type="Bottom">
7979
<div class="action-popover-header">
8080
<ui5-title style="padding: 0.25rem 1rem 0rem 1rem">An Kimura</ui5-title>
8181
</div>
@@ -128,7 +128,7 @@ <h3>ShellBar</h3>
128128

129129
</ui5-shellbar>
130130

131-
<ui5-popover id="popover" hide-header placement-type="Bottom">
131+
<ui5-popover id="popover" no-header placement-type="Bottom">
132132
<div class="popover-header">
133133
<ui5-title style="padding: 0.25rem 1rem 0rem 1rem">An Kimura</ui5-title>
134134
</div>

0 commit comments

Comments
 (0)