UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

51 lines (50 loc) 2.62 kB
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { Direction, Directionality } from '@angular/cdk/bidi'; import { ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, TemplateRef } from '@angular/core'; import { NzConfigKey, NzConfigService } from 'ng-zorro-antd/core/config'; import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { BooleanInput, NzSafeAny } from 'ng-zorro-antd/core/types'; import { NzBadgeStatusType } from './types'; import * as i0 from "@angular/core"; export declare class NzBadgeComponent implements OnChanges, OnDestroy, OnInit { nzConfigService: NzConfigService; private renderer; private cdr; private elementRef; private directionality; noAnimation?: NzNoAnimationDirective | undefined; readonly _nzModuleName: NzConfigKey; static ngAcceptInputType_nzShowZero: BooleanInput; static ngAcceptInputType_nzShowDot: BooleanInput; static ngAcceptInputType_nzDot: BooleanInput; static ngAcceptInputType_nzStandalone: BooleanInput; showSup: boolean; presetColor: string | null; dir: Direction; private destroy$; nzShowZero: boolean; nzShowDot: boolean; nzStandalone: boolean; nzDot: boolean; nzOverflowCount: number; nzColor?: string; nzStyle: { [key: string]: string; } | null; nzText?: string | TemplateRef<void> | null; nzTitle?: string | null | undefined; nzStatus?: NzBadgeStatusType | string; nzCount?: number | TemplateRef<NzSafeAny>; nzOffset?: [number, number]; constructor(nzConfigService: NzConfigService, renderer: Renderer2, cdr: ChangeDetectorRef, elementRef: ElementRef, directionality: Directionality, noAnimation?: NzNoAnimationDirective | undefined); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; private prepareBadgeForRtl; get isRtlLayout(): boolean; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NzBadgeComponent, [null, null, null, null, { optional: true; }, { optional: true; host: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<NzBadgeComponent, "nz-badge", ["nzBadge"], { "nzShowZero": "nzShowZero"; "nzShowDot": "nzShowDot"; "nzStandalone": "nzStandalone"; "nzDot": "nzDot"; "nzOverflowCount": "nzOverflowCount"; "nzColor": "nzColor"; "nzStyle": "nzStyle"; "nzText": "nzText"; "nzTitle": "nzTitle"; "nzStatus": "nzStatus"; "nzCount": "nzCount"; "nzOffset": "nzOffset"; }, {}, never, ["*"]>; }