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(module:autocomplete): support standalone component #8193

Conversation

evgeniyefimov
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Transfromed Autocomplete module to standalone simillar to #8037

Seems NzInputModule is unused. Didn't find any usage of this module in the scope of Autocomplete. Removed.

Imported only required directives from @angular/common instead of whole CommonModule.

Copy link

zorro-bot bot commented Nov 27, 2023

This preview will be available after the AzureCI is passed.

Copy link

codecov bot commented Nov 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0bebd6a) 91.70% compared to head (0e8bb17) 91.71%.
Report is 74 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8193   +/-   ##
=======================================
  Coverage   91.70%   91.71%           
=======================================
  Files         519      520    +1     
  Lines       17887    17905   +18     
  Branches     2836     2839    +3     
=======================================
+ Hits        16403    16421   +18     
+ Misses       1182     1181    -1     
- Partials      302      303    +1     

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

Copy link
Collaborator

@HyperLife1119 HyperLife1119 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -64,6 +65,8 @@ function normalizeDataSource(value: AutocompleteDataSource): AutocompleteDataSou
preserveWhitespaces: false,
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
standalone: true,
imports: [BidiModule, NgClass, NgFor, NgStyle, NgTemplateOutlet, NzAutocompleteOptionComponent, NzNoAnimationModule],
Copy link
Collaborator

Choose a reason for hiding this comment

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

suggestion: BidiModule is not necessary here. We don't use dir directive

@Nicoss54
Copy link
Collaborator

Nicoss54 commented Dec 4, 2023

@evgeniyefimov could you juste remove the BidiModule, after that LGTM and i will merge it

@Nicoss54
Copy link
Collaborator

Nicoss54 commented Dec 5, 2023

LGTM

@Nicoss54 Nicoss54 merged commit 548e842 into NG-ZORRO:master Dec 5, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants