feat: add barcode field support in form creator and support to edit existing form fields

This commit is contained in:
alam00000
2026-03-01 19:48:34 +05:30
parent d66287a55b
commit e8563a1392
5 changed files with 487 additions and 44 deletions

View File

@@ -1,40 +1,52 @@
export interface FormField {
id: string
type: 'text' | 'checkbox' | 'radio' | 'dropdown' | 'optionlist' | 'button' | 'signature' | 'date' | 'image'
x: number
y: number
width: number
height: number
name: string
defaultValue: string
fontSize: number
alignment: 'left' | 'center' | 'right'
textColor: string
required: boolean
readOnly: boolean
tooltip: string
combCells: number
maxLength: number
options?: string[]
checked?: boolean
exportValue?: string
groupName?: string
label?: string
pageIndex: number
action?: 'none' | 'reset' | 'print' | 'url' | 'js' | 'showHide'
actionUrl?: string
jsScript?: string
targetFieldName?: string
visibilityAction?: 'show' | 'hide' | 'toggle'
dateFormat?: string
multiline?: boolean
borderColor?: string
hideBorder?: boolean
}
export interface PageData {
index: number
width: number
height: number
pdfPageData?: string
}
export interface FormField {
id: string;
type:
| 'text'
| 'checkbox'
| 'radio'
| 'dropdown'
| 'optionlist'
| 'button'
| 'signature'
| 'date'
| 'image'
| 'barcode';
x: number;
y: number;
width: number;
height: number;
name: string;
defaultValue: string;
fontSize: number;
alignment: 'left' | 'center' | 'right';
textColor: string;
required: boolean;
readOnly: boolean;
tooltip: string;
combCells: number;
maxLength: number;
options?: string[];
checked?: boolean;
exportValue?: string;
groupName?: string;
label?: string;
pageIndex: number;
action?: 'none' | 'reset' | 'print' | 'url' | 'js' | 'showHide';
actionUrl?: string;
jsScript?: string;
targetFieldName?: string;
visibilityAction?: 'show' | 'hide' | 'toggle';
dateFormat?: string;
multiline?: boolean;
borderColor?: string;
hideBorder?: boolean;
barcodeFormat?: string;
barcodeValue?: string;
}
export interface PageData {
index: number;
width: number;
height: number;
pdfPageData?: string;
}