@colijnit/transaction 12.1.17 → 12.1.20
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 +877 -418
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +149 -143
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +150 -144
- package/esm2015/lib/assets/dictionary/text.properties.js +24 -1
- package/esm2015/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.component.js +5 -2
- package/esm2015/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.module.js +3 -1
- package/esm2015/lib/component/transaction-line/transaction-line.component.js +16 -112
- package/esm2015/lib/component/transaction-line/transaction-line.module.js +4 -2
- package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.js +162 -0
- package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.module.js +30 -0
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +2 -2
- package/esm2015/lib/component/transaction-search/service/filter-request.service.js +5 -20
- package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +24 -2
- package/esm2015/lib/component/transaction-search/transaction-filter/transaction-filter.component.js +6 -2
- package/esm2015/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.component.js +43 -20
- package/esm2015/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.component.js +41 -55
- package/esm2015/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.module.js +6 -3
- package/esm2015/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.component.js +30 -15
- package/esm2015/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.component.js +60 -0
- package/esm2015/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.module.js +24 -0
- package/esm2015/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.component.js +86 -0
- package/esm2015/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.module.js +26 -0
- package/esm2015/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.js +120 -0
- package/esm2015/lib/component/transaction-search/transaction-search-header/transaction-search-header.module.js +26 -0
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +49 -25
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.module.js +9 -5
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.component.js +77 -0
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.module.js +28 -0
- package/esm2015/lib/component/transaction-search/transaction-search.component.js +52 -12
- package/esm2015/lib/enum/direction.enum.js +9 -0
- package/esm2015/lib/enum/icon.enum.js +4 -1
- package/esm2015/lib/enum/search-view-mode.enum.js +7 -0
- package/esm2015/lib/model/icon-svg.js +4 -1
- package/esm2015/lib/service/article-connector.service.js +54 -1
- package/esm2015/lib/service/pending-reason.service.js +8 -4
- package/esm2015/lib/service/transaction-connector.service.js +2 -1
- package/esm2015/lib/service/transaction-mapping.service.js +2 -2
- package/esm2015/lib/service/transaction.service.js +13 -2
- package/fesm2015/colijnit-transaction.js +873 -369
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/{style → components/default-ok-cancel-buttons/style}/_layout.scss +0 -0
- package/lib/component/core/base/{style → components/default-ok-cancel-buttons/style}/_material-definition.scss +0 -0
- package/lib/component/core/base/{style → components/default-ok-cancel-buttons/style}/_theme.scss +0 -0
- package/lib/component/core/base/{style → components/default-ok-cancel-buttons/style}/material.scss +0 -0
- package/lib/component/tile/style/_material-definition.scss +2 -1
- package/lib/component/transaction-grid/transaction-base-grid/style/_layout.scss +4 -0
- package/lib/component/transaction-line/style/_layout.scss +0 -47
- package/lib/component/transaction-line/style/_theme.scss +0 -17
- package/lib/component/transaction-line/transaction-line.component.d.ts +3 -17
- package/lib/component/transaction-line-action-buttons/style/_layout.scss +106 -0
- package/lib/component/transaction-line-action-buttons/style/_material-definition.scss +7 -0
- package/lib/component/transaction-line-action-buttons/style/_theme.scss +7 -0
- package/lib/component/transaction-line-action-buttons/style/material.scss +3 -0
- package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.d.ts +43 -0
- package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.module.d.ts +2 -0
- package/lib/component/transaction-line-side-panel/style/_layout.scss +6 -4
- package/lib/component/transaction-line-side-panel/style/_material-definition.scss +1 -1
- package/lib/component/transaction-line-side-panel-default/style/_layout.scss +3 -0
- package/lib/component/transaction-search/service/filter-request.service.d.ts +2 -4
- package/lib/component/transaction-search/service/transaction-search.service.d.ts +6 -0
- package/lib/component/transaction-search/style/_layout.scss +36 -18
- package/lib/component/transaction-search/style/_material-definition.scss +32 -15
- package/lib/component/transaction-search/style/_theme.scss +4 -0
- package/lib/component/transaction-search/style/material.scss +2 -1
- package/lib/component/transaction-search/transaction-filter/transaction-filter.component.d.ts +3 -0
- package/lib/component/transaction-search/transaction-filter-categories/style/_layout.scss +8 -8
- package/lib/component/transaction-search/transaction-filter-categories/style/_theme.scss +3 -3
- package/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.component.d.ts +14 -1
- package/lib/component/transaction-search/transaction-filter-content-logistics/style/material.scss +1 -0
- package/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.component.d.ts +1 -0
- package/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.component.d.ts +2 -0
- package/lib/component/transaction-search/transaction-filter-historic-state/style/_layout.scss +9 -0
- package/lib/component/transaction-search/{transaction-tile → transaction-filter-historic-state}/style/_material-definition.scss +0 -0
- package/lib/component/transaction-search/transaction-filter-historic-state/style/_theme.scss +4 -0
- package/lib/component/transaction-search/transaction-filter-historic-state/style/material.scss +4 -0
- package/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.component.d.ts +22 -0
- package/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/style/_layout.scss +6 -0
- package/lib/component/{transaction-search-grid → transaction-search/transaction-search-grid/transaction-search-sales-order-grid}/style/_material-definition.scss +0 -0
- package/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/style/_theme.scss +6 -0
- package/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/style/material.scss +7 -0
- package/lib/component/{transaction-search-grid/transaction-search-grid.component.d.ts → transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.component.d.ts} +1 -1
- package/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-search-header/style/_layout.scss +8 -0
- package/lib/component/transaction-search/transaction-search-header/style/_material-definition.scss +0 -0
- package/lib/component/transaction-search/transaction-search-header/style/_theme.scss +4 -0
- package/lib/component/transaction-search/transaction-search-header/style/material.scss +3 -0
- package/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.d.ts +32 -0
- package/lib/component/transaction-search/transaction-search-header/transaction-search-header.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-search-result/style/_layout.scss +84 -13
- package/lib/component/transaction-search/transaction-search-result/style/_theme.scss +1 -1
- package/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.d.ts +14 -6
- package/lib/component/transaction-search/{transaction-tile → transaction-search-tile/transaction-search-sales-order-tile}/style/_layout.scss +2 -4
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/style/_material-definition.scss +0 -0
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/style/_theme.scss +48 -0
- package/lib/component/transaction-search/{transaction-tile → transaction-search-tile/transaction-search-sales-order-tile}/style/material.scss +0 -0
- package/lib/component/transaction-search/{transaction-tile/transaction-tile.component.d.ts → transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.component.d.ts} +3 -3
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-search.component.d.ts +14 -2
- package/lib/enum/direction.enum.d.ts +6 -0
- package/lib/enum/icon.enum.d.ts +3 -0
- package/lib/enum/search-view-mode.enum.d.ts +4 -0
- package/lib/service/article-connector.service.d.ts +7 -0
- package/lib/service/pending-reason.service.d.ts +3 -1
- package/lib/service/transaction.service.d.ts +7 -0
- package/lib/style/_variables.scss +2 -0
- package/package.json +3 -3
- package/esm2015/lib/component/transaction-search/transaction-tile/transaction-tile.component.js +0 -77
- package/esm2015/lib/component/transaction-search/transaction-tile/transaction-tile.module.js +0 -28
- package/esm2015/lib/component/transaction-search-grid/transaction-search-grid.component.js +0 -86
- package/esm2015/lib/component/transaction-search-grid/transaction-search-grid.module.js +0 -26
- package/lib/component/transaction-search/transaction-tile/style/_theme.scss +0 -46
- package/lib/component/transaction-search/transaction-tile/transaction-tile.module.d.ts +0 -2
- package/lib/component/transaction-search-grid/style/_layout.scss +0 -6
- package/lib/component/transaction-search-grid/style/_theme.scss +0 -6
- package/lib/component/transaction-search-grid/style/material.scss +0 -7
- package/lib/component/transaction-search-grid/transaction-search-grid.module.d.ts +0 -2
package/lib/component/core/base/{style → components/default-ok-cancel-buttons/style}/_layout.scss
RENAMED
|
File without changes
|
|
File without changes
|
package/lib/component/core/base/{style → components/default-ok-cancel-buttons/style}/_theme.scss
RENAMED
|
File without changes
|
package/lib/component/core/base/{style → components/default-ok-cancel-buttons/style}/material.scss
RENAMED
|
File without changes
|
|
@@ -6,7 +6,8 @@ $tp-tile-border-radius: 5px !default;
|
|
|
6
6
|
$tp-tile-min-width: 200px !default;
|
|
7
7
|
$tp-tile-min-height: 100px !default;
|
|
8
8
|
$tp-tile-icon-width: 20px !default;
|
|
9
|
-
$tp-tile-background-color:
|
|
9
|
+
$tp-tile-background-color: $tp-color-light !default;
|
|
10
|
+
$tp-tile-hover-background-color: $tp-color-less-light !default;
|
|
10
11
|
$tp-tile-border: 2px solid !default;
|
|
11
12
|
$tp-tile-border-color: $tp-color-border !default;
|
|
12
13
|
$tp-tile-selected-background-color: #f1fcff !default;
|
|
@@ -99,56 +99,9 @@
|
|
|
99
99
|
}
|
|
100
100
|
.transaction-line-buttons {
|
|
101
101
|
display: flex;
|
|
102
|
-
flex-direction: column;
|
|
103
102
|
align-items: center;
|
|
104
103
|
flex-shrink: 0;
|
|
105
|
-
row-gap: 5px;
|
|
106
104
|
height: $tp-transaction-line-amount-height;
|
|
107
|
-
padding: $tp-transaction-line-inner-padding;
|
|
108
|
-
.circle {
|
|
109
|
-
opacity: 0;
|
|
110
|
-
height: 25px;
|
|
111
|
-
width: 25px;
|
|
112
|
-
co-icon {
|
|
113
|
-
height: 25px;
|
|
114
|
-
width: 25px;
|
|
115
|
-
}
|
|
116
|
-
&.show {
|
|
117
|
-
opacity: 1;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
.circle:nth-child(1) {
|
|
121
|
-
//animation-delay: .4s;
|
|
122
|
-
transition: all .2s .4s;
|
|
123
|
-
}
|
|
124
|
-
.circle:nth-child(2) {
|
|
125
|
-
//animation-delay: .4s;
|
|
126
|
-
transition: all .2s .3s;
|
|
127
|
-
}
|
|
128
|
-
.circle:nth-child(3) {
|
|
129
|
-
//animation-delay: .6s;
|
|
130
|
-
transition: all .2s .2s;
|
|
131
|
-
}
|
|
132
|
-
.circle:nth-child(4) {
|
|
133
|
-
//animation-delay: .8s;
|
|
134
|
-
transition: all .2s .1s;
|
|
135
|
-
}
|
|
136
|
-
.circle.show:nth-child(1) {
|
|
137
|
-
//animation-delay: .4s;
|
|
138
|
-
transition: all .2s;
|
|
139
|
-
}
|
|
140
|
-
.circle.show:nth-child(2) {
|
|
141
|
-
//animation-delay: .4s;
|
|
142
|
-
transition: all .2s .1s;
|
|
143
|
-
}
|
|
144
|
-
.circle.show:nth-child(3) {
|
|
145
|
-
//animation-delay: .6s;
|
|
146
|
-
transition: all .2s .2s;
|
|
147
|
-
}
|
|
148
|
-
.circle.show:nth-child(4) {
|
|
149
|
-
//animation-delay: .8s;
|
|
150
|
-
transition: all .2s .3s;
|
|
151
|
-
}
|
|
152
105
|
}
|
|
153
106
|
.transaction-line-description-description {
|
|
154
107
|
font-weight: bold;
|
|
@@ -21,23 +21,6 @@
|
|
|
21
21
|
background-color: $tp-transaction-line-article-text-background-color;
|
|
22
22
|
color: $tp-transaction-line-article-text-color;
|
|
23
23
|
}
|
|
24
|
-
.transaction-line-overview-button {
|
|
25
|
-
background-color: $tp-transaction-line-buttons-overview-background-color;
|
|
26
|
-
co-icon [fill] {
|
|
27
|
-
fill: $tp-transaction-line-buttons-overview-text-color;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
.transaction-line-add-text-button {
|
|
31
|
-
background-color: $tp-transaction-line-buttons-add-text-background-color;
|
|
32
|
-
co-icon [fill] {
|
|
33
|
-
fill: $tp-transaction-line-buttons-add-text-text-color;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
.transaction-line-show-sidebar-button {
|
|
37
|
-
co-icon [fill] {
|
|
38
|
-
fill: $tp-transaction-line-buttons-add-text-text-color;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
24
|
.article-text {
|
|
42
25
|
color: $tp-transaction-line-article-text-font-color;
|
|
43
26
|
background-color: $tp-transaction-line-background-color;
|
|
@@ -5,10 +5,9 @@ import { TransactionService } from "../../service/transaction.service";
|
|
|
5
5
|
import { DictionaryService } from "../../service/dictionary.service";
|
|
6
6
|
import { Icon } from "../../enum/icon.enum";
|
|
7
7
|
import { IconCacheService } from "../../service/icon-cache.service";
|
|
8
|
-
import { TransactionAddTextLineRequest } from "@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo";
|
|
9
8
|
import { DialogService } from "../../service/dialog.service";
|
|
10
|
-
import { ResolveLinePendingReasonRequest } from "@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo";
|
|
11
9
|
import { TransactionImageService } from "../../service/transaction-image.service";
|
|
10
|
+
import { TransactionLineActionButtonsComponent } from "../transaction-line-action-buttons/transaction-line-action-buttons.component";
|
|
12
11
|
export declare class TransactionLineComponent {
|
|
13
12
|
service: TransactionService;
|
|
14
13
|
iconCacheService: IconCacheService;
|
|
@@ -21,6 +20,7 @@ export declare class TransactionLineComponent {
|
|
|
21
20
|
get line(): TransactionLineInfo;
|
|
22
21
|
waitingForUserAction: EventEmitter<boolean>;
|
|
23
22
|
sidePanelButtonClicked: EventEmitter<void>;
|
|
23
|
+
transactionLineActionButtons: TransactionLineActionButtonsComponent;
|
|
24
24
|
isText: boolean;
|
|
25
25
|
isArticle: boolean;
|
|
26
26
|
isSelected: boolean;
|
|
@@ -30,26 +30,12 @@ export declare class TransactionLineComponent {
|
|
|
30
30
|
localAmount: number;
|
|
31
31
|
image: string;
|
|
32
32
|
stock: StockStatus;
|
|
33
|
-
currentReason: ResolveLinePendingReasonRequest;
|
|
34
|
-
showTransactionArticleText: boolean;
|
|
35
|
-
showTransactionArticleTextOverview: boolean;
|
|
36
|
-
articleTextHeader: string;
|
|
37
|
-
textToEdit: string;
|
|
38
33
|
mouseOver: boolean;
|
|
39
34
|
private _line;
|
|
40
35
|
constructor(service: TransactionService, iconCacheService: IconCacheService, _dialogService: DialogService, _dictionaryService: DictionaryService, _imageService: TransactionImageService);
|
|
41
36
|
changeLineAmount(amount: number): void;
|
|
42
37
|
deleteTransactionLineClick(): Promise<void>;
|
|
43
|
-
handleTransactionArticleText(event: MouseEvent): void;
|
|
44
|
-
handleTransactionArticleTextOverview(event: MouseEvent): void;
|
|
45
|
-
saveTransactionArticleLineText(transactionAddTextLineRequest: TransactionAddTextLineRequest): void;
|
|
46
|
-
closeTransactionArticleText(event: MouseEvent): void;
|
|
47
|
-
closeTransactionArticleTextOverview(event: MouseEvent): void;
|
|
48
38
|
handleOpenArticleText(text: string): void;
|
|
39
|
+
handleShowSidePanel(): void;
|
|
49
40
|
private _loadLineImage;
|
|
50
|
-
private _showArticleTextDialog;
|
|
51
|
-
private _hideArticleTextDialog;
|
|
52
|
-
private _showArticleTextOverviewDialog;
|
|
53
|
-
private _hideArticleTextOverviewDialog;
|
|
54
|
-
handleShowSidePanel(event: MouseEvent): void;
|
|
55
41
|
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('co-transaction-line-action-buttons-layout') {
|
|
4
|
+
.co-transaction-line-action-buttons {
|
|
5
|
+
|
|
6
|
+
.transaction-line-action-buttons-wrapper {
|
|
7
|
+
padding: $tp-transaction-line-show-hide-button-padding;
|
|
8
|
+
border-radius: 14px;
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
.show-hide-button {
|
|
14
|
+
width: $tp-transaction-line-show-hide-button-size;
|
|
15
|
+
height: $tp-transaction-line-show-hide-button-size;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.transaction-line-overview-button {
|
|
21
|
+
background-color: $tp-transaction-line-buttons-overview-background-color;
|
|
22
|
+
co-icon [fill] {
|
|
23
|
+
fill: $tp-transaction-line-buttons-overview-text-color;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.transaction-line-add-text-button {
|
|
27
|
+
background-color: $tp-transaction-line-buttons-add-text-background-color;
|
|
28
|
+
co-icon [fill] {
|
|
29
|
+
fill: $tp-transaction-line-buttons-add-text-text-color;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
.transaction-line-show-sidebar-button {
|
|
33
|
+
co-icon [fill] {
|
|
34
|
+
fill: $tp-transaction-line-buttons-add-text-text-color;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.action-buttons-container {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
position: absolute;
|
|
42
|
+
|
|
43
|
+
.circle {
|
|
44
|
+
opacity: 0;
|
|
45
|
+
height: 25px;
|
|
46
|
+
width: 25px;
|
|
47
|
+
margin: 5px;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
co-icon {
|
|
50
|
+
height: 25px;
|
|
51
|
+
width: 25px;
|
|
52
|
+
}
|
|
53
|
+
&.show {
|
|
54
|
+
opacity: 1;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
.circle:nth-child(1) {
|
|
58
|
+
transition: all .2s .4s;
|
|
59
|
+
}
|
|
60
|
+
.circle:nth-child(2) {
|
|
61
|
+
transition: all .2s .3s;
|
|
62
|
+
}
|
|
63
|
+
.circle:nth-child(3) {
|
|
64
|
+
transition: all .2s .2s;
|
|
65
|
+
}
|
|
66
|
+
.circle:nth-child(4) {
|
|
67
|
+
transition: all .2s .1s;
|
|
68
|
+
}
|
|
69
|
+
.circle.show:nth-child(1) {
|
|
70
|
+
transition: all .2s;
|
|
71
|
+
}
|
|
72
|
+
.circle.show:nth-child(2) {
|
|
73
|
+
transition: all .2s .1s;
|
|
74
|
+
}
|
|
75
|
+
.circle.show:nth-child(3) {
|
|
76
|
+
transition: all .2s .2s;
|
|
77
|
+
}
|
|
78
|
+
.circle.show:nth-child(4) {
|
|
79
|
+
transition: all .2s .3s;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.bottom {
|
|
83
|
+
transform: translate(0, calc(50% + (#{$tp-transaction-line-show-hide-button-size} / 2) +
|
|
84
|
+
#{$tp-transaction-line-show-hide-button-padding}));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&.top {
|
|
88
|
+
transform: translate(0, calc(-50% - (#{$tp-transaction-line-show-hide-button-size} / 2) -
|
|
89
|
+
#{$tp-transaction-line-show-hide-button-padding}));
|
|
90
|
+
flex-direction: column-reverse;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.left {
|
|
94
|
+
transform: translate(calc(-50% - (#{$tp-transaction-line-show-hide-button-size} / 2) -
|
|
95
|
+
#{$tp-transaction-line-show-hide-button-padding}));
|
|
96
|
+
flex-direction: row-reverse;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.right {
|
|
100
|
+
transform: translate(calc(50% + (#{$tp-transaction-line-show-hide-button-size} / 2) +
|
|
101
|
+
#{$tp-transaction-line-show-hide-button-padding}));
|
|
102
|
+
flex-direction: row;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
$tp-transaction-line-buttons-overview-background-color: $tp-color-active-light !default;
|
|
2
|
+
$tp-transaction-line-buttons-overview-text-color: $tp-color-light !default;
|
|
3
|
+
$tp-transaction-line-buttons-add-text-background-color: $tp-color-action !default;
|
|
4
|
+
$tp-transaction-line-buttons-add-text-text-color: $tp-color-light !default;
|
|
5
|
+
$tp-transaction-line-show-hide-button-size: 30px !default;
|
|
6
|
+
$tp-transaction-line-show-hide-button-padding: 4px !default;
|
|
7
|
+
|
package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
+
import { TransactionService } from "../../service/transaction.service";
|
|
3
|
+
import { TransactionKind } from "@colijnit/transactionapi/build/enum/transaction-kind.enum";
|
|
4
|
+
import { Icon } from "../../enum/icon.enum";
|
|
5
|
+
import { DictionaryService } from "../../service/dictionary.service";
|
|
6
|
+
import { IconCacheService } from "../../service/icon-cache.service";
|
|
7
|
+
import { Direction } from "../../enum/direction.enum";
|
|
8
|
+
import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
|
|
9
|
+
import { TransactionAddTextLineRequest } from "@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo";
|
|
10
|
+
export declare class TransactionLineActionButtonsComponent implements OnInit {
|
|
11
|
+
iconCacheService: IconCacheService;
|
|
12
|
+
private _transactionService;
|
|
13
|
+
private _dictionaryService;
|
|
14
|
+
readonly icons: typeof Icon;
|
|
15
|
+
transactionLine: TransactionLineInfo;
|
|
16
|
+
alignDirection: Direction;
|
|
17
|
+
waitingForUserAction: EventEmitter<boolean>;
|
|
18
|
+
sidePanelButtonClicked: EventEmitter<TransactionLineInfo>;
|
|
19
|
+
showClass(): boolean;
|
|
20
|
+
showActionButtons: boolean;
|
|
21
|
+
showActionButtonsDelayed: boolean;
|
|
22
|
+
transactionKind: TransactionKind;
|
|
23
|
+
showTransactionArticleText: boolean;
|
|
24
|
+
showTransactionArticleTextOverview: boolean;
|
|
25
|
+
articleTextHeader: string;
|
|
26
|
+
textToEdit: string;
|
|
27
|
+
constructor(iconCacheService: IconCacheService, _transactionService: TransactionService, _dictionaryService: DictionaryService);
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
handleShowHideClick(): void;
|
|
30
|
+
handleTransactionArticleTextOverview(): void;
|
|
31
|
+
handleTransactionArticleText(): void;
|
|
32
|
+
handleShowSidePanel(): void;
|
|
33
|
+
showOverviewButton(): boolean;
|
|
34
|
+
showAddTextButton(): boolean;
|
|
35
|
+
showSidebarButton(): boolean;
|
|
36
|
+
saveTransactionArticleLineText(transactionAddTextLineRequest: TransactionAddTextLineRequest): void;
|
|
37
|
+
closeTransactionArticleText(event: MouseEvent): void;
|
|
38
|
+
closeTransactionArticleTextOverview(event: MouseEvent): void;
|
|
39
|
+
showArticleTextDialog(): void;
|
|
40
|
+
private _hideArticleTextDialog;
|
|
41
|
+
private _showArticleTextOverviewDialog;
|
|
42
|
+
private _hideArticleTextOverviewDialog;
|
|
43
|
+
}
|
|
@@ -35,10 +35,12 @@
|
|
|
35
35
|
width: 1px;
|
|
36
36
|
margin: 5px;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
}
|
|
39
|
+
.close-button {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-self: flex-end;
|
|
42
|
+
width: 25px;
|
|
43
|
+
height: 25px;
|
|
42
44
|
}
|
|
43
45
|
.transaction-line-side-panel-nav-bar {
|
|
44
46
|
display: flex;
|
|
@@ -2,7 +2,7 @@ $tp-transaction-line-side-panel-font-family: $tp-font-family !default;
|
|
|
2
2
|
$tp-transaction-line-side-panel-font-size: $tp-font-size !default;
|
|
3
3
|
$tp-transaction-line-side-panel-top: 0 !default;
|
|
4
4
|
$tp-transaction-line-side-panel-height: 100% !default;
|
|
5
|
-
$tp-transaction-line-side-panel-width:
|
|
5
|
+
$tp-transaction-line-side-panel-width: 450px !default;
|
|
6
6
|
$tp-transaction-line-side-panel-box-shadow: -3px 0px 16px 1px rgb(0, 0, 0, 0.2) !default;
|
|
7
7
|
$tp-transaction-line-side-panel-padding: 10px !default;
|
|
8
8
|
$tp-transaction-line-side-panel-header-label-font-family: $tp-font-family !default;
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
@include export-module('co-transaction-line-side-panel-default') {
|
|
4
4
|
.co-transaction-line-side-panel-default {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
row-gap: 20px;
|
|
5
8
|
//.side-panel-header-description {
|
|
6
9
|
// font-weight: $tp-transaction-line-side-panel-header-description-font-weight;
|
|
7
10
|
//}
|
|
@@ -7,8 +7,8 @@ export declare class FilterRequestService {
|
|
|
7
7
|
constructor(searchService: TransactionSearchService, _transactionService: TransactionService);
|
|
8
8
|
handleCollectionChangeForRange(collection: FilterItemViewmodel[], modelName: string): void;
|
|
9
9
|
handleCollectionChangeForArray(collection: FilterItemViewmodel[], modelName: string): void;
|
|
10
|
-
handleCollectionChangeForSingleValue(
|
|
11
|
-
handleCollectionChangeForSingleNumber(
|
|
10
|
+
handleCollectionChangeForSingleValue(value: string, modelName: string): void;
|
|
11
|
+
handleCollectionChangeForSingleNumber(value: number, modelName: string): void;
|
|
12
12
|
handleCheckboxValueChangeForString(value: boolean, modelName: string): void;
|
|
13
13
|
handleCheckboxValueChangeForNumber(value: boolean, modelName: string): void;
|
|
14
14
|
handleDateRangeChange(dates: Date[], modelName: string): void;
|
|
@@ -16,8 +16,6 @@ export declare class FilterRequestService {
|
|
|
16
16
|
private _getFilterRequestForCollectionRange;
|
|
17
17
|
private _getFilterRequestForBooleanToString;
|
|
18
18
|
private _getFilterRequestForCollectionArray;
|
|
19
|
-
private _getFilterRequestForSingleCollectionValue;
|
|
20
|
-
private _getFilterRequestForSingleCollectionNumber;
|
|
21
19
|
private _getFilterRequestForDateRange;
|
|
22
20
|
private _formatDateToString;
|
|
23
21
|
}
|
|
@@ -5,7 +5,13 @@ export declare class TransactionSearchService {
|
|
|
5
5
|
private _transactionService;
|
|
6
6
|
searchRequest: TransactionSearchViewRequest;
|
|
7
7
|
transactions: TransactionSearchView[];
|
|
8
|
+
set transactionType(value: string);
|
|
9
|
+
get transactionType(): string;
|
|
10
|
+
labelBasedOnTransactionType: Map<string, string>;
|
|
11
|
+
private _transactionType;
|
|
8
12
|
constructor(_transactionService: TransactionService);
|
|
9
13
|
searchTransactions(): void;
|
|
14
|
+
getLabelBasedOnTransactionType(): string;
|
|
10
15
|
resetFilters(): void;
|
|
16
|
+
private _resetRequest;
|
|
11
17
|
}
|
|
@@ -4,34 +4,52 @@
|
|
|
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
|
+
|
|
7
8
|
.transaction-search-wrapper {
|
|
8
9
|
display: flex;
|
|
9
|
-
|
|
10
|
-
height:
|
|
10
|
+
border-right: $cc-co-transaction-search-border-style;
|
|
11
|
+
//height: $cc-co-transaction-search-screen-height;
|
|
12
|
+
//overflow: hidden;
|
|
13
|
+
|
|
14
|
+
&.fullscreen {
|
|
15
|
+
width: 100vw;
|
|
16
|
+
transition: width 0.2s ease-in-out;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.sidebar {
|
|
20
|
+
width:$cc-co-transaction-searchbar-width;
|
|
21
|
+
transition: width 0.2s ease-in-out;
|
|
22
|
+
}
|
|
11
23
|
}
|
|
24
|
+
|
|
12
25
|
.transaction-filter-wrapper {
|
|
13
26
|
display: flex;
|
|
14
|
-
flex-basis: 350px;
|
|
27
|
+
//flex-basis: 350px;
|
|
28
|
+
//overflow-y: auto;
|
|
29
|
+
//overflow-x: hidden;
|
|
30
|
+
min-width: $tp-co-transaction-filter-wrapper-min-width;
|
|
31
|
+
//height: $cc-co-transaction-search-screen-height;
|
|
32
|
+
|
|
33
|
+
&.sidebar {
|
|
34
|
+
position: absolute;
|
|
35
|
+
left: -$cc-co-transaction-searchbar-width;
|
|
36
|
+
transition: left 0.2s ease-in-out;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.fullscreen{
|
|
40
|
+
position: relative;
|
|
41
|
+
left: 0;
|
|
42
|
+
transition: left 0.2s ease-in-out;
|
|
43
|
+
}
|
|
15
44
|
}
|
|
45
|
+
|
|
16
46
|
.transaction-search-result-wrapper {
|
|
17
47
|
display: flex;
|
|
48
|
+
//height: $cc-co-transaction-search-screen-height;
|
|
49
|
+
overflow-y: auto;
|
|
18
50
|
flex-basis: 100%;
|
|
19
51
|
justify-content: flex-start;
|
|
20
|
-
padding:
|
|
21
|
-
}
|
|
22
|
-
.transaction-search-header-wrapper {
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
.transaction-search-general {
|
|
26
|
-
width: 320px;
|
|
27
|
-
}
|
|
28
|
-
.transaction-search-filter-button {
|
|
29
|
-
height: 50px;
|
|
30
|
-
width: 50px;
|
|
31
|
-
border-radius: 5px;
|
|
32
|
-
padding: 0;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
}
|
|
52
|
+
padding: $tp-co-transaction-search-result-wrapper-padding;
|
|
35
53
|
}
|
|
36
54
|
}
|
|
37
55
|
}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
$tp-co-transaction-search-font-family: $tp-font-family !default;
|
|
2
2
|
$tp-co-transaction-search-font-size: $tp-font-size !default;
|
|
3
|
-
$
|
|
4
|
-
$
|
|
5
|
-
$
|
|
6
|
-
|
|
3
|
+
$cc-co-transaction-search-background-color: $cc-color-light !default;
|
|
4
|
+
$cc-co-transaction-search-border-color: $tp-color-border !default;
|
|
5
|
+
$cc-co-transaction-search-border-style: solid 1px !default;
|
|
6
|
+
//$cc-co-transaction-search-screen-height: 95vh !default;
|
|
7
|
+
|
|
8
|
+
$cc-co-transaction-searchbar-width:370px !default;
|
|
9
|
+
|
|
10
|
+
$tp-co-transaction-filter-wrapper-min-width: 360px !default;
|
|
11
|
+
$tp-co-transaction-filter-button-color: $cc-color-light !default;
|
|
12
|
+
$tp-co-transaction-filter-input-border: none !default;
|
|
7
13
|
|
|
8
14
|
$tp-co-transaction-filter-font-family: $tp-font-family !default;
|
|
9
15
|
$tp-co-transaction-filter-font-size: $tp-font-size !default;
|
|
10
16
|
$cc-co-transaction-filter-background-color: $cc-color-light !default;
|
|
11
17
|
$cc-co-transaction-filter-width: 350px !default;
|
|
12
18
|
$cc-co-transaction-filter-padding: 10px !default;
|
|
13
|
-
$cc-co-transaction-filter-border:
|
|
19
|
+
$cc-co-transaction-filter-border: none !default;
|
|
14
20
|
$cc-co-transaction-filter-top: 0 !default;
|
|
15
21
|
|
|
16
22
|
$cc-co-transaction-filter-icon-margin-left: 10px !default;
|
|
@@ -23,19 +29,30 @@ $cc-co-transaction-filter-header-font-size: 13px !default;
|
|
|
23
29
|
$cc-co-transaction-category-filter-wrapper-padding-top: 10px !default;
|
|
24
30
|
$cc-co-transaction-category-filter-content-width: 350px !default;
|
|
25
31
|
|
|
26
|
-
$tp-co-transaction-
|
|
27
|
-
$tp-co-transaction-
|
|
28
|
-
$tp-co-transaction-
|
|
29
|
-
$tp-co-transaction-
|
|
30
|
-
$tp-co-transaction-
|
|
31
|
-
$tp-co-transaction-
|
|
32
|
-
$tp-co-transaction-
|
|
33
|
-
$tp-co-transaction-
|
|
34
|
-
$tp-co-transaction-
|
|
35
|
-
$tp-co-transaction-
|
|
32
|
+
$tp-co-transaction-filter-categories-font-family: $tp-font-family !default;
|
|
33
|
+
$tp-co-transaction-filter-categories-font-size: 15px !default;
|
|
34
|
+
$tp-co-transaction-filter-categories-font-weight: bold !default;
|
|
35
|
+
$tp-co-transaction-filter-categories-active-color: $tp-color-action !default;
|
|
36
|
+
$tp-co-transaction-filter-categories-inactive-color: $tp-color-grey !default;
|
|
37
|
+
$tp-co-transaction-filter-categories-padding: 20px 30px !default;
|
|
38
|
+
$tp-co-transaction-filter-categories-border-width: 0 0 1px 0 !default;
|
|
39
|
+
$tp-co-transaction-filter-categories-border-style: solid !default;
|
|
40
|
+
$tp-co-transaction-filter-categories-active-border-width: 0 0 1px 0 !default;
|
|
41
|
+
$tp-co-transaction-filter-categories-active-border-style: solid !default;
|
|
36
42
|
|
|
37
43
|
$tp-co-transaction-search-filter-width: 100% !default;
|
|
38
44
|
$tp-co-transaction-search-filter-button-padding: 20px 0 !default;
|
|
39
45
|
$tp-co-transaction-search-filter-button-width: 90% !default;
|
|
40
46
|
|
|
41
47
|
$tp-co-transaction-search-result-width: 100% !default;
|
|
48
|
+
$tp-co-transaction-search-result-wrapper-padding: 10px !default;
|
|
49
|
+
$tp-co-transaction-search-result-upper-header-padding-left: 27px !default;
|
|
50
|
+
$tp-co-transaction-search-result-header-buttons-wrapper-padding: 0 27px !default;
|
|
51
|
+
$tp-co-transaction-search-result-header-sidebar-button-size: 21px !default;
|
|
52
|
+
|
|
53
|
+
$tp-co-transaction-search-input-text-width: 300px !default;
|
|
54
|
+
$tp-co-transaction-search-filter-button-size: 50px !default;
|
|
55
|
+
$tp-co-transaction-search-filter-button-border-radius: 5px !default;
|
|
56
|
+
$tp-co-transaction-search-filter-button-padding: 0 !default;
|
|
57
|
+
|
|
58
|
+
$tp-co-transaction-search-view-modes-wrapper-padding: 0 35px !default;
|
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
@import "./theme";
|
|
4
4
|
@import "../transaction-filter/style/material";
|
|
5
5
|
@import "../transaction-search-result/style/material";
|
|
6
|
-
@import "../transaction-
|
|
6
|
+
@import "../transaction-search-header/style/material";
|
|
7
|
+
@import "../transaction-search-tile/transaction-search-sales-order-tile/style/material";
|
|
7
8
|
@import "../../view-mode-buttons/style/material";
|
package/lib/component/transaction-search/transaction-filter/transaction-filter.component.d.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter } from "@angular/core";
|
|
2
2
|
import { Icon } from "../../../enum/icon.enum";
|
|
3
|
+
import { SearchViewMode } from "../../../enum/search-view-mode.enum";
|
|
3
4
|
import { IconCacheService } from "../../../service/icon-cache.service";
|
|
4
5
|
import { TransactionSearchService } from "../service/transaction-search.service";
|
|
5
6
|
export declare class TransactionFilterComponent {
|
|
6
7
|
iconCacheService: IconCacheService;
|
|
7
8
|
searchService: TransactionSearchService;
|
|
8
9
|
readonly icon: typeof Icon;
|
|
10
|
+
readonly searchViewModes: typeof SearchViewMode;
|
|
9
11
|
filterItems: ElementRef;
|
|
10
12
|
orderFilter: ElementRef;
|
|
11
13
|
logisticsFilter: ElementRef;
|
|
12
14
|
articleFilter: ElementRef;
|
|
15
|
+
activeSearchViewMode: SearchViewMode;
|
|
13
16
|
closeButtonClick: EventEmitter<void>;
|
|
14
17
|
resetFilterClick: EventEmitter<void>;
|
|
15
18
|
showClass(): boolean;
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
@include export-module('co-transaction-filter-categories-layout') {
|
|
4
4
|
.co-transaction-filter-categories {
|
|
5
|
-
font-family: $tp-co-transaction-
|
|
6
|
-
font-size: $tp-co-transaction-
|
|
7
|
-
font-weight: $tp-co-transaction-
|
|
5
|
+
font-family: $tp-co-transaction-filter-categories-font-family;
|
|
6
|
+
font-size: $tp-co-transaction-filter-categories-font-size;
|
|
7
|
+
font-weight: $tp-co-transaction-filter-categories-font-weight;
|
|
8
8
|
.transaction-filter-categories-wrapper {
|
|
9
9
|
display: flex;
|
|
10
10
|
justify-content: center;
|
|
11
11
|
}
|
|
12
12
|
.transaction-filter-category {
|
|
13
13
|
cursor: pointer;
|
|
14
|
-
padding: $tp-co-transaction-
|
|
15
|
-
border-width: $tp-co-transaction-
|
|
16
|
-
border-style: $tp-co-transaction-
|
|
14
|
+
padding: $tp-co-transaction-filter-categories-padding;
|
|
15
|
+
border-width: $tp-co-transaction-filter-categories-border-width;
|
|
16
|
+
border-style: $tp-co-transaction-filter-categories-border-style;
|
|
17
17
|
&.active {
|
|
18
|
-
border-width: $tp-co-transaction-
|
|
19
|
-
border-style: $tp-co-transaction-
|
|
18
|
+
border-width: $tp-co-transaction-filter-categories-active-border-width;
|
|
19
|
+
border-style: $tp-co-transaction-filter-categories-active-border-style;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
@include export-module('co-transaction-filter-categories-theme') {
|
|
4
4
|
.co-transaction-filter-categories {
|
|
5
5
|
.transaction-filter-category {
|
|
6
|
-
border-color: $tp-co-transaction-
|
|
6
|
+
border-color: $tp-co-transaction-filter-categories-inactive-color;
|
|
7
7
|
&.active {
|
|
8
|
-
color: $tp-co-transaction-
|
|
9
|
-
border-color: $tp-co-transaction-
|
|
8
|
+
color: $tp-co-transaction-filter-categories-active-color;
|
|
9
|
+
border-color: $tp-co-transaction-filter-categories-active-color;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|