patronet-pdf-generator 1.0.4 → 1.0.6
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/components/generator/index.d.ts +4 -0
- package/dist/components/generator/index.d.ts.map +1 -0
- package/dist/components/generator/pdf-generator/index.d.ts +2 -0
- package/dist/components/generator/pdf-generator/index.d.ts.map +1 -0
- package/dist/components/generator/pdf-generator/pdf-generator.d.ts +9 -0
- package/dist/components/generator/pdf-generator/pdf-generator.d.ts.map +1 -0
- package/dist/components/generator/pdf-generator-blob/index.d.ts +2 -0
- package/dist/components/generator/pdf-generator-blob/index.d.ts.map +1 -0
- package/dist/components/generator/pdf-generator-blob/pdf-generator-blob.d.ts +8 -0
- package/dist/components/generator/pdf-generator-blob/pdf-generator-blob.d.ts.map +1 -0
- package/dist/components/generator/pdf-generator-view/index.d.ts +2 -0
- package/dist/components/generator/pdf-generator-view/index.d.ts.map +1 -0
- package/dist/components/generator/pdf-generator-view/pdf-generator-view.d.ts +7 -0
- package/dist/components/generator/pdf-generator-view/pdf-generator-view.d.ts.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/template/index.d.ts +3 -0
- package/dist/components/template/index.d.ts.map +1 -0
- package/dist/components/template/offer-pdf/index.d.ts +3 -0
- package/dist/components/template/offer-pdf/index.d.ts.map +1 -0
- package/dist/components/template/offer-pdf/offer-pdf-component/footer.d.ts +2 -0
- package/dist/components/template/offer-pdf/offer-pdf-component/footer.d.ts.map +1 -0
- package/dist/components/template/offer-pdf/offer-pdf-component/header.d.ts +3 -0
- package/dist/components/template/offer-pdf/offer-pdf-component/header.d.ts.map +1 -0
- package/dist/components/template/offer-pdf/offer-pdf-component/notes-offers.d.ts +3 -0
- package/dist/components/template/offer-pdf/offer-pdf-component/notes-offers.d.ts.map +1 -0
- package/dist/components/template/offer-pdf/offer-pdf-component/pdf-styles.d.ts +200 -0
- package/dist/components/template/offer-pdf/offer-pdf-component/pdf-styles.d.ts.map +1 -0
- package/dist/components/template/offer-pdf/offer-pdf-component/table-offer-details.d.ts +3 -0
- package/dist/components/template/offer-pdf/offer-pdf-component/table-offer-details.d.ts.map +1 -0
- package/dist/components/template/offer-pdf/types/index.d.ts +40 -0
- package/dist/components/template/offer-pdf/types/index.d.ts.map +1 -0
- package/dist/components/template/variant-pdf/index.d.ts +3 -0
- package/dist/components/template/variant-pdf/index.d.ts.map +1 -0
- package/dist/components/template/variant-pdf/types/index.d.ts +48 -0
- package/dist/components/template/variant-pdf/types/index.d.ts.map +1 -0
- package/dist/components/template/variant-pdf/variant-pdf-component/header.d.ts +3 -0
- package/dist/components/template/variant-pdf/variant-pdf-component/header.d.ts.map +1 -0
- package/dist/components/template/variant-pdf/variant-pdf-component/pdf-styles.d.ts +104 -0
- package/dist/components/template/variant-pdf/variant-pdf-component/pdf-styles.d.ts.map +1 -0
- package/dist/components/template/variant-pdf/variant-pdf-component/table-variant-details.d.ts +3 -0
- package/dist/components/template/variant-pdf/variant-pdf-component/table-variant-details.d.ts.map +1 -0
- package/dist/components/template/variant-pdf/variant-pdf-component/variant-details.d.ts +3 -0
- package/dist/components/template/variant-pdf/variant-pdf-component/variant-details.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/main.js +1 -1
- package/dist/stories/test.stories.d.ts +7 -0
- package/dist/stories/test.stories.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/product.d.ts +55 -0
- package/dist/types/product.d.ts.map +1 -0
- package/dist/utils/date/dateFormat.d.ts +2 -0
- package/dist/utils/date/dateFormat.d.ts.map +1 -0
- package/package.json +3 -2
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/generator/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/generator/pdf-generator/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { JSXElementConstructor, ReactElement } from "react";
|
2
|
+
import { BlobProviderParams, DocumentProps } from "@react-pdf/renderer";
|
3
|
+
export interface PDFGeneratorProps {
|
4
|
+
document?: ReactElement<DocumentProps, string | JSXElementConstructor<any>>;
|
5
|
+
customButton?: ({ loading, error, url, blob, }?: BlobProviderParams) => ReactElement;
|
6
|
+
fileName?: string;
|
7
|
+
}
|
8
|
+
export declare function PDFGenerator({ document, fileName, customButton, }: PDFGeneratorProps): import("react/jsx-runtime").JSX.Element;
|
9
|
+
//# sourceMappingURL=pdf-generator.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pdf-generator.d.ts","sourceRoot":"","sources":["../../../../src/components/generator/pdf-generator/pdf-generator.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EACL,kBAAkB,EAClB,aAAa,EAEd,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,YAAY,CAAC,aAAa,EAAE,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5E,YAAY,CAAC,EAAE,CAAC,EACd,OAAO,EACP,KAAK,EACL,GAAG,EACH,IAAI,GACL,CAAC,EAAE,kBAAkB,KAAK,YAAY,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAyB,EACzB,YAAY,GACb,EAAE,iBAAiB,2CAwBnB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/generator/pdf-generator-blob/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { DocumentProps } from "@react-pdf/renderer";
|
2
|
+
interface pdfGeneratorBlobProps {
|
3
|
+
setIsLoadingPdf?: (props: boolean) => void;
|
4
|
+
documentPDf: React.ReactElement<DocumentProps>;
|
5
|
+
}
|
6
|
+
export declare const pdfGeneratorBlob: ({ setIsLoadingPdf, documentPDf, }: pdfGeneratorBlobProps) => Promise<void>;
|
7
|
+
export {};
|
8
|
+
//# sourceMappingURL=pdf-generator-blob.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pdf-generator-blob.d.ts","sourceRoot":"","sources":["../../../../src/components/generator/pdf-generator-blob/pdf-generator-blob.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAO,MAAM,qBAAqB,CAAC;AAEzD,UAAU,qBAAqB;IAC7B,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,WAAW,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;CAChD;AACD,eAAO,MAAM,gBAAgB,GAAU,mCAGpC,qBAAqB,kBAiBvB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/generator/pdf-generator-view/index.tsx"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { JSXElementConstructor, ReactElement } from "react";
|
2
|
+
import { DocumentProps } from "@react-pdf/renderer";
|
3
|
+
export interface PDFGeneratorViewProps {
|
4
|
+
document?: ReactElement<DocumentProps, string | JSXElementConstructor<any>>;
|
5
|
+
}
|
6
|
+
export declare function PDFGeneratorView({ document }: PDFGeneratorViewProps): import("react/jsx-runtime").JSX.Element;
|
7
|
+
//# sourceMappingURL=pdf-generator-view.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pdf-generator-view.d.ts","sourceRoot":"","sources":["../../../../src/components/generator/pdf-generator-view/pdf-generator-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAa,MAAM,qBAAqB,CAAC;AAE/D,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,YAAY,CAAC,aAAa,EAAE,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7E;AACD,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE,qBAAqB,2CAUnE"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/template/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/template/offer-pdf/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,IAAc,EACd,OAAO,EACP,IAAI,GACL,EAAE,YAAY,2CA8Bd"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/offer-pdf/offer-pdf-component/footer.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,MAAM,+CAoDlB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/offer-pdf/offer-pdf-component/header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAMtC,eAAO,MAAM,MAAM,GAAI,yBAAyB,UAAU,4CAkFzD,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"notes-offers.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/offer-pdf/offer-pdf-component/notes-offers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAuB,MAAM,UAAU,CAAC;AAc9D,eAAO,MAAM,UAAU,GAAI,sFAMxB,aAAa,4CAkEf,CAAC"}
|
@@ -0,0 +1,200 @@
|
|
1
|
+
export declare const styles: {
|
2
|
+
page: {
|
3
|
+
padding: number;
|
4
|
+
paddingBottom: number;
|
5
|
+
fontSize: number;
|
6
|
+
fontFamily: string;
|
7
|
+
position: "relative";
|
8
|
+
};
|
9
|
+
fontBold: {
|
10
|
+
fontFamily: string;
|
11
|
+
};
|
12
|
+
header: {
|
13
|
+
position: "relative";
|
14
|
+
flexDirection: "row";
|
15
|
+
justifyContent: "space-between";
|
16
|
+
alignItems: "flex-end";
|
17
|
+
height: number;
|
18
|
+
overflow: "hidden";
|
19
|
+
marginBottom: number;
|
20
|
+
};
|
21
|
+
logoBox: {
|
22
|
+
position: "absolute";
|
23
|
+
top: number;
|
24
|
+
width: string;
|
25
|
+
height: string;
|
26
|
+
flexDirection: "row";
|
27
|
+
justifyContent: "center";
|
28
|
+
};
|
29
|
+
logo: {
|
30
|
+
width: number;
|
31
|
+
objectFit: string;
|
32
|
+
};
|
33
|
+
title: {
|
34
|
+
fontSize: number;
|
35
|
+
};
|
36
|
+
subTitle: {
|
37
|
+
fontSize: number;
|
38
|
+
color: string;
|
39
|
+
};
|
40
|
+
informationContainer: {
|
41
|
+
flexDirection: "row";
|
42
|
+
justifyContent: "space-between";
|
43
|
+
border: string;
|
44
|
+
borderRadius: number;
|
45
|
+
padding: number;
|
46
|
+
};
|
47
|
+
informationBox: {
|
48
|
+
flexDirection: "row";
|
49
|
+
gap: number;
|
50
|
+
};
|
51
|
+
informationText: {
|
52
|
+
flexDirection: "column";
|
53
|
+
};
|
54
|
+
informationKey: {
|
55
|
+
fontSize: number;
|
56
|
+
color: string;
|
57
|
+
};
|
58
|
+
informationValue: {
|
59
|
+
fontSize: number;
|
60
|
+
};
|
61
|
+
table: {
|
62
|
+
border: string;
|
63
|
+
marginTop: number;
|
64
|
+
borderRadius: number;
|
65
|
+
};
|
66
|
+
tableHeader: {
|
67
|
+
flexDirection: "row";
|
68
|
+
fontWeight: string;
|
69
|
+
paddingVertical: number;
|
70
|
+
borderTopLeftRadius: number;
|
71
|
+
borderTopRightRadius: number;
|
72
|
+
backgroundColor: string;
|
73
|
+
};
|
74
|
+
tableRow: {
|
75
|
+
flexDirection: "row";
|
76
|
+
paddingVertical: number;
|
77
|
+
};
|
78
|
+
col: {
|
79
|
+
paddingHorizontal: number;
|
80
|
+
fontSize: number;
|
81
|
+
fontWeight: string;
|
82
|
+
};
|
83
|
+
colItem: {
|
84
|
+
paddingHorizontal: number;
|
85
|
+
marginVertical: number;
|
86
|
+
justifyContent: "center";
|
87
|
+
fontSize: number;
|
88
|
+
fontWeight: string;
|
89
|
+
borderRight: string;
|
90
|
+
};
|
91
|
+
colItemOfferFontSize: {
|
92
|
+
fontSize: number;
|
93
|
+
};
|
94
|
+
colItemProformaFontSize: {
|
95
|
+
fontSize: number;
|
96
|
+
};
|
97
|
+
colWidths: {
|
98
|
+
index: number;
|
99
|
+
code: number;
|
100
|
+
delivery: number;
|
101
|
+
quantity: number;
|
102
|
+
unitPrice: number;
|
103
|
+
totalPrice: number;
|
104
|
+
};
|
105
|
+
colDescription: {
|
106
|
+
flex: number;
|
107
|
+
overflow: "hidden";
|
108
|
+
};
|
109
|
+
productImage: {
|
110
|
+
width: number;
|
111
|
+
height: string;
|
112
|
+
objectFit: string;
|
113
|
+
};
|
114
|
+
commercialNotes: {
|
115
|
+
flexDirection: "row";
|
116
|
+
justifyContent: "space-between";
|
117
|
+
paddingLeft: number;
|
118
|
+
border: string;
|
119
|
+
marginTop: number;
|
120
|
+
borderRadius: number;
|
121
|
+
};
|
122
|
+
commercialNotesBox: {
|
123
|
+
width: string;
|
124
|
+
margin: number;
|
125
|
+
paddingBottom: number;
|
126
|
+
};
|
127
|
+
PriceBox: {
|
128
|
+
width: string;
|
129
|
+
flexDirection: "column";
|
130
|
+
justifyContent: "space-between";
|
131
|
+
margin: number;
|
132
|
+
borderRadius: number;
|
133
|
+
paddingHorizontal: number;
|
134
|
+
minHeight: number;
|
135
|
+
backgroundColor: string;
|
136
|
+
};
|
137
|
+
priceDetails: {
|
138
|
+
flex: number;
|
139
|
+
flexDirection: "column";
|
140
|
+
justifyContent: "space-between";
|
141
|
+
paddingBottom: number;
|
142
|
+
};
|
143
|
+
sectionTitle: {
|
144
|
+
fontWeight: string;
|
145
|
+
fontSize: number;
|
146
|
+
paddingVertical: number;
|
147
|
+
};
|
148
|
+
price: {
|
149
|
+
flex: number;
|
150
|
+
flexDirection: "column";
|
151
|
+
justifyContent: "space-evenly";
|
152
|
+
borderBottom: string;
|
153
|
+
};
|
154
|
+
priceTotal: {
|
155
|
+
fontWeight: string;
|
156
|
+
paddingTop: number;
|
157
|
+
};
|
158
|
+
technicalNotes: {
|
159
|
+
borderTop: string;
|
160
|
+
marginTop: number;
|
161
|
+
};
|
162
|
+
footer: {
|
163
|
+
fontSize: number;
|
164
|
+
paddingTop: number;
|
165
|
+
width: string;
|
166
|
+
position: "absolute";
|
167
|
+
bottom: number;
|
168
|
+
};
|
169
|
+
footerPages: {
|
170
|
+
fontSize: number;
|
171
|
+
color: string;
|
172
|
+
width: string;
|
173
|
+
position: "absolute";
|
174
|
+
bottom: number;
|
175
|
+
left: number;
|
176
|
+
paddingHorizontal: number;
|
177
|
+
flexDirection: "row";
|
178
|
+
justifyContent: "space-between";
|
179
|
+
alignItems: "center";
|
180
|
+
};
|
181
|
+
contactContainer: {
|
182
|
+
flexDirection: "row";
|
183
|
+
width: string;
|
184
|
+
gap: number;
|
185
|
+
};
|
186
|
+
contactBox: {
|
187
|
+
flexDirection: "row";
|
188
|
+
gap: number;
|
189
|
+
};
|
190
|
+
contactIcon: {
|
191
|
+
width: number;
|
192
|
+
height: number;
|
193
|
+
objectFit: string;
|
194
|
+
};
|
195
|
+
contactText: {
|
196
|
+
fontSize: number;
|
197
|
+
color: string;
|
198
|
+
};
|
199
|
+
};
|
200
|
+
//# sourceMappingURL=pdf-styles.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pdf-styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/offer-pdf/offer-pdf-component/pdf-styles.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsMjB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"table-offer-details.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/offer-pdf/offer-pdf-component/table-offer-details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AA6FjD,eAAO,MAAM,iBAAiB,GAAI,+BAG/B,qBAAqB,4CAuLvB,CAAC"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { ProductPDfType } from "@src/types";
|
2
|
+
export type typeOfPdfProps = "Offer" | "Proforma";
|
3
|
+
export interface headerType {
|
4
|
+
type: typeOfPdfProps;
|
5
|
+
pdfDate?: string;
|
6
|
+
user?: userDetails;
|
7
|
+
}
|
8
|
+
export interface OfferPDfType {
|
9
|
+
type: typeOfPdfProps;
|
10
|
+
data: OfferPpfDataType;
|
11
|
+
pdfDate?: string;
|
12
|
+
user?: userDetails;
|
13
|
+
}
|
14
|
+
export interface TableOfferDetailsType {
|
15
|
+
products?: ProductPDfType[];
|
16
|
+
isProformaType?: boolean;
|
17
|
+
}
|
18
|
+
export interface OfferPpfDataType {
|
19
|
+
products?: ProductPDfType[];
|
20
|
+
commercialNotesValue?: commercialPropsType[];
|
21
|
+
technicalNotes?: string;
|
22
|
+
additionalNotes?: string;
|
23
|
+
comments?: string;
|
24
|
+
}
|
25
|
+
export interface NoteOfferType extends OfferPpfDataType {
|
26
|
+
isProformaType?: boolean;
|
27
|
+
}
|
28
|
+
export type commercialPropsType = {
|
29
|
+
subject?: string;
|
30
|
+
value?: string;
|
31
|
+
};
|
32
|
+
export type userDetails = {
|
33
|
+
username?: string;
|
34
|
+
type?: string;
|
35
|
+
company_name?: string;
|
36
|
+
userEconomicCode?: string | number;
|
37
|
+
yourRef?: string | number;
|
38
|
+
ourRef?: string | number;
|
39
|
+
};
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/offer-pdf/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,UAAU,CAAC;AAClD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AACD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AACD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AACD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACrD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/template/variant-pdf/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAa,MAAM,SAAS,CAAC;AAoErD,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,MAAM,EACN,aAAa,EACb,cAAc,GACf,EAAE,eAAe,2CAuCjB"}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { ProductPDfType } from "@src/types";
|
2
|
+
import { JSX } from "react";
|
3
|
+
export interface ProductPdfTypes {
|
4
|
+
logo?: string;
|
5
|
+
productImage?: string;
|
6
|
+
naming?: string;
|
7
|
+
coding?: string;
|
8
|
+
itemsRequired?: itemsType[];
|
9
|
+
itemsIntrinsic?: itemsType[];
|
10
|
+
}
|
11
|
+
export interface variantDetailsTypes {
|
12
|
+
items?: ProductPDfType[][];
|
13
|
+
logo?: string;
|
14
|
+
productImage?: string;
|
15
|
+
naming?: string;
|
16
|
+
coding?: string;
|
17
|
+
isIntrinsicPartAfterOptional?: boolean;
|
18
|
+
IntrinsicPartData?: ProductPDfType[];
|
19
|
+
}
|
20
|
+
export interface tableVariantDetailsTypes {
|
21
|
+
data?: ProductPDfType[];
|
22
|
+
columns?: {
|
23
|
+
name: string;
|
24
|
+
filedValue: string;
|
25
|
+
}[];
|
26
|
+
stylesTable?: {};
|
27
|
+
}
|
28
|
+
export interface itemsType {
|
29
|
+
propertyName: {
|
30
|
+
value: string | undefined;
|
31
|
+
className: string;
|
32
|
+
};
|
33
|
+
code: {
|
34
|
+
value: string;
|
35
|
+
className: string;
|
36
|
+
};
|
37
|
+
description: {
|
38
|
+
value: JSX.Element;
|
39
|
+
printValue: string;
|
40
|
+
sideLongPrintValue: {
|
41
|
+
name?: string;
|
42
|
+
description?: string;
|
43
|
+
}[] | undefined;
|
44
|
+
className: string;
|
45
|
+
options: {};
|
46
|
+
};
|
47
|
+
}
|
48
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/variant-pdf/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC;CAC9B;AACD,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,cAAc,EAAE,EAAE,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,iBAAiB,CAAC,EAAE,cAAc,EAAE,CAAC;CACtC;AACD,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,cAAc,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACjD,WAAW,CAAC,EAAE,EAAE,CAAC;CAClB;AACD,MAAM,WAAW,SAAS;IACxB,YAAY,EAAE;QACZ,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;QAC1B,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,WAAW,EAAE;QACX,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,kBAAkB,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,WAAW,CAAC,EAAE,MAAM,CAAA;SAAE,EAAE,GAAG,SAAS,CAAC;QAC1E,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/variant-pdf/variant-pdf-component/header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI3C,eAAO,MAAM,MAAM,GAAI,wCAAwC,eAAe,4CAwB7E,CAAC"}
|
@@ -0,0 +1,104 @@
|
|
1
|
+
export declare const styles: {
|
2
|
+
page: {
|
3
|
+
paddingHorizontal: number;
|
4
|
+
paddingBottom: number;
|
5
|
+
paddingTop: number;
|
6
|
+
fontSize: number;
|
7
|
+
fontFamily: string;
|
8
|
+
};
|
9
|
+
header: {
|
10
|
+
position: "absolute";
|
11
|
+
top: number;
|
12
|
+
left: number;
|
13
|
+
paddingHorizontal: number;
|
14
|
+
flexDirection: "row";
|
15
|
+
width: string;
|
16
|
+
justifyContent: "space-between";
|
17
|
+
flexWrap: "nowrap";
|
18
|
+
height: number;
|
19
|
+
gap: number;
|
20
|
+
};
|
21
|
+
headerContainer: {
|
22
|
+
flex: number;
|
23
|
+
};
|
24
|
+
titleContainer: {
|
25
|
+
paddingLeft: number;
|
26
|
+
borderLeft: string;
|
27
|
+
};
|
28
|
+
title: {
|
29
|
+
fontSize: number;
|
30
|
+
fontWeight: string;
|
31
|
+
marginBottom: number;
|
32
|
+
paddingBottom: number;
|
33
|
+
borderBottom: string;
|
34
|
+
};
|
35
|
+
subtitleCode: {
|
36
|
+
fontSize: number;
|
37
|
+
fontWeight: string;
|
38
|
+
color: string;
|
39
|
+
};
|
40
|
+
productImageContainer: {
|
41
|
+
maxHeight: number;
|
42
|
+
flexDirection: "row";
|
43
|
+
alignItems: "center";
|
44
|
+
justifyContent: "center";
|
45
|
+
textAlign: "center";
|
46
|
+
};
|
47
|
+
brandImageContainer: {
|
48
|
+
flexDirection: "row";
|
49
|
+
alignItems: "flex-start";
|
50
|
+
justifyContent: "flex-start";
|
51
|
+
textAlign: "left";
|
52
|
+
};
|
53
|
+
image: {
|
54
|
+
width: number;
|
55
|
+
maxHeight: string;
|
56
|
+
objectFit: string;
|
57
|
+
};
|
58
|
+
brandImage: {
|
59
|
+
maxWidth: number;
|
60
|
+
height: number;
|
61
|
+
marginBottom: number;
|
62
|
+
objectFit: string;
|
63
|
+
};
|
64
|
+
tableHeader: {
|
65
|
+
fontFamily: string;
|
66
|
+
flexDirection: "row";
|
67
|
+
gap: number;
|
68
|
+
borderBottom: string;
|
69
|
+
fontWeight: string;
|
70
|
+
};
|
71
|
+
row: {
|
72
|
+
flexDirection: "row";
|
73
|
+
gap: number;
|
74
|
+
paddingVertical: number;
|
75
|
+
};
|
76
|
+
propertyCell: {
|
77
|
+
width: number;
|
78
|
+
fontSize: number;
|
79
|
+
};
|
80
|
+
valueCell: {
|
81
|
+
flex: number;
|
82
|
+
flexDirection: "column";
|
83
|
+
fontSize: number;
|
84
|
+
};
|
85
|
+
codeCell: {
|
86
|
+
width: number;
|
87
|
+
fontSize: number;
|
88
|
+
};
|
89
|
+
footer: {
|
90
|
+
position: "absolute";
|
91
|
+
bottom: number;
|
92
|
+
left: number;
|
93
|
+
right: number;
|
94
|
+
fontSize: number;
|
95
|
+
color: string;
|
96
|
+
flexDirection: "row";
|
97
|
+
alignItems: "center";
|
98
|
+
justifyContent: "space-between";
|
99
|
+
};
|
100
|
+
colorGray: {
|
101
|
+
color: string;
|
102
|
+
};
|
103
|
+
};
|
104
|
+
//# sourceMappingURL=pdf-styles.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pdf-styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/variant-pdf/variant-pdf-component/pdf-styles.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGjB,CAAC"}
|
package/dist/components/template/variant-pdf/variant-pdf-component/table-variant-details.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"table-variant-details.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/variant-pdf/variant-pdf-component/table-variant-details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAIpD,eAAO,MAAM,mBAAmB,GAAI,gCAIjC,wBAAwB,4CA4E1B,CAAC"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { variantDetailsTypes } from '../types';
|
2
|
+
export declare const VariantDetails: ({ items, logo, productImage, naming, coding, isIntrinsicPartAfterOptional, IntrinsicPartData }: variantDetailsTypes) => import("react/jsx-runtime").JSX.Element;
|
3
|
+
//# sourceMappingURL=variant-details.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"variant-details.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/variant-pdf/variant-pdf-component/variant-details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAM/C,eAAO,MAAM,cAAc,GAAI,gGAQ5B,mBAAmB,4CAyCrB,CAAC"}
|
package/dist/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|