Skip to content

feat(addon-mobile): add support for required option in sheet dialog #11327

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
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

rashiddok
Copy link
Contributor

Description:

  • add required parameter to sheet dialog options
  • add support required option in TuiSheetDialogComponent
  • sheet dialog demo update with required option

Closes #11082

@rashiddok rashiddok requested a review from a team as a code owner July 16, 2025 07:10
@rashiddok rashiddok requested review from MarsiBarsi, waterplea, nsbarsukov, vladimirpotekhin and mdlufy and removed request for a team July 16, 2025 07:10
Copy link

lumberjack-bot bot commented Jul 16, 2025

Failed tests ❌

Before (main) ← Diff → After (local)

textfield-disabled-select.cy.ts-tui-textfield-disabled.diff.png

(updated for commit 8ece0f9)

@rashiddok rashiddok force-pushed the feat/11082-tui-sheet-dialog-service branch from c1331e0 to b519384 Compare July 16, 2025 07:10
Copy link

nx-cloud bot commented Jul 16, 2025

View your CI Pipeline Execution ↗ for commit 8ece0f9

Command Status Duration Result
nx run-many --target test --all --output-style=... ✅ Succeeded 3m 6s View ↗

☁️ Nx Cloud last updated this comment at 2025-07-24 12:08:31 UTC

Copy link

bundlemon bot commented Jul 16, 2025

BundleMon

Files updated (1)
Status Path Size Limits
demo/browser/vendor.(hash).js
260.86KB (-88B -0.03%) +10%
Unchanged files (4)
Status Path Size Limits
demo/browser/main.(hash).js
347.41KB +10%
demo/browser/runtime.(hash).js
52.52KB +10%
demo/browser/styles.(hash).css
21.38KB +10%
demo/browser/polyfills.(hash).js
11.16KB +10%

Total files change -90B -0.01%

Groups updated (1)
Status Path Size Limits
demo/browser/*..js
9.56MB (+236B 0%) -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@rashiddok rashiddok force-pushed the feat/11082-tui-sheet-dialog-service branch from 1d35e52 to b8d1ee3 Compare July 16, 2025 10:44
>
<p [style.flex-grow]="1">
Karl Gambolputty de von
Ausfern-schplenden-schlitter-crasscrenbon-fried-digger-dingle-dangle-dongle-dungle-burstein-von-knacker-thrasher-apple-banger-horowitz-ticolensic-grander-knotty-spelltinkle-grandlich-grumblemeyer-spelterwasser-kurstlich-himbleeisen-bahnwagen-gutenabend-bitte-ein-nürnburger-bratwustle-gerspurten-mitzweimache-luber
von Hautkopft of Ulm was the last-surviving relative of Johann Gambolputty de von.
</p>
<footer tuiFloatingContainer>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove tuiFloatingContainer?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tuiFloatingContainer adds flex-direction: column that breaks buttons view

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

returned tuiFloatingContainer directive and added styles for buttons container

Copy link
Collaborator

@mdlufy mdlufy Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tuiFloatingContainer adds flex-direction: column that breaks buttons view

Hmm... It looks like it's fine. Can you show me a screenshot/video, how does it break?

image

Copy link
Contributor Author

@rashiddok rashiddok Jul 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine until there is only one button. When more buttons added they take most of screen space and when dialog gets dissmised with swipe down buttons stays on place while dialog content goes behind buttons.

2025-07-24.09.20.19.mov

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When more buttons added they take most of screen space and when dialog gets dissmised with swipe down buttons stays on place while dialog content goes behind buttons.

When more buttons added It's designed to using only with 2 buttons max)

when dialog gets dissmised with swipe down buttons stays on place while dialog content goes behind buttons.
That's because it's based on sticky + and bottom. Would you prefer that when the SheetDialog is rolled down, the button immediately goes down too?

In result, I don't think it's worth abandoning the tuiFloatingContainer in the SheetDialog example or changing it

@waterplea, what do you think about such a case? Should we rework the logic of the tuiFloatingContainer, so that when scrolling down from the moment when the SheetDialog itself begins to collapse, the button would also go down?

@rashiddok rashiddok requested a review from mdlufy July 23, 2025 10:39
@splincode splincode force-pushed the feat/11082-tui-sheet-dialog-service branch from a66117d to 8ece0f9 Compare July 24, 2025 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

🚀 - Add param required to the TuiSheetDialogService like the TuiDialogService
4 participants