vue-csv-processor
Version:
Vue 3 component library for CSV file processing with encoding detection and preview
79 lines (78 loc) • 2.43 kB
TypeScript
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
/**
* Hide table header
*/
noThead: {
type: BooleanConstructor;
default: boolean;
};
/**
* Additional attributes to bind to the select inputs
*/
selectAttributes: {
type: ObjectConstructor;
default: () => {};
};
/**
* Auto-match fields to columns when they share the same name
*/
autoMatch: {
type: BooleanConstructor;
default: boolean;
};
/**
* Ignore case when auto-matching
*/
autoMatchIgnoreCase: {
type: BooleanConstructor;
default: boolean;
};
}>, {
fields: import("vue").ComputedRef<any>;
parsedHeaders: import("vue").ComputedRef<any>;
mapping: import("vue").ComputedRef<any>;
text: import("vue").ComputedRef<any>;
hasData: import("vue").ComputedRef<boolean>;
sampleData: import("vue").ComputedRef<any>;
hasMissingRequiredFields: import("vue").ComputedRef<boolean>;
updateMapping: (field: any, column: any) => void;
formatSampleValue: (value: any) => any;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:mapping" | "mapping-change")[], "update:mapping" | "mapping-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
/**
* Hide table header
*/
noThead: {
type: BooleanConstructor;
default: boolean;
};
/**
* Additional attributes to bind to the select inputs
*/
selectAttributes: {
type: ObjectConstructor;
default: () => {};
};
/**
* Auto-match fields to columns when they share the same name
*/
autoMatch: {
type: BooleanConstructor;
default: boolean;
};
/**
* Ignore case when auto-matching
*/
autoMatchIgnoreCase: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{
"onUpdate:mapping"?: ((...args: any[]) => any) | undefined;
"onMapping-change"?: ((...args: any[]) => any) | undefined;
}>, {
noThead: boolean;
selectAttributes: Record<string, any>;
autoMatch: boolean;
autoMatchIgnoreCase: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;