@colijnit/transaction 12.1.159 → 12.1.160
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 +60 -56
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/core/base/transaction-base.component.js +3 -3
- package/esm2015/lib/service/transaction-base.service.js +5 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +52 -48
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/transaction-base.component.d.ts +4 -5
- package/lib/service/transaction-base.service.d.ts +1 -1
- package/package.json +2 -2
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
function Version() {
|
|
33
33
|
this.name = "@colijnit/transaction";
|
|
34
34
|
this.description = "Colijn IT transaction package";
|
|
35
|
-
this.symVer = "12.1.
|
|
36
|
-
this.publishDate = "3-11-2023
|
|
35
|
+
this.symVer = "12.1.160";
|
|
36
|
+
this.publishDate = "3-11-2023 17:33:06";
|
|
37
37
|
}
|
|
38
38
|
return Version;
|
|
39
39
|
}());
|
|
@@ -8443,59 +8443,6 @@
|
|
|
8443
8443
|
{ type: TransactionConnectorService }
|
|
8444
8444
|
]; };
|
|
8445
8445
|
|
|
8446
|
-
var TransactionScreenConfigurationService = /** @class */ (function (_super) {
|
|
8447
|
-
__extends(TransactionScreenConfigurationService, _super);
|
|
8448
|
-
function TransactionScreenConfigurationService(_transactionAdapterService) {
|
|
8449
|
-
var _this = _super.call(this) || this;
|
|
8450
|
-
_this._transactionAdapterService = _transactionAdapterService;
|
|
8451
|
-
_this.screenModuleName = "Transactions";
|
|
8452
|
-
_this._screenConfigurationObjectCache = new Map();
|
|
8453
|
-
return _this;
|
|
8454
|
-
}
|
|
8455
|
-
TransactionScreenConfigurationService.prototype.clear = function () {
|
|
8456
|
-
this._screenConfigurationObjectCache.clear();
|
|
8457
|
-
};
|
|
8458
|
-
TransactionScreenConfigurationService.prototype.loadConfigForModule = function (params, insertRights) {
|
|
8459
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8460
|
-
var transactionKind, config;
|
|
8461
|
-
return __generator(this, function (_a) {
|
|
8462
|
-
switch (_a.label) {
|
|
8463
|
-
case 0:
|
|
8464
|
-
if (!params) return [3 /*break*/, 3];
|
|
8465
|
-
transactionKind = params[0];
|
|
8466
|
-
if (!!this._screenConfigurationLoaded(transactionKind)) return [3 /*break*/, 2];
|
|
8467
|
-
return [4 /*yield*/, this._transactionAdapterService.getObjectConfiguration(this.screenModuleName, transactionKind)];
|
|
8468
|
-
case 1:
|
|
8469
|
-
config = _a.sent();
|
|
8470
|
-
if (config) {
|
|
8471
|
-
this._setScreenConfigurationObjectCache(transactionKind, config);
|
|
8472
|
-
return [2 /*return*/, config];
|
|
8473
|
-
}
|
|
8474
|
-
return [3 /*break*/, 3];
|
|
8475
|
-
case 2: return [2 /*return*/, Promise.resolve(this._screenConfigurationObjectCache.get(transactionKind))];
|
|
8476
|
-
case 3: return [2 /*return*/, Promise.resolve([])];
|
|
8477
|
-
}
|
|
8478
|
-
});
|
|
8479
|
-
});
|
|
8480
|
-
};
|
|
8481
|
-
TransactionScreenConfigurationService.prototype._setScreenConfigurationObjectCache = function (transactionKind, objects) {
|
|
8482
|
-
this._screenConfigurationObjectCache.set(transactionKind, objects);
|
|
8483
|
-
};
|
|
8484
|
-
TransactionScreenConfigurationService.prototype._screenConfigurationLoaded = function (transactionKind) {
|
|
8485
|
-
return this._screenConfigurationObjectCache.has(transactionKind);
|
|
8486
|
-
};
|
|
8487
|
-
return TransactionScreenConfigurationService;
|
|
8488
|
-
}(corecomponents_v12.BaseModuleScreenConfigService));
|
|
8489
|
-
TransactionScreenConfigurationService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionScreenConfigurationService_Factory() { return new TransactionScreenConfigurationService(i0__namespace.ɵɵinject(TransactionConnectorAdapterService)); }, token: TransactionScreenConfigurationService, providedIn: "root" });
|
|
8490
|
-
TransactionScreenConfigurationService.decorators = [
|
|
8491
|
-
{ type: i0.Injectable, args: [{
|
|
8492
|
-
providedIn: "root"
|
|
8493
|
-
},] }
|
|
8494
|
-
];
|
|
8495
|
-
TransactionScreenConfigurationService.ctorParameters = function () { return [
|
|
8496
|
-
{ type: TransactionConnectorAdapterService }
|
|
8497
|
-
]; };
|
|
8498
|
-
|
|
8499
8446
|
var TransactionCfgName;
|
|
8500
8447
|
(function (TransactionCfgName) {
|
|
8501
8448
|
/*Transaction header*/
|
|
@@ -9048,7 +8995,7 @@
|
|
|
9048
8995
|
TransactionBaseComponent.ctorParameters = function () { return [
|
|
9049
8996
|
{ type: TransactionEventService },
|
|
9050
8997
|
{ type: IconCacheService },
|
|
9051
|
-
{ type:
|
|
8998
|
+
{ type: corecomponents_v12.BaseModuleScreenConfigService },
|
|
9052
8999
|
{ type: TransactionImageService },
|
|
9053
9000
|
{ type: DictionaryService },
|
|
9054
9001
|
{ type: TransactionService },
|
|
@@ -9588,6 +9535,59 @@
|
|
|
9588
9535
|
{ type: SelectMultipleParameterizedCacheService }
|
|
9589
9536
|
]; };
|
|
9590
9537
|
|
|
9538
|
+
var TransactionScreenConfigurationService = /** @class */ (function (_super) {
|
|
9539
|
+
__extends(TransactionScreenConfigurationService, _super);
|
|
9540
|
+
function TransactionScreenConfigurationService(_transactionAdapterService) {
|
|
9541
|
+
var _this = _super.call(this) || this;
|
|
9542
|
+
_this._transactionAdapterService = _transactionAdapterService;
|
|
9543
|
+
_this.screenModuleName = "Transactions";
|
|
9544
|
+
_this._screenConfigurationObjectCache = new Map();
|
|
9545
|
+
return _this;
|
|
9546
|
+
}
|
|
9547
|
+
TransactionScreenConfigurationService.prototype.clear = function () {
|
|
9548
|
+
this._screenConfigurationObjectCache.clear();
|
|
9549
|
+
};
|
|
9550
|
+
TransactionScreenConfigurationService.prototype.loadConfigForModule = function (params, insertRights) {
|
|
9551
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9552
|
+
var transactionKind, config;
|
|
9553
|
+
return __generator(this, function (_a) {
|
|
9554
|
+
switch (_a.label) {
|
|
9555
|
+
case 0:
|
|
9556
|
+
if (!params) return [3 /*break*/, 3];
|
|
9557
|
+
transactionKind = params[0];
|
|
9558
|
+
if (!!this._screenConfigurationLoaded(transactionKind)) return [3 /*break*/, 2];
|
|
9559
|
+
return [4 /*yield*/, this._transactionAdapterService.getObjectConfiguration(this.screenModuleName, transactionKind)];
|
|
9560
|
+
case 1:
|
|
9561
|
+
config = _a.sent();
|
|
9562
|
+
if (config) {
|
|
9563
|
+
this._setScreenConfigurationObjectCache(transactionKind, config);
|
|
9564
|
+
return [2 /*return*/, config];
|
|
9565
|
+
}
|
|
9566
|
+
return [3 /*break*/, 3];
|
|
9567
|
+
case 2: return [2 /*return*/, Promise.resolve(this._screenConfigurationObjectCache.get(transactionKind))];
|
|
9568
|
+
case 3: return [2 /*return*/, Promise.resolve([])];
|
|
9569
|
+
}
|
|
9570
|
+
});
|
|
9571
|
+
});
|
|
9572
|
+
};
|
|
9573
|
+
TransactionScreenConfigurationService.prototype._setScreenConfigurationObjectCache = function (transactionKind, objects) {
|
|
9574
|
+
this._screenConfigurationObjectCache.set(transactionKind, objects);
|
|
9575
|
+
};
|
|
9576
|
+
TransactionScreenConfigurationService.prototype._screenConfigurationLoaded = function (transactionKind) {
|
|
9577
|
+
return this._screenConfigurationObjectCache.has(transactionKind);
|
|
9578
|
+
};
|
|
9579
|
+
return TransactionScreenConfigurationService;
|
|
9580
|
+
}(corecomponents_v12.BaseModuleScreenConfigService));
|
|
9581
|
+
TransactionScreenConfigurationService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionScreenConfigurationService_Factory() { return new TransactionScreenConfigurationService(i0__namespace.ɵɵinject(TransactionConnectorAdapterService)); }, token: TransactionScreenConfigurationService, providedIn: "root" });
|
|
9582
|
+
TransactionScreenConfigurationService.decorators = [
|
|
9583
|
+
{ type: i0.Injectable, args: [{
|
|
9584
|
+
providedIn: "root"
|
|
9585
|
+
},] }
|
|
9586
|
+
];
|
|
9587
|
+
TransactionScreenConfigurationService.ctorParameters = function () { return [
|
|
9588
|
+
{ type: TransactionConnectorAdapterService }
|
|
9589
|
+
]; };
|
|
9590
|
+
|
|
9591
9591
|
var TransactionBaseService = /** @class */ (function (_super) {
|
|
9592
9592
|
__extends(TransactionBaseService, _super);
|
|
9593
9593
|
function TransactionBaseService(optionsService, dialogService, connector, sharedService, articleConnector, dictionaryService, transactionEventService, relationService, screenConfigService) {
|
|
@@ -9971,6 +9971,10 @@
|
|
|
9971
9971
|
transactionInfoResponse = _a.sent();
|
|
9972
9972
|
if (transactionInfoResponse && transactionInfoResponse.isSuccess) {
|
|
9973
9973
|
this.rememberCurrentTransaction(transactionInfoResponse);
|
|
9974
|
+
return [2 /*return*/, true];
|
|
9975
|
+
}
|
|
9976
|
+
else {
|
|
9977
|
+
return [2 /*return*/, false];
|
|
9974
9978
|
}
|
|
9975
9979
|
return [2 /*return*/];
|
|
9976
9980
|
}
|