export { BadgeConfig } from './components/badge'; export { PageConfig } from './layout-deprecated/types'; export interface OptionsType { /** * The model value */ value: string | number; /** * The visible text for the input or option */ label: string; /** * The machine readable description of the input */ name: string; /** * if true, the option is greyed out and not clickable */ disabled?: boolean; } export interface AutocompleteDropdownButton { /** * The text that appears on the button */ label?: string; /** * The class for button style */ class?: string; /** * An option icon that will appear on the button */ icon?: AutocompleteDropdownButtonIcon; } export interface AutocompleteDropdownButtonIcon { /** * String for icon clas (font-awesome, glphicon, etc) */ class: string; /** * String for alt icon text for screen readers */ altText: string; } export interface HistoryNodeType { /** * Identifier for node */ id: string; /** * Date value for node */ date: string; /** * Optional url value for title */ url?: string; /** * Optional query params */ queryParams?: any; /** * Title value for node */ title?: string; /** * Optional description for node */ description?: string; /** * Optional aria label value for node */ ariaLabel?: string; } // Autocomplete Config Interfaces export interface AutocompleteConfig { /** * Adds an icon inside the input */ addOnIconClass?: string; /** * Adds an icon name for screen reader to understand */ addOnIconName?: string; /** * Allows any text inside the input to register as a selection */ allowAny?: boolean; /** * Defines the key/value configuration */ keyValueConfig?: AutocompleteKeyValueConfig; /** * Adds optional placeholder text */ placeholder?: string; /** * Passes value to the custom autocomplete service fetch method call */ serviceOptions?: any; /** * Set value to be used to determine if an item is a category. */ categoryProperty?: string; /** * Sets whether categories can be selected or not */ isCategorySelectable?: boolean; /** * Sets a title attribute value */ title?: string; } export interface AutocompleteKeyValueConfig { /** * The lookup value for the option */ keyProperty: string; /** * The human-readable value of the option */ valueProperty: string; } // Download export type AccessType = 'Public'|'Private'; export type ExpansionType = 'collapsed'|'expanded'; export interface DownloadPackageType { /** * Sets a package id value */ packageId: string; /** * Sets the package name */ name: string; /** * Sets the package type */ type: string; /** * Sets the packages access property */ access: AccessType; /** * Sets the posted date property */ postedDate: string; /** * Sets the resources in the package */ resources: DownloadResourceType[]; /** * Sets the initial state of package accordion */ accordionState: ExpansionType; /** * Sets the download url for the whole package */ downloadUrl: string; } export interface DownloadResourceType { /** * Sets a resource id value */ resourceId: string; /** * Sets the resource name */ name: string; /** * Sets the resource description */ description: string; /** * Sets the resource filesize */ size: string; /** * Sets the resource download url */ downloadUrl: string; /** * Sets the resource type information */ typeInfo: DownloadResourceTypeInfoType; } export interface DownloadResourceTypeInfoType { /** * Sets the resource type name */ name: string; /** * Sets the font awesome icon to use for the resource */ iconClass: string; } export interface PointOfContactType { /** * Sets the full name property */ fullName?: string; /** * Sets the title property */ title?: string; /** * Sets the primary address property */ address?: string; /** * Sets the secondary address property */ address2?: string; /** * Sets the city name property */ city?: string; /** * Sets the state property */ state?: string; /** * Sets the zip code property */ zip?: string; /** * Sets the email property */ email?: string; /** * Sets the primary phone property */ phone?: string; /** * Sets the secondary phone property */ phone2?: string; /** * Sets the fax number property */ fax?: string; /** * Sets the website url */ website?: string; } export interface IBreadcrumb { url?: string; urlmock?: boolean; breadcrumb: string; queryParams?: object; } export interface NameEntryType { /** * Sets the first name field */ firstName: string; /** * Sets the middle name field */ middleName: string; /** * Sets the last name field */ lastName: string; /** * Sets the suffix field */ suffix: string; } export interface AlertType { /** * Sets the alert title */ title; /** * Sets the alert type */ type; /** * Sets the alert body text */ description; /** * Sets a timeout (in milliseconds) for the alert to dismiss itself. 0 is * infinite. */ timer: number; /** * Explicity defines that user must dismiss alert */ mustDismiss?: boolean; } export interface TextAreaWidthType { /** * Defines the type of width * when type = '' | 'normal' sets the default css settings * when type = 'full' sets the dynamic css settings */ type: '' | 'normal' | 'full'; /** * Flag for dynamic css settings * when full = true sets the dynamic css */ full?: boolean; } export interface UploadedFileData { /** * Defines the file name for the uploaded file */ name: string; /** * Defines file size for the uploaded file */ size: number; /** * Defines the security level of the file uploaded */ isSecure?: boolean; /** * Date the file got posted to server */ postedDate: string; /** * sets the url */ url?: string; /** * sets the file icon */ icon: any; /** * Whether link to download should be disabled */ disabled?: boolean; } export interface ActionModalConfig { /** * sets the modal title */ title?: string, /** * sets the modal description */ description?: string } export interface ToggleUploadFileAction { /** * sets the upload file edit action toggle */ isEdit?: boolean, /** * sets the upload file secure action toggle */ isSecure?: boolean, /** * sets the upload file sort action toggle */ isSort?: boolean, /** * sets the upload file remove action toggle */ isRemove?: boolean }