|
402 | 402 | "prefix": "ng-material-module", |
403 | 403 | "description": "App Material Module", |
404 | 404 | "types": "typescript", |
405 | | - "body": [ |
406 | | - "import {NgModule} from '@angular/core';", |
407 | | - "import {", |
408 | | - "\tMatAutocompleteModule,", |
409 | | - "\tMatBadgeModule,", |
410 | | - "\tMatBottomSheetModule,", |
411 | | - "\tMatButtonModule,", |
412 | | - "\tMatButtonToggleModule,", |
413 | | - "\tMatCardModule,", |
414 | | - "\tMatCheckboxModule,", |
415 | | - "\tMatChipsModule,", |
416 | | - "\tMatDatepickerModule,", |
417 | | - "\tMatDialogModule,", |
418 | | - "\tMatDividerModule,", |
419 | | - "\tMatExpansionModule,", |
420 | | - "\tMatFormFieldModule,", |
421 | | - "\tMatGridListModule,", |
422 | | - "\tMatIconModule,", |
423 | | - "\tMatInputModule,", |
424 | | - "\tMatListModule,", |
425 | | - "\tMatMenuModule,", |
426 | | - "\tMatNativeDateModule,", |
427 | | - "\tMatPaginatorModule,", |
428 | | - "\tMatProgressBarModule,", |
429 | | - "\tMatProgressSpinnerModule,", |
430 | | - "\tMatRadioModule,", |
431 | | - "\tMatRippleModule,", |
432 | | - "\tMatSelectModule,", |
433 | | - "\tMatSidenavModule,", |
434 | | - "\tMatSliderModule,", |
435 | | - "\tMatSlideToggleModule,", |
436 | | - "\tMatSnackBarModule,", |
437 | | - "\tMatSortModule,", |
438 | | - "\tMatStepperModule,", |
439 | | - "\tMatTableModule,", |
440 | | - "\tMatTabsModule,", |
441 | | - "\tMatToolbarModule,", |
442 | | - "\tMatTooltipModule,", |
443 | | - "\tMatTreeModule,", |
444 | | - "} from '@angular/material';", |
445 | | - "import {A11yModule} from '@angular/cdk/a11y';", |
446 | | - "import {BidiModule} from '@angular/cdk/bidi';", |
447 | | - "import {ObserversModule} from '@angular/cdk/observers';", |
448 | | - "import {OverlayModule} from '@angular/cdk/overlay';", |
449 | | - "import {PlatformModule} from '@angular/cdk/platform';", |
450 | | - "import {PortalModule} from '@angular/cdk/portal';", |
451 | | - "import {CdkStepperModule} from '@angular/cdk/stepper';", |
452 | | - "import {CdkTableModule} from '@angular/cdk/table';", |
453 | | - "import {CdkTreeModule} from '@angular/cdk/tree';", |
454 | | - "import {DragDropModule} from '@angular/cdk/drag-drop';", |
455 | | - "", |
456 | | - "/**", |
457 | | - " * NgModule that includes all Material modules.", |
458 | | - "*/", |
459 | | - "@NgModule({", |
460 | | - "\texports: [", |
461 | | - "\t\t// CDK", |
462 | | - "\t\tA11yModule,", |
463 | | - "\t\tBidiModule,", |
464 | | - "\t\tObserversModule,", |
465 | | - "\t\tOverlayModule,", |
466 | | - "\t\tPlatformModule,", |
467 | | - "\t\tPortalModule,", |
468 | | - "\t\tCdkStepperModule,", |
469 | | - "\t\tCdkTableModule,", |
470 | | - "\t\tCdkTreeModule,", |
471 | | - "\t\tDragDropModule,", |
472 | | - "\t\t// Material", |
473 | | - "\t\tMatAutocompleteModule,", |
474 | | - "\t\tMatBadgeModule,", |
475 | | - "\t\tMatBottomSheetModule,", |
476 | | - "\t\tMatButtonModule,", |
477 | | - "\t\tMatButtonToggleModule,", |
478 | | - "\t\tMatCardModule,", |
479 | | - "\t\tMatCheckboxModule,", |
480 | | - "\t\tMatChipsModule,", |
481 | | - "\t\tMatDatepickerModule,", |
482 | | - "\t\tMatDialogModule,", |
483 | | - "\t\tMatDividerModule,", |
484 | | - "\t\tMatExpansionModule,", |
485 | | - "\t\tMatFormFieldModule,", |
486 | | - "\t\tMatGridListModule,", |
487 | | - "\t\tMatIconModule,", |
488 | | - "\t\tMatInputModule,", |
489 | | - "\t\tMatListModule,", |
490 | | - "\t\tMatMenuModule,", |
491 | | - "\t\tMatNativeDateModule,", |
492 | | - "\t\tMatPaginatorModule,", |
493 | | - "\t\tMatProgressBarModule,", |
494 | | - "\t\tMatProgressSpinnerModule,", |
495 | | - "\t\tMatRadioModule,", |
496 | | - "\t\tMatRippleModule,", |
497 | | - "\t\tMatSelectModule,", |
498 | | - "\t\tMatSidenavModule,", |
499 | | - "\t\tMatSliderModule,", |
500 | | - "\t\tMatSlideToggleModule,", |
501 | | - "\t\tMatSnackBarModule,", |
502 | | - "\t\tMatSortModule,", |
503 | | - "\t\tMatStepperModule,", |
504 | | - "\t\tMatTableModule,", |
505 | | - "\t\tMatTabsModule,", |
506 | | - "\t\tMatToolbarModule,", |
507 | | - "\t\tMatTooltipModule,", |
508 | | - "\t\tMatTreeModule,", |
509 | | - "\t]", |
510 | | - "})", |
511 | | - "export class MaterialModule {}" |
512 | | - ] |
| 405 | + "Angular Material Module": { |
| 406 | + "prefix": "ng-material-module", |
| 407 | + "description": "App Material Module", |
| 408 | + "types": "typescript", |
| 409 | + "body": [ |
| 410 | + "import { NgModule } from '@angular/core';", |
| 411 | + "import { A11yModule } from '@angular/cdk/a11y';", |
| 412 | + "import { BidiModule } from '@angular/cdk/bidi';", |
| 413 | + "import { ObserversModule } from '@angular/cdk/observers';", |
| 414 | + "import { OverlayModule } from '@angular/cdk/overlay';", |
| 415 | + "import { PlatformModule } from '@angular/cdk/platform';", |
| 416 | + "import { PortalModule } from '@angular/cdk/portal';", |
| 417 | + "import { CdkStepperModule } from '@angular/cdk/stepper';", |
| 418 | + "import { CdkTableModule } from '@angular/cdk/table';", |
| 419 | + "import { CdkTreeModule } from '@angular/cdk/tree';", |
| 420 | + "import { DragDropModule } from '@angular/cdk/drag-drop';", |
| 421 | + "import { PortalModule } from '@angular/cdk/portal';", |
| 422 | + "import { MatAutocompleteModule } from '@angular/material/autocomplete';", |
| 423 | + "import { MatButtonModule } from '@angular/material/button';", |
| 424 | + "import { MatButtonToggleModule } from '@angular/material/button-toggle';", |
| 425 | + "import { MatCardModule } from '@angular/material/card';", |
| 426 | + "import { MatCheckboxModule } from '@angular/material/checkbox';", |
| 427 | + "import { MatChipsModule } from '@angular/material/chips';", |
| 428 | + "import { MatRippleModule } from '@angular/material/core';", |
| 429 | + "import { MatDividerModule } from '@angular/material/divider';", |
| 430 | + "import { MatExpansionModule } from '@angular/material/expansion';", |
| 431 | + "import { MatFormFieldModule } from '@angular/material/form-field';", |
| 432 | + "import { MatIconModule } from '@angular/material/icon';", |
| 433 | + "import { MatInputModule } from '@angular/material/input';", |
| 434 | + "import { MatListModule } from '@angular/material/list';", |
| 435 | + "import { MatMenuModule } from '@angular/material/menu';", |
| 436 | + "import { MatPaginatorModule } from '@angular/material/paginator';", |
| 437 | + "import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';", |
| 438 | + "import { MatSelectModule } from '@angular/material/select';", |
| 439 | + "import { MatSidenavModule } from '@angular/material/sidenav';", |
| 440 | + "import { MatSnackBarModule } from '@angular/material/snack-bar';", |
| 441 | + "import { MatSortModule } from '@angular/material/sort';", |
| 442 | + "import { MatTableModule } from '@angular/material/table';", |
| 443 | + "import { MatTabsModule } from '@angular/material/tabs';", |
| 444 | + "import { MatToolbarModule } from '@angular/material/toolbar';", |
| 445 | + "import { MatTreeModule } from '@angular/material/tree';", |
| 446 | + |
| 447 | + "const materialModules = [", |
| 448 | + "\t\tA11yModule", |
| 449 | + "\t\tBidiModule", |
| 450 | + "\t\tObserversModule", |
| 451 | + "\t\tOverlayModule", |
| 452 | + "\t\tPlatformModule", |
| 453 | + "\t\tPortalModule", |
| 454 | + "\t\tCdkStepperModule", |
| 455 | + "\t\tCdkTableModule", |
| 456 | + "\t\tCdkTreeModule", |
| 457 | + "\t\tDragDropModule", |
| 458 | + "\t\tMatAutocompleteModule,", |
| 459 | + "\t\tMatButtonModule,", |
| 460 | + "\t\tMatCardModule,", |
| 461 | + "\t\tMatCheckboxModule,", |
| 462 | + "\t\tMatChipsModule,", |
| 463 | + "\t\tMatDividerModule,", |
| 464 | + "\t\tMatExpansionModule,", |
| 465 | + "\t\tMatIconModule,", |
| 466 | + "\t\tMatInputModule,", |
| 467 | + "\t\tMatListModule,", |
| 468 | + "\t\tMatMenuModule,", |
| 469 | + "\t\tMatProgressSpinnerModule,", |
| 470 | + "\t\tMatPaginatorModule,", |
| 471 | + "\t\tMatRippleModule,", |
| 472 | + "\t\tMatSelectModule,", |
| 473 | + "\t\tMatSidenavModule,", |
| 474 | + "\t\tMatSnackBarModule,", |
| 475 | + "\t\tMatSortModule,", |
| 476 | + "\t\tMatTableModule,", |
| 477 | + "\t\tMatTabsModule,", |
| 478 | + "\t\tMatToolbarModule,", |
| 479 | + "\t\tMatFormFieldModule,", |
| 480 | + "\t\tMatButtonToggleModule,", |
| 481 | + "\t\tMatTreeModule,", |
| 482 | + "\t\t];", |
| 483 | + |
| 484 | + "@NgModule({", |
| 485 | + "imports: [...materialModules],", |
| 486 | + "exports: [...materialModules],", |
| 487 | + "})", |
| 488 | + "export class MaterialModule {}" |
| 489 | + ] |
513 | 490 | }, |
514 | 491 | "Angular Pipe": { |
515 | 492 | "prefix": "ng-pipe", |
|
0 commit comments