Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return (host: Tree) => {
const modulePath = findModuleFromOptions(host, options)!;
addModuleImportToModule(host, modulePath, 'MatGridListModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatCardModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatMenuModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatIconModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'LayoutModule', '@angular/cdk/layout');
return host;
};
}
return (host: Tree) => {
const modulePath = findModuleFromOptions(host, options)!;
addModuleImportToModule(host, modulePath, 'LayoutModule', '@angular/cdk/layout');
addModuleImportToModule(host, modulePath, 'MatToolbarModule', '@angular/material/toolbar');
addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material/button');
addModuleImportToModule(host, modulePath, 'MatSidenavModule', '@angular/material/sidenav');
addModuleImportToModule(host, modulePath, 'MatIconModule', '@angular/material/icon');
addModuleImportToModule(host, modulePath, 'MatListModule', '@angular/material/list');
return host;
};
}
return (host: Tree) => {
const modulePath = findModuleFromOptions(host, options)!;
addModuleImportToModule(host, modulePath, 'LayoutModule', '@angular/cdk/layout');
addModuleImportToModule(host, modulePath, 'MatToolbarModule', '@angular/material/toolbar');
addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material/button');
addModuleImportToModule(host, modulePath, 'MatSidenavModule', '@angular/material/sidenav');
addModuleImportToModule(host, modulePath, 'MatIconModule', '@angular/material/icon');
addModuleImportToModule(host, modulePath, 'MatListModule', '@angular/material/list');
return host;
};
}
return (host: Tree) => {
const modulePath = findModuleFromOptions(host, options)!;
addModuleImportToModule(host, modulePath, 'MatInputModule', '@angular/material/input');
addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material/button');
addModuleImportToModule(host, modulePath, 'MatSelectModule', '@angular/material/select');
addModuleImportToModule(host, modulePath, 'MatRadioModule', '@angular/material/radio');
addModuleImportToModule(host, modulePath, 'MatCardModule', '@angular/material/card');
addModuleImportToModule(host, modulePath, 'ReactiveFormsModule', '@angular/forms');
return host;
};
}
return (host: Tree) => {
const modulePath = findModuleFromOptions(host, options)!;
addModuleImportToModule(host, modulePath, 'MatGridListModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatCardModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatMenuModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatIconModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'LayoutModule', '@angular/cdk/layout');
return host;
};
}
return (host: Tree) => {
const modulePath = findModuleFromOptions(host, options)!;
addModuleImportToModule(host, modulePath, 'MatGridListModule', '@angular/material/grid-list');
addModuleImportToModule(host, modulePath, 'MatCardModule', '@angular/material/card');
addModuleImportToModule(host, modulePath, 'MatMenuModule', '@angular/material/menu');
addModuleImportToModule(host, modulePath, 'MatIconModule', '@angular/material/icon');
addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material/button');
addModuleImportToModule(host, modulePath, 'LayoutModule', '@angular/cdk/layout');
return host;
};
}
return (host: Tree) => {
const modulePath = findModuleFromOptions(host, options)!;
addModuleImportToModule(host, modulePath, 'MatInputModule', '@angular/material/input');
addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material/button');
addModuleImportToModule(host, modulePath, 'MatSelectModule', '@angular/material/select');
addModuleImportToModule(host, modulePath, 'MatRadioModule', '@angular/material/radio');
addModuleImportToModule(host, modulePath, 'MatCardModule', '@angular/material/card');
addModuleImportToModule(host, modulePath, 'ReactiveFormsModule', '@angular/forms');
return host;
};
}
return (host: Tree) => {
const modulePath = findModuleFromOptions(host, options)!;
addModuleImportToModule(host, modulePath, 'MatTableModule', '@angular/material/table');
addModuleImportToModule(host, modulePath, 'MatPaginatorModule', '@angular/material/paginator');
addModuleImportToModule(host, modulePath, 'MatSortModule', '@angular/material/sort');
return host;
};
}
return (host: Tree) => {
const modulePath = findModuleFromOptions(host, options)!;
addModuleImportToModule(host, modulePath, 'MatGridListModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatCardModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatMenuModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatIconModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'LayoutModule', '@angular/cdk/layout');
return host;
};
}
return (host: Tree) => {
const modulePath = findModuleFromOptions(host, options)!;
addModuleImportToModule(host, modulePath, 'MatInputModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatSelectModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatRadioModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'MatCardModule', '@angular/material');
addModuleImportToModule(host, modulePath, 'ReactiveFormsModule', '@angular/forms');
return host;
};
}