esvn-react-barcode-print 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -61,22 +61,23 @@ declare const generatePrintDocument: (settings: ISettingPrint, items: IBarcodePr
61
61
  };
62
62
  declare const executePrint: (settings: ISettingPrint, items: IBarcodePrintItem[], isTest?: boolean) => void;
63
63
 
64
- interface IFProps$1 {
64
+ interface IPreviewPrintProps {
65
65
  watch: UseFormWatch<ISettingPrint>;
66
66
  setValue?: UseFormSetValue<ISettingPrint>;
67
- sampleItem?: Record<string, any>;
67
+ sampleData?: Record<string, string>;
68
68
  }
69
- declare const PreviewPrint: ({ watch, setValue, sampleItem }: IFProps$1) => react.JSX.Element;
69
+ declare const PreviewPrint: ({ watch, setValue, sampleData }: IPreviewPrintProps) => react.JSX.Element;
70
70
 
71
- interface IFProps {
71
+ interface ISettingPrintProps {
72
72
  control: Control<ISettingPrint, any>;
73
73
  watch: UseFormWatch<ISettingPrint>;
74
74
  setValue: UseFormSetValue<ISettingPrint>;
75
- errors?: FieldErrors<ISettingPrint>;
75
+ errors: FieldErrors<ISettingPrint>;
76
76
  availableExtraFields?: IExtraFieldOption[];
77
+ sampleData?: Record<string, string>;
77
78
  t?: (key: string) => string;
78
79
  }
79
- declare const SettingPrint: (props: IFProps) => react.JSX.Element;
80
+ declare const SettingPrint: (props: ISettingPrintProps) => react.JSX.Element;
80
81
 
81
82
  interface IFPropsModalPreview {
82
83
  isOpen: boolean;
@@ -95,8 +96,10 @@ interface IModalBarcodePrintProps {
95
96
  dataSelected: IBarcodePrintItem[];
96
97
  setDataSelected: (items: IBarcodePrintItem[]) => void;
97
98
  dataItem?: IBarcodePrintItem | null;
99
+ initialFields?: IPrintField[];
98
100
  defaultFields?: IPrintField[];
99
101
  availableExtraFields?: IExtraFieldOption[];
102
+ sampleData?: Record<string, string>;
100
103
  renderTable?: (props: {
101
104
  selectedItems: IBarcodePrintItem[];
102
105
  setSelectedItems: (items: IBarcodePrintItem[]) => void;
@@ -110,4 +113,4 @@ interface IModalBarcodePrintProps {
110
113
  }
111
114
  declare const ModalBarcodePrint: FC<IModalBarcodePrintProps>;
112
115
 
113
- export { type IBarcodePrintItem, type IExtraFieldOption, type IModalBarcodePrintProps, type IPrintField, type ISettingPrint, ModalBarcodePrint, ModalPreviewPrint, PreviewPrint, SettingPrint, executePrint, generateBarcodeHtml, generatePrintDocument, getOrganizationName, getPaperSizeLabel, renderSingleLabelHtml };
116
+ export { type IBarcodePrintItem, type IExtraFieldOption, type IModalBarcodePrintProps, type IPreviewPrintProps, type IPrintField, type ISettingPrint, type ISettingPrintProps, ModalBarcodePrint, ModalPreviewPrint, PreviewPrint, SettingPrint, executePrint, generateBarcodeHtml, generatePrintDocument, getOrganizationName, getPaperSizeLabel, renderSingleLabelHtml };
package/dist/index.d.ts CHANGED
@@ -61,22 +61,23 @@ declare const generatePrintDocument: (settings: ISettingPrint, items: IBarcodePr
61
61
  };
62
62
  declare const executePrint: (settings: ISettingPrint, items: IBarcodePrintItem[], isTest?: boolean) => void;
63
63
 
64
- interface IFProps$1 {
64
+ interface IPreviewPrintProps {
65
65
  watch: UseFormWatch<ISettingPrint>;
66
66
  setValue?: UseFormSetValue<ISettingPrint>;
67
- sampleItem?: Record<string, any>;
67
+ sampleData?: Record<string, string>;
68
68
  }
69
- declare const PreviewPrint: ({ watch, setValue, sampleItem }: IFProps$1) => react.JSX.Element;
69
+ declare const PreviewPrint: ({ watch, setValue, sampleData }: IPreviewPrintProps) => react.JSX.Element;
70
70
 
71
- interface IFProps {
71
+ interface ISettingPrintProps {
72
72
  control: Control<ISettingPrint, any>;
73
73
  watch: UseFormWatch<ISettingPrint>;
74
74
  setValue: UseFormSetValue<ISettingPrint>;
75
- errors?: FieldErrors<ISettingPrint>;
75
+ errors: FieldErrors<ISettingPrint>;
76
76
  availableExtraFields?: IExtraFieldOption[];
77
+ sampleData?: Record<string, string>;
77
78
  t?: (key: string) => string;
78
79
  }
79
- declare const SettingPrint: (props: IFProps) => react.JSX.Element;
80
+ declare const SettingPrint: (props: ISettingPrintProps) => react.JSX.Element;
80
81
 
81
82
  interface IFPropsModalPreview {
82
83
  isOpen: boolean;
@@ -95,8 +96,10 @@ interface IModalBarcodePrintProps {
95
96
  dataSelected: IBarcodePrintItem[];
96
97
  setDataSelected: (items: IBarcodePrintItem[]) => void;
97
98
  dataItem?: IBarcodePrintItem | null;
99
+ initialFields?: IPrintField[];
98
100
  defaultFields?: IPrintField[];
99
101
  availableExtraFields?: IExtraFieldOption[];
102
+ sampleData?: Record<string, string>;
100
103
  renderTable?: (props: {
101
104
  selectedItems: IBarcodePrintItem[];
102
105
  setSelectedItems: (items: IBarcodePrintItem[]) => void;
@@ -110,4 +113,4 @@ interface IModalBarcodePrintProps {
110
113
  }
111
114
  declare const ModalBarcodePrint: FC<IModalBarcodePrintProps>;
112
115
 
113
- export { type IBarcodePrintItem, type IExtraFieldOption, type IModalBarcodePrintProps, type IPrintField, type ISettingPrint, ModalBarcodePrint, ModalPreviewPrint, PreviewPrint, SettingPrint, executePrint, generateBarcodeHtml, generatePrintDocument, getOrganizationName, getPaperSizeLabel, renderSingleLabelHtml };
116
+ export { type IBarcodePrintItem, type IExtraFieldOption, type IModalBarcodePrintProps, type IPreviewPrintProps, type IPrintField, type ISettingPrint, type ISettingPrintProps, ModalBarcodePrint, ModalPreviewPrint, PreviewPrint, SettingPrint, executePrint, generateBarcodeHtml, generatePrintDocument, getOrganizationName, getPaperSizeLabel, renderSingleLabelHtml };