@bookmypuja-tech/bmp-pdf 0.3.32 → 0.3.33
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.ts +14 -14
- package/dist/index.js +23 -144
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -155,12 +155,25 @@ interface ISummaryPujaList {
|
|
|
155
155
|
pujas: ISummaryPuja[];
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
+
interface IPostalItem {
|
|
159
|
+
id: string;
|
|
160
|
+
name: string;
|
|
161
|
+
pujaDetails: string;
|
|
162
|
+
phone: string;
|
|
163
|
+
address: string;
|
|
164
|
+
}
|
|
165
|
+
interface IPostalReportProps {
|
|
166
|
+
date: Date;
|
|
167
|
+
templeName: string;
|
|
168
|
+
data?: IPostalItem[];
|
|
169
|
+
}
|
|
170
|
+
|
|
158
171
|
interface CombinedReportData {
|
|
159
172
|
date: Date;
|
|
160
173
|
templeName: string;
|
|
161
174
|
pujaData: IPuja[];
|
|
162
175
|
prasadData: IPrasadItem[];
|
|
163
|
-
deliveryData:
|
|
176
|
+
deliveryData: IPostalItem[];
|
|
164
177
|
}
|
|
165
178
|
|
|
166
179
|
interface ITempleData {
|
|
@@ -246,19 +259,6 @@ interface IInvoiceProps {
|
|
|
246
259
|
data: IInvoiceData;
|
|
247
260
|
}
|
|
248
261
|
|
|
249
|
-
interface IPostalItem {
|
|
250
|
-
id: string;
|
|
251
|
-
name: string;
|
|
252
|
-
pujaDetails: string;
|
|
253
|
-
phone: string;
|
|
254
|
-
address: string;
|
|
255
|
-
}
|
|
256
|
-
interface IPostalReportProps {
|
|
257
|
-
date: Date;
|
|
258
|
-
templeName: string;
|
|
259
|
-
data?: IPostalItem[];
|
|
260
|
-
}
|
|
261
|
-
|
|
262
262
|
type sizeOptions = "A4" | "2Inch";
|
|
263
263
|
declare const getPrintBlob: ({ size, data, dates, }: {
|
|
264
264
|
size: sizeOptions;
|
package/dist/index.js
CHANGED
|
@@ -2722,177 +2722,56 @@ var A4CombinedReport = ({
|
|
|
2722
2722
|
},
|
|
2723
2723
|
src: bmpLogo
|
|
2724
2724
|
}
|
|
2725
|
-
), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Prasad Delivery
|
|
2725
|
+
), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Prasad Delivery Postal Report"), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React14.createElement(
|
|
2726
2726
|
View9,
|
|
2727
2727
|
{
|
|
2728
2728
|
style: {
|
|
2729
2729
|
display: "flex",
|
|
2730
|
-
flexDirection: "
|
|
2731
|
-
marginTop: 20
|
|
2730
|
+
flexDirection: "row",
|
|
2731
|
+
marginTop: 20,
|
|
2732
|
+
width: "100%",
|
|
2733
|
+
gap: 20,
|
|
2734
|
+
flexWrap: "wrap"
|
|
2732
2735
|
}
|
|
2733
2736
|
},
|
|
2734
|
-
|
|
2735
|
-
View9,
|
|
2736
|
-
{
|
|
2737
|
-
style: {
|
|
2738
|
-
display: "flex",
|
|
2739
|
-
flexDirection: "row",
|
|
2740
|
-
border: "1px solid black",
|
|
2741
|
-
fontWeight: "semibold",
|
|
2742
|
-
fontSize: 10
|
|
2743
|
-
}
|
|
2744
|
-
},
|
|
2745
|
-
/* @__PURE__ */ React14.createElement(
|
|
2746
|
-
View9,
|
|
2747
|
-
{
|
|
2748
|
-
style: {
|
|
2749
|
-
padding: 6,
|
|
2750
|
-
borderRight: "1px solid black",
|
|
2751
|
-
width: "10%"
|
|
2752
|
-
}
|
|
2753
|
-
},
|
|
2754
|
-
/* @__PURE__ */ React14.createElement(Text_default, null, "Date")
|
|
2755
|
-
),
|
|
2756
|
-
/* @__PURE__ */ React14.createElement(
|
|
2757
|
-
View9,
|
|
2758
|
-
{
|
|
2759
|
-
style: {
|
|
2760
|
-
padding: 6,
|
|
2761
|
-
borderRight: "1px solid black",
|
|
2762
|
-
width: "13%"
|
|
2763
|
-
}
|
|
2764
|
-
},
|
|
2765
|
-
/* @__PURE__ */ React14.createElement(Text_default, null, "Invoice")
|
|
2766
|
-
),
|
|
2767
|
-
/* @__PURE__ */ React14.createElement(
|
|
2768
|
-
View9,
|
|
2769
|
-
{
|
|
2770
|
-
style: {
|
|
2771
|
-
padding: 6,
|
|
2772
|
-
borderRight: "1px solid black",
|
|
2773
|
-
width: "18%"
|
|
2774
|
-
}
|
|
2775
|
-
},
|
|
2776
|
-
/* @__PURE__ */ React14.createElement(Text_default, null, "Devotee Name")
|
|
2777
|
-
),
|
|
2778
|
-
/* @__PURE__ */ React14.createElement(
|
|
2779
|
-
View9,
|
|
2780
|
-
{
|
|
2781
|
-
style: {
|
|
2782
|
-
padding: 6,
|
|
2783
|
-
borderRight: "1px solid black",
|
|
2784
|
-
width: "25%"
|
|
2785
|
-
}
|
|
2786
|
-
},
|
|
2787
|
-
/* @__PURE__ */ React14.createElement(Text_default, null, "Address")
|
|
2788
|
-
),
|
|
2789
|
-
/* @__PURE__ */ React14.createElement(
|
|
2790
|
-
View9,
|
|
2791
|
-
{
|
|
2792
|
-
style: {
|
|
2793
|
-
padding: 6,
|
|
2794
|
-
borderRight: "1px solid black",
|
|
2795
|
-
width: "20%"
|
|
2796
|
-
}
|
|
2797
|
-
},
|
|
2798
|
-
/* @__PURE__ */ React14.createElement(Text_default, null, "Puja Name")
|
|
2799
|
-
),
|
|
2800
|
-
/* @__PURE__ */ React14.createElement(
|
|
2801
|
-
View9,
|
|
2802
|
-
{
|
|
2803
|
-
style: {
|
|
2804
|
-
padding: 6,
|
|
2805
|
-
width: "15%"
|
|
2806
|
-
}
|
|
2807
|
-
},
|
|
2808
|
-
/* @__PURE__ */ React14.createElement(Text_default, null, "Amount")
|
|
2809
|
-
)
|
|
2810
|
-
),
|
|
2811
|
-
deliveryData.map((item, index) => {
|
|
2737
|
+
deliveryData && deliveryData.map((item) => {
|
|
2812
2738
|
return /* @__PURE__ */ React14.createElement(
|
|
2813
2739
|
View9,
|
|
2814
2740
|
{
|
|
2741
|
+
key: item.id,
|
|
2815
2742
|
style: {
|
|
2743
|
+
width: "46%",
|
|
2816
2744
|
display: "flex",
|
|
2817
|
-
flexDirection: "
|
|
2745
|
+
flexDirection: "column",
|
|
2818
2746
|
border: "1px solid black",
|
|
2819
|
-
|
|
2820
|
-
|
|
2747
|
+
borderStyle: "dotted",
|
|
2748
|
+
borderWidth: 1.5,
|
|
2749
|
+
padding: 6
|
|
2821
2750
|
}
|
|
2822
2751
|
},
|
|
2823
2752
|
/* @__PURE__ */ React14.createElement(
|
|
2824
2753
|
View9,
|
|
2825
2754
|
{
|
|
2826
2755
|
style: {
|
|
2827
|
-
|
|
2828
|
-
borderRight: "1px solid black",
|
|
2829
|
-
width: "10%"
|
|
2830
|
-
}
|
|
2831
|
-
},
|
|
2832
|
-
/* @__PURE__ */ React14.createElement(Text_default, null, new Date(item.date).toLocaleDateString("en-GB", {
|
|
2833
|
-
day: "2-digit",
|
|
2834
|
-
month: "2-digit",
|
|
2835
|
-
year: "2-digit"
|
|
2836
|
-
}))
|
|
2837
|
-
),
|
|
2838
|
-
/* @__PURE__ */ React14.createElement(
|
|
2839
|
-
View9,
|
|
2840
|
-
{
|
|
2841
|
-
style: {
|
|
2842
|
-
padding: 6,
|
|
2843
|
-
borderRight: "1px solid black",
|
|
2844
|
-
width: "13%"
|
|
2845
|
-
}
|
|
2846
|
-
},
|
|
2847
|
-
/* @__PURE__ */ React14.createElement(Text_default, null, item.invoiceNumber)
|
|
2848
|
-
),
|
|
2849
|
-
/* @__PURE__ */ React14.createElement(
|
|
2850
|
-
View9,
|
|
2851
|
-
{
|
|
2852
|
-
style: {
|
|
2853
|
-
padding: 6,
|
|
2854
|
-
borderRight: "1px solid black",
|
|
2855
|
-
width: "18%"
|
|
2856
|
-
}
|
|
2857
|
-
},
|
|
2858
|
-
/* @__PURE__ */ React14.createElement(Text_default, null, item.devoteeName)
|
|
2859
|
-
),
|
|
2860
|
-
/* @__PURE__ */ React14.createElement(
|
|
2861
|
-
View9,
|
|
2862
|
-
{
|
|
2863
|
-
style: {
|
|
2864
|
-
padding: 6,
|
|
2865
|
-
borderRight: "1px solid black",
|
|
2866
|
-
width: "25%"
|
|
2756
|
+
flexGrow: 1
|
|
2867
2757
|
}
|
|
2868
2758
|
},
|
|
2869
|
-
/* @__PURE__ */ React14.createElement(Text_default,
|
|
2759
|
+
/* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 10, fontWeight: "bold" } }, item.name),
|
|
2760
|
+
/* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 10 } }, item.address),
|
|
2761
|
+
/* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 10 } }, item.phone)
|
|
2870
2762
|
),
|
|
2871
2763
|
/* @__PURE__ */ React14.createElement(
|
|
2872
2764
|
View9,
|
|
2873
2765
|
{
|
|
2874
2766
|
style: {
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2767
|
+
borderTop: "1px solid black",
|
|
2768
|
+
marginTop: 5,
|
|
2769
|
+
paddingTop: 3,
|
|
2770
|
+
borderStyle: "dotted"
|
|
2878
2771
|
}
|
|
2879
|
-
}
|
|
2880
|
-
/* @__PURE__ */ React14.createElement(Text_default, null, item.pujaName)
|
|
2772
|
+
}
|
|
2881
2773
|
),
|
|
2882
|
-
/* @__PURE__ */ React14.createElement(
|
|
2883
|
-
View9,
|
|
2884
|
-
{
|
|
2885
|
-
style: {
|
|
2886
|
-
padding: 6,
|
|
2887
|
-
width: "15%"
|
|
2888
|
-
}
|
|
2889
|
-
},
|
|
2890
|
-
/* @__PURE__ */ React14.createElement(Text_default, null, item.amount.toLocaleString("en-IN", {
|
|
2891
|
-
maximumFractionDigits: 2,
|
|
2892
|
-
style: "currency",
|
|
2893
|
-
currency: "INR"
|
|
2894
|
-
}))
|
|
2895
|
-
)
|
|
2774
|
+
/* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 9, marginTop: 3 } }, "Note: ", item.pujaDetails)
|
|
2896
2775
|
);
|
|
2897
2776
|
})
|
|
2898
2777
|
))));
|
package/package.json
CHANGED