@colijnit/transaction 12.1.130 → 12.1.131
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 +1692 -448
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +378 -366
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +379 -367
- package/esm2015/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +2 -2
- package/esm2015/lib/component/core/base/transaction-base.component.js +2 -2
- package/esm2015/lib/component/deposit-payment/deposit-payment.component.js +17 -5
- package/esm2015/lib/component/discount/discount.component.js +110 -0
- package/esm2015/lib/component/discount/discount.module.js +29 -0
- package/esm2015/lib/component/payment/payment.component.js +57 -38
- package/esm2015/lib/component/payment/payment.module.js +4 -2
- package/esm2015/lib/component/payment-to-pay/payment-to-pay.component.js +26 -0
- package/esm2015/lib/component/payment-to-pay/payment-to-pay.module.js +21 -0
- package/esm2015/lib/component/transaction/transaction.module.js +4 -2
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/transaction-cash-register-dialog.component.js +177 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/transaction-cash-register-dialog.module.js +27 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/transaction-cash-register-order-receipt-dialog.component.js +83 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/transaction-cash-register-order-receipt-dialog.module.js +24 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-order.component.js +177 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-order.module.js +41 -0
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +11 -2
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.js +97 -4
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup.module.js +8 -3
- package/esm2015/lib/component/transaction-header-fields/transaction-header-amount-to-settle.component.js +55 -0
- package/esm2015/lib/component/transaction-header-fields/transaction-header-amount-to-settle.module.js +24 -0
- package/esm2015/lib/component/transaction-header-fields/transaction-header-deposit-amount.component.js +24 -3
- package/esm2015/lib/component/transaction-header-fields/transaction-header-divide-evenly.component.js +38 -0
- package/esm2015/lib/component/transaction-header-fields/transaction-header-divide-evenly.module.js +25 -0
- package/esm2015/lib/component/transaction-header-fields/transaction-header-payment-button/transaction-header-payment-button.component.js +14 -3
- package/esm2015/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.component.js +52 -0
- package/esm2015/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.module.js +36 -0
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/transaction-quick-access-order-delivery.component.js +13 -13
- package/esm2015/lib/enum/icon.enum.js +2 -1
- package/esm2015/lib/enum/order-discount-type.enum.js +7 -0
- package/esm2015/lib/enum/transaction-type-category.enum.js +2 -1
- package/esm2015/lib/model/icon-svg.js +2 -1
- package/esm2015/lib/model/payment-transaction-view-model.js +3 -0
- package/esm2015/lib/res/dictionary/dictionaries.js +3 -3
- package/esm2015/lib/service/payment.service.js +24 -5
- package/esm2015/lib/service/transaction-connector-adapter.service.js +155 -2
- package/esm2015/lib/service/transaction-connector.service.js +50 -2
- package/esm2015/lib/service/transaction-event.service.js +2 -1
- package/esm2015/lib/service/transaction-mapping.service.js +4 -2
- package/esm2015/lib/service/transaction.service.js +58 -5
- package/esm2015/lib/transaction-version.js +3 -3
- package/esm2015/public_api.js +3 -1
- package/fesm2015/colijnit-transaction.js +1228 -64
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/checkout/checkout-overview-relation-edit/style/_layout.scss +9 -0
- package/lib/component/checkout/checkout-overview-relation-edit/style/_material-definition.scss +4 -1
- package/lib/component/checkout/checkout-overview-relation-edit/style/_theme.scss +3 -0
- package/lib/component/checkout-simple/checkout-simple-overview-relation-edit/style/_layout.scss +9 -0
- package/lib/component/checkout-simple/checkout-simple-overview-relation-edit/style/_material-definition.scss +4 -1
- package/lib/component/checkout-simple/checkout-simple-overview-relation-edit/style/_theme.scss +3 -0
- package/lib/component/core/base/transaction-base.component.d.ts +1 -1
- package/lib/component/deposit-payment/deposit-payment.component.d.ts +9 -3
- package/lib/component/discount/discount.component.d.ts +19 -0
- package/lib/component/discount/discount.module.d.ts +2 -0
- package/lib/component/discount/style/_layout.scss +0 -0
- package/lib/component/discount/style/_material-definition.scss +0 -0
- package/lib/component/discount/style/_theme.scss +0 -0
- package/lib/component/discount/style/material.scss +0 -0
- package/lib/component/payment/payment.component.d.ts +14 -6
- package/lib/component/payment/style/_layout.scss +5 -0
- package/lib/component/payment/style/_material-definition.scss +3 -6
- package/lib/component/payment/style/_theme.scss +0 -24
- package/lib/component/payment/style/material.scss +1 -0
- package/lib/component/payment-to-pay/payment-to-pay.component.d.ts +4 -0
- package/lib/component/payment-to-pay/payment-to-pay.module.d.ts +2 -0
- package/lib/component/payment-to-pay/style/_layout.scss +26 -0
- package/lib/component/payment-to-pay/style/_material-definition.scss +6 -0
- package/lib/component/payment-to-pay/style/_theme.scss +9 -0
- package/lib/component/payment-to-pay/style/material.scss +4 -0
- package/lib/component/quick-send-button/style/_layout.scss +24 -0
- package/lib/component/quick-send-button/style/_material-definition.scss +2 -0
- package/lib/component/tile/style/_layout.scss +4 -0
- package/lib/component/transaction-cash-register-order/style/_layout.scss +129 -0
- package/lib/component/transaction-cash-register-order/style/_material-definition.scss +0 -0
- package/lib/component/transaction-cash-register-order/style/_theme.scss +4 -0
- package/lib/component/transaction-cash-register-order/style/material.scss +7 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/style/_layout.scss +28 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/style/_material-definition.scss +0 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/style/_theme.scss +4 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/style/material.scss +4 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/transaction-cash-register-dialog.component.d.ts +34 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/transaction-cash-register-dialog.module.d.ts +2 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/style/_layout.scss +37 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/style/_material-definition.scss +0 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/style/_theme.scss +4 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/style/material.scss +5 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/transaction-cash-register-order-receipt-dialog.component.d.ts +17 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/transaction-cash-register-order-receipt-dialog.module.d.ts +2 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-order.component.d.ts +41 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-order.module.d.ts +2 -0
- package/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.d.ts +5 -2
- package/lib/component/transaction-header/transaction-header-popup/style/_layout.scss +33 -0
- package/lib/component/transaction-header/transaction-header-popup/style/_material-definition.scss +5 -0
- package/lib/component/transaction-header/transaction-header-popup/style/_theme.scss +10 -0
- package/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.d.ts +32 -1
- package/lib/component/transaction-header-fields/transaction-header-amount-to-settle.component.d.ts +8 -0
- package/lib/component/transaction-header-fields/transaction-header-amount-to-settle.module.d.ts +2 -0
- package/lib/component/transaction-header-fields/transaction-header-deposit-amount.component.d.ts +6 -0
- package/lib/component/transaction-header-fields/transaction-header-divide-evenly.component.d.ts +5 -0
- package/lib/component/transaction-header-fields/transaction-header-divide-evenly.module.d.ts +2 -0
- package/lib/component/transaction-header-fields/transaction-header-payment-button/transaction-header-payment-button.component.d.ts +7 -3
- package/lib/component/transaction-line/transaction-cash-register-order-line/style/_layout.scss +21 -0
- package/lib/component/transaction-line/transaction-cash-register-order-line/style/_material-definition.scss +0 -0
- package/lib/component/transaction-line/transaction-cash-register-order-line/style/_theme.scss +4 -0
- package/lib/component/transaction-line/transaction-cash-register-order-line/style/material.scss +4 -0
- package/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.component.d.ts +4 -0
- package/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.module.d.ts +2 -0
- package/lib/component/transaction-lines/style/material.scss +1 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/transaction-quick-access-order-delivery.component.d.ts +13 -13
- package/lib/enum/icon.enum.d.ts +1 -0
- package/lib/enum/order-discount-type.enum.d.ts +5 -0
- package/lib/enum/transaction-type-category.enum.d.ts +2 -1
- package/lib/model/payment-transaction-view-model.d.ts +12 -0
- package/lib/res/dictionary/dictionaries.d.ts +11 -2
- package/lib/service/payment.service.d.ts +7 -2
- package/lib/service/transaction-connector-adapter.service.d.ts +22 -4
- package/lib/service/transaction-connector.service.d.ts +37 -22
- package/lib/service/transaction-event.service.d.ts +1 -0
- package/lib/service/transaction.service.d.ts +15 -0
- package/package.json +2 -2
- package/public_api.d.ts +2 -0
|
@@ -10,6 +10,15 @@
|
|
|
10
10
|
border-style: $tp-checkout-relation-empty-button-border-style;
|
|
11
11
|
border-width: $tp-checkout-relation-empty-button-border-width;
|
|
12
12
|
border-radius: $tp-checkout-relation-empty-button-border-radius;
|
|
13
|
+
span {
|
|
14
|
+
color: $tp-checkout-simple-relation-empty-text-color;
|
|
15
|
+
}
|
|
16
|
+
&:hover {
|
|
17
|
+
filter: none;
|
|
18
|
+
span {
|
|
19
|
+
color: $tp-checkout-simple-relation-empty-hover-text-color;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
13
22
|
}
|
|
14
23
|
}
|
|
15
24
|
}
|
package/lib/component/checkout/checkout-overview-relation-edit/style/_material-definition.scss
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
$tp-checkout-relation-font-family: $tp-font-family !default;
|
|
2
2
|
$tp-checkout-relation-font-size: $tp-font-size !default;
|
|
3
3
|
$tp-checkout-relation-empty-button-background-color: transparent !default;
|
|
4
|
+
$tp-checkout-relation-empty-button-hover-background-color: $tp-color-action !default;
|
|
4
5
|
$tp-checkout-relation-empty-button-border-style: solid !default;
|
|
5
6
|
$tp-checkout-relation-empty-button-border-width: 1px !default;
|
|
6
7
|
$tp-checkout-relation-empty-button-border-radius: $tp-default-border-radius !default;
|
|
7
|
-
$tp-checkout-relation-empty-button-border-color: $tp-color-
|
|
8
|
+
$tp-checkout-relation-empty-button-border-color: $tp-color-action !default;
|
|
9
|
+
$tp-checkout-simple-relation-empty-text-color: $tp-color-action !default;
|
|
10
|
+
$tp-checkout-simple-relation-empty-hover-text-color: #FFFFFF !default;
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
.empty-relation-button {
|
|
6
6
|
background-color: $tp-checkout-relation-empty-button-background-color;
|
|
7
7
|
border-color: $tp-checkout-relation-empty-button-border-color;
|
|
8
|
+
&:hover {
|
|
9
|
+
background-color: $tp-checkout-relation-empty-button-hover-background-color;
|
|
10
|
+
}
|
|
8
11
|
}
|
|
9
12
|
}
|
|
10
13
|
}
|
package/lib/component/checkout-simple/checkout-simple-overview-relation-edit/style/_layout.scss
CHANGED
|
@@ -10,6 +10,15 @@
|
|
|
10
10
|
border-style: $tp-checkout-simple-relation-empty-button-border-style;
|
|
11
11
|
border-width: $tp-checkout-simple-relation-empty-button-border-width;
|
|
12
12
|
border-radius: $tp-checkout-simple-relation-empty-button-border-radius;
|
|
13
|
+
span {
|
|
14
|
+
color: $tp-checkout-simple-relation-empty-text-color;
|
|
15
|
+
}
|
|
16
|
+
&:hover {
|
|
17
|
+
filter: none;
|
|
18
|
+
span {
|
|
19
|
+
color: $tp-checkout-simple-relation-empty-hover-text-color;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
13
22
|
}
|
|
14
23
|
}
|
|
15
24
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
$tp-checkout-simple-relation-font-family: $tp-font-family !default;
|
|
2
2
|
$tp-checkout-simple-relation-font-size: $tp-font-size !default;
|
|
3
3
|
$tp-checkout-simple-relation-empty-button-background-color: transparent !default;
|
|
4
|
+
$tp-checkout-relation-empty-button-hover-background-color: $tp-color-action !default;
|
|
4
5
|
$tp-checkout-simple-relation-empty-button-border-style: solid !default;
|
|
5
6
|
$tp-checkout-simple-relation-empty-button-border-width: 1px !default;
|
|
6
7
|
$tp-checkout-simple-relation-empty-button-border-radius: $tp-default-border-radius !default;
|
|
7
|
-
$tp-checkout-simple-relation-empty-button-border-color: $tp-color-
|
|
8
|
+
$tp-checkout-simple-relation-empty-button-border-color: $tp-color-action !default;
|
|
9
|
+
$tp-checkout-simple-relation-empty-text-color: $tp-color-action !default;
|
|
10
|
+
$tp-checkout-simple-relation-empty-hover-text-color: #FFFFFF !default;
|
package/lib/component/checkout-simple/checkout-simple-overview-relation-edit/style/_theme.scss
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
.empty-relation-button {
|
|
6
6
|
background-color: $tp-checkout-simple-relation-empty-button-background-color;
|
|
7
7
|
border-color: $tp-checkout-simple-relation-empty-button-border-color;
|
|
8
|
+
&:hover {
|
|
9
|
+
background-color: $tp-checkout-relation-empty-button-hover-background-color;
|
|
10
|
+
}
|
|
8
11
|
}
|
|
9
12
|
}
|
|
10
13
|
}
|
|
@@ -15,7 +15,7 @@ import { TransactionEventService } from '../../../service/transaction-event.serv
|
|
|
15
15
|
import { IconCacheService } from '../../../service/icon-cache.service';
|
|
16
16
|
import { TransactionImageService } from '../../../service/transaction-image.service';
|
|
17
17
|
import { RelationKind } from '@colijnit/relationapi/build/enum/relation-kind.enum';
|
|
18
|
-
import { TransactionScreenConfigurationService } from
|
|
18
|
+
import { TransactionScreenConfigurationService } from '../../../service/transaction-screen-configuration.service';
|
|
19
19
|
import { TransactionDeliveryCostLineInfo } from '@colijnit/transactionapi/build/model/transaction-delivery-cost-line-info.bo';
|
|
20
20
|
export declare abstract class TransactionBaseComponent implements OnInit, OnDestroy {
|
|
21
21
|
transactionEventService: TransactionEventService;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { DepositPaymentViewModel } from '../../model/deposit-payment-view-model';
|
|
3
3
|
import { PaymentViewmodel } from '../../model/payment.viewmodel';
|
|
4
4
|
import { PaymentService } from '../../service/payment.service';
|
|
5
|
-
|
|
5
|
+
import { TransactionKind } from "@colijnit/transactionapi/build/enum/transaction-kind.enum";
|
|
6
|
+
import { TransactionEventService } from '../../service/transaction-event.service';
|
|
7
|
+
export declare class DepositPaymentComponent implements OnInit, OnDestroy {
|
|
6
8
|
private _paymentService;
|
|
9
|
+
private _transactionEventService;
|
|
10
|
+
readonly transKind: typeof TransactionKind;
|
|
7
11
|
branch: string;
|
|
8
12
|
showTitle: boolean;
|
|
9
13
|
transactionUuid: string;
|
|
@@ -11,8 +15,10 @@ export declare class DepositPaymentComponent implements OnInit {
|
|
|
11
15
|
paymentMethods: PaymentViewmodel[];
|
|
12
16
|
depositPayments: DepositPaymentViewModel[];
|
|
13
17
|
showLoader: boolean;
|
|
14
|
-
|
|
18
|
+
private _subs;
|
|
19
|
+
constructor(_paymentService: PaymentService, _transactionEventService: TransactionEventService);
|
|
15
20
|
ngOnInit(): void;
|
|
21
|
+
ngOnDestroy(): void;
|
|
16
22
|
private _getDepositPaymentInfo;
|
|
17
23
|
private _prepareData;
|
|
18
24
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DictionaryService } from "../../service/dictionary.service";
|
|
2
|
+
import { OrderDiscountType } from "../../enum/order-discount-type.enum";
|
|
3
|
+
export declare class DiscountComponent {
|
|
4
|
+
private _dictionary;
|
|
5
|
+
readonly orderDiscountType: typeof OrderDiscountType;
|
|
6
|
+
showClass(): boolean;
|
|
7
|
+
discountHeader: string;
|
|
8
|
+
inputDiscounts: boolean;
|
|
9
|
+
transactionDiscountAmount: number;
|
|
10
|
+
transactionDiscountPercentage: number;
|
|
11
|
+
transactionTotal: number;
|
|
12
|
+
discountType: OrderDiscountType;
|
|
13
|
+
showDiscountsSidebar: boolean;
|
|
14
|
+
constructor(_dictionary: DictionaryService);
|
|
15
|
+
addDiscount(): void;
|
|
16
|
+
onStartDiscountInput(discountType: OrderDiscountType, header: string): void;
|
|
17
|
+
setDiscountHeader(discountType: OrderDiscountType): void;
|
|
18
|
+
onInputDiscountsOkClick(): void;
|
|
19
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -7,11 +7,16 @@ import { SharedService } from '../../service/shared.service';
|
|
|
7
7
|
import { PaymentMethod } from '@colijnit/transactionapi/build/model/payment-method.bo';
|
|
8
8
|
import { PaymentViewmodel } from '../../model/payment.viewmodel';
|
|
9
9
|
import { DepositPaymentViewModel } from '../../model/deposit-payment-view-model';
|
|
10
|
+
import { TransactionKind } from "@colijnit/transactionapi/build/enum/transaction-kind.enum";
|
|
11
|
+
import { PaymentTransactionViewModel } from "../../model/payment-transaction-view-model";
|
|
12
|
+
import { TransactionEventService } from '../../service/transaction-event.service';
|
|
10
13
|
export declare class PaymentComponent implements OnInit, OnDestroy {
|
|
11
14
|
private _transactionService;
|
|
12
15
|
private _sharedService;
|
|
13
16
|
private _paymentService;
|
|
17
|
+
private _transactionEventService;
|
|
14
18
|
readonly icons: typeof Icon;
|
|
19
|
+
readonly transKind: typeof TransactionKind;
|
|
15
20
|
transId: number;
|
|
16
21
|
transactionUuid: string;
|
|
17
22
|
branch: string;
|
|
@@ -19,17 +24,18 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
|
|
|
19
24
|
set amount(value: number);
|
|
20
25
|
get amount(): number;
|
|
21
26
|
currencyId: number;
|
|
27
|
+
transactionKind: TransactionKind;
|
|
28
|
+
paymentDetails: PaymentTransactionViewModel;
|
|
22
29
|
payed: EventEmitter<void>;
|
|
23
30
|
showClass(): boolean;
|
|
24
|
-
|
|
25
|
-
|
|
31
|
+
selectedPaymentMethod: PaymentMethod;
|
|
32
|
+
selectedCashRegister: CashRegister;
|
|
26
33
|
paymentMethods: PaymentViewmodel[];
|
|
27
34
|
depositPayments: DepositPaymentViewModel[];
|
|
28
35
|
cashRegisters: any[];
|
|
29
36
|
showCashRegisters: boolean;
|
|
30
37
|
showKeyPad: boolean;
|
|
31
38
|
showPspQrCode: boolean;
|
|
32
|
-
currentPaymentMethod: PaymentMethod;
|
|
33
39
|
qrCodeImage: string;
|
|
34
40
|
showLoader: boolean;
|
|
35
41
|
amountToPay: number;
|
|
@@ -40,11 +46,12 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
|
|
|
40
46
|
private _paymentStatusMaxPollInterval;
|
|
41
47
|
private _paymentStatusPollIntervalCount;
|
|
42
48
|
private _paymentResult;
|
|
43
|
-
|
|
49
|
+
private _subs;
|
|
50
|
+
constructor(_transactionService: TransactionService, _sharedService: SharedService, _paymentService: PaymentService, _transactionEventService: TransactionEventService);
|
|
44
51
|
ngOnInit(): Promise<void>;
|
|
45
52
|
ngOnDestroy(): void;
|
|
46
|
-
paymentMethodSelected(method: PaymentMethod
|
|
47
|
-
cashRegisterSelected(cashRegister: CashRegister
|
|
53
|
+
paymentMethodSelected(method: PaymentMethod): void;
|
|
54
|
+
cashRegisterSelected(cashRegister: CashRegister): void;
|
|
48
55
|
handlePayment(): void;
|
|
49
56
|
handleKeyPadModelChange(model: number): void;
|
|
50
57
|
private _getDepositPaymentInfo;
|
|
@@ -59,4 +66,5 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
|
|
|
59
66
|
private _prepareCashRegisters;
|
|
60
67
|
private _getCashRegisters;
|
|
61
68
|
private _getPaymentMethods;
|
|
69
|
+
private _handlePayment;
|
|
62
70
|
}
|
|
@@ -10,14 +10,11 @@ $tp-payment-header-extra-font-color: $tp-color-colijn-orange !default;
|
|
|
10
10
|
$tp-payment-row-gap: 20px !default;
|
|
11
11
|
$tp-payment-methods-column-gap: 5px !default;
|
|
12
12
|
$tp-payment-methods-row-gap: 5px !default;
|
|
13
|
+
$tp-payment-amount-border: 1px solid !default;
|
|
13
14
|
$tp-payment-amount-height: 60px !default;
|
|
14
15
|
$tp-payment-amount-font-family: $tp-font-family !default;
|
|
15
|
-
$tp-payment-amount-font-size:
|
|
16
|
-
$tp-payment-amount-font-weight:
|
|
17
|
-
$tp-payment-amount-color: rgba(0, 0, 0, 0.5) !default;
|
|
18
|
-
$tp-payment-amount-border: 1px solid !default;
|
|
19
|
-
$tp-payment-amount-border-color: $tp-color-border !default;
|
|
20
|
-
$tp-payment-amount-background-color: #dedede5c !default;
|
|
16
|
+
$tp-payment-amount-font-size: $tp-font-size !default;
|
|
17
|
+
$tp-payment-amount-font-weight: normal !default;
|
|
21
18
|
$tp-payment-error-margin: 5px 0 !default;
|
|
22
19
|
$tp-payment-error-font-family: $tp-font-family !default;
|
|
23
20
|
$tp-payment-error-font-size: $tp-font-size !default;
|
|
@@ -7,11 +7,6 @@
|
|
|
7
7
|
color: $tp-color-colijn-orange;
|
|
8
8
|
}
|
|
9
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
10
|
.payment-to-pay-button {
|
|
16
11
|
.payment-error-message {
|
|
17
12
|
color: $tp-payment-error-font-color;
|
|
@@ -20,24 +15,5 @@
|
|
|
20
15
|
background-color: $tp-color-colijn-orange;
|
|
21
16
|
}
|
|
22
17
|
}
|
|
23
|
-
.payment-to-pay-keypad {
|
|
24
|
-
.key-pad-wrapper {
|
|
25
|
-
background: transparent;
|
|
26
|
-
border-color: $tp-payment-amount-border-color;
|
|
27
|
-
}
|
|
28
|
-
.key-pad-button {
|
|
29
|
-
background-color: $tp-payment-amount-background-color;
|
|
30
|
-
color: $tp-payment-amount-color;
|
|
31
|
-
font-weight: bold;
|
|
32
|
-
.co-icon {
|
|
33
|
-
svg { // for fontawesome icons
|
|
34
|
-
fill: $tp-payment-amount-color;
|
|
35
|
-
}
|
|
36
|
-
& [fill] { // for own icons
|
|
37
|
-
fill: $tp-payment-amount-color;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
18
|
}
|
|
43
19
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@include export-module('cc-payment-to-pay-layout') {
|
|
2
|
+
.co-payment-to-pay {
|
|
3
|
+
|
|
4
|
+
.payment-to-pay {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: flex-start;
|
|
8
|
+
row-gap: $tp-payment-to-pay-row-gap;
|
|
9
|
+
grid-column: 1 / 1;
|
|
10
|
+
grid-row: 1 / 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.payment-amount {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
height: $tp-payment-to-pay-amount-height;
|
|
18
|
+
border: $tp-payment-to-pay-amount-border;
|
|
19
|
+
font-family: $tp-payment-to-pay-amount-font-family;
|
|
20
|
+
font-size: $tp-payment-to-pay-amount-font-size;
|
|
21
|
+
font-weight: $tp-payment-to-pay-amount-font-weight;
|
|
22
|
+
border-radius: 5px;
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
$tp-payment-to-pay-row-gap: 20px !default;
|
|
2
|
+
$tp-payment-to-pay-amount-height: 60px !default;
|
|
3
|
+
$tp-payment-to-pay-amount-border: 1px solid !default;
|
|
4
|
+
$tp-payment-to-pay-amount-font-family: $tp-font-family !default;
|
|
5
|
+
$tp-payment-to-pay-amount-font-size: 32px !default;
|
|
6
|
+
$tp-payment-to-pay-amount-font-weight: bold !default;
|
|
@@ -16,6 +16,30 @@
|
|
|
16
16
|
border-bottom-right-radius: $tp-co-quick-send-button-border-radius;
|
|
17
17
|
border-top-right-radius: $tp-co-quick-send-button-border-radius;
|
|
18
18
|
}
|
|
19
|
+
&:hover {
|
|
20
|
+
.icon-wrapper-flat-right {
|
|
21
|
+
background: $tp-co-quick-send-hover-button-icon-send-color;
|
|
22
|
+
co-icon {
|
|
23
|
+
svg {
|
|
24
|
+
fill: $tp-co-quick-send-hover-button-svg-text-color;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
.icon-wrapper-flat-left {
|
|
29
|
+
background: $tp-co-quick-send-hover-button-icon-send-color;
|
|
30
|
+
|
|
31
|
+
.icons-wrapper {
|
|
32
|
+
.icon-send, .icon-method {
|
|
33
|
+
svg {
|
|
34
|
+
fill: $tp-co-quick-send-hover-button-svg-text-color;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.send-button-title {
|
|
39
|
+
color: $tp-co-quick-send-hover-button-svg-text-color;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
19
43
|
}
|
|
20
44
|
.icons-spacer {
|
|
21
45
|
width: 5px;
|
|
@@ -11,6 +11,8 @@ $tp-co-quick-send-button-send-method-dialog-icon-size: 20px !default;
|
|
|
11
11
|
$tp-co-quick-send-button-icon-send-width: 16px !default;
|
|
12
12
|
$tp-co-quick-send-button-icon-send-height: 22px !default;
|
|
13
13
|
$tp-co-quick-send-button-icon-send-color: $tp-color-action !default;
|
|
14
|
+
$tp-co-quick-send-hover-button-icon-send-color: $tp-color-action !default;
|
|
15
|
+
$tp-co-quick-send-hover-button-svg-text-color: #fff !default;
|
|
14
16
|
$tp-co-quick-send-button-icon-send-method-width: 11px !default;
|
|
15
17
|
$tp-co-quick-send-button-icon-send-method-height: 11px !default;
|
|
16
18
|
$tp-co-quick-send-button-title-font-size: $tp-font-size-small !default;
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
.co-tile {
|
|
5
5
|
display: flex;
|
|
6
6
|
position: relative;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
7
9
|
&.selected {
|
|
8
10
|
transform: scale($tp-tile-selected-zoom);
|
|
9
11
|
}
|
|
@@ -17,6 +19,8 @@
|
|
|
17
19
|
padding: $tp-tile-padding;
|
|
18
20
|
width: $tp-tile-min-width;
|
|
19
21
|
height: $tp-tile-min-height;
|
|
22
|
+
min-height: $tp-tile-min-height;
|
|
23
|
+
width: 100%;
|
|
20
24
|
}
|
|
21
25
|
.co-tile-select-wrapper {
|
|
22
26
|
//position: absolute;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
@include export-module('cc-transaction-cash-register-order-layout') {
|
|
2
|
+
.co-transaction-cash-register-order {
|
|
3
|
+
font-family: "Public sans";
|
|
4
|
+
font-size: 12px;
|
|
5
|
+
display: block;
|
|
6
|
+
padding: 25px;
|
|
7
|
+
|
|
8
|
+
.cash-register-wrapper {
|
|
9
|
+
display: flex;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
column-gap: 40px;
|
|
13
|
+
|
|
14
|
+
.cash-register-main-content {
|
|
15
|
+
display: flex;
|
|
16
|
+
width: 75%;
|
|
17
|
+
row-gap: 30px;
|
|
18
|
+
height: inherit;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
|
|
21
|
+
.cash-register-header-wrapper {
|
|
22
|
+
display: flex;
|
|
23
|
+
margin-left: 20px;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
align-items: center;
|
|
26
|
+
|
|
27
|
+
.cash-register-header-buttons-wrapper {
|
|
28
|
+
display: flex;
|
|
29
|
+
column-gap: 10px;
|
|
30
|
+
|
|
31
|
+
.cash-register-header-button {
|
|
32
|
+
width: 136px;
|
|
33
|
+
height: 30px;
|
|
34
|
+
background-color: #f5f5fc;
|
|
35
|
+
padding: 5px;
|
|
36
|
+
font-size: 11px;
|
|
37
|
+
border-radius: 8px;
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
text-align: center;
|
|
41
|
+
font-weight: bold;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.cash-register-avatar-wrapper {
|
|
47
|
+
display: flex;
|
|
48
|
+
|
|
49
|
+
.transaction-sales-avatar {
|
|
50
|
+
height: 30px;
|
|
51
|
+
width: 30px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.cash-register-lines-wrapper {
|
|
57
|
+
display: flex;
|
|
58
|
+
width: 100%;
|
|
59
|
+
|
|
60
|
+
.co-transaction-lines {
|
|
61
|
+
width: inherit;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.cash-register-side-content {
|
|
67
|
+
display: flex;
|
|
68
|
+
width: 25%;
|
|
69
|
+
height: inherit;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
row-gap: 50px;
|
|
72
|
+
|
|
73
|
+
.cash-register-totals-wrapper {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
font-size: 11px;
|
|
77
|
+
padding: 8px;
|
|
78
|
+
width: 100%;
|
|
79
|
+
background-color: white;
|
|
80
|
+
border: 1px solid #f3f3f6;
|
|
81
|
+
border-radius: 8px;
|
|
82
|
+
row-gap: 5px;
|
|
83
|
+
|
|
84
|
+
.cash-register-totals-row {
|
|
85
|
+
display: flex;
|
|
86
|
+
font-weight: bold;
|
|
87
|
+
justify-content: space-between;
|
|
88
|
+
padding: 5px;
|
|
89
|
+
&.total {
|
|
90
|
+
font-size: 12px;
|
|
91
|
+
}
|
|
92
|
+
&.discount {
|
|
93
|
+
background: #5fdcb3;
|
|
94
|
+
border-radius: 8px;
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
color: white;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.cash-register-payment-wrapper {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
row-gap: 10px;
|
|
106
|
+
|
|
107
|
+
.cash-register-payment-methods-wrapper {
|
|
108
|
+
display: grid;
|
|
109
|
+
grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
|
|
110
|
+
grid-gap: 5px;
|
|
111
|
+
padding: 8px;
|
|
112
|
+
border-radius: 8px;
|
|
113
|
+
background: $tp-payment-amount-background-color;
|
|
114
|
+
|
|
115
|
+
.co-tile-wrapper {
|
|
116
|
+
min-height: 70px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.cash-register-num-pad-wrapper {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
row-gap: 10px;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
@import "./_material-definition";
|
|
3
|
+
@import "./_layout";
|
|
4
|
+
@import "./_theme";
|
|
5
|
+
@import "../../payment-to-pay/style/material";
|
|
6
|
+
@import "../transaction-cash-register-dialog/style/material";
|
|
7
|
+
@import "../transaction-cash-register-order-receipt-dialog/style/material";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@include export-module('cc-transaction-cash-register-dialog-layout') {
|
|
2
|
+
.co-transaction-cash-register-dialog {
|
|
3
|
+
|
|
4
|
+
.dialog-content-wrapper {
|
|
5
|
+
padding: 20px;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
row-gap: 20px;
|
|
9
|
+
min-width: 400px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.cash-registers {
|
|
13
|
+
position: relative;
|
|
14
|
+
min-height: 50px;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
column-gap: 5px;
|
|
18
|
+
row-gap: 5px;
|
|
19
|
+
flex-wrap: wrap;
|
|
20
|
+
.loader {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 50%;
|
|
23
|
+
left: 50%;
|
|
24
|
+
transform: translate(-50%, -50%);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
3
|
+
import { CashRegister } from "@colijnit/transactionapi/build/model/cash-register";
|
|
4
|
+
import { CashDrawer } from "@colijnit/transactionapi/build/model/cash-drawer.bo";
|
|
5
|
+
import { Printer } from "@colijnit/mainapi/build/model/printer.bo";
|
|
6
|
+
import { PaymentTransactionViewModel } from "../../../model/payment-transaction-view-model";
|
|
7
|
+
import { ReportLayoutSelectionPrint } from "@colijnit/mainapi/build/model/report-layout-selection-print.bo";
|
|
8
|
+
import { ReportLayoutSelectionEmail } from "@colijnit/mainapi/build/model/report-layout-selection-email.bo";
|
|
9
|
+
export declare class TransactionCashRegisterDialogComponent extends TransactionBaseComponent implements OnInit {
|
|
10
|
+
paymentDetailsSelected: EventEmitter<PaymentTransactionViewModel>;
|
|
11
|
+
cashRegisters: any[];
|
|
12
|
+
activeCashRegister: CashRegister;
|
|
13
|
+
cashDrawers: CashDrawer[];
|
|
14
|
+
activeCashDrawer: CashDrawer;
|
|
15
|
+
printerList: Printer[];
|
|
16
|
+
activePrinter: Printer;
|
|
17
|
+
printerLayouts: ReportLayoutSelectionPrint[];
|
|
18
|
+
emailLayouts: ReportLayoutSelectionEmail[];
|
|
19
|
+
selectedPrinterLayout: ReportLayoutSelectionPrint;
|
|
20
|
+
selectedEmailLayout: ReportLayoutSelectionEmail;
|
|
21
|
+
showClass(): boolean;
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
cashRegisterSelected(cashRegister: CashRegister): void;
|
|
24
|
+
cashDrawerSelected(): void;
|
|
25
|
+
private _createCashRegisterOrder;
|
|
26
|
+
private _getCashRegisters;
|
|
27
|
+
private _getCashDrawers;
|
|
28
|
+
private _getPrinters;
|
|
29
|
+
private _prepareCashRegister;
|
|
30
|
+
handleDrawerChanged(cashDrawer: CashDrawer): void;
|
|
31
|
+
handlePrinterChanged(printer: Printer): void;
|
|
32
|
+
private _getPrinterLayouts;
|
|
33
|
+
private _getEmailLayouts;
|
|
34
|
+
}
|