UNPKG

@visa/nova-angular

Version:

Visa Product Design System Nova Angular library

30 lines (29 loc) 1.1 kB
import * as i0 from "@angular/core"; /** * This unique ID generator service is primarily used internally by the library but can be leveraged directly for custom implementations. */ export declare class UUIDService { /** * Object to store generated IDs. */ private UUIDs; /** @ignore */ private _getRandomId; /** * The getUUID method generates a random ID. <br> * Works in tandem with <code>checkUUID</code> until a unique ID is generated. * @param name Optional string to start the ID. * @returns string */ getUUID(prefix?: string): string; /** * The checkUUID method verifies that the ID has not already been generated by the getUUID method. <br> * Works in tandem with <code>getUUID</code> until a unique ID is generated. * @param uuid ID to check. * @param name Optional string to start the ID. * @returns uuid */ checkUUID(uuid: string, prefix?: string): string; static ɵfac: i0.ɵɵFactoryDeclaration<UUIDService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<UUIDService>; }