@colijnit/transaction 257.1.23 → 257.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 +23 -22
- 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-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 +22 -21
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/delivery-planning/delivery-planning.component.d.ts +3 -2
- 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.24";
|
|
37
|
+
this.publishDate = "11-3-2025 13:48:02";
|
|
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;
|
|
@@ -30151,7 +30140,7 @@
|
|
|
30151
30140
|
return list2.some(function (num) { return set1.has(num); });
|
|
30152
30141
|
};
|
|
30153
30142
|
DeliveryPlanningService.prototype.reorderItem = function (array, item, direction) {
|
|
30154
|
-
var _b
|
|
30143
|
+
var _b;
|
|
30155
30144
|
var index = array.indexOf(item);
|
|
30156
30145
|
if (index === -1) {
|
|
30157
30146
|
throw new Error("Item not found in array");
|
|
@@ -30161,11 +30150,19 @@
|
|
|
30161
30150
|
if (newIndex < 0 || newIndex >= array.length) {
|
|
30162
30151
|
return; // Do nothing if already at the first or last position
|
|
30163
30152
|
}
|
|
30164
|
-
|
|
30153
|
+
var originalDuration = item.endTime.getTime() - item.startTime.getTime();
|
|
30154
|
+
var swapItem = array[newIndex];
|
|
30155
|
+
// Assign new start time based on the swapped item's original start time
|
|
30156
|
+
item.startTime = new Date(swapItem.startTime.getTime());
|
|
30157
|
+
item.endTime = new Date(item.startTime.getTime() + originalDuration);
|
|
30158
|
+
// Ensure the swapped item doesn't overlap
|
|
30159
|
+
var swapDuration = swapItem.endTime.getTime() - swapItem.startTime.getTime();
|
|
30160
|
+
if (item.endTime.getTime() > swapItem.startTime.getTime()) {
|
|
30161
|
+
swapItem.startTime = new Date(item.endTime.getTime()); // Adjust start time to avoid overlap
|
|
30162
|
+
swapItem.endTime = new Date(swapItem.startTime.getTime() + swapDuration);
|
|
30163
|
+
}
|
|
30164
|
+
// Swap positions in the array
|
|
30165
30165
|
_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
30166
|
};
|
|
30170
30167
|
return DeliveryPlanningService;
|
|
30171
30168
|
}());
|
|
@@ -40008,6 +40005,12 @@
|
|
|
40008
40005
|
DeliveryPlanningComponent.prototype.showClass = function () {
|
|
40009
40006
|
return true;
|
|
40010
40007
|
};
|
|
40008
|
+
DeliveryPlanningComponent.prototype.ngOnDestroy = function () {
|
|
40009
|
+
if (this._deliveryPlanningService.employeeView) {
|
|
40010
|
+
this._deliveryPlanningService.employeeView = false;
|
|
40011
|
+
this._deliveryPlanningService.relationId = undefined;
|
|
40012
|
+
}
|
|
40013
|
+
};
|
|
40011
40014
|
DeliveryPlanningComponent.prototype.fullscreenToggle = function () {
|
|
40012
40015
|
this.fullscreenEvent.emit();
|
|
40013
40016
|
};
|
|
@@ -44494,8 +44497,6 @@
|
|
|
44494
44497
|
if (_this.salesOrdersPageActive && _this.showBatchOptions) {
|
|
44495
44498
|
_this.markSelectedTransactions();
|
|
44496
44499
|
}
|
|
44497
|
-
}), this.transactionService.batchModalState.subscribe(function (state) {
|
|
44498
|
-
_this.showBatchProcessDialog = state;
|
|
44499
44500
|
}));
|
|
44500
44501
|
};
|
|
44501
44502
|
TransactionSearchResultComponent.prototype.ngOnChanges = function (changes) {
|
|
@@ -44623,7 +44624,7 @@
|
|
|
44623
44624
|
this.showProcessOrdersLoader = false;
|
|
44624
44625
|
this.transactionService.getBatchJobProgressesForTheUser().then(function (batchJobProgresses) {
|
|
44625
44626
|
_this.batchJobProgress = batchJobProgresses;
|
|
44626
|
-
_this.
|
|
44627
|
+
_this.showBatchProcessDialog = true;
|
|
44627
44628
|
});
|
|
44628
44629
|
};
|
|
44629
44630
|
TransactionSearchResultComponent.prototype._clearSelected = function () {
|
|
@@ -44635,7 +44636,7 @@
|
|
|
44635
44636
|
TransactionSearchResultComponent.decorators = [
|
|
44636
44637
|
{ type: i0.Component, args: [{
|
|
44637
44638
|
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)=\"
|
|
44639
|
+
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
44640
|
animations: [
|
|
44640
44641
|
animations.trigger('fadeInOut', [
|
|
44641
44642
|
animations.transition(':enter', [
|