ng-zorro-antd-badge.mjs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. import { __esDecorate, __runInitializers } from 'tslib';
  2. import * as i0 from '@angular/core';
  3. import { numberAttribute, Input, ChangeDetectionStrategy, ViewEncapsulation, Component, inject, booleanAttribute, NgModule } from '@angular/core';
  4. import { Subject } from 'rxjs';
  5. import { takeUntil } from 'rxjs/operators';
  6. import { zoomBadgeMotion } from 'ng-zorro-antd/core/animation';
  7. import * as i1 from 'ng-zorro-antd/core/config';
  8. import { WithConfig } from 'ng-zorro-antd/core/config';
  9. import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation';
  10. import * as i3 from 'ng-zorro-antd/core/outlet';
  11. import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
  12. import * as i2 from '@angular/cdk/bidi';
  13. /**
  14. * Use of this source code is governed by an MIT-style license that can be
  15. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  16. */
  17. class NzBadgeSupComponent {
  18. nzOffset;
  19. nzTitle;
  20. nzStyle = null;
  21. nzDot = false;
  22. nzOverflowCount = 99;
  23. disableAnimation = false;
  24. nzCount;
  25. noAnimation = false;
  26. nzSize = 'default';
  27. maxNumberArray = [];
  28. countArray = [];
  29. count = 0;
  30. countSingleArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
  31. generateMaxNumberArray() {
  32. this.maxNumberArray = this.nzOverflowCount
  33. .toString()
  34. .split('')
  35. .map((value, index) => `${value}-${index}`);
  36. }
  37. ngOnInit() {
  38. this.generateMaxNumberArray();
  39. }
  40. ngOnChanges(changes) {
  41. const { nzOverflowCount, nzCount } = changes;
  42. if (nzCount && typeof nzCount.currentValue === 'number') {
  43. this.count = Math.max(0, nzCount.currentValue);
  44. this.countArray = this.count
  45. .toString()
  46. .split('')
  47. .map(item => +item);
  48. }
  49. if (nzOverflowCount) {
  50. this.generateMaxNumberArray();
  51. }
  52. }
  53. static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzBadgeSupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
  54. static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.2", type: NzBadgeSupComponent, isStandalone: true, selector: "nz-badge-sup", inputs: { nzOffset: "nzOffset", nzTitle: "nzTitle", nzStyle: "nzStyle", nzDot: "nzDot", nzOverflowCount: ["nzOverflowCount", "nzOverflowCount", numberAttribute], disableAnimation: "disableAnimation", nzCount: "nzCount", noAnimation: "noAnimation", nzSize: "nzSize" }, host: { properties: { "@.disabled": "disableAnimation", "@zoomBadgeMotion": "", "attr.title": "nzTitle === null ? '' : nzTitle || nzCount", "style": "nzStyle", "style.right.px": "nzOffset && nzOffset[0] ? -nzOffset[0] : null", "style.margin-top.px": "nzOffset && nzOffset[1] ? nzOffset[1] : null", "class.ant-badge-count": "!nzDot", "class.ant-badge-count-sm": "nzSize === 'small'", "class.ant-badge-dot": "nzDot", "class.ant-badge-multiple-words": "countArray.length >= 2" }, classAttribute: "ant-scroll-number" }, exportAs: ["nzBadgeSup"], usesOnChanges: true, ngImport: i0, template: `
  55. @if (count <= nzOverflowCount) {
  56. @for (n of maxNumberArray; track n; let i = $index) {
  57. <span
  58. [nzNoAnimation]="noAnimation"
  59. class="ant-scroll-number-only"
  60. [style.transform]="'translateY(' + -countArray[i] * 100 + '%)'"
  61. >
  62. @if (!nzDot && countArray[i] !== undefined) {
  63. @for (p of countSingleArray; track p) {
  64. <p class="ant-scroll-number-only-unit" [class.current]="p === countArray[i]">
  65. {{ p }}
  66. </p>
  67. }
  68. }
  69. </span>
  70. }
  71. } @else {
  72. {{ nzOverflowCount }}+
  73. }
  74. `, isInline: true, dependencies: [{ kind: "directive", type: NzNoAnimationDirective, selector: "[nzNoAnimation]", inputs: ["nzNoAnimation"], exportAs: ["nzNoAnimation"] }], animations: [zoomBadgeMotion], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
  75. }
  76. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzBadgeSupComponent, decorators: [{
  77. type: Component,
  78. args: [{
  79. selector: 'nz-badge-sup',
  80. exportAs: 'nzBadgeSup',
  81. preserveWhitespaces: false,
  82. encapsulation: ViewEncapsulation.None,
  83. changeDetection: ChangeDetectionStrategy.OnPush,
  84. animations: [zoomBadgeMotion],
  85. imports: [NzNoAnimationDirective],
  86. template: `
  87. @if (count <= nzOverflowCount) {
  88. @for (n of maxNumberArray; track n; let i = $index) {
  89. <span
  90. [nzNoAnimation]="noAnimation"
  91. class="ant-scroll-number-only"
  92. [style.transform]="'translateY(' + -countArray[i] * 100 + '%)'"
  93. >
  94. @if (!nzDot && countArray[i] !== undefined) {
  95. @for (p of countSingleArray; track p) {
  96. <p class="ant-scroll-number-only-unit" [class.current]="p === countArray[i]">
  97. {{ p }}
  98. </p>
  99. }
  100. }
  101. </span>
  102. }
  103. } @else {
  104. {{ nzOverflowCount }}+
  105. }
  106. `,
  107. host: {
  108. class: 'ant-scroll-number',
  109. '[@.disabled]': `disableAnimation`,
  110. '[@zoomBadgeMotion]': '',
  111. '[attr.title]': `nzTitle === null ? '' : nzTitle || nzCount`,
  112. '[style]': `nzStyle`,
  113. '[style.right.px]': `nzOffset && nzOffset[0] ? -nzOffset[0] : null`,
  114. '[style.margin-top.px]': `nzOffset && nzOffset[1] ? nzOffset[1] : null`,
  115. '[class.ant-badge-count]': `!nzDot`,
  116. '[class.ant-badge-count-sm]': `nzSize === 'small'`,
  117. '[class.ant-badge-dot]': `nzDot`,
  118. '[class.ant-badge-multiple-words]': `countArray.length >= 2`
  119. }
  120. }]
  121. }], propDecorators: { nzOffset: [{
  122. type: Input
  123. }], nzTitle: [{
  124. type: Input
  125. }], nzStyle: [{
  126. type: Input
  127. }], nzDot: [{
  128. type: Input
  129. }], nzOverflowCount: [{
  130. type: Input,
  131. args: [{ transform: numberAttribute }]
  132. }], disableAnimation: [{
  133. type: Input
  134. }], nzCount: [{
  135. type: Input
  136. }], noAnimation: [{
  137. type: Input
  138. }], nzSize: [{
  139. type: Input
  140. }] } });
  141. /**
  142. * Use of this source code is governed by an MIT-style license that can be
  143. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  144. */
  145. const badgePresetColors = [
  146. 'pink',
  147. 'red',
  148. 'yellow',
  149. 'orange',
  150. 'cyan',
  151. 'green',
  152. 'blue',
  153. 'purple',
  154. 'geekblue',
  155. 'magenta',
  156. 'volcano',
  157. 'gold',
  158. 'lime'
  159. ];
  160. const NZ_CONFIG_MODULE_NAME = 'badge';
  161. let NzBadgeComponent = (() => {
  162. let _nzOverflowCount_decorators;
  163. let _nzOverflowCount_initializers = [];
  164. let _nzOverflowCount_extraInitializers = [];
  165. let _nzColor_decorators;
  166. let _nzColor_initializers = [];
  167. let _nzColor_extraInitializers = [];
  168. return class NzBadgeComponent {
  169. static {
  170. const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
  171. _nzOverflowCount_decorators = [WithConfig()];
  172. _nzColor_decorators = [WithConfig()];
  173. __esDecorate(null, null, _nzOverflowCount_decorators, { kind: "field", name: "nzOverflowCount", static: false, private: false, access: { has: obj => "nzOverflowCount" in obj, get: obj => obj.nzOverflowCount, set: (obj, value) => { obj.nzOverflowCount = value; } }, metadata: _metadata }, _nzOverflowCount_initializers, _nzOverflowCount_extraInitializers);
  174. __esDecorate(null, null, _nzColor_decorators, { kind: "field", name: "nzColor", static: false, private: false, access: { has: obj => "nzColor" in obj, get: obj => obj.nzColor, set: (obj, value) => { obj.nzColor = value; } }, metadata: _metadata }, _nzColor_initializers, _nzColor_extraInitializers);
  175. if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
  176. }
  177. nzConfigService;
  178. renderer;
  179. cdr;
  180. elementRef;
  181. directionality;
  182. _nzModuleName = NZ_CONFIG_MODULE_NAME;
  183. showSup = false;
  184. presetColor = null;
  185. dir = 'ltr';
  186. destroy$ = new Subject();
  187. nzShowZero = false;
  188. nzShowDot = true;
  189. nzStandalone = false;
  190. nzDot = false;
  191. nzOverflowCount = __runInitializers(this, _nzOverflowCount_initializers, 99);
  192. nzColor = (__runInitializers(this, _nzOverflowCount_extraInitializers), __runInitializers(this, _nzColor_initializers, undefined));
  193. nzStyle = (__runInitializers(this, _nzColor_extraInitializers), null);
  194. nzText = null;
  195. nzTitle;
  196. nzStatus;
  197. nzCount;
  198. nzOffset;
  199. nzSize = 'default';
  200. noAnimation = inject(NzNoAnimationDirective, { host: true, optional: true });
  201. constructor(nzConfigService, renderer, cdr, elementRef, directionality) {
  202. this.nzConfigService = nzConfigService;
  203. this.renderer = renderer;
  204. this.cdr = cdr;
  205. this.elementRef = elementRef;
  206. this.directionality = directionality;
  207. }
  208. ngOnInit() {
  209. this.directionality.change?.pipe(takeUntil(this.destroy$)).subscribe((direction) => {
  210. this.dir = direction;
  211. this.prepareBadgeForRtl();
  212. this.cdr.detectChanges();
  213. });
  214. this.dir = this.directionality.value;
  215. this.prepareBadgeForRtl();
  216. }
  217. ngOnChanges(changes) {
  218. const { nzColor, nzShowDot, nzDot, nzCount, nzShowZero } = changes;
  219. if (nzColor) {
  220. this.presetColor = this.nzColor && badgePresetColors.indexOf(this.nzColor) !== -1 ? this.nzColor : null;
  221. }
  222. if (nzShowDot || nzDot || nzCount || nzShowZero) {
  223. this.showSup =
  224. (this.nzShowDot && this.nzDot) ||
  225. (typeof this.nzCount === 'number' && this.nzCount > 0) ||
  226. (typeof this.nzCount === 'number' && this.nzCount <= 0 && this.nzShowZero);
  227. }
  228. }
  229. prepareBadgeForRtl() {
  230. if (this.isRtlLayout) {
  231. this.renderer.addClass(this.elementRef.nativeElement, 'ant-badge-rtl');
  232. }
  233. else {
  234. this.renderer.removeClass(this.elementRef.nativeElement, 'ant-badge-rtl');
  235. }
  236. }
  237. get isRtlLayout() {
  238. return this.dir === 'rtl';
  239. }
  240. ngOnDestroy() {
  241. this.destroy$.next();
  242. this.destroy$.complete();
  243. }
  244. static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzBadgeComponent, deps: [{ token: i1.NzConfigService }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i2.Directionality }], target: i0.ɵɵFactoryTarget.Component });
  245. static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.2", type: NzBadgeComponent, isStandalone: true, selector: "nz-badge", inputs: { nzShowZero: ["nzShowZero", "nzShowZero", booleanAttribute], nzShowDot: ["nzShowDot", "nzShowDot", booleanAttribute], nzStandalone: ["nzStandalone", "nzStandalone", booleanAttribute], nzDot: ["nzDot", "nzDot", booleanAttribute], nzOverflowCount: "nzOverflowCount", nzColor: "nzColor", nzStyle: "nzStyle", nzText: "nzText", nzTitle: "nzTitle", nzStatus: "nzStatus", nzCount: "nzCount", nzOffset: "nzOffset", nzSize: "nzSize" }, host: { properties: { "class.ant-badge-status": "nzStatus", "class.ant-badge-not-a-wrapper": "!!(nzStandalone || nzStatus || nzColor)" }, classAttribute: "ant-badge" }, exportAs: ["nzBadge"], usesOnChanges: true, ngImport: i0, template: `
  246. @if (nzStatus || nzColor) {
  247. <span
  248. class="ant-badge-status-dot ant-badge-status-{{ nzStatus || presetColor }}"
  249. [style.background]="!presetColor && nzColor"
  250. [style]="nzStyle"
  251. ></span>
  252. <span class="ant-badge-status-text">
  253. <ng-container *nzStringTemplateOutlet="nzText">{{ nzText }}</ng-container>
  254. </span>
  255. }
  256. <ng-content />
  257. <ng-container *nzStringTemplateOutlet="nzCount">
  258. @if (showSup) {
  259. <nz-badge-sup
  260. [nzOffset]="nzOffset"
  261. [nzSize]="nzSize"
  262. [nzTitle]="nzTitle"
  263. [nzStyle]="nzStyle"
  264. [nzDot]="nzDot"
  265. [nzOverflowCount]="nzOverflowCount"
  266. [disableAnimation]="!!(nzStandalone || nzStatus || nzColor || noAnimation?.nzNoAnimation)"
  267. [nzCount]="nzCount"
  268. [noAnimation]="!!noAnimation?.nzNoAnimation"
  269. />
  270. }
  271. </ng-container>
  272. `, isInline: true, dependencies: [{ kind: "component", type: NzBadgeSupComponent, selector: "nz-badge-sup", inputs: ["nzOffset", "nzTitle", "nzStyle", "nzDot", "nzOverflowCount", "disableAnimation", "nzCount", "noAnimation", "nzSize"], exportAs: ["nzBadgeSup"] }, { kind: "ngmodule", type: NzOutletModule }, { kind: "directive", type: i3.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }], animations: [zoomBadgeMotion], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
  273. };
  274. })();
  275. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzBadgeComponent, decorators: [{
  276. type: Component,
  277. args: [{
  278. selector: 'nz-badge',
  279. exportAs: 'nzBadge',
  280. preserveWhitespaces: false,
  281. encapsulation: ViewEncapsulation.None,
  282. changeDetection: ChangeDetectionStrategy.OnPush,
  283. animations: [zoomBadgeMotion],
  284. imports: [NzBadgeSupComponent, NzOutletModule],
  285. template: `
  286. @if (nzStatus || nzColor) {
  287. <span
  288. class="ant-badge-status-dot ant-badge-status-{{ nzStatus || presetColor }}"
  289. [style.background]="!presetColor && nzColor"
  290. [style]="nzStyle"
  291. ></span>
  292. <span class="ant-badge-status-text">
  293. <ng-container *nzStringTemplateOutlet="nzText">{{ nzText }}</ng-container>
  294. </span>
  295. }
  296. <ng-content />
  297. <ng-container *nzStringTemplateOutlet="nzCount">
  298. @if (showSup) {
  299. <nz-badge-sup
  300. [nzOffset]="nzOffset"
  301. [nzSize]="nzSize"
  302. [nzTitle]="nzTitle"
  303. [nzStyle]="nzStyle"
  304. [nzDot]="nzDot"
  305. [nzOverflowCount]="nzOverflowCount"
  306. [disableAnimation]="!!(nzStandalone || nzStatus || nzColor || noAnimation?.nzNoAnimation)"
  307. [nzCount]="nzCount"
  308. [noAnimation]="!!noAnimation?.nzNoAnimation"
  309. />
  310. }
  311. </ng-container>
  312. `,
  313. host: {
  314. class: 'ant-badge',
  315. '[class.ant-badge-status]': 'nzStatus',
  316. '[class.ant-badge-not-a-wrapper]': '!!(nzStandalone || nzStatus || nzColor)'
  317. }
  318. }]
  319. }], ctorParameters: () => [{ type: i1.NzConfigService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i2.Directionality }], propDecorators: { nzShowZero: [{
  320. type: Input,
  321. args: [{ transform: booleanAttribute }]
  322. }], nzShowDot: [{
  323. type: Input,
  324. args: [{ transform: booleanAttribute }]
  325. }], nzStandalone: [{
  326. type: Input,
  327. args: [{ transform: booleanAttribute }]
  328. }], nzDot: [{
  329. type: Input,
  330. args: [{ transform: booleanAttribute }]
  331. }], nzOverflowCount: [{
  332. type: Input
  333. }], nzColor: [{
  334. type: Input
  335. }], nzStyle: [{
  336. type: Input
  337. }], nzText: [{
  338. type: Input
  339. }], nzTitle: [{
  340. type: Input
  341. }], nzStatus: [{
  342. type: Input
  343. }], nzCount: [{
  344. type: Input
  345. }], nzOffset: [{
  346. type: Input
  347. }], nzSize: [{
  348. type: Input
  349. }] } });
  350. /**
  351. * Use of this source code is governed by an MIT-style license that can be
  352. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  353. */
  354. class NzRibbonComponent {
  355. nzColor;
  356. nzPlacement = 'end';
  357. nzText = null;
  358. presetColor = null;
  359. ngOnChanges(changes) {
  360. const { nzColor } = changes;
  361. if (nzColor) {
  362. this.presetColor = this.nzColor && badgePresetColors.indexOf(this.nzColor) !== -1 ? this.nzColor : null;
  363. }
  364. }
  365. static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzRibbonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
  366. static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: NzRibbonComponent, isStandalone: true, selector: "nz-ribbon", inputs: { nzColor: "nzColor", nzPlacement: "nzPlacement", nzText: "nzText" }, host: { classAttribute: "ant-ribbon-wrapper" }, exportAs: ["nzRibbon"], usesOnChanges: true, ngImport: i0, template: `
  367. <ng-content></ng-content>
  368. <div
  369. class="ant-ribbon"
  370. [class]="presetColor && 'ant-ribbon-color-' + presetColor"
  371. [class.ant-ribbon-placement-end]="nzPlacement === 'end'"
  372. [class.ant-ribbon-placement-start]="nzPlacement === 'start'"
  373. [style.background-color]="!presetColor && nzColor"
  374. >
  375. <ng-container *nzStringTemplateOutlet="nzText">
  376. <span class="ant-ribbon-text">{{ nzText }}</span>
  377. </ng-container>
  378. <div class="ant-ribbon-corner" [style.color]="!presetColor && nzColor"></div>
  379. </div>
  380. `, isInline: true, dependencies: [{ kind: "ngmodule", type: NzOutletModule }, { kind: "directive", type: i3.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
  381. }
  382. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzRibbonComponent, decorators: [{
  383. type: Component,
  384. args: [{
  385. selector: 'nz-ribbon',
  386. exportAs: 'nzRibbon',
  387. preserveWhitespaces: false,
  388. encapsulation: ViewEncapsulation.None,
  389. changeDetection: ChangeDetectionStrategy.OnPush,
  390. imports: [NzOutletModule],
  391. template: `
  392. <ng-content></ng-content>
  393. <div
  394. class="ant-ribbon"
  395. [class]="presetColor && 'ant-ribbon-color-' + presetColor"
  396. [class.ant-ribbon-placement-end]="nzPlacement === 'end'"
  397. [class.ant-ribbon-placement-start]="nzPlacement === 'start'"
  398. [style.background-color]="!presetColor && nzColor"
  399. >
  400. <ng-container *nzStringTemplateOutlet="nzText">
  401. <span class="ant-ribbon-text">{{ nzText }}</span>
  402. </ng-container>
  403. <div class="ant-ribbon-corner" [style.color]="!presetColor && nzColor"></div>
  404. </div>
  405. `,
  406. host: { class: 'ant-ribbon-wrapper' }
  407. }]
  408. }], propDecorators: { nzColor: [{
  409. type: Input
  410. }], nzPlacement: [{
  411. type: Input
  412. }], nzText: [{
  413. type: Input
  414. }] } });
  415. /**
  416. * Use of this source code is governed by an MIT-style license that can be
  417. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  418. */
  419. class NzBadgeModule {
  420. static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
  421. static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: NzBadgeModule, imports: [NzBadgeComponent, NzRibbonComponent], exports: [NzBadgeComponent, NzRibbonComponent] });
  422. static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzBadgeModule, imports: [NzBadgeComponent, NzRibbonComponent] });
  423. }
  424. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzBadgeModule, decorators: [{
  425. type: NgModule,
  426. args: [{
  427. exports: [NzBadgeComponent, NzRibbonComponent],
  428. imports: [NzBadgeComponent, NzRibbonComponent]
  429. }]
  430. }] });
  431. /**
  432. * Use of this source code is governed by an MIT-style license that can be
  433. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  434. */
  435. /**
  436. * Generated bundle index. Do not edit.
  437. */
  438. export { NzBadgeComponent, NzBadgeModule, NzRibbonComponent };
  439. //# sourceMappingURL=ng-zorro-antd-badge.mjs.map