import { KbqSkeletonModule } from '@koobiq/components/skeleton';

KbqSkeletonAccordion

componentСкопировать ссылку на KbqSkeletonAccordion

Placeholder of an accordion whose items have not loaded yet: collapsed items with their icon and title.

@Component({ selector: 'kbq-skeleton-accordion' })
class KbqSkeletonAccordion {
    readonly rows = input<number>(this.configuration.accordionRows);
}
rowsinputСкопировать ссылку на rowsnumber

Number of collapsed items, accordionRows of KBQ_SKELETON_PRESETS_CONFIGURATION by default.

KbqSkeletonBadge

componentСкопировать ссылку на KbqSkeletonBadge

Placeholder of a badge whose data has not loaded yet.

@Component({ selector: 'kbq-skeleton-badge' })
class KbqSkeletonBadge {}

KbqSkeletonButton

componentСкопировать ссылку на KbqSkeletonButton

Placeholder of a button whose data has not loaded yet.

@Component({ selector: 'kbq-skeleton-button' })
class KbqSkeletonButton {}

KbqSkeletonCheckable

componentСкопировать ссылку на KbqSkeletonCheckable

Placeholder of checkboxes, radio buttons or toggles whose data has not loaded yet: the control, and the label with its hint on demand.

@Component({ selector: 'kbq-skeleton-checkable' })
class KbqSkeletonCheckable {
    readonly control = input<KbqSkeletonCheckableControl>('checkbox');
    readonly rows = input<number>(this.configuration.checkableRows);
    readonly label = input<boolean>(true);
    readonly hint = input<boolean>(false);
}
controlinputСкопировать ссылку на controlKbqSkeletonCheckableControl

Control the placeholder stands in for.

rowsinputСкопировать ссылку на rowsnumber

Number of controls, checkableRows of KBQ_SKELETON_PRESETS_CONFIGURATION by default.

labelinputСкопировать ссылку на labelboolean

Whether a control has a label.

hintinputСкопировать ссылку на hintboolean

Whether the label has a hint below it.

KbqSkeletonDl

componentСкопировать ссылку на KbqSkeletonDl

Placeholder of a description list whose data has not loaded yet.

@Component({ selector: 'kbq-skeleton-dl' })
class KbqSkeletonDl {
    readonly rows = input<number>(this.configuration.dlRows);
}
rowsinputСкопировать ссылку на rowsnumber

Number of terms with their descriptions, dlRows of KBQ_SKELETON_PRESETS_CONFIGURATION by default.

KbqSkeletonFormField

componentСкопировать ссылку на KbqSkeletonFormField

Placeholder of a form field whose value has not loaded yet: its label, control and hint.

@Component({ selector: 'kbq-skeleton-form-field' })
class KbqSkeletonFormField {
    readonly horizontal = input<boolean>(false);
    readonly control = input<KbqSkeletonFormFieldControl>('input');
    readonly label = input<boolean>(true);
    readonly hint = input<boolean>(false);
    readonly labelClass = input<string | string[] | Set<string>>();
    readonly contentClass = input<string | string[] | Set<string>>();
}
horizontalinputСкопировать ссылку на horizontalboolean

Whether the label is to the left of the control, as in a horizontal kbq-form-field.

labelinputСкопировать ссылку на labelboolean

Whether the form field has a label, as a kbq-form-field with kbq-label.

hintinputСкопировать ссылку на hintboolean

Whether the form field has a hint below the control.

labelClassinputСкопировать ссылку на labelClassstring | string[] | Set<string>

Classes of the label, such as the labelClass of the kbq-form-field the placeholder stands in for.

contentClassinputСкопировать ссылку на contentClassstring | string[] | Set<string>

Classes of the control and the hint, such as the contentClass of the kbq-form-field.

KbqSkeletonGroup

componentСкопировать ссылку на KbqSkeletonGroup

Row of placeholders of one kind, such as the tags of a tag list.

@Component({ selector: 'kbq-skeleton-group' })
class KbqSkeletonGroup {
    readonly preset = input.required<KbqSkeletonGroupPreset>();
    readonly count = input<number>(this.configuration.groupCount);
}
presetinputrequiredСкопировать ссылку на presetKbqSkeletonGroupPreset

Placeholder of every item of the row.

countinputСкопировать ссылку на countnumber

