UNPKG

@ibyar/elements

Version:

Ibyar elements, hold info about HTMLElements class, attributes and tag name

78 lines 3.25 kB
/** * element id attribute */ export type ElementID = string; export type AriaActiveDescendantElement = ElementID; export type AriaActiveDescendantElementRole = 'application' | 'combobox' | 'composite' | 'group' | 'textbox'; export type AriaColCount = number; export type AriaColCountRole = 'table' | 'grid' | 'treegrid'; export type AriaColIndex = number; export type AriaColIndexRole = 'cell' | 'row' | 'columnheader' | 'gridcell' | 'rowheader'; export type AriaColSpan = number; export type AriaColSpanRole = 'cell' | 'columnheader' | 'rowheader'; export type AriaControlsElements = ElementID | ElementID[]; export type AriaDescribedByElements = ElementID | ElementID[]; export type AriaDetailsElements = ElementID | ElementID[]; export type AriaDescription = string; export type AriaErrorMessageElement = ElementID; export type AriaErrorMessageElementRole = 'application' | 'checkbox' | 'combobox' | 'gridcell' | 'listbox' | 'radiogroup' | 'slider' | 'spinbutton' | 'textbox' | 'tree' | 'columnheader' | 'rowheader' | 'searchbox' | 'switch' | 'treegrid'; export type AriaFlowToElements = ElementID | ElementID[]; export type AriaLabelledByElements = ElementID | ElementID[]; export type AriaOwnsElements = ElementID | ElementID[]; export type AriaPosInSet = number; /** * The number of rows in the full table or -1 is the table size is not known. */ export type AriaRowCount = number; /** * An integer greater than or equal to 1, greater than the aria-rowindex of the previous row, if any, and less than or equal to the value of aria-rowcount. */ export type AriaRowIndex = number; /** * An integer greater than or equal to 0 and less than would cause a cell to overlap the next cell in the same column. */ export type AriaRowSpan = number; /** * The number of items in the full set or -1 is the set size is unknown. */ export type AriaSetSize = number; export interface RelationshipModel { ariaActiveDescendantElement: AriaActiveDescendantElement; ariaColCount: AriaColCount; ariaColIndex: AriaColIndex; ariaColSpan: AriaColSpan; ariaControlsElements: AriaControlsElements; ariaDescribedByElements: AriaDescribedByElements; ariaDescription: AriaDescription; ariaDetailsElements: AriaDetailsElements; ariaErrorMessageElement: AriaErrorMessageElement; ariaFlowToElements: AriaFlowToElements; ariaLabelledByElements: AriaLabelledByElements; ariaOwnsElements: AriaOwnsElements; ariaPosInSet: AriaPosInSet; ariaRowCount: AriaRowCount; ariaRowIndex: AriaRowIndex; ariaRowSpan: AriaRowSpan; ariaSetSize: AriaSetSize; } export declare const RelationshipAttributes: string[]; export declare const RelationshipAttributesMap: { 'aria-activedescendant': string; 'aria-colcount': string; 'aria-colindex': string; 'aria-colspan': string; 'aria-controls': string; 'aria-describedby': string; 'aria-description': string; 'aria-details': string; 'aria-errormessage': string; 'aria-flowto': string; 'aria-labelledby': string; 'aria-owns': string; 'aria-posinset': string; 'aria-rowcount': string; 'aria-rowindex': string; 'aria-rowspan': string; 'aria-setsize': string; }; //# sourceMappingURL=relationship.d.ts.map