@colijnit/transaction 12.1.121 → 12.1.122
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 +737 -605
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +286 -284
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +287 -285
- package/esm2015/lib/component/checkout/checkout-overview-payment/checkout-overview-payment.component.js +2 -1
- package/esm2015/lib/component/checkout/checkout.component.js +9 -15
- package/esm2015/lib/component/core/base/components/transaction-header-block/transaction-header-block.component.js +12 -8
- package/esm2015/lib/component/core/base/transaction-base.component.js +4 -2
- package/esm2015/lib/component/deposit-payment/deposit-payment.component.js +4 -2
- package/esm2015/lib/component/payment/payment.component.js +7 -2
- package/esm2015/lib/component/transaction-button/transaction-button.component.js +2 -1
- package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +2 -9
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +4 -10
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.module.js +4 -2
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-base.component.js +44 -5
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-delivery.component.js +1 -28
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-order.component.js +1 -28
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.js +24 -4
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-relation.component.js +16 -59
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup.component.js +61 -16
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup.module.js +10 -3
- package/esm2015/lib/component/transaction-header/transaction-header-relation/transaction-header-relation.component.js +1 -2
- package/esm2015/lib/component/transaction-header-fields/transaction-header-payment-button/transaction-header-payment-button.component.js +108 -0
- package/esm2015/lib/component/transaction-header-fields/transaction-header-payment-button/transaction-header-payment-button.module.js +29 -0
- package/esm2015/lib/enum/icon.enum.js +3 -1
- package/esm2015/lib/model/icon-svg.js +3 -1
- package/esm2015/lib/service/pending-reason.service.js +3 -3
- package/esm2015/lib/service/relation.service.js +7 -7
- package/esm2015/lib/service/transaction-base.service.js +19 -17
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +407 -274
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/components/transaction-header-block/transaction-header-block.component.d.ts +2 -2
- package/lib/component/core/base/transaction-base.component.d.ts +2 -1
- package/lib/component/deposit-payment/deposit-payment.component.d.ts +1 -0
- package/lib/component/payment/payment.component.d.ts +2 -1
- package/lib/component/transaction-header/transaction-header-delivery/style/_layout.scss +6 -22
- package/lib/component/transaction-header/transaction-header-payment/style/_layout.scss +1 -28
- package/lib/component/transaction-header/transaction-header-payment/style/_material-definition.scss +0 -11
- package/lib/component/transaction-header/transaction-header-payment/style/_theme.scss +0 -10
- package/lib/component/transaction-header/transaction-header-popup/style/_layout.scss +12 -2
- package/lib/component/transaction-header/transaction-header-popup/style/_material-definition.scss +3 -0
- package/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-base.component.d.ts +7 -2
- package/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-delivery.component.d.ts +0 -2
- package/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-order.component.d.ts +0 -2
- package/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.d.ts +2 -2
- package/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-relation.component.d.ts +1 -22
- package/lib/component/transaction-header/transaction-header-popup/transaction-header-popup.component.d.ts +24 -1
- package/lib/component/transaction-header-fields/transaction-header-payment-button/style/_layout.scss +18 -0
- package/lib/component/transaction-header-fields/transaction-header-payment-button/style/_material-definition.scss +9 -0
- package/lib/component/transaction-header-fields/transaction-header-payment-button/style/_theme.scss +13 -0
- package/lib/component/transaction-header-fields/transaction-header-payment-button/style/material.scss +4 -0
- package/lib/component/transaction-header-fields/transaction-header-payment-button/transaction-header-payment-button.component.d.ts +28 -0
- package/lib/component/transaction-header-fields/transaction-header-payment-button/transaction-header-payment-button.module.d.ts +2 -0
- package/lib/enum/icon.enum.d.ts +2 -0
- package/lib/service/transaction-base.service.d.ts +2 -1
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { EventEmitter, TemplateRef } from
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
2
|
export declare class TransactionHeaderBlockComponent {
|
|
3
3
|
headerBlockTemplate: TemplateRef<any>;
|
|
4
4
|
firstBlockTemplate: TemplateRef<any>;
|
|
5
5
|
secondBlockTemplate: TemplateRef<any>;
|
|
6
6
|
thirdBlockTemplate: TemplateRef<any>;
|
|
7
|
-
hasDetails: boolean;
|
|
8
7
|
headerClick: EventEmitter<MouseEvent>;
|
|
9
8
|
showClass(): boolean;
|
|
9
|
+
handleHostClick(event: MouseEvent): void;
|
|
10
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { TransactionService } from '../../../service/transaction.service';
|
|
3
3
|
import { TransactionInfoResponse } from '@colijnit/transactionapi/build/model/transaction-info-response.bo';
|
|
4
4
|
import { TransactionInfo } from '@colijnit/transactionapi/build/model/transaction-info.bo';
|
|
@@ -42,6 +42,7 @@ export declare abstract class TransactionBaseComponent implements OnInit, OnDest
|
|
|
42
42
|
set selected(value: boolean);
|
|
43
43
|
get selected(): boolean;
|
|
44
44
|
readonly: boolean;
|
|
45
|
+
relationChange: EventEmitter<RelationAnyType>;
|
|
45
46
|
isText: boolean;
|
|
46
47
|
isArticle: boolean;
|
|
47
48
|
get model(): TransactionLineInfo | TransactionInfo;
|
|
@@ -5,6 +5,7 @@ import { PaymentService } from '../../service/payment.service';
|
|
|
5
5
|
export declare class DepositPaymentComponent implements OnInit {
|
|
6
6
|
private _paymentService;
|
|
7
7
|
branch: string;
|
|
8
|
+
showTitle: boolean;
|
|
8
9
|
transactionUuid: string;
|
|
9
10
|
showClass(): boolean;
|
|
10
11
|
paymentMethods: PaymentViewmodel[];
|
|
@@ -15,6 +15,7 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
|
|
|
15
15
|
transId: number;
|
|
16
16
|
transactionUuid: string;
|
|
17
17
|
branch: string;
|
|
18
|
+
updateDepositAmount: boolean;
|
|
18
19
|
set amount(value: number);
|
|
19
20
|
get amount(): number;
|
|
20
21
|
currencyId: number;
|
|
@@ -40,7 +41,7 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
|
|
|
40
41
|
private _paymentStatusPollIntervalCount;
|
|
41
42
|
private _paymentResult;
|
|
42
43
|
constructor(_transactionService: TransactionService, _sharedService: SharedService, _paymentService: PaymentService);
|
|
43
|
-
ngOnInit(): void
|
|
44
|
+
ngOnInit(): Promise<void>;
|
|
44
45
|
ngOnDestroy(): void;
|
|
45
46
|
paymentMethodSelected(method: PaymentMethod, index: number): void;
|
|
46
47
|
cashRegisterSelected(cashRegister: CashRegister, index: number): void;
|
|
@@ -22,22 +22,8 @@
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
.header-delivery-method .transaction-line-button {
|
|
25
|
-
//cursor: pointer;
|
|
26
|
-
//display: flex;
|
|
27
|
-
//column-gap: 10px;
|
|
28
|
-
//align-items: center;
|
|
29
25
|
width: 100%;
|
|
30
|
-
//height: $tp-transaction-header-delivery-delivery-method-height;
|
|
31
|
-
//font-size: $tp-transaction-header-delivery-delivery-method-font-size;
|
|
32
|
-
//border: $tp-transaction-header-delivery-delivery-method-border;
|
|
33
|
-
//border-radius: $tp-transaction-header-delivery-delivery-method-border-radius;
|
|
34
|
-
//padding: $tp-transaction-header-delivery-delivery-method-padding;
|
|
35
26
|
}
|
|
36
|
-
//.header-planning-request-button {
|
|
37
|
-
// border: $tp-transaction-header-delivery-planning-request-button-border;
|
|
38
|
-
// border-radius: $tp-transaction-header-delivery-planning-request-button-border-radius;
|
|
39
|
-
// padding: $tp-transaction-header-delivery-planning-request-button-padding;
|
|
40
|
-
//}
|
|
41
27
|
.header-delivery-deliverydate-wrapper {
|
|
42
28
|
display: flex;
|
|
43
29
|
column-gap: 10px;
|
|
@@ -54,14 +40,12 @@
|
|
|
54
40
|
flex-direction: column;
|
|
55
41
|
align-items: center;
|
|
56
42
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
// }
|
|
64
|
-
//}
|
|
43
|
+
.transaction-header-partial-delivery {
|
|
44
|
+
.co-input-checkbox {
|
|
45
|
+
font-size: $tp-font-size-small;
|
|
46
|
+
flex-direction: column-reverse;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
65
49
|
.co-transaction-header-delivery-wrapper {
|
|
66
50
|
display: flex;
|
|
67
51
|
flex-direction: column;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
.co-transaction-header-block {
|
|
8
8
|
padding: 4px 0;
|
|
9
9
|
}
|
|
10
|
-
.header-
|
|
10
|
+
.co-transaction-header-payment-button {
|
|
11
11
|
flex-basis: 50%;
|
|
12
12
|
}
|
|
13
13
|
.transaction-header-block-content {
|
|
@@ -16,33 +16,6 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
.header-block-balance {
|
|
20
|
-
display: flex;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
column-gap: 10px;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
height: $tp-transaction-header-block-payment-balance-height;
|
|
26
|
-
font-size: 12px;
|
|
27
|
-
border-style: $tp-transaction-header-block-payment-balance-border-style;
|
|
28
|
-
border-width: $tp-transaction-header-block-payment-balance-border-width;
|
|
29
|
-
border-radius: $tp-transaction-header-block-payment-balance-border-radius;
|
|
30
|
-
padding: $tp-transaction-header-block-payment-balance-padding;
|
|
31
|
-
co-icon {
|
|
32
|
-
position: relative;
|
|
33
|
-
height: $tp-transaction-header-block-payment-balance-icon-width;
|
|
34
|
-
width: $tp-transaction-header-block-payment-balance-icon-width;
|
|
35
|
-
}
|
|
36
|
-
.payment-payed-wrapper {
|
|
37
|
-
display: flex;
|
|
38
|
-
column-gap: 10px;
|
|
39
|
-
.payment-icon {
|
|
40
|
-
margin-right: 10px;
|
|
41
|
-
height: $tp-transaction-header-block-payment-balance-icon-size;
|
|
42
|
-
width: $tp-transaction-header-block-payment-balance-icon-size;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
19
|
.transaction-header-deposit {
|
|
47
20
|
.co-input-text {
|
|
48
21
|
height: auto;
|
package/lib/component/transaction-header/transaction-header-payment/style/_material-definition.scss
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
$tp-transaction-header-block-payment-balance-background: $tp-default-background-accent !default;
|
|
2
|
-
$tp-transaction-header-block-payment-balance-icon-width: 17px !default;
|
|
3
|
-
$tp-transaction-header-block-payment-balance-padding: 5px 10px !default;
|
|
4
|
-
$tp-transaction-header-block-payment-balance-border-style: solid !default;
|
|
5
|
-
$tp-transaction-header-block-payment-balance-border-color: $tp-color-border !default;
|
|
6
|
-
$tp-transaction-header-block-payment-balance-border-width: 1px !default;
|
|
7
|
-
$tp-transaction-header-block-payment-balance-border-radius: $tp-default-border-radius !default;
|
|
8
|
-
$tp-transaction-header-block-payment-balance-paid-color: #FF4141 !default;
|
|
9
|
-
$tp-transaction-header-block-payment-balance-paid-color-success: $tp-color-active-light !default;
|
|
10
|
-
$tp-transaction-header-block-payment-balance-icon-size: 17px !default;
|
|
11
|
-
$tp-transaction-header-block-payment-balance-height: $tp-default-button-height !default;
|
|
@@ -2,15 +2,5 @@
|
|
|
2
2
|
|
|
3
3
|
@include export-module('cc-transaction-header-payment-theme') {
|
|
4
4
|
.co-transaction-header-payment {
|
|
5
|
-
.header-block-balance {
|
|
6
|
-
background: $tp-transaction-header-block-payment-balance-background;
|
|
7
|
-
border-color: $tp-transaction-header-block-payment-balance-border-color;
|
|
8
|
-
.payment-paid {
|
|
9
|
-
color: $tp-transaction-header-block-payment-balance-paid-color;
|
|
10
|
-
&.success {
|
|
11
|
-
color: $tp-transaction-header-block-payment-balance-paid-color-success;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
5
|
}
|
|
16
6
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
.co-transaction-header-popup {
|
|
3
3
|
font-family: $tp-transaction-header-popup-font-family;
|
|
4
4
|
font-size: $tp-transaction-header-popup-font-size;
|
|
5
|
-
.co-dialog:not(.is-mobile) .co-dialog-wrapper {
|
|
5
|
+
.co-dialog:not(.is-mobile) .co-dialog-wrapper.transaction-header-dialog {
|
|
6
6
|
width: $tp-transaction-header-popup-width;
|
|
7
7
|
height: $tp-transaction-header-popup-height;
|
|
8
|
-
.dialog-content {
|
|
8
|
+
.dialog-content.transaction-header-dialog {
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
overflow: hidden;
|
|
@@ -55,6 +55,16 @@
|
|
|
55
55
|
flex-direction: row;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
.transaction-header-popup-dialog-header-wrapper {
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
column-gap: 10px;
|
|
62
|
+
.co-icon {
|
|
63
|
+
height: $tp-transaction-header-popup-dialog-header-icon-size;
|
|
64
|
+
width: $tp-transaction-header-popup-dialog-header-icon-size;
|
|
65
|
+
margin: $tp-transaction-header-popup-dialog-header-icon-margin;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
58
68
|
.transaction-header-popup-section {
|
|
59
69
|
display: flex;
|
|
60
70
|
flex-direction: column;
|
package/lib/component/transaction-header/transaction-header-popup/style/_material-definition.scss
CHANGED
|
@@ -3,6 +3,9 @@ $tp-transaction-header-popup-font-size: $tp-font-size !default;
|
|
|
3
3
|
$tp-transaction-header-popup-width: 650px !default;
|
|
4
4
|
$tp-transaction-header-popup-height: 800px !default;
|
|
5
5
|
|
|
6
|
+
$tp-transaction-header-popup-dialog-header-icon-size: 20px !default;
|
|
7
|
+
$tp-transaction-header-popup-dialog-header-icon-margin: 0 0 20px 0 !default;
|
|
8
|
+
|
|
6
9
|
$tp-transaction-header-popup-category-font-family: $tp-font-family !default;
|
|
7
10
|
$tp-transaction-header-popup-category-font-size: $tp-font-size !default;
|
|
8
11
|
|
|
@@ -7,6 +7,7 @@ import { DictionaryService } from '../../../service/dictionary.service';
|
|
|
7
7
|
import { TransactionImageService } from '../../../service/transaction-image.service';
|
|
8
8
|
import { FormComponent, FormMasterService } from '@colijnit/corecomponents_v12';
|
|
9
9
|
import { DialogService } from '../../../service/dialog.service';
|
|
10
|
+
import { RelationService } from '../../../service/relation.service';
|
|
10
11
|
export declare abstract class TransactionHeaderPopupBaseComponent extends TransactionBaseComponent implements OnInit, OnDestroy {
|
|
11
12
|
transactionEventService: TransactionEventService;
|
|
12
13
|
service: TransactionService;
|
|
@@ -16,15 +17,19 @@ export declare abstract class TransactionHeaderPopupBaseComponent extends Transa
|
|
|
16
17
|
protected changeDetector: ChangeDetectorRef;
|
|
17
18
|
protected dialogService: DialogService;
|
|
18
19
|
protected formMasterService: FormMasterService;
|
|
20
|
+
protected relationService: RelationService;
|
|
19
21
|
set content(form: FormComponent);
|
|
20
22
|
readonly: boolean;
|
|
21
23
|
dirty: boolean;
|
|
22
24
|
form: FormComponent;
|
|
23
25
|
private _subs;
|
|
24
|
-
constructor(transactionEventService: TransactionEventService, service: TransactionService, iconCacheService: IconCacheService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef, dialogService: DialogService, formMasterService: FormMasterService);
|
|
26
|
+
constructor(transactionEventService: TransactionEventService, service: TransactionService, iconCacheService: IconCacheService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef, dialogService: DialogService, formMasterService: FormMasterService, relationService: RelationService);
|
|
25
27
|
ngOnInit(): Promise<void>;
|
|
26
28
|
ngOnDestroy(): Promise<void>;
|
|
27
|
-
|
|
29
|
+
protected transactionInfoSet(): Promise<void>;
|
|
30
|
+
saveObjects(): Promise<void>;
|
|
31
|
+
saveRelation(): Promise<void>;
|
|
32
|
+
saveTransaction(): Promise<void>;
|
|
28
33
|
protected setFormPristine(): void;
|
|
29
34
|
private _setFormDirty;
|
|
30
35
|
private _askForSave;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { TransactionHeaderPopupBaseComponent } from './transaction-header-popup-base.component';
|
|
2
2
|
export declare class TransactionHeaderPopupDeliveryComponent extends TransactionHeaderPopupBaseComponent {
|
|
3
3
|
showClass(): boolean;
|
|
4
|
-
protected transactionInfoSet(): Promise<void>;
|
|
5
|
-
saveObject(): void;
|
|
6
4
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { TransactionHeaderPopupBaseComponent } from './transaction-header-popup-base.component';
|
|
2
2
|
export declare class TransactionHeaderPopupOrderComponent extends TransactionHeaderPopupBaseComponent {
|
|
3
3
|
showClass(): boolean;
|
|
4
|
-
protected transactionInfoSet(): Promise<void>;
|
|
5
|
-
saveObject(): void;
|
|
6
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class TransactionHeaderPopupPaymentComponent extends
|
|
1
|
+
import { TransactionHeaderPopupBaseComponent } from './transaction-header-popup-base.component';
|
|
2
|
+
export declare class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseComponent {
|
|
3
3
|
showClass(): boolean;
|
|
4
4
|
}
|
|
@@ -1,25 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TransactionEventService } from '../../../service/transaction-event.service';
|
|
3
|
-
import { TransactionService } from '../../../service/transaction.service';
|
|
4
|
-
import { IconCacheService } from '../../../service/icon-cache.service';
|
|
5
|
-
import { DictionaryService } from '../../../service/dictionary.service';
|
|
6
|
-
import { TransactionImageService } from '../../../service/transaction-image.service';
|
|
7
|
-
import { RelationService } from '../../../service/relation.service';
|
|
8
|
-
import { FormMasterService } from '@colijnit/corecomponents_v12';
|
|
9
|
-
import { DialogService } from '../../../service/dialog.service';
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
10
2
|
import { AddressType } from '@colijnit/relationapi/build/enum/address-type.enum';
|
|
11
|
-
import { RelationAnyType } from '@colijnit/relationapi/build/model/relation-any-type';
|
|
12
3
|
import { TransactionHeaderPopupBaseComponent } from './transaction-header-popup-base.component';
|
|
13
4
|
export declare class TransactionHeaderPopupRelationComponent extends TransactionHeaderPopupBaseComponent {
|
|
14
|
-
transactionEventService: TransactionEventService;
|
|
15
|
-
service: TransactionService;
|
|
16
|
-
iconCacheService: IconCacheService;
|
|
17
|
-
protected dictionaryService: DictionaryService;
|
|
18
|
-
protected imageService: TransactionImageService;
|
|
19
|
-
protected changeDetector: ChangeDetectorRef;
|
|
20
|
-
protected dialogService: DialogService;
|
|
21
|
-
protected formMasterService: FormMasterService;
|
|
22
|
-
private _relationService;
|
|
23
5
|
readonly addressType: typeof AddressType;
|
|
24
6
|
navigationItems: ElementRef;
|
|
25
7
|
mainItems: ElementRef;
|
|
@@ -30,14 +12,11 @@ export declare class TransactionHeaderPopupRelationComponent extends Transaction
|
|
|
30
12
|
invoiceAddressSameAsDeliveryAddress: boolean;
|
|
31
13
|
categories: string[];
|
|
32
14
|
customerGroup: string;
|
|
33
|
-
cloneRelation: RelationAnyType;
|
|
34
|
-
constructor(transactionEventService: TransactionEventService, service: TransactionService, iconCacheService: IconCacheService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef, dialogService: DialogService, formMasterService: FormMasterService, _relationService: RelationService);
|
|
35
15
|
relationSet(): Promise<void>;
|
|
36
16
|
setIndexDeliveryAddress(nawNr: number): void;
|
|
37
17
|
setIndexInvoiceAddress(nawNr: number): void;
|
|
38
18
|
checkSameAddress(checked: boolean): void;
|
|
39
19
|
handleNavigationClick(nav: string): void;
|
|
40
20
|
handleChangeCustomGroup(group: string): void;
|
|
41
|
-
saveObject(): void;
|
|
42
21
|
private _lockRelation;
|
|
43
22
|
}
|
|
@@ -1,19 +1,42 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { TransactionBaseComponent } from '../../core/base/transaction-base.component';
|
|
3
|
+
import { Icon } from '../../../enum/icon.enum';
|
|
4
|
+
import { TransactionEventService } from '../../../service/transaction-event.service';
|
|
5
|
+
import { TransactionService } from '../../../service/transaction.service';
|
|
6
|
+
import { IconCacheService } from '../../../service/icon-cache.service';
|
|
7
|
+
import { DictionaryService } from '../../../service/dictionary.service';
|
|
8
|
+
import { TransactionImageService } from '../../../service/transaction-image.service';
|
|
9
|
+
import { DialogService } from '../../../service/dialog.service';
|
|
10
|
+
import { FormMasterService } from '@colijnit/corecomponents_v12';
|
|
11
|
+
import { RelationService } from '../../../service/relation.service';
|
|
12
|
+
import { RelationAnyType } from '@colijnit/relationapi/build/model/relation-any-type';
|
|
3
13
|
export interface PopupCategory {
|
|
4
14
|
index: number;
|
|
15
|
+
icon: Icon;
|
|
5
16
|
description: string;
|
|
6
17
|
}
|
|
7
18
|
export declare class TransactionHeaderPopupComponent extends TransactionBaseComponent implements OnInit, OnDestroy {
|
|
19
|
+
transactionEventService: TransactionEventService;
|
|
20
|
+
service: TransactionService;
|
|
21
|
+
iconCacheService: IconCacheService;
|
|
22
|
+
protected dictionaryService: DictionaryService;
|
|
23
|
+
protected imageService: TransactionImageService;
|
|
24
|
+
protected changeDetector: ChangeDetectorRef;
|
|
25
|
+
protected dialogService: DialogService;
|
|
26
|
+
protected formMasterService: FormMasterService;
|
|
27
|
+
protected relationService: RelationService;
|
|
8
28
|
set activeCategoryIndex(value: number);
|
|
9
29
|
closeClick: EventEmitter<MouseEvent>;
|
|
10
30
|
showClass(): boolean;
|
|
11
31
|
categories: PopupCategory[];
|
|
12
32
|
okButtonEnabled: boolean;
|
|
13
33
|
activeCategory: PopupCategory;
|
|
34
|
+
cloneRelation: RelationAnyType;
|
|
14
35
|
private _subs;
|
|
36
|
+
constructor(transactionEventService: TransactionEventService, service: TransactionService, iconCacheService: IconCacheService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef, dialogService: DialogService, formMasterService: FormMasterService, relationService: RelationService);
|
|
15
37
|
ngOnInit(): void;
|
|
16
38
|
ngOnDestroy(): void;
|
|
39
|
+
relationSet(): Promise<void>;
|
|
17
40
|
handleCloseClick(event: MouseEvent): void;
|
|
18
41
|
handleCategoryClick(cat: PopupCategory): void;
|
|
19
42
|
handleOkButtonClick(event: MouseEvent): void;
|
package/lib/component/transaction-header-fields/transaction-header-payment-button/style/_layout.scss
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@include export-module('co-transaction-header-payment-button-layout') {
|
|
2
|
+
.co-transaction-header-payment-button {
|
|
3
|
+
.co-dialog:not(.is-mobile) .co-dialog-wrapper.payment-dialog {
|
|
4
|
+
width: 900px;
|
|
5
|
+
height: 600px;
|
|
6
|
+
//.dialog-content {
|
|
7
|
+
// display: flex;
|
|
8
|
+
// flex-direction: column;
|
|
9
|
+
// overflow: hidden;
|
|
10
|
+
// height: 100%;
|
|
11
|
+
//}
|
|
12
|
+
}
|
|
13
|
+
.payment-payed-wrapper {
|
|
14
|
+
display: flex;
|
|
15
|
+
column-gap: 10px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//$tp-transaction-header-payment-button-background: $tp-default-background-accent !default;
|
|
2
|
+
//$tp-transaction-header-payment-button-icon-width: 17px !default;
|
|
3
|
+
//$tp-transaction-header-payment-button-padding: 5px 10px !default;
|
|
4
|
+
//$tp-transaction-header-payment-button-border-style: solid !default;
|
|
5
|
+
//$tp-transaction-header-payment-button-border-color: $tp-color-border !default;
|
|
6
|
+
//$tp-transaction-header-payment-button-border-width: 1px !default;
|
|
7
|
+
//$tp-transaction-header-payment-button-border-radius: $tp-default-border-radius !default;
|
|
8
|
+
$tp-transaction-header-payment-button-paid-color: #FF4141 !default;
|
|
9
|
+
$tp-transaction-header-payment-button-paid-color-success: $tp-color-active-light !default;
|
package/lib/component/transaction-header-fields/transaction-header-payment-button/style/_theme.scss
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@include export-module('co-transaction-header-payment-button-theme') {
|
|
2
|
+
.co-transaction-header-payment-button {
|
|
3
|
+
//background: $tp-transaction-header-block-payment-balance-background;
|
|
4
|
+
//border-color: $tp-transaction-header-block-payment-balance-border-color;
|
|
5
|
+
.payment-paid {
|
|
6
|
+
color: $tp-transaction-header-payment-button-paid-color;
|
|
7
|
+
&.success {
|
|
8
|
+
color: $tp-transaction-header-payment-button-paid-color-success;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { TransactionBaseComponent } from '../../core/base/transaction-base.component';
|
|
3
|
+
import { DepositPaymentViewModel } from '../../../model/deposit-payment-view-model';
|
|
4
|
+
import { TransactionEventService } from '../../../service/transaction-event.service';
|
|
5
|
+
import { TransactionService } from '../../../service/transaction.service';
|
|
6
|
+
import { IconCacheService } from '../../../service/icon-cache.service';
|
|
7
|
+
import { DictionaryService } from '../../../service/dictionary.service';
|
|
8
|
+
import { TransactionImageService } from '../../../service/transaction-image.service';
|
|
9
|
+
import { PaymentService } from '../../../service/payment.service';
|
|
10
|
+
export declare class TransactionHeaderPaymentButtonComponent extends TransactionBaseComponent {
|
|
11
|
+
transactionEventService: TransactionEventService;
|
|
12
|
+
service: TransactionService;
|
|
13
|
+
iconCacheService: IconCacheService;
|
|
14
|
+
protected dictionaryService: DictionaryService;
|
|
15
|
+
protected imageService: TransactionImageService;
|
|
16
|
+
protected changeDetector: ChangeDetectorRef;
|
|
17
|
+
private _paymentService;
|
|
18
|
+
showClass(): boolean;
|
|
19
|
+
paid: number;
|
|
20
|
+
toPay: number;
|
|
21
|
+
depositPayments: DepositPaymentViewModel[];
|
|
22
|
+
showPaymentDialog: boolean;
|
|
23
|
+
constructor(transactionEventService: TransactionEventService, service: TransactionService, iconCacheService: IconCacheService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef, _paymentService: PaymentService);
|
|
24
|
+
openPayment(event: MouseEvent): Promise<void>;
|
|
25
|
+
handleCloseDialogClick(event: MouseEvent): void;
|
|
26
|
+
transactionInfoSet(): Promise<void>;
|
|
27
|
+
private _getDepositPaymentInfo;
|
|
28
|
+
}
|
package/lib/enum/icon.enum.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare enum Icon {
|
|
|
22
22
|
CartShoppingSolid = "cart_shopping_solid",
|
|
23
23
|
CashRegister = "cash_register",
|
|
24
24
|
CheckDuotone = "check_duotone",
|
|
25
|
+
CreditCardRegular = "credit_card_regular",
|
|
25
26
|
CreditCardSolid = "credit_card_solid",
|
|
26
27
|
DeliveryTruck = "delivery_truck",
|
|
27
28
|
DetailView = "detail_view",
|
|
@@ -100,6 +101,7 @@ export declare enum Icon {
|
|
|
100
101
|
TruckMovingSolid = "truck_moving_solid",
|
|
101
102
|
Txt = "txt",
|
|
102
103
|
Unlock = "unlock",
|
|
104
|
+
UserRegular = "user_regular",
|
|
103
105
|
Warehouse = "warehouse",
|
|
104
106
|
XSolid = "x_solid"
|
|
105
107
|
}
|
|
@@ -41,6 +41,7 @@ export declare class TransactionBaseService {
|
|
|
41
41
|
applicationUser: boolean;
|
|
42
42
|
invoiceAddressSameAsDelivery: boolean;
|
|
43
43
|
activeRubric: TransactionTypeCategory;
|
|
44
|
+
getRelationOnRememberCurrentTransaction: boolean;
|
|
44
45
|
get titleForCheckout(): string;
|
|
45
46
|
get iconForCheckout(): Icon;
|
|
46
47
|
get paymentStepTitleForCheckout(): string;
|
|
@@ -91,12 +92,12 @@ export declare class TransactionBaseService {
|
|
|
91
92
|
getTransactionInfo(transId: number, lineId: number): Promise<TransactionInfoHistory[]>;
|
|
92
93
|
getRefTransactions(transId: number): Promise<RefTransaction[]>;
|
|
93
94
|
getPurchasePortalLines(request: GetPurchasePortalLine): Promise<PurchasePortalLine[]>;
|
|
95
|
+
saveTransactionAndCommit(response?: TransactionInfoResponse): Promise<boolean>;
|
|
94
96
|
rememberCurrentTransaction(value: TransactionInfoResponse): Promise<void>;
|
|
95
97
|
protected _checkHeaderStatus(): void;
|
|
96
98
|
protected _checkRefTransaction(): Promise<void>;
|
|
97
99
|
protected _handleAfterRememberCurrentTransaction(transactionInfoResponse: TransactionInfoResponse): Promise<void>;
|
|
98
100
|
protected initializeTransaction(): void;
|
|
99
|
-
protected _saveTransactionAndCommit(response?: TransactionInfoResponse): Promise<boolean>;
|
|
100
101
|
protected _isValidTransaction(): boolean;
|
|
101
102
|
private _lockTransaction;
|
|
102
103
|
private _getRelationClass;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/transaction",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.122",
|
|
4
4
|
"description": "Colijn IT transaction module for Angular 12",
|
|
5
5
|
"repository": "npm/npm",
|
|
6
6
|
"author": "Colijn IT",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@colijnit/articleapi": ">=1.0.16",
|
|
13
13
|
"@colijnit/catalog": ">=12.1.29",
|
|
14
14
|
"@colijnit/corecomponents": ">=1.12.0",
|
|
15
|
-
"@colijnit/corecomponents_v12": ">=12.0.
|
|
15
|
+
"@colijnit/corecomponents_v12": ">=12.0.118",
|
|
16
16
|
"@colijnit/ioneconnector": ">=2.1.11",
|
|
17
17
|
"@colijnit/mainapi": ">=1.0.10",
|
|
18
18
|
"@colijnit/relationapi": ">=1.0.6",
|