@colijnit/transaction 12.1.106 → 12.1.107
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 +25 -23
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction/transaction.component.js +5 -2
- package/esm2015/lib/component/transaction-button-bar/transaction-button-bar.component.js +13 -16
- package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.js +4 -4
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +1 -2
- package/esm2015/lib/service/transaction-base.service.js +4 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +24 -21
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-button-bar/transaction-button-bar.component.d.ts +4 -6
- package/lib/service/transaction-base.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ export class Version {
|
|
|
3
3
|
constructor() {
|
|
4
4
|
this.name = "@colijnit/transaction";
|
|
5
5
|
this.description = "Colijn IT transaction package";
|
|
6
|
-
this.symVer = "12.1.
|
|
7
|
-
this.publishDate = "
|
|
6
|
+
this.symVer = "12.1.107";
|
|
7
|
+
this.publishDate = "17-4-2023 18:25:52";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMTIuMS4xMDdcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIxNy00LTIwMjMgMTg6MjU6NTJcIjtcbn0iXX0=
|
|
@@ -153,8 +153,8 @@ class Version {
|
|
|
153
153
|
constructor() {
|
|
154
154
|
this.name = "@colijnit/transaction";
|
|
155
155
|
this.description = "Colijn IT transaction package";
|
|
156
|
-
this.symVer = "12.1.
|
|
157
|
-
this.publishDate = "
|
|
156
|
+
this.symVer = "12.1.107";
|
|
157
|
+
this.publishDate = "17-4-2023 18:25:52";
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
|
|
@@ -5266,6 +5266,7 @@ class TransactionBaseService {
|
|
|
5266
5266
|
this.logout = new Subject();
|
|
5267
5267
|
this.transactionUpdated = new BehaviorSubject(undefined);
|
|
5268
5268
|
this.relationUpdated = new BehaviorSubject(undefined);
|
|
5269
|
+
this.transactionKindSet = new BehaviorSubject(false);
|
|
5269
5270
|
this.autoSave = false;
|
|
5270
5271
|
this.applicationUser = false;
|
|
5271
5272
|
this.invoiceAddressSameAsDelivery = true;
|
|
@@ -5289,6 +5290,7 @@ class TransactionBaseService {
|
|
|
5289
5290
|
this._transactionKind = value;
|
|
5290
5291
|
this.activeRubric = value === TransactionKind.SalesOrder ? TransactionTypeCategory.SalesOrderOverview : TransactionTypeCategory.PurchaseOrderOverview;
|
|
5291
5292
|
}
|
|
5293
|
+
this.transactionKindSet.next(true);
|
|
5292
5294
|
}
|
|
5293
5295
|
get transactionKind() {
|
|
5294
5296
|
return this._transactionKind;
|
|
@@ -5438,6 +5440,7 @@ class TransactionBaseService {
|
|
|
5438
5440
|
rememberCurrentTransaction(value) {
|
|
5439
5441
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5440
5442
|
this.currentTransaction = value;
|
|
5443
|
+
this.transactionKind = this.currentTransaction.transactionInfo.transactionKind;
|
|
5441
5444
|
this._setAmount();
|
|
5442
5445
|
this._checkHeaderStatus();
|
|
5443
5446
|
this._checkRefTransaction(); // todo: get from the header status
|
|
@@ -11109,19 +11112,19 @@ TransactionLineActionButtonsComponent.decorators = [
|
|
|
11109
11112
|
(click)="handleTransactionArticleTextOverview()"></co-button>-->
|
|
11110
11113
|
|
|
11111
11114
|
<co-button
|
|
11112
|
-
class="transaction-line-overview-button
|
|
11115
|
+
class="transaction-line-overview-button action-button"
|
|
11113
11116
|
[class.show]="showActionButtonsDelayed"
|
|
11114
11117
|
[iconData]="iconCacheService.getIcon(icons.TextSizeSolid)"
|
|
11115
11118
|
(click)="handleArticleText()"></co-button>
|
|
11116
11119
|
|
|
11117
11120
|
<co-button
|
|
11118
|
-
class="transaction-line-add-text-button
|
|
11121
|
+
class="transaction-line-add-text-button action-button"
|
|
11119
11122
|
[class.show]="showActionButtonsDelayed"
|
|
11120
11123
|
[iconData]="iconCacheService.getIcon(icons.TextSolid)"
|
|
11121
11124
|
(click)="handleTransactionText()"></co-button>
|
|
11122
11125
|
|
|
11123
11126
|
<co-button
|
|
11124
|
-
class="transaction-line-show-sidebar-button
|
|
11127
|
+
class="transaction-line-show-sidebar-button action-button"
|
|
11125
11128
|
[class.show]="showActionButtonsDelayed"
|
|
11126
11129
|
[iconData]="iconCacheService.getIcon(icons.ObjectIntersectSolid)"
|
|
11127
11130
|
(click)="handleShowSidePanel()"></co-button>
|
|
@@ -17378,7 +17381,6 @@ TransactionLineSidePanelComponent.decorators = [
|
|
|
17378
17381
|
<div class="transaction-line-side-panel-nav-bar">
|
|
17379
17382
|
<co-transaction-button-bar
|
|
17380
17383
|
[selectedCategory]="activeCategory"
|
|
17381
|
-
[transactionType]="transactionInfo.transactionKind"
|
|
17382
17384
|
(buttonClicked)="updateActiveCategory($event)"
|
|
17383
17385
|
></co-transaction-button-bar>
|
|
17384
17386
|
</div>
|
|
@@ -17462,6 +17464,10 @@ class TransactionComponent {
|
|
|
17462
17464
|
if (relation) {
|
|
17463
17465
|
this.relation = relation;
|
|
17464
17466
|
}
|
|
17467
|
+
}), this.service.transactionKindSet.subscribe((set) => {
|
|
17468
|
+
if (set) {
|
|
17469
|
+
this.activeCategory = this.service.activeRubric;
|
|
17470
|
+
}
|
|
17465
17471
|
}), this._transactionEventService.openSidePanel.subscribe((line) => this.handleShowSidePanel(line)), this._transactionEventService.openArticleTextOverview.subscribe((line) => this.handleShowArticleTextOverview(line)), this._transactionEventService.addTransactionText.subscribe((line) => this.handleShowTransactionText(line)), this._transactionEventService.addArticleText.subscribe((line) => this.handleShowArticleText(line)), this._transactionEventService.editTransactionText.subscribe((line) => this.handleEditTransactionText(line)), this._transactionEventService.editArticleText.subscribe((line) => this.handleEditArticleText(line)), this._transactionEventService.historicReportLinesToShow
|
|
17466
17472
|
.subscribe((lines) => this.historicTransactionLines = lines));
|
|
17467
17473
|
}
|
|
@@ -17598,7 +17604,6 @@ TransactionComponent.decorators = [
|
|
|
17598
17604
|
[activeCategory]="activeCategory"
|
|
17599
17605
|
></co-transaction-quick-access>
|
|
17600
17606
|
<co-transaction-button-bar *ngIf="showButtonBar" class="transaction-lines-header-item"
|
|
17601
|
-
[transactionType]="transaction.transactionInfo.transactionKind"
|
|
17602
17607
|
[selectedCategory]="activeCategory"
|
|
17603
17608
|
(buttonClicked)="handleButtonBarButtonClicked($event)"
|
|
17604
17609
|
></co-transaction-button-bar>
|
|
@@ -20420,7 +20425,15 @@ class TransactionButtonBarComponent {
|
|
|
20420
20425
|
this._mappingService = _mappingService;
|
|
20421
20426
|
this.buttonClicked = new EventEmitter();
|
|
20422
20427
|
this.buttons = [];
|
|
20423
|
-
this.
|
|
20428
|
+
this._subs = [];
|
|
20429
|
+
this._subs.push(this._transactionService.transactionKindSet.subscribe((set) => {
|
|
20430
|
+
if (set) {
|
|
20431
|
+
this.buttons = this._mappingService.getButtonBar(this._transactionService.transactionKind);
|
|
20432
|
+
if (this.buttons && this.buttons.length > 0 && !this._selectedCategory) {
|
|
20433
|
+
this.selectCategory(-1);
|
|
20434
|
+
}
|
|
20435
|
+
}
|
|
20436
|
+
}));
|
|
20424
20437
|
}
|
|
20425
20438
|
get selectedCategory() {
|
|
20426
20439
|
return this._selectedCategory;
|
|
@@ -20428,21 +20441,12 @@ class TransactionButtonBarComponent {
|
|
|
20428
20441
|
set selectedCategory(value) {
|
|
20429
20442
|
this._selectedCategory = value;
|
|
20430
20443
|
}
|
|
20431
|
-
set transactionType(value) {
|
|
20432
|
-
if (this._transactionType !== value) {
|
|
20433
|
-
this._transactionType = value;
|
|
20434
|
-
this.buttons = this._mappingService.getButtonBar(this._transactionType);
|
|
20435
|
-
if (this.buttons && this.buttons.length > 0 && !this._selectedCategory) {
|
|
20436
|
-
this.selectCategory(-1);
|
|
20437
|
-
}
|
|
20438
|
-
}
|
|
20439
|
-
}
|
|
20440
|
-
get transactionType() {
|
|
20441
|
-
return this._transactionType;
|
|
20442
|
-
}
|
|
20443
20444
|
showClass() {
|
|
20444
20445
|
return true;
|
|
20445
20446
|
}
|
|
20447
|
+
ngOnDestroy() {
|
|
20448
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
20449
|
+
}
|
|
20446
20450
|
selectCategory(idx) {
|
|
20447
20451
|
if (idx > -1) {
|
|
20448
20452
|
const buttonRubric = this.buttons[idx].category;
|
|
@@ -20479,7 +20483,6 @@ TransactionButtonBarComponent.ctorParameters = () => [
|
|
|
20479
20483
|
];
|
|
20480
20484
|
TransactionButtonBarComponent.propDecorators = {
|
|
20481
20485
|
selectedCategory: [{ type: Input }],
|
|
20482
|
-
transactionType: [{ type: Input }],
|
|
20483
20486
|
transactionInfoResponse: [{ type: Input }],
|
|
20484
20487
|
buttonClicked: [{ type: Output }],
|
|
20485
20488
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-button-bar",] }]
|