Number of placeholders, groupCount of KBQ_SKELETON_PRESETS_CONFIGURATION by default.

KbqSkeletonIcon

componentСкопировать ссылку на KbqSkeletonIcon

Placeholder of an icon or an icon button whose data has not loaded yet.

@Component({ selector: 'kbq-skeleton-icon' })
class KbqSkeletonIcon {}

KbqSkeletonLink

componentСкопировать ссылку на KbqSkeletonLink

Placeholder of a link whose data has not loaded yet.

@Component({ selector: 'kbq-skeleton-link' })
class KbqSkeletonLink {}

KbqSkeletonTable

componentСкопировать ссылку на KbqSkeletonTable

Placeholder of a table whose data has not loaded yet.

@Component({ selector: 'kbq-skeleton-table' })
class KbqSkeletonTable {
    readonly rows = input<number>(this.configuration.tableRows);
    readonly columns = input<readonly string[]>(
        equalColumns(this.configuration.tableColumns)
    );
    readonly header = input<boolean>(true);
    readonly selectable = input<boolean>(false);
    readonly pinnedColumns = input<number>(0);
}
rowsinputСкопировать ссылку на rowsnumber

Number of rows below the header, tableRows of KBQ_SKELETON_PRESETS_CONFIGURATION by default.

columnsinputСкопировать ссылку на columnsreadonly string[]

Number of columns of equal width, tableColumns of KBQ_SKELETON_PRESETS_CONFIGURATION by default, or the width of every column as a CSS grid track, such as 160px, 1fr or auto, for a table whose columns are known.

headerinputСкопировать ссылку на headerboolean

Whether the table has a header row.

selectableinputСкопировать ссылку на selectableboolean

Whether every row starts with a checkbox, as in a grid whose rows can be selected.

pinnedColumnsinputСкопировать ссылку на pinnedColumnsnumber

Number of columns pinned to the start and set apart from the rest by a line, as in a grid.

KbqSkeletonTabs

componentСкопировать ссылку на KbqSkeletonTabs

Placeholder of tabs whose data has not loaded yet: the first tab stands out as the selected one. The content below or beside them is text, or the placeholders projected into the component.

@Component({ selector: 'kbq-skeleton-tabs' })
class KbqSkeletonTabs {
    readonly vertical = input<boolean>(false);
    readonly count = input<number>(this.configuration.tabsCount);
    readonly contentLines = input<number>(
        this.configuration.tabsContentLines
    );
}
verticalinputСкопировать ссылку на verticalboolean

Whether the tabs are stacked beside the content, as in a vertical kbq-tab-group.

countinputСкопировать ссылку на countnumber

Number of tabs, tabsCount of KBQ_SKELETON_PRESETS_CONFIGURATION by default.

contentLinesinputСкопировать ссылку на contentLinesnumber

Number of lines of the text that stands for the content when nothing is projected, tabsContentLines of KBQ_SKELETON_PRESETS_CONFIGURATION by default.

KbqSkeletonTag

componentСкопировать ссылку на KbqSkeletonTag

Placeholder of a tag whose data has not loaded yet.

@Component({ selector: 'kbq-skeleton-tag' })
class KbqSkeletonTag {}

KbqSkeletonTree

componentСкопировать ссылку на KbqSkeletonTree

Placeholder of a tree whose nodes have not loaded yet, with the second node expanded.

@Component({ selector: 'kbq-skeleton-tree' })
class KbqSkeletonTree {
    readonly rows = input<number>(this.configuration.treeRows);
    readonly children = input<number>(this.configuration.treeChildren);
}
rowsinputСкопировать ссылку на rowsnumber

Number of top-level nodes, treeRows of KBQ_SKELETON_PRESETS_CONFIGURATION by default.

childreninputСкопировать ссылку на childrennumber

Number of children of the expanded second node, treeChildren of KBQ_SKELETON_PRESETS_CONFIGURATION by default.

KbqSkeletonTypography

componentСкопировать ссылку на KbqSkeletonTypography

Placeholder of text that has not loaded yet: lines as tall as the lines of its typography level, a line of body text by default. A single line, such as a heading, is shorter than the lines of a paragraph, which differ in length.

@Component({ selector: 'kbq-skeleton-typography' })
class KbqSkeletonTypography {
    readonly level = input<string>('text-normal');
    readonly lines = input<number>(this.configuration.typographyLines);
}
levelinputСкопировать ссылку на levelstring

