patronet-pdf-generator 1.0.7 → 1.0.9
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/pdf-generator/pdf-generator.d.ts +2 -1
- package/dist/components/generator/pdf-generator/pdf-generator.d.ts.map +1 -1
- package/dist/components/template/offer-pdf/index.d.ts +1 -1
- package/dist/components/template/offer-pdf/index.d.ts.map +1 -1
- package/dist/components/template/offer-pdf/offer-pdf-component/header.d.ts +1 -1
- package/dist/components/template/offer-pdf/offer-pdf-component/header.d.ts.map +1 -1
- package/dist/components/template/offer-pdf/offer-pdf-component/notes-offers.d.ts +1 -1
- package/dist/components/template/offer-pdf/offer-pdf-component/notes-offers.d.ts.map +1 -1
- package/dist/components/template/offer-pdf/offer-pdf-component/pdf-styles.d.ts +6 -0
- package/dist/components/template/offer-pdf/offer-pdf-component/pdf-styles.d.ts.map +1 -1
- package/dist/components/template/offer-pdf/offer-pdf-component/table-offer-details.d.ts +1 -1
- package/dist/components/template/offer-pdf/offer-pdf-component/table-offer-details.d.ts.map +1 -1
- package/dist/components/template/offer-pdf/types/index.d.ts +10 -0
- package/dist/components/template/offer-pdf/types/index.d.ts.map +1 -1
- package/dist/components/template/variant-pdf/variant-pdf-component/header.d.ts +2 -2
- package/dist/components/template/variant-pdf/variant-pdf-component/header.d.ts.map +1 -1
- package/dist/fonts/vazir-medium.ttf +0 -0
- package/dist/fonts/vazir-regular.ttf +0 -0
- package/dist/main.js +1 -1
- package/dist/stories/test.stories.d.ts.map +1 -1
- package/dist/types/product.d.ts +1 -0
- package/dist/types/product.d.ts.map +1 -1
- package/package.json +52 -52
@@ -1,8 +1,9 @@
|
|
1
1
|
import { JSXElementConstructor, ReactElement } from "react";
|
2
2
|
import { BlobProviderParams, DocumentProps } from "@react-pdf/renderer";
|
3
|
+
export type customButtonType = Partial<BlobProviderParams>;
|
3
4
|
export interface PDFGeneratorProps {
|
4
5
|
document?: ReactElement<DocumentProps, string | JSXElementConstructor<any>>;
|
5
|
-
customButton?: ({ loading, error, url, blob, }
|
6
|
+
customButton?: ({ loading, error, url, blob, }: customButtonType) => ReactElement;
|
6
7
|
fileName?: string;
|
7
8
|
}
|
8
9
|
export declare function PDFGenerator({ document, fileName, customButton, }: PDFGeneratorProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1 +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,
|
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,MAAM,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAC3D,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,EAAE,gBAAgB,KAAK,YAAY,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAyB,EACzB,YAAY,GACb,EAAE,iBAAiB,2CAwBnB"}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { OfferPDfType } from "./types";
|
2
|
-
export declare function OfferPDf({ data, type, pdfDate, user, footerDetails, isDefaultFooterDetails, }: OfferPDfType): import("react/jsx-runtime").JSX.Element;
|
2
|
+
export declare function OfferPDf({ data, type, pdfDate, user, footerDetails, isDefaultFooterDetails, logo, }: OfferPDfType): import("react/jsx-runtime").JSX.Element;
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +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,EACJ,aAAa,EACb,sBAAsB,
|
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,EACJ,aAAa,EACb,sBAAsB,EACtB,IAAI,GACL,EAAE,YAAY,2CAyCd"}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { headerType } from "../types";
|
2
|
-
export declare const Header: ({ type, pdfDate, user }: headerType) => import("react/jsx-runtime").JSX.Element;
|
2
|
+
export declare const Header: ({ type, logo, pdfDate, user }: headerType) => import("react/jsx-runtime").JSX.Element;
|
3
3
|
//# sourceMappingURL=header.d.ts.map
|
@@ -1 +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,
|
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,+BAA+B,UAAU,4CAsF/D,CAAC"}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { NoteOfferType } from "../types";
|
2
|
-
export declare const NotesOffer: ({ products, isProformaType, commercialNotesValue, technicalNotes, additionalNotes, }: NoteOfferType) => import("react/jsx-runtime").JSX.Element;
|
2
|
+
export declare const NotesOffer: ({ products, isProformaType, commercialNotesValue, technicalNotes, additionalNotes, accessShowPartPDf, }: NoteOfferType) => import("react/jsx-runtime").JSX.Element;
|
3
3
|
//# sourceMappingURL=notes-offers.d.ts.map
|
@@ -1 +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,
|
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,yGAOxB,aAAa,4CA+Df,CAAC"}
|
@@ -193,6 +193,12 @@ export declare const styles: {
|
|
193
193
|
height: number;
|
194
194
|
objectFit: string;
|
195
195
|
};
|
196
|
+
contactTextBox: {
|
197
|
+
height: string;
|
198
|
+
flexDirection: "column";
|
199
|
+
justifyContent: "center";
|
200
|
+
alignItems: "center";
|
201
|
+
};
|
196
202
|
contactText: {
|
197
203
|
flexDirection: "row";
|
198
204
|
justifyContent: "flex-start";
|
@@ -1 +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
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmNjB,CAAC"}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { TableOfferDetailsType } from "../types";
|
2
|
-
export declare const TableOfferDetails: ({ products, isProformaType, }: TableOfferDetailsType) => import("react/jsx-runtime").JSX.Element;
|
2
|
+
export declare const TableOfferDetails: ({ products, accessShowPartPDf, isProformaType, }: TableOfferDetailsType) => import("react/jsx-runtime").JSX.Element;
|
3
3
|
//# sourceMappingURL=table-offer-details.d.ts.map
|
@@ -1 +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;
|
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;AAsGjD,eAAO,MAAM,iBAAiB,GAAI,kDAI/B,qBAAqB,4CAwMvB,CAAC"}
|
@@ -4,6 +4,7 @@ export interface headerType {
|
|
4
4
|
type: typeOfPdfProps;
|
5
5
|
pdfDate?: string;
|
6
6
|
user?: userDetails;
|
7
|
+
logo?: string;
|
7
8
|
}
|
8
9
|
export interface OfferPDfType {
|
9
10
|
type: typeOfPdfProps;
|
@@ -12,18 +13,27 @@ export interface OfferPDfType {
|
|
12
13
|
user?: userDetails;
|
13
14
|
footerDetails?: footerDetailsTextType;
|
14
15
|
isDefaultFooterDetails?: boolean;
|
16
|
+
logo?: string;
|
15
17
|
}
|
16
18
|
export interface TableOfferDetailsType {
|
17
19
|
products?: ProductPDfType[];
|
20
|
+
accessShowPartPDf?: accessShowPartPDfType;
|
18
21
|
isProformaType?: boolean;
|
19
22
|
}
|
20
23
|
export interface OfferPpfDataType {
|
21
24
|
products?: ProductPDfType[];
|
25
|
+
accessShowPartPDf?: accessShowPartPDfType;
|
22
26
|
commercialNotesValue?: commercialPropsType[];
|
23
27
|
technicalNotes?: string;
|
24
28
|
additionalNotes?: string;
|
25
29
|
comments?: string;
|
26
30
|
}
|
31
|
+
export interface accessShowPartPDfType {
|
32
|
+
isShowDetails?: boolean;
|
33
|
+
isShowAttributes?: boolean;
|
34
|
+
isShowAdditionalNotes?: boolean;
|
35
|
+
isIncludeVAT?: boolean;
|
36
|
+
}
|
27
37
|
export interface NoteOfferType extends OfferPpfDataType {
|
28
38
|
isProformaType?: boolean;
|
29
39
|
}
|
@@ -1 +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;
|
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;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;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;IACnB,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,iBAAiB,CAAC,EAAE,qBAAqB,CAAC;IAC1C,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AACD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,iBAAiB,CAAC,EAAE,qBAAqB,CAAC;IAC1C,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,qBAAqB;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;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;AAEF,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AACD,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC,KAAK,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACpD,GAAG,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACnD"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { ProductPdfTypes } from
|
2
|
-
export declare const Header: ({ productImage, logo, naming, coding }: ProductPdfTypes) => import("react/jsx-runtime").JSX.Element;
|
1
|
+
import { ProductPdfTypes } from "../types";
|
2
|
+
export declare const Header: ({ productImage, logo, naming, coding, }: ProductPdfTypes) => import("react/jsx-runtime").JSX.Element;
|
3
3
|
//# sourceMappingURL=header.d.ts.map
|
@@ -1 +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;
|
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;AAK3C,eAAO,MAAM,MAAM,GAAI,yCAKpB,eAAe,4CA8BjB,CAAC"}
|
Binary file
|
Binary file
|