@colijnit/transaction 12.1.24 → 12.1.26
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 +736 -189
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +144 -138
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +145 -139
- package/esm2015/lib/component/checkout/checkout.component.js +7 -9
- package/esm2015/lib/component/checkout/checkout.module.js +2 -2
- package/esm2015/lib/component/transaction/transaction.component.js +6 -6
- package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +6 -2
- package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.module.js +7 -4
- package/esm2015/lib/component/transaction-header-fields/transaction-header-delivery-date.component.js +80 -0
- package/esm2015/lib/component/transaction-header-fields/transaction-header-fields-base.component.js +27 -0
- package/esm2015/lib/component/transaction-line/transaction-line.component.js +6 -2
- package/esm2015/lib/component/transaction-line/transaction-line.module.js +4 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.component.js +4 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date.component.js +4 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-description.component.js +81 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-description.module.js +23 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-fields-base.component.js +17 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier.component.js +57 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier.module.js +23 -0
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +9 -8
- package/esm2015/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.component.js +8 -3
- package/esm2015/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.module.js +6 -2
- package/esm2015/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.js +16 -16
- package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +20 -9
- package/esm2015/lib/component/transaction-search/transaction-search-grid/transaction-search-purchase-order-grid/transaction-search-purchase-order-grid.component.js +59 -53
- package/esm2015/lib/component/transaction-search/transaction-search-grid/transaction-search-purchase-order-grid/transaction-search-purchase-order-grid.module.js +4 -3
- package/esm2015/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.component.js +58 -52
- package/esm2015/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.module.js +4 -3
- package/esm2015/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.js +2 -2
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +25 -9
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.module.js +4 -3
- package/esm2015/lib/component/transaction-search/transaction-search.component.js +73 -11
- package/esm2015/lib/component/transaction-search/transaction-search.module.js +4 -3
- package/esm2015/lib/service/pending-reason.service.js +44 -1
- package/esm2015/lib/service/transaction-connector.service.js +30 -1
- package/esm2015/lib/service/transaction.service.js +16 -1
- package/fesm2015/colijnit-transaction.js +671 -181
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/payment-qr-code/style/_layout.scss +2 -3
- package/lib/component/transaction-header/transaction-header-delivery/style/_layout.scss +6 -0
- package/lib/component/transaction-header-fields/transaction-header-delivery-date.component.d.ts +17 -0
- package/lib/component/transaction-header-fields/transaction-header-fields-base.component.d.ts +8 -0
- package/lib/component/transaction-line/style/_layout.scss +6 -0
- package/lib/component/transaction-line-fields/transaction-line-commission-code.component.d.ts +1 -0
- package/lib/component/transaction-line-fields/transaction-line-delivery-date.component.d.ts +1 -0
- package/lib/component/transaction-line-fields/transaction-line-description.component.d.ts +17 -0
- package/lib/component/transaction-line-fields/transaction-line-description.module.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-fields-base.component.d.ts +5 -0
- package/lib/component/transaction-line-fields/transaction-line-supplier.component.d.ts +14 -0
- package/lib/component/transaction-line-fields/transaction-line-supplier.module.d.ts +2 -0
- package/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.d.ts +2 -3
- package/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.component.d.ts +2 -0
- package/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.d.ts +4 -4
- package/lib/component/transaction-search/service/transaction-search.service.d.ts +6 -3
- package/lib/component/transaction-search/style/_layout.scss +57 -11
- package/lib/component/transaction-search/style/_material-definition.scss +4 -3
- package/lib/component/transaction-search/style/_theme.scss +4 -1
- package/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.d.ts +1 -1
- package/lib/component/transaction-search/transaction-search-result/style/_layout.scss +4 -0
- package/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.d.ts +3 -1
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-tile/style/_layout.scss +5 -7
- package/lib/component/transaction-search/transaction-search.component.d.ts +18 -4
- package/lib/service/pending-reason.service.d.ts +5 -0
- package/lib/service/transaction-connector.service.d.ts +3 -0
- package/lib/service/transaction.service.d.ts +1 -0
- package/package.json +1 -1
package/lib/component/transaction-header-fields/transaction-header-delivery-date.component.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InputDatePickerComponent } from "@colijnit/corecomponents_v12";
|
|
2
|
+
import { TransactionService } from "../../service/transaction.service";
|
|
3
|
+
import { TransactionHeaderFieldsBaseComponent } from "./transaction-header-fields-base.component";
|
|
4
|
+
export declare class TransactionHeaderDeliveryDateComponent extends TransactionHeaderFieldsBaseComponent {
|
|
5
|
+
private _transactionService;
|
|
6
|
+
set child(content: any);
|
|
7
|
+
showLabel: boolean;
|
|
8
|
+
defaultEditMode: boolean;
|
|
9
|
+
set editMode(value: boolean);
|
|
10
|
+
get editMode(): boolean;
|
|
11
|
+
handleClick(event: MouseEvent): void;
|
|
12
|
+
input: InputDatePickerComponent;
|
|
13
|
+
private _editMode;
|
|
14
|
+
constructor(_transactionService: TransactionService);
|
|
15
|
+
commitDeliveryDate(date: Date): Promise<boolean>;
|
|
16
|
+
protected transactionInfoSet(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TransactionInfo } from "@colijnit/transactionapi/build/model/transaction-info.bo";
|
|
2
|
+
export declare abstract class TransactionHeaderFieldsBaseComponent {
|
|
3
|
+
set transactionInfo(value: TransactionInfo);
|
|
4
|
+
get transactionInfo(): TransactionInfo;
|
|
5
|
+
readonly: boolean;
|
|
6
|
+
private _transactionInfo;
|
|
7
|
+
protected transactionInfoSet(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InputTextComponent } from "@colijnit/corecomponents_v12";
|
|
2
|
+
import { TransactionLineFieldsBaseComponent } from "./transaction-line-fields-base.component";
|
|
3
|
+
import { TransactionService } from "../../service/transaction.service";
|
|
4
|
+
export declare class TransactionLineDescriptionComponent extends TransactionLineFieldsBaseComponent {
|
|
5
|
+
private _transactionService;
|
|
6
|
+
set child(content: any);
|
|
7
|
+
showLabel: boolean;
|
|
8
|
+
defaultEditMode: boolean;
|
|
9
|
+
set editMode(value: boolean);
|
|
10
|
+
get editMode(): boolean;
|
|
11
|
+
handleClick(event: MouseEvent): void;
|
|
12
|
+
input: InputTextComponent;
|
|
13
|
+
private _editMode;
|
|
14
|
+
constructor(_transactionService: TransactionService);
|
|
15
|
+
commitDescription(description: string): Promise<boolean>;
|
|
16
|
+
protected transactionLineSet(): void;
|
|
17
|
+
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
|
|
2
|
+
import { TransactionInfo } from "@colijnit/transactionapi/build/model/transaction-info.bo";
|
|
2
3
|
export declare abstract class TransactionLineFieldsBaseComponent {
|
|
3
4
|
set transactionLine(value: TransactionLineInfo);
|
|
4
5
|
get transactionLine(): TransactionLineInfo;
|
|
6
|
+
set transactionInfo(value: TransactionInfo);
|
|
7
|
+
get transactionInfo(): TransactionInfo;
|
|
5
8
|
readonly: boolean;
|
|
6
9
|
private _transactionLine;
|
|
10
|
+
private _transactionInfo;
|
|
7
11
|
protected transactionLineSet(): void;
|
|
12
|
+
protected transactionInfoSet(): void;
|
|
8
13
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { TransactionLineFieldsBaseComponent } from "./transaction-line-fields-base.component";
|
|
3
|
+
import { TransactionService } from "../../service/transaction.service";
|
|
4
|
+
import { RelationListObject } from "@colijnit/transactionapi/build/model/relation-list-object.bo";
|
|
5
|
+
export declare class TransactionLineSupplierComponent extends TransactionLineFieldsBaseComponent implements OnInit {
|
|
6
|
+
private _transactionService;
|
|
7
|
+
data: RelationListObject[];
|
|
8
|
+
fields: Object;
|
|
9
|
+
tempSupplier: string;
|
|
10
|
+
constructor(_transactionService: TransactionService);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
commitSupplier(code: string): Promise<boolean>;
|
|
13
|
+
protected transactionLineSet(): void;
|
|
14
|
+
}
|
package/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { TransactionKind } from "@colijnit/transactionapi/build/enum/transaction
|
|
|
6
6
|
import { TransactionTypeCategory } from "../../enum/transaction-type-category.enum";
|
|
7
7
|
import { TransactionService } from "../../service/transaction.service";
|
|
8
8
|
import { TransactionEventService } from "../../service/transaction-event.service";
|
|
9
|
+
import { TransactionInfo } from "@colijnit/transactionapi/build/model/transaction-info.bo";
|
|
9
10
|
export declare class TransactionLineSidePanelComponent {
|
|
10
11
|
iconService: IconCacheService;
|
|
11
12
|
private _service;
|
|
@@ -13,12 +14,10 @@ export declare class TransactionLineSidePanelComponent {
|
|
|
13
14
|
readonly icons: typeof Icon;
|
|
14
15
|
readonly categories: typeof TransactionTypeCategory;
|
|
15
16
|
readonly transactionTypes: typeof TransactionKind;
|
|
16
|
-
transactionType: TransactionKind;
|
|
17
17
|
transactionLine: TransactionLineInfo;
|
|
18
|
-
|
|
18
|
+
transactionInfo: TransactionInfo;
|
|
19
19
|
activeCategory: TransactionTypeCategory;
|
|
20
20
|
cancelClick: EventEmitter<MouseEvent>;
|
|
21
|
-
transactionInfoNr: number;
|
|
22
21
|
showClass(): boolean;
|
|
23
22
|
quantityToReceive: number;
|
|
24
23
|
constructor(iconService: IconCacheService, _service: TransactionService, _transactionEventService: TransactionEventService);
|
|
@@ -3,12 +3,14 @@ import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transa
|
|
|
3
3
|
import { Icon } from "../../enum/icon.enum";
|
|
4
4
|
import { IconCacheService } from "../../service/icon-cache.service";
|
|
5
5
|
import { TransactionService } from "../../service/transaction.service";
|
|
6
|
+
import { TransactionInfo } from "@colijnit/transactionapi/build/model/transaction-info.bo";
|
|
6
7
|
export declare class TransactionLineSidePanelDefaultComponent {
|
|
7
8
|
iconService: IconCacheService;
|
|
8
9
|
private _transactionService;
|
|
9
10
|
readonly icons: typeof Icon;
|
|
10
11
|
set transactionLine(value: TransactionLineInfo);
|
|
11
12
|
get transactionLine(): TransactionLineInfo;
|
|
13
|
+
transactionInfo: TransactionInfo;
|
|
12
14
|
cancelClick: EventEmitter<MouseEvent>;
|
|
13
15
|
showClass(): boolean;
|
|
14
16
|
data: any[];
|
|
@@ -4,19 +4,19 @@ import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transa
|
|
|
4
4
|
import { TransactionTypeCategory } from "../../enum/transaction-type-category.enum";
|
|
5
5
|
import { TransactionService } from "../../service/transaction.service";
|
|
6
6
|
import { TransactionEventService } from "../../service/transaction-event.service";
|
|
7
|
+
import { TransactionInfo } from "@colijnit/transactionapi/build/model/transaction-info.bo";
|
|
7
8
|
export declare class TransactionLineSidePanelPurchaseComponent {
|
|
8
9
|
private _service;
|
|
9
10
|
private _transactionEventService;
|
|
10
11
|
readonly categories: typeof TransactionTypeCategory;
|
|
12
|
+
set transactionInfo(value: TransactionInfo);
|
|
13
|
+
get transactionInfo(): TransactionInfo;
|
|
11
14
|
transactionLine: TransactionLineInfo;
|
|
12
|
-
set transactionId(value: number);
|
|
13
|
-
get transactionId(): number;
|
|
14
15
|
category: TransactionTypeCategory;
|
|
15
|
-
transactionInfoNr: number;
|
|
16
16
|
quantityToReceiveChange: EventEmitter<number>;
|
|
17
17
|
showClass(): boolean;
|
|
18
18
|
goodsReceiptStatus: GoodsReceiptStatusWithHistory;
|
|
19
|
-
private
|
|
19
|
+
private _transactionInfo;
|
|
20
20
|
constructor(_service: TransactionService, _transactionEventService: TransactionEventService);
|
|
21
21
|
getGoodsReceiptStatusWithHistory(): Promise<void>;
|
|
22
22
|
}
|
|
@@ -4,19 +4,22 @@ import { TransactionService } from "../../../service/transaction.service";
|
|
|
4
4
|
export declare class TransactionSearchService {
|
|
5
5
|
private _transactionService;
|
|
6
6
|
searchRequest: TransactionSearchViewRequest;
|
|
7
|
+
previousSearchRequest: TransactionSearchViewRequest;
|
|
7
8
|
transactions: TransactionSearchView[];
|
|
8
9
|
set transactionType(value: string);
|
|
9
10
|
get transactionType(): string;
|
|
10
11
|
labelBasedOnTransactionType: Map<string, string>;
|
|
11
12
|
transactionsPerPage: number;
|
|
12
13
|
resultCount: number;
|
|
13
|
-
get
|
|
14
|
-
set
|
|
15
|
-
private
|
|
14
|
+
get currentPage(): number;
|
|
15
|
+
set currentPage(value: number);
|
|
16
|
+
private _currentPage;
|
|
16
17
|
private _transactionType;
|
|
17
18
|
constructor(_transactionService: TransactionService);
|
|
18
19
|
searchTransactions(): void;
|
|
19
20
|
getLabelBasedOnTransactionType(): string;
|
|
20
21
|
resetFilters(): void;
|
|
21
22
|
private _resetRequest;
|
|
23
|
+
setPreviousSearchRequest(): void;
|
|
24
|
+
isNewGeneralSearch(): boolean;
|
|
22
25
|
}
|
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
.co-transaction-search {
|
|
5
5
|
font-family: $tp-co-transaction-search-font-family;
|
|
6
6
|
font-size: $tp-co-transaction-search-font-size;
|
|
7
|
+
display: flex;
|
|
7
8
|
|
|
8
9
|
.transaction-search-wrapper {
|
|
9
10
|
display: flex;
|
|
10
|
-
//border-right: $cc-co-transaction-search-border-style;
|
|
11
|
-
//height: $cc-co-transaction-search-screen-height;
|
|
12
|
-
//overflow: hidden;
|
|
13
11
|
|
|
14
12
|
&.fullscreen {
|
|
15
13
|
width: 100%;
|
|
@@ -17,18 +15,22 @@
|
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
&.sidebar {
|
|
20
|
-
width
|
|
21
|
-
transition:
|
|
18
|
+
width: $cc-co-transaction-searchbar-width;
|
|
19
|
+
transition: all 0.2s ease-in-out;
|
|
20
|
+
|
|
21
|
+
&.collapsed {
|
|
22
|
+
transform: translate(-$cc-co-transaction-searchbar-width);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.expanded {
|
|
26
|
+
transform: translate(0);
|
|
27
|
+
}
|
|
22
28
|
}
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
.transaction-filter-wrapper {
|
|
26
32
|
display: flex;
|
|
27
|
-
//flex-basis: 350px;
|
|
28
|
-
//overflow-y: auto;
|
|
29
|
-
//overflow-x: hidden;
|
|
30
33
|
min-width: $tp-co-transaction-filter-wrapper-min-width;
|
|
31
|
-
//height: $cc-co-transaction-search-screen-height;
|
|
32
34
|
|
|
33
35
|
&.sidebar {
|
|
34
36
|
position: absolute;
|
|
@@ -36,7 +38,7 @@
|
|
|
36
38
|
transition: left 0.2s ease-in-out;
|
|
37
39
|
}
|
|
38
40
|
|
|
39
|
-
&.fullscreen{
|
|
41
|
+
&.fullscreen {
|
|
40
42
|
position: relative;
|
|
41
43
|
left: 0;
|
|
42
44
|
transition: left 0.2s ease-in-out;
|
|
@@ -45,11 +47,55 @@
|
|
|
45
47
|
|
|
46
48
|
.transaction-search-result-wrapper {
|
|
47
49
|
display: flex;
|
|
48
|
-
//height: $cc-co-transaction-search-screen-height;
|
|
49
50
|
overflow-y: auto;
|
|
50
51
|
flex-basis: 100%;
|
|
51
52
|
justify-content: flex-start;
|
|
52
53
|
padding: $tp-co-transaction-search-result-wrapper-padding;
|
|
53
54
|
}
|
|
55
|
+
|
|
56
|
+
.transaction-search-content-wrapper {
|
|
57
|
+
&.fullscreen {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.sidebar {
|
|
62
|
+
transition: all 0.2s ease-in-out;
|
|
63
|
+
|
|
64
|
+
&.expanded {
|
|
65
|
+
min-height: 100vh;
|
|
66
|
+
transform: translate(10px);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.collapsed {
|
|
70
|
+
transform: translate(-$cc-co-transaction-searchbar-width + 10px);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
& > co-icon-collapse-handle {
|
|
76
|
+
position: absolute !important;
|
|
77
|
+
flex-shrink: 0;
|
|
78
|
+
top: 50vh;
|
|
79
|
+
|
|
80
|
+
&.fullscreen {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&.sidebar {
|
|
85
|
+
transition: all 0.2s ease-in-out;
|
|
86
|
+
|
|
87
|
+
&.collapsed {
|
|
88
|
+
opacity: 0;
|
|
89
|
+
transform: translate(0) rotate(90deg);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.expanded {
|
|
93
|
+
opacity: 1;
|
|
94
|
+
transition-delay: 0.2s;
|
|
95
|
+
transition-property: opacity;
|
|
96
|
+
transform: translate($cc-co-transaction-searchbar-width - 17px) rotate(90deg);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
54
100
|
}
|
|
55
101
|
}
|
|
@@ -3,9 +3,8 @@ $tp-co-transaction-search-font-size: $tp-font-size !default;
|
|
|
3
3
|
$cc-co-transaction-search-background-color: $cc-color-light !default;
|
|
4
4
|
$cc-co-transaction-search-border-color: $tp-color-border !default;
|
|
5
5
|
$cc-co-transaction-search-border-style: solid 1px !default;
|
|
6
|
-
//$cc-co-transaction-search-screen-height: 95vh !default;
|
|
7
6
|
|
|
8
|
-
$cc-co-transaction-searchbar-width:370px !default;
|
|
7
|
+
$cc-co-transaction-searchbar-width: 370px !default;
|
|
9
8
|
|
|
10
9
|
$tp-co-transaction-filter-wrapper-min-width: 360px !default;
|
|
11
10
|
$tp-co-transaction-filter-button-color: $cc-color-light !default;
|
|
@@ -69,7 +68,8 @@ $tp-transaction-tiles-wrapper-height: 100% !default;
|
|
|
69
68
|
$tp-transaction-tiles-wrapper-column-gap: 5px !default;
|
|
70
69
|
$tp-transaction-tile-font-family: $tp-font-family !default;
|
|
71
70
|
$tp-transaction-tile-font-size: $tp-font-size !default;
|
|
72
|
-
$tp-transaction-tile-height:
|
|
71
|
+
$tp-transaction-tile-height: 190px !default;
|
|
72
|
+
$tp-transaction-tile-content-height: 175px !default;
|
|
73
73
|
$tp-transaction-tile-body-height: 100px !default;
|
|
74
74
|
$tp-transaction-tile-width: 300px !default;
|
|
75
75
|
$tp-transaction-tile-width-mobile: 85 vw !default;
|
|
@@ -98,5 +98,6 @@ $tp-transaction-tile-icon-width: 1.2rem !default;
|
|
|
98
98
|
$tp-transaction-tile-icon-height: 1.2rem !default;
|
|
99
99
|
$tp-transaction-tile-icon-active-color: $tp-color-active !default;
|
|
100
100
|
$tp-transaction-tile-icon-inactive-color: $tp-color-font !default;
|
|
101
|
+
$tp-transaction-tile-line-height: 15px !default;
|
|
101
102
|
|
|
102
103
|
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
.co-transaction-search {
|
|
5
5
|
.transaction-search-wrapper {
|
|
6
6
|
background-color: $cc-co-transaction-search-background-color;
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
.transaction-search-result-wrapper.sidebar.expanded {
|
|
9
|
+
border-right: 1px solid $cc-co-transaction-search-border-color;
|
|
10
|
+
}
|
|
8
11
|
}
|
|
9
12
|
}
|
|
10
13
|
}
|
|
@@ -2,9 +2,9 @@ import { EventEmitter } from "@angular/core";
|
|
|
2
2
|
import { ContentViewMode } from "../../../enum/content-view-mode.enum";
|
|
3
3
|
import { Icon } from "../../../enum/icon.enum";
|
|
4
4
|
import { SearchViewMode } from "../../../enum/search-view-mode.enum";
|
|
5
|
+
import { DictionaryService } from "../../../service/dictionary.service";
|
|
5
6
|
import { IconCacheService } from "../../../service/icon-cache.service";
|
|
6
7
|
import { TransactionSearchService } from "../service/transaction-search.service";
|
|
7
|
-
import { DictionaryService } from "../../../service/dictionary.service";
|
|
8
8
|
export declare class TransactionSearchHeaderComponent {
|
|
9
9
|
searchService: TransactionSearchService;
|
|
10
10
|
iconCacheService: IconCacheService;
|
|
@@ -26,5 +26,7 @@ export declare class TransactionSearchResultComponent implements OnInit {
|
|
|
26
26
|
onResizeClick(): void;
|
|
27
27
|
onCloseClick(): void;
|
|
28
28
|
onFilterClick(): void;
|
|
29
|
-
|
|
29
|
+
onPreviousClick(): void;
|
|
30
|
+
onNextClick(): void;
|
|
31
|
+
onPageClick(pageNr: number): void;
|
|
30
32
|
}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
.co-transaction-search-tile {
|
|
3
3
|
.co-transaction-search-tile-content {
|
|
4
4
|
display: flex;
|
|
5
|
+
font-family: $tp-transaction-tile-font-family;
|
|
6
|
+
font-size: $tp-transaction-tile-font-size;
|
|
7
|
+
line-height: $tp-transaction-tile-line-height;
|
|
5
8
|
height: $tp-transaction-tile-height;
|
|
6
9
|
|
|
7
10
|
@media(max-width: 600px) {
|
|
@@ -46,26 +49,21 @@
|
|
|
46
49
|
co-icon {
|
|
47
50
|
height: $tp-transaction-tile-icon-height;
|
|
48
51
|
width: $tp-transaction-tile-icon-width;
|
|
49
|
-
|
|
50
|
-
svg {
|
|
51
|
-
position: relative;
|
|
52
|
-
top: 0.22em;
|
|
53
|
-
}
|
|
54
52
|
}
|
|
55
53
|
}
|
|
56
54
|
|
|
57
|
-
|
|
58
55
|
//grid
|
|
59
56
|
.tile {
|
|
60
57
|
display: grid;
|
|
61
58
|
grid-template-columns: 1fr;
|
|
62
59
|
grid-template-rows: 1.5fr 1.5fr 1fr;
|
|
63
60
|
gap: 10px 10px;
|
|
61
|
+
height: $tp-transaction-tile-content-height;
|
|
64
62
|
}
|
|
65
63
|
|
|
66
64
|
.tile-header {
|
|
67
65
|
display: grid;
|
|
68
|
-
grid-template-columns: 0.4fr 1.
|
|
66
|
+
grid-template-columns: 0.4fr 1.4fr 1.2fr;
|
|
69
67
|
grid-template-rows: 1.5fr;
|
|
70
68
|
gap: 0 10px;
|
|
71
69
|
grid-area: 1 / 1 / 2 / 2;
|
|
@@ -1,25 +1,39 @@
|
|
|
1
1
|
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { CoDirection, CoOrientation } from "@colijnit/corecomponents_v12";
|
|
2
3
|
import { TransactionKind } from "@colijnit/transactionapi/build/enum/transaction-kind.enum";
|
|
3
4
|
import { TransactionSearchView } from "@colijnit/transactionapi/build/model/transaction-search-view.bo";
|
|
4
5
|
import { SearchViewMode } from "../../enum/search-view-mode.enum";
|
|
5
6
|
import { TransactionSearchService } from "./service/transaction-search.service";
|
|
7
|
+
export declare enum SearchBarViewMode {
|
|
8
|
+
Expanded = 0,
|
|
9
|
+
Collapsed = 1
|
|
10
|
+
}
|
|
6
11
|
export declare class TransactionSearchComponent {
|
|
7
12
|
private _transactionSearchService;
|
|
8
13
|
readonly searchViewModes: typeof SearchViewMode;
|
|
14
|
+
readonly orientations: typeof CoOrientation;
|
|
15
|
+
readonly directionRight: CoDirection;
|
|
9
16
|
activeSearchViewMode: SearchViewMode;
|
|
10
|
-
|
|
17
|
+
activeSearchBarViewMode: SearchBarViewMode;
|
|
18
|
+
showFilterSidebar: boolean;
|
|
19
|
+
private _transactionType;
|
|
11
20
|
set transactionType(value: TransactionKind);
|
|
12
21
|
get transactionType(): TransactionKind;
|
|
13
22
|
transactionClick: EventEmitter<TransactionSearchView>;
|
|
14
23
|
searchViewModeChange: EventEmitter<SearchViewMode>;
|
|
15
24
|
showClass(): boolean;
|
|
16
|
-
showFilterSidebar: boolean;
|
|
17
|
-
private _transactionType;
|
|
18
25
|
constructor(_transactionSearchService: TransactionSearchService);
|
|
19
26
|
get fullscreen(): boolean;
|
|
27
|
+
get collapsed(): boolean;
|
|
20
28
|
toggleFilter(): void;
|
|
21
29
|
handleHideFilter(): void;
|
|
22
30
|
handleResetFilter(): void;
|
|
23
31
|
onTransactionClick(transaction: TransactionSearchView): void;
|
|
24
|
-
|
|
32
|
+
onSearchViewResizeClick(): void;
|
|
33
|
+
onSideCollapseHandleClick(): void;
|
|
34
|
+
toggleSearchBar(): void;
|
|
35
|
+
collapseSearchBar(): void;
|
|
36
|
+
expandSearchBar(): void;
|
|
37
|
+
calculateClasses(): any;
|
|
38
|
+
private _scrollToTop;
|
|
25
39
|
}
|
|
@@ -6,6 +6,7 @@ import { CustomerFullObject } from "@colijnit/transactionapi/build/model/custome
|
|
|
6
6
|
import { DialogService } from "./dialog.service";
|
|
7
7
|
import { ResolveLinePendingReasonRequest } from "@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo";
|
|
8
8
|
import { ArticleConnectorService } from "./article-connector.service";
|
|
9
|
+
import { ResolveHeaderPendingReasonRequest } from "@colijnit/transactionapi/build/model/resolve-header-pending-reason-request.bo";
|
|
9
10
|
export declare class PendingReasonService {
|
|
10
11
|
protected dialogService: DialogService;
|
|
11
12
|
protected options: OptionsService;
|
|
@@ -20,10 +21,14 @@ export declare class PendingReasonService {
|
|
|
20
21
|
init(options: any): Promise<void>;
|
|
21
22
|
cancelAddTransactionLine(lineUuid: string, remember?: boolean): Promise<TransactionInfoResponse>;
|
|
22
23
|
protected handleLineOperationStatuses(response: TransactionInfoResponse): Promise<boolean>;
|
|
24
|
+
protected handleHeaderOperationStatuses(response: TransactionInfoResponse): Promise<boolean>;
|
|
23
25
|
protected _rememberCurrentTransaction(value: TransactionInfoResponse): Promise<void>;
|
|
24
26
|
private _handleLineOperationStatus;
|
|
27
|
+
private _handleHeaderOperationStatus;
|
|
25
28
|
resolvePendingLineReason(pendingLineValues: ResolveLinePendingReasonRequest): Promise<void>;
|
|
29
|
+
resolvePendingHeaderReason(pendingHeaderValues: ResolveHeaderPendingReasonRequest): Promise<boolean>;
|
|
26
30
|
private _confirmAction;
|
|
31
|
+
private _confirmHeaderAction;
|
|
27
32
|
private _showReasonDialog;
|
|
28
33
|
private _setAmount;
|
|
29
34
|
private _initializeTransaction;
|
|
@@ -44,6 +44,7 @@ import { GetPurchasePortalLine } from "@colijnit/transactionapi/build/model/get-
|
|
|
44
44
|
import { PurchasePortalLine } from "@colijnit/transactionapi/build/model/purchase-portal-line.bo";
|
|
45
45
|
import { CreatePaymentLinkResult } from "@colijnit/transactionapi/build/model/create-payment-link-result.bo";
|
|
46
46
|
import { TransactionSearchResult } from "../model/transaction-search-result";
|
|
47
|
+
import { ResolveHeaderPendingReasonRequest } from "@colijnit/transactionapi/build/model/resolve-header-pending-reason-request.bo";
|
|
47
48
|
export declare class TransactionConnectorService {
|
|
48
49
|
private _optionsService;
|
|
49
50
|
private _collectionService;
|
|
@@ -89,6 +90,7 @@ export declare class TransactionConnectorService {
|
|
|
89
90
|
deleteTransactionLine(uuid: string, lineUuid: string): Promise<TransactionInfoResponse>;
|
|
90
91
|
changeTransactionLineQuantity(uuid: string, lineUuid: string, newQuantity: number): Promise<TransactionInfoResponse>;
|
|
91
92
|
resolvePendingLineReason(pendingLineValues: ResolveLinePendingReasonRequest): Promise<TransactionInfoResponse>;
|
|
93
|
+
resolvePendingHeaderReason(pendingHeaderValues: ResolveHeaderPendingReasonRequest): Promise<TransactionInfoResponse>;
|
|
92
94
|
getCommissionCodes(languageCode: string): Promise<CoDomainValue[]>;
|
|
93
95
|
getInOutCollection(languageCode: string): Promise<CoDomainValue[]>;
|
|
94
96
|
getTransactionArticleWarehouses(goodId: number): Promise<TransactionArticleWarehouse[]>;
|
|
@@ -115,6 +117,7 @@ export declare class TransactionConnectorService {
|
|
|
115
117
|
changeTransactionLineSupplierArticleNumber(uuid: string, lineUuid: string, articleNumber: string): Promise<TransactionInfoResponse>;
|
|
116
118
|
changeTransactionLineReference(uuid: string, lineUuid: string, reference: string): Promise<TransactionInfoResponse>;
|
|
117
119
|
changeHeaderTransactionDefinitive(uuid: string, definitive: boolean): Promise<TransactionInfoResponse>;
|
|
120
|
+
changeHeaderTransactionDeliveryDate(uuid: string, date: Date): Promise<TransactionInfoResponse>;
|
|
118
121
|
changeTransactionLineCollectionCode(uuid: string, lineUuid: string, code: string): Promise<TransactionInfoResponse>;
|
|
119
122
|
createOutstandingEntry(uuid: string, amount: number): Promise<TransactionInfoResponse>;
|
|
120
123
|
registerSalesOrderPayment(uuid: string, amount: number, currencyId: number, paymentMethod: string, cashRegisterGroupId: number): Promise<TransactionInfoResponse>;
|
|
@@ -46,6 +46,7 @@ export declare class TransactionService extends PendingReasonService {
|
|
|
46
46
|
updatePriceTransactionLine(uuid: string, lineUuid: string, price: number): Promise<boolean>;
|
|
47
47
|
updateReferenceTransactionLine(uuid: string, lineUuid: string, reference: string): Promise<boolean>;
|
|
48
48
|
updateHeaderTransactionDefinitive(uuid: string, definitive: boolean): Promise<boolean>;
|
|
49
|
+
updateHeaderTransactionDeliveryDate(uuid: string, date: Date): Promise<boolean>;
|
|
49
50
|
updateQuantityTransactionLine(uuid: string, lineUuid: string, quantity: number): Promise<boolean>;
|
|
50
51
|
updateDeliveryDateTransactionLine(uuid: string, lineUuid: string, date: Date): Promise<boolean>;
|
|
51
52
|
updatePriceListTransactionLine(uuid: string, lineUuid: string, priceList: string): Promise<boolean>;
|