Typography level of the text, the name of its class without kbq-, such as title or caps-compact.

linesinputСкопировать ссылку на linesnumber

Number of lines, typographyLines of KBQ_SKELETON_PRESETS_CONFIGURATION by default.

KbqSkeleton

directiveСкопировать ссылку на KbqSkeleton

Directive representing a skeleton placeholder.

Paints the host, children included, as one flat shape of the host's own outline with a wave running across it, and makes the host inert: it leaves the tab order and the accessibility tree until the skeleton is disabled.

@Directive({ selector: 'kbq-skeleton, [kbqSkeleton]', exportAs: 'kbqSkeleton' })
class KbqSkeleton {
    readonly enabled = input<boolean>(true, { alias: 'kbqSkeleton' });
}
kbqSkeletoninputСкопировать ссылку на kbqSkeletonboolean

Whether the skeleton is enabled.

KbqSkeletonCheckableControl

typeСкопировать ссылку на KbqSkeletonCheckableControl

Control a checkable placeholder stands in for.

type KbqSkeletonCheckableControl = 'checkbox' | 'radio' | 'toggle';

KbqSkeletonFormFieldControl

typeСкопировать ссылку на KbqSkeletonFormFieldControl

Control a form field placeholder stands in for.

type KbqSkeletonFormFieldControl = 'input' | 'textarea';

KbqSkeletonGroupPreset

typeСкопировать ссылку на KbqSkeletonGroupPreset

Placeholder a group repeats in a row.

type KbqSkeletonGroupPreset = 'button' | 'badge' | 'tag' | 'icon' | 'link';

KbqSkeletonPresetsConfiguration

interfaceСкопировать ссылку на KbqSkeletonPresetsConfiguration

Numbers of items the skeleton presets show until the amount of data is known.

interface KbqSkeletonPresetsConfiguration {
    typographyLines: number;
    dlRows: number;
    tableRows: number;
    tableColumns: number;
    groupCount: number;
    accordionRows: number;
    checkableRows: number;
    tabsCount: number;
    tabsContentLines: number;
    treeRows: number;
    treeChildren: number;
}
typographyLinesСкопировать ссылку на typographyLinesnumber

Number of lines of kbq-skeleton-typography.

dlRowsСкопировать ссылку на dlRowsnumber

Number of rows of kbq-skeleton-dl.

tableRowsСкопировать ссылку на tableRowsnumber

Number of rows of kbq-skeleton-table.

tableColumnsСкопировать ссылку на tableColumnsnumber

Number of columns of kbq-skeleton-table.

groupCountСкопировать ссылку на groupCountnumber

Number of placeholders of kbq-skeleton-group.

accordionRowsСкопировать ссылку на accordionRowsnumber

Number of collapsed items of kbq-skeleton-accordion.

checkableRowsСкопировать ссылку на checkableRowsnumber

Number of controls of kbq-skeleton-checkable.

tabsCountСкопировать ссылку на tabsCountnumber

Number of tabs of kbq-skeleton-tabs.

tabsContentLinesСкопировать ссылку на tabsContentLinesnumber

Number of lines of the text in the content of kbq-skeleton-tabs.

treeRowsСкопировать ссылку на treeRowsnumber

Number of top-level nodes of kbq-skeleton-tree.

treeChildrenСкопировать ссылку на treeChildrennumber

Number of children of the expanded node of kbq-skeleton-tree.

KBQ_SKELETON_PRESETS_CONFIGURATION

constСкопировать ссылку на KBQ_SKELETON_PRESETS_CONFIGURATION

Numbers of items of the skeleton presets.

const KBQ_SKELETON_PRESETS_CONFIGURATION: InjectionToken<KbqSkeletonPresetsConfiguration>;

kbqSkeletonPresetsConfigurationProvider

constСкопировать ссылку на kbqSkeletonPresetsConfigurationProvider

Utility provider for KBQ_SKELETON_PRESETS_CONFIGURATION, for an application or a part of it. The keys it leaves out keep the values of the closest provider above.

const kbqSkeletonPresetsConfigurationProvider: (
    configuration: Partial<KbqSkeletonPresetsConfiguration>
) => Provider;
Предложения по улучшению
Если вы нашли ошибку или хотите доработать статью, создайте запрос на GitHub.