@colijnit/transaction 257.1.23 → 257.1.25
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 +34 -28
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/delivery-planning/delivery-planning.component.js +7 -1
- package/esm2015/lib/component/delivery-planning/service/delivery-planning.service.js +13 -5
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-send-method-base.component.js +12 -7
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +3 -5
- package/esm2015/lib/service/transaction.service.js +2 -13
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +33 -27
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/delivery-planning/delivery-planning.component.d.ts +3 -2
- package/lib/component/transaction-quick-access/transaction-quick-access-send-method-base.component.d.ts +1 -0
- package/lib/service/transaction.service.d.ts +0 -6
- package/package.json +1 -1
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
function Version() {
|
|
34
34
|
this.name = "@colijnit/transaction";
|
|
35
35
|
this.description = "Colijn IT transaction package";
|
|
36
|
-
this.symVer = "257.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "257.1.25";
|
|
37
|
+
this.publishDate = "11-3-2025 14:52:03";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -15725,8 +15725,6 @@
|
|
|
15725
15725
|
[TransactionTypeCategory.PurchaseOrderReceivedGoods, 2]
|
|
15726
15726
|
]);
|
|
15727
15727
|
_this._boFactory = new businessObjectFactory.BusinessObjectFactory();
|
|
15728
|
-
_this.isBatchModalOpen = new rxjs.BehaviorSubject(false);
|
|
15729
|
-
_this.batchModalState = _this.isBatchModalOpen.asObservable();
|
|
15730
15728
|
return _this;
|
|
15731
15729
|
}
|
|
15732
15730
|
Object.defineProperty(TransactionService.prototype, "transForServiceFromSalesTransactionLine", {
|
|
@@ -15784,15 +15782,6 @@
|
|
|
15784
15782
|
return relationKind_enum$1.RelationKind.Customer;
|
|
15785
15783
|
}
|
|
15786
15784
|
};
|
|
15787
|
-
TransactionService.prototype.openBatchModal = function () {
|
|
15788
|
-
this.isBatchModalOpen.next(true);
|
|
15789
|
-
};
|
|
15790
|
-
TransactionService.prototype.closeBatchModal = function () {
|
|
15791
|
-
this.isBatchModalOpen.next(false);
|
|
15792
|
-
};
|
|
15793
|
-
TransactionService.prototype.toggleBatchModal = function () {
|
|
15794
|
-
this.isBatchModalOpen.next(!this.isBatchModalOpen.value);
|
|
15795
|
-
};
|
|
15796
15785
|
TransactionService.prototype.showWarehouseLocationPopup = function () {
|
|
15797
15786
|
return __awaiter(this, void 0, void 0, function () {
|
|
15798
15787
|
var linesThatShouldHaveLocation, response_1;
|
|
@@ -24712,17 +24701,13 @@
|
|
|
24712
24701
|
}
|
|
24713
24702
|
TransactionQuickAccessSendMethodBaseComponent.prototype.ngOnInit = function () {
|
|
24714
24703
|
_super.prototype.ngOnInit.call(this);
|
|
24715
|
-
this.
|
|
24716
|
-
this._getDefaultSendMethod();
|
|
24717
|
-
this._getEmailLayouts();
|
|
24718
|
-
this._getPrintLayouts();
|
|
24719
|
-
this.isDocSignEnabled = this.screenConfigService.getObjectConfigurationFor(this.cfgNames.IsDocSignEnabled).immediatelyVisible();
|
|
24720
|
-
this.isAdditionalDocEnabled = this.screenConfigService.getObjectConfigurationFor(this.cfgNames.IsAdditionalDocEnabled).immediatelyVisible();
|
|
24704
|
+
this._prepareData();
|
|
24721
24705
|
};
|
|
24722
24706
|
TransactionQuickAccessSendMethodBaseComponent.prototype.transactionSet = function () {
|
|
24723
24707
|
this.reportDocumentEmailRequest.transId = this.transactionInfo.id;
|
|
24724
24708
|
this.reportDocumentPrintRequest.transId = this.transactionInfo.id;
|
|
24725
24709
|
this.reportDocumentPdfRequest.transId = this.transactionInfo.id;
|
|
24710
|
+
this._prepareData();
|
|
24726
24711
|
};
|
|
24727
24712
|
TransactionQuickAccessSendMethodBaseComponent.prototype.relationSet = function () {
|
|
24728
24713
|
var _this = this;
|
|
@@ -24883,6 +24868,15 @@
|
|
|
24883
24868
|
});
|
|
24884
24869
|
}
|
|
24885
24870
|
};
|
|
24871
|
+
TransactionQuickAccessSendMethodBaseComponent.prototype._prepareData = function () {
|
|
24872
|
+
this._getPrinters();
|
|
24873
|
+
this._getDefaultSendMethod();
|
|
24874
|
+
this._getEmailLayouts();
|
|
24875
|
+
this._getPrintLayouts();
|
|
24876
|
+
this.isDocSignEnabled = this.screenConfigService.getObjectConfigurationFor(this.cfgNames.IsDocSignEnabled).immediatelyVisible();
|
|
24877
|
+
this.isAdditionalDocEnabled = this.screenConfigService.getObjectConfigurationFor(this.cfgNames.IsAdditionalDocEnabled).immediatelyVisible();
|
|
24878
|
+
this.getHistoricDocuments();
|
|
24879
|
+
};
|
|
24886
24880
|
TransactionQuickAccessSendMethodBaseComponent.prototype._getPrinters = function () {
|
|
24887
24881
|
var _this = this;
|
|
24888
24882
|
this.transactionService.getPrinters().then(function (printerList) {
|
|
@@ -30151,7 +30145,7 @@
|
|
|
30151
30145
|
return list2.some(function (num) { return set1.has(num); });
|
|
30152
30146
|
};
|
|
30153
30147
|
DeliveryPlanningService.prototype.reorderItem = function (array, item, direction) {
|
|
30154
|
-
var _b
|
|
30148
|
+
var _b;
|
|
30155
30149
|
var index = array.indexOf(item);
|
|
30156
30150
|
if (index === -1) {
|
|
30157
30151
|
throw new Error("Item not found in array");
|
|
@@ -30161,11 +30155,19 @@
|
|
|
30161
30155
|
if (newIndex < 0 || newIndex >= array.length) {
|
|
30162
30156
|
return; // Do nothing if already at the first or last position
|
|
30163
30157
|
}
|
|
30164
|
-
|
|
30158
|
+
var originalDuration = item.endTime.getTime() - item.startTime.getTime();
|
|
30159
|
+
var swapItem = array[newIndex];
|
|
30160
|
+
// Assign new start time based on the swapped item's original start time
|
|
30161
|
+
item.startTime = new Date(swapItem.startTime.getTime());
|
|
30162
|
+
item.endTime = new Date(item.startTime.getTime() + originalDuration);
|
|
30163
|
+
// Ensure the swapped item doesn't overlap
|
|
30164
|
+
var swapDuration = swapItem.endTime.getTime() - swapItem.startTime.getTime();
|
|
30165
|
+
if (item.endTime.getTime() > swapItem.startTime.getTime()) {
|
|
30166
|
+
swapItem.startTime = new Date(item.endTime.getTime()); // Adjust start time to avoid overlap
|
|
30167
|
+
swapItem.endTime = new Date(swapItem.startTime.getTime() + swapDuration);
|
|
30168
|
+
}
|
|
30169
|
+
// Swap positions in the array
|
|
30165
30170
|
_b = __read([array[newIndex], array[index]], 2), array[index] = _b[0], array[newIndex] = _b[1];
|
|
30166
|
-
// Swap startTime and endTime properties
|
|
30167
|
-
_c = __read([array[newIndex].startTime, array[index].startTime], 2), array[index].startTime = _c[0], array[newIndex].startTime = _c[1];
|
|
30168
|
-
_d = __read([array[newIndex].endTime, array[index].endTime], 2), array[index].endTime = _d[0], array[newIndex].endTime = _d[1];
|
|
30169
30171
|
};
|
|
30170
30172
|
return DeliveryPlanningService;
|
|
30171
30173
|
}());
|
|
@@ -40008,6 +40010,12 @@
|
|
|
40008
40010
|
DeliveryPlanningComponent.prototype.showClass = function () {
|
|
40009
40011
|
return true;
|
|
40010
40012
|
};
|
|
40013
|
+
DeliveryPlanningComponent.prototype.ngOnDestroy = function () {
|
|
40014
|
+
if (this._deliveryPlanningService.employeeView) {
|
|
40015
|
+
this._deliveryPlanningService.employeeView = false;
|
|
40016
|
+
this._deliveryPlanningService.relationId = undefined;
|
|
40017
|
+
}
|
|
40018
|
+
};
|
|
40011
40019
|
DeliveryPlanningComponent.prototype.fullscreenToggle = function () {
|
|
40012
40020
|
this.fullscreenEvent.emit();
|
|
40013
40021
|
};
|
|
@@ -44494,8 +44502,6 @@
|
|
|
44494
44502
|
if (_this.salesOrdersPageActive && _this.showBatchOptions) {
|
|
44495
44503
|
_this.markSelectedTransactions();
|
|
44496
44504
|
}
|
|
44497
|
-
}), this.transactionService.batchModalState.subscribe(function (state) {
|
|
44498
|
-
_this.showBatchProcessDialog = state;
|
|
44499
44505
|
}));
|
|
44500
44506
|
};
|
|
44501
44507
|
TransactionSearchResultComponent.prototype.ngOnChanges = function (changes) {
|
|
@@ -44623,7 +44629,7 @@
|
|
|
44623
44629
|
this.showProcessOrdersLoader = false;
|
|
44624
44630
|
this.transactionService.getBatchJobProgressesForTheUser().then(function (batchJobProgresses) {
|
|
44625
44631
|
_this.batchJobProgress = batchJobProgresses;
|
|
44626
|
-
_this.
|
|
44632
|
+
_this.showBatchProcessDialog = true;
|
|
44627
44633
|
});
|
|
44628
44634
|
};
|
|
44629
44635
|
TransactionSearchResultComponent.prototype._clearSelected = function () {
|
|
@@ -44635,7 +44641,7 @@
|
|
|
44635
44641
|
TransactionSearchResultComponent.decorators = [
|
|
44636
44642
|
{ type: i0.Component, args: [{
|
|
44637
44643
|
selector: 'co-transaction-search-result',
|
|
44638
|
-
template: "\n <ng-container *ngIf=\"screenConfigLoaded\">\n <div class=\"actions-wrapper\"\n *ngIf=\"searchService.transactions?.length > 0 && salesOrdersPageActive && showBatchOptions\">\n <co-input-checkbox\n [model]=\"checkIfAllSelected()\"\n [label]=\"checkIfAllSelected() ? 'DESELECT_ALL_ORDERS' : 'SELECT_ALL_ORDERS' | localize\"\n (modelChange)=\"onToggleAllOrders(checkIfAllSelected())\">\n </co-input-checkbox>\n <co-quick-send-button\n *ngIf=\"checkIfSelected()\"\n [showSendMethodDialogIcon]=\"false\"\n [showLoader]=\"showProcessOrdersLoader\"\n (sendIconClicked)=\"showShippingModal()\">\n </co-quick-send-button>\n </div>\n\n <div class=\"transaction-search-result-content-tiles-wrapper\" [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\"\n *ngIf=\"activeContentViewMode === contentViewModes.Tiles && !extendedTransactionSearch\">\n <div class=\"transaction-tile\" *ngFor=\"let transaction of searchService.transactions\">\n <co-transaction-search-tile\n [draggable]=\"draggableTransactions\"\n (dragstart)=\"dragStarted($event, transaction)\"\n (dragend)=\"dragEnd($event)\"\n [transaction]=\"transaction\"\n [showCheckbox]=\"salesOrdersPageActive && showBatchOptions\"\n [selected]=\"transaction.selected\"\n [class]=\"transaction === selectedTransaction ? 'selected' : ''\"\n (transactionClick)=\"onTransactionClick($event)\"\n (selectedClick)=\"onSelectedClick($event)\">\n </co-transaction-search-tile>\n </div>\n </div>\n\n <div class=\"transaction-search-result-content-grid-wrapper\"\n *ngIf=\"activeContentViewMode === contentViewModes.Grid && !extendedTransactionSearch\">\n <co-transaction-search-grid\n [showCheckbox]=\"salesOrdersPageActive && showBatchOptions\"\n (transactionClick)=\"onTransactionClick($event)\">\n </co-transaction-search-grid>\n </div>\n\n <div class=\"transaction-extended-search-result-tile-wrapper\" *ngIf=\"extendedTransactionSearch\">\n <div class=\"transaction-tile\" *ngFor=\"let transaction of searchService.transactions\">\n <co-transaction-search-sales-line-select-tile\n [transaction]=\"transaction\"\n (transactionClick)=\"onTransactionClick($event)\"\n (selectedClick)=\"onSelectedClick($event)\"\n [extendedTransactionSearch]=\"extendedTransactionSearch\">\n </co-transaction-search-sales-line-select-tile>\n </div>\n </div>\n\n <co-pagination-bar\n *ngIf=\"searchService.transactions?.length > 0\"\n [currentPage]=\"searchService.currentPage\"\n [itemsPerPage]=\"searchService.transactionsPerPage\"\n [totalItems]=\"searchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"fullscreen\"\n [paginationRange]=\"!fullscreen ? 6 : 8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n\n <div class=\"empty-state-wrapper\" *ngIf=\"searchService.transactions && searchService.resultCount === 0\">\n <span [textContent]=\"'0_RESULTS_FOUND' | localize\"></span>\n </div>\n </ng-container>\n\n <co-shipping-method-dialog\n *ngIf=\"showShippingMethodDialog\"\n [category]=\"batchCategory\"\n [selectedTransactions]=\"selectedTransactions\"\n (cancelClicked)=\"showShippingMethodDialog = false\"\n (saveClicked)=\"shippingDialogSaveClicked($event)\">\n </co-shipping-method-dialog>\n\n <co-batch-process-dialog\n *ngIf=\"showBatchProcessDialog\"\n @fadeInOut\n [batchJobProgress]=\"batchJobProgress\"\n (close)=\"
|
|
44644
|
+
template: "\n <ng-container *ngIf=\"screenConfigLoaded\">\n <div class=\"actions-wrapper\"\n *ngIf=\"searchService.transactions?.length > 0 && salesOrdersPageActive && showBatchOptions\">\n <co-input-checkbox\n [model]=\"checkIfAllSelected()\"\n [label]=\"checkIfAllSelected() ? 'DESELECT_ALL_ORDERS' : 'SELECT_ALL_ORDERS' | localize\"\n (modelChange)=\"onToggleAllOrders(checkIfAllSelected())\">\n </co-input-checkbox>\n <co-quick-send-button\n *ngIf=\"checkIfSelected()\"\n [showSendMethodDialogIcon]=\"false\"\n [showLoader]=\"showProcessOrdersLoader\"\n (sendIconClicked)=\"showShippingModal()\">\n </co-quick-send-button>\n </div>\n\n <div class=\"transaction-search-result-content-tiles-wrapper\" [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\"\n *ngIf=\"activeContentViewMode === contentViewModes.Tiles && !extendedTransactionSearch\">\n <div class=\"transaction-tile\" *ngFor=\"let transaction of searchService.transactions\">\n <co-transaction-search-tile\n [draggable]=\"draggableTransactions\"\n (dragstart)=\"dragStarted($event, transaction)\"\n (dragend)=\"dragEnd($event)\"\n [transaction]=\"transaction\"\n [showCheckbox]=\"salesOrdersPageActive && showBatchOptions\"\n [selected]=\"transaction.selected\"\n [class]=\"transaction === selectedTransaction ? 'selected' : ''\"\n (transactionClick)=\"onTransactionClick($event)\"\n (selectedClick)=\"onSelectedClick($event)\">\n </co-transaction-search-tile>\n </div>\n </div>\n\n <div class=\"transaction-search-result-content-grid-wrapper\"\n *ngIf=\"activeContentViewMode === contentViewModes.Grid && !extendedTransactionSearch\">\n <co-transaction-search-grid\n [showCheckbox]=\"salesOrdersPageActive && showBatchOptions\"\n (transactionClick)=\"onTransactionClick($event)\">\n </co-transaction-search-grid>\n </div>\n\n <div class=\"transaction-extended-search-result-tile-wrapper\" *ngIf=\"extendedTransactionSearch\">\n <div class=\"transaction-tile\" *ngFor=\"let transaction of searchService.transactions\">\n <co-transaction-search-sales-line-select-tile\n [transaction]=\"transaction\"\n (transactionClick)=\"onTransactionClick($event)\"\n (selectedClick)=\"onSelectedClick($event)\"\n [extendedTransactionSearch]=\"extendedTransactionSearch\">\n </co-transaction-search-sales-line-select-tile>\n </div>\n </div>\n\n <co-pagination-bar\n *ngIf=\"searchService.transactions?.length > 0\"\n [currentPage]=\"searchService.currentPage\"\n [itemsPerPage]=\"searchService.transactionsPerPage\"\n [totalItems]=\"searchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"fullscreen\"\n [paginationRange]=\"!fullscreen ? 6 : 8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n\n <div class=\"empty-state-wrapper\" *ngIf=\"searchService.transactions && searchService.resultCount === 0\">\n <span [textContent]=\"'0_RESULTS_FOUND' | localize\"></span>\n </div>\n </ng-container>\n\n <co-shipping-method-dialog\n *ngIf=\"showShippingMethodDialog\"\n [category]=\"batchCategory\"\n [selectedTransactions]=\"selectedTransactions\"\n (cancelClicked)=\"showShippingMethodDialog = false\"\n (saveClicked)=\"shippingDialogSaveClicked($event)\">\n </co-shipping-method-dialog>\n\n <co-batch-process-dialog\n *ngIf=\"showBatchProcessDialog\"\n @fadeInOut\n [batchJobProgress]=\"batchJobProgress\"\n (close)=\"showBatchProcessDialog = false\">\n </co-batch-process-dialog>\n ",
|
|
44639
44645
|
animations: [
|
|
44640
44646
|
animations.trigger('fadeInOut', [
|
|
44641
44647
|
animations.transition(':enter', [
|