UNPKG

@visa/nova-angular

Version:

Visa Product Design System Nova Angular library

60 lines (59 loc) 2.63 kB
/** * Copyright (c) 2025 Visa, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * **/ import { BooleanInput } from '@angular/cdk/coercion'; import { ElementRef } from '@angular/core'; import { UUIDService } from '../_utilities/services/uuid.service'; import * as i0 from "@angular/core"; export declare class LabelDirective { el: ElementRef; private uuidService; /** * Attribute set to the id of the element it's labeling. <br /> * This property is set by default for radio and checkbox components when used within <code>v-input-container</code> as directed. */ get for(): string; set for(value: string); private _for; get labelFor(): string; /** * Sets custom id. * @default uuidService.getUUID('v-label-') * @builtin true */ id: string; get hostId(): string; /** * Provides custom class&#40;es&#41; for custom styling. * @default .v-label - when <code>progressLabel</code> is false and not used within a Circular Progress component. * @default .v-progress-label when <code>progressLabel</code> is true or when used within a Circular Progress component. */ class: string; get hostClasses(): string; /** * Swaps <code>v-label</code> class for <code>v-progress-label</code> when true. <br /> * Intended for use when label is describing a progress component. <br /> * Automatically set to true when used within a Circular Progress component. * @default false */ get progressLabel(): boolean; set progressLabel(value: BooleanInput); private _progressLabel; constructor(el: ElementRef, uuidService: UUIDService); onClick(event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration<LabelDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<LabelDirective, "[v-label]", never, { "for": { "alias": "for"; "required": false; }; "id": { "alias": "id"; "required": false; }; "class": { "alias": "class"; "required": false; }; "progressLabel": { "alias": "progressLabel"; "required": false; }; }, {}, never, never, true, never>; }