@colijnit/transaction 256.1.40 → 256.1.41
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 +49 -17
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction-256.1.40.tgz +0 -0
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction/transaction.component.js +4 -1
- package/esm2015/lib/component/transaction-internal/transaction-internal.component.js +8 -4
- package/esm2015/lib/component/transaction-service-overview/transaction-service-overview.component.js +39 -14
- package/esm2015/lib/service/transaction.service.js +1 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +50 -18
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction/transaction.component.d.ts +1 -0
- package/lib/component/transaction-internal/transaction-internal.component.d.ts +1 -0
- package/lib/component/transaction-service-overview/transaction-service-overview.component.d.ts +3 -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 = "256.1.
|
|
7
|
-
this.publishDate = "
|
|
6
|
+
this.symVer = "256.1.41";
|
|
7
|
+
this.publishDate = "8-1-2025 17:16:15";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsbUJBQW1CLENBQUM7SUFDM0MsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU2LjEuNDFcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCI4LTEtMjAyNSAxNzoxNjoxNVwiO1xufSJdfQ==
|
|
@@ -282,8 +282,8 @@ class Version {
|
|
|
282
282
|
constructor() {
|
|
283
283
|
this.name = "@colijnit/transaction";
|
|
284
284
|
this.description = "Colijn IT transaction package";
|
|
285
|
-
this.symVer = "256.1.
|
|
286
|
-
this.publishDate = "
|
|
285
|
+
this.symVer = "256.1.41";
|
|
286
|
+
this.publishDate = "8-1-2025 17:16:15";
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
|
|
@@ -53386,6 +53386,7 @@ class TransactionInternalComponent {
|
|
|
53386
53386
|
this.showViewModeButtons = true;
|
|
53387
53387
|
this.transactionPlanning = false;
|
|
53388
53388
|
this.customerPortal = false;
|
|
53389
|
+
this.resetActiveRubric = false;
|
|
53389
53390
|
// @Output()
|
|
53390
53391
|
// public relationChange: EventEmitter<RelationAnyType> = new EventEmitter<RelationAnyType>();
|
|
53391
53392
|
//This output exists for bundle purposes.
|
|
@@ -53497,6 +53498,9 @@ class TransactionInternalComponent {
|
|
|
53497
53498
|
// this._transactionEventService.openSidePanel.subscribe((line) => this.handleShowSidePanel(line)),
|
|
53498
53499
|
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.createServiceButtonClicked.subscribe((lineNr) => this.handleCreateServiceRequest(lineNr)), this._transactionEventService.viewStockButtonClick.subscribe((goodId) => this.handleViewStock(goodId)), this._transactionEventService.showError.subscribe((e) => this._dialogService.showError(e.message, e.localize, e.details)), this._transactionEventService.copyOrder.subscribe(() => this.showCopyOrderDialog = true));
|
|
53499
53500
|
this.screenWidth = window.innerWidth;
|
|
53501
|
+
if (this.resetActiveRubric) {
|
|
53502
|
+
this.activeCategory = TransactionTypeCategory.SalesOrderOverview;
|
|
53503
|
+
}
|
|
53500
53504
|
}
|
|
53501
53505
|
ngOnDestroy() {
|
|
53502
53506
|
this._subs.forEach(s => s.unsubscribe());
|
|
@@ -53736,7 +53740,7 @@ TransactionInternalComponent.decorators = [
|
|
|
53736
53740
|
[customerPortal]="customerPortal">
|
|
53737
53741
|
</co-transaction-lines>
|
|
53738
53742
|
</div>
|
|
53739
|
-
<div class="transaction-lines-wrapper" *ngIf="transaction.transactionInfo.transactionKind === 'S'">
|
|
53743
|
+
<div class="transaction-lines-wrapper" *ngIf="transaction && transaction.transactionInfo && transaction.transactionInfo.transactionKind === 'S'">
|
|
53740
53744
|
<co-transaction-service-overview
|
|
53741
53745
|
[posOrderData]="posOrderData">
|
|
53742
53746
|
</co-transaction-service-overview>
|
|
@@ -53781,7 +53785,7 @@ TransactionInternalComponent.decorators = [
|
|
|
53781
53785
|
<div class="transaction-lines-content-wrapper">
|
|
53782
53786
|
<!--<co-transaction-document-button-bar [transaction]="transaction"></co-transaction-document-button-bar>-->
|
|
53783
53787
|
<div class="transaction-lines-content">
|
|
53784
|
-
<div *ngIf="activeCategory === category.ServiceOrderService">
|
|
53788
|
+
<div *ngIf="activeCategory === category.ServiceOrderService && transaction && transaction.transactionInfo && transaction.transactionInfo.transactionKind === 'S'">
|
|
53785
53789
|
<co-transaction-service-overview [posOrderData]="posOrderData"></co-transaction-service-overview>
|
|
53786
53790
|
</div>
|
|
53787
53791
|
<div class="transaction-tiles-wrapper" *ngIf="activeViewMode === viewModes.Tiles || shouldShowTiles() || transactionPlanning">
|
|
@@ -53874,7 +53878,6 @@ TransactionInternalComponent.decorators = [
|
|
|
53874
53878
|
</co-transaction-article-text>
|
|
53875
53879
|
|
|
53876
53880
|
<co-transaction-copy-order *ngIf="showCopyOrderDialog"
|
|
53877
|
-
[transaction]="transaction"
|
|
53878
53881
|
(closeDialog)="showCopyOrderDialog = false">
|
|
53879
53882
|
</co-transaction-copy-order>
|
|
53880
53883
|
|
|
@@ -53918,6 +53921,7 @@ TransactionInternalComponent.propDecorators = {
|
|
|
53918
53921
|
showViewModeButtons: [{ type: Input }],
|
|
53919
53922
|
transactionPlanning: [{ type: Input }],
|
|
53920
53923
|
customerPortal: [{ type: Input }],
|
|
53924
|
+
resetActiveRubric: [{ type: Input }],
|
|
53921
53925
|
serviceRequested: [{ type: Output }],
|
|
53922
53926
|
showQuickAccess: [{ type: HostBinding, args: ['class.show-quick-access',] }, { type: Input }],
|
|
53923
53927
|
showButtonBar: [{ type: HostBinding, args: ['class.show-button-bar',] }, { type: Input }],
|
|
@@ -56945,6 +56949,7 @@ TransactionCopyOrderModule.decorators = [
|
|
|
56945
56949
|
];
|
|
56946
56950
|
|
|
56947
56951
|
class TransactionServiceOverviewComponent extends TransactionHeaderBaseComponent {
|
|
56952
|
+
//private subs: Subscription[] = [];
|
|
56948
56953
|
constructor(transactionHeaderService, transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector, _dialogService) {
|
|
56949
56954
|
super(transactionHeaderService, transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector);
|
|
56950
56955
|
this.transactionHeaderService = transactionHeaderService;
|
|
@@ -56967,31 +56972,48 @@ class TransactionServiceOverviewComponent extends TransactionHeaderBaseComponent
|
|
|
56967
56972
|
this.documents = [];
|
|
56968
56973
|
this.activities = [];
|
|
56969
56974
|
this.showActivityHeader = false;
|
|
56975
|
+
this.loadedTransactionId = null;
|
|
56970
56976
|
}
|
|
56971
56977
|
showClass() {
|
|
56972
56978
|
return true;
|
|
56973
56979
|
}
|
|
56974
56980
|
ngOnInit() {
|
|
56981
|
+
const _super = Object.create(null, {
|
|
56982
|
+
ngOnInit: { get: () => super.ngOnInit }
|
|
56983
|
+
});
|
|
56975
56984
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56985
|
+
_super.ngOnInit.call(this);
|
|
56976
56986
|
this.user = this.transactionService.loggedInUser;
|
|
56977
56987
|
this.priorityDomainColl = yield this.transactionService.getPriority('NL');
|
|
56978
56988
|
this.causeCodeColl = yield this.transactionService.getCauseCodes();
|
|
56979
56989
|
this.entryTypeColl = yield this.transactionService.getEntryTypes('NL');
|
|
56980
56990
|
this.priorityModel = this.priorityDomainColl.find(p => p.codeAsNumber === this.transactionServiceInfo.priority);
|
|
56981
56991
|
this.causeCodeModel = this.causeCodeColl.find(c => c.causeCode === this.transactionServiceInfo.causeCode);
|
|
56982
|
-
this.entryTypeModel = this.entryTypeColl.find(e => e.code === this.transactionServiceInfo.entryType);
|
|
56983
|
-
|
|
56984
|
-
this.
|
|
56992
|
+
this.entryTypeModel = this.entryTypeColl.find(e => e.code === this.transactionServiceInfo.entryType); /*
|
|
56993
|
+
|
|
56994
|
+
this.subs.push(
|
|
56995
|
+
this.transactionHeaderService.transactionInfoSet.subscribe((set: boolean) => {
|
|
56996
|
+
if (set) {
|
|
56997
|
+
this.transactionInfoSet();
|
|
56998
|
+
}
|
|
56999
|
+
})
|
|
57000
|
+
)
|
|
57001
|
+
if (this.transactionInfo && this.transactionInfo.id) {
|
|
57002
|
+
this.transactionInfoSet();
|
|
57003
|
+
}*/
|
|
56985
57004
|
});
|
|
56986
57005
|
}
|
|
56987
57006
|
ngOnDestroy() {
|
|
57007
|
+
//this.subs.forEach(s => s.unsubscribe());
|
|
57008
|
+
}
|
|
57009
|
+
getKey() {
|
|
57010
|
+
if (this.transactionInfo !== undefined && this.transactionInfo !== null && this.transactionInfo.id !== undefined && this.transactionInfo.id !== null) {
|
|
57011
|
+
return this.transactionInfo.id.toString();
|
|
57012
|
+
}
|
|
57013
|
+
else {
|
|
57014
|
+
return null;
|
|
57015
|
+
}
|
|
56988
57016
|
}
|
|
56989
|
-
/*public set transactionServiceInfo(value: TransactionServiceInfo) {
|
|
56990
|
-
super.transactionServiceInfo = value;
|
|
56991
|
-
if (this.priorityDomainColl.length > 0) {
|
|
56992
|
-
this.priorityModel = this.priorityDomainColl.find(p => p.codeAsNumber === value.priority);
|
|
56993
|
-
}
|
|
56994
|
-
}*/
|
|
56995
57017
|
getActivities() {
|
|
56996
57018
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56997
57019
|
this.activities = yield this.transactionService.getHistoricActivities(this.transactionInfo.id);
|
|
@@ -57092,6 +57114,13 @@ class TransactionServiceOverviewComponent extends TransactionHeaderBaseComponent
|
|
|
57092
57114
|
type: SortType.Number
|
|
57093
57115
|
}]);
|
|
57094
57116
|
}
|
|
57117
|
+
transactionInfoSet() {
|
|
57118
|
+
super.transactionInfoSet();
|
|
57119
|
+
if (this.transactionInfo.id !== this.loadedTransactionId)
|
|
57120
|
+
this.loadedTransactionId = this.transactionInfo.id;
|
|
57121
|
+
this.fetchDocuments();
|
|
57122
|
+
this.getActivities();
|
|
57123
|
+
}
|
|
57095
57124
|
}
|
|
57096
57125
|
TransactionServiceOverviewComponent.decorators = [
|
|
57097
57126
|
{ type: Component, args: [{
|
|
@@ -57141,12 +57170,12 @@ TransactionServiceOverviewComponent.decorators = [
|
|
|
57141
57170
|
<div class="activity-task-creator-wrapper">
|
|
57142
57171
|
<co-component-activity-list #openActivities [showActivityHeader]="showActivityHeader"
|
|
57143
57172
|
[screenConfigurationObject]="cfgNames.HeaderActivityList"
|
|
57144
|
-
[table]="TableName.Transactions" [key]="
|
|
57173
|
+
[table]="TableName.Transactions" [key]="getKey()"
|
|
57145
57174
|
(refreshRequested)="finishedActivitiesRefreshRequested()">
|
|
57146
57175
|
</co-component-activity-list>
|
|
57147
|
-
<co-task-creator [table]="TableName.Transactions" [remarkAndWorkKey]="
|
|
57148
|
-
[taskKey]="transactionInfo
|
|
57149
|
-
[author]="user" [branchNo]="transactionInfo
|
|
57176
|
+
<co-task-creator [table]="TableName.Transactions" [remarkAndWorkKey]="getKey()"
|
|
57177
|
+
[taskKey]="transactionInfo?.transactionNr?.toString()"
|
|
57178
|
+
[author]="user" [branchNo]="transactionInfo?.branch?.relationNr.toString()"
|
|
57150
57179
|
[workflowCategoryType]="WorkflowCategoryType.ServiceOrder"
|
|
57151
57180
|
[screenConfigurationObject]="cfgNames.HeaderTaskCreator"
|
|
57152
57181
|
(activityCreated)="fullActivitiesRefreshRequested()"></co-task-creator>
|
|
@@ -59126,6 +59155,7 @@ class TransactionComponent {
|
|
|
59126
59155
|
this.saveCancelMovable = false;
|
|
59127
59156
|
this.transactionPlanning = false;
|
|
59128
59157
|
this.customerPortal = false;
|
|
59158
|
+
this.resetActiveRubric = false;
|
|
59129
59159
|
//This output exists for bundle purposes.
|
|
59130
59160
|
this.serviceRequested = new EventEmitter();
|
|
59131
59161
|
this.screenConfigLoaded = false;
|
|
@@ -59232,6 +59262,7 @@ TransactionComponent.decorators = [
|
|
|
59232
59262
|
[customerPortal]="customerPortal"
|
|
59233
59263
|
(serviceRequested)="this.serviceRequested.emit($event)"
|
|
59234
59264
|
[class.customer-portal]="customerPortal"
|
|
59265
|
+
[resetActiveRubric]="resetActiveRubric"
|
|
59235
59266
|
></co-transaction-internal>
|
|
59236
59267
|
`,
|
|
59237
59268
|
providers: [
|
|
@@ -59264,6 +59295,7 @@ TransactionComponent.propDecorators = {
|
|
|
59264
59295
|
saveCancelMovable: [{ type: Input }],
|
|
59265
59296
|
transactionPlanning: [{ type: Input }],
|
|
59266
59297
|
customerPortal: [{ type: Input }],
|
|
59298
|
+
resetActiveRubric: [{ type: Input }],
|
|
59267
59299
|
serviceRequested: [{ type: Output }],
|
|
59268
59300
|
showClass: [{ type: HostBinding, args: ['class.co-transaction',] }],
|
|
59269
59301
|
checkTransaction: [{ type: HostListener, args: ['window:beforeunload',] }],
|