import { InjectionToken } from '@angular/core'; import { QueryParamsHandling } from '@angular/router'; interface PickerStickerOptions { stickerPosition?: PositionState | string; stickerIndent?: number; stickerOutsideClick?: boolean; stickerShift?: number; stickerIsDisabled?: boolean; } interface CellsItemOptions { label?: string; heading?: string; isTextReverse?: boolean; size?: Size | string; } interface SortOptions { property?: string; descending?: boolean; dataType?: TableDataTypes | string; } interface LinkOptions { title: string; path: string; queryParamsHandling?: QueryParamsHandling; metadata?: { [x: string]: unknown; }; } interface DataTableOptions { columns: Column[]; size: Size | string; } interface Column { name: string; header?: string; minWidth?: string; width?: string; sortable?: boolean; dataType: TableDataTypes | string; } interface DdsFormControl { theme: Themes | string | undefined; isInverse: boolean | undefined; setInverse(isInverse: boolean): void; } declare const DDS_FORM_CONTROL: InjectionToken; interface DdsFormControlGroup { isInverse: boolean | undefined; setItemsInverse(isInverse: boolean): void; } declare const DDS_FORM_CONTROL_GROUP: InjectionToken; declare enum ErrorState { default = "default", focusOut = "focusOut" } declare enum TableDataTypes { string = "string", number = "number", date = "date" } declare enum Size { sm = "sm", md = "md", lg = "lg" } declare enum Kind { primary = "primary", secondary = "secondary", danger = "danger" } declare enum ButtonKind { primaryLoud = "primaryLoud", primary = "primary", secondaryLoud = "secondaryLoud", secondary = "secondary", silent = "silent" } declare enum SpinnerThemes { green = "green", danger = "danger", blue = "blue", dark = "dark", gray = "gray" } declare enum TabThemeType { fill = "fill", border = "border" } declare enum WidthState { fixed = "fixed", full = "full" } declare enum PositionState { top = "top", topLeft = "top-left", topRight = "top-right", bottom = "bottom", bottomLeft = "bottom-left", bottomRight = "bottom-right", left = "left", leftTop = "left-top", leftBottom = "left-bottom", right = "right", rightTop = "right-top", rightBottom = "right-bottom" } declare enum MaxLengthPositions { topLeft = "top-left", topRight = "top-right", bottomLeft = "bottom-left", bottomRight = "bottom-right" } declare enum LabelPosition { internal = "internal", external = "external" } declare enum TableClass { expandableTable = "dds-data-table_expandable", expandableRow = "dds-data-table__row_expandable", expandableRowExpanded = "dds-data-table__row_expanded", expandableRowContent = "dds-data-table__row_expandable-content" } declare enum PopupClass { popup = "popup", popupBackdrop = "popup-backdrop", popup_active = "popup_active", popup_position = "popup_position" } declare enum AdditionalClass { flex = "dds-flex", inlineFlex = "dds-inline-flex", disabled = "dds-disabled", fullWidth = "dds-full-width", maxWidth = "dds-max-width", keyboardFocus = "dds-keyboard-focused", focus = "dds-focused" } declare enum DevicesClass { desktop = "dds-desktop", tablet = "dds-tablet", mobile = "dds-mobile" } declare enum Direction { top = "top", left = "left", right = "right", bottom = "bottom" } declare enum KeyCodes { ARROW_UP = 38, ARROW_LEFT = 37, ARROW_RIGHT = 39, ARROW_DOWN = 40, BACKSPACE = 8, MINUS = 189, TAB = 9, ESC = 27, ENTER = 13, SPACE = 32, HOME = 36, END = 35, KEY_A = 65, KEY_P = 80 } declare enum SortStates { none = "none", asc = "asc", desc = "desc" } declare enum Themes { green = "green", dark = "dark", blue = "blue" } declare enum ExtThemes { green = "green", dark = "dark", blue = "blue", danger = "danger" } declare enum SortingStates { descending = "descending", ascending = "ascending" } declare enum Devices { desktop = "desktop", tablet = "tablet", mobile = "mobile" } declare enum DecimalMarkers { point = ".", comma = "," } declare enum ThousandSeparators { point = ".", comma = ",", whiteSpace = " " } declare enum KindMarker { info = "info", danger = "danger", warning = "warning", success = "success" } declare const DEFAULT_DATE_FORMAT = "MM/dd/yyyy"; export { AdditionalClass, ButtonKind, DDS_FORM_CONTROL, DDS_FORM_CONTROL_GROUP, DEFAULT_DATE_FORMAT, DecimalMarkers, Devices, DevicesClass, Direction, ErrorState, ExtThemes, KeyCodes, Kind, KindMarker, LabelPosition, MaxLengthPositions, PopupClass, PositionState, Size, SortStates, SortingStates, SpinnerThemes, TabThemeType, TableClass, TableDataTypes, Themes, ThousandSeparators, WidthState }; export type { CellsItemOptions, Column, DataTableOptions, DdsFormControl, DdsFormControlGroup, LinkOptions, PickerStickerOptions, SortOptions };