Skip to content

Commit

Permalink
refactor: make FluentFormItemOutletComponent rename to FluentFormItem…
Browse files Browse the repository at this point in the history
…ContentComponent
  • Loading branch information
HyperLife1119 committed May 4, 2024
1 parent e9a80a0 commit c5cc68d
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { NzFormModule } from 'ng-zorro-antd/form';
import { FluentBindingDirective, TemplateRefHolder } from '../../directives';
import { FluentColumnPipe, FluentControlPipe, FluentReactivePipe, RenderablePipe } from '../../pipes';
import { AbstractSchema } from '../../schemas';
import { FluentFormItemOutletComponent } from '../form-item-outlet/form-item-outlet.component';
import { FluentFormItemContentComponent } from '../form-item-content/form-item-content.component';
import { FluentGridModule } from '../grid';

@Directive()
Expand All @@ -23,7 +23,7 @@ export abstract class AbstractFormContentComponent extends TemplateRefHolder<{ f
ReactiveFormsModule,
NzFormModule,
FluentGridModule,
FluentFormItemOutletComponent,
FluentFormItemContentComponent,
FluentBindingDirective,
FluentReactivePipe,
FluentControlPipe,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { FormGroup } from '@angular/forms';
import { AnyArray, AnyObject } from '@ngify/types';
import { withAllWidgets } from '../../features';
import { provideFluentForm } from '../../provider';
import { FluentFormItemOutletComponent } from './form-item-outlet.component';
import { FluentFormItemContentComponent } from './form-item-content.component';

describe('FluentFormItemOutletComponent', () => {
let component: FluentFormItemOutletComponent<AnyObject | AnyArray>;
let fixture: ComponentFixture<FluentFormItemOutletComponent<AnyObject | AnyArray>>;
let component: FluentFormItemContentComponent<AnyObject | AnyArray>;
let fixture: ComponentFixture<FluentFormItemContentComponent<AnyObject | AnyArray>>;

beforeEach(() => {
TestBed.configureTestingModule({
Expand All @@ -18,7 +18,7 @@ describe('FluentFormItemOutletComponent', () => {
]
});

fixture = TestBed.createComponent(FluentFormItemOutletComponent);
fixture = TestBed.createComponent(FluentFormItemContentComponent);
component = fixture.componentInstance;
component.control = new FormGroup({});
component.schema = { kind: 'button' };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Indexable } from '../../types';
* @internal
*/
@Component({
selector: 'fluent-col[schema],[fluentFormItemOutlet]',
selector: 'fluent-col[schema],[fluentFormItemContent]',
standalone: true,
imports: [
NgIf,
Expand All @@ -34,10 +34,10 @@ import { Indexable } from '../../types';
FluentSchemaTypePipe,
InvokePipe
],
templateUrl: './form-item-outlet.component.html',
templateUrl: './form-item-content.component.html',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class FluentFormItemOutletComponent<T extends AnyObject | AnyArray> {
export class FluentFormItemContentComponent<T extends AnyObject | AnyArray> {
protected readonly SchemaType = SchemaType;

@Input() control!: AbstractControl;
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-fluent-form/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './form-content/form-content.component';
export * from './form-item-outlet/form-item-outlet.component';
export * from './form-item-content/form-item-content.component';
export * from './form/form.component';
export * from './grid';
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
import { NzFormModule } from 'ng-zorro-antd/form';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { FluentFormItemOutletComponent, FluentGridModule } from '../../components';
import { FluentFormItemContentComponent, FluentGridModule } from '../../components';
import { FluentBindingDirective, FluentContextGuardDirective, FluentParentRowDirective, FluentVarDirective } from '../../directives';
import { FluentColumnPipe, FluentReactivePipe, FluentTemplatePipe, InvokePipe, RenderablePipe } from '../../pipes';
import { AbstractSchema, AddableButton, FormArraySchema, WithOutSchemaReactiveFn } from '../../schemas';
Expand All @@ -32,7 +32,7 @@ type FormArrayWidgetTemplateContext = WidgetTemplateContext<FormArraySchema, For
NzIconModule,
NzOutletModule,
FluentGridModule,
FluentFormItemOutletComponent,
FluentFormItemContentComponent,
FluentBindingDirective,
FluentContextGuardDirective,
FluentParentRowDirective,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet } from '@angular/common
import { Component } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { NzFormModule } from 'ng-zorro-antd/form';
import { FluentFormItemOutletComponent, FluentGridModule } from '../../components';
import { FluentFormItemContentComponent, FluentGridModule } from '../../components';
import { FluentBindingDirective, FluentContextGuardDirective, FluentParentRowDirective } from '../../directives';
import { FluentColumnPipe, FluentControlPipe, FluentReactivePipe, RenderablePipe } from '../../pipes';
import { FormGroupSchema } from '../../schemas';
Expand All @@ -23,7 +23,7 @@ type FormGroupWidgetTemplateContext = WidgetTemplateContext<FormGroupSchema, For
NgTemplateOutlet,
NzFormModule,
FluentGridModule,
FluentFormItemOutletComponent,
FluentFormItemContentComponent,
FluentBindingDirective,
FluentContextGuardDirective,
FluentParentRowDirective,
Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-fluent-form/src/widgets/row/row.widget.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NgClass, NgFor, NgStyle, NgTemplateOutlet } from '@angular/common';
import { Component } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { FluentFormItemOutletComponent, FluentGridModule } from '../../components';
import { FluentFormItemContentComponent, FluentGridModule } from '../../components';
import { FluentBindingDirective, FluentContextGuardDirective, FluentParentRowDirective } from '../../directives';
import { FluentColumnPipe, FluentControlPipe, FluentReactivePipe } from '../../pipes';
import { RowComponentSchema } from '../../schemas';
Expand All @@ -20,7 +20,7 @@ type RowWidgetTemplateContext = WidgetTemplateContext<RowComponentSchema, FormGr
NgStyle,
NgTemplateOutlet,
FluentGridModule,
FluentFormItemOutletComponent,
FluentFormItemContentComponent,
FluentBindingDirective,
FluentParentRowDirective,
FluentReactivePipe,
Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-fluent-form/src/widgets/steps/steps.widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { NgClass, NgFor, NgStyle, NgTemplateOutlet } from '@angular/common';
import { Component } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { NzStepsModule } from 'ng-zorro-antd/steps';
import { FluentFormItemOutletComponent, FluentGridModule } from '../../components';
import { FluentFormItemContentComponent, FluentGridModule } from '../../components';
import { FluentBindingDirective, FluentContextGuardDirective, FluentParentRowDirective } from '../../directives';
import { FluentColumnPipe, FluentControlPipe, FluentReactivePipe, FluentTemplatePipe } from '../../pipes';
import { StepsComponentSchema } from '../../schemas';
Expand All @@ -22,7 +22,7 @@ type StepsWidgetTemplateContext = WidgetTemplateContext<StepsComponentSchema, Fo
NgTemplateOutlet,
NzStepsModule,
FluentGridModule,
FluentFormItemOutletComponent,
FluentFormItemContentComponent,
FluentBindingDirective,
FluentParentRowDirective,
FluentContextGuardDirective,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
import { NzEmptyModule } from 'ng-zorro-antd/empty';
import { NzFormModule } from 'ng-zorro-antd/form';
import { NzTabsModule } from 'ng-zorro-antd/tabs';
import { FluentFormItemOutletComponent, FluentGridModule } from '../../components';
import { FluentFormItemContentComponent, FluentGridModule } from '../../components';
import { FluentBindingDirective, FluentContextGuardDirective, FluentParentRowDirective, FluentVarDirective } from '../../directives';
import { FluentColumnPipe, FluentReactivePipe, FluentTemplatePipe, InvokePipe, RenderablePipe } from '../../pipes';
import { AbstractSchema, TabsArraySchema } from '../../schemas';
Expand All @@ -30,7 +30,7 @@ type TabsArrayWidgetTemplateContext = WidgetTemplateContext<TabsArraySchema, For
NzTabsModule,
NzOutletModule,
FluentGridModule,
FluentFormItemOutletComponent,
FluentFormItemContentComponent,
FluentBindingDirective,
FluentContextGuardDirective,
FluentParentRowDirective,
Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-fluent-form/src/widgets/tabs/tabs.widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { NgClass, NgFor, NgStyle, NgTemplateOutlet } from '@angular/common';
import { Component } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { NzTabsModule } from 'ng-zorro-antd/tabs';
import { FluentFormItemOutletComponent, FluentGridModule } from '../../components';
import { FluentFormItemContentComponent, FluentGridModule } from '../../components';
import { FluentBindingDirective, FluentContextGuardDirective, FluentParentRowDirective } from '../../directives';
import { FluentColumnPipe, FluentControlPipe, FluentReactivePipe } from '../../pipes';
import { TabsComponentSchema } from '../../schemas';
Expand All @@ -22,7 +22,7 @@ type TabsWidgetTemplateContext = WidgetTemplateContext<TabsComponentSchema, Form
NgTemplateOutlet,
NzTabsModule,
FluentGridModule,
FluentFormItemOutletComponent,
FluentFormItemContentComponent,
FluentBindingDirective,
FluentParentRowDirective,
FluentContextGuardDirective,
Expand Down

0 comments on commit c5cc68d

Please sign in to comment.