Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Angular - Abp form field component#23971

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
erdemcaygor wants to merge11 commits intodev
base:dev
Choose a base branch
Loading
fromfeat/#23955
Draft

Angular - Abp form field component#23971

erdemcaygor wants to merge11 commits intodevfromfeat/#23955

Conversation

@erdemcaygor
Copy link
Contributor

@erdemcaygorerdemcaygor commentedOct 16, 2025
edited
Loading

Description

Resolves#23955

Includes

  • abp-form-field
  • abp-input
  • abp-form-field-hint

Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new AbpInputComponent as a secondary entry point for the ABP Angular components library, providing a reusable form input component with built-in validation display and localization support.

  • Adds a newAbpInputComponent that implementsControlValueAccessor for Angular reactive forms integration
  • Creates a secondary entry point@abp/ng.components/abp-input for modular imports
  • Updates TypeScript configuration to support the new component structure

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
FileDescription
npm/ng-packs/tsconfig.base.jsonAdds path mapping for the new abp-input secondary entry point
npm/ng-packs/packages/components/tsconfig.lib.jsonFixes exclude path for test-setup.ts
npm/ng-packs/packages/components/abp-input/src/public-api.tsExports the AbpInputComponent for public API
npm/ng-packs/packages/components/abp-input/src/lib/abp-input.component.tsMain component implementation with form integration and validation
npm/ng-packs/packages/components/abp-input/src/lib/abp-input.component.htmlTemplate with form controls, labels, and error display
npm/ng-packs/packages/components/abp-input/src/index.tsRe-exports component from lib directory
npm/ng-packs/packages/components/abp-input/ng-package.jsonPackage configuration for Angular library build
npm/ng-packs/packages/components/abp-input/README.mdDocumentation for the new secondary entry point

Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.

});
}

writeValue(value: any[]): void {

Choose a reason for hiding this comment

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

The writeValue method expects an array type (any[]) but the component appears to handle single values based on the template and form control setup. This should bewriteValue(value: any): void instead.

Suggested change
writeValue(value: any[]):void{
writeValue(value: any):void{

Copilot uses AI. Check for mistakes.
Comment on lines +95 to +97
return []
}
return []

Choose a reason for hiding this comment

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

The errors getter always returns an empty array regardless of whether there are actual errors. It should return the actual error messages whenthis.control.errors exists.

Suggested change
return[]
}
return[]
returnObject.keys(this.control.errors);
}
return[];

Copilot uses AI. Check for mistakes.
}
</div>
}
<div></div>

Choose a reason for hiding this comment

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

Empty div element serves no purpose and should be removed to keep the template clean.

Suggested change
<div></div>

Copilot uses AI. Check for mistakes.
abpInputFormGroup: FormGroup;

ngOnInit() {

Choose a reason for hiding this comment

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

[nitpick] Extra blank line after method declaration should be removed for consistency.

Suggested change

Copilot uses AI. Check for mistakes.
@erdemcaygorerdemcaygor changed the titleAngular - Abp form input componentAngular - Abp form field componentOct 20, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Angular - Create ABP forms component

2 participants

@erdemcaygor

[8]ページ先頭

©2009-2025 Movatter.jp