Skip to content
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

feat(kit): add tuiCountriesMasksProvider #7139

Merged
merged 1 commit into from
Apr 1, 2024
Merged

feat(kit): add tuiCountriesMasksProvider #7139

merged 1 commit into from
Apr 1, 2024

Conversation

nguyenphutrong
Copy link

This PR introduces a new provider tuiCountriesMasksProvider that allows overriding or extending the default country masks for phone number formatting.

Usage example:

providers: [
        tuiCountriesMasksProvider({
            [TuiCountryIsoCode.VN]: '+84#########' // Overriding the mask for Vietnam
        })
],

Copy link
Contributor

sweep-ai bot commented Mar 31, 2024

Apply Sweep Rules to your PR?

  • Apply: Refactor large functions to be more modular.

This is an automated message generated by Sweep AI.

Copy link

bundlemon bot commented Mar 31, 2024

BundleMon

Files added (5)
Status Path Size Limits
demo/browser/main.(hash).js
+388.67KB +10%
demo/browser/vendor.(hash).js
+214.22KB +10%
demo/browser/runtime.(hash).js
+41.12KB +10%
demo/browser/polyfills.(hash).js
+11.25KB +10%
demo/browser/styles.(hash).css
+1.39KB +10%

Total files change +656.65KB

Groups added (1)
Status Path Size Limits
demo/browser/*..js
+2.39MB -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history

Copy link

codecov bot commented Mar 31, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (v3.x@55248ba). Click here to learn what that means.

Files Patch % Lines
projects/kit/tokens/countries-masks.ts 80.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             v3.x    #7139   +/-   ##
=======================================
  Coverage        ?   70.48%           
=======================================
  Files           ?     1097           
  Lines           ?    13122           
  Branches        ?     1862           
=======================================
  Hits            ?     9249           
  Misses          ?     3560           
  Partials        ?      313           
Flag Coverage Δ
addon-charts 71.57% <ø> (?)
addon-doc 60.58% <ø> (?)
addon-mobile 60.50% <ø> (?)
addon-table 60.50% <ø> (?)
addon-tablebars 96.15% <ø> (?)
core 77.61% <ø> (?)
kit 70.24% <80.00%> (?)
summary 70.48% <80.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.

@splincode splincode merged commit 10ac35e into taiga-family:v3.x Apr 1, 2024
33 checks passed
@nguyenphutrong nguyenphutrong deleted the v3.x branch April 2, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

4 participants