@colijnit/transaction 12.1.21 → 12.1.24
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 +260 -71
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +48 -44
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +49 -45
- package/esm2015/lib/component/avatar/avatar.component.js +30 -7
- package/esm2015/lib/component/status-bar/status-bar.component.js +37 -0
- package/esm2015/lib/component/status-bar/status-bar.module.js +21 -0
- package/esm2015/lib/component/transaction/transaction.component.js +9 -2
- package/esm2015/lib/component/transaction/transaction.module.js +4 -2
- package/esm2015/lib/component/transaction-confirmation-details/transaction-confirmation-details.component.js +1 -1
- package/esm2015/lib/component/transaction-grid/transaction-history-grid/transaction-history-grid.component.js +33 -7
- package/esm2015/lib/component/transaction-line-fields/transaction-line-discount-amount.component.js +5 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-line-discount.component.js +5 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-price.component.js +7 -5
- package/esm2015/lib/component/transaction-line-fields/transaction-line-quantum-discount.component.js +5 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-reference.component.js +5 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-special-discount.component.js +5 -3
- package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.js +18 -5
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +5 -3
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.module.js +1 -1
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-purchase-order-tile/transaction-search-purchase-order-tile.component.js +42 -33
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-purchase-order-tile/transaction-search-purchase-order-tile.module.js +4 -2
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.component.js +43 -35
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.module.js +3 -1
- package/esm2015/lib/component/transaction-tile/transaction-tile.component.js +132 -0
- package/esm2015/lib/component/transaction-tile/transaction-tile.module.js +28 -0
- package/esm2015/lib/enum/icon.enum.js +4 -1
- package/esm2015/lib/model/icon-svg.js +4 -1
- package/esm2015/lib/service/transaction.service.js +1 -1
- package/fesm2015/colijnit-transaction.js +409 -102
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/avatar/avatar.component.d.ts +10 -2
- package/lib/component/avatar/style/_layout.scss +11 -0
- package/lib/component/checkout/style/_layout.scss +0 -1
- package/lib/component/core/image-display/style/_layout.scss +1 -0
- package/lib/component/payment-qr-code/style/_layout.scss +3 -0
- package/lib/component/status-bar/status-bar.component.d.ts +8 -0
- package/lib/component/status-bar/status-bar.module.d.ts +2 -0
- package/lib/component/status-bar/style/_layout.scss +14 -0
- package/lib/component/status-bar/style/_material-definition.scss +5 -0
- package/lib/component/status-bar/style/_theme.scss +15 -0
- package/lib/component/status-bar/style/material.scss +3 -0
- package/lib/component/transaction/style/_layout.scss +18 -0
- package/lib/component/transaction-grid/transaction-history-grid/style/_layout.scss +14 -0
- package/lib/component/transaction-header/transaction-header-payment/style/_layout.scss +2 -0
- package/lib/component/transaction-header/transaction-header-payment/style/_material-definition.scss +1 -0
- package/lib/component/transaction-receiving-goods-history/style/_layout.scss +13 -0
- package/lib/component/transaction-search/style/_layout.scss +1 -1
- package/lib/component/transaction-search/style/_material-definition.scss +10 -5
- package/lib/component/transaction-search/transaction-search-header/style/_layout.scss +1 -0
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-tile/style/_layout.scss +100 -66
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-tile/style/_theme.scss +21 -19
- package/lib/component/transaction-tile/style/_layout.scss +162 -0
- package/lib/component/transaction-tile/style/_material-definition.scss +0 -0
- package/lib/component/transaction-tile/style/_theme.scss +7 -0
- package/lib/component/transaction-tile/style/material.scss +3 -0
- package/lib/component/transaction-tile/transaction-tile.component.d.ts +23 -0
- package/lib/component/transaction-tile/transaction-tile.module.d.ts +2 -0
- package/lib/enum/icon.enum.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('co-transaction-tile-layout') {
|
|
4
|
+
.co-transaction-tile {
|
|
5
|
+
|
|
6
|
+
.transaction-tile-wrapper {
|
|
7
|
+
//max-width: 500px;
|
|
8
|
+
background: white;
|
|
9
|
+
border-radius: 11px;
|
|
10
|
+
border: 1px solid #5fdbb2;
|
|
11
|
+
padding: 12px 12px 12px 19px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.header-row {
|
|
15
|
+
width: 100%;
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
margin-bottom: 10px;
|
|
19
|
+
|
|
20
|
+
.header-transport-container {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
|
|
24
|
+
.transport-method-icon {
|
|
25
|
+
width: 40px;
|
|
26
|
+
height: 40px;
|
|
27
|
+
margin: -10px 5px -10px 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.transport-method-text {
|
|
31
|
+
font-family: $tp-font-family;
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.header-date {
|
|
37
|
+
font-family: $tp-font-family;
|
|
38
|
+
font-size: 12px;
|
|
39
|
+
color: #5fdbb2;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.header-side-panel-button {
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.transaction-details-row {
|
|
48
|
+
display: flex;
|
|
49
|
+
height: 60px;
|
|
50
|
+
justify-content: space-between;
|
|
51
|
+
|
|
52
|
+
.transaction-details-container {
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
width: 75%;
|
|
56
|
+
|
|
57
|
+
.transaction-tile-title {
|
|
58
|
+
font-family: $tp-font-family;
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
margin-bottom: 5px;
|
|
61
|
+
overflow-x: clip;
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
text-overflow: ellipsis;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.transaction-tile-description {
|
|
67
|
+
font-family: $tp-font-family;
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
overflow-y: hidden;
|
|
70
|
+
color: #7d81a1;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.tile-image {
|
|
75
|
+
margin-right: 5px;
|
|
76
|
+
width: 60px;
|
|
77
|
+
height: 60px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.transaction-order-status-row {
|
|
82
|
+
display: flex;
|
|
83
|
+
width: 100%;
|
|
84
|
+
padding: 10px;
|
|
85
|
+
justify-content: flex-end;
|
|
86
|
+
|
|
87
|
+
.indicators-wrapper {
|
|
88
|
+
display: flex;
|
|
89
|
+
min-width: 70px;
|
|
90
|
+
|
|
91
|
+
.transaction-order-status-indicator {
|
|
92
|
+
width: 12px;
|
|
93
|
+
height: 8px;
|
|
94
|
+
margin: 1px;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.transaction-data-row {
|
|
100
|
+
display: flex;
|
|
101
|
+
width: 100%;
|
|
102
|
+
|
|
103
|
+
.transaction-data-header {
|
|
104
|
+
width: inherit;
|
|
105
|
+
display: flex;
|
|
106
|
+
justify-content: space-between;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.transaction-data-header-label {
|
|
110
|
+
font-family: $tp-font-family;
|
|
111
|
+
font-size: 10px;
|
|
112
|
+
color: #7d81a1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.transaction-data-header-field {
|
|
116
|
+
font-family: $tp-font-family;
|
|
117
|
+
font-size: 12px;
|
|
118
|
+
overflow-x: clip;
|
|
119
|
+
white-space: nowrap;
|
|
120
|
+
text-overflow: ellipsis;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.transaction-data-header-divider {
|
|
124
|
+
display: flex;
|
|
125
|
+
border-right: 2px solid #ebebeb;
|
|
126
|
+
margin: 5px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.transaction-data-header-item {
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
row-gap: 10px;
|
|
133
|
+
|
|
134
|
+
input::-webkit-outer-spin-button,
|
|
135
|
+
input::-webkit-inner-spin-button {
|
|
136
|
+
-webkit-appearance: none;
|
|
137
|
+
margin: 0;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.center {
|
|
143
|
+
align-items: center;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.bold {
|
|
147
|
+
font-weight: bold;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.amount-input {
|
|
151
|
+
width: 26px;
|
|
152
|
+
text-align: center;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.mutable {
|
|
156
|
+
padding: 4px 11px;
|
|
157
|
+
border-radius: 9px;
|
|
158
|
+
background: #f5f5fa;
|
|
159
|
+
margin-left: 3%;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
|
|
3
|
+
import { IconCacheService } from "../../service/icon-cache.service";
|
|
4
|
+
import { Icon } from "../../enum/icon.enum";
|
|
5
|
+
import { TransactionImageService } from "../../service/transaction-image.service";
|
|
6
|
+
import { TransactionKind } from "@colijnit/transactionapi/build/enum/transaction-kind.enum";
|
|
7
|
+
export declare class TransactionTileComponent {
|
|
8
|
+
iconCacheService: IconCacheService;
|
|
9
|
+
private _imageService;
|
|
10
|
+
readonly icon: typeof Icon;
|
|
11
|
+
readonly transactionTypes: typeof TransactionKind;
|
|
12
|
+
transactionType: TransactionKind;
|
|
13
|
+
set transactionLine(value: TransactionLineInfo);
|
|
14
|
+
get transactionLine(): TransactionLineInfo;
|
|
15
|
+
showSidePanelClicked: EventEmitter<TransactionLineInfo>;
|
|
16
|
+
image: string;
|
|
17
|
+
private _transactionLine;
|
|
18
|
+
showClass(): boolean;
|
|
19
|
+
constructor(iconCacheService: IconCacheService, _imageService: TransactionImageService);
|
|
20
|
+
handleSidePanelButtonClicked(): void;
|
|
21
|
+
getStatusColor(n: number): string;
|
|
22
|
+
private _loadLineImage;
|
|
23
|
+
}
|
package/lib/enum/icon.enum.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare enum Icon {
|
|
|
14
14
|
CartShoppingSolid = "cart_shopping_solid",
|
|
15
15
|
CashRegister = "cash_register",
|
|
16
16
|
CreditCardSolid = "credit_card_solid",
|
|
17
|
+
DeliveryStatusUncheck = "delivery_status_uncheck",
|
|
17
18
|
DeliveryTruck = "delivery_truck",
|
|
18
19
|
EditPencil = "edit_pencil",
|
|
19
20
|
IdealLogo = "ideal_logo",
|
|
@@ -33,6 +34,8 @@ export declare enum Icon {
|
|
|
33
34
|
ShelvesSolid = "shelves_solid",
|
|
34
35
|
SidePanel = "side_panel",
|
|
35
36
|
SlideIn = "slide_in",
|
|
37
|
+
SquareFull = "square_full",
|
|
38
|
+
SquareFullSolid = "square_full_solid",
|
|
36
39
|
SyncAlt = "sync_alt",
|
|
37
40
|
Tag = "tag",
|
|
38
41
|
ThickLines = "thick_lines",
|