@colijnit/transaction 12.1.153 → 12.1.154

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 (40) hide show
  1. package/bundles/colijnit-transaction.umd.js +113 -29
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.metadata.json +1 -1
  4. package/esm2015/lib/cache/service/business-object-cache-manager.service.js +7 -1
  5. package/esm2015/lib/cache/service/select-single-cache.service.js +7 -4
  6. package/esm2015/lib/component/checkout/checkout.component.js +5 -1
  7. package/esm2015/lib/component/deposit-payment/deposit-payment.component.js +4 -3
  8. package/esm2015/lib/component/payment/payment.component.js +54 -37
  9. package/esm2015/lib/component/payment/payment.module.js +4 -3
  10. package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +8 -5
  11. package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line-base.component.js +4 -1
  12. package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line.component.js +2 -6
  13. package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.js +2 -2
  14. package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier-delivery-date-button.component.js +36 -6
  15. package/esm2015/lib/component/transaction-line-purchase-confirmation/transaction-line-purchase-confirmation.component.js +5 -5
  16. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.js +3 -3
  17. package/esm2015/lib/service/relation.service.js +19 -11
  18. package/esm2015/lib/service/transaction-base.service.js +9 -1
  19. package/esm2015/lib/transaction-version.js +3 -3
  20. package/fesm2015/colijnit-transaction.js +150 -71
  21. package/fesm2015/colijnit-transaction.js.map +1 -1
  22. package/lib/cache/service/business-object-cache-manager.service.d.ts +3 -0
  23. package/lib/cache/service/select-single-cache.service.d.ts +5 -5
  24. package/lib/component/checkout/checkout.component.d.ts +4 -0
  25. package/lib/component/deposit-payment/style/_layout.scss +3 -1
  26. package/lib/component/deposit-payment/style/_material-definition.scss +2 -2
  27. package/lib/component/payment/payment.component.d.ts +4 -1
  28. package/lib/component/payment/style/_layout.scss +64 -35
  29. package/lib/component/payment/style/_material-definition.scss +1 -1
  30. package/lib/component/payment/style/_theme.scss +0 -3
  31. package/lib/component/payment-tile/style/_layout.scss +5 -3
  32. package/lib/component/payment-to-pay/style/_layout.scss +6 -5
  33. package/lib/component/payment-to-pay/style/_material-definition.scss +4 -4
  34. package/lib/component/stepper/style/_material-definition.scss +4 -4
  35. package/lib/component/transaction/style/_layout.scss +1 -1
  36. package/lib/component/transaction-header/transaction-header-payment/style/_layout.scss +17 -0
  37. package/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.d.ts +2 -2
  38. package/lib/component/transaction-line-fields/transaction-line-supplier-delivery-date-button.component.d.ts +6 -1
  39. package/lib/service/transaction-base.service.d.ts +2 -0
  40. package/package.json +1 -1
@@ -52,6 +52,9 @@ export declare class BusinessObjectCacheManagerService implements OnDestroy {
52
52
  getSingleCacheItem<T extends BusinessObject>(key: {
53
53
  new (): T;
54
54
  }, id?: BusinessObjectIDType): CacheField<T>;
55
+ deleteSingleCacheItem<T extends BusinessObject>(key: {
56
+ new (): T;
57
+ }, id?: BusinessObjectIDType): void;
55
58
  getSelectMultipleParameterCacheItem<T extends BusinessObject>(key: any): ParameterCacheField<T[]>;
56
59
  getSelectSingleParameterCacheItem<T>(key: any): ParameterCacheField<T>;
57
60
  private _reset;
@@ -1,12 +1,12 @@
1
- import { BusinessObjectCacheManagerService } from "./business-object-cache-manager.service";
2
- import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
3
- import { CacheField } from "../cache-field";
4
- import { BusinessObjectIDType } from "@colijnit/ioneconnector/build/type/business-object-id-type";
1
+ import { BusinessObjectCacheManagerService } from './business-object-cache-manager.service';
2
+ import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
3
+ import { CacheField } from '../cache-field';
4
+ import { BusinessObjectIDType } from '@colijnit/ioneconnector/build/type/business-object-id-type';
5
5
  export declare class SelectSingleCacheService {
6
6
  private _boCacheManager;
7
7
  constructor(_boCacheManager: BusinessObjectCacheManagerService);
8
8
  requestCache<T extends BusinessObject>(clazz: {
9
9
  new (): T;
10
- }, sourceId: BusinessObjectIDType, loadFunction: () => Promise<T>): CacheField<T>;
10
+ }, sourceId: BusinessObjectIDType, loadFunction: () => Promise<T>, reload?: boolean): CacheField<T>;
11
11
  private _createCacheItem;
12
12
  }
@@ -30,6 +30,10 @@ export declare class CheckoutComponent implements OnInit, OnDestroy {
30
30
  checkoutDelivery: CheckoutOverviewDeliveryEditComponent;
31
31
  checkoutPayment: PaymentComponent;
32
32
  newTransaction: boolean;
33
+ /**
34
+ * When set, this is the relation be used for the checkout
35
+ */
36
+ relationNr: number;
33
37
  sellerId: number;
34
38
  transactionType: TransactionKind;
35
39
  showCreateTransactionButton: boolean;
@@ -2,11 +2,13 @@
2
2
  .co-deposit-payment {
3
3
  font-family: $tp-down-payment-font-family;
4
4
  font-size: $tp-down-payment-font-size;
5
+ font-weight: 600;
5
6
  display: flex;
6
7
  flex-direction: column;
7
8
  row-gap: $tp-down-payment-row-gap;
8
9
  .co-payment-tile {
9
10
  height: 100%;
11
+ min-width: 0;
10
12
  }
11
13
  .co-tile {
12
14
  .co-tile-wrapper {
@@ -15,6 +17,7 @@
15
17
  min-height: initial;
16
18
  width: auto;
17
19
  height: auto;
20
+ padding: 0;
18
21
  .co-tile-select-wrapper {
19
22
  display: none;
20
23
  }
@@ -57,7 +60,6 @@
57
60
  .down-payment-amount-wrapper {
58
61
  display: flex;
59
62
  flex-direction: row;
60
- width: 100%;
61
63
  justify-content: space-between;
62
64
  .down-payment-amount {
63
65
  font-size: $tp-down-payment-amount-font-size;
@@ -1,6 +1,6 @@
1
1
  $tp-down-payment-font-family: $tp-font-family !default;
2
2
  $tp-down-payment-font-size: $tp-font-size !default;
3
- $tp-down-payment-row-gap: 20px !default;
3
+ $tp-down-payment-row-gap: 15px !default;
4
4
  $tp-down-payment-payments-height: 50px !default;
5
5
  $tp-down-payment-payments-padding: 0 !default;
6
6
  $tp-down-payment-payments-background-color: white !default;
@@ -14,7 +14,7 @@ $tp-down-payment-amount-row-gap: 10px !default;
14
14
  $tp-down-payment-amount-spacer-width: $tp-down-payment-amount-row-gap !default;
15
15
  $tp-down-payment-date-font-size: $tp-font-size !default;
16
16
  $tp-down-payment-date-font-weight: normal !default;
17
- $tp-down-payment-payment-padding: 0 20px !default;
17
+ $tp-down-payment-payment-padding: 0 15px !default;
18
18
  $tp-down-payment-payment-border-style: solid !default;
19
19
  $tp-down-payment-payment-border-width: 0 0 1px 0 !default;
20
20
  $tp-down-payment-payment-border-color: $tp-color-border !default;
@@ -7,11 +7,13 @@ 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 { TransactionEventService } from '../../service/transaction-event.service';
10
+ import { IconCacheService } from "../../service/icon-cache.service";
10
11
  export declare class PaymentComponent implements OnInit, OnDestroy {
11
12
  private _transactionService;
12
13
  private _sharedService;
13
14
  private _paymentService;
14
15
  private _transactionEventService;
16
+ iconCacheService: IconCacheService;
15
17
  readonly icons: typeof Icon;
16
18
  transId: number;
17
19
  transactionUuid: string;
@@ -33,6 +35,7 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
33
35
  qrCodeImage: string;
34
36
  showLoader: boolean;
35
37
  amountToPay: number;
38
+ depositAmount: number;
36
39
  statusMessage: string;
37
40
  private _amount;
38
41
  private _paymentStatusInterval;
@@ -41,7 +44,7 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
41
44
  private _paymentStatusPollIntervalCount;
42
45
  private _paymentResult;
43
46
  private _subs;
44
- constructor(_transactionService: TransactionService, _sharedService: SharedService, _paymentService: PaymentService, _transactionEventService: TransactionEventService);
47
+ constructor(_transactionService: TransactionService, _sharedService: SharedService, _paymentService: PaymentService, _transactionEventService: TransactionEventService, iconCacheService: IconCacheService);
45
48
  ngOnInit(): Promise<void>;
46
49
  ngOnDestroy(): void;
47
50
  paymentMethodSelected(method: PaymentMethod, index: number): void;
@@ -4,19 +4,35 @@
4
4
  .co-payment {
5
5
  font-family: $tp-payment-font-family;
6
6
  font-size: $tp-payment-font-size;
7
+ .co-tile {
8
+ &.selected {
9
+ transform: none;
10
+ }
11
+ }
7
12
  .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;
13
+ min-width: 100%;
14
+ min-height: 50px;
15
+ width: 100%;
16
+ height: 50px;
12
17
  }
13
- .payment-wrapper {
14
- padding: $tp-payment-padding;
18
+ .co-tile-select-wrapper {
19
+ display: none;
15
20
  }
16
- .payment-wrapper, .payment-cash-register-wrapper {
21
+ .payment-wrapper {
17
22
  display: flex;
18
23
  flex-direction: column;
24
+ row-gap: 30px;
25
+ }
26
+ .payment-methods-wrapper, .payment-cash-register-wrapper {
27
+ display: flex;
19
28
  row-gap: $tp-payment-row-gap;
29
+ flex: 1;
30
+ flex-direction: column;
31
+ }
32
+ .payment-methods-register-wrapper {
33
+ display: flex;
34
+ flex-direction: column;
35
+ gap: $tp-payment-row-gap;
20
36
  }
21
37
  .payment-methods-header {
22
38
  display: flex;
@@ -32,12 +48,11 @@
32
48
  }
33
49
  .payment-methods {
34
50
  position: relative;
35
- min-height: 50px;
36
51
  display: flex;
37
52
  flex-direction: row;
38
53
  column-gap: $tp-payment-methods-column-gap;
39
54
  row-gap: $tp-payment-methods-row-gap;
40
- flex-wrap: wrap;
55
+ max-width: 620px;
41
56
  .loader {
42
57
  position: absolute;
43
58
  top: 50%;
@@ -49,30 +64,9 @@
49
64
  display: grid;
50
65
  grid-template-columns: auto auto;
51
66
  grid-template-rows: auto auto auto;
52
- row-gap: 10px;
53
- column-gap: 10px;
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;
67
+ row-gap: 20px;
68
+ column-gap: 20px;
62
69
  }
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
-
76
70
  .payment-deposit {
77
71
  grid-column: 1 / 1;
78
72
  grid-row: 2 / 2;
@@ -80,10 +74,34 @@
80
74
  display: none;
81
75
  }
82
76
  }
83
-
77
+ .payment-to-pay-header {
78
+ display: flex;
79
+ align-items: center;
80
+ gap: 10px;
81
+ .payment-header-title, .payment-total-pay {
82
+ font-size: 26px;
83
+ font-weight: bold;
84
+ }
85
+ }
86
+ .co-payment-to-pay {
87
+ width: 100%;
88
+ }
89
+ .payment-input-button {
90
+ display: flex;
91
+ align-items: center;
92
+ row-gap: 10px;
93
+ column-gap: 10px;
94
+ }
95
+ .payment-to-pay-total {
96
+ display: flex;
97
+ flex-direction: column;
98
+ row-gap: 20px;
99
+ column-gap: 20px;
100
+ }
84
101
  .payment-to-pay-button {
85
- grid-column: 1 / 1;
86
- grid-row: 3 / 3;
102
+ width: 55px;
103
+ height: 55px;
104
+ cursor: pointer;
87
105
  .payment-error-message {
88
106
  margin: $tp-payment-error-margin;
89
107
  font-family: $tp-payment-error-font-family;
@@ -93,6 +111,17 @@
93
111
  .co-button {
94
112
  justify-content: center;
95
113
  border-radius: 5px;
114
+ background-color: #f1fcff;
115
+ filter: brightness(1);
116
+ height: 55px;
117
+ width: 55px;
118
+ border: 2px solid #0084de;
119
+ .co-icon {
120
+ height: 60%;
121
+ svg {
122
+ fill: #0084de;
123
+ }
124
+ }
96
125
  }
97
126
  &.no-deposit {
98
127
  grid-row: 2 / 2;
@@ -5,7 +5,7 @@ $tp-payment-tile-height: $tp-tile-min-height !default;
5
5
  $tp-payment-padding: 10px !default;
6
6
  $tp-payment-header-font-family: $tp-font-family !default;
7
7
  $tp-payment-header-font-size: $tp-font-size !default;
8
- $tp-payment-header-font-weight: bold !default;
8
+ $tp-payment-header-font-weight: 600 !default;
9
9
  $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;
@@ -11,9 +11,6 @@
11
11
  .payment-error-message {
12
12
  color: $tp-payment-error-font-color;
13
13
  }
14
- .co-button {
15
- background-color: $tp-color-colijn-orange;
16
- }
17
14
  }
18
15
  }
19
16
  }
@@ -3,20 +3,22 @@
3
3
  @include export-module('co-payment-tile-layout') {
4
4
  .co-payment-tile {
5
5
  display: flex;
6
+ min-width: 120px;
6
7
  .payment-tile-wrapper {
7
8
  display: flex;
8
- flex-direction: column;
9
+ flex-direction: row;
9
10
  width: 100%;
10
11
  height: 100%;
11
12
  align-items: center;
12
- justify-content: center;
13
+ justify-content: flex-start;
14
+ gap: 15px;
13
15
  }
14
16
  .payment-tile-description {
15
17
  }
16
18
  .payment-tile-icon, .payment-tile-image {
17
19
  display: block;
18
20
  height: 80%;
19
- width: 50%;
21
+ width: 30px;
20
22
  object-fit: contain;
21
23
  }
22
24
  }
@@ -5,21 +5,22 @@
5
5
  display: flex;
6
6
  flex-direction: column;
7
7
  align-items: flex-start;
8
+ justify-content: space-between;
9
+ border: $tp-payment-to-pay-amount-border;
8
10
  row-gap: $tp-payment-to-pay-row-gap;
9
- grid-column: 1 / 1;
10
- grid-row: 1 / 1;
11
+ height: $tp-payment-to-pay-amount-height;
12
+ padding: 5px;
13
+ border-radius: 5px;
11
14
  }
12
15
 
13
16
  .payment-amount {
14
17
  display: flex;
15
18
  align-items: center;
16
19
  justify-content: center;
17
- height: $tp-payment-to-pay-amount-height;
18
- border: $tp-payment-to-pay-amount-border;
19
20
  font-family: $tp-payment-to-pay-amount-font-family;
20
21
  font-size: $tp-payment-to-pay-amount-font-size;
21
22
  font-weight: $tp-payment-to-pay-amount-font-weight;
22
- border-radius: 5px;
23
+ line-height: $tp-payment-to-pay-amount-font-size;
23
24
  width: 100%;
24
25
  }
25
26
  }
@@ -1,6 +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;
1
+ $tp-payment-to-pay-row-gap: 0px !default;
2
+ $tp-payment-to-pay-amount-height: 55px !default;
3
+ $tp-payment-to-pay-amount-border: 2px solid #0084de !default;
4
4
  $tp-payment-to-pay-amount-font-family: $tp-font-family !default;
5
- $tp-payment-to-pay-amount-font-size: 32px !default;
5
+ $tp-payment-to-pay-amount-font-size: 28px !default;
6
6
  $tp-payment-to-pay-amount-font-weight: bold !default;
@@ -18,11 +18,11 @@ $tp-co-stepper-step-incomplete-description-color: rgba(0, 0, 0, 0.3) !default;
18
18
  $tp-co-stepper-step-incomplete-description-font-weight: normal !default;
19
19
 
20
20
  $tp-co-stepper-step-title-padding: 30px !default;
21
- $tp-co-stepper-step-title-column-gap: 20px !default;
21
+ $tp-co-stepper-step-title-column-gap: 10px !default;
22
22
  $tp-co-stepper-step-title-font-family: $tp-font-family !default;
23
- $tp-co-stepper-step-title-font-size: 28px !default;
24
- $tp-co-stepper-step-title-font-weight: bold !default;
25
- $tp-co-stepper-step-title-icon-size: 30px !default;
23
+ $tp-co-stepper-step-title-font-size: 20px !default;
24
+ $tp-co-stepper-step-title-font-weight: 600 !default;
25
+ $tp-co-stepper-step-title-icon-size: 17px !default;
26
26
 
27
27
  $tp-co-stepper-step-button-color: $tp-color-action !default;
28
28
  $tp-co-stepper-step-button-background-color: $tp-default-background-accent !default;
@@ -26,7 +26,7 @@
26
26
  justify-content: flex-end;
27
27
  align-items: center;
28
28
  padding: $tp-transaction-transaction-lines-header-padding;
29
- flex-wrap: wrap-reverse;
29
+ flex-wrap: nowrap;
30
30
  .transaction-lines-header-item {
31
31
  flex-basis: 33%;
32
32
  &.right {
@@ -94,5 +94,22 @@
94
94
  background: $tp-co-transaction-header-payment-button-wrapper-border-color;
95
95
  }
96
96
  }
97
+ .payment-dialog {
98
+ .payment-wrapper-popup-title {
99
+ display: flex;
100
+ align-items: center;
101
+ grid-column-gap: 10px;
102
+ column-gap: 10px;
103
+ margin-bottom: 20px;
104
+ .co-icon {
105
+ height: 20px;
106
+ width: 20px;
107
+ margin: 0;
108
+ }
109
+ .co-dialog-header-title {
110
+ margin: 0;
111
+ }
112
+ }
113
+ }
97
114
  }
98
115
  }
@@ -18,10 +18,10 @@ export declare class TransactionLineDeliveryDateButtonComponent extends Transact
18
18
  protected changeDetector: ChangeDetectorRef;
19
19
  private _overlayService;
20
20
  readonly icons: typeof Icon;
21
- commitWhenDateSelected: boolean;
22
- showCalender: boolean;
23
21
  parentComponent: ElementRef;
24
22
  showClass(): boolean;
23
+ commitWhenDateSelected: boolean;
24
+ showCalender: boolean;
25
25
  constructor(transactionEventService: TransactionEventService, service: TransactionService, iconCacheService: IconCacheService, transactionScreenConfigurationService: TransactionScreenConfigurationService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef, _overlayService: OverlayService);
26
26
  private _calendarPopupComponentRef;
27
27
  handleShowHideClick(): void;
@@ -19,8 +19,13 @@ export declare class TransactionLineSupplierDeliveryDateButtonComponent extends
19
19
  private _overlayService;
20
20
  private _elementRef;
21
21
  readonly icons: typeof Icon;
22
+ parentComponent: ElementRef;
22
23
  showClass(): boolean;
24
+ showCalender: boolean;
23
25
  private _calendarPopupComponentRef;
24
26
  constructor(transactionEventService: TransactionEventService, service: TransactionService, iconCacheService: IconCacheService, transactionScreenConfigurationService: TransactionScreenConfigurationService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef, _overlayService: OverlayService, _elementRef: ElementRef);
25
- handleShowDialog(event: MouseEvent): void;
27
+ handleShowHideClick(): void;
28
+ private _showPopup;
29
+ private _handleDateChanged;
30
+ private _hidePopup;
26
31
  }
@@ -17,6 +17,7 @@ import { GetPurchasePortalLine } from '@colijnit/transactionapi/build/model/get-
17
17
  import { RefTransaction } from '@colijnit/transactionapi/build/model/ref-transaction.bo';
18
18
  import { TransactionSearchViewRequest } from '@colijnit/transactionapi/build/model/transaction-search-view-request';
19
19
  import { TransactionSearchResult } from '../model/transaction-search-result';
20
+ import { RelationKind } from '@colijnit/articleapi/build/enum/relation-kind.enum';
20
21
  import { TransactionTypeCategory } from '../enum/transaction-type-category.enum';
21
22
  import { Icon } from '../enum/icon.enum';
22
23
  import { BaseModuleService } from '@colijnit/corecomponents_v12';
@@ -101,6 +102,7 @@ export declare class TransactionBaseService extends BaseModuleService {
101
102
  constructor(optionsService: TransactionSettingsService, dialogService: DialogService, connector: TransactionConnectorService, sharedService: SharedService, articleConnector: ArticleConnectorService, dictionaryService: DictionaryService, transactionEventService: TransactionEventService, relationService: RelationService, screenConfigService: TransactionScreenConfigurationService);
102
103
  init(options: any, resetCurrentTransaction?: boolean): Promise<void>;
103
104
  createNewRelation(): void;
105
+ setRelationOnTransaction(relationNr: number, relationKind: RelationKind): Promise<void>;
104
106
  resetCurrentTransaction(): void;
105
107
  saveTransaction(rememberTransaction?: boolean): Promise<TransactionInfoResponse>;
106
108
  commit(): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/transaction",
3
- "version": "12.1.153",
3
+ "version": "12.1.154",
4
4
  "description": "Colijn IT transaction module for Angular 12",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",