-
Notifications
You must be signed in to change notification settings - Fork 280
fix(ui5-popover): render block layers in the correct order #12659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kskondov
wants to merge
5
commits into
main
Choose a base branch
from
ui5-popover-block-layers
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+270
−14
Open
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e76d000
fix(ui5-popover): render block layers in the correct order
kskondov 9f880ec
fix(ui5-popover): render block layers in the correct order
kskondov 2f34f5c
Merge remote-tracking branch 'origin/main' into ui5-popover-block-layers
TeodorTaushanov 598adbb
chore: handle opening and closing
TeodorTaushanov f7fd078
fix(ui5-popover): render block layers in the correct order
kskondov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,9 @@ | |
| border: none; | ||
| overflow: visible; | ||
| margin: 0; | ||
| } | ||
|
|
||
| .sapUiBLy[popover] { | ||
| width: 100%; | ||
| height: 100%; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,7 @@ | |
| press: function () { | ||
| new Dialog("openUI5Dialog", { | ||
| title: "OpenUI5 Dialog", | ||
| draggable: true, | ||
| content: [ | ||
| new HTML({ | ||
| content: | ||
|
|
@@ -112,7 +113,6 @@ | |
| } | ||
| }).placeAt("dialog1content"); | ||
|
|
||
|
|
||
| ShortcutHintsMixin.addConfig(button, { | ||
| event: "press", | ||
| position: "0 0", | ||
|
|
@@ -128,20 +128,31 @@ | |
| document.getElementById("popoverButtonNoFocus").addEventListener("click", function (event) { | ||
| openUI5Popover(event.target); | ||
| }); | ||
|
|
||
| document.getElementById("someButton2").addEventListener("click", function () { | ||
| openUI5Dialog2(); | ||
| }); | ||
| document.getElementById("someButton3").addEventListener("click", function () { | ||
| openUI5Dialog3(); | ||
| }); | ||
| document.getElementById("someButton4").addEventListener("click", function () { | ||
| document.getElementById("newDialog4").open = true; | ||
| }); | ||
| } | ||
|
|
||
| function openUI5Dialog() { | ||
| sap.ui.require(["sap/m/Button", "sap/m/Dialog"], (Button, Dialog) => { | ||
| new Dialog("openUI5DialogWithButtons", { | ||
| title: "OpenUI5 Dialog", | ||
| title: "UI5 Dialog 1", | ||
| draggable: true, | ||
| content: [ | ||
| new Button({ | ||
| text: "Focus stop" | ||
| }), | ||
| new Button("openUI5DialogButton", { | ||
| text: "Open WebC Dialog", | ||
| text: "Open UI5 Dialog 2", | ||
| press: function () { | ||
| document.getElementById("newDialog1").open = true; | ||
| openUI5Dialog2(); | ||
| } | ||
| }) | ||
| ], | ||
|
|
@@ -152,6 +163,52 @@ | |
| }); | ||
| } | ||
|
|
||
| function openUI5Dialog2() { | ||
| sap.ui.require(["sap/m/Button", "sap/m/Dialog"], (Button, Dialog) => { | ||
| new Dialog("openUI5DialogWithButtons2", { | ||
| title: "UI5 Dialog 2", | ||
| draggable: true, | ||
| content: [ | ||
| new Button({ | ||
| text: "Focus stop" | ||
| }), | ||
| new Button("openUI5DialogButton2", { | ||
| text: "Open WebC Dialog 2", | ||
| press: function () { | ||
| document.getElementById("newDialog2").open = true; | ||
| } | ||
| }) | ||
| ], | ||
| afterClose: function () { | ||
| this.destroy(); | ||
| } | ||
| }).open(); | ||
| }); | ||
| } | ||
|
|
||
| function openUI5Dialog3() { | ||
| sap.ui.require(["sap/m/Button", "sap/m/Dialog"], (Button, Dialog) => { | ||
| new Dialog("openUI5DialogWithButtons3", { | ||
| title: "UI5 Dialog 3", | ||
| draggable: true, | ||
| content: [ | ||
| new Button({ | ||
| text: "Focus stop" | ||
| }), | ||
| new Button("openUI5DialogButton22", { | ||
| text: "Open WebC Dialog 3", | ||
| press: function () { | ||
| document.getElementById("newDialog3").open = true; | ||
| } | ||
| }) | ||
| ], | ||
| afterClose: function () { | ||
| this.destroy(); | ||
| } | ||
| }).open(); | ||
| }); | ||
| } | ||
|
|
||
| function openUI5Popover(opener) { | ||
| sap.ui.require(["sap/m/Popover", "sap/m/Button"], (Popover, Button) => { | ||
| new Popover("openUI5PopoverSecond", { | ||
|
|
@@ -189,7 +246,7 @@ | |
| <div id="buttonP"> | ||
| <ui5-button id="myButton">Open WebC Dialog</ui5-button> | ||
| </div> | ||
| <ui5-dialog id="dialog1" header-text="This is an WebC Dialog 1"> | ||
| <ui5-dialog id="dialog1" draggable header-text="This is an WebC Dialog 1"> | ||
| <div id="dialog1content"></div> | ||
| <br > | ||
| Web Components: | ||
|
|
@@ -211,8 +268,18 @@ | |
| <ui5-button id="dialogButton">Open UI5 dialog</ui5-button> | ||
| <ui5-button id="popoverButtonNoFocus">Open UI5 Popover No Initial Focus</ui5-button> | ||
| </ui5-dialog> | ||
| <ui5-dialog id="newDialog1" header-text="This is an WebC Dialog 2"> | ||
| <ui5-button id="someButton">Some button</ui5-button> | ||
| <ui5-dialog id="newDialog1" draggable header-text="This is an WebC Dialog 2"> | ||
| <ui5-button id="someButton2">Some button 1</ui5-button> | ||
| </ui5-dialog> | ||
| <ui5-dialog id="newDialog2" draggable header-text="This is an WebC Dialog 3"> | ||
|
||
| <ui5-button id="someButton3">Open UI5 Dialog</ui5-button> | ||
| </ui5-dialog> | ||
| <ui5-dialog id="newDialog3" draggable header-text="This is an WebC Dialog 3"> | ||
| <ui5-button id="someButton4">Some button 3</ui5-button> | ||
| </ui5-dialog> | ||
|
|
||
| <ui5-dialog id="newDialog4" draggable header-text="This is an WebC Dialog 4"> | ||
| <ui5-button id="someButton5">Some button 3</ui5-button> | ||
| </ui5-dialog> | ||
| <div id="content"></div> | ||
| <ui5-responsive-popover id="respPopover" | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.