@colijnit/transaction 12.1.130 → 12.1.132

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.
Files changed (133) hide show
  1. package/bundles/colijnit-transaction.umd.js +1794 -469
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.d.ts +378 -366
  4. package/colijnit-transaction.metadata.json +1 -1
  5. package/esm2015/colijnit-transaction.js +379 -367
  6. package/esm2015/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +2 -2
  7. package/esm2015/lib/component/core/base/transaction-base.component.js +2 -2
  8. package/esm2015/lib/component/deposit-payment/deposit-payment.component.js +17 -5
  9. package/esm2015/lib/component/discount/discount.component.js +110 -0
  10. package/esm2015/lib/component/discount/discount.module.js +29 -0
  11. package/esm2015/lib/component/payment/payment.component.js +86 -44
  12. package/esm2015/lib/component/payment/payment.module.js +4 -2
  13. package/esm2015/lib/component/payment-to-pay/payment-to-pay.component.js +26 -0
  14. package/esm2015/lib/component/payment-to-pay/payment-to-pay.module.js +21 -0
  15. package/esm2015/lib/component/transaction/transaction.module.js +4 -2
  16. package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/transaction-cash-register-dialog.component.js +178 -0
  17. package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/transaction-cash-register-dialog.module.js +28 -0
  18. package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/transaction-cash-register-order-receipt-dialog.component.js +97 -0
  19. package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/transaction-cash-register-order-receipt-dialog.module.js +24 -0
  20. package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-order.component.js +189 -0
  21. package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-order.module.js +41 -0
  22. package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +11 -2
  23. package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.js +97 -4
  24. package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup.module.js +8 -3
  25. package/esm2015/lib/component/transaction-header-fields/transaction-header-amount-to-settle.component.js +55 -0
  26. package/esm2015/lib/component/transaction-header-fields/transaction-header-amount-to-settle.module.js +24 -0
  27. package/esm2015/lib/component/transaction-header-fields/transaction-header-deposit-amount.component.js +24 -3
  28. package/esm2015/lib/component/transaction-header-fields/transaction-header-divide-evenly.component.js +38 -0
  29. package/esm2015/lib/component/transaction-header-fields/transaction-header-divide-evenly.module.js +25 -0
  30. package/esm2015/lib/component/transaction-header-fields/transaction-header-payment-button/transaction-header-payment-button.component.js +14 -3
  31. package/esm2015/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.component.js +52 -0
  32. package/esm2015/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.module.js +36 -0
  33. package/esm2015/lib/component/transaction-line/transaction-to-be-picked-line/transaction-to-be-picked-line.component.js +4 -6
  34. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/transaction-quick-access-order-delivery.component.js +13 -13
  35. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-to-be-picked/transaction-quick-access-to-be-picked.component.js +2 -2
  36. package/esm2015/lib/enum/icon.enum.js +3 -1
  37. package/esm2015/lib/enum/order-discount-type.enum.js +7 -0
  38. package/esm2015/lib/enum/transaction-type-category.enum.js +2 -1
  39. package/esm2015/lib/model/icon-svg.js +3 -1
  40. package/esm2015/lib/model/payment-transaction-view-model.js +3 -0
  41. package/esm2015/lib/res/dictionary/dictionaries.js +3 -3
  42. package/esm2015/lib/service/payment.service.js +29 -5
  43. package/esm2015/lib/service/transaction-connector-adapter.service.js +168 -2
  44. package/esm2015/lib/service/transaction-connector.service.js +50 -2
  45. package/esm2015/lib/service/transaction-event.service.js +2 -1
  46. package/esm2015/lib/service/transaction-mapping.service.js +4 -2
  47. package/esm2015/lib/service/transaction.service.js +58 -5
  48. package/esm2015/lib/transaction-version.js +3 -3
  49. package/esm2015/public_api.js +3 -1
  50. package/fesm2015/colijnit-transaction.js +1315 -82
  51. package/fesm2015/colijnit-transaction.js.map +1 -1
  52. package/lib/component/cash-register-order-wrapper.ts/style/_layout.scss +4 -0
  53. package/lib/component/cash-register-order-wrapper.ts/style/_material-definition.scss +0 -0
  54. package/lib/component/cash-register-order-wrapper.ts/style/_theme.scss +4 -0
  55. package/lib/component/cash-register-order-wrapper.ts/style/material.scss +4 -0
  56. package/lib/component/checkout/checkout-overview-relation-edit/style/_layout.scss +9 -0
  57. package/lib/component/checkout/checkout-overview-relation-edit/style/_material-definition.scss +4 -1
  58. package/lib/component/checkout/checkout-overview-relation-edit/style/_theme.scss +3 -0
  59. package/lib/component/checkout-simple/checkout-simple-overview-relation-edit/style/_layout.scss +9 -0
  60. package/lib/component/checkout-simple/checkout-simple-overview-relation-edit/style/_material-definition.scss +4 -1
  61. package/lib/component/checkout-simple/checkout-simple-overview-relation-edit/style/_theme.scss +3 -0
  62. package/lib/component/core/base/transaction-base.component.d.ts +1 -1
  63. package/lib/component/deposit-payment/deposit-payment.component.d.ts +9 -3
  64. package/lib/component/discount/discount.component.d.ts +19 -0
  65. package/lib/component/discount/discount.module.d.ts +2 -0
  66. package/lib/component/discount/style/_layout.scss +0 -0
  67. package/lib/component/discount/style/_material-definition.scss +0 -0
  68. package/lib/component/discount/style/_theme.scss +0 -0
  69. package/lib/component/discount/style/material.scss +0 -0
  70. package/lib/component/payment/payment.component.d.ts +16 -6
  71. package/lib/component/payment/style/_layout.scss +5 -0
  72. package/lib/component/payment/style/_material-definition.scss +3 -6
  73. package/lib/component/payment/style/_theme.scss +0 -24
  74. package/lib/component/payment/style/material.scss +1 -0
  75. package/lib/component/payment-to-pay/payment-to-pay.component.d.ts +4 -0
  76. package/lib/component/payment-to-pay/payment-to-pay.module.d.ts +2 -0
  77. package/lib/component/payment-to-pay/style/_layout.scss +26 -0
  78. package/lib/component/payment-to-pay/style/_material-definition.scss +6 -0
  79. package/lib/component/payment-to-pay/style/_theme.scss +9 -0
  80. package/lib/component/payment-to-pay/style/material.scss +4 -0
  81. package/lib/component/quick-send-button/style/_layout.scss +24 -0
  82. package/lib/component/quick-send-button/style/_material-definition.scss +2 -0
  83. package/lib/component/tile/style/_layout.scss +4 -0
  84. package/lib/component/transaction-cash-register-order/style/_layout.scss +134 -0
  85. package/lib/component/transaction-cash-register-order/style/_material-definition.scss +0 -0
  86. package/lib/component/transaction-cash-register-order/style/_theme.scss +4 -0
  87. package/lib/component/transaction-cash-register-order/style/material.scss +7 -0
  88. package/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/style/_layout.scss +37 -0
  89. package/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/style/_material-definition.scss +0 -0
  90. package/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/style/_theme.scss +4 -0
  91. package/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/style/material.scss +4 -0
  92. package/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/transaction-cash-register-dialog.component.d.ts +36 -0
  93. package/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/transaction-cash-register-dialog.module.d.ts +2 -0
  94. package/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/style/_layout.scss +53 -0
  95. package/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/style/_material-definition.scss +0 -0
  96. package/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/style/_theme.scss +4 -0
  97. package/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/style/material.scss +5 -0
  98. package/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/transaction-cash-register-order-receipt-dialog.component.d.ts +18 -0
  99. package/lib/component/transaction-cash-register-order/transaction-cash-register-order-receipt-dialog/transaction-cash-register-order-receipt-dialog.module.d.ts +2 -0
  100. package/lib/component/transaction-cash-register-order/transaction-cash-register-order.component.d.ts +46 -0
  101. package/lib/component/transaction-cash-register-order/transaction-cash-register-order.module.d.ts +2 -0
  102. package/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.d.ts +5 -2
  103. package/lib/component/transaction-header/transaction-header-popup/style/_layout.scss +33 -0
  104. package/lib/component/transaction-header/transaction-header-popup/style/_material-definition.scss +5 -0
  105. package/lib/component/transaction-header/transaction-header-popup/style/_theme.scss +10 -0
  106. package/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.d.ts +32 -1
  107. package/lib/component/transaction-header-fields/transaction-header-amount-to-settle.component.d.ts +8 -0
  108. package/lib/component/transaction-header-fields/transaction-header-amount-to-settle.module.d.ts +2 -0
  109. package/lib/component/transaction-header-fields/transaction-header-deposit-amount.component.d.ts +6 -0
  110. package/lib/component/transaction-header-fields/transaction-header-divide-evenly.component.d.ts +5 -0
  111. package/lib/component/transaction-header-fields/transaction-header-divide-evenly.module.d.ts +2 -0
  112. package/lib/component/transaction-header-fields/transaction-header-payment-button/transaction-header-payment-button.component.d.ts +7 -3
  113. package/lib/component/transaction-line/transaction-cash-register-order-line/style/_layout.scss +21 -0
  114. package/lib/component/transaction-line/transaction-cash-register-order-line/style/_material-definition.scss +0 -0
  115. package/lib/component/transaction-line/transaction-cash-register-order-line/style/_theme.scss +4 -0
  116. package/lib/component/transaction-line/transaction-cash-register-order-line/style/material.scss +4 -0
  117. package/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.component.d.ts +4 -0
  118. package/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.module.d.ts +2 -0
  119. package/lib/component/transaction-line/transaction-to-be-picked-line/transaction-to-be-picked-line.component.d.ts +0 -1
  120. package/lib/component/transaction-lines/style/material.scss +1 -0
  121. package/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/transaction-quick-access-order-delivery.component.d.ts +13 -13
  122. package/lib/enum/icon.enum.d.ts +2 -0
  123. package/lib/enum/order-discount-type.enum.d.ts +5 -0
  124. package/lib/enum/transaction-type-category.enum.d.ts +2 -1
  125. package/lib/model/payment-transaction-view-model.d.ts +12 -0
  126. package/lib/res/dictionary/dictionaries.d.ts +15 -2
  127. package/lib/service/payment.service.d.ts +13 -2
  128. package/lib/service/transaction-connector-adapter.service.d.ts +26 -4
  129. package/lib/service/transaction-connector.service.d.ts +37 -22
  130. package/lib/service/transaction-event.service.d.ts +1 -0
  131. package/lib/service/transaction.service.d.ts +15 -0
  132. package/package.json +2 -2
  133. package/public_api.d.ts +2 -0
