meemup-library 1.4.78 → 1.4.80
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/controllers/PrintContentController.js +5 -0
- package/dist/controllers/SimplePreviewController.js +12 -0
- package/dist/interfaces/cdn/ICompany.d.ts +48 -0
- package/dist/interfaces/cdn/ICompany.js +1 -0
- package/dist/interfaces/cdn/ICompanyColor.d.ts +14 -0
- package/dist/interfaces/cdn/ICompanyColor.js +1 -0
- package/dist/interfaces/cdn/ICompanyHours.d.ts +14 -0
- package/dist/interfaces/cdn/ICompanyHours.js +1 -0
- package/dist/interfaces/cdn/ICompanyRewardsProgram.d.ts +6 -0
- package/dist/interfaces/cdn/ICompanyRewardsProgram.js +1 -0
- package/dist/interfaces/cdn/ICompanySeo.d.ts +9 -0
- package/dist/interfaces/cdn/ICompanySeo.js +1 -0
- package/dist/interfaces/cdn/ICompanyTemplate.d.ts +25 -0
- package/dist/interfaces/cdn/ICompanyTemplate.js +1 -0
- package/dist/interfaces/cdn/ICompanyTimeZone.d.ts +6 -0
- package/dist/interfaces/cdn/ICompanyTimeZone.js +1 -0
- package/dist/interfaces/cdn/ICompanyWorkDay.d.ts +9 -0
- package/dist/interfaces/cdn/ICompanyWorkDay.js +1 -0
- package/dist/interfaces/cdn/IShopHours.d.ts +6 -6
- package/package.json +2 -2
|
@@ -332,6 +332,11 @@ export default new class {
|
|
|
332
332
|
<div style="min-width : 150px; flex-grow : 1; text-align: end;">Tip : </div>
|
|
333
333
|
<div style="min-width : 100px; text-align: end;">${this.ccyFormat(order.tipAmount, symbol)}</div>
|
|
334
334
|
</div>
|
|
335
|
+
|
|
336
|
+
<div style="display : ${order.thirdPartyDriverTipAmount > 0 ? "flex" : "none"}; padding : 1px; flex-direction : row; justify-content : flex-end; border-bottom: 1px dotted black;">
|
|
337
|
+
<div style="min-width : 150px; flex-grow : 1; text-align: end;">Driver Tip : </div>
|
|
338
|
+
<div style="min-width : 100px; text-align: end;">${this.ccyFormat(order.thirdPartyDriverTipAmount, symbol)}</div>
|
|
339
|
+
</div>
|
|
335
340
|
|
|
336
341
|
<div style="display : flex; padding : 1px; flex-direction : row; justify-content : flex-end; border-bottom: 1px solid black;">
|
|
337
342
|
<strong style="min-width : 150px; flex-grow : 1; font-size: larger; text-align: end;">${order.paymentType === 1 ? "Total" : "Total & Still to pay"} : </strong>
|
|
@@ -325,6 +325,18 @@ class SimplePreviewController {
|
|
|
325
325
|
</td>
|
|
326
326
|
</tr>`;
|
|
327
327
|
}
|
|
328
|
+
if (detail.order.thirdPartyDriverTipAmount > 0) {
|
|
329
|
+
//tip amount
|
|
330
|
+
content += `<tr style=" border-top: 1px dashed #000000; margin: 4px 0;">
|
|
331
|
+
<td style="font-size:${template.fontSize}px; min-width:40px; width: 40px; text-align: left;"></td>
|
|
332
|
+
<td style="font-size:${template.fontSize}px; flex: 1; width: 100%; text-align: right; padding-right: 8px;">
|
|
333
|
+
Driver Tip:
|
|
334
|
+
</td>
|
|
335
|
+
<td style="font-size:${template.fontSize}px; width: 90px; text-align: right;">
|
|
336
|
+
${MoneyController.format(detail.order.thirdPartyDriverTipAmount, detail.company.currencySymbol)}
|
|
337
|
+
</td>
|
|
338
|
+
</tr>`;
|
|
339
|
+
}
|
|
328
340
|
}
|
|
329
341
|
content += `</tbody></table>`;
|
|
330
342
|
//total amount
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import IEmergencyBrake from "../IEmergencyBrake";
|
|
2
|
+
import ILocation from "../ILocation";
|
|
3
|
+
import ICompanyColor from "./ICompanyColor";
|
|
4
|
+
import ICompanyHours from "./ICompanyHours";
|
|
5
|
+
import ICompanyRewardsProgram from "./ICompanyRewardsProgram";
|
|
6
|
+
import ICompanySeo from "./ICompanySeo";
|
|
7
|
+
import ICompanyTemplate from "./ICompanyTemplate";
|
|
8
|
+
import ICompanyTimeZone from "./ICompanyTimeZone";
|
|
9
|
+
import IShopSocialNetwork from "./IShopSocialNetwork";
|
|
10
|
+
export default interface ICompany {
|
|
11
|
+
id: number;
|
|
12
|
+
domain: string;
|
|
13
|
+
subDomain: string;
|
|
14
|
+
poweredBy: string;
|
|
15
|
+
poweredByWebsiteUrl: string;
|
|
16
|
+
title: string;
|
|
17
|
+
subTitle: string;
|
|
18
|
+
address: string;
|
|
19
|
+
phoneNumber: string;
|
|
20
|
+
email: string | null;
|
|
21
|
+
logoUrl: string;
|
|
22
|
+
faviconUrl: string;
|
|
23
|
+
rootUrl: string;
|
|
24
|
+
cashPayStatus: boolean;
|
|
25
|
+
cashPayMaxAmount: number;
|
|
26
|
+
currencySymbol: string;
|
|
27
|
+
showNoPopupsByDefault: boolean;
|
|
28
|
+
pickupEnabled: boolean;
|
|
29
|
+
deliveryEnabled: boolean;
|
|
30
|
+
deliveryMode: number;
|
|
31
|
+
availablePaymentTypes: number[];
|
|
32
|
+
deliveryTransportType: number;
|
|
33
|
+
deliveryTravelMaxDistance: number;
|
|
34
|
+
deliveryTravelTime: string;
|
|
35
|
+
emergencyBrakeEnabled: boolean;
|
|
36
|
+
emergencyBrake: IEmergencyBrake | null;
|
|
37
|
+
threeDimensionalSecurePayment: boolean;
|
|
38
|
+
location: ILocation;
|
|
39
|
+
socialNetworks: IShopSocialNetwork[];
|
|
40
|
+
hours: ICompanyHours;
|
|
41
|
+
branches: [];
|
|
42
|
+
ownerCompany: number;
|
|
43
|
+
timeZone: ICompanyTimeZone;
|
|
44
|
+
rewardsProgram: ICompanyRewardsProgram;
|
|
45
|
+
template: ICompanyTemplate;
|
|
46
|
+
colors: ICompanyColor;
|
|
47
|
+
seo: ICompanySeo;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default interface ICompanyColor {
|
|
2
|
+
colorBar: string;
|
|
3
|
+
colorTab: string;
|
|
4
|
+
primary: string;
|
|
5
|
+
primaryDark: string;
|
|
6
|
+
primaryLight: string;
|
|
7
|
+
secondary: string;
|
|
8
|
+
secondaryDark: string;
|
|
9
|
+
secondaryLight: string;
|
|
10
|
+
textPrimary: string;
|
|
11
|
+
textSecondary: string;
|
|
12
|
+
divider: string;
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import ICompanyWorkDay from "./ICompanyWorkDay";
|
|
2
|
+
export default interface ICompanyHours {
|
|
3
|
+
delivery: ICompanyWorkDay[];
|
|
4
|
+
pickup: ICompanyWorkDay[];
|
|
5
|
+
deliveryEnabled: boolean;
|
|
6
|
+
pickupEnabled: boolean;
|
|
7
|
+
today: number;
|
|
8
|
+
sameDayOrderEnabled: boolean;
|
|
9
|
+
preOrderEnabled: boolean;
|
|
10
|
+
preOrderMaxDays: number;
|
|
11
|
+
preOrderOnSameDay: boolean;
|
|
12
|
+
preOrderSubmissionDeadline: number;
|
|
13
|
+
asSoonAsPossibleDesiredDateTimeEnabled: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import IManagementOnlineStoreBlock from "../management/IManagementOnlineStoreBlock";
|
|
2
|
+
export default interface ICompanyTemplate {
|
|
3
|
+
homePage: string | null;
|
|
4
|
+
smallBannerUrl: string;
|
|
5
|
+
largeBannerUrl: string;
|
|
6
|
+
mediumBannerUrl: string;
|
|
7
|
+
noProductImageAvailable: string;
|
|
8
|
+
mapLocationSection: boolean;
|
|
9
|
+
infoSection: boolean;
|
|
10
|
+
pickupDeliverySelectorSection: boolean;
|
|
11
|
+
splashPageLayout: number;
|
|
12
|
+
productsPageTitle: string;
|
|
13
|
+
promotionSectionVisibility: boolean;
|
|
14
|
+
filterSectionVisibility: boolean;
|
|
15
|
+
allergiesSectionVisibility: boolean;
|
|
16
|
+
defaultProductView: number;
|
|
17
|
+
ageVerificationPopUp: boolean;
|
|
18
|
+
ageRestriction: number;
|
|
19
|
+
requirePinForOrder: boolean;
|
|
20
|
+
authorizedPinsForOrdering: string[] | number[];
|
|
21
|
+
displayExtraAndExtraItemImages: boolean;
|
|
22
|
+
contactUsEnabled: boolean;
|
|
23
|
+
aboutUsEnabled: boolean;
|
|
24
|
+
sectionBlocks: IManagementOnlineStoreBlock[];
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
interface IShopHours {
|
|
2
2
|
"delivery": [
|
|
3
3
|
{
|
|
4
|
-
"id":
|
|
5
|
-
"day":
|
|
4
|
+
"id": number;
|
|
5
|
+
"day": number;
|
|
6
6
|
"opened": boolean;
|
|
7
|
-
"openHourFrom":
|
|
8
|
-
"openHourTo":
|
|
9
|
-
"closeHourFrom": null;
|
|
10
|
-
"closeHourTo": null;
|
|
7
|
+
"openHourFrom": string;
|
|
8
|
+
"openHourTo": string;
|
|
9
|
+
"closeHourFrom": string | null;
|
|
10
|
+
"closeHourTo": string | null;
|
|
11
11
|
}
|
|
12
12
|
];
|
|
13
13
|
"deliveryEnabled": boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.80",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"remove:one": "rimraf dist",
|
|
12
12
|
"remove:two": "rimraf ./src/dist",
|
|
13
13
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
-
"commit": "git add . && git commit -m \"version.1.4.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.4.80\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|