Commit Graph

58 Commits

Author SHA1 Message Date
Marc Stammerjohann 34e835e843 feat: update duplicate outputs, replace ngModel (#1428)
* feat: migrate duplicate output from model + output to input + linkedSignal + output, closes #1385

# Conflicts:
#	libs/helm/switch/src/lib/hlm-switch.ts

* feat(pagination): replace ngModel

* fix(toggle-group): select fires twice onChange and change.emit

* feat: rename value/checked input and linkedSignal
2026-06-09 18:51:22 +02:00
Sammy Mohamed 3f743e19f7 feat: better form control integration (#1053)
* feat: better form control integration

- general a11y described by service
- hint and error stories
- datepicker value type
- mock resizeObserver causing select failure
- form desciption test failures

* feat: autocomplete and combobox

- re-implemented form integration based on latest implementation

* fix: error state

* fix: formatting

* chore: update snapshot

* fix: format

* fix: update snapshot

* fix: autocomplete stories

* fix: test

* fix: remove not needed effects

* fix: call onTouched when autocomplete focus out

* fix: evaluate only error state in field

* fix: fix slider classes and field integration

* fix: set correct error styles to input group

* feat: add native select field control support

* fix: implement field control

* fix: emit touched when blurred for combobox

* fix: add invalid support for combobox multiple

* fix: fix autcomplete search and input styles

* feat: improve control state data attributes and hlm-error

- render hlm-error if error presetn
- add touched, dirty and matches-spartan-invalid attributes

* feat: apply field control as host directive

* test: fix some control error stories WIP

* fix: lint issues w/ type imports and sort order

* chore: remove form-field package as it is replaced by field

* chore: update snapshot

* fix: fix autocomplete providers array and error story

* fix: fix select, field error and input group

* docs: fix reactive forms examples WIP

* feat: add healthcheck and migration for hlm-form-field to hlm-field

* fix: add value accessor to date-picker multi

* docs: update field for/id

* fix: fix checkbox and rename CVA providers

* fix: add and fix tests

* docs(field): update headings

* feat(autocomplete): add inputId

* feat(combobox): add input/button id

* chore: update snapshot

* docs(date-picker): use hlm field

* docs(field): add native-select example, simplify selectId

* docs: use hlm-field for date-picker blocks

* feat: update form field usage in autocomplete story

* fix(input): unit test and remove unused ngControl

* fix: comment out missing errorState in select

* feat: remove ng-* classes

* feat: remove unused code

* fix: comment out error in unit tests

* feat: set label for attribute automatically

* refactor: rename variable

* docs: add brain input and textarea docs

* fix: apply button styles in storybook

* fix: fix select test and add missing attributes

* feat: add attributes to switch

* fix: fix field e2e tests and lint errors

* chore: fix format

* fix: add optional chain

* feat(select): add controls and aria labels to brn-select-trigger

* fix: update default value for select demo

* docs(select): add form example

* chore: update snapshot

* fix(select): add optional chain for aria-invalid

* feat(select): update e2e test form attributes

* fix(input): form unit test

* fix(select): update unit test template, add HlmFieldControlDescribedBy to select trigger button

* fix(combobox): use new combobox template for unit test

* add hlmFieldControlDescribedBy to combobox trigger button

* chore: remove console log from unit test

* fix(checkbox): use buttonName instead of id

* fix: lint issue w/ import

* test: fix unit tests

* docs: add field date picker preview

* docs: fix blocks and reactive forms

* docs: improve control, field and forms docs

* feat: add provider for error matcher

* chore: rename var

* fix: replace aria-invalid in registry styles

* feat: move state to brn, add to combo tigger

* chore: format

* feat(combobox): apply form attributes on brnComboboxTrigger

* remove need for applyControlState

* chore: update snapshot

* docs: update container width for the responsive select demo

* fix: remove aria invalid and fix chips focus styles

* feat(field): move HlmFieldControlDescribedBy and HlmFieldA11yService into brain package

* chore: update snapshot

* feat(field): update id input handling, update styles

* docs: update form examples to required

* feat: add forceInvalid to brn-field and brn-checkbox

* allow overrides to data-invalid and data-matches-spartan-invalid

* fix: add error if ngControl.control is not defined

---------

Co-authored-by: Merlin <merlin.moos@oldendorff.com>
Co-authored-by: Toni Škobić <toni.skobic@gmail.com>
Co-authored-by: Marc Stammerjohann <8985933+marcjulian@users.noreply.github.com>
2026-03-31 12:41:44 +02:00
elite-benni f5206a2c9d chore(slider): run format 2026-02-15 00:33:56 +01:00
elite-benni a886a46be6 test(slider): add test to verify different IDs are generated 2026-02-15 00:33:10 +01:00
elite-benni eb68150c14 refactor(slider): polish for v1 2026-02-14 23:59:19 +01:00
Toni Škobić d64cb9719f fix(slider): resolve PR comments
- add ticks with label example
- explicitly define method return types
- add data-draggable-range
- add valueChange output
- set draggable range move cursor
- format code to conventions
2026-02-09 20:48:49 +01:00
Toni Škobić a6f7aac632 docs(slider): add descriptions 2026-02-08 22:18:27 +01:00
Toni Škobić 1b014e1c85 feat(slider): add format tick input 2026-02-08 22:15:42 +01:00
Toni Škobić 3f8110daa1 fix(slider): fix draggable rangle for slow drag 2026-02-08 14:53:23 +01:00
Toni Škobić 4f6d85e1cf feat(slider): implement draggable range only 2026-02-07 15:20:12 +01:00
Toni Škobić 4a83867d48 fix(slider): fix draggable range inverted and snap val 2026-02-07 14:48:58 +01:00
Toni Škobić 4c025379d6 feat(slider): add draggable range 2026-02-07 14:26:47 +01:00
Toni Škobić 7d09f26fa8 test(slider): fix form tests 2026-02-07 02:30:52 +01:00
Toni Škobić 38f4db4d7b fix(slider): set access modifier to private 2026-02-07 01:07:29 +01:00
Toni Škobić 23971603a1 fix(slider): fix lint 2026-02-07 01:05:39 +01:00
Toni Škobić 98eb124995 fix(slider): resolve issues
- fix docs
- fix percentage NaN edge case
- fix in place array sort
2026-02-07 00:44:27 +01:00
Toni Škobić 7f7819bcc9 feat(slider): properly init slider and handle no value 2026-02-07 00:14:02 +01:00
Toni Škobić eab6d1ec53 docs(slider): add comments 2026-02-07 00:14:02 +01:00
Toni Škobić 5836f4a903 feat(slider): improve key navigation 2026-02-07 00:14:02 +01:00
Toni Škobić c70a029339 fix(slider): add and fix aria attributes 2026-02-07 00:14:02 +01:00
Toni Škobić d89bf1f36f chore(slider): format 2026-02-07 00:14:02 +01:00
Toni Škobić d0ea5c7a37 feat(slider): fix control value accessor 2026-02-07 00:14:02 +01:00
Toni Škobić 0c04e7cce9 feat(slider): set value after thumb move 2026-02-07 00:14:02 +01:00
Toni Škobić 36ffdec726 feat(slider): remove unused elRef 2026-02-07 00:14:02 +01:00
Toni Škobić 854e51759e feat(slider): implement ticks 2026-02-07 00:14:02 +01:00
Toni Škobić 301a104fd0 feat(slider): fix disabled state 2026-02-07 00:14:02 +01:00
Toni Škobić 0fc3d6ad55 feat(slider): handle empty array 2026-02-07 00:14:02 +01:00
Toni Škobić 36738c189e feat(slider): implement min step between thumbs 2026-02-07 00:14:02 +01:00
Toni Škobić f7a5e41c96 feat(slider): normalize values 2026-02-07 00:14:02 +01:00
Toni Škobić 66d7080fd7 feat(slider): sort values when setting as control 2026-02-07 00:14:02 +01:00
Toni Škobić 6c5eb23e06 feat(slider): implement vertical orientation 2026-02-07 00:14:02 +01:00
Toni Škobić 8d3fa6df95 feat(slider): update styles and orientation WIP 2026-02-07 00:14:02 +01:00
Toni Škobić 164688ea6f feat(slider): implement inverted feature 2026-02-07 00:14:02 +01:00
Toni Škobić c2419a01ba docs(slider): add docs 2026-02-07 00:14:02 +01:00
Toni Škobić a1d6771d2b feat(slider): implement el size signal 2026-02-07 00:14:02 +01:00
Toni Škobić 4aa91cc774 feat(slider): support rtl WIP 2026-02-07 00:14:02 +01:00
Toni Škobić 943daebf68 feat(slider): implement dir WIP 2026-02-07 00:14:02 +01:00
Toni Škobić d7b62df057 feat(slider): improve slider
- add missing thumb attributes
- focus thumb after value change
- call onTouched if slider is focused out
2026-02-07 00:14:02 +01:00
Toni Škobić 72907d1570 feat(slider): set pointer events on track el 2026-02-07 00:14:02 +01:00
Toni Škobić 15639a56c4 feat(slider): implement slider range for one thumb 2026-02-07 00:14:02 +01:00
Toni Škobić 6d350ddc38 feat(slider): set slider range inset range 2026-02-07 00:14:02 +01:00
Toni Škobić 690925bd13 feat(slider): set thumb value on slider click WIP 2026-02-07 00:14:01 +01:00
moosme 51a579aa36 feat(repo): nx upgrade (#1002)
* feat(repo): nx upgrade

* fix: sidebar

* fix: node version

* fix: relax dependency versions

* fix: remove naming conventions

* fix: format

* fix: remove chromatic

---------

Co-authored-by: Merlin <merlin.moos@oldendorff.com>
2025-11-20 10:14:26 +01:00
Merlin 6d60dc9d7d feat: add lint rule template last 2025-11-12 15:05:31 +01:00
Merlin c6e6387739 refactor: align eslint rules 2025-09-29 15:59:20 +02:00
Merlin 9e34f79ded refactor: consistent type import 2025-09-29 14:42:31 +02:00
moosme 5a326b435b fix: fix event bubbling issues and other control value accessor bugs (#874)
* chore: nightly release 2025-08-24 ⚡

* chore: nightly release 2025-08-25 ⚡

* chore: nightly release 2025-08-26 ⚡

* fix: prevent event bubbling

---------

Co-authored-by: Leonidas <leonidas@spartan.ng>
Co-authored-by: Merlin <merlin.moos@oldendorff.com>
2025-09-15 14:00:57 +02:00
Sammy Mohamed a221a802e8 docs: exclude test and mocks from ui docs (#849) 2025-08-24 12:38:27 +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
MerlinMoos ced805c807 fix: make access modifier consistent #755 (#758)
* fix: make access modifier consistent #755

* fix: run format

* fix: resolve build issues

---------

Co-authored-by: Merlin Moos <merlin.moos@oldendorff.com>
2025-07-22 17:43:20 +02:00