ng-zorro-antd-icon-testing.mjs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import * as i0 from '@angular/core';
  2. import { NgModule } from '@angular/core';
  3. import * as AllIcons from '@ant-design/icons-angular/icons';
  4. import { NzIconModule, NZ_ICONS, provideNzIcons } from 'ng-zorro-antd/icon';
  5. /**
  6. * Use of this source code is governed by an MIT-style license that can be
  7. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  8. */
  9. const antDesignIcons = AllIcons;
  10. const icons = Object.keys(antDesignIcons).map(key => {
  11. const i = antDesignIcons[key];
  12. return i;
  13. });
  14. /**
  15. * @internal
  16. * @deprecated Internal use only, do not use directly. Will be removed in v20
  17. * Include this module in every testing spec, except `icon.spec.ts`.
  18. */
  19. // @dynamic
  20. class NzIconTestModule {
  21. static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzIconTestModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
  22. static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: NzIconTestModule, exports: [NzIconModule] });
  23. static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzIconTestModule, providers: [
  24. {
  25. provide: NZ_ICONS,
  26. useValue: icons
  27. }
  28. ], imports: [NzIconModule] });
  29. }
  30. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzIconTestModule, decorators: [{
  31. type: NgModule,
  32. args: [{
  33. exports: [NzIconModule],
  34. providers: [
  35. {
  36. provide: NZ_ICONS,
  37. useValue: icons
  38. }
  39. ]
  40. }]
  41. }] });
  42. const provideNzIconsTesting = () => provideNzIcons(icons);
  43. /**
  44. * Use of this source code is governed by an MIT-style license that can be
  45. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  46. */
  47. /**
  48. * Generated bundle index. Do not edit.
  49. */
  50. export { NzIconTestModule, provideNzIconsTesting };
  51. //# sourceMappingURL=ng-zorro-antd-icon-testing.mjs.map