patronet-pdf-generator 1.1.2 → 1.2.0
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-dynamic/index.d.ts +2 -0
- package/dist/components/generator/pdf-generator-dynamic/index.d.ts.map +1 -0
- package/dist/components/generator/pdf-generator-dynamic/pdf-generator-dynamic.d.ts +11 -0
- package/dist/components/generator/pdf-generator-dynamic/pdf-generator-dynamic.d.ts.map +1 -0
- 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/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/table-offer-details.d.ts.map +1 -1
- package/dist/components/template/offer-pdf/types/index.d.ts +2 -0
- package/dist/components/template/offer-pdf/types/index.d.ts.map +1 -1
- package/dist/components/template/offer-pdf/utils/constantHeight.d.ts +3 -0
- package/dist/components/template/offer-pdf/utils/constantHeight.d.ts.map +1 -0
- package/dist/components/template/offer-pdf/utils/estimateRowHeight.d.ts +2 -0
- package/dist/components/template/offer-pdf/utils/estimateRowHeight.d.ts.map +1 -0
- package/dist/components/template/offer-pdf/utils/paginateRows.d.ts +11 -0
- package/dist/components/template/offer-pdf/utils/paginateRows.d.ts.map +1 -0
- package/dist/fonts/vazir-medium.ttf +0 -0
- package/dist/fonts/vazir-regular.ttf +0 -0
- package/dist/images/location.png +0 -0
- package/dist/images/logo-LTR.png +0 -0
- package/dist/images/pc.png +0 -0
- package/dist/images/phone.png +0 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/stories/test-input.stories.d.ts +7 -0
- package/dist/stories/test-input.stories.d.ts.map +1 -0
- package/dist/types/product.d.ts +1 -1
- package/dist/types/product.d.ts.map +1 -1
- package/dist/utils/dynamic-generator/addfiledToPdf.d.ts +15 -0
- package/dist/utils/dynamic-generator/addfiledToPdf.d.ts.map +1 -0
- package/dist/utils/dynamic-generator/fileds.d.ts +13 -0
- package/dist/utils/dynamic-generator/fileds.d.ts.map +1 -0
- package/dist/utils/dynamic-generator/generateInteractivePDF-offer.d.ts +7 -0
- package/dist/utils/dynamic-generator/generateInteractivePDF-offer.d.ts.map +1 -0
- package/package.json +56 -53
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/generator/pdf-generator-dynamic/index.tsx"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OfferPDfType, OfferPpfDataType } from "../../../types";
|
|
2
|
+
interface pdfGeneratorDynamicProps {
|
|
3
|
+
data: OfferPpfDataType;
|
|
4
|
+
setIsLoadingPdf?: (props: boolean) => void;
|
|
5
|
+
fileName?: string;
|
|
6
|
+
afterDownloadFile?: VoidFunction;
|
|
7
|
+
props?: OfferPDfType;
|
|
8
|
+
}
|
|
9
|
+
export declare function pdfGeneratorDynamic({ data, setIsLoadingPdf, fileName, afterDownloadFile, props, }: pdfGeneratorDynamicProps): Promise<void>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=pdf-generator-dynamic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-generator-dynamic.d.ts","sourceRoot":"","sources":["../../../../src/components/generator/pdf-generator-dynamic/pdf-generator-dynamic.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGhE,UAAU,wBAAwB;IAChC,IAAI,EAAE,gBAAgB,CAAC;IACvB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,YAAY,CAAC;IACjC,KAAK,CAAC,EAAE,YAAY,CAAC;CACtB;AAED,wBAAsB,mBAAmB,CAAC,EACxC,IAAI,EACJ,eAAe,EACf,QAA6B,EAC7B,iBAAiB,EACjB,KAAK,GACN,EAAE,wBAAwB,iBAU1B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { OfferPDfType } from "./types";
|
|
2
|
-
export declare function OfferPDf({ data, type, pdfDate, user, footerDetails, isDefaultFooterDetails, logo, pdfAttachment, }: OfferPDfType): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function OfferPDf({ data, type, pdfDate, user, footerDetails, isDefaultFooterDetails, logo, pdfAttachment, isOfflineProforma, }: 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,EACtB,IAAI,EACJ,aAAa,
|
|
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,EACJ,aAAa,EACb,iBAAiB,GAClB,EAAE,YAAY,2CAgDd"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { NoteOfferType } from "../types";
|
|
2
|
-
export declare const NotesOffer: ({ products, isProformaType, commercialNotesValue, technicalNotes, additionalNotes, accessShowPartPDf, }: NoteOfferType) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const NotesOffer: ({ products, isProformaType, commercialNotesValue, technicalNotes, additionalNotes, accessShowPartPDf, isOfflineProforma, }: 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,4HAQxB,aAAa,4CAwEf,CAAC"}
|
|
@@ -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;AAqBjD,eAAO,MAAM,iBAAiB,GAAI,kDAI/B,qBAAqB,4CAwMvB,CAAC"}
|
|
@@ -19,6 +19,7 @@ export interface OfferPDfType {
|
|
|
19
19
|
pdfHeader?: string;
|
|
20
20
|
pdfFooter?: string;
|
|
21
21
|
};
|
|
22
|
+
isOfflineProforma?: boolean;
|
|
22
23
|
}
|
|
23
24
|
export interface TableOfferDetailsType {
|
|
24
25
|
products?: ProductPDfType[];
|
|
@@ -41,6 +42,7 @@ export interface accessShowPartPDfType {
|
|
|
41
42
|
}
|
|
42
43
|
export interface NoteOfferType extends OfferPpfDataType {
|
|
43
44
|
isProformaType?: boolean;
|
|
45
|
+
isOfflineProforma?: boolean;
|
|
44
46
|
}
|
|
45
47
|
export type commercialPropsType = {
|
|
46
48
|
subject?: string;
|
|
@@ -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,mBAAmB,CAAC;AAEnD,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;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;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;IACd,aAAa,CAAC,EAAE;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,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,mBAAmB,CAAC;AAEnD,MAAM,MAAM,cAAc,GAAG,OAAO,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AAC,EAAE,OAAO,CAAC;CACxB;AACD,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACrD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;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;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constantHeight.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/offer-pdf/utils/constantHeight.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,gBAAgB,QAKN,CAAC;AAEjB,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimateRowHeight.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/offer-pdf/utils/estimateRowHeight.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,GAC5B,OAAO,MAAM,EACb,iBAAiB,OAAO,KACvB,MAYF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ProductPDfType } from "src/types";
|
|
2
|
+
interface paginateRowsProps {
|
|
3
|
+
products?: ProductPDfType[];
|
|
4
|
+
availableHeight?: number;
|
|
5
|
+
isProformaType?: boolean;
|
|
6
|
+
isShowAttributes?: boolean;
|
|
7
|
+
isShowDetails?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const paginateRows: ({ products, availableHeight, isProformaType, isShowAttributes, isShowDetails, }: paginateRowsProps) => ProductPDfType[][];
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=paginateRows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginateRows.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/offer-pdf/utils/paginateRows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAI3C,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AACD,eAAO,MAAM,YAAY,GAAI,iFAM1B,iBAAiB,uBAiDnB,CAAC"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|