|
@@ -10,11 +10,26 @@ import { DynafieldDirective } from './directives/dynafield.directive';
|
|
|
import { DynaformService } from './services/dynaform.service';
|
|
|
import { ModelMapperService } from './services/model-mapper.service';
|
|
|
|
|
|
-import * as formFieldComponents from './components';
|
|
|
-const ffcArr = Object.values(formFieldComponents); // Array of all the Form Field Components
|
|
|
-
|
|
|
import { DateInputsModule } from '@progress/kendo-angular-dateinputs';
|
|
|
|
|
|
+import { TextComponent } from './components/native/text/text.component';
|
|
|
+import { TextareaComponent } from './components/native/textarea/textarea.component';
|
|
|
+import { PasswordComponent } from './components/native/password/password.component';
|
|
|
+import { SelectComponent } from './components/native/select/select.component';
|
|
|
+import { RadioComponent } from './components/native/radio/radio.component';
|
|
|
+import { HiddenComponent } from './components/native/hidden/hidden.component';
|
|
|
+import { CheckbuttonComponent } from './components/custom/checkbutton/checkbutton.component';
|
|
|
+import { DropdownModifiedInputComponent } from './components/custom/dropdown-modified-input/dropdown-modified-input.component';
|
|
|
+import { MultilineComponent } from './components/custom/multiline/multiline.component';
|
|
|
+import { CheckbuttonGroupComponent } from './components/group/checkbutton-group/checkbutton-group.component';
|
|
|
+import { TimepickerComponent } from './components/kendo/timepicker/timepicker.component';
|
|
|
+import { DatepickerComponent } from './components/kendo/datepicker/datepicker.component';
|
|
|
+import { ButtonGroupComponent } from './components/nocontrol/button-group/button-group.component';
|
|
|
+import { HeadingComponent } from './components/nocontrol/heading/heading.component';
|
|
|
+import { DisplayComponent } from './components/nocontrol/display/display.component';
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
@NgModule({
|
|
|
imports: [
|
|
|
CommonModule,
|
|
@@ -27,9 +42,39 @@ import { DateInputsModule } from '@progress/kendo-angular-dateinputs';
|
|
|
declarations: [
|
|
|
DynaformComponent,
|
|
|
DynafieldDirective,
|
|
|
- ...ffcArr
|
|
|
+ TextComponent,
|
|
|
+ TextareaComponent,
|
|
|
+ PasswordComponent,
|
|
|
+ SelectComponent,
|
|
|
+ RadioComponent,
|
|
|
+ HiddenComponent,
|
|
|
+ CheckbuttonComponent,
|
|
|
+ DropdownModifiedInputComponent,
|
|
|
+ MultilineComponent,
|
|
|
+ CheckbuttonGroupComponent,
|
|
|
+ TimepickerComponent,
|
|
|
+ DatepickerComponent,
|
|
|
+ ButtonGroupComponent,
|
|
|
+ HeadingComponent,
|
|
|
+ DisplayComponent
|
|
|
+ ],
|
|
|
+ entryComponents: [
|
|
|
+ TextComponent,
|
|
|
+ TextareaComponent,
|
|
|
+ PasswordComponent,
|
|
|
+ SelectComponent,
|
|
|
+ RadioComponent,
|
|
|
+ HiddenComponent,
|
|
|
+ CheckbuttonComponent,
|
|
|
+ DropdownModifiedInputComponent,
|
|
|
+ MultilineComponent,
|
|
|
+ CheckbuttonGroupComponent,
|
|
|
+ TimepickerComponent,
|
|
|
+ DatepickerComponent,
|
|
|
+ ButtonGroupComponent,
|
|
|
+ HeadingComponent,
|
|
|
+ DisplayComponent
|
|
|
],
|
|
|
- entryComponents: ffcArr,
|
|
|
providers: [
|
|
|
DynaformService,
|
|
|
ModelMapperService
|
|
@@ -42,3 +87,4 @@ import { DateInputsModule } from '@progress/kendo-angular-dateinputs';
|
|
|
]
|
|
|
})
|
|
|
export class DynaformModule { }
|
|
|
+
|