Skip to content

Comments

v3.0.2 - UIComponent.subComponent#43

Merged
gmpassos merged 1 commit intomasterfrom
feature/uicomponent-subComponent
Feb 19, 2026
Merged

v3.0.2 - UIComponent.subComponent#43
gmpassos merged 1 commit intomasterfrom
feature/uicomponent-subComponent

Conversation

@gmpassos
Copy link
Contributor

  • UIComponent:

    • Added private _subComponent flag to distinguish subcomponents.
    • Refactored constructors:
      • Added private named constructor UIComponent._ to centralize initialization.
      • Added public mirror constructor UIComponent with detailed documentation on parameters controlling rendering, styling, and structure.
      • Added new constructor UIComponent.subComponent for creating components attached to an existing parentComponent, sharing its DOM mapping context.
    • Updated dispose method to avoid disposing shared domTreeMap when the component is a subcomponent.
  • UIButton (button.dart):

    • Extended $uiButtonLoader function to support additional attributes for loaded text styling and content:
      • Added parameters: loadedTextClass, loadedTextStyle, loadedTextErrorClass, loadedTextErrorStyle, loadedTextOK, loadedTextError.
      • Added corresponding attributes to the returned DOM element for these new parameters.

- `UIComponent`:
  - Added private `_subComponent` flag to distinguish subcomponents.
  - Refactored constructors:
    - Added private named constructor `UIComponent._` to centralize initialization.
    - Added public mirror constructor `UIComponent` with detailed documentation on parameters controlling rendering, styling, and structure.
    - Added new constructor `UIComponent.subComponent` for creating components attached to an existing `parentComponent`, sharing its DOM mapping context.
  - Updated `dispose` method to avoid disposing shared `domTreeMap` when the component is a subcomponent.

- `UIButton` (`button.dart`):
  - Extended `$uiButtonLoader` function to support additional attributes for loaded text styling and content:
    - Added parameters: `loadedTextClass`, `loadedTextStyle`, `loadedTextErrorClass`, `loadedTextErrorStyle`, `loadedTextOK`, `loadedTextError`.
    - Added corresponding attributes to the returned DOM element for these new parameters.
@gmpassos gmpassos changed the title v3.0.2 v3.0.2 - UIComponent.subComponent Feb 19, 2026
@codecov
Copy link

codecov bot commented Feb 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.08%. Comparing base (748fa52) to head (7a48f7f).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #43   +/-   ##
=======================================
  Coverage   38.08%   38.08%           
=======================================
  Files          23       23           
  Lines        3421     3421           
=======================================
  Hits         1303     1303           
  Misses       2118     2118           
Flag Coverage Δ
unittests 38.08% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmpassos gmpassos merged commit c6317fa into master Feb 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant