@colijnit/transaction 12.1.124 → 12.1.125

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 (41) hide show
  1. package/bundles/colijnit-transaction.umd.js +456 -359
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.d.ts +357 -353
  4. package/colijnit-transaction.metadata.json +1 -1
  5. package/esm2015/colijnit-transaction.js +358 -354
  6. package/esm2015/lib/component/payment/payment.component.js +2 -5
  7. package/esm2015/lib/component/payment/payment.module.js +4 -2
  8. package/esm2015/lib/component/payment-to-pay/payment-to-pay.component.js +26 -0
  9. package/esm2015/lib/component/payment-to-pay/payment-to-pay.module.js +21 -0
  10. package/esm2015/lib/component/transaction/transaction.module.js +4 -2
  11. package/esm2015/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.component.js +52 -0
  12. package/esm2015/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.module.js +34 -0
  13. package/esm2015/lib/enum/transaction-type-category.enum.js +2 -1
  14. package/esm2015/lib/service/transaction-connector-adapter.service.js +2 -2
  15. package/esm2015/lib/service/transaction-mapping.service.js +3 -1
  16. package/esm2015/lib/transaction-version.js +3 -3
  17. package/fesm2015/colijnit-transaction.js +127 -10
  18. package/fesm2015/colijnit-transaction.js.map +1 -1
  19. package/lib/component/payment/style/_layout.scss +0 -20
  20. package/lib/component/payment/style/_material-definition.scss +0 -7
  21. package/lib/component/payment/style/_theme.scss +0 -24
  22. package/lib/component/payment/style/material.scss +1 -0
  23. package/lib/component/payment-to-pay/payment-to-pay.component.d.ts +4 -0
  24. package/lib/component/payment-to-pay/payment-to-pay.module.d.ts +2 -0
  25. package/lib/component/payment-to-pay/style/_layout.scss +26 -0
  26. package/lib/component/payment-to-pay/style/_material-definition.scss +6 -0
  27. package/lib/component/payment-to-pay/style/_theme.scss +9 -0
  28. package/lib/component/payment-to-pay/style/material.scss +4 -0
  29. package/lib/component/tile/style/_layout.scss +4 -0
  30. package/lib/component/transaction-cash-register-order/style/_layout.scss +126 -0
  31. package/lib/component/transaction-cash-register-order/style/_material-definition.scss +0 -0
  32. package/lib/component/transaction-cash-register-order/style/_theme.scss +4 -0
  33. package/lib/component/transaction-cash-register-order/style/material.scss +5 -0
  34. package/lib/component/transaction-line/transaction-cash-register-order-line/style/_layout.scss +4 -0
  35. package/lib/component/transaction-line/transaction-cash-register-order-line/style/_material-definition.scss +0 -0
  36. package/lib/component/transaction-line/transaction-cash-register-order-line/style/_theme.scss +4 -0
  37. package/lib/component/transaction-line/transaction-cash-register-order-line/style/material.scss +4 -0
  38. package/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.component.d.ts +4 -0
  39. package/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.module.d.ts +2 -0
  40. package/lib/enum/transaction-type-category.enum.d.ts +2 -1
  41. package/package.json +2 -2
@@ -52,26 +52,6 @@
52
52
  row-gap: 10px;
53
53
  column-gap: 10px;
54
54
  }
55
- .payment-to-pay {
56
- display: flex;
57
- flex-direction: column;
58
- align-items: flex-start;
59
- row-gap: $tp-payment-row-gap;
60
- grid-column: 1 / 1;
61
- grid-row: 1 / 1;
62
- }
63
- .payment-amount {
64
- display: flex;
65
- align-items: center;
66
- justify-content: center;
67
- height: $tp-payment-amount-height;
68
- border: $tp-payment-amount-border;
69
- font-family: $tp-payment-amount-font-family;
70
- font-size: $tp-payment-amount-font-size;
71
- font-weight: $tp-payment-amount-font-weight;
72
- border-radius: 5px;
73
- width: 100%;
74
- }
75
55
 
76
56
  .payment-deposit {
77
57
  grid-column: 1 / 1;
@@ -10,14 +10,7 @@ $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-height: 60px !default;
14
- $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
13
  $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;
21
14
  $tp-payment-error-margin: 5px 0 !default;
22
15
  $tp-payment-error-font-family: $tp-font-family !default;
23
16
  $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";
@@ -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,126 @@
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
+ width: 100%;
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
+
59
+
60
+ }
61
+ }
62
+
63
+ .cash-register-side-content {
64
+ display: flex;
65
+ width: 25%;
66
+ height: inherit;
67
+ flex-direction: column;
68
+ row-gap: 50px;
69
+
70
+ .cash-register-totals-wrapper {
71
+ display: flex;
72
+ flex-direction: column;
73
+ font-size: 11px;
74
+ padding: 8px;
75
+ width: 100%;
76
+ background-color: white;
77
+ border: 1px solid #f3f3f6;
78
+ border-radius: 8px;
79
+ row-gap: 5px;
80
+
81
+ .cash-register-totals-row {
82
+ display: flex;
83
+ font-weight: bold;
84
+ justify-content: space-between;
85
+ padding: 5px;
86
+ &.total {
87
+ font-size: 12px;
88
+ }
89
+ &.discount {
90
+ background: #5fdcb3;
91
+ border-radius: 8px;
92
+ cursor: pointer;
93
+ color: white;
94
+ }
95
+ }
96
+
97
+ }
98
+
99
+ .cash-register-payment-wrapper {
100
+ display: flex;
101
+ flex-direction: column;
102
+ row-gap: 10px;
103
+
104
+ .cash-register-payment-methods-wrapper {
105
+ display: grid;
106
+ grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
107
+ grid-gap: 5px;
108
+ padding: 8px;
109
+ border-radius: 8px;
110
+ background: $tp-payment-amount-background-color;
111
+
112
+ .co-tile-wrapper {
113
+ min-height: 70px;
114
+ }
115
+ }
116
+
117
+ .cash-register-num-pad-wrapper {
118
+ display: flex;
119
+ flex-direction: column;
120
+ row-gap: 10px;
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
@@ -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,5 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
5
+ @import "../../payment-to-pay/style/material";
@@ -0,0 +1,4 @@
1
+ @include export-module('cc-transaction-cash-register-order-line-layout') {
2
+ .co-transaction-cash-register-order-line {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @include export-module('cc-transaction-cash-register-order-line-theme') {
2
+ .co-transaction-cash-register-order-line {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
@@ -0,0 +1,4 @@
1
+ import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
2
+ export declare class TransactionCashRegisterOrderLineComponent extends TransactionBaseComponent {
3
+ showClass(): boolean;
4
+ }
@@ -0,0 +1,2 @@
1
+ export declare class TransactionCashRegisterOrderLineModule {
2
+ }
@@ -11,5 +11,6 @@ export declare enum TransactionTypeCategory {
11
11
  SalesOrderLogistics = "salesOrderLogistics",
12
12
  SalesOrderPlanning = "salesOrderPlanning",
13
13
  SalesOrderDeliveryNote = "salesOrderDeliveryNote",
14
- SalesOrderInvoice = "salesOrderInvoice"
14
+ SalesOrderInvoice = "salesOrderInvoice",
15
+ SalesOrderCashRegister = "salesOrderCashRegister"
15
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/transaction",
3
- "version": "12.1.124",
3
+ "version": "12.1.125",
4
4
  "description": "Colijn IT transaction module for Angular 12",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",
@@ -18,7 +18,7 @@
18
18
  "@colijnit/relationapi": ">=1.0.6",
19
19
  "@colijnit/sharedapi": ">=1.0.10",
20
20
  "@colijnit/sharedcomponents": ">=1.0.40",
21
- "@colijnit/transactionapi": ">=1.1.81",
21
+ "@colijnit/transactionapi": ">=1.1.82",
22
22
  "@syncfusion/ej2-angular-buttons": ">=19.3.44",
23
23
  "@syncfusion/ej2-angular-calendars": ">=19.3.44",
24
24
  "@syncfusion/ej2-angular-dropdowns": ">=19.3.45",