Skip to content

Commit

Permalink
Merge pull request #14521 from abpframework/issue/8120
Browse files Browse the repository at this point in the history
Angular UI: Change ngx-validate target selector #8120
  • Loading branch information
muhammedaltug authored Nov 3, 2022
2 parents 373365a + 810fb58 commit fd91ee4
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { UntypedFormGroup } from '@angular/forms';
@Component({
selector: 'abp-personal-settings-half-row',
template: ` <div class="w-50 d-inline">
<div class="mb-3 form-group">
<div class="mb-3">
<label [attr.for]="name" class="form-label">{{ displayName | abpLocalization }} </label>
<input
type="text"
Expand Down
60 changes: 30 additions & 30 deletions npm/ng-packs/packages/theme-basic/src/lib/theme-basic.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,35 +28,35 @@ import { BASIC_THEME_USER_MENU_PROVIDERS } from './providers/user-menu.provider'
export const LAYOUTS = [ApplicationLayoutComponent, AccountLayoutComponent, EmptyLayoutComponent];

@NgModule({
declarations: [
...LAYOUTS,
ValidationErrorComponent,
LogoComponent,
NavItemsComponent,
RoutesComponent,
CurrentUserComponent,
LanguagesComponent,
PageAlertContainerComponent,
TenantBoxComponent,
AuthWrapperComponent,
],
exports: [
...LAYOUTS,
ValidationErrorComponent,
LogoComponent,
NavItemsComponent,
RoutesComponent,
CurrentUserComponent,
LanguagesComponent,
PageAlertContainerComponent,
],
imports: [
CoreModule,
ThemeSharedModule,
NgbCollapseModule,
NgbDropdownModule,
NgxValidateCoreModule,
]
declarations: [
...LAYOUTS,
ValidationErrorComponent,
LogoComponent,
NavItemsComponent,
RoutesComponent,
CurrentUserComponent,
LanguagesComponent,
PageAlertContainerComponent,
TenantBoxComponent,
AuthWrapperComponent,
],
exports: [
...LAYOUTS,
ValidationErrorComponent,
LogoComponent,
NavItemsComponent,
RoutesComponent,
CurrentUserComponent,
LanguagesComponent,
PageAlertContainerComponent,
],
imports: [
CoreModule,
ThemeSharedModule,
NgbCollapseModule,
NgbDropdownModule,
NgxValidateCoreModule,
],
})
export class BaseThemeBasicModule {}

Expand All @@ -78,7 +78,7 @@ export class ThemeBasicModule {
},
{
provide: VALIDATION_TARGET_SELECTOR,
useValue: '.form-group',
useValue: '*:has(> .form-control)',
},
{
provide: VALIDATION_INVALID_CLASSES,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</ng-container>
</ng-template>

<div [ngClass]="containerClassName" class="mb-3 form-group">
<div [ngClass]="containerClassName" class="mb-3">
<ng-template ngSwitchCase="input">
<ng-template [ngTemplateOutlet]="label"></ng-template>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class ExtensibleFormPropComponent implements OnChanges, AfterViewInit {

asterisk = '';

containerClassName = 'mb-3 form-group';
containerClassName = 'mb-3';

options$: Observable<ABP.Option<any>[]> = of([]);

Expand Down

0 comments on commit fd91ee4

Please sign in to comment.