@colijnit/transaction 12.1.80 → 12.1.82
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 +1013 -964
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +53 -43
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +54 -44
- package/esm2015/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +2 -1
- package/esm2015/lib/component/core/base/transaction-base.component.js +10 -5
- package/esm2015/lib/component/relation/relation-address/relation-address.component.js +5 -2
- package/esm2015/lib/component/relation/relation-contact-details/relation-contact-details.component.js +2 -2
- package/esm2015/lib/component/transaction/transaction.component.js +12 -13
- package/esm2015/lib/component/transaction/transaction.module.js +4 -2
- package/esm2015/lib/component/transaction-card/transaction-card/transaction-card.component.js +111 -0
- package/esm2015/lib/component/transaction-card/transaction-card/transaction-card.module.js +25 -0
- package/esm2015/lib/component/transaction-card/transaction-card-footer/transaction-card-footer.component.js +55 -0
- package/esm2015/lib/component/transaction-card/transaction-card-footer/transaction-card-footer.module.js +27 -0
- package/esm2015/lib/component/transaction-card/transaction-card-header/transaction-card-header.component.js +69 -0
- package/esm2015/lib/component/transaction-card/transaction-card-header/transaction-card-header.module.js +30 -0
- package/esm2015/lib/component/transaction-card/transaction-card-purchase-overview/transaction-card-purchase-overview.component.js +82 -0
- package/esm2015/lib/component/transaction-card/transaction-card-purchase-overview/transaction-card-purchase-overview.module.js +39 -0
- package/esm2015/lib/component/transaction-card/transaction-card-sales-overview/transaction-card-sales-overview.component.js +79 -0
- package/esm2015/lib/component/transaction-card/transaction-card-sales-overview/transaction-card-sales-overview.module.js +39 -0
- package/esm2015/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.js +2 -2
- package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/service/transaction-order-delivery.service.js +60 -3
- package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.component.js +45 -47
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-button.component.js +2 -2
- package/esm2015/lib/component/transaction-line-statusbar/transaction-line-statusbar.component.js +3 -1
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/transaction-quick-access-order-delivery.component.js +50 -8
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/transaction-quick-access-order-delivery.module.js +4 -2
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-statusbar/transaction-statusbar.component.js +2 -3
- package/esm2015/lib/model/extended-transaction-line-view-model.js +1 -1
- package/esm2015/lib/res/dictionary/dictionaries.js +9 -0
- package/esm2015/lib/service/dictionary.service.js +25 -27
- package/esm2015/lib/service/options.service.js +2 -2
- package/esm2015/lib/service/pending-reason.service.js +37 -18
- package/esm2015/lib/service/transaction-connector-adapter.service.js +73 -1
- package/esm2015/lib/service/transaction-connector.service.js +31 -1
- package/esm2015/lib/service/transaction-mapping.service.js +21 -1
- package/esm2015/lib/service/transaction.service.js +36 -9
- package/fesm2015/colijnit-transaction.js +901 -904
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/transaction-base.component.d.ts +1 -1
- package/lib/component/transaction/style/_layout.scss +4 -4
- package/lib/component/transaction/style/material.scss +1 -0
- package/lib/component/transaction/transaction.component.d.ts +2 -2
- package/lib/component/transaction-card/transaction-card/style/_layout.scss +12 -0
- package/lib/component/transaction-card/transaction-card/style/_material-definition.scss +0 -0
- package/lib/component/transaction-card/transaction-card/style/_theme.scss +4 -0
- package/lib/component/transaction-card/transaction-card/style/material.scss +7 -0
- package/lib/component/transaction-card/transaction-card/transaction-card.component.d.ts +27 -0
- package/lib/component/transaction-card/transaction-card/transaction-card.module.d.ts +2 -0
- package/lib/component/transaction-card/transaction-card-footer/style/_layout.scss +58 -0
- package/lib/component/transaction-card/transaction-card-footer/style/_material-definition.scss +0 -0
- package/lib/component/transaction-card/transaction-card-footer/style/_theme.scss +4 -0
- package/lib/component/transaction-card/transaction-card-footer/style/material.scss +4 -0
- package/lib/component/transaction-card/transaction-card-footer/transaction-card-footer.component.d.ts +16 -0
- package/lib/component/transaction-card/transaction-card-footer/transaction-card-footer.module.d.ts +2 -0
- package/lib/component/transaction-card/transaction-card-header/style/_layout.scss +73 -0
- package/lib/component/transaction-card/transaction-card-header/style/_material-definition.scss +0 -0
- package/lib/component/transaction-card/transaction-card-header/style/_theme.scss +4 -0
- package/lib/component/transaction-card/transaction-card-header/style/material.scss +4 -0
- package/lib/component/transaction-card/transaction-card-header/transaction-card-header.component.d.ts +16 -0
- package/lib/component/transaction-card/transaction-card-header/transaction-card-header.module.d.ts +2 -0
- package/lib/component/transaction-card/transaction-card-purchase-overview/style/_layout.scss +68 -0
- package/lib/component/transaction-card/transaction-card-purchase-overview/style/_material-definition.scss +0 -0
- package/lib/component/transaction-card/transaction-card-purchase-overview/style/_theme.scss +4 -0
- package/lib/component/transaction-card/transaction-card-purchase-overview/style/material.scss +4 -0
- package/lib/component/transaction-card/transaction-card-purchase-overview/transaction-card-purchase-overview.component.d.ts +19 -0
- package/lib/component/transaction-card/transaction-card-purchase-overview/transaction-card-purchase-overview.module.d.ts +2 -0
- package/lib/component/transaction-card/transaction-card-sales-overview/style/_layout.scss +67 -0
- package/lib/component/transaction-card/transaction-card-sales-overview/style/_material-definition.scss +0 -0
- package/lib/component/transaction-card/transaction-card-sales-overview/style/_theme.scss +4 -0
- package/lib/component/transaction-card/transaction-card-sales-overview/style/material.scss +4 -0
- package/lib/component/transaction-card/transaction-card-sales-overview/transaction-card-sales-overview.component.d.ts +19 -0
- package/lib/component/transaction-card/transaction-card-sales-overview/transaction-card-sales-overview.module.d.ts +2 -0
- package/lib/component/transaction-line/transaction-line/style/_layout.scss +8 -5
- package/lib/component/transaction-line/transaction-order-delivery-line/service/transaction-order-delivery.service.d.ts +13 -0
- package/lib/component/transaction-line/transaction-order-delivery-line/style/_layout.scss +8 -23
- package/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.component.d.ts +3 -7
- package/lib/component/transaction-line-image-and-description/style/_layout.scss +4 -1
- package/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/transaction-quick-access-order-delivery.component.d.ts +17 -2
- package/lib/model/extended-transaction-line-view-model.d.ts +1 -0
- package/lib/res/dictionary/dictionaries.d.ts +16685 -0
- package/lib/service/dictionary.service.d.ts +7 -7
- package/lib/service/pending-reason.service.d.ts +3 -1
- package/lib/service/transaction-connector-adapter.service.d.ts +9 -0
- package/lib/service/transaction-connector.service.d.ts +9 -0
- package/lib/service/transaction-mapping.service.d.ts +2 -0
- package/lib/service/transaction.service.d.ts +9 -1
- package/lib/style/_variables.scss +2 -2
- package/lib/style/transaction-globals.scss +1 -0
- package/package.json +2 -2
- package/esm2015/lib/assets/dictionary/text.properties.js +0 -751
- package/lib/assets/dictionary/text.properties.d.ts +0 -3
|
@@ -27,9 +27,9 @@ export declare abstract class TransactionBaseComponent {
|
|
|
27
27
|
expanded: boolean;
|
|
28
28
|
preview: boolean;
|
|
29
29
|
selected: boolean;
|
|
30
|
+
readonly: boolean;
|
|
30
31
|
isText: boolean;
|
|
31
32
|
isArticle: boolean;
|
|
32
|
-
readonly: boolean;
|
|
33
33
|
get model(): TransactionLineInfo | TransactionInfo;
|
|
34
34
|
isService: boolean;
|
|
35
35
|
lineOperationStatuses: LineOperationStatus[];
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
}
|
|
32
32
|
.transaction-tiles-wrapper {
|
|
33
33
|
display: grid;
|
|
34
|
-
grid-template-columns:
|
|
34
|
+
grid-template-columns: 25% 25% 25% 25%;
|
|
35
35
|
grid-column-gap: 5px;
|
|
36
36
|
grid-row-gap: 5px;
|
|
37
37
|
|
|
38
38
|
@media(max-width: 1500px) {
|
|
39
|
-
grid-template-columns:
|
|
39
|
+
grid-template-columns: 33% 33% 33%;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
@media(max-width: 1200px) {
|
|
43
|
-
grid-template-columns:
|
|
43
|
+
grid-template-columns: 50% 50%;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
@media(max-width: 900px) {
|
|
47
|
-
grid-template-columns:
|
|
47
|
+
grid-template-columns: 100%;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -11,3 +11,4 @@
|
|
|
11
11
|
@import "../../view-mode-buttons/style/material";
|
|
12
12
|
@import "../../dialog/transaction-header/dialog-transaction-header-delivery-method/style/material";
|
|
13
13
|
@import "../../transaction-line-checkbox-list/style/material";
|
|
14
|
+
@import "../../transaction-card/transaction-card/style/material";
|
|
@@ -14,7 +14,7 @@ import { RelationAnyType } from "../../model/relation-any-type";
|
|
|
14
14
|
import { TransactionEventService } from "../../service/transaction-event.service";
|
|
15
15
|
export declare class TransactionComponent implements OnDestroy {
|
|
16
16
|
iconCacheService: IconCacheService;
|
|
17
|
-
|
|
17
|
+
service: TransactionService;
|
|
18
18
|
private _appRef;
|
|
19
19
|
private _dynamicComponentService;
|
|
20
20
|
private _transactionEventService;
|
|
@@ -37,7 +37,7 @@ export declare class TransactionComponent implements OnDestroy {
|
|
|
37
37
|
private _subs;
|
|
38
38
|
private _transaction;
|
|
39
39
|
private _transactionId;
|
|
40
|
-
constructor(iconCacheService: IconCacheService,
|
|
40
|
+
constructor(iconCacheService: IconCacheService, service: TransactionService, _appRef: ApplicationRef, _dynamicComponentService: DynamicComponentService, _transactionEventService: TransactionEventService);
|
|
41
41
|
ngOnDestroy(): void;
|
|
42
42
|
saveTransactionLine(transactionAddTextLineRequest: TransactionAddTextLineRequest): void;
|
|
43
43
|
handleButtonBarButtonClicked(button: TransactionBarButton): void;
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@import "./_material-definition";
|
|
2
|
+
@import "./_layout";
|
|
3
|
+
@import "./_theme";
|
|
4
|
+
@import "../../transaction-card-footer/style/material";
|
|
5
|
+
@import "../../transaction-card-header/style/material";
|
|
6
|
+
@import "../../transaction-card-purchase-overview/style/material";
|
|
7
|
+
@import "../../transaction-card-sales-overview/style/material";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ApplicationRef, ComponentFactoryResolver, EventEmitter, Injector, OnChanges, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { TransactionTypeCategory } from "../../../enum/transaction-type-category.enum";
|
|
3
|
+
import { TransactionMappingService } from "../../../service/transaction-mapping.service";
|
|
4
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
5
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
6
|
+
export declare class TransactionCardComponent extends TransactionBaseComponent implements OnChanges {
|
|
7
|
+
protected transactionService: TransactionService;
|
|
8
|
+
private _mappingService;
|
|
9
|
+
private _compFactoryResolver;
|
|
10
|
+
private appRef;
|
|
11
|
+
private injector;
|
|
12
|
+
set container(content: any);
|
|
13
|
+
set activeCategory(value: TransactionTypeCategory);
|
|
14
|
+
get activeCategory(): TransactionTypeCategory;
|
|
15
|
+
preview: boolean;
|
|
16
|
+
selected: boolean;
|
|
17
|
+
waitingForUserAction: EventEmitter<boolean>;
|
|
18
|
+
showClass(): boolean;
|
|
19
|
+
private _transactionCardContainer;
|
|
20
|
+
private _activeCategory;
|
|
21
|
+
private _componentRef;
|
|
22
|
+
constructor(transactionService: TransactionService, _mappingService: TransactionMappingService, _compFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector);
|
|
23
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
protected transactionInfoSet(): void;
|
|
25
|
+
private _prepareContent;
|
|
26
|
+
private _prepareProps;
|
|
27
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@include export-module('cc-transaction-card-footer-layout') {
|
|
2
|
+
.co-transaction-card-footer {
|
|
3
|
+
|
|
4
|
+
.transaction-card-footer-wrapper {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
margin-top: 5px;
|
|
9
|
+
|
|
10
|
+
.expand-wrapper {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
|
|
14
|
+
co-icon {
|
|
15
|
+
width: 18px;
|
|
16
|
+
height: 18px;
|
|
17
|
+
margin-right: 10px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.expand-text {
|
|
21
|
+
width: max-content;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.date-or-delivery-method-container {
|
|
26
|
+
width: 100%;
|
|
27
|
+
text-align: -webkit-center;
|
|
28
|
+
|
|
29
|
+
.transaction-line-button {
|
|
30
|
+
width: inherit;
|
|
31
|
+
max-width: 200px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.delivery-method-preview {
|
|
35
|
+
margin: 0 10px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.co-transaction-line-statusbar co-statusbar .co-statusbar-wrapper {
|
|
40
|
+
justify-content: center;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.co-transaction-line-delivery-button {
|
|
44
|
+
&.read-only {
|
|
45
|
+
.transaction-line-button {
|
|
46
|
+
background-color: white;
|
|
47
|
+
cursor: default;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
|
|
50
|
+
co-icon {
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
package/lib/component/transaction-card/transaction-card-footer/style/_material-definition.scss
ADDED
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
3
|
+
import { TransactionTypeCategory } from "../../../enum/transaction-type-category.enum";
|
|
4
|
+
import { Icon } from "../../../enum/icon.enum";
|
|
5
|
+
import { IconCacheService } from "../../../service/icon-cache.service";
|
|
6
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
7
|
+
export declare class TransactionCardFooterComponent extends TransactionBaseComponent {
|
|
8
|
+
iconCacheService: IconCacheService;
|
|
9
|
+
transactionService: TransactionService;
|
|
10
|
+
readonly icons: typeof Icon;
|
|
11
|
+
transactionTypeCategory: TransactionTypeCategory;
|
|
12
|
+
expanded: boolean;
|
|
13
|
+
expandClicked: EventEmitter<void>;
|
|
14
|
+
showClass(): boolean;
|
|
15
|
+
constructor(iconCacheService: IconCacheService, transactionService: TransactionService);
|
|
16
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
@include export-module('cc-transaction-card-header-layout') {
|
|
2
|
+
.co-transaction-card-header {
|
|
3
|
+
|
|
4
|
+
.transaction-card-header-wrapper {
|
|
5
|
+
height: 30px;
|
|
6
|
+
grid-column-gap: 10px;
|
|
7
|
+
column-gap: 10px;
|
|
8
|
+
align-items: center;
|
|
9
|
+
margin-bottom: 5px;
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: minmax(1px, auto) max-content;
|
|
12
|
+
|
|
13
|
+
.card-header-start-wrapper {
|
|
14
|
+
display: flex;
|
|
15
|
+
height: inherit;
|
|
16
|
+
width: 100%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.card-header-end-wrapper {
|
|
20
|
+
display: flex;
|
|
21
|
+
height: inherit;
|
|
22
|
+
grid-column-gap: 10px;
|
|
23
|
+
column-gap: 10px;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
align-items: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.co-image-display {
|
|
29
|
+
width: inherit;
|
|
30
|
+
height: inherit;
|
|
31
|
+
max-width: 70px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.transaction-card-header-title-wrapper {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
grid-column-gap: 10px;
|
|
38
|
+
column-gap: 10px;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
|
|
41
|
+
co-icon {
|
|
42
|
+
width: 18px;
|
|
43
|
+
height: 18px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.transaction-card-description {
|
|
48
|
+
font-weight: bold;
|
|
49
|
+
display: flex;
|
|
50
|
+
overflow: auto;
|
|
51
|
+
|
|
52
|
+
.co-transaction-overflow-ellipsis {
|
|
53
|
+
display: block;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
co-input-text {
|
|
57
|
+
height: auto;
|
|
58
|
+
input {
|
|
59
|
+
margin-top: 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.transaction-card-expanded-wrapper {
|
|
66
|
+
|
|
67
|
+
.article-text {
|
|
68
|
+
margin-bottom: 12px;
|
|
69
|
+
max-width: 70%;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
package/lib/component/transaction-card/transaction-card-header/style/_material-definition.scss
ADDED
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IconCacheService } from "../../../service/icon-cache.service";
|
|
2
|
+
import { Icon } from "../../../enum/icon.enum";
|
|
3
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
4
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
5
|
+
export declare class TransactionCardHeaderComponent extends TransactionBaseComponent {
|
|
6
|
+
iconCacheService: IconCacheService;
|
|
7
|
+
transactionService: TransactionService;
|
|
8
|
+
readonly icons: typeof Icon;
|
|
9
|
+
showCheckbox: boolean;
|
|
10
|
+
showActionButtons: boolean;
|
|
11
|
+
showThumbnail: boolean;
|
|
12
|
+
expanded: boolean;
|
|
13
|
+
showClass(): boolean;
|
|
14
|
+
constructor(iconCacheService: IconCacheService, transactionService: TransactionService);
|
|
15
|
+
deleteTransactionLineClick(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@include export-module('cc-transaction-card-purchase-overview-layout') {
|
|
2
|
+
.co-transaction-card-purchase-overview {
|
|
3
|
+
|
|
4
|
+
.transaction-card-purchase-overview-wrapper {
|
|
5
|
+
background: white;
|
|
6
|
+
border-radius: 11px;
|
|
7
|
+
border: 1px solid $tp-color-border;
|
|
8
|
+
padding: 12px;
|
|
9
|
+
|
|
10
|
+
co-transaction-line-amount co-input-number-picker, .transaction-card-price {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
border: 1px solid $tp-color-border;
|
|
15
|
+
border-radius: 10px;
|
|
16
|
+
width: 100px;
|
|
17
|
+
min-width: 100px;
|
|
18
|
+
height: 26px;
|
|
19
|
+
.co-input-text {
|
|
20
|
+
width: 80%;
|
|
21
|
+
height: 95%;
|
|
22
|
+
input {
|
|
23
|
+
margin: 4px 0 0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
&.price {
|
|
27
|
+
width: auto;
|
|
28
|
+
font-weight: bold;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.transaction-card-content-wrapper {
|
|
33
|
+
display: flex;
|
|
34
|
+
width: 100%;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
|
|
37
|
+
.content-base {
|
|
38
|
+
width: inherit;
|
|
39
|
+
display: grid;
|
|
40
|
+
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
41
|
+
grid-template-rows: 1fr;
|
|
42
|
+
grid-column-gap: 5px;
|
|
43
|
+
margin-bottom: 5px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.content-expanded {
|
|
47
|
+
width: inherit;
|
|
48
|
+
display: grid;
|
|
49
|
+
grid-template-columns: 1fr 3fr;
|
|
50
|
+
grid-template-rows: 1fr;
|
|
51
|
+
grid-column-gap: 5px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.co-transaction-line-commission-button, .co-transaction-line-supplier-button, .co-transaction-line-warehouse-button, .co-transaction-line-delivery-button, .co-transaction-line-vat-button {
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
.transaction-line-button {
|
|
57
|
+
width: auto;
|
|
58
|
+
}
|
|
59
|
+
&.fit-content {
|
|
60
|
+
width: fit-content;
|
|
61
|
+
min-width: 50%;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { TransactionTypeCategory } from "../../../enum/transaction-type-category.enum";
|
|
3
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
4
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
5
|
+
import { TransactionEventService } from "../../../service/transaction-event.service";
|
|
6
|
+
export declare class TransactionCardPurchaseOverviewComponent extends TransactionBaseComponent implements OnInit, OnDestroy {
|
|
7
|
+
service: TransactionService;
|
|
8
|
+
private _transactionEventService;
|
|
9
|
+
readonly transactionTypeCategory: typeof TransactionTypeCategory;
|
|
10
|
+
expanded: boolean;
|
|
11
|
+
selected: boolean;
|
|
12
|
+
showCheckboxForLine: boolean;
|
|
13
|
+
private _subs;
|
|
14
|
+
showClass(): boolean;
|
|
15
|
+
constructor(service: TransactionService, _transactionEventService: TransactionEventService);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
protected transactionLineSet(): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@include export-module('cc-transaction-card-sales-overview-layout') {
|
|
2
|
+
.co-transaction-card-sales-overview {
|
|
3
|
+
|
|
4
|
+
.transaction-card-sales-overview-wrapper {
|
|
5
|
+
background: white;
|
|
6
|
+
border-radius: 11px;
|
|
7
|
+
border: 1px solid $tp-color-border;
|
|
8
|
+
padding: 12px;
|
|
9
|
+
|
|
10
|
+
co-transaction-line-amount co-input-number-picker, .transaction-card-price {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
border: 1px solid $tp-color-border;
|
|
15
|
+
border-radius: 10px;
|
|
16
|
+
width: 100px;
|
|
17
|
+
min-width: 100px;
|
|
18
|
+
height: 26px;
|
|
19
|
+
.co-input-text {
|
|
20
|
+
width: 80%;
|
|
21
|
+
height: 95%;
|
|
22
|
+
input {
|
|
23
|
+
margin: 4px 0 0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
&.price {
|
|
27
|
+
width: auto;
|
|
28
|
+
font-weight: bold;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.transaction-card-content-wrapper {
|
|
33
|
+
display: flex;
|
|
34
|
+
width: 100%;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
|
|
37
|
+
.content-base {
|
|
38
|
+
width: inherit;
|
|
39
|
+
display: grid;
|
|
40
|
+
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
41
|
+
grid-template-rows: 1fr;
|
|
42
|
+
grid-column-gap: 5px;
|
|
43
|
+
margin-bottom: 5px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.content-expanded {
|
|
47
|
+
width: inherit;
|
|
48
|
+
display: grid;
|
|
49
|
+
grid-template-columns: 1fr 3fr;
|
|
50
|
+
grid-template-rows: 1fr;
|
|
51
|
+
grid-column-gap: 5px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.co-transaction-line-commission-button, .co-transaction-line-supplier-button, .co-transaction-line-warehouse-button, .co-transaction-line-delivery-button, .co-transaction-line-vat-button {
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
.transaction-line-button {
|
|
57
|
+
width: auto;
|
|
58
|
+
}
|
|
59
|
+
&.fit-content {
|
|
60
|
+
width: fit-content;
|
|
61
|
+
min-width: 50%;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
3
|
+
import { TransactionTypeCategory } from "../../../enum/transaction-type-category.enum";
|
|
4
|
+
import { TransactionLineActionButtonsComponent } from "../../transaction-line-action-buttons/transaction-line-action-buttons.component";
|
|
5
|
+
import { IconCacheService } from "../../../service/icon-cache.service";
|
|
6
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
7
|
+
import { DictionaryService } from "../../../service/dictionary.service";
|
|
8
|
+
export declare class TransactionCardSalesOverviewComponent extends TransactionBaseComponent implements OnInit {
|
|
9
|
+
iconCacheService: IconCacheService;
|
|
10
|
+
transactionService: TransactionService;
|
|
11
|
+
private _dictionaryService;
|
|
12
|
+
readonly category: typeof TransactionTypeCategory;
|
|
13
|
+
transactionLineActionButtons: TransactionLineActionButtonsComponent;
|
|
14
|
+
showClass(): boolean;
|
|
15
|
+
expanded: boolean;
|
|
16
|
+
constructor(iconCacheService: IconCacheService, transactionService: TransactionService, _dictionaryService: DictionaryService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
handleOpenArticleText(text: string): void;
|
|
19
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
.co-transaction-line {
|
|
3
3
|
font-family: $tp-transaction-line-font-family;
|
|
4
4
|
font-size: $tp-transaction-line-font-size;
|
|
5
|
-
width: 100
|
|
5
|
+
width: calc(100% - 30px);
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
border: $tp-transaction-line-border;
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
.transaction-base-line-wrapper {
|
|
14
14
|
column-gap: $tp-transaction-line-column-gap;
|
|
15
15
|
}
|
|
16
|
-
.transaction-base-line-section {
|
|
17
|
-
column-gap: $tp-transaction-line-column-gap;
|
|
18
|
-
}
|
|
19
16
|
.line-start {
|
|
20
|
-
|
|
17
|
+
overflow: auto;
|
|
18
|
+
width: 33%;
|
|
19
|
+
}
|
|
20
|
+
.line-end {
|
|
21
|
+
max-width: 66%;
|
|
22
|
+
width: max-content;
|
|
21
23
|
}
|
|
22
24
|
.preview-margin {
|
|
23
25
|
margin-left: $tp-transaction-line-column-gap;
|
|
@@ -150,6 +152,7 @@
|
|
|
150
152
|
&:not(.is-text) {
|
|
151
153
|
.transaction-base-line-wrapper {
|
|
152
154
|
justify-content: space-between;
|
|
155
|
+
width: 100%;
|
|
153
156
|
}
|
|
154
157
|
}
|
|
155
158
|
.transaction-line-stock-wrapper {
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
+
import { ExtendedTransactionLineViewModel } from "../../../../model/extended-transaction-line-view-model";
|
|
2
|
+
import { EmailDeliveryNoteRequest } from "@colijnit/transactionapi/build/model/email-delivery-note-request";
|
|
3
|
+
import { TransactionService } from "../../../../service/transaction.service";
|
|
4
|
+
import { TransactionEventService } from "../../../../service/transaction-event.service";
|
|
5
|
+
import { PdfDeliveryNoteRequest } from "@colijnit/transactionapi/build/model/pdf-delivery-note-request";
|
|
6
|
+
import { PrintDeliveryNoteRequest } from "@colijnit/transactionapi/build/model/print-delivery-note-request";
|
|
1
7
|
export declare class TransactionOrderDeliveryService {
|
|
8
|
+
private _transactionService;
|
|
9
|
+
private _transactionEventService;
|
|
10
|
+
lines: ExtendedTransactionLineViewModel[];
|
|
2
11
|
totalQuantityToDeliver: number;
|
|
3
12
|
totalAmountLeftInOrder: number;
|
|
13
|
+
constructor(_transactionService: TransactionService, _transactionEventService: TransactionEventService);
|
|
14
|
+
handleDeliverSelectedTransactionLines(request: EmailDeliveryNoteRequest | PrintDeliveryNoteRequest | PdfDeliveryNoteRequest): Promise<boolean>;
|
|
15
|
+
private _handleAfterCommitDeliverOrders;
|
|
16
|
+
private _createRequestLines;
|
|
4
17
|
}
|
|
@@ -3,25 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
.transaction-line-buttons-grid {
|
|
5
5
|
display: grid;
|
|
6
|
-
grid-template-columns:
|
|
7
|
-
grid-template-rows: $tp-transaction-line-button-height
|
|
8
|
-
gap: 5px
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
.row-1 {
|
|
12
|
-
display: grid;
|
|
13
|
-
grid-template-columns: $tp-transaction-line-button-width $tp-transaction-line-button-big-width;
|
|
14
|
-
grid-template-rows: $tp-transaction-line-button-height $tp-transaction-line-button-height;
|
|
15
|
-
gap: 0 15px;
|
|
16
|
-
grid-area: 1 / 1 / 2 / 3;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.row-2 {
|
|
20
|
-
display: grid;
|
|
21
|
-
grid-template-columns: calc((#{$tp-transaction-line-button-width} + #{$tp-transaction-line-button-big-width}) / 2) calc((#{$tp-transaction-line-button-width} + #{$tp-transaction-line-button-big-width}) / 2);
|
|
22
|
-
grid-template-rows: $tp-transaction-line-button-height $tp-transaction-line-button-height;
|
|
23
|
-
gap: 0 15px;
|
|
24
|
-
grid-area: 2 / 1 / 3 / 3;
|
|
6
|
+
grid-template-columns: $tp-transaction-line-button-width $tp-transaction-line-button-big-width auto;
|
|
7
|
+
grid-template-rows: $tp-transaction-line-button-height;
|
|
8
|
+
gap: 5px 15px;
|
|
9
|
+
grid-template-areas:
|
|
10
|
+
". . .";
|
|
25
11
|
}
|
|
26
12
|
|
|
27
13
|
.transaction-line-extended-wrapper {
|
|
@@ -39,12 +25,11 @@
|
|
|
39
25
|
|
|
40
26
|
.transaction-line-totals-custom-grid {
|
|
41
27
|
display: grid;
|
|
42
|
-
grid-template-columns: 100px 100px 100px 100px
|
|
43
|
-
grid-template-rows:
|
|
28
|
+
grid-template-columns: 100px 100px 100px 100px;
|
|
29
|
+
grid-template-rows: $tp-transaction-line-button-height;
|
|
44
30
|
gap: 5px 15px;
|
|
45
31
|
grid-template-areas:
|
|
46
|
-
|
|
47
|
-
". . . . .";
|
|
32
|
+
". . . .";
|
|
48
33
|
}
|
|
49
34
|
|
|
50
35
|
.discount {
|