@ownclouders/design-system
Version:
ownCloud Design System is based on VueDesign Systems and is used to design ownCloud UI components
69 lines (68 loc) • 1.55 kB
TypeScript
import { RouteLocationRaw } from 'vue-router';
export interface ContextualHelperDataListItem {
text: string;
headline?: boolean;
}
export interface ContextualHelperData {
title: string;
text?: string;
list?: ContextualHelperDataListItem[];
readMoreLink?: string;
}
export interface ContextualHelper {
isEnabled: boolean;
data: ContextualHelperData;
}
export interface PasswordPolicyRule {
code: string;
message: string;
helperMessage?: string;
format: (number | string)[];
verified: boolean;
}
export interface PasswordPolicy {
rules: unknown[];
check(password: string): boolean;
missing(password: string): {
rules: PasswordPolicyRule[];
};
}
export type Item = {
id?: string;
};
export type FieldType = {
name: string;
title?: string;
headerType?: string;
type?: string;
callback?: any;
alignH?: string;
alignV?: string;
width?: string;
wrap?: string;
thClass?: string;
tdClass?: string;
sortable?: boolean;
sortDir?: string;
prop?: string;
accessibleLabelCallback?: (item: Item) => string;
};
export type Recipient = {
name: string;
icon?: {
name?: string;
label?: string;
};
isLoadingAvatar?: boolean;
hasAvatar?: boolean;
avatar?: string;
};
export interface BreadcrumbItem {
id?: string;
text: string;
to?: RouteLocationRaw;
allowContextActions?: boolean;
onClick?: () => void;
isTruncationPlaceholder?: boolean;
isStaticNav?: boolean;
}