@colijnit/transaction 256.1.71 → 256.1.73
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 +224 -112
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/add-product/add-product.component.js +83 -42
- package/esm2015/lib/component/quick-send-button/quick-send-button.component.js +3 -3
- package/esm2015/lib/component/transaction-internal/transaction-internal.component.js +2 -2
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-invoice/transaction-quick-access-invoice.component.js +12 -4
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/transaction-quick-access-order-delivery.component.js +12 -4
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-purchase/transaction-quick-access-order-purchase.component.js +117 -73
- package/esm2015/lib/component/transaction-reservation/service/transaction-sales-reservation.service.js +3 -3
- package/esm2015/lib/component/transaction-reservation/transaction-sales-reservation-popup/transaction-sales-reservation-popup.component.js +3 -2
- package/esm2015/lib/enum/icon.enum.js +3 -1
- package/esm2015/lib/model/icon-svg.js +3 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +229 -128
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/add-product/add-product.component.d.ts +4 -2
- package/lib/component/quick-send-button/style/_layout.scss +8 -1
- package/lib/component/quick-send-button/style/_material-definition.scss +6 -6
- package/lib/component/transaction-quick-access/transaction-quick-access-invoice/transaction-quick-access-invoice.component.d.ts +1 -1
- package/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/transaction-quick-access-order-delivery.component.d.ts +1 -1
- package/lib/component/transaction-quick-access/transaction-quick-access-order-purchase/transaction-quick-access-order-purchase.component.d.ts +24 -2
- package/lib/component/transaction-quick-access/transaction-quick-access-send-method-base.component.d.ts +1 -1
- package/lib/component/transaction-reservation/service/transaction-sales-reservation.service.d.ts +1 -1
- package/lib/component/transaction-reservation/transaction-sales-reservation-popup/transaction-sales-reservation-popup.component.d.ts +1 -0
- package/lib/enum/icon.enum.d.ts +2 -0
- package/lib/style/transaction-globals.scss +27 -0
- package/package.json +4 -4
|
@@ -26,11 +26,11 @@ export declare class AddProductComponent implements OnInit {
|
|
|
26
26
|
return: boolean;
|
|
27
27
|
catalogOptions: any;
|
|
28
28
|
catalogParameters: any;
|
|
29
|
-
isSearchInputFocused: boolean;
|
|
30
29
|
searchText: string;
|
|
31
30
|
showRelatedProductsPopup: boolean;
|
|
32
31
|
cartPlusIcon: SafeHtml;
|
|
33
32
|
cartMinIcon: SafeHtml;
|
|
33
|
+
pendingAddArticleAction: boolean;
|
|
34
34
|
set showCatalog(value: boolean);
|
|
35
35
|
get showCatalog(): boolean;
|
|
36
36
|
private _showCatalog;
|
|
@@ -39,15 +39,17 @@ export declare class AddProductComponent implements OnInit {
|
|
|
39
39
|
ngOnInit(): void;
|
|
40
40
|
ngOnDestroy(): void;
|
|
41
41
|
handleSearch(text: string): Promise<void>;
|
|
42
|
-
handleInputFocus(isFocused: boolean): void;
|
|
43
42
|
handleAddArticle(article: ArticleExtended): Promise<void>;
|
|
44
43
|
handleAddArticleClick(data: {
|
|
45
44
|
article: string | ArticleExtended;
|
|
46
45
|
quantity: number;
|
|
47
46
|
}): Promise<void>;
|
|
47
|
+
private _tryAddArticle;
|
|
48
|
+
private _handleArticleTypeOnAdd;
|
|
48
49
|
getActualQuantity(quantityInput: any): number;
|
|
49
50
|
handleCatalogArticleClick(article: ArticleExtended): Promise<void>;
|
|
50
51
|
showCatalogDialog(): void;
|
|
52
|
+
handleCloseCatalogueClick(): void;
|
|
51
53
|
handleCartIconClick(event: MouseEvent): void;
|
|
52
54
|
handleSearchIconClick(): void;
|
|
53
55
|
handleIFrameFeedback(iFrameFeedbackObject: {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
.icons-spacer {
|
|
45
|
-
width:
|
|
45
|
+
width: 4px;
|
|
46
46
|
}
|
|
47
47
|
.icon-wrapper-flat-left {
|
|
48
48
|
display: flex;
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
.icons-wrapper {
|
|
59
59
|
display: flex;
|
|
60
60
|
justify-content: space-evenly;
|
|
61
|
+
align-items: center;
|
|
61
62
|
}
|
|
62
63
|
//width: 75%;
|
|
63
64
|
.icon-send {
|
|
@@ -74,6 +75,12 @@
|
|
|
74
75
|
.icon-method {
|
|
75
76
|
width: $tp-co-quick-send-button-icon-send-method-width;
|
|
76
77
|
height: $tp-co-quick-send-button-icon-send-method-height;
|
|
78
|
+
svg { // for fontawesome icons
|
|
79
|
+
fill: $tp-co-quick-send-button-icon-send-color;
|
|
80
|
+
}
|
|
81
|
+
& [fill] { // for own icons
|
|
82
|
+
fill: $tp-co-quick-send-button-icon-send-color;
|
|
83
|
+
}
|
|
77
84
|
}
|
|
78
85
|
.send-button-title {
|
|
79
86
|
font-size: $tp-co-quick-send-button-title-font-size;
|
|
@@ -2,17 +2,17 @@ $tp-co-quick-send-button-height: 32px !default;
|
|
|
2
2
|
$tp-co-quick-send-button-column-gap: 5px !default;
|
|
3
3
|
$tp-co-quick-send-button-align-items: flex-start !default;
|
|
4
4
|
$tp-co-quick-send-button-background-color: $tp-default-background-accent !default;
|
|
5
|
-
$tp-co-quick-send-button-border-radius:
|
|
5
|
+
$tp-co-quick-send-button-border-radius: 0 !default;
|
|
6
6
|
$tp-co-quick-send-button-padding: 5px !default;
|
|
7
7
|
$tp-co-quick-send-button-font-size: $tp-font-size-small !default;
|
|
8
8
|
$tp-co-quick-send-button-disabled-opacity: 0.5 !default;
|
|
9
9
|
|
|
10
|
-
$tp-co-quick-send-button-send-method-dialog-icon-size:
|
|
11
|
-
$tp-co-quick-send-button-icon-send-width:
|
|
12
|
-
$tp-co-quick-send-button-icon-send-height:
|
|
10
|
+
$tp-co-quick-send-button-send-method-dialog-icon-size: 22px !default;
|
|
11
|
+
$tp-co-quick-send-button-icon-send-width: 20px !default;
|
|
12
|
+
$tp-co-quick-send-button-icon-send-height: 20px !default;
|
|
13
13
|
$tp-co-quick-send-button-icon-send-color: $tp-color-action !default;
|
|
14
14
|
$tp-co-quick-send-hover-button-icon-send-color: $tp-color-action !default;
|
|
15
15
|
$tp-co-quick-send-hover-button-svg-text-color: #fff !default;
|
|
16
|
-
$tp-co-quick-send-button-icon-send-method-width:
|
|
17
|
-
$tp-co-quick-send-button-icon-send-method-height:
|
|
16
|
+
$tp-co-quick-send-button-icon-send-method-width: 12px !default;
|
|
17
|
+
$tp-co-quick-send-button-icon-send-method-height: 12px !default;
|
|
18
18
|
$tp-co-quick-send-button-title-font-size: $tp-font-size-small !default;
|
|
@@ -31,7 +31,7 @@ export declare class TransactionQuickAccessInvoiceComponent extends TransactionQ
|
|
|
31
31
|
protected emailDocument(request: ReportingDocumentEmailSignDocBaseRequest): void;
|
|
32
32
|
transactionSet(): void;
|
|
33
33
|
_prepareRequest(request: EmailInvoiceRequest | PrintInvoiceRequest | PdfInvoiceRequest): boolean;
|
|
34
|
-
|
|
34
|
+
getHistoricDocuments(): void;
|
|
35
35
|
handleSendDocument(defaultSendMethod: string): void;
|
|
36
36
|
handleSendMethodOkClick(method: string): Promise<void>;
|
|
37
37
|
private _createRequestLines;
|
|
@@ -36,7 +36,7 @@ export declare class TransactionQuickAccessOrderDeliveryComponent extends Transa
|
|
|
36
36
|
transactionSet(): void;
|
|
37
37
|
_prepareRequest(request: EmailDeliveryNoteRequest | PrintDeliveryNoteRequest | PdfDeliveryNoteRequest): void;
|
|
38
38
|
_prepareHistoricRequest(request: EmailHistoricDeliveryNoteRequest | PrintHistoricDeliveryNoteRequest | PdfHistoricDeliveryNoteRequest): void;
|
|
39
|
-
|
|
39
|
+
getHistoricDocuments(): void;
|
|
40
40
|
handleSendDocument(defaultSendMethod: string): void;
|
|
41
41
|
handleSendMethodOkClick(method: string): Promise<void>;
|
|
42
42
|
private _createRequestLines;
|
|
@@ -5,6 +5,7 @@ import { ReportingDocumentEmailSignDocBaseRequest } from '@colijnit/mainapi/buil
|
|
|
5
5
|
import { ReportingDocumentPdfBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-pdf-base-request';
|
|
6
6
|
import { ReportLayoutSelectionEmail } from '@colijnit/mainapi/build/model/report-layout-selection-email.bo';
|
|
7
7
|
import { ReportLayoutSelectionPrint } from '@colijnit/mainapi/build/model/report-layout-selection-print.bo';
|
|
8
|
+
import { PrintPurchaseOrderForSalesOrderRequest } from '@colijnit/transactionapi/build/model/print-purchase-order-for-sales-order-request';
|
|
8
9
|
import { TransactionEventService } from '../../../service/transaction-event.service';
|
|
9
10
|
import { IconCacheService } from '../../../service/icon-cache.service';
|
|
10
11
|
import { TransactionScreenConfigurationService } from '../../../service/transaction-screen-configuration.service';
|
|
@@ -17,15 +18,35 @@ import { TransactionSalesReservationService } from '../../transaction-reservatio
|
|
|
17
18
|
import { TransactionHeaderService } from '../../core/base/service/transaction-header.service';
|
|
18
19
|
import { TransactionSearchView } from '@colijnit/transactionapi/build/model/transaction-search-view.bo';
|
|
19
20
|
import { BatchTransactionSendingRequest } from '@colijnit/transactionapi/build/model/batch-transaction-sending-request';
|
|
21
|
+
import { Printer } from "@colijnit/mainapi/build/model/printer.bo";
|
|
22
|
+
import { TransactionSendDocumentsComponent } from "../../transaction-send-documents/transaction-send-documents.component";
|
|
23
|
+
interface OverruleOptions {
|
|
24
|
+
code: number;
|
|
25
|
+
description: string;
|
|
26
|
+
}
|
|
20
27
|
export declare class TransactionQuickAccessOrderPurchaseComponent extends TransactionQuickAccessSendMethodBaseComponent {
|
|
21
28
|
salesReservationService: TransactionSalesReservationService;
|
|
22
29
|
showClass(): boolean;
|
|
30
|
+
sendDocumentsComponent: TransactionSendDocumentsComponent;
|
|
23
31
|
canGenerate: boolean;
|
|
24
32
|
showShippingMethodDialog: boolean;
|
|
25
33
|
selectedTransactions: TransactionSearchView[];
|
|
26
34
|
reportDocumentEmailRequest: ReportingDocumentEmailSignDocBaseRequest;
|
|
27
35
|
reportDocumentPrintRequest: ReportingDocumentPrintSignDocBaseRequest;
|
|
28
36
|
reportDocumentPdfRequest: ReportingDocumentPdfBaseRequest;
|
|
37
|
+
batchTransactionSendingRequest: BatchTransactionSendingRequest;
|
|
38
|
+
printPurchaseOrderForSalesOrderRequest: PrintPurchaseOrderForSalesOrderRequest;
|
|
39
|
+
useDefaultLayout: boolean;
|
|
40
|
+
useDefaultShippingMethods: boolean;
|
|
41
|
+
saveDefaultPrinterForUser: boolean;
|
|
42
|
+
saveDefaultPrinterForAllUsers: boolean;
|
|
43
|
+
printerList: Printer[];
|
|
44
|
+
selectedPrinter: Printer;
|
|
45
|
+
overruledEmail: OverruleOptions;
|
|
46
|
+
overruledEdi: OverruleOptions;
|
|
47
|
+
overruledPrint: OverruleOptions;
|
|
48
|
+
reportIdForPrinting: number;
|
|
49
|
+
reportIdForEmail: number;
|
|
29
50
|
defaultSendMethod: string;
|
|
30
51
|
private defaultSendMethodInitialized;
|
|
31
52
|
private _subs;
|
|
@@ -34,11 +55,11 @@ export declare class TransactionQuickAccessOrderPurchaseComponent extends Transa
|
|
|
34
55
|
ngOnDestroy(): void;
|
|
35
56
|
handleSelectAllLines(value: boolean): void;
|
|
36
57
|
handleSend(method: string): Promise<void>;
|
|
37
|
-
handleSendMethodOkClick(
|
|
38
|
-
handleShippingMethodOkClick(request: BatchTransactionSendingRequest): Promise<void>;
|
|
58
|
+
handleSendMethodOkClick(methodData: any): Promise<void>;
|
|
39
59
|
handleReservationModeClick(): Promise<void>;
|
|
40
60
|
transactionSet(): void;
|
|
41
61
|
openSendDialog(): void;
|
|
62
|
+
loadDefaultPrinterName(reportId: number): void;
|
|
42
63
|
private _checkPurchaseOrders;
|
|
43
64
|
protected getDefaultEmailAddressList(): Promise<string[]>;
|
|
44
65
|
protected getDefaultSendMethod(): Promise<number>;
|
|
@@ -48,3 +69,4 @@ export declare class TransactionQuickAccessOrderPurchaseComponent extends Transa
|
|
|
48
69
|
protected emailDocument(request: ReportingDocumentEmailSignDocBaseRequest): void;
|
|
49
70
|
protected printDocument(request: ReportingDocumentPrintSignDocBaseRequest): Promise<void>;
|
|
50
71
|
}
|
|
72
|
+
export {};
|
|
@@ -41,7 +41,7 @@ export declare abstract class TransactionQuickAccessSendMethodBaseComponent exte
|
|
|
41
41
|
defaultSendMethodIcon: string;
|
|
42
42
|
emailAddresses: string[];
|
|
43
43
|
showSendMethodDialog: boolean;
|
|
44
|
-
sendMethods: import("@colijnit/sharedcomponents").ɵ
|
|
44
|
+
sendMethods: import("@colijnit/sharedcomponents").ɵbz[];
|
|
45
45
|
signatureDocumentId: number;
|
|
46
46
|
historicReports: HistoricReport[];
|
|
47
47
|
isDocSignEnabled: boolean;
|
package/lib/component/transaction-reservation/service/transaction-sales-reservation.service.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ export declare class TransactionSalesReservationService {
|
|
|
12
12
|
getSalesOrderLines(salesOrderId: number): Promise<void>;
|
|
13
13
|
makeGetSalesOrderLinesRequest(salesOrderId: number, purchaseTransactionOrder?: number, correctionAllowed?: boolean, correctionMode?: boolean, supplierNo?: number): OrderReservationSalesOrderLinesRequest;
|
|
14
14
|
reservationAvailable(salesOrderId: number, lineNr: number): boolean;
|
|
15
|
-
processReservation(reservationLines: PurchaseReservationPurchaseLine[]): Promise<boolean>;
|
|
15
|
+
processReservation(reservationLines: PurchaseReservationPurchaseLine[], transId: number): Promise<boolean>;
|
|
16
16
|
resetLineData(): void;
|
|
17
17
|
}
|
|
@@ -12,6 +12,7 @@ export declare class TransactionSalesReservationPopupComponent implements OnInit
|
|
|
12
12
|
private _transactionHeaderService;
|
|
13
13
|
readonly icons: typeof Icon;
|
|
14
14
|
reservationOrderLines: PurchaseReservationPurchaseLine[];
|
|
15
|
+
transactionId: number;
|
|
15
16
|
showClass(): boolean;
|
|
16
17
|
constructor(iconCacheService: IconCacheService, salesReservationService: TransactionSalesReservationService, _transactionService: TransactionService, _transactionHeaderService: TransactionHeaderService);
|
|
17
18
|
ngOnInit(): void;
|
package/lib/enum/icon.enum.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export declare enum Icon {
|
|
|
46
46
|
DetailView = "detail_view",
|
|
47
47
|
EditPencil = "edit_pencil",
|
|
48
48
|
EllipsisLight = "ellipsis_light",
|
|
49
|
+
EllipsisVerticalOpen = "ellipsis_vertical_open",
|
|
49
50
|
EllipsisVerticalSolid = "ellipsis_vertical_solid",
|
|
50
51
|
EqualsSolid = "equals_solid",
|
|
51
52
|
ExpandSolid = "expand_solid",
|
|
@@ -115,6 +116,7 @@ export declare enum Icon {
|
|
|
115
116
|
ScrewdriverWrenchLight = "screwdriver_wrench_light",
|
|
116
117
|
ScrewdriverWrenchRegular = "screwdriver_wrench_regular",
|
|
117
118
|
ServiceCartRegular = "service_cart_regular",
|
|
119
|
+
ShareSharpRegular = "share_sharp_regular",
|
|
118
120
|
ShareSolid = "share_solid",
|
|
119
121
|
SharpLightTruckMovingClock = "sharp_light_truck_moving_clock",
|
|
120
122
|
SharpRegularBarcodeReadTag = "sharp_regular_barcode_read_tag",
|
|
@@ -18,6 +18,33 @@
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
.co-transaction {
|
|
21
|
+
.co-send-method-dialog {
|
|
22
|
+
.co-dialog {
|
|
23
|
+
&:not(.is-mobile) {
|
|
24
|
+
.co-dialog-wrapper {
|
|
25
|
+
width: 500px;
|
|
26
|
+
background-color: #ffffff;
|
|
27
|
+
.dialog-header {
|
|
28
|
+
background-color: #ffffff;
|
|
29
|
+
}
|
|
30
|
+
.dialog-content {
|
|
31
|
+
background-color: #ffffff;
|
|
32
|
+
}
|
|
33
|
+
.dialog-footer {
|
|
34
|
+
background-color: #ffffff;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.co-input-checkbox {
|
|
39
|
+
&:not(.hasnolabel) {
|
|
40
|
+
.checkbox {
|
|
41
|
+
border-color: #f8f8fa;
|
|
42
|
+
background-color: #f8f8fa;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
21
48
|
.co-dialog {
|
|
22
49
|
&:not(.borderless) {
|
|
23
50
|
.co-dialog-wrapper {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/transaction",
|
|
3
|
-
"version": "256.1.
|
|
3
|
+
"version": "256.1.73",
|
|
4
4
|
"description": "Colijn IT transaction module for Angular 12",
|
|
5
5
|
"repository": "npm/npm",
|
|
6
6
|
"author": "Colijn IT",
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
"@colijnit/articleapi": ">=256.1.8",
|
|
13
13
|
"@colijnit/catalog": ">=256.1.24",
|
|
14
14
|
"@colijnit/corecomponents": ">=1.12.0",
|
|
15
|
-
"@colijnit/corecomponents_v12": ">=256.1.
|
|
15
|
+
"@colijnit/corecomponents_v12": ">=256.1.20",
|
|
16
16
|
"@colijnit/ioneconnector": ">=256.1.0",
|
|
17
17
|
"@colijnit/mainapi": ">=256.1.2",
|
|
18
18
|
"@colijnit/product": ">=256.1.5",
|
|
19
19
|
"@colijnit/relation": ">=256.1.1",
|
|
20
20
|
"@colijnit/relationapi": ">=256.1.3",
|
|
21
21
|
"@colijnit/sharedapi": ">=1.0.20",
|
|
22
|
-
"@colijnit/sharedcomponents": ">=256.
|
|
23
|
-
"@colijnit/transactionapi": ">=256.1.
|
|
22
|
+
"@colijnit/sharedcomponents": ">=256.2.3",
|
|
23
|
+
"@colijnit/transactionapi": ">=256.1.27",
|
|
24
24
|
"@types/three": ">=0.125.0",
|
|
25
25
|
"@tweenjs/tween.js": ">=17.2.0",
|
|
26
26
|
"three": ">=0.125.0",
|