Commit Graph

24 Commits

Author SHA1 Message Date
Ashley Hunter 23f20bf4dd feat: restore overlay focus-into-content on open via opt-in autoFocus
Moving popover-backed controls off CDK Dialog dropped the dialog's
autoFocus: 'first-tabbable', so popovers no longer moved focus to their
content on open (form fields were left unfocused, comboboxes could not be
typed into immediately).

Add an opt-in autoFocus option to BrnOverlay that focuses the first tabbable
element once the content renders, and enable it in the popover defaults. The
select keeps focus on its trigger because its listbox has no tabbable element,
preserving the aria-activedescendant keyboard model. Re-expose the autoFocus
input on the helm popover wrapper and its CLI template, and refresh the docs
API snapshot.
2026-06-16 23:23:29 +01:00
Patrick 3052af3fd0 fix: restore non-modal popover dismissal 2026-06-13 19:25:04 -04:00
Patrick 803614a7bb test: update overlay api snapshots 2026-06-13 14:48:23 -04:00
Patrick c7fb7469d6 fix: restore overlay dismissal semantics 2026-06-13 14:32:40 -04:00
Patrick ba74c53c97 refactor: split dialog and overlay primitives 2026-06-13 14:32:40 -04:00
Patrick 179ec6af8f fix: coordinate overlay lifecycle with animations
Replace fixed close delays with lifecycle-driven disposal so overlays remain responsive.
Wait only for exit animations that actually start and centralize Escape, backdrop, and
outside-pointer dismissal.

