@colijnit/transaction 12.1.121 → 12.1.123
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 +845 -625
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +288 -284
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +289 -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 +3 -2
- 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/component/transaction-labeled-price-input/transaction-labeled-price-input.component.js +13 -6
- package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line-base.component.js +3 -2
- package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line.component.js +14 -20
- package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line.module.js +6 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-discount-button.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier-delivery-date-button.component.js +64 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier-delivery-date-button.module.js +27 -0
- package/esm2015/lib/component/transaction-line-purchase-confirmation/transaction-line-purchase-confirmation.component.js +17 -9
- package/esm2015/lib/component/transaction-line-purchase-confirmation/transaction-line-purchase-confirmation.module.js +4 -2
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.js +44 -26
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.module.js +4 -2
- 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 +599 -360
- 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-button/style/_layout.scss +12 -7
- package/lib/component/transaction-button/style/_material-definition.scss +2 -3
- 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/component/transaction-labeled-price-input/transaction-labeled-price-input.component.d.ts +4 -1
- package/lib/component/transaction-line-fields/transaction-line-supplier-delivery-date-button.component.d.ts +24 -0
- package/lib/component/transaction-line-fields/transaction-line-supplier-delivery-date-button.module.d.ts +2 -0
- package/lib/component/transaction-line-purchase-confirmation/style/_layout.scss +1 -0
- package/lib/component/transaction-line-purchase-confirmation/transaction-line-purchase-confirmation.component.d.ts +2 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/style/_layout.scss +25 -21
- package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.d.ts +6 -1
- package/lib/enum/icon.enum.d.ts +2 -0
- package/lib/service/transaction-base.service.d.ts +2 -1
- package/lib/style/_variables.scss +0 -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;
|
|
@@ -10,17 +10,15 @@
|
|
|
10
10
|
height: 100%;
|
|
11
11
|
flex-shrink: 0;
|
|
12
12
|
align-items: center;
|
|
13
|
-
&:not(.right) {
|
|
14
|
-
margin-right: $tp-transaction-button-icon-margin;
|
|
15
|
-
}
|
|
16
|
-
&.right {
|
|
17
|
-
margin-left: $tp-transaction-button-icon-margin;
|
|
18
|
-
}
|
|
19
13
|
|
|
20
14
|
.co-icon {
|
|
21
15
|
height: 100%;
|
|
22
16
|
width: auto;
|
|
23
|
-
|
|
17
|
+
aspect-ratio: 1;
|
|
18
|
+
svg {
|
|
19
|
+
height: $tp-transaction-button-icon-size;
|
|
20
|
+
width: $tp-transaction-button-icon-size;
|
|
21
|
+
}
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
.spacer {
|
|
@@ -33,6 +31,8 @@
|
|
|
33
31
|
display: flex;
|
|
34
32
|
flex-basis: 100%;
|
|
35
33
|
overflow: hidden;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
padding: $tp-transaction-button-label-title-wrapper-padding;
|
|
36
36
|
&.title {
|
|
37
37
|
flex-direction: column;
|
|
38
38
|
row-gap: $tp-transaction-button-label-title-wrapper-row-gap;
|
|
@@ -65,5 +65,10 @@
|
|
|
65
65
|
justify-content: center;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
+
&.discount {
|
|
69
|
+
span {
|
|
70
|
+
color: $tp-color-negative-value;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
68
73
|
}
|
|
69
74
|
}
|
|
@@ -3,9 +3,7 @@ $tp-transaction-button-font-size: 11px !default;
|
|
|
3
3
|
$tp-transaction-button-width: $tp-transaction-default-button-width !default;
|
|
4
4
|
$tp-transaction-button-width-big: $tp-transaction-default-button-width-big !default;
|
|
5
5
|
$tp-transaction-button-font-weight: 600 !default;
|
|
6
|
-
$tp-transaction-button-icon-size:
|
|
7
|
-
$tp-transaction-button-icon-margin: 5px !default;;
|
|
8
|
-
$tp-transaction-button-icon-padding: 4px !default;;
|
|
6
|
+
$tp-transaction-button-icon-size: 50% !default;
|
|
9
7
|
$tp-transaction-button-icon-spacer-width: 1px !default;
|
|
10
8
|
$tp-transaction-button-height: $tp-transaction-default-button-height !default;
|
|
11
9
|
$tp-transaction-button-background-color: $tp-default-background-accent !default;
|
|
@@ -18,4 +16,5 @@ $tp-transaction-button-label-row-gap: 9px !default;
|
|
|
18
16
|
$tp-transaction-button-label-padding-right: 5px !default;
|
|
19
17
|
$tp-transaction-button-label-color: rgba(0, 0, 0, 0.7) !default;
|
|
20
18
|
$tp-transaction-button-label-title-wrapper-row-gap: 9px !default;
|
|
19
|
+
$tp-transaction-button-label-title-wrapper-padding: 0 10px !default;
|
|
21
20
|
$tp-transaction-button-title-color: rgba(0, 0, 0, 0.7) !default;
|
|
@@ -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/component/transaction-labeled-price-input/transaction-labeled-price-input.component.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
1
2
|
import { InputTextComponent } from "@colijnit/corecomponents_v12";
|
|
2
3
|
export declare class TransactionLabeledPriceInputComponent {
|
|
3
4
|
set child(content: any);
|
|
4
|
-
placeholder: string;
|
|
5
5
|
model: number;
|
|
6
|
+
placeholder: string;
|
|
6
7
|
defaultEditMode: boolean;
|
|
7
8
|
readonly: boolean;
|
|
8
9
|
required: boolean;
|
|
9
10
|
set editMode(value: boolean);
|
|
10
11
|
get editMode(): boolean;
|
|
12
|
+
modelChange: EventEmitter<number>;
|
|
11
13
|
handleClick(event: MouseEvent): void;
|
|
12
14
|
input: InputTextComponent;
|
|
13
15
|
private _editMode;
|
|
14
16
|
showClass(): boolean;
|
|
15
17
|
constructor();
|
|
18
|
+
handleModelChange(event: number): void;
|
|
16
19
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
|
+
import { Icon } from '../../enum/icon.enum';
|
|
3
|
+
import { IconCacheService } from '../../service/icon-cache.service';
|
|
4
|
+
import { TransactionBaseComponent } from '../core/base/transaction-base.component';
|
|
5
|
+
import { OverlayService } from '@colijnit/corecomponents_v12';
|
|
6
|
+
import { TransactionEventService } from '../../service/transaction-event.service';
|
|
7
|
+
import { TransactionService } from '../../service/transaction.service';
|
|
8
|
+
import { DictionaryService } from '../../service/dictionary.service';
|
|
9
|
+
import { TransactionImageService } from '../../service/transaction-image.service';
|
|
10
|
+
export declare class TransactionLineSupplierDeliveryDateButtonComponent 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 _overlayService;
|
|
18
|
+
private _elementRef;
|
|
19
|
+
readonly icons: typeof Icon;
|
|
20
|
+
showClass(): boolean;
|
|
21
|
+
private _calendarPopupComponentRef;
|
|
22
|
+
constructor(transactionEventService: TransactionEventService, service: TransactionService, iconCacheService: IconCacheService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef, _overlayService: OverlayService, _elementRef: ElementRef);
|
|
23
|
+
handleShowDialog(event: MouseEvent): void;
|
|
24
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { TransactionBaseComponent } from '../core/base/transaction-base.component';
|
|
3
3
|
import { DocDeliveryBatch } from '@colijnit/transactionapi/build/model/doc-delivery-batch.bo';
|
|
4
|
+
import { TransactionTypeCategory } from "../../enum/transaction-type-category.enum";
|
|
4
5
|
export declare class TransactionLinePurchaseConfirmationComponent extends TransactionBaseComponent implements OnInit, OnDestroy {
|
|
6
|
+
readonly transactionTypeCategory: typeof TransactionTypeCategory;
|
|
5
7
|
set isEditing(value: boolean);
|
|
6
8
|
get isEditing(): boolean;
|
|
7
9
|
showClass(): boolean;
|
|
@@ -2,30 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
@include export-module('cc-transaction-quick-access-order-confirmation-layout') {
|
|
4
4
|
.co-transaction-quick-access-order-confirmation {
|
|
5
|
-
display: flex;
|
|
6
|
-
column-gap: 10px;
|
|
7
|
-
align-items: center;
|
|
8
5
|
|
|
9
|
-
.
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
.quick-access-wrapper {
|
|
7
|
+
|
|
8
|
+
.confirm-inputs, .show-confirmation-inputs-wrapper {
|
|
9
|
+
display: flex;
|
|
10
|
+
column-gap: 10px;
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
.new-confirmation-button {
|
|
14
|
+
height: 30px;
|
|
15
|
+
color: $tp-color-action;
|
|
16
|
+
.co-icon {
|
|
17
|
+
svg { // for fontawesome icons
|
|
18
|
+
fill: $tp-color-action;
|
|
19
|
+
}
|
|
20
|
+
& [fill] { // for own icons
|
|
21
|
+
fill: $tp-color-action;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
12
25
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
border-radius: $tp-default-border-radius;
|
|
17
|
-
padding: 5px;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
align-items: center;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
width: 65px;
|
|
24
|
-
height: 40px;
|
|
26
|
+
.co-input-checkbox {
|
|
27
|
+
margin-left: 10px;
|
|
28
|
+
}
|
|
25
29
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
.co-input-date {
|
|
31
|
+
min-width: 150px;
|
|
32
|
+
}
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
}
|