forked from hamzahamidi/ajsf
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor(ajsf/core): doc, imports, methods
- Loading branch information
1 parent
ce8cf30
commit 15b6ca1
Showing
17 changed files
with
103 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
projects/ajsf-core/src/lib/framework-library/no-framework.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<select-widget-widget [dataIndex]="dataIndex" [layoutIndex]="layoutIndex" [layoutNode]="layoutNode"> | ||
</select-widget-widget> |
7 changes: 1 addition & 6 deletions
7
...ry/no-framework/no-framework.component.ts → ...amework-library/no-framework.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 4 additions & 7 deletions
11
...brary/no-framework/no-framework.module.ts → .../framework-library/no-framework.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
projects/ajsf-core/src/lib/framework-library/no-framework/public_api.ts
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...work-library/no-framework/no.framework.ts → ...src/lib/framework-library/no.framework.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export { enValidationMessages } from './en-validation-messages'; | ||
export { frValidationMessages } from './fr-validation-messages'; | ||
export { zhValidationMessages } from './zh-validation-messages'; | ||
export { itValidationMessages } from './it-validation-messages'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 5 additions & 13 deletions
18
projects/ajsf-core/src/lib/widget-library/widget-library.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
import { BASIC_WIDGETS } from './index'; | ||
import { CommonModule } from '@angular/common'; | ||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; | ||
import { JsonSchemaFormService } from '../json-schema-form.service'; | ||
import { ModuleWithProviders, NgModule } from '@angular/core'; | ||
import { NgModule } from '@angular/core'; | ||
import { OrderableDirective } from './orderable.directive'; | ||
|
||
@NgModule({ | ||
imports: [ CommonModule, FormsModule, ReactiveFormsModule ], | ||
declarations: [ ...BASIC_WIDGETS, OrderableDirective ], | ||
exports: [ ...BASIC_WIDGETS, OrderableDirective ], | ||
entryComponents: [ ...BASIC_WIDGETS ], | ||
providers: [ JsonSchemaFormService ] | ||
imports: [CommonModule, FormsModule, ReactiveFormsModule], | ||
declarations: [...BASIC_WIDGETS, OrderableDirective], | ||
exports: [...BASIC_WIDGETS, OrderableDirective], | ||
entryComponents: [...BASIC_WIDGETS] | ||
}) | ||
export class WidgetLibraryModule { | ||
static forRoot(): ModuleWithProviders { | ||
return { | ||
ngModule: WidgetLibraryModule, | ||
providers: [ JsonSchemaFormService ] | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
projects/ajsf-material/src/lib/widgets/flex-layout-root.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div *ngFor="let layoutNode of layout; let i = index" [class.form-flex-item]="isFlexItem" | ||
[style.flex-grow]="getFlexAttribute(layoutNode, 'flex-grow')" | ||
[style.flex-shrink]="getFlexAttribute(layoutNode, 'flex-shrink')" | ||
[style.flex-basis]="getFlexAttribute(layoutNode, 'flex-basis')" | ||
[style.align-self]="(layoutNode?.options || {})['align-self']" [style.order]="layoutNode?.options?.order" | ||
[fxFlex]="layoutNode?.options?.fxFlex" [fxFlexOrder]="layoutNode?.options?.fxFlexOrder" | ||
[fxFlexOffset]="layoutNode?.options?.fxFlexOffset" [fxFlexAlign]="layoutNode?.options?.fxFlexAlign"> | ||
<select-framework-widget *ngIf="showWidget(layoutNode)" | ||
[dataIndex]="layoutNode?.arrayItem ? (dataIndex || []).concat(i) : (dataIndex || [])" | ||
[layoutIndex]="(layoutIndex || []).concat(i)" [layoutNode]="layoutNode"></select-framework-widget> | ||
<div> |
Oops, something went wrong.