Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
MatDialogModule,
MatSidenavModule,
DragDropModule,
];
@NgModule({
imports: [
SharedModule,
BreadcrumbsModule,
[...matModules],
AppConfirmModule,
TruncateModule,
HelperModule,
ToolbarModule,
QuickpanelModule,
FormlyModule.forChild({}),
FormlyMaterialModule,
RouterModule.forChild([
/* {path: '', pathMatch: 'full', component: InsertYourComponentHere} */
{
path: '',
component: AdminLayoutComponent,
// canActivate: [AuthGuard],
canActivate: [AdminGuard],
data: { title: 'Admin', depth: 1, roles: ['ROLE_ADMIN'] },
children: [
{ path: '', component: OverviewComponent, data: { title: 'Overview', depth: 2 } },
{
path: 'subscriptions',
component: SubscriptionsComponent,
data: { title: 'Subscriptions', depth: 3 },
children: [import { DropdownModule } from 'primeng/dropdown';
import { FormlySelectModule as FormlyCoreSelectModule } from '@ngx-formly/core/select';
import { FormlyFormFieldModule } from '@ngx-formly/primeng/form-field';
import { FormlyFieldSelect } from './select.type';
@NgModule({
declarations: [FormlyFieldSelect],
imports: [
CommonModule,
ReactiveFormsModule,
DropdownModule,
FormlyFormFieldModule,
FormlyCoreSelectModule,
FormlyModule.forChild({
types: [
{
name: 'select',
component: FormlyFieldSelect,
wrappers: ['form-field'],
},
],
}),
],
})
export class FormlySelectModule {}<form>
</form>
`,
inputs,
config,
declarations: [ParentComponent, ChildComponent],
imports: [
FormlyInputModule,
FormlyModule.forChild({
types: [
{
name: 'parent',
component: ParentComponent,
},
{
name: 'child',
component: ChildComponent,
},
],
}),
],
...config,
});
};
import { CommonModule } from '@angular/common';
import { FormlyModule } from '@ngx-formly/core';
import { ReactiveFormsModule } from '@angular/forms';
import { FormlySelectModule } from '@ngx-formly/core/select';
import { FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';
import { FormlyFieldRadio } from './radio.type';
@NgModule({
declarations: [FormlyFieldRadio],
imports: [
CommonModule,
ReactiveFormsModule,
FormlyFormFieldModule,
FormlySelectModule,
FormlyModule.forChild({
types: [
{
name: 'radio',
component: FormlyFieldRadio,
wrappers: ['form-field'],
},
],
}),
],
})
export class FormlyRadioModule {}import { FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';
import { MatRadioModule } from '@angular/material/radio';
import { FormlyFieldRadio } from './radio.type';
@NgModule({
declarations: [FormlyFieldRadio],
imports: [
CommonModule,
ReactiveFormsModule,
MatRadioModule,
FormlyMatFormFieldModule,
FormlySelectModule,
FormlyModule.forChild({
types: [{
name: 'radio',
component: FormlyFieldRadio,
wrappers: ['form-field'],
}],
}),
],
})
export class FormlyMatRadioModule { }import { CommonModule } from '@angular/common';
import { FormlyModule } from '@ngx-formly/core';
import { ReactiveFormsModule } from '@angular/forms';
import { CheckboxModule } from 'primeng/checkbox';
import { FormlyFormFieldModule } from '@ngx-formly/primeng/form-field';
import { FormlyFieldCheckbox } from './checkbox.type';
@NgModule({
declarations: [FormlyFieldCheckbox],
imports: [
CommonModule,
ReactiveFormsModule,
CheckboxModule,
FormlyFormFieldModule,
FormlyModule.forChild({
types: [
{
name: 'checkbox',
component: FormlyFieldCheckbox,
wrappers: ['form-field'],
},
],
}),
],
})
export class FormlyCheckboxModule {}import { FormlyModule } from '@ngx-formly/core';
import { ReactiveFormsModule } from '@angular/forms';
import { FormlySelectModule } from '@ngx-formly/core/select';
import { FormlyBootstrapFormFieldModule } from '@ngx-formly/bootstrap/form-field';
import { FormlyFieldRadio } from './radio.type';
@NgModule({
declarations: [FormlyFieldRadio],
imports: [
CommonModule,
ReactiveFormsModule,
FormlyBootstrapFormFieldModule,
FormlySelectModule,
FormlyModule.forChild({
types: [
{
name: 'radio',
component: FormlyFieldRadio,
wrappers: ['form-field'],
},
],
}),
],
})
export class FormlyBootstrapRadioModule {}import { ReactiveFormsModule } from '@angular/forms';
import { FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';
import { MatInputModule } from '@angular/material/input';
import { FormlyFieldInput } from './input.type';
@NgModule({
declarations: [FormlyFieldInput],
imports: [
CommonModule,
ReactiveFormsModule,
MatInputModule,
FormlyMatFormFieldModule,
FormlyModule.forChild({
types: [
{
name: 'input',
component: FormlyFieldInput,
wrappers: ['form-field'],
},
],
}),
],
})
export class FormlyMatInputModule { }import {MatRadioModule} from '@angular/material/radio';
import {FormlyFieldRadio} from './radio.type';
import {TranslateModule} from '@ngx-translate/core';
@NgModule({
declarations: [FormlyFieldRadio],
imports: [
CommonModule,
ReactiveFormsModule,
MatRadioModule,
TranslateModule,
FormlyMatFormFieldModule,
FormlySelectModule,
FormlyModule.forChild({
types: [{
name: 'radio',
component: FormlyFieldRadio,
wrappers: ['form-field'],
}],
}),
],
})
export class FormlyMatRadioModule {
}import {EffectsModule} from '@ngrx/effects';
import {GlobalConfigEffects} from './store/global-config.effects';
import {ConfigSectionComponent} from './config-section/config-section.component';
import {ConfigFormComponent} from './config-form/config-form.component';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {FormlyModule} from '@ngx-formly/core';
import {UiModule} from '../../ui/ui.module';
import {KeyboardInputComponent} from './keyboard-input/keyboard-input.component';
import {GoogleSyncCfgComponent} from '../google/google-sync-cfg/google-sync-cfg.component';
import {FileImexModule} from '../../imex/file-imex/file-imex.module';
@NgModule({
imports: [
FormsModule,
ReactiveFormsModule,
FormlyModule.forChild({
types: [{
name: 'keyboard',
component: KeyboardInputComponent,
extends: 'input',
wrappers: ['form-field'],
}]
}),
CommonModule,
StoreModule.forFeature(CONFIG_FEATURE_NAME, globalConfigReducer),
EffectsModule.forFeature([GlobalConfigEffects]),
UiModule,
FileImexModule,
],
declarations: [
GoogleSyncCfgComponent,
ConfigSectionComponent,