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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

0 commit comments

Comments
 (0)