@colijnit/transaction 255.1.51 → 255.1.52
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 +52 -6
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/core/base/transaction-search-tile-base.component.js +6 -1
- package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +4 -1
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +38 -6
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.component.js +29 -26
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-tile/transaction-search-tile.component.js +6 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +80 -32
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/transaction-search-tile-base.component.d.ts +2 -0
- package/lib/component/transaction-search/service/transaction-search.service.d.ts +3 -1
- package/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.d.ts +4 -1
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-tile/transaction-search-tile.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -277,8 +277,8 @@ class Version {
|
|
|
277
277
|
constructor() {
|
|
278
278
|
this.name = "@colijnit/transaction";
|
|
279
279
|
this.description = "Colijn IT transaction package";
|
|
280
|
-
this.symVer = "255.1.
|
|
281
|
-
this.publishDate = "
|
|
280
|
+
this.symVer = "255.1.52";
|
|
281
|
+
this.publishDate = "22/10/2024, 19:45:30";
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
|
|
@@ -16521,6 +16521,8 @@ class TransactionSearchService {
|
|
|
16521
16521
|
[TransactionKind.CashDesk, "SEARCH_NUMBER_OR_CUSTOMER"]
|
|
16522
16522
|
]);
|
|
16523
16523
|
this.transactionsPerPage = 20;
|
|
16524
|
+
this.resultSubject = new BehaviorSubject(false);
|
|
16525
|
+
this.resultsUpdated = this.resultSubject.asObservable();
|
|
16524
16526
|
this._currentPage = 1;
|
|
16525
16527
|
this._transactionType = TransactionKind.SalesOrder;
|
|
16526
16528
|
this._subs = [];
|
|
@@ -16576,6 +16578,7 @@ class TransactionSearchService {
|
|
|
16576
16578
|
var _a, _b;
|
|
16577
16579
|
this.transactions = (_a = result.transactions) !== null && _a !== void 0 ? _a : [];
|
|
16578
16580
|
this.resultCount = (_b = result.count) !== null && _b !== void 0 ? _b : undefined;
|
|
16581
|
+
this.resultSubject.next(true);
|
|
16579
16582
|
});
|
|
16580
16583
|
this.setPreviousSearchRequest();
|
|
16581
16584
|
});
|
|
@@ -16973,6 +16976,7 @@ class TransactionSearchTileBaseComponent {
|
|
|
16973
16976
|
this.cfgNames = TransactionCfgName;
|
|
16974
16977
|
this.icons = Icon;
|
|
16975
16978
|
this.transactionClick = new EventEmitter();
|
|
16979
|
+
this.selectedClick = new EventEmitter();
|
|
16976
16980
|
}
|
|
16977
16981
|
showClass() {
|
|
16978
16982
|
return true;
|
|
@@ -16980,6 +16984,9 @@ class TransactionSearchTileBaseComponent {
|
|
|
16980
16984
|
onTransactionClick(transaction) {
|
|
16981
16985
|
this.transactionClick.emit(transaction);
|
|
16982
16986
|
}
|
|
16987
|
+
onSelectedClick(transaction) {
|
|
16988
|
+
this.selectedClick.emit(transaction);
|
|
16989
|
+
}
|
|
16983
16990
|
}
|
|
16984
16991
|
TransactionSearchTileBaseComponent.decorators = [
|
|
16985
16992
|
{ type: Directive }
|
|
@@ -16991,6 +16998,7 @@ TransactionSearchTileBaseComponent.propDecorators = {
|
|
|
16991
16998
|
showCheckbox: [{ type: Input }],
|
|
16992
16999
|
transaction: [{ type: Input }],
|
|
16993
17000
|
transactionClick: [{ type: Output }],
|
|
17001
|
+
selectedClick: [{ type: Output }],
|
|
16994
17002
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-search-tile-content",] }]
|
|
16995
17003
|
};
|
|
16996
17004
|
|
|
@@ -17098,7 +17106,7 @@ TransactionSearchSalesOrderTileComponent.decorators = [
|
|
|
17098
17106
|
<div class="tile">
|
|
17099
17107
|
<div class="tile-header">
|
|
17100
17108
|
<div class="tile-upper-left" *ngIf="showAvatar">
|
|
17101
|
-
<div class="transaction-tile-avatar"
|
|
17109
|
+
<div class="transaction-tile-avatar">
|
|
17102
17110
|
<co-avatar [image]="transaction.execImage" [relationId]="transaction.handledBy"></co-avatar>
|
|
17103
17111
|
</div>
|
|
17104
17112
|
</div>
|
|
@@ -17110,20 +17118,23 @@ TransactionSearchSalesOrderTileComponent.decorators = [
|
|
|
17110
17118
|
<div class="text"><span [textContent]="transaction.brancheName"></span></div>
|
|
17111
17119
|
</div>
|
|
17112
17120
|
<div class="tile-upper-right">
|
|
17113
|
-
<div class="status-bar-wrapper"
|
|
17121
|
+
<div class="status-bar-wrapper" (click)="$event.stopPropagation()">
|
|
17114
17122
|
<co-transaction-statusbar
|
|
17115
|
-
|
|
17116
|
-
|
|
17117
|
-
|
|
17123
|
+
[screenConfigurationObject]="cfgNames.StatusBar"
|
|
17124
|
+
[configNames]="statusBarConfigNames"
|
|
17125
|
+
[transaction]="transaction"></co-transaction-statusbar>
|
|
17118
17126
|
</div>
|
|
17119
|
-
<div class="header total-price-vat"><span
|
|
17127
|
+
<div class="header total-price-vat"><span
|
|
17128
|
+
[textContent]="transaction.totalPriceWithVat | currency:'EUR'"></span></div>
|
|
17120
17129
|
</div>
|
|
17121
17130
|
</div>
|
|
17122
17131
|
<div class="tile-body">
|
|
17123
17132
|
<div class="tile-middle-left">
|
|
17124
|
-
<co-input-checkbox
|
|
17125
|
-
|
|
17126
|
-
|
|
17133
|
+
<co-input-checkbox
|
|
17134
|
+
*ngIf="showCheckbox"
|
|
17135
|
+
[(model)]="transaction.selected"
|
|
17136
|
+
(modelChange)="onSelectedClick(transaction)">
|
|
17137
|
+
</co-input-checkbox>
|
|
17127
17138
|
</div>
|
|
17128
17139
|
<div class="tile-middle-middle">
|
|
17129
17140
|
<div class="text"><span [textContent]="transaction.relationName"></span></div>
|
|
@@ -17133,27 +17144,27 @@ TransactionSearchSalesOrderTileComponent.decorators = [
|
|
|
17133
17144
|
</div>
|
|
17134
17145
|
<div class="tile-footer">
|
|
17135
17146
|
<div class="tile-bottom-left order-info-section">
|
|
17136
|
-
|
|
17137
|
-
|
|
17138
|
-
|
|
17147
|
+
<div class="label"><span [textContent]="'ORDER_DATE' | localize"></span></div>
|
|
17148
|
+
<div class="value">
|
|
17149
|
+
<span [textContent]="transaction.getTransDate() | date:'dd MMM yyyy'"></span></div>
|
|
17139
17150
|
</div>
|
|
17140
17151
|
<div class="tile-bottom-middle order-info-section">
|
|
17141
|
-
|
|
17142
|
-
|
|
17143
|
-
|
|
17144
|
-
|
|
17145
|
-
|
|
17146
|
-
|
|
17147
|
-
|
|
17148
|
-
|
|
17149
|
-
|
|
17150
|
-
</div>
|
|
17152
|
+
<div class="label"><span [textContent]="'DELIVERY_DATE' | localize"></span></div>
|
|
17153
|
+
<div class="value">
|
|
17154
|
+
<span [textContent]="transaction.getDeliveryDate() | date:'dd MMM yyyy'"></span>
|
|
17155
|
+
<div *ngIf="transaction.getDeliveryDate()">
|
|
17156
|
+
<co-icon *ngIf="transaction.deliveryDateDefinitive; else indefinite"
|
|
17157
|
+
[iconData]="iconCacheService.getIcon(icons.Lock)" class="lock-icon"></co-icon>
|
|
17158
|
+
<ng-template #indefinite>
|
|
17159
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.Unlock)" class="unlock-icon"></co-icon>
|
|
17160
|
+
</ng-template>
|
|
17151
17161
|
</div>
|
|
17162
|
+
</div>
|
|
17152
17163
|
</div>
|
|
17153
17164
|
<div class="tile-bottom-right order-info-section">
|
|
17154
|
-
|
|
17155
|
-
|
|
17156
|
-
|
|
17165
|
+
<div class="label"><span [textContent]="'ORDER_RULE' | localize"></span></div>
|
|
17166
|
+
<div class="value">
|
|
17167
|
+
<span [textContent]="'68/00'"></span></div>
|
|
17157
17168
|
</div>
|
|
17158
17169
|
</div>
|
|
17159
17170
|
</div>
|
|
@@ -47495,6 +47506,7 @@ class TransactionSearchTileComponent {
|
|
|
47495
47506
|
this._changeDetector = _changeDetector;
|
|
47496
47507
|
this.searchService = searchService;
|
|
47497
47508
|
this.transactionClick = new EventEmitter();
|
|
47509
|
+
this.selectedClick = new EventEmitter();
|
|
47498
47510
|
}
|
|
47499
47511
|
set container(content) {
|
|
47500
47512
|
if (content) {
|
|
@@ -47546,6 +47558,9 @@ class TransactionSearchTileComponent {
|
|
|
47546
47558
|
this._componentRef.instance.transactionClick.subscribe(transaction => {
|
|
47547
47559
|
this.transactionClick.emit(transaction);
|
|
47548
47560
|
});
|
|
47561
|
+
this._componentRef.instance.selectedClick.subscribe(transaction => {
|
|
47562
|
+
this.selectedClick.emit(transaction);
|
|
47563
|
+
});
|
|
47549
47564
|
const domElem = this._componentRef.hostView
|
|
47550
47565
|
.rootNodes[0];
|
|
47551
47566
|
this._transactionSearchTileContainer.nativeElement.appendChild(domElem);
|
|
@@ -47577,6 +47592,7 @@ TransactionSearchTileComponent.propDecorators = {
|
|
|
47577
47592
|
showCheckbox: [{ type: Input }],
|
|
47578
47593
|
transaction: [{ type: Input }],
|
|
47579
47594
|
transactionClick: [{ type: Output }],
|
|
47595
|
+
selectedClick: [{ type: Output }],
|
|
47580
47596
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-search-tile",] }]
|
|
47581
47597
|
};
|
|
47582
47598
|
|
|
@@ -47611,6 +47627,7 @@ class TransactionSearchResultComponent {
|
|
|
47611
47627
|
this.batchDeliveryButtonLoader = true;
|
|
47612
47628
|
this.selectAllOrders = false;
|
|
47613
47629
|
this.showProcessOrdersLoader = false;
|
|
47630
|
+
this.selectedTransactions = [];
|
|
47614
47631
|
this._subs = [];
|
|
47615
47632
|
}
|
|
47616
47633
|
set activeContentViewMode(value) {
|
|
@@ -47647,6 +47664,10 @@ class TransactionSearchResultComponent {
|
|
|
47647
47664
|
if (config && config.length > 0) {
|
|
47648
47665
|
this.screenConfigLoaded = true;
|
|
47649
47666
|
}
|
|
47667
|
+
}), this.searchService.resultsUpdated.subscribe(() => {
|
|
47668
|
+
if (this.salesOrdersPageActive && this.batchCategory === 'levering') {
|
|
47669
|
+
this.markSelectedTransactions();
|
|
47670
|
+
}
|
|
47650
47671
|
}));
|
|
47651
47672
|
}
|
|
47652
47673
|
ngOnDestroy() {
|
|
@@ -47656,6 +47677,18 @@ class TransactionSearchResultComponent {
|
|
|
47656
47677
|
this.selectedTransaction = transaction;
|
|
47657
47678
|
this.transactionClick.emit(transaction);
|
|
47658
47679
|
}
|
|
47680
|
+
onSelectedClick(transaction) {
|
|
47681
|
+
if (transaction.selected) {
|
|
47682
|
+
this.selectedTransactions.push(transaction);
|
|
47683
|
+
}
|
|
47684
|
+
else {
|
|
47685
|
+
const transId = transaction.transId;
|
|
47686
|
+
const index = this.selectedTransactions.findIndex(transaction => transaction.transId === transId);
|
|
47687
|
+
if (index !== -1) {
|
|
47688
|
+
this.selectedTransactions.splice(index, 1);
|
|
47689
|
+
}
|
|
47690
|
+
}
|
|
47691
|
+
}
|
|
47659
47692
|
onPreviousClick() {
|
|
47660
47693
|
this.searchService.currentPage -= 1;
|
|
47661
47694
|
}
|
|
@@ -47665,6 +47698,16 @@ class TransactionSearchResultComponent {
|
|
|
47665
47698
|
onPageClick(pageNr) {
|
|
47666
47699
|
this.searchService.currentPage = pageNr;
|
|
47667
47700
|
}
|
|
47701
|
+
markSelectedTransactions() {
|
|
47702
|
+
if (this.searchService.resultsUpdated) {
|
|
47703
|
+
this.searchService.transactions.forEach(transaction => {
|
|
47704
|
+
const matchingObject = this.selectedTransactions.find(selectedTransaction => selectedTransaction.transId === transaction.transId);
|
|
47705
|
+
if (matchingObject) {
|
|
47706
|
+
transaction.selected = true;
|
|
47707
|
+
}
|
|
47708
|
+
});
|
|
47709
|
+
}
|
|
47710
|
+
}
|
|
47668
47711
|
dragStarted(ev, transaction) {
|
|
47669
47712
|
this._deliveryPlanningService.dragging = true;
|
|
47670
47713
|
this._deliveryPlanningService.currentTransId = transaction.transId;
|
|
@@ -47710,8 +47753,12 @@ class TransactionSearchResultComponent {
|
|
|
47710
47753
|
});
|
|
47711
47754
|
});
|
|
47712
47755
|
}
|
|
47713
|
-
onSelectAllOrders() {
|
|
47714
|
-
this.searchService.transactions.forEach(item => item.selected = !
|
|
47756
|
+
onSelectAllOrders(allSelected) {
|
|
47757
|
+
this.searchService.transactions.forEach(item => item.selected = !allSelected);
|
|
47758
|
+
this.selectedTransactions = [];
|
|
47759
|
+
if (!allSelected) {
|
|
47760
|
+
this.selectedTransactions.push(...this.searchService.transactions);
|
|
47761
|
+
}
|
|
47715
47762
|
}
|
|
47716
47763
|
_createRequestLines(selectedLines) {
|
|
47717
47764
|
return selectedLines.map((line) => {
|
|
@@ -47732,8 +47779,8 @@ TransactionSearchResultComponent.decorators = [
|
|
|
47732
47779
|
*ngIf="searchService.transactions?.length > 0 && salesOrdersPageActive && batchCategory === 'levering'">
|
|
47733
47780
|
<co-input-checkbox
|
|
47734
47781
|
[model]="checkIfAllSelected()"
|
|
47735
|
-
label="
|
|
47736
|
-
(modelChange)="onSelectAllOrders()">
|
|
47782
|
+
[label]="'SELECT_ALL_ORDERS' | localize"
|
|
47783
|
+
(modelChange)="onSelectAllOrders(checkIfAllSelected())">
|
|
47737
47784
|
</co-input-checkbox>
|
|
47738
47785
|
<co-quick-send-button
|
|
47739
47786
|
*ngIf="checkIfSelected()"
|
|
@@ -47753,7 +47800,8 @@ TransactionSearchResultComponent.decorators = [
|
|
|
47753
47800
|
[transaction]="transaction"
|
|
47754
47801
|
[showCheckbox]="salesOrdersPageActive && batchCategory === 'levering'"
|
|
47755
47802
|
[class]="transaction === selectedTransaction ? 'selected' : ''"
|
|
47756
|
-
(transactionClick)="onTransactionClick($event)"
|
|
47803
|
+
(transactionClick)="onTransactionClick($event)"
|
|
47804
|
+
(selectedClick)="onSelectedClick($event)">
|
|
47757
47805
|
</co-transaction-search-tile>
|
|
47758
47806
|
</div>
|
|
47759
47807
|
</div>
|