@@ -0,0 +1,4 @@
1
+ @include export-module('cc-cash-register-order-wrapper-layout') {
2
+ .co-cash-register-order-wrapper {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @include export-module('cc-cash-register-order-wrapper-theme') {
2
+ .co-cash-register-order-wrapper {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
@@ -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
  }
@@ -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-font !default;
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
  }
@@ -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-font !default;
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;
@@ -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 "../../../service/transaction-screen-configuration.service";
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
- export declare class DepositPaymentComponent implements OnInit {
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
- constructor(_paymentService: PaymentService);
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
+ }
@@ -0,0 +1,2 @@
1
+ export declare class DiscountModule {
2
+ }
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
- paymentMethodIdx: number;
25
- cashRegisterIdx: number;
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,14 +46,16 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
40
46
  private _paymentStatusMaxPollInterval;
41
47
  private _paymentStatusPollIntervalCount;
42
48
  private _paymentResult;
43
- constructor(_transactionService: TransactionService, _sharedService: SharedService, _paymentService: PaymentService);
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, index: number): void;
47
- cashRegisterSelected(cashRegister: CashRegister, index: number): void;
53
+ paymentMethodSelected(method: PaymentMethod): void;
54
+ cashRegisterSelected(cashRegister: CashRegister): void;
48
55
  handlePayment(): void;
49
56
  handleKeyPadModelChange(model: number): void;
50
57
  private _getDepositPaymentInfo;
58
+ private _calculateAmountToPay;
51
59
  private _dataUriToBase64;
52
60
  private _waitForPaymentStatus;
53
61
  private _waitForPinPaymentStatus;
@@ -59,4 +67,6 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
59
67
  private _prepareCashRegisters;
60
68
  private _getCashRegisters;
61
69
  private _getPaymentMethods;
70
+ private _handlePayment;
71
+ private _doPayment;
62
72
  }
@@ -51,6 +51,11 @@
51
51
  grid-template-rows: auto auto auto;
52
52
  row-gap: 10px;
53
53
  column-gap: 10px;
54
+
55
+ &.cash-register-order {
56
+ display: flex;
57
+ flex-direction: column;
58
+ }
54
59
  }
55
60
  .payment-to-pay {
56
61
  display: flex;
@@ -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: 32px !default;
16
- $tp-payment-amount-font-weight: bold !default;
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
  }
@@ -4,3 +4,4 @@
4
4
  @import "../../payment-tile/style/material";
5
5
  @import "../../payment-qr-code/style/material";
6
6
  @import "../../deposit-payment/style/material";
7
+ @import "../../payment-to-pay/style/material";
@@ -0,0 +1,4 @@
1
+ export declare class PaymentToPayComponent {
2
+ amountToPay: number;
3
+ showClass(): boolean;
4
+ }
@@ -0,0 +1,2 @@
1
+ export declare class PaymentToPayModule {
2
+ }
@@ -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;
@@ -0,0 +1,9 @@
1
+ @include export-module('cc-payment-to-pay-theme') {
2
+ .co-payment-to-pay {
3
+ .payment-amount {
4
+ color: $tp-payment-amount-color;
5
+ border-color: $tp-payment-amount-border-color;
6
+ background-color: $tp-payment-amount-background-color;
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
@@ -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,134 @@
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: 7px;
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
+ .co-icon {
45
+ width: 20px;
46
+ height: 20px;
47
+ }
48
+ }
49
+ }
50
+
51
+ .cash-register-avatar-wrapper {
52
+ display: flex;
53
+
54
+ .transaction-sales-avatar {
55
+ height: 30px;
56
+ width: 30px;
57
+ }
58
+ }
59
+ }
60
+
61
+ .cash-register-lines-wrapper {
62
+ display: flex;
63
+ width: 100%;
64
+
65
+ .co-transaction-lines {
66
+ width: inherit;
67
+ }
68
+ }
69
+ }
70
+
71
+ .cash-register-side-content {
72
+ display: flex;
73
+ width: 25%;
74
+ height: inherit;
75
+ flex-direction: column;
76
+ row-gap: 50px;
77
+
78
+ .cash-register-totals-wrapper {
79
+ display: flex;
80
+ flex-direction: column;
81
+ font-size: 11px;
82
+ padding: 8px;
83
+ width: 100%;
84
+ background-color: white;
85
+ border: 1px solid #f3f3f6;
86
+ border-radius: 8px;
87
+ row-gap: 5px;
88
+
89
+ .cash-register-totals-row {
90
+ display: flex;
91
+ font-weight: bold;
92
+ justify-content: space-between;
93
+ padding: 5px;
94
+ &.total {
95
+ font-size: 12px;
96
+ }
97
+ &.discount {
98
+ background: #5fdcb3;
99
+ border-radius: 8px;
100
+ cursor: pointer;
101
+ color: white;
102
+ }
103
+ }
104
+
105
+ }
106
+
107
+ .cash-register-payment-wrapper {
108
+ display: flex;
109
+ flex-direction: column;
110
+ row-gap: 10px;
111
+
112
+ .cash-register-payment-methods-wrapper {
113
+ display: grid;
114
+ grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
115
+ grid-gap: 5px;
116
+ padding: 8px;
117
+ border-radius: 8px;
118
+ background: $tp-payment-amount-background-color;
119
+
120
+ .co-tile-wrapper {
121
+ min-height: 70px;
122
+ }
123
+ }
124
+
125
+ .cash-register-num-pad-wrapper {
126
+ display: flex;
127
+ flex-direction: column;
128
+ row-gap: 10px;
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
134
+ }
@@ -0,0 +1,4 @@
1
+ @include export-module('cc-transaction-cash-register-order-theme') {
2
+ .co-transaction-cash-register-order {
3
+ }
4
+ }
@@ -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,37 @@
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
+ .title-wrapper {
13
+ display: flex;
14
+ column-gap: 10px;
15
+ align-items: center;
16
+ span {
17
+ margin: 0;
18
+ }
19
+ }
20
+
21
+ .cash-registers {
22
+ position: relative;
23
+ min-height: 50px;
24
+ display: flex;
25
+ flex-direction: row;
26
+ column-gap: 5px;
27
+ row-gap: 5px;
28
+ flex-wrap: wrap;
29
+ .loader {
30
+ position: absolute;
31
+ top: 50%;
32
+ left: 50%;
33
+ transform: translate(-50%, -50%);
34
+ }
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,4 @@
1
+ @include export-module('cc-transaction-cash-register-dialog-theme') {
2
+ .co-transaction-cash-register-dialog {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";