@colijnit/transaction 12.1.8 → 12.1.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/bundles/colijnit-transaction.umd.js +1180 -698
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +31 -19
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +32 -20
- package/esm2015/lib/assets/dictionary/text.properties.js +80 -8
- package/esm2015/lib/component/checkout/checkout-overview-delivery-address/checkout-overview-delivery-address.component.js +1 -1
- package/esm2015/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +120 -288
- package/esm2015/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +279 -112
- package/esm2015/lib/component/checkout/checkout-relation-suggestions-list/checkout-relation-suggestions-list.component.js +2 -2
- package/esm2015/lib/component/checkout/checkout.component.js +64 -34
- package/esm2015/lib/component/checkout/checkout.module.js +11 -2
- package/esm2015/lib/component/core/relation/customer-groups.component.js +4 -3
- package/esm2015/lib/component/core/stock-status-indicator/stock-status-indicator.component.js +1 -1
- package/esm2015/lib/component/delivery-type-tile/delivery-type-tile.component.js +40 -0
- package/esm2015/lib/component/delivery-type-tile/delivery-type-tile.module.js +26 -0
- package/esm2015/lib/component/payment/payment.component.js +73 -0
- package/esm2015/lib/component/payment/payment.module.js +27 -0
- package/esm2015/lib/component/payment-tile/payment-tile.component.js +32 -0
- package/esm2015/lib/component/payment-tile/payment-tile.module.js +25 -0
- package/esm2015/lib/component/relation-address-select/relation-address-select.component.js +1 -1
- package/esm2015/lib/component/relation-address-tile/relation-address-tile.component.js +12 -24
- package/esm2015/lib/component/relation-address-tile/relation-address-tile.module.js +4 -2
- package/esm2015/lib/component/seller-information/seller-information.component.js +61 -0
- package/esm2015/lib/component/seller-information/seller-information.module.js +21 -0
- package/esm2015/lib/component/shared/transaction-article-text/transaction-article-text.module.js +1 -1
- package/esm2015/lib/component/shopping-cart-preview/shopping-cart-preview.component.js +7 -3
- package/esm2015/lib/component/stepper/component/stepper-step.component.js +3 -3
- package/esm2015/lib/component/stepper/stepper.component.js +39 -41
- package/esm2015/lib/component/stepper/stepper.module.js +6 -3
- package/esm2015/lib/component/tile/tile.component.js +32 -0
- package/esm2015/lib/component/tile/tile.module.js +19 -0
- package/esm2015/lib/component/transaction/transaction.component.js +1 -1
- package/esm2015/lib/component/transaction-line/transaction-line.component.js +30 -2
- package/esm2015/lib/component/transaction-line/transaction-line.module.js +4 -2
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +163 -0
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.module.js +30 -0
- package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +8 -3
- package/esm2015/lib/enum/icon.enum.js +8 -1
- package/esm2015/lib/model/delivery-type.js +3 -0
- package/esm2015/lib/model/icon-svg.js +8 -1
- package/esm2015/lib/pipe/date-duration.pipe.js +1 -1
- package/esm2015/lib/pipe/delivery-time.pipe.js +1 -1
- package/esm2015/lib/pipe/localize.pipe.js +1 -1
- package/esm2015/lib/pipe/safe-html.pipe.js +1 -1
- package/esm2015/lib/pipe/safe-style.pipe.js +1 -1
- package/esm2015/lib/service/dialog.service.js +1 -1
- package/esm2015/lib/service/dictionary.service.js +1 -1
- package/esm2015/lib/service/ione-connector-adapter.service.js +19 -6
- package/esm2015/lib/service/pending-reason.service.js +2 -1
- package/esm2015/lib/service/transaction.service.js +9 -1
- package/fesm2015/colijnit-transaction.js +1658 -985
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.d.ts +8 -45
- package/lib/component/checkout/checkout-overview-delivery-edit/style/_layout.scss +13 -6
- package/lib/component/checkout/checkout-overview-delivery-edit/style/material.scss +1 -2
- package/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.d.ts +31 -3
- package/lib/component/checkout/checkout-overview-relation-edit/style/_layout.scss +28 -0
- package/lib/component/checkout/checkout-overview-relation-edit/style/_material-definition.scss +1 -0
- package/lib/component/checkout/checkout-overview-relation-edit/style/material.scss +4 -0
- package/lib/component/checkout/checkout-relation-suggestions-list/style/_layout.scss +1 -0
- package/lib/component/checkout/checkout.component.d.ts +10 -1
- package/lib/component/checkout/style/_layout.scss +25 -0
- package/lib/component/checkout/style/_material-definition.scss +5 -0
- package/lib/component/checkout/style/material.scss +2 -0
- package/lib/component/confirmation-dialog/style/material.scss +1 -0
- package/lib/component/core/relation/relation-customer-groups.component.scss +6 -0
- package/lib/component/delivery-type-tile/delivery-type-tile.component.d.ts +10 -0
- package/lib/component/delivery-type-tile/delivery-type-tile.module.d.ts +2 -0
- package/lib/component/delivery-type-tile/style/_layout.scss +35 -0
- package/lib/component/delivery-type-tile/style/_material-definition.scss +16 -0
- package/lib/component/delivery-type-tile/style/_theme.scss +6 -0
- package/lib/component/delivery-type-tile/style/material.scss +5 -0
- package/lib/component/payment/payment.component.d.ts +18 -0
- package/lib/component/payment/payment.module.d.ts +2 -0
- package/lib/component/payment/style/_layout.scss +54 -0
- package/lib/component/payment/style/_material-definition.scss +17 -0
- package/lib/component/payment/style/_theme.scss +16 -0
- package/lib/component/payment/style/material.scss +5 -0
- package/lib/component/payment-tile/payment-tile.component.d.ts +9 -0
- package/lib/component/payment-tile/payment-tile.module.d.ts +2 -0
- package/lib/component/payment-tile/style/_layout.scss +22 -0
- package/lib/component/payment-tile/style/_material-definition.scss +0 -0
- package/lib/component/payment-tile/style/_theme.scss +6 -0
- package/lib/component/payment-tile/style/material.scss +5 -0
- package/lib/component/relation-address/style/_layout.scss +5 -0
- package/lib/component/relation-address-tile/relation-address-tile.component.d.ts +1 -0
- package/lib/component/relation-address-tile/style/_layout.scss +0 -21
- package/lib/component/relation-address-tile/style/_material-definition.scss +2 -1
- package/lib/component/relation-address-tile/style/_theme.scss +0 -30
- package/lib/component/relation-address-tile/style/material.scss +1 -0
- package/lib/component/sell-order/sell-order-side-panel/sell-order-side-panel.component.scss +49 -0
- package/lib/component/sell-order/sell-order.component.scss +15 -0
- package/lib/component/seller-information/seller-information.component.d.ts +13 -0
- package/lib/component/seller-information/seller-information.module.d.ts +2 -0
- package/lib/component/seller-information/style/_layout.scss +21 -0
- package/lib/component/seller-information/style/_material-definition.scss +2 -0
- package/lib/component/seller-information/style/_theme.scss +7 -0
- package/lib/component/seller-information/style/material.scss +4 -0
- package/lib/component/shopping-cart-preview/shopping-cart-preview.component.d.ts +2 -0
- package/lib/component/shopping-cart-preview/style/_layout.scss +6 -2
- package/lib/component/shopping-cart-preview/style/_material-definition.scss +1 -1
- package/lib/component/stepper/component/stepper-step.component.d.ts +1 -1
- package/lib/component/stepper/stepper.component.d.ts +10 -5
- package/lib/component/stepper/style/_layout.scss +52 -20
- package/lib/component/stepper/style/_material-definition.scss +9 -2
- package/lib/component/stepper/style/_theme.scss +36 -0
- package/lib/component/tile/style/_layout.scss +36 -0
- package/lib/component/tile/style/_material-definition.scss +16 -0
- package/lib/component/tile/style/_theme.scss +36 -0
- package/lib/component/tile/style/material.scss +4 -0
- package/lib/component/tile/tile.component.d.ts +6 -0
- package/lib/component/tile/tile.module.d.ts +2 -0
- package/lib/component/transaction-line/style/_theme.scss +5 -0
- package/lib/component/transaction-line/style/material.scss +1 -0
- package/lib/component/transaction-line/transaction-line.component.d.ts +5 -0
- package/lib/component/transaction-line-side-panel/style/_layout.scss +47 -0
- package/lib/component/transaction-line-side-panel/style/_material-definition.scss +10 -0
- package/lib/component/transaction-line-side-panel/style/_theme.scss +7 -0
- package/lib/component/transaction-line-side-panel/style/material.scss +4 -0
- package/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.d.ts +20 -0
- package/lib/component/transaction-line-side-panel/transaction-line-side-panel.module.d.ts +2 -0
- package/lib/component/transaction-lines/transaction-lines.component.d.ts +1 -0
- package/lib/enum/icon.enum.d.ts +7 -0
- package/lib/model/delivery-type.d.ts +7 -0
- package/lib/service/ione-connector-adapter.service.d.ts +3 -1
- package/lib/service/transaction.service.d.ts +3 -0
- package/lib/style/_variables.scss +10 -2
- package/package.json +1 -1
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
-
import {
|
|
3
|
-
import { RelationAnyType } from "@colijnit/transactionapi/build/model/relation-any-type";
|
|
2
|
+
import { FormMasterService } from "@colijnit/corecomponents_v12";
|
|
4
3
|
import { Address } from "@colijnit/transactionapi/build/model/address.bo";
|
|
5
4
|
import { GenderType } from "@colijnit/transactionapi/build/enum/gender-type.enum";
|
|
6
5
|
import { Marketing } from "@colijnit/transactionapi/build/model/marketing.bo";
|
|
7
|
-
import { AddressType } from "@colijnit/transactionapi/build/enum/address-type.enum";
|
|
8
6
|
import { DeliveryMethod } from "@colijnit/transactionapi/build/model/delivery-method.bo";
|
|
9
7
|
import { DeliveryOption } from "@colijnit/transactionapi/build/model/delivery-option.bo";
|
|
10
8
|
import { TransactionService } from "../../../service/transaction.service";
|
|
@@ -14,30 +12,27 @@ import { TransactionInfoResponse } from "@colijnit/transactionapi/build/model/tr
|
|
|
14
12
|
import { SetTransactionDeliveryOptionsRequest } from "@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo";
|
|
15
13
|
import { Icon } from "../../../enum/icon.enum";
|
|
16
14
|
import { BusinessObjectFactory } from "../../../factory/business-object-factory";
|
|
15
|
+
import { DeliveryType } from "../../../model/delivery-type";
|
|
16
|
+
import { IconCacheService } from "../../../service/icon-cache.service";
|
|
17
17
|
export declare class CheckoutOverviewDeliveryEditComponent implements OnInit {
|
|
18
18
|
private _dictionaryService;
|
|
19
19
|
private _formMasterService;
|
|
20
20
|
private _boFactory;
|
|
21
21
|
service: TransactionService;
|
|
22
|
+
iconService: IconCacheService;
|
|
22
23
|
readonly icons: typeof Icon;
|
|
23
|
-
deliveryForm: FormComponent;
|
|
24
|
-
locationForm: FormComponent;
|
|
25
|
-
changeLocationDialog: CoDialogComponent;
|
|
26
|
-
addressGrid: CoGridComponent<any>;
|
|
27
|
-
set relation(value: RelationAnyType);
|
|
28
|
-
get relation(): RelationAnyType;
|
|
29
24
|
deliveryOptionsRequest: SetTransactionDeliveryOptionsRequest;
|
|
30
25
|
transaction: TransactionInfoResponse;
|
|
31
|
-
relationChange: EventEmitter<RelationAnyType>;
|
|
32
26
|
validSubmit: EventEmitter<void>;
|
|
33
27
|
invalidSubmit: EventEmitter<void>;
|
|
34
28
|
showClass(): boolean;
|
|
29
|
+
deliveryTypes: DeliveryType[];
|
|
35
30
|
deliveryOptionList: DeliveryOption[];
|
|
36
31
|
deliveryOptions: DeliveryOption[];
|
|
37
32
|
deliveryOptionFields: TextValueContainer;
|
|
38
33
|
deliveryMethods: DeliveryMethod[];
|
|
39
34
|
deliveryMethodFields: TextValueContainer;
|
|
40
|
-
|
|
35
|
+
deliveryTypeIdx: number;
|
|
41
36
|
changeLocationPopup: boolean;
|
|
42
37
|
newAddress: Address;
|
|
43
38
|
preferredDateOptions: TextValueContainer[];
|
|
@@ -49,57 +44,25 @@ export declare class CheckoutOverviewDeliveryEditComponent implements OnInit {
|
|
|
49
44
|
marketingCode: string;
|
|
50
45
|
assemblyCosts: number;
|
|
51
46
|
deliveryCosts: number;
|
|
52
|
-
showSelectAddressDialog: boolean;
|
|
53
|
-
showCreateAddressDialog: boolean;
|
|
54
|
-
editAddressType: AddressType;
|
|
55
|
-
addresses: Address[];
|
|
56
|
-
selectedAddress: Address;
|
|
57
|
-
deliveryAddress: Address;
|
|
58
|
-
invoiceAddress: Address;
|
|
59
|
-
deliveryAddressIdx: number;
|
|
60
|
-
invoiceAddressIdx: number;
|
|
61
|
-
invoiceAddressSameAsDeliveryAddress: boolean;
|
|
62
|
-
columns: any[];
|
|
63
47
|
deliveryDateFinal: boolean;
|
|
64
48
|
assemblyDate: Date;
|
|
65
49
|
totalAssemblyTime: string;
|
|
66
50
|
dropshipment: boolean;
|
|
67
|
-
private _relation;
|
|
68
|
-
private _addressType;
|
|
69
|
-
get billingAddress(): Address;
|
|
70
51
|
get deliveryDate(): Date;
|
|
71
52
|
set deliveryDate(value: Date);
|
|
72
53
|
get preferredDeliveryDate(): Date;
|
|
73
54
|
set preferredDeliveryDate(value: Date);
|
|
74
|
-
|
|
75
|
-
constructor(_dictionaryService: DictionaryService, _formMasterService: FormMasterService, _boFactory: BusinessObjectFactory, service: TransactionService);
|
|
55
|
+
constructor(_dictionaryService: DictionaryService, _formMasterService: FormMasterService, _boFactory: BusinessObjectFactory, service: TransactionService, iconService: IconCacheService);
|
|
76
56
|
ngOnInit(): Promise<void>;
|
|
77
|
-
showNewAddressDialog(deliveryAddress?: boolean): void;
|
|
78
|
-
showEditAddressDialog(deliveryAddress?: boolean): void;
|
|
79
|
-
setIndexDeliveryAddress(idx: number): void;
|
|
80
|
-
setIndexInvoiceAddress(idx: number): void;
|
|
81
|
-
editAddress(addr: Address): void;
|
|
82
|
-
checkSameAddress(checked: boolean): void;
|
|
83
57
|
submit(): boolean;
|
|
84
|
-
saveNewAddress(address: Address): void;
|
|
85
|
-
saveAddress(address: Address): void;
|
|
86
|
-
selectAddress(address?: Address): void;
|
|
87
58
|
handleDeliveryMethodChange(deliveryMethodId: string): Promise<void>;
|
|
59
|
+
setIndexDeliveryType(idx: number): void;
|
|
88
60
|
selectDeliveryOptionsByDeliveryMethod(deliveryMethod: DeliveryMethod): DeliveryOption[];
|
|
89
61
|
selectDeliveryMethodById(deliveryMethodId: string): DeliveryMethod;
|
|
90
|
-
changeAddress(addressType: AddressType): void;
|
|
91
|
-
saveNewLocation(): void;
|
|
92
|
-
saveLocation(): void;
|
|
93
|
-
addLocation(): void;
|
|
94
|
-
updateAddress(address: Address): Promise<void>;
|
|
95
62
|
isDeliveryOptionChecked(deliveryOptionItem: DeliveryOption): boolean;
|
|
96
63
|
changePreferredDeliveryDate2(preferredDateOption: string): void;
|
|
97
64
|
onMarketingCodeChange(marketingCode: string): void;
|
|
98
65
|
onChangeLocationCancelClick(): void;
|
|
99
|
-
onAddLocationOkClick(): void;
|
|
100
|
-
handleAddressSelected(rows: any): void;
|
|
101
66
|
private calculateDeliveryCosts;
|
|
102
67
|
private calculateAssemblyCosts;
|
|
103
|
-
private _addAddress;
|
|
104
|
-
private _setCountryNameToAddress;
|
|
105
68
|
}
|
|
@@ -4,6 +4,19 @@
|
|
|
4
4
|
.co-checkout-overview-delivery-edit {
|
|
5
5
|
font-family: $tp-checkout-delivery-font-family;
|
|
6
6
|
font-size: $tp-checkout-delivery-font-size;
|
|
7
|
+
width: 100%;
|
|
8
|
+
.delivery-edit-content {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
column-gap: 20px;
|
|
13
|
+
}
|
|
14
|
+
co-form {
|
|
15
|
+
flex: 1;
|
|
16
|
+
}
|
|
17
|
+
.co-shopping-cart-preview {
|
|
18
|
+
min-width: 35%;
|
|
19
|
+
}
|
|
7
20
|
.checkout-form-wrapper {
|
|
8
21
|
display: flex;
|
|
9
22
|
flex-direction: column;
|
|
@@ -42,12 +55,6 @@
|
|
|
42
55
|
width: 100%;
|
|
43
56
|
overflow: hidden;
|
|
44
57
|
}
|
|
45
|
-
/*
|
|
46
|
-
.default-width {
|
|
47
|
-
width: $tp-radio-button-width;
|
|
48
|
-
}
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
58
|
.checkout-data-row {
|
|
52
59
|
display: flex;
|
|
53
60
|
flex-direction: row;
|
|
@@ -4,5 +4,4 @@
|
|
|
4
4
|
@import "./theme";
|
|
5
5
|
@import "../../../relation-address-select/style/material";
|
|
6
6
|
@import "../../../relation-address-tile/style/material";
|
|
7
|
-
|
|
8
|
-
@import "lib/components/carousel-3d/style/material";
|
|
7
|
+
@import "../../../delivery-type-tile/style/material";
|
|
@@ -3,19 +3,25 @@ import { RelationAnyType } from "@colijnit/transactionapi/build/model/relation-a
|
|
|
3
3
|
import { CustomerFullObject } from "@colijnit/transactionapi/build/model/customer-full-object.bo";
|
|
4
4
|
import { ContactOption } from "@colijnit/transactionapi/build/model/contact-option.bo";
|
|
5
5
|
import { RelationNameKind } from "@colijnit/transactionapi/build/enum/relation-name-kind.enum";
|
|
6
|
+
import { AddressType } from "@colijnit/transactionapi/build/enum/address-type.enum";
|
|
6
7
|
import { RelationPrivacySetting } from "@colijnit/transactionapi/build/model/relation-privacy-setting.bo";
|
|
7
8
|
import { GenderType } from "@colijnit/transactionapi/build/enum/gender-type.enum";
|
|
8
9
|
import { TransactionService } from "../../../service/transaction.service";
|
|
9
|
-
import { FormComponent } from "@colijnit/corecomponents_v12";
|
|
10
|
+
import { FormComponent, FormMasterService } from "@colijnit/corecomponents_v12";
|
|
10
11
|
import { RelationListObject } from "@colijnit/transactionapi/build/model/relation-list-object.bo";
|
|
11
12
|
import { Address } from "@colijnit/transactionapi/build/model/address.bo";
|
|
12
13
|
import { FormGroup } from "@angular/forms";
|
|
13
|
-
import {
|
|
14
|
+
import { BusinessObjectFactory } from "../../../factory/business-object-factory";
|
|
15
|
+
import { SetTransactionDeliveryOptionsRequest } from "@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo";
|
|
16
|
+
import { Icon } from "../../../enum/icon.enum";
|
|
14
17
|
export declare class CheckoutOverviewRelationEditComponent implements OnInit {
|
|
15
18
|
private _service;
|
|
16
19
|
private _formMaster;
|
|
20
|
+
private _boFactory;
|
|
21
|
+
readonly icons: typeof Icon;
|
|
17
22
|
relationForm: FormComponent;
|
|
18
23
|
set relation(value: RelationAnyType);
|
|
24
|
+
deliveryOptionsRequest: SetTransactionDeliveryOptionsRequest;
|
|
19
25
|
validSubmit: EventEmitter<void>;
|
|
20
26
|
invalidSubmit: EventEmitter<void>;
|
|
21
27
|
relationChange: EventEmitter<RelationAnyType>;
|
|
@@ -31,6 +37,17 @@ export declare class CheckoutOverviewRelationEditComponent implements OnInit {
|
|
|
31
37
|
relationSuggestions: RelationListObject[];
|
|
32
38
|
showRelationSidebar: boolean;
|
|
33
39
|
inviteToAccount: boolean;
|
|
40
|
+
addresses: Address[];
|
|
41
|
+
selectedAddress: Address;
|
|
42
|
+
deliveryAddress: Address;
|
|
43
|
+
invoiceAddress: Address;
|
|
44
|
+
deliveryAddressIdx: number;
|
|
45
|
+
invoiceAddressIdx: number;
|
|
46
|
+
invoiceAddressSameAsDeliveryAddress: boolean;
|
|
47
|
+
editAddressType: AddressType;
|
|
48
|
+
addressToEdit: Address;
|
|
49
|
+
showSelectAddressDialog: boolean;
|
|
50
|
+
showCreateAddressDialog: boolean;
|
|
34
51
|
readonly relType: typeof RelationNameKind;
|
|
35
52
|
readonly genderType: typeof GenderType;
|
|
36
53
|
get relation(): RelationAnyType;
|
|
@@ -38,9 +55,18 @@ export declare class CheckoutOverviewRelationEditComponent implements OnInit {
|
|
|
38
55
|
get editFirstAddress(): Address;
|
|
39
56
|
get applicationUser(): boolean;
|
|
40
57
|
private _relation;
|
|
41
|
-
constructor(_service: TransactionService, _formMaster: FormMasterService);
|
|
58
|
+
constructor(_service: TransactionService, _formMaster: FormMasterService, _boFactory: BusinessObjectFactory);
|
|
42
59
|
ngOnInit(): Promise<void>;
|
|
43
60
|
submit(): boolean;
|
|
61
|
+
showNewAddressDialog(deliveryAddress?: boolean): void;
|
|
62
|
+
showEditAddressDialog(deliveryAddress?: boolean): void;
|
|
63
|
+
setIndexDeliveryAddress(idx: number): void;
|
|
64
|
+
setIndexInvoiceAddress(idx: number): void;
|
|
65
|
+
editAddress(addr: Address): void;
|
|
66
|
+
checkSameAddress(checked: boolean): void;
|
|
67
|
+
saveNewAddress(address: Address): void;
|
|
68
|
+
saveAddress(address: Address): void;
|
|
69
|
+
selectAddress(address?: Address): void;
|
|
44
70
|
preparePrimaryEmail(): void;
|
|
45
71
|
preparePrimaryPhone(): void;
|
|
46
72
|
loadPrivacySettings(): Promise<void>;
|
|
@@ -50,6 +76,7 @@ export declare class CheckoutOverviewRelationEditComponent implements OnInit {
|
|
|
50
76
|
changeGenderType(value: GenderType): void;
|
|
51
77
|
firstNameChange(firstName: string): void;
|
|
52
78
|
familyNameChange(familyName: string): void;
|
|
79
|
+
checkVisibilitySuggestions(): void;
|
|
53
80
|
onRelationSuggestionClick(relationSuggested: RelationListObject): Promise<void>;
|
|
54
81
|
changePrivacySetting(relationPrivacySetting: RelationPrivacySetting, value: boolean): void;
|
|
55
82
|
showSidebar(): void;
|
|
@@ -57,4 +84,5 @@ export declare class CheckoutOverviewRelationEditComponent implements OnInit {
|
|
|
57
84
|
private _initForm;
|
|
58
85
|
private _relationNameChangeHandler;
|
|
59
86
|
private _relationNameChangedHandlerFn;
|
|
87
|
+
private _setCountryNameToAddress;
|
|
60
88
|
}
|
|
@@ -4,6 +4,19 @@
|
|
|
4
4
|
.co-checkout-overview-relation-edit {
|
|
5
5
|
font-family: $tp-checkout-relation-font-family;
|
|
6
6
|
font-size: $tp-checkout-relation-font-size;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
row-gap: 20px;
|
|
10
|
+
co-form {
|
|
11
|
+
flex: 1;
|
|
12
|
+
}
|
|
13
|
+
.co-carousel-3d {
|
|
14
|
+
max-width: $tp-checkout-relation-address-carousel-max-width;
|
|
15
|
+
height: 175px;
|
|
16
|
+
}
|
|
17
|
+
.co-shopping-cart-preview {
|
|
18
|
+
min-width: 35%;
|
|
19
|
+
}
|
|
7
20
|
.checkout-form-wrapper {
|
|
8
21
|
display: grid;
|
|
9
22
|
grid-template-columns: minmax(170px, 250px) auto;
|
|
@@ -65,6 +78,7 @@
|
|
|
65
78
|
.two-column-grid {
|
|
66
79
|
display: grid;
|
|
67
80
|
grid-template-areas: "firstcolumn secondcolumn";
|
|
81
|
+
row-gap: $tp-checkout-relation-row-gap;
|
|
68
82
|
.first-column {
|
|
69
83
|
grid-area: firstcolumn;
|
|
70
84
|
grid-row: auto;
|
|
@@ -74,6 +88,20 @@
|
|
|
74
88
|
grid-row: auto;
|
|
75
89
|
}
|
|
76
90
|
}
|
|
91
|
+
.relation-address-new {
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: row;
|
|
95
|
+
align-items: center;
|
|
96
|
+
font-weight: bold;
|
|
97
|
+
.relation-address-icon {
|
|
98
|
+
height: 20px;
|
|
99
|
+
width: 20px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
.overview-delivery-invoice-address {
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
}
|
|
77
105
|
.suggestions-sidebar {
|
|
78
106
|
position: fixed;
|
|
79
107
|
top: 0;
|
package/lib/component/checkout/checkout-overview-relation-edit/style/_material-definition.scss
CHANGED
|
@@ -8,6 +8,7 @@ $tp-checkout-relation-label-sequence-fontsize: $tp-font-size !default;
|
|
|
8
8
|
$tp-checkout-relation-label-description-fontsize: $tp-font-size-small !default;
|
|
9
9
|
$tp-checkout-relation-label-fontsize: $tp-font-size !default;
|
|
10
10
|
$tp-checkout-relation-label-fontweight: bold !default;
|
|
11
|
+
$tp-checkout-relation-address-carousel-max-width: 500px !default;
|
|
11
12
|
$tp-checkout-relation-suggestion-list-sidebar-width: 300px !default;
|
|
12
13
|
$tp-checkout-relation-suggestion-list-sidebar-background-color: white !default;
|
|
13
14
|
$tp-checkout-relation-suggestion-list-sidebar-boxshadow: -3px 1px 10px rgba(1, 1, 1, 0.1) !default;
|
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
@import "./material-definition";
|
|
3
3
|
@import "./layout";
|
|
4
4
|
@import "./theme";
|
|
5
|
+
$cc-co-carousel-3d-navigate-button-width: 40px;
|
|
5
6
|
@import "../../../relation-address/style/material";
|
|
6
7
|
@import "../../checkout-relation-suggestions-list/style/material";
|
|
8
|
+
@import "~@colijnit/corecomponents_v12/lib/components/carousel-3d/style/material";
|
|
9
|
+
@import "~@colijnit/corecomponents_v12/lib/components/drop-down-list/style/material";
|
|
10
|
+
@import "~@colijnit/corecomponents_v12/lib/components/input-checkbox/style/material";
|
|
@@ -7,21 +7,30 @@ import { CheckoutOverviewRelationEditComponent } from "./checkout-overview-relat
|
|
|
7
7
|
import { CheckoutOverviewDeliveryEditComponent } from "./checkout-overview-delivery-edit/checkout-overview-delivery-edit.component";
|
|
8
8
|
import { StepperStepComponent } from "../stepper/component/stepper-step.component";
|
|
9
9
|
import { DialogService } from "../../service/dialog.service";
|
|
10
|
+
import { PaymentComponent } from "../payment/payment.component";
|
|
10
11
|
export declare class CheckoutComponent {
|
|
11
12
|
service: TransactionService;
|
|
12
13
|
private _dictionary;
|
|
13
14
|
private _dialogService;
|
|
14
15
|
stepRelation: StepperStepComponent;
|
|
15
16
|
stepDelivery: StepperStepComponent;
|
|
17
|
+
stepPayment: StepperStepComponent;
|
|
18
|
+
stepOverview: StepperStepComponent;
|
|
19
|
+
stepPay: StepperStepComponent;
|
|
16
20
|
checkoutRelation: CheckoutOverviewRelationEditComponent;
|
|
17
21
|
checkoutDelivery: CheckoutOverviewDeliveryEditComponent;
|
|
22
|
+
checkoutPayment: PaymentComponent;
|
|
23
|
+
sellerId: number;
|
|
18
24
|
transactionFinished: EventEmitter<TransactionInfo>;
|
|
19
25
|
showClass(): boolean;
|
|
20
26
|
get userIsApplicationUser(): boolean;
|
|
21
27
|
transaction: TransactionInfoResponse;
|
|
22
28
|
constructor(service: TransactionService, _dictionary: DictionaryService, _dialogService: DialogService);
|
|
23
29
|
handleRelationValidation(): Promise<void>;
|
|
24
|
-
handleDeliveryValidation(): void
|
|
30
|
+
handleDeliveryValidation(): Promise<void>;
|
|
31
|
+
handlePaymentValidation(): void;
|
|
32
|
+
handleOverviewValidation(): void;
|
|
33
|
+
handleFinishStep(): Promise<void>;
|
|
25
34
|
saveRelation(): Promise<boolean>;
|
|
26
35
|
handleSaveDelivery(): Promise<boolean>;
|
|
27
36
|
}
|
|
@@ -2,5 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
@include export-module('co-checkout-layout') {
|
|
4
4
|
.co-checkout {
|
|
5
|
+
.co-stepper-content-wrapper {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
flex-wrap: wrap;
|
|
9
|
+
column-gap: $tp-checkout-column-gap;
|
|
10
|
+
padding: $tp-checkout-padding;
|
|
11
|
+
}
|
|
12
|
+
.co-stepper-step {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-basis: 60%;
|
|
15
|
+
flex-grow: 1;
|
|
16
|
+
flex-shrink: 1;
|
|
17
|
+
}
|
|
18
|
+
.co-checkout-right-panel {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
row-gap: $tp-checkout-right-panel-row-gap;
|
|
22
|
+
flex-basis: $tp-checkout-right-panel-width;
|
|
23
|
+
flex-grow: 1;
|
|
24
|
+
flex-shrink: 1;
|
|
25
|
+
}
|
|
26
|
+
.co-checkout-right-panel-relation {
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: flex-end;
|
|
29
|
+
}
|
|
5
30
|
}
|
|
6
31
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { DeliveryType } from "../../model/delivery-type";
|
|
3
|
+
export declare class DeliveryTypeTileComponent {
|
|
4
|
+
type: DeliveryType;
|
|
5
|
+
selected: boolean;
|
|
6
|
+
selectedChange: EventEmitter<boolean>;
|
|
7
|
+
showClass(): boolean;
|
|
8
|
+
deliveryTypeIdx: number;
|
|
9
|
+
setIndexDeliveryType(index: number): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('co-delivery-type-tile-layout') {
|
|
4
|
+
.co-delivery-type-tile {
|
|
5
|
+
display: flex;
|
|
6
|
+
position: relative;
|
|
7
|
+
font-family: $tp-delivery-type-tile-font-family;
|
|
8
|
+
font-size: $tp-delivery-type-tile-font-size;
|
|
9
|
+
.delivery-type-content-wrapper {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
align-items: center;
|
|
13
|
+
height: 100%;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
.delivery-type-description {
|
|
17
|
+
font-family: $tp-delivery-type-tile-description-font-family;
|
|
18
|
+
font-size: $tp-delivery-type-tile-description-font-size;
|
|
19
|
+
font-weight: $tp-delivery-type-tile-description-font-weight;
|
|
20
|
+
}
|
|
21
|
+
.delivery-type-icon {
|
|
22
|
+
height: 65px;
|
|
23
|
+
width: 65px;
|
|
24
|
+
icon {
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.delivery-type-price {
|
|
30
|
+
font-family: $tp-delivery-type-tile-price-font-family;
|
|
31
|
+
font-size: $tp-delivery-type-tile-price-font-size;
|
|
32
|
+
font-weight: $tp-delivery-type-tile-price-font-weight;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
$tp-delivery-type-tile-font-family: $tp-font-family !default;
|
|
2
|
+
$tp-delivery-type-tile-font-size: $tp-font-size !default;
|
|
3
|
+
$tp-delivery-type-tile-border: 2px solid !default;
|
|
4
|
+
$tp-delivery-type-tile-border-radius: 5px !default;
|
|
5
|
+
$tp-delivery-type-tile-padding: 10px !default;
|
|
6
|
+
$tp-delivery-type-tile-background-color: white !default;
|
|
7
|
+
$tp-delivery-type-tile-border-color: $tp-color-border !default;
|
|
8
|
+
$tp-delivery-type-tile-selected-background-color: #f1fcff !default;
|
|
9
|
+
$tp-delivery-type-tile-selected-border-color: #0084de !default;
|
|
10
|
+
$tp-delivery-type-tile-icon-width: 20px !default;
|
|
11
|
+
$tp-delivery-type-tile-description-font-family: $tp-font-family !default;
|
|
12
|
+
$tp-delivery-type-tile-description-font-size: $tp-font-size !default;
|
|
13
|
+
$tp-delivery-type-tile-description-font-weight: bold !default;
|
|
14
|
+
$tp-delivery-type-tile-price-font-family: $tp-font-family !default;
|
|
15
|
+
$tp-delivery-type-tile-price-font-size: $tp-font-size-big !default;
|
|
16
|
+
$tp-delivery-type-tile-price-font-weight: bold !default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { Icon } from "../../enum/icon.enum";
|
|
3
|
+
import { TransactionService } from "../../service/transaction.service";
|
|
4
|
+
export declare class PaymentComponent implements OnInit {
|
|
5
|
+
private _transactionService;
|
|
6
|
+
readonly icons: typeof Icon;
|
|
7
|
+
amount: number;
|
|
8
|
+
showClass(): boolean;
|
|
9
|
+
paymentMethodIdx: number;
|
|
10
|
+
paymentMethods: {
|
|
11
|
+
icon: Icon;
|
|
12
|
+
description: string;
|
|
13
|
+
}[];
|
|
14
|
+
cashRegisters: any[];
|
|
15
|
+
constructor(_transactionService: TransactionService);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
private _getCashRegisters;
|
|
18
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('co-payment-layout') {
|
|
4
|
+
.co-payment {
|
|
5
|
+
font-family: $tp-payment-font-family;
|
|
6
|
+
font-size: $tp-payment-font-size;
|
|
7
|
+
.co-tile-wrapper {
|
|
8
|
+
min-width: $tp-payment-tile-width;
|
|
9
|
+
min-height: $tp-payment-tile-height;
|
|
10
|
+
width: $tp-payment-tile-width;
|
|
11
|
+
height: $tp-payment-tile-height;
|
|
12
|
+
}
|
|
13
|
+
.payment-wrapper {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
row-gap: $tp-payment-row-gap;
|
|
17
|
+
}
|
|
18
|
+
.payment-methods-header {
|
|
19
|
+
display: flex;
|
|
20
|
+
column-gap: 3px;
|
|
21
|
+
}
|
|
22
|
+
.payment-header-title {
|
|
23
|
+
font-family: $tp-payment-header-font-family;
|
|
24
|
+
font-size: $tp-payment-header-font-size;
|
|
25
|
+
font-weight: $tp-payment-header-font-weight;
|
|
26
|
+
&.extra {
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.payment-methods {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
column-gap: 5px;
|
|
34
|
+
flex-wrap: wrap;
|
|
35
|
+
}
|
|
36
|
+
.payment-to-pay {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
align-items: flex-start;
|
|
40
|
+
row-gap: $tp-payment-row-gap;
|
|
41
|
+
}
|
|
42
|
+
.payment-amount {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
border: $tp-payment-amount-border;
|
|
47
|
+
font-family: $tp-payment-amount-font-family;
|
|
48
|
+
font-size: $tp-payment-amount-font-size;
|
|
49
|
+
font-weight: $tp-payment-amount-font-weight;
|
|
50
|
+
padding: $tp-payment-amount-padding;
|
|
51
|
+
border-radius: 5px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
$tp-payment-font-family: $tp-font-family !default;
|
|
2
|
+
$tp-payment-font-size: $tp-font-size !default;
|
|
3
|
+
$tp-payment-tile-width: $tp-tile-min-width !default;
|
|
4
|
+
$tp-payment-tile-height: $tp-tile-min-height !default;
|
|
5
|
+
$tp-payment-header-font-family: $tp-font-family !default;
|
|
6
|
+
$tp-payment-header-font-size: $tp-font-size !default;
|
|
7
|
+
$tp-payment-header-font-weight: bold !default;
|
|
8
|
+
$tp-payment-header-extra-font-color: $tp-color-colijn-orange !default;
|
|
9
|
+
$tp-payment-row-gap: 20px !default;
|
|
10
|
+
$tp-payment-amount-font-family: $tp-font-family !default;
|
|
11
|
+
$tp-payment-amount-font-size: 32px !default;
|
|
12
|
+
$tp-payment-amount-font-weight: bold !default;
|
|
13
|
+
$tp-payment-amount-padding: 25px 90px !default;
|
|
14
|
+
$tp-payment-amount-color: rgba(0, 0, 0, 0.5) !default;
|
|
15
|
+
$tp-payment-amount-border: 1px solid !default;
|
|
16
|
+
$tp-payment-amount-border-color: $tp-color-border !default;
|
|
17
|
+
$tp-payment-amount-background-color: #dedede5c !default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('co-payment-theme') {
|
|
4
|
+
.co-payment {
|
|
5
|
+
.payment-header-title {
|
|
6
|
+
&.extra {
|
|
7
|
+
color: $tp-color-colijn-orange;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
.payment-amount {
|
|
11
|
+
color: $tp-payment-amount-color;
|
|
12
|
+
border-color: $tp-payment-amount-border-color;
|
|
13
|
+
background-color: $tp-payment-amount-background-color;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { Icon } from "../../enum/icon.enum";
|
|
3
|
+
export declare class PaymentTileComponent {
|
|
4
|
+
selected: boolean;
|
|
5
|
+
icon: Icon;
|
|
6
|
+
description: string;
|
|
7
|
+
selectedChange: EventEmitter<boolean>;
|
|
8
|
+
showClass(): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('co-payment-tile-layout') {
|
|
4
|
+
.co-payment-tile {
|
|
5
|
+
display: flex;
|
|
6
|
+
.payment-tile-wrapper {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
}
|
|
14
|
+
.payment-tile-description {
|
|
15
|
+
}
|
|
16
|
+
.payment-tile-icon {
|
|
17
|
+
display: block;
|
|
18
|
+
height: 80%;
|
|
19
|
+
width: 50%;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
File without changes
|