@nextcloud/vue
Version:
Nextcloud vue components
96 lines (95 loc) • 3.46 kB
TypeScript
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
/**
* The text to be display in one line. If it is longer than 10 characters, it is be truncated with ellipsis in the end but keeping up to 10 last characters to fit the parent container.
*/
name: {
type: StringConstructor;
default: string;
};
/**
* The search value to highlight in the text
*/
search: {
type: StringConstructor;
default: string;
};
}>, {}, {}, {
needsTruncate(): boolean | "";
/**
* Index at which to split the name if it is longer than 10 characters.
*
* @return {number} The position at which to split
*/
split(): number;
part1(): string;
part2(): string;
/**
* The ranges to highlight. Since we split the string for ellipsising,
* the Highlight component cannot figure this out itself and needs the ranges provided.
*
* @return {Array} The array with the ranges to highlight
*/
highlight1(): any[];
/**
* We shift the ranges for the second part by the position of the split.
* Ranges out of the string length are discarded by the Highlight component,
* so we don't need to take care of this here.
*
* @return {Array} The array with the ranges to highlight
*/
highlight2(): any[];
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
/**
* The text to be display in one line. If it is longer than 10 characters, it is be truncated with ellipsis in the end but keeping up to 10 last characters to fit the parent container.
*/
name: {
type: StringConstructor;
default: string;
};
/**
* The search value to highlight in the text
*/
search: {
type: StringConstructor;
default: string;
};
}>> & Readonly<{}>, {
name: string;
search: string;
}, {}, {
NcHighlight: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
text: {
type: StringConstructor;
default: string;
};
search: {
type: StringConstructor;
default: string;
};
highlight: {
type: import('vue').PropType<import('../../utils/findRanges.ts').StringRange[]>;
default: () => never[];
};
}>, {}, {}, {
ranges(): import('../../utils/findRanges.ts').StringRange[];
chunks(): import('../NcHighlight/NcHighlight.vue').HighlightChunk[];
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
text: {
type: StringConstructor;
default: string;
};
search: {
type: StringConstructor;
default: string;
};
highlight: {
type: import('vue').PropType<import('../../utils/findRanges.ts').StringRange[]>;
default: () => never[];
};
}>> & Readonly<{}>, {
search: string;
text: string;
highlight: import('../../utils/findRanges.ts').StringRange[];
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
export default _default;