BREAKING CHANGE: remove the closeDelay input and configuration option. Remove explicit delay
values; closed-state exit animations are now detected automatically.
2026-06-13 14:32:40 -04:00
Marc Stammerjohann 9bcae8c031 feat(popover): add brn-popover config (#1124) 2026-01-07 16:36:19 +01:00
Marc Stammerjohann 29192af454 feat: improve dialog, alert-dialog, sheet and popover (#1059)
* feat(dialog): change dialogs to directive

* docs(popover): add name to  popover template selector

* feat(dialog): simplify dialog overlay

* feat(dialog): use BrnDialogTitle as hostDirective, add data-slot

* feat(dialog): use hostDirectives, change components to directives

* add data-slot

* feat(alert-dialog): use directives, add data-slot

* feat(sheet): use directives, add data-slot

* feat(dialog): add hlm trigger directive

* feat(popover): remove unused popover-close

* feat(popover): add hlm-popover

* feat: update snapshot and selectors

* feat(dialog): add healthcheck and migration

* feat(popover): expose more inputs/outputs

* feat(dialog): dogfeeding healthcheck and migration

* feat(dialog): add types to inputs

* feat(popover): expose more inputs

* feat(dialog): use hlmDialogTrigger

* feat(dialog): remove unused importAlias

* feat(dialog): add input types
2025-12-04 10:20:12 +01:00
Merlin Moos 4160d4a350 Merge remote-tracking branch 'origin/main' into component-template
# Conflicts:
#	libs/brain/alert-dialog/src/lib/brn-alert-dialog-overlay.ts
#	libs/brain/alert-dialog/src/lib/brn-alert-dialog.ts
#	libs/brain/avatar/src/lib/brn-avatar.ts
#	libs/brain/dialog/src/lib/brn-dialog-overlay.ts
#	libs/brain/dialog/src/lib/brn-dialog.ts
#	libs/brain/popover/src/lib/brn-popover.ts
#	libs/brain/radio-group/src/lib/brn-radio.ts
#	libs/brain/select/src/lib/brn-select-value.ts
#	libs/brain/sheet/src/lib/brn-sheet-overlay.ts
#	libs/brain/sheet/src/lib/brn-sheet.ts
#	libs/brain/tooltip/src/lib/brn-tooltip-content.ts
#	libs/helm/accordion/src/lib/hlm-accordion-content.ts
#	libs/helm/alert-dialog/src/lib/hlm-alert-dialog-content.ts
#	libs/helm/alert-dialog/src/lib/hlm-alert-dialog-footer.ts
#	libs/helm/alert-dialog/src/lib/hlm-alert-dialog-header.ts
#	libs/helm/alert-dialog/src/lib/hlm-alert-dialog.ts
#	libs/helm/avatar/src/lib/hlm-avatar.ts
#	libs/helm/carousel/src/lib/hlm-carousel-content.ts
#	libs/helm/carousel/src/lib/hlm-carousel-item.ts
#	libs/helm/carousel/src/lib/hlm-carousel-next.ts
#	libs/helm/carousel/src/lib/hlm-carousel-previous.ts
#	libs/helm/carousel/src/lib/hlm-carousel.ts
#	libs/helm/dialog/src/lib/hlm-dialog-content.ts
#	libs/helm/dialog/src/lib/hlm-dialog.ts
#	libs/helm/sheet/src/lib/hlm-sheet.ts
#	tools/eslint-rules/index.ts
2025-11-12 23:38:47 +01:00
Merlin Moos fd3229abe6 fix: add order 2025-11-12 23:08:18 +01:00
Ashley Hunter 87715502c4 build: eslint rule for styles and encapsulation 2025-11-12 21:33:40 +00:00
Merlin 6d60dc9d7d feat: add lint rule template last 2025-11-12 15:05:31 +01:00
moosme 092cfca51e feat: improve docs (#991)
* docs: improve content and minor design tweaks

* feat: add colors and missing step

* feat: add homepage examples

* feat: align installation guides

* feat: align theme colors

* fix: lint

---------

Co-authored-by: robingotz <tug29225@temple.edu>
Co-authored-by: Merlin <merlin.moos@oldendorff.com>
2025-11-05 17:57:02 +01:00
Suprasanna Ojha 2f66d56ada fix(popover): disable overlay push strategy (#955) 2025-10-31 23:46:12 +01:00
Merlin ca4081d166 feat(input-group): finalize docs 2025-10-16 14:26:00 +02:00
Merlin 9e34f79ded refactor: consistent type import 2025-09-29 14:42:31 +02:00
moosme adf55dbdd3 refactor: polish imports (#890)
Co-authored-by: Merlin <merlin.moos@oldendorff.com>
2025-09-27 17:52:14 -04:00
Marc Stammerjohann c4e03a5622 feat: dialog polishing (#836)
* feat(dialog): update styles and sort classes

# Conflicts:
#	libs/helm/dialog/src/lib/hlm-dialog-close.ts
#	libs/helm/dialog/src/lib/hlm-dialog-content.ts

* fix(dialog): control dialog close button height w/ flex

* button size was 16x24px w/ an icon of 16x16px
* using flex changes the sizes of the button to 16x16px

* feat(dialog): add --radiux-xs styles used by shadcn/ui

* fix(dialog): use outline-none for close button again

* docs(dialog): update example headings, form field and preview

# Conflicts:
#	apps/app/src/app/pages/(components)/components/(dialog)/dialog.preview.ts

* docs(dialog): update bottom nav

* feat(dialog): replace mutable state using computed + signal w/ linkedSignal

* fix(dialog): remove [&_ng-icon]:pointer-events-none to fix e2e tests

* fix(dialog): use duration-200 for state open and closed

* fix(dialog): apply same styles like hlm-alert-dialog-content

* fix(dialog): center dialog on mobile using mx-auto

* justify-self-center is not applied in firefox/safari - parent container needs to be display grid
2025-09-01 19:11:21 +02:00
Ashley Hunter b1ed68e0d0 refactor: use the latest angular naming conventions (#766)
* refactor: use the latest angular naming conventions

* build: merge

* docs: fixing unexpected component rename

Co-authored-by: Ajit Panigrahi <ajitzero@gmail.com>

* build: fix generated code

* build: fixing build

* build: fix directive

* feat: adding helm migration

* build: health check detection improvements

* build: checking file type

* build: fix formatting

---------

Co-authored-by: Ajit Panigrahi <ajitzero@gmail.com>
2025-07-30 22:32:02 +02:00
Jeevan fb3d95a340 Remove standalone property (#701)
* feat: remove standalone property from various directives and components in the Helm UI library

* feat: enable strictStandalone option in Angular compiler settings
2025-06-10 22:00:48 +02:00
Marc Stammerjohann 0395d751ac feat(dialog): add more dialog options to BrnDialogDefaultOptions (#610)
* feat(dialog): add more dialog options to BrnDialogDefaultOptions

* change closeDelay to 100 default
* use closeDelay input value
* use defaultOptions values for input signal defaults

* feat(dialog): remove state from default options

* state open w/ initial page load throws errors with OutputRef and dialog position is wrong

* feat(dialog): replace mutable signals with default options

* fix default options scrollStrategy type
* expose default options for alert dialog and popover

* refactor(dialog): remove closeDelay 100 as it is the default value

* remove unused imports

* refactor(dialog): copy hlm changes to cli
2025-02-25 21:44:50 +01:00
Benjamin Heiss 7569501e82 refactor(dialog,sheet,popover): migrate to signals (#599) 2025-02-18 14:57:15 +01:00
Ashley Hunter 74d4016e1f refactor: move core to brain (#548)
* refactor: move core to brain

* refactor: migrating core imports

* refactor: updating deps

* refactor: updating generator

* refactor: fixing import

* refactor: updating cli

* refactor: updating templates

* fix: merge latest changes

* fix: tests
2025-01-08 23:12:22 +01:00
Ashley Hunter be4a87dc87 refactor: migrating remaining brain libraries to secondary entrypoints (#523)
* refactor: migrating remaining brain libraries to secondary entrypoints

* refactor: migrating remaining brain libraries to secondary entrypoints
2024-12-10 18:40:46 +01:00