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): InputNumber uses Maskito instead of legacy text-mask #4725

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

nsbarsukov
Copy link
Member

@nsbarsukov nsbarsukov commented Jun 20, 2023

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Refactoring
  • Build or CI related changes
  • Tests related changes
  • Documentation content changes

Closes #4540
Closes #3664
Closes #4341
Closes #120

@nsbarsukov nsbarsukov self-assigned this Jun 20, 2023
@lumberjack-bot
Copy link

lumberjack-bot bot commented Jun 20, 2023

Pull request was closed ✔️

All saved screenshots (for current PR) were deleted 🗑️

@bundlemon
Copy link

bundlemon bot commented Jun 20, 2023

BundleMon

Files updated (2)
Status Path Size Limits
demo/browser/vendor.(hash).js
200.3KB (-36B -0.02%) +10%
demo/browser/main.(hash).js
327.07KB (-447B -0.13%) +10%
Unchanged files (4)
Status Path Size Limits
demo/browser/runtime.(hash).js
38.16KB +10%
demo/browser/polyfills.(hash).js
18.28KB +10%
demo/browser/scripts.(hash).js
17.9KB +10%
demo/browser/styles.(hash).css
1.67KB +10%

Total files change -492B -0.08%

Groups updated (1)
Status Path Size Limits
demo/browser/*..js
2.26MB (-492B -0.02%) -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@github-actions
Copy link
Contributor

github-actions bot commented Jun 20, 2023

Visit the preview URL for this PR (updated for commit 6d04bff):

https://taiga-ui--pr4725-maskito-input-number-u5bl15nj.web.app

(expires Tue, 27 Jun 2023 11:15:51 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4b5ece1e114386f6a105425ef799091475b249eb

@nsbarsukov nsbarsukov force-pushed the maskito-input-number branch from 325724f to 01fb918 Compare June 20, 2023 14:55
@codecov
Copy link

codecov bot commented Jun 21, 2023

Codecov Report

Patch coverage: 86.95% and project coverage change: -0.19 ⚠️

Comparison is base (d57aa65) 69.88% compared to head (49ad1d8) 69.70%.

❗ Current head 49ad1d8 differs from pull request most recent head 6d04bff. Consider uploading reports for the commit 6d04bff to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4725      +/-   ##
==========================================
- Coverage   69.88%   69.70%   -0.19%     
==========================================
  Files        1574     1574              
  Lines       17323    17302      -21     
  Branches     2431     2419      -12     
==========================================
- Hits        12106    12060      -46     
- Misses       4822     4844      +22     
- Partials      395      398       +3     
Flag Coverage Δ
addon-charts 71.63% <ø> (ø)
addon-doc 59.74% <ø> (ø)
addon-editor 49.09% <ø> (ø)
addon-mobile 61.33% <ø> (ø)
addon-table 61.19% <ø> (ø)
addon-tablebars 98.07% <ø> (ø)
cdk 80.57% <ø> (ø)
core 77.05% <ø> (ø)
kit 71.21% <86.95%> (-0.55%) ⬇️
summary 69.70% <86.95%> (-0.19%) ⬇️

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

Impacted Files Coverage Δ
...ore/utils/mask/create-auto-corrected-money-pipe.ts 33.89% <ø> (ø)
projects/core/utils/mask/create-number-mask.ts 5.12% <ø> (ø)
...e/utils/mask/enable-auto-correct-decimal-symbol.ts 66.66% <ø> (ø)
...cts/core/utils/mask/masked-money-value-is-empty.ts 40.00% <ø> (ø)
.../core/utils/mask/masked-number-string-to-number.ts 100.00% <ø> (ø)
...it/components/input-count/input-count.component.ts 78.18% <66.66%> (+1.13%) ⬆️
.../components/input-number/input-number.component.ts 84.78% <88.88%> (+6.27%) ⬆️
...kit/components/input-number/input-number.module.ts 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nsbarsukov nsbarsukov force-pushed the maskito-input-number branch 2 times, most recently from 0a60621 to 71a9e6e Compare June 23, 2023 07:09
@nsbarsukov nsbarsukov force-pushed the maskito-input-number branch 2 times, most recently from b8cbc7e to 49ad1d8 Compare June 23, 2023 13:11
@nsbarsukov nsbarsukov force-pushed the maskito-input-number branch from 49ad1d8 to 22c1ba9 Compare June 26, 2023 09:01
@nsbarsukov nsbarsukov changed the title [WIP] feat(kit): InputNumber uses Maskito instead of legacy text-mask feat(kit): InputNumber uses Maskito instead of legacy text-mask Jun 26, 2023
@nsbarsukov nsbarsukov marked this pull request as ready for review June 26, 2023 12:38
@nsbarsukov nsbarsukov merged commit 7518431 into main Jun 27, 2023
@nsbarsukov nsbarsukov deleted the maskito-input-number branch June 27, 2023 11:02
@well-done-bot
Copy link

well-done-bot bot commented Jun 27, 2023

'Well done'

@@ -146,15 +144,11 @@ export class TuiInputNumberComponent
}

get formattedValue(): string {
return this.getFormattedValue(this.value || 0);
return this.value !== null ? this.getFormattedValue(this.value || 0) : '';
Copy link
Collaborator

Choose a reason for hiding this comment

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

|| 0 is unnecessary :)

Copy link
Member Author

Choose a reason for hiding this comment

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

It is required for NaN.

See https://taiga-ui.dev/charts/arc-chart#sizes (it displays NaN as zero).

@tinkoff-bot tinkoff-bot mentioned this pull request Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants