esvn-react-barcode-print 1.0.1 → 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 +10 -7
- package/dist/index.d.ts +10 -7
- package/dist/index.js +407 -296
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +420 -299
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
|
64
|
+
interface IPreviewPrintProps {
|
|
65
65
|
watch: UseFormWatch<ISettingPrint>;
|
|
66
66
|
setValue?: UseFormSetValue<ISettingPrint>;
|
|
67
|
-
|
|
67
|
+
sampleData?: Record<string, string>;
|
|
68
68
|
}
|
|
69
|
-
declare const PreviewPrint: ({ watch, setValue,
|
|
69
|
+
declare const PreviewPrint: ({ watch, setValue, sampleData }: IPreviewPrintProps) => react.JSX.Element;
|
|
70
70
|
|
|
71
|
-
interface
|
|
71
|
+
interface ISettingPrintProps {
|
|
72
72
|
control: Control<ISettingPrint, any>;
|
|
73
73
|
watch: UseFormWatch<ISettingPrint>;
|
|
74
74
|
setValue: UseFormSetValue<ISettingPrint>;
|
|
75
|
-
errors
|
|
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:
|
|
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
|
|
64
|
+
interface IPreviewPrintProps {
|
|
65
65
|
watch: UseFormWatch<ISettingPrint>;
|
|
66
66
|
setValue?: UseFormSetValue<ISettingPrint>;
|
|
67
|
-
|
|
67
|
+
sampleData?: Record<string, string>;
|
|
68
68
|
}
|
|
69
|
-
declare const PreviewPrint: ({ watch, setValue,
|
|
69
|
+
declare const PreviewPrint: ({ watch, setValue, sampleData }: IPreviewPrintProps) => react.JSX.Element;
|
|
70
70
|
|
|
71
|
-
interface
|
|
71
|
+
interface ISettingPrintProps {
|
|
72
72
|
control: Control<ISettingPrint, any>;
|
|
73
73
|
watch: UseFormWatch<ISettingPrint>;
|
|
74
74
|
setValue: UseFormSetValue<ISettingPrint>;
|
|
75
|
-
errors
|
|
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:
|
|
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 };
|