@colijnit/transaction 12.1.116 → 12.1.117
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 +496 -466
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +336 -340
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +337 -341
- package/esm2015/lib/component/checkout/checkout-overview-payment/checkout-overview-payment.component.js +4 -2
- package/esm2015/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +7 -2
- package/esm2015/lib/component/checkout/checkout.component.js +6 -3
- package/esm2015/lib/component/core/base/transaction-input-field-base.component.js +4 -1
- package/esm2015/lib/component/payment/payment.component.js +5 -2
- package/esm2015/lib/component/payment/payment.module.js +2 -4
- package/esm2015/lib/component/relation/relation-address/relation-address.component.js +5 -1
- package/esm2015/lib/component/relation/relation-contact-details/relation-contact-details.component.js +4 -2
- package/esm2015/lib/component/stepper/stepper.component.js +20 -7
- package/esm2015/lib/component/transaction/transaction.module.js +2 -4
- package/esm2015/lib/component/transaction-confirmation-details/transaction-confirmation-details.component.js +1 -2
- package/esm2015/lib/component/transaction-header-fields/transaction-header-administrative-relation.component.js +7 -2
- package/esm2015/lib/component/transaction-header-fields/transaction-header-branch.component.js +5 -2
- package/esm2015/lib/component/transaction-header-fields/transaction-header-currency.component.js +7 -2
- package/esm2015/lib/component/transaction-header-fields/transaction-header-payment-condition.component.js +6 -3
- package/esm2015/lib/component/transaction-header-fields/transaction-header-price-kind.component.js +2 -2
- package/esm2015/lib/component/transaction-header-fields/transaction-header-sales-person.component.js +7 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-button.component.js +5 -2
- package/esm2015/lib/component/transaction-line-purchase-confirmation/transaction-line-purchase-confirmation.component.js +1 -2
- package/esm2015/lib/enum/icon.enum.js +3 -1
- package/esm2015/lib/enum/transaction-type-category.enum.js +1 -2
- package/esm2015/lib/model/icon-svg.js +3 -1
- package/esm2015/lib/model/relation-any-type.js +1 -1
- package/esm2015/lib/res/dictionary/dictionaries.js +2 -2
- package/esm2015/lib/service/transaction-base.service.js +31 -1
- package/esm2015/lib/service/transaction-connector-adapter.service.js +13 -1
- package/esm2015/lib/service/transaction-connector.service.js +4 -1
- package/esm2015/lib/service/transaction-mapping.service.js +1 -3
- package/esm2015/lib/service/transaction.service.js +9 -5
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +140 -152
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/checkout/checkout-overview-payment/checkout-overview-payment.component.d.ts +1 -0
- package/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.d.ts +1 -0
- package/lib/component/checkout/checkout-overview-relation-edit/style/_layout.scss +5 -0
- package/lib/component/checkout/checkout.component.d.ts +1 -0
- package/lib/component/payment/style/_layout.scss +20 -0
- package/lib/component/payment/style/_material-definition.scss +7 -0
- package/lib/component/payment/style/_theme.scss +24 -0
- package/lib/component/payment/style/material.scss +0 -1
- package/lib/component/relation/relation-address-tile/style/_layout.scss +6 -0
- package/lib/component/relation/relation-address-tile/style/_material-definition.scss +2 -0
- package/lib/component/relation/relation-contact-details/relation-contact-details.component.d.ts +1 -0
- package/lib/component/stepper/stepper.component.d.ts +5 -0
- package/lib/component/stepper/style/_layout.scss +25 -0
- package/lib/component/stepper/style/_material-definition.scss +12 -0
- package/lib/component/stepper/style/_theme.scss +14 -0
- package/lib/component/tile/style/_layout.scss +2 -4
- package/lib/component/tile/style/_material-definition.scss +1 -1
- package/lib/component/transaction-header-fields/transaction-header-administrative-relation.component.d.ts +2 -0
- package/lib/component/transaction-header-fields/transaction-header-branch.component.d.ts +2 -1
- package/lib/component/transaction-header-fields/transaction-header-currency.component.d.ts +2 -0
- package/lib/component/transaction-header-fields/transaction-header-payment-condition.component.d.ts +2 -0
- package/lib/component/transaction-header-fields/transaction-header-price-kind.component.d.ts +1 -0
- package/lib/component/transaction-header-fields/transaction-header-sales-person.component.d.ts +2 -0
- package/lib/enum/icon.enum.d.ts +2 -0
- package/lib/enum/transaction-type-category.enum.d.ts +1 -2
- package/lib/model/relation-any-type.d.ts +2 -1
- package/lib/res/dictionary/dictionaries.d.ts +1 -0
- package/lib/service/transaction-base.service.d.ts +8 -0
- package/lib/service/transaction-connector-adapter.service.d.ts +1 -0
- package/lib/service/transaction-connector.service.d.ts +1 -0
- package/lib/style/_variables.scss +2 -1
- package/package.json +4 -4
- package/esm2015/lib/component/payment-to-pay/payment-to-pay.component.js +0 -26
- package/esm2015/lib/component/payment-to-pay/payment-to-pay.module.js +0 -21
- package/esm2015/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.component.js +0 -52
- package/esm2015/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.module.js +0 -34
- package/lib/component/payment-to-pay/payment-to-pay.component.d.ts +0 -4
- package/lib/component/payment-to-pay/payment-to-pay.module.d.ts +0 -2
- package/lib/component/payment-to-pay/style/_layout.scss +0 -26
- package/lib/component/payment-to-pay/style/_material-definition.scss +0 -6
- package/lib/component/payment-to-pay/style/_theme.scss +0 -9
- package/lib/component/payment-to-pay/style/material.scss +0 -4
- package/lib/component/transaction-cash-register-order/style/_layout.scss +0 -126
- package/lib/component/transaction-cash-register-order/style/_material-definition.scss +0 -0
- package/lib/component/transaction-cash-register-order/style/_theme.scss +0 -4
- package/lib/component/transaction-cash-register-order/style/material.scss +0 -5
- package/lib/component/transaction-line/transaction-cash-register-order-line/style/_layout.scss +0 -4
- package/lib/component/transaction-line/transaction-cash-register-order-line/style/_material-definition.scss +0 -0
- package/lib/component/transaction-line/transaction-cash-register-order-line/style/_theme.scss +0 -4
- package/lib/component/transaction-line/transaction-cash-register-order-line/style/material.scss +0 -4
- package/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.component.d.ts +0 -4
- package/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.module.d.ts +0 -2
package/lib/component/checkout/checkout-overview-payment/checkout-overview-payment.component.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare class CheckoutOverviewPaymentComponent implements OnInit {
|
|
|
9
9
|
readonly icons: typeof Icon;
|
|
10
10
|
transaction: TransactionInfoResponse;
|
|
11
11
|
relation: RelationAnyType;
|
|
12
|
+
showPayment: boolean;
|
|
12
13
|
changeYourDataClick: EventEmitter<void>;
|
|
13
14
|
changeDeliveryClick: EventEmitter<void>;
|
|
14
15
|
payed: EventEmitter<number>;
|
|
@@ -36,6 +36,7 @@ export declare class CheckoutOverviewRelationEditComponent implements OnInit, Af
|
|
|
36
36
|
ngOnInit(): Promise<void>;
|
|
37
37
|
ngAfterViewInit(): void;
|
|
38
38
|
handleRelationTypeChange(relation: Relation): void;
|
|
39
|
+
emptyRelation(event: MouseEvent): void;
|
|
39
40
|
handleCustomerGroupChange(group: string): void;
|
|
40
41
|
updateRelation(rel: RelationAnyType): void;
|
|
41
42
|
submit(): boolean;
|
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
@include export-module('co-checkout-overview-relation-edit-layout') {
|
|
4
4
|
.co-checkout-overview-relation-edit {
|
|
5
|
+
display: block;
|
|
6
|
+
width: 100%;
|
|
5
7
|
font-family: $tp-checkout-relation-font-family;
|
|
6
8
|
font-size: $tp-checkout-relation-font-size;
|
|
9
|
+
.empty-relation-button {
|
|
10
|
+
width: auto;
|
|
11
|
+
}
|
|
7
12
|
}
|
|
8
13
|
}
|
|
@@ -14,6 +14,7 @@ export declare class CheckoutComponent implements OnInit {
|
|
|
14
14
|
service: TransactionService;
|
|
15
15
|
private _dictionary;
|
|
16
16
|
private _dialogService;
|
|
17
|
+
readonly transKind: typeof TransactionKind;
|
|
17
18
|
stepper: StepperComponent;
|
|
18
19
|
stepRelation: StepperStepComponent;
|
|
19
20
|
stepDelivery: StepperStepComponent;
|
|
@@ -52,6 +52,26 @@
|
|
|
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
|
+
}
|
|
55
75
|
|
|
56
76
|
.payment-deposit {
|
|
57
77
|
grid-column: 1 / 1;
|
|
@@ -10,7 +10,14 @@ $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;
|
|
13
18
|
$tp-payment-amount-border: 1px solid !default;
|
|
19
|
+
$tp-payment-amount-border-color: $tp-color-border !default;
|
|
20
|
+
$tp-payment-amount-background-color: #dedede5c !default;
|
|
14
21
|
$tp-payment-error-margin: 5px 0 !default;
|
|
15
22
|
$tp-payment-error-font-family: $tp-font-family !default;
|
|
16
23
|
$tp-payment-error-font-size: $tp-font-size !default;
|
|
@@ -7,6 +7,11 @@
|
|
|
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
|
+
}
|
|
10
15
|
.payment-to-pay-button {
|
|
11
16
|
.payment-error-message {
|
|
12
17
|
color: $tp-payment-error-font-color;
|
|
@@ -15,5 +20,24 @@
|
|
|
15
20
|
background-color: $tp-color-colijn-orange;
|
|
16
21
|
}
|
|
17
22
|
}
|
|
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
|
+
}
|
|
18
42
|
}
|
|
19
43
|
}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
.co-relation-address-tile {
|
|
3
3
|
display: flex;
|
|
4
4
|
position: relative;
|
|
5
|
+
.co-tile {
|
|
6
|
+
.co-tile-wrapper {
|
|
7
|
+
width: $tp-relation-address-tile-width;
|
|
8
|
+
height: $tp-relation-address-tile-height;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
5
11
|
.relation-content-wrapper {
|
|
6
12
|
display: flex;
|
|
7
13
|
flex-direction: column;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
$tp-relation-address-tile-font-family: $tp-font-family !default;
|
|
2
2
|
$tp-relation-address-tile-font-size: $tp-font-size !default;
|
|
3
|
+
$tp-relation-address-tile-width: 200px !default;
|
|
4
|
+
$tp-relation-address-tile-height: 120px !default;
|
|
3
5
|
$tp-relation-address-tile-row-gap: 3px;
|
|
4
6
|
$tp-relation-address-tile-padding: 10px !default;
|
|
5
7
|
$tp-relation-address-tile-border-radius: 5px !default;
|
package/lib/component/relation/relation-contact-details/relation-contact-details.component.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { RelationBaseComponent } from '../relation-base.component';
|
|
|
3
3
|
import { RelationKind } from '@colijnit/relationapi/build/enum/relation-kind.enum';
|
|
4
4
|
export declare class RelationContactDetailsComponent extends RelationBaseComponent {
|
|
5
5
|
readonly: boolean;
|
|
6
|
+
showPhone: boolean;
|
|
6
7
|
relationKind: RelationKind;
|
|
7
8
|
showClass(): boolean;
|
|
8
9
|
emailAddress: ContactOption;
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { EventEmitter } from "@angular/core";
|
|
2
2
|
import { StepperStepComponent } from "./component/stepper-step.component";
|
|
3
3
|
import { Icon } from "../../enum/icon.enum";
|
|
4
|
+
import { IconCacheService } from '../../service/icon-cache.service';
|
|
4
5
|
export interface steps {
|
|
5
6
|
index: number;
|
|
6
7
|
description: string;
|
|
7
8
|
complete: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare class StepperComponent {
|
|
11
|
+
iconCacheService: IconCacheService;
|
|
10
12
|
readonly icons: typeof Icon;
|
|
11
13
|
set content(children: any);
|
|
12
14
|
set child(child: any);
|
|
15
|
+
title: string;
|
|
16
|
+
titleIcon: Icon;
|
|
13
17
|
finishButtonLabel: string;
|
|
14
18
|
showCreate: boolean;
|
|
15
19
|
createClicked: EventEmitter<MouseEvent>;
|
|
@@ -27,6 +31,7 @@ export declare class StepperComponent {
|
|
|
27
31
|
private _stepChildren;
|
|
28
32
|
private _activeStep;
|
|
29
33
|
private _deliveryTruckClientRect;
|
|
34
|
+
constructor(iconCacheService: IconCacheService);
|
|
30
35
|
goto(idx: number): void;
|
|
31
36
|
gotoPrevious(): void;
|
|
32
37
|
gotoNext(): void;
|
|
@@ -97,11 +97,36 @@ $index-origin: calc((#{$tp-co-stepper-step-index-size} / 2) + (#{$tp-co-stepper-
|
|
|
97
97
|
display: flex;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
+
.stepper-title {
|
|
101
|
+
display: flex;
|
|
102
|
+
justify-content: space-between;
|
|
103
|
+
padding: $tp-co-stepper-step-title-padding;
|
|
104
|
+
.stepper-title-wrapper {
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
column-gap: $tp-co-stepper-step-title-column-gap;
|
|
108
|
+
}
|
|
109
|
+
.title {
|
|
110
|
+
font-family: $tp-co-stepper-step-title-font-family;
|
|
111
|
+
font-size: $tp-co-stepper-step-title-font-size;
|
|
112
|
+
font-weight: $tp-co-stepper-step-title-font-weight;
|
|
113
|
+
}
|
|
114
|
+
.title-icon {
|
|
115
|
+
height: $tp-co-stepper-step-title-icon-size;
|
|
116
|
+
width: $tp-co-stepper-step-title-icon-size;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
100
119
|
.stepper-button-wrapper {
|
|
101
120
|
display: flex;
|
|
102
121
|
column-gap: 5px;
|
|
103
122
|
justify-content: flex-end;
|
|
104
123
|
margin: 15px 0;
|
|
124
|
+
.co-button {
|
|
125
|
+
.co-icon {
|
|
126
|
+
width: $tp-co-stepper-step-button-icon-size;
|
|
127
|
+
height: $tp-co-stepper-step-button-icon-size;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
105
130
|
}
|
|
106
131
|
}
|
|
107
132
|
}
|
|
@@ -16,3 +16,15 @@ $tp-co-stepper-step-description-color: black !default;
|
|
|
16
16
|
$tp-co-stepper-step-description-font-weight: bold !default;
|
|
17
17
|
$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
|
+
|
|
20
|
+
$tp-co-stepper-step-title-padding: 30px !default;
|
|
21
|
+
$tp-co-stepper-step-title-column-gap: 20px !default;
|
|
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;
|
|
26
|
+
|
|
27
|
+
$tp-co-stepper-step-button-color: $tp-color-action !default;
|
|
28
|
+
$tp-co-stepper-step-button-background-color: $tp-default-background-accent !default;
|
|
29
|
+
$tp-co-stepper-step-button-icon-size: 15px !default;
|
|
30
|
+
$tp-co-stepper-step-button-icon-color: $tp-color-action !default;
|
|
@@ -39,5 +39,19 @@
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
.stepper-button-wrapper {
|
|
43
|
+
.co-button {
|
|
44
|
+
color: $tp-co-stepper-step-button-color;
|
|
45
|
+
background: $tp-co-stepper-step-button-background-color;
|
|
46
|
+
.co-icon {
|
|
47
|
+
svg { // for fontawesome icons
|
|
48
|
+
fill: $tp-co-stepper-step-button-icon-color;
|
|
49
|
+
}
|
|
50
|
+
& [fill] { // for own icons
|
|
51
|
+
fill: $tp-co-stepper-step-button-icon-color;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
42
56
|
}
|
|
43
57
|
}
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
.co-tile {
|
|
5
5
|
display: flex;
|
|
6
6
|
position: relative;
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
7
|
&.selected {
|
|
10
8
|
transform: scale($tp-tile-selected-zoom);
|
|
11
9
|
}
|
|
@@ -17,8 +15,8 @@
|
|
|
17
15
|
border: $tp-tile-border;
|
|
18
16
|
border-radius: $tp-tile-border-radius;
|
|
19
17
|
padding: $tp-tile-padding;
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
width: $tp-tile-min-width;
|
|
19
|
+
height: $tp-tile-min-height;
|
|
22
20
|
}
|
|
23
21
|
.co-tile-select-wrapper {
|
|
24
22
|
//position: absolute;
|
|
@@ -4,7 +4,7 @@ $tp-tile-row-gap: 3px;
|
|
|
4
4
|
$tp-tile-padding: 10px !default;
|
|
5
5
|
$tp-tile-border: 2px solid !default;
|
|
6
6
|
$tp-tile-border-radius: 5px !default;
|
|
7
|
-
$tp-tile-min-width:
|
|
7
|
+
$tp-tile-min-width: 150px !default;
|
|
8
8
|
$tp-tile-min-height: 100px !default;
|
|
9
9
|
$tp-tile-icon-width: 20px !default;
|
|
10
10
|
$tp-tile-background-color: $tp-color-light !default;
|
|
@@ -16,7 +16,9 @@ export declare class TransactionHeaderAdministrativeRelationComponent extends Tr
|
|
|
16
16
|
protected changeDetector: ChangeDetectorRef;
|
|
17
17
|
private _relationService;
|
|
18
18
|
fields: Object;
|
|
19
|
+
admCoordModel: RelationListObject;
|
|
19
20
|
constructor(transactionEventService: TransactionEventService, service: TransactionService, iconCacheService: IconCacheService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef, _relationService: RelationService);
|
|
20
21
|
ngOnInit(): void;
|
|
21
22
|
commitTransactionAdministrative(relation: number): Promise<boolean>;
|
|
23
|
+
private _setRelationModel;
|
|
22
24
|
}
|
|
@@ -18,7 +18,7 @@ export declare class TransactionHeaderBranchComponent extends TransactionFilterP
|
|
|
18
18
|
private _relationService;
|
|
19
19
|
simple: boolean;
|
|
20
20
|
fields: Object;
|
|
21
|
-
branchModel:
|
|
21
|
+
branchModel: BranchLov;
|
|
22
22
|
protected codeField: string;
|
|
23
23
|
protected checkField: string;
|
|
24
24
|
protected propsForLabel: string[];
|
|
@@ -26,4 +26,5 @@ export declare class TransactionHeaderBranchComponent extends TransactionFilterP
|
|
|
26
26
|
commit(branch: number | RelationSmallObject): Promise<boolean>;
|
|
27
27
|
protected transactionSet(): void;
|
|
28
28
|
protected transactionInfoSet(): void;
|
|
29
|
+
private _setBranchModel;
|
|
29
30
|
}
|
|
@@ -16,8 +16,10 @@ export declare class TransactionHeaderCurrencyComponent extends TransactionFilte
|
|
|
16
16
|
protected changeDetector: ChangeDetectorRef;
|
|
17
17
|
private _relationService;
|
|
18
18
|
fields: Object;
|
|
19
|
+
currencyModel: Currency;
|
|
19
20
|
constructor(transactionEventService: TransactionEventService, service: TransactionService, iconCacheService: IconCacheService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef, _relationService: RelationService);
|
|
20
21
|
ngOnInit(): void;
|
|
21
22
|
commitTransactionCurrency(currency: number): Promise<boolean>;
|
|
22
23
|
protected transactionSet(): void;
|
|
24
|
+
private _setCurrencyModel;
|
|
23
25
|
}
|
package/lib/component/transaction-header-fields/transaction-header-payment-condition.component.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { TransactionFilterPopupBaseComponent } from '../core/base/transaction-fi
|
|
|
3
3
|
import { PaymentCondition } from '@colijnit/mainapi/build/model/payment-condition.bo';
|
|
4
4
|
export declare class TransactionHeaderPaymentConditionComponent extends TransactionFilterPopupBaseComponent<PaymentCondition> implements OnInit {
|
|
5
5
|
fields: Object;
|
|
6
|
+
paymentConditionModel: PaymentCondition;
|
|
6
7
|
ngOnInit(): void;
|
|
7
8
|
commitTransactionPaymentCondition(condition: string): Promise<boolean>;
|
|
9
|
+
private _setPaymentConditionModel;
|
|
8
10
|
}
|
package/lib/component/transaction-header-fields/transaction-header-price-kind.component.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { TransactionFilterPopupBaseComponent } from '../core/base/transaction-fi
|
|
|
3
3
|
import { SalesPerson } from '@colijnit/relationapi/build/model/sales-person.bo';
|
|
4
4
|
export declare class TransactionHeaderPriceKindComponent extends TransactionFilterPopupBaseComponent<SalesPerson> implements OnInit {
|
|
5
5
|
fields: Object;
|
|
6
|
+
priceKindModel: any;
|
|
6
7
|
ngOnInit(): void;
|
|
7
8
|
commitTransactionPriceKind(priceKind: string): Promise<boolean>;
|
|
8
9
|
protected transactionSet(): void;
|
package/lib/component/transaction-header-fields/transaction-header-sales-person.component.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { TransactionFilterPopupBaseComponent } from '../core/base/transaction-fi
|
|
|
3
3
|
import { SalesPerson } from '@colijnit/relationapi/build/model/sales-person.bo';
|
|
4
4
|
export declare class TransactionHeaderSalesPersonComponent extends TransactionFilterPopupBaseComponent<SalesPerson> implements OnInit {
|
|
5
5
|
fields: Object;
|
|
6
|
+
salesPerson: SalesPerson;
|
|
6
7
|
ngOnInit(): void;
|
|
7
8
|
commitTransactionSalesPerson(relation: number): Promise<boolean>;
|
|
9
|
+
private _setSalesPerson;
|
|
8
10
|
}
|
package/lib/enum/icon.enum.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
2
2
|
export declare enum Icon {
|
|
3
|
+
ArrowLeftRegular = "arrow_left_regular",
|
|
3
4
|
ArrowPointDown = "arrow_point_down",
|
|
4
5
|
ArrowPointLeft = "arrow_point_left",
|
|
5
6
|
ArrowPointRight = "arrow_point_right",
|
|
7
|
+
ArrowRightRegular = "arrow_right_regular",
|
|
6
8
|
Article = "article",
|
|
7
9
|
AtSolid = "at_solid",
|
|
8
10
|
BarcodeRegular = "barcode_regular",
|
|
@@ -11,6 +11,5 @@ export declare enum TransactionTypeCategory {
|
|
|
11
11
|
SalesOrderLogistics = "salesOrderLogistics",
|
|
12
12
|
SalesOrderPlanning = "salesOrderPlanning",
|
|
13
13
|
SalesOrderDeliveryNote = "salesOrderDeliveryNote",
|
|
14
|
-
SalesOrderInvoice = "salesOrderInvoice"
|
|
15
|
-
SalesOrderCashRegister = "salesOrderCashRegister"
|
|
14
|
+
SalesOrderInvoice = "salesOrderInvoice"
|
|
16
15
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { CustomerFullObject } from "@colijnit/relationapi/build/model/customer-full-object.bo";
|
|
2
2
|
import { SupplierFullObject } from "@colijnit/relationapi/build/model/supplier-full-object.bo";
|
|
3
|
-
|
|
3
|
+
import { Relation } from '@colijnit/relationapi/build/model/relation.bo';
|
|
4
|
+
export declare type RelationAnyType = Relation | CustomerFullObject | SupplierFullObject;
|
|
@@ -12034,6 +12034,7 @@ export declare class Dictionaries {
|
|
|
12034
12034
|
EMPLOYMENT_RELATION: string;
|
|
12035
12035
|
EMPLOYMENT_START_DATE: string;
|
|
12036
12036
|
EMPLOYMENT_TYPE: string;
|
|
12037
|
+
EMPTY: string;
|
|
12037
12038
|
EMPTY_ALL: string;
|
|
12038
12039
|
EMPTY_MAX_USAGE: string;
|
|
12039
12040
|
EMPTY_VALIDITY_AMOUNT: string;
|
|
@@ -18,6 +18,7 @@ import { RefTransaction } from '@colijnit/transactionapi/build/model/ref-transac
|
|
|
18
18
|
import { TransactionSearchViewRequest } from '@colijnit/transactionapi/build/model/transaction-search-view-request';
|
|
19
19
|
import { TransactionSearchResult } from '../model/transaction-search-result';
|
|
20
20
|
import { TransactionTypeCategory } from '../enum/transaction-type-category.enum';
|
|
21
|
+
import { Icon } from '../enum/icon.enum';
|
|
21
22
|
export declare class TransactionBaseService {
|
|
22
23
|
optionsService: OptionsService;
|
|
23
24
|
protected dialogService: DialogService;
|
|
@@ -28,6 +29,9 @@ export declare class TransactionBaseService {
|
|
|
28
29
|
protected transactionEventService: TransactionEventService;
|
|
29
30
|
protected relationService: RelationService;
|
|
30
31
|
private readonly _relationClassFromTransactionKind;
|
|
32
|
+
private readonly _titleFromTransactionKind;
|
|
33
|
+
private readonly _iconFromTransactionKind;
|
|
34
|
+
private readonly _checkoutPaymentStepTitleFromTransactionKind;
|
|
31
35
|
logout: Subject<void>;
|
|
32
36
|
transactionUpdated: BehaviorSubject<TransactionInfoResponse>;
|
|
33
37
|
relationUpdated: BehaviorSubject<Relation>;
|
|
@@ -37,6 +41,9 @@ export declare class TransactionBaseService {
|
|
|
37
41
|
applicationUser: boolean;
|
|
38
42
|
invoiceAddressSameAsDelivery: boolean;
|
|
39
43
|
activeRubric: TransactionTypeCategory;
|
|
44
|
+
get titleForCheckout(): string;
|
|
45
|
+
get iconForCheckout(): Icon;
|
|
46
|
+
get paymentStepTitleForCheckout(): string;
|
|
40
47
|
set transactionKind(value: TransactionKind);
|
|
41
48
|
get transactionKind(): TransactionKind;
|
|
42
49
|
currentTransaction: TransactionInfoResponse;
|
|
@@ -74,6 +81,7 @@ export declare class TransactionBaseService {
|
|
|
74
81
|
rollback(): Promise<boolean>;
|
|
75
82
|
searchTransactions(request: TransactionSearchViewRequest): Promise<TransactionSearchResult>;
|
|
76
83
|
getTransactionById(transactionId: number): Promise<void>;
|
|
84
|
+
getRefreshedTransactionFromDatabase(transactionId: number): Promise<void>;
|
|
77
85
|
tryToLockTransaction(id: number, version: number, secondAttempt?: boolean): Promise<boolean>;
|
|
78
86
|
getTransactionInfo(transId: number, lineId: number): Promise<TransactionInfoHistory[]>;
|
|
79
87
|
getRefTransactions(transId: number): Promise<RefTransaction[]>;
|
|
@@ -106,6 +106,7 @@ export declare class TransactionConnectorAdapterService {
|
|
|
106
106
|
getArticleBoundTextLinesOfArticleLine(articleLineUuid: string): Promise<TransactionLineInfo[]>;
|
|
107
107
|
getTransactionByNrAndKind(kind: TransactionKind, transactionNo: number): Promise<TransactionInfoResponse>;
|
|
108
108
|
getTransactionById(transactionId: number): Promise<TransactionInfoResponse>;
|
|
109
|
+
getRefreshedTransactionFromDatabase(transactionId: number): Promise<TransactionInfoResponse>;
|
|
109
110
|
deleteTransactionByUuId(uuid: string): Promise<TransactionInfoResponse>;
|
|
110
111
|
lockTransactionById(transactionId: number, version: number): Promise<TransactionLockResult>;
|
|
111
112
|
getCashRegisters(branch?: string, group?: number): Promise<CashRegister[]>;
|
|
@@ -102,6 +102,7 @@ export declare class TransactionConnectorService {
|
|
|
102
102
|
getArticleBoundTextLinesOfArticleLine(articleLineUuid: string): Promise<TransactionLineInfo[]>;
|
|
103
103
|
getTransactionByNrAndKind(kind: TransactionKind, transactionNo: number): Promise<TransactionInfoResponse>;
|
|
104
104
|
getTransactionById(transactionId: number): Promise<TransactionInfoResponse>;
|
|
105
|
+
getRefreshedTransactionFromDatabase(transactionId: number): Promise<TransactionInfoResponse>;
|
|
105
106
|
deleteTransactionByUuId(uuid: string): Promise<TransactionInfoResponse>;
|
|
106
107
|
lockTransactionById(transId: number, version: number): Promise<TransactionLockResult>;
|
|
107
108
|
commit(): Promise<boolean>;
|
|
@@ -107,7 +107,8 @@ $tp-payment-amount-border-color: $tp-color-border !default;
|
|
|
107
107
|
|
|
108
108
|
/* core components override */
|
|
109
109
|
$cc-color-action: $tp-color-font !default;
|
|
110
|
-
$cc-btn-color: $tp-
|
|
110
|
+
$cc-btn-color: $tp-default-background-accent !default;
|
|
111
|
+
$cc-btn-text-color: $tp-color-font !default;
|
|
111
112
|
$cc-input-checkbox-border-radius: 4px !default;
|
|
112
113
|
$cc-checkbox-border-radius: 0 !default;
|
|
113
114
|
$cc-checkbox-check-background-color: white !default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/transaction",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.117",
|
|
4
4
|
"description": "Colijn IT transaction module for Angular 12",
|
|
5
5
|
"repository": "npm/npm",
|
|
6
6
|
"author": "Colijn IT",
|
|
@@ -12,13 +12,13 @@
|
|
|
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.111",
|
|
16
16
|
"@colijnit/ioneconnector": ">=2.1.11",
|
|
17
17
|
"@colijnit/mainapi": ">=1.0.10",
|
|
18
|
-
"@colijnit/relationapi": ">=1.0.
|
|
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.
|
|
21
|
+
"@colijnit/transactionapi": ">=1.1.80",
|
|
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",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Component, HostBinding, Input, ViewEncapsulation } from "@angular/core";
|
|
2
|
-
export class PaymentToPayComponent {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.amountToPay = 0;
|
|
5
|
-
}
|
|
6
|
-
showClass() {
|
|
7
|
-
return true;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
PaymentToPayComponent.decorators = [
|
|
11
|
-
{ type: Component, args: [{
|
|
12
|
-
selector: "co-payment-to-pay",
|
|
13
|
-
template: `
|
|
14
|
-
<div class="payment-to-pay">
|
|
15
|
-
<div [textContent]="'TO_PAY' | localize"></div>
|
|
16
|
-
<div class="payment-amount" [textContent]="amountToPay === 0 ? amountToPay : (amountToPay | coCurrency)"></div>
|
|
17
|
-
</div>
|
|
18
|
-
`,
|
|
19
|
-
encapsulation: ViewEncapsulation.None
|
|
20
|
-
},] }
|
|
21
|
-
];
|
|
22
|
-
PaymentToPayComponent.propDecorators = {
|
|
23
|
-
amountToPay: [{ type: Input }],
|
|
24
|
-
showClass: [{ type: HostBinding, args: ["class.co-payment-to-pay",] }]
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC10by1wYXkuY29tcG9u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250ZW50XT1cImFtb3VudFRvUGF5ID09PSAwID8gYW1vdW50VG9QYXkgOiAoYW1vdW50VG9QYXkgfCBjb0N1cnJlbmN5KVwiPjwvZGl2PlxyXG4gICAgICA8L2Rpdj5cclxuICAgIGAsXHJcbiAgICBlbmNhcHN1bGF0aW9uOiBWaWV3RW5jYXBzdWxhdGlvbi5Ob25lXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBQYXltZW50VG9QYXlDb21wb25lbnQge1xyXG5cclxuICBASW5wdXQoKVxyXG4gIHB1YmxpYyBhbW91bnRUb1BheTogbnVtYmVyID0gMDtcclxuXHJcbiAgQEhvc3RCaW5kaW5nKFwiY2xhc3MuY28tcGF5bWVudC10by1wYXlcIilcclxuICBwdWJsaWMgc2hvd0NsYXNzKCkge1xyXG4gICAgcmV0dXJuIHRydWU7XHJcbiAgfVxyXG5cclxufVxyXG4iXX0=
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NgModule } from "@angular/core";
|
|
2
|
-
import { CommonModule } from "@angular/common";
|
|
3
|
-
import { PaymentToPayComponent } from "./payment-to-pay.component";
|
|
4
|
-
import { PipeModule } from "../../pipe/pipe.module";
|
|
5
|
-
export class PaymentToPayModule {
|
|
6
|
-
}
|
|
7
|
-
PaymentToPayModule.decorators = [
|
|
8
|
-
{ type: NgModule, args: [{
|
|
9
|
-
imports: [
|
|
10
|
-
CommonModule,
|
|
11
|
-
PipeModule
|
|
12
|
-
],
|
|
13
|
-
declarations: [
|
|
14
|
-
PaymentToPayComponent
|
|
15
|
-
],
|
|
16
|
-
exports: [
|
|
17
|
-
PaymentToPayComponent
|
|
18
|
-
]
|
|
19
|
-
},] }
|
|
20
|
-
];
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC10by1wYXkubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamV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lbnRUb1BheUNvbXBvbmVudFxyXG4gICAgXSxcclxuICAgIGV4cG9ydHM6IFtcclxuICAgICAgICBQYXltZW50VG9QYXlDb21wb25lbnRcclxuICAgIF1cclxufSlcclxuZXhwb3J0IGNsYXNzIFBheW1lbnRUb1BheU1vZHVsZSB7XHJcbn1cclxuIl19
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Component, HostBinding, ViewEncapsulation } from "@angular/core";
|
|
2
|
-
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
3
|
-
export class TransactionCashRegisterOrderLineComponent extends TransactionBaseComponent {
|
|
4
|
-
showClass() {
|
|
5
|
-
return true;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
TransactionCashRegisterOrderLineComponent.decorators = [
|
|
9
|
-
{ type: Component, args: [{
|
|
10
|
-
selector: "co-transaction-cash-register-order-line",
|
|
11
|
-
template: `
|
|
12
|
-
<co-transaction-base-line
|
|
13
|
-
[transactionInfo]="transactionInfo"
|
|
14
|
-
[transactionLine]="transactionLine"
|
|
15
|
-
[preview]="false"
|
|
16
|
-
[checkbox]="false"
|
|
17
|
-
[actionButtons]="false"
|
|
18
|
-
observeVisibility #observer=visibilityObserve (visibilityChange)="handleVisibilityChange(transactionLine, $event)">
|
|
19
|
-
<div class="line-content-wrapper">
|
|
20
|
-
<co-transaction-line-warehouse-button [transactionLine]="transactionLine" [transactionInfo]="transactionInfo"></co-transaction-line-warehouse-button>
|
|
21
|
-
<co-transaction-line-vat-button [transactionLine]="transactionLine" [transactionInfo]="transactionInfo"></co-transaction-line-vat-button>
|
|
22
|
-
<co-editable-label class="transaction-line-totals-total price"
|
|
23
|
-
[model]="(transactionLine.price + transactionLine.discountAmount) | coCurrency"
|
|
24
|
-
[crossedOut]="!!transactionLine.discountAmount"
|
|
25
|
-
[editModel]="transactionLine.displayNetLineTotal"
|
|
26
|
-
[readonly]="true"
|
|
27
|
-
></co-editable-label>
|
|
28
|
-
<co-transaction-line-discount-button [transactionLine]="transactionLine" [transactionInfo]="transactionInfo"></co-transaction-line-discount-button>
|
|
29
|
-
<co-editable-label class="transaction-line-totals-total price"
|
|
30
|
-
[model]="transactionLine.price | coCurrency"
|
|
31
|
-
[readonly]="true"
|
|
32
|
-
></co-editable-label>
|
|
33
|
-
<div class="transaction-line-totals-amount">
|
|
34
|
-
<co-input-number-picker class="amount-number-picker"
|
|
35
|
-
[(model)]="transactionLine.quantityToAllocate"
|
|
36
|
-
[min]="1"
|
|
37
|
-
></co-input-number-picker>
|
|
38
|
-
</div>
|
|
39
|
-
<co-editable-label class="transaction-line-totals-total price"
|
|
40
|
-
[model]="transactionLine.price * transactionLine.amount | coCurrency"
|
|
41
|
-
[readonly]="true"
|
|
42
|
-
></co-editable-label>
|
|
43
|
-
</div>
|
|
44
|
-
</co-transaction-base-line>
|
|
45
|
-
`,
|
|
46
|
-
encapsulation: ViewEncapsulation.None
|
|
47
|
-
},] }
|
|
48
|
-
];
|
|
49
|
-
TransactionCashRegisterOrderLineComponent.propDecorators = {
|
|
50
|
-
showClass: [{ type: HostBinding, args: ["class.co-transaction-cash-register-order-line",] }]
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tY2FzaC1yZWdpc3Rlci1vcmRlci1saW5lLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvY29tcG9uZW50L3RyYW5zYWN0aW9uLWxpbmUvdHJhbnNhY3Rpb24tY2FzaC1yZWdpc3Rlci1vcmRlci1saW5lL3RyYW5zYWN0aW9uLWNhc2gtcmVnaXN0ZXItb3JkZXItbGluZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFB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xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZWRpdE1vZGVsXT1cInRyYW5zYWN0aW9uTGluZS5kaXNwbGF5TmV0TGluZVRvdGFsXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbcmVhZG9ubHldPVwidHJ1ZVwiXHJcbiAgICAgICAgICA+PC9jby1lZGl0YWJsZS1sYWJlbD5cclxuICAgICAgICAgIDxjby10cmFuc2FjdGlvbi1saW5lLWRpc2NvdW50LWJ1dHRvbiBbdHJhbnNhY3Rpb25MaW5lXT1cInRyYW5zYWN0aW9uTGluZVwiIFt0cmFuc2FjdGlvbkluZm9dPVwidHJhbnNhY3Rpb25JbmZvXCI+PC9jby10cmFuc2FjdGlvbi1saW5lLWRpc2NvdW50LWJ1dHRvbj5cclxuICAgICAgICAgIDxjby1lZGl0YWJsZS1sYWJlbCBjbGFzcz1cInRyYW5zYWN0aW9uLWxpbmUtdG90YWxzLXRvdGFsIHByaWNlXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbbW9kZWxdPVwidHJhbnNhY3Rpb25MaW5lLnByaWNlIHwgY29DdXJyZW5jeVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3JlYWRvbmx5XT1cInRydWVcIlxyXG4gICAgICAgICAgPjwvY28tZWRpdGFibGUtbGFiZWw+XHJcbiAgICAgICAgICA8ZGl2IGNsYXNzPVwidHJhbnNhY3Rpb24tbGluZS10b3RhbHMtYW1vdW50XCI+XHJcbiAgICAgICAgICAgIDxjby1pbnB1dC1udW1iZXItcGlja2VyIGNsYXNzPVwiYW1vdW50LW51bWJlci1waWNrZXJcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbKG1vZGVsKV09XCJ0cmFuc2FjdGlvbkxpbmUucXVhbnRpdHlUb0FsbG9jYXRlXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW21pbl09XCIxXCJcclxuICAgICAgICAgICAgPjwvY28taW5wdXQtbnVtYmVyLXBpY2tlcj5cclxuICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgPGNvLWVkaXRhYmxlLWxhYmVsIGNsYXNzPVwidHJhbnNhY3Rpb24tbGluZS10b3RhbHMtdG90YWwgcHJpY2VcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIFttb2RlbF09XCJ0cmFuc2FjdGlvbkxpbmUucHJpY2UgKiB0cmFuc2FjdGlvbkxpbmUuYW1vdW50IHwgY29DdXJyZW5jeVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3JlYWRvbmx5XT1cInRydWVcIlxyXG4gICAgICAgICAgPjwvY28tZWRpdGFibGUtbGFiZWw+XHJcbiAgICAgICAgPC9kaXY+XHJcbiAgICAgIDwvY28tdHJhbnNhY3Rpb24tYmFzZS1saW5lPlxyXG4gICAgYCxcclxuICAgIGVuY2Fwc3VsYXRpb246IFZpZXdFbmNhcHN1bGF0aW9uLk5vbmVcclxufSlcclxuZXhwb3J0IGNsYXNzIFRyYW5zYWN0aW9uQ2FzaFJlZ2lzdGVyT3JkZXJMaW5lQ29tcG9uZW50IGV4dGVuZHMgVHJhbnNhY3Rpb25CYXNlQ29tcG9uZW50IHtcclxuXHJcbiAgQEhvc3RCaW5kaW5nKFwiY2xhc3MuY28tdHJhbnNhY3Rpb24tY2FzaC1yZWdpc3Rlci1vcmRlci1saW5lXCIpXHJcbiAgcHVibGljIHNob3dDbGFzcygpIHtcclxuICAgIHJldHVybiB0cnVlO1xyXG4gIH1cclxuXHJcbn1cclxuIl19
|