UNPKG

@pdfme/schemas

Version:

TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!

174 lines (173 loc) 4.26 kB
import type { TableSchema } from './types.js'; import type { DynamicLayoutRange } from '@pdfme/common'; export declare const getDefaultCellStyles: () => { fontName: undefined; alignment: import("../types.js").ALIGNMENT; verticalAlignment: import("../types.js").VERTICAL_ALIGNMENT; fontSize: number; lineHeight: number; characterSpacing: number; fontColor: string; backgroundColor: string; borderColor: string; borderWidth: import("../box.js").BoxDimension; padding: import("../box.js").BoxDimension; }; export declare const getCellPropPanelSchema: (arg: { i18n: (key: string) => string; fallbackFontName: string; fontNames: string[]; isBody?: boolean; }) => { '-': { type: string; widget: string; }; borderWidth: { title: string; type: string; widget: string; span: number; properties: Record<string, import("@pdfme/common").PropPanelSchema>; }; '--': { type: string; widget: string; }; padding: { title: string; type: string; widget: string; span: number; properties: Record<string, import("@pdfme/common").PropPanelSchema>; }; alternateBackgroundColor?: { title: string; type: string; widget: string; props: { disabledAlpha: boolean; }; rules: { pattern: string; message: string; }[]; } | undefined; fontName: { title: string; type: string; widget: string; default: string; placeholder: string; props: { options: { label: string; value: string; }[]; }; span: number; }; fontSize: { title: string; type: string; widget: string; props: { min: number; }; span: number; }; characterSpacing: { title: string; type: string; widget: string; props: { min: number; }; span: number; }; alignment: { title: string; type: string; widget: string; props: { options: { label: string; value: import("../types.js").ALIGNMENT; }[]; }; span: number; }; verticalAlignment: { title: string; type: string; widget: string; props: { options: { label: string; value: import("../types.js").VERTICAL_ALIGNMENT; }[]; }; span: number; }; lineHeight: { title: string; type: string; widget: string; props: { step: number; min: number; }; span: number; }; fontColor: { title: string; type: string; widget: string; props: { disabledAlpha: boolean; }; rules: { pattern: string; message: string; }[]; }; borderColor: { title: string; type: string; widget: string; props: { disabledAlpha: boolean; }; rules: { pattern: string; message: string; }[]; }; backgroundColor: { title: string; type: string; widget: string; props: { disabledAlpha: boolean; }; rules: { pattern: string; message: string; }[]; }; }; export declare const getColumnStylesPropPanelSchema: ({ head, i18n, }: { head: string[]; i18n: (key: string) => string; }) => { alignment: { type: string; widget: string; title: string; column: number; properties: {}; }; }; export declare const getBody: (value: string | string[][]) => string[][]; export declare const getBodyWithRange: (value: string | string[][], range?: DynamicLayoutRange) => string[][]; export declare const getBodyWithSchemaRange: (value: string | string[][], schema: TableSchema, range?: DynamicLayoutRange | undefined) => string[][];