@agendize/design-system
Version:
Agendize web design system
20 lines • 1.29 kB
TypeScript
export declare enum Mandatory {
mandatory = 0,// Champ obligatoire
optional = 1,// Champ optionnel avec affichage du suffixe (optionnel) sur le label
ignore = 2,// Champ optionnel et sans le suffixe sur le label
ignoreWithStar = 3
}
export declare const DEFAULT_SPIN_LOADER_ICON = "fa-regular fa-spinner-third fa-spin";
export declare const FieldLayoutValues: string[];
export declare type FieldLayoutType = typeof FieldLayoutValues[number];
export declare const OverlayPositionValues: string[];
export declare type OverlayPosition = typeof OverlayPositionValues[number];
export declare const TextAlignValues: string[];
export declare type TextAlign = typeof TextAlignValues[number];
export declare function onInput(target: EventTarget | null, emit: Function, bindName?: string): void;
export declare function getTitleLevel(type: string): number | undefined;
export declare function getFieldMandatory(type: string, mandatory: boolean, disableRequired?: boolean): Mandatory;
export declare function getFieldMode(type: string): "date" | null;
export declare type ValidationType = 'auto' | 'autoOnError' | 'manual';
export declare function shouldCheckField(validationType: ValidationType, error: string | boolean | undefined): boolean;
//# sourceMappingURL=viewModel.d.ts.map