@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
|
@@ -199,8 +199,8 @@ class Version {
|
|
|
199
199
|
constructor() {
|
|
200
200
|
this.name = "@colijnit/transaction";
|
|
201
201
|
this.description = "Colijn IT transaction package";
|
|
202
|
-
this.symVer = "12.1.
|
|
203
|
-
this.publishDate = "3-11-2023
|
|
202
|
+
this.symVer = "12.1.160";
|
|
203
|
+
this.publishDate = "3-11-2023 17:33:06";
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
|
|
@@ -5800,51 +5800,6 @@ TransactionImageService.ctorParameters = () => [
|
|
|
5800
5800
|
{ type: TransactionConnectorService }
|
|
5801
5801
|
];
|
|
5802
5802
|
|
|
5803
|
-
class TransactionScreenConfigurationService extends BaseModuleScreenConfigService {
|
|
5804
|
-
constructor(_transactionAdapterService) {
|
|
5805
|
-
super();
|
|
5806
|
-
this._transactionAdapterService = _transactionAdapterService;
|
|
5807
|
-
this.screenModuleName = "Transactions";
|
|
5808
|
-
this._screenConfigurationObjectCache = new Map();
|
|
5809
|
-
}
|
|
5810
|
-
clear() {
|
|
5811
|
-
this._screenConfigurationObjectCache.clear();
|
|
5812
|
-
}
|
|
5813
|
-
loadConfigForModule(params, insertRights) {
|
|
5814
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5815
|
-
if (params) {
|
|
5816
|
-
const transactionKind = params[0];
|
|
5817
|
-
if (!this._screenConfigurationLoaded(transactionKind)) {
|
|
5818
|
-
const config = yield this._transactionAdapterService.getObjectConfiguration(this.screenModuleName, transactionKind);
|
|
5819
|
-
if (config) {
|
|
5820
|
-
this._setScreenConfigurationObjectCache(transactionKind, config);
|
|
5821
|
-
return config;
|
|
5822
|
-
}
|
|
5823
|
-
}
|
|
5824
|
-
else {
|
|
5825
|
-
return Promise.resolve(this._screenConfigurationObjectCache.get(transactionKind));
|
|
5826
|
-
}
|
|
5827
|
-
}
|
|
5828
|
-
return Promise.resolve([]);
|
|
5829
|
-
});
|
|
5830
|
-
}
|
|
5831
|
-
_setScreenConfigurationObjectCache(transactionKind, objects) {
|
|
5832
|
-
this._screenConfigurationObjectCache.set(transactionKind, objects);
|
|
5833
|
-
}
|
|
5834
|
-
_screenConfigurationLoaded(transactionKind) {
|
|
5835
|
-
return this._screenConfigurationObjectCache.has(transactionKind);
|
|
5836
|
-
}
|
|
5837
|
-
}
|
|
5838
|
-
TransactionScreenConfigurationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionScreenConfigurationService_Factory() { return new TransactionScreenConfigurationService(i0.ɵɵinject(TransactionConnectorAdapterService)); }, token: TransactionScreenConfigurationService, providedIn: "root" });
|
|
5839
|
-
TransactionScreenConfigurationService.decorators = [
|
|
5840
|
-
{ type: Injectable, args: [{
|
|
5841
|
-
providedIn: "root"
|
|
5842
|
-
},] }
|
|
5843
|
-
];
|
|
5844
|
-
TransactionScreenConfigurationService.ctorParameters = () => [
|
|
5845
|
-
{ type: TransactionConnectorAdapterService }
|
|
5846
|
-
];
|
|
5847
|
-
|
|
5848
5803
|
var TransactionCfgName;
|
|
5849
5804
|
(function (TransactionCfgName) {
|
|
5850
5805
|
/*Transaction header*/
|
|
@@ -6337,7 +6292,7 @@ TransactionBaseComponent.decorators = [
|
|
|
6337
6292
|
TransactionBaseComponent.ctorParameters = () => [
|
|
6338
6293
|
{ type: TransactionEventService },
|
|
6339
6294
|
{ type: IconCacheService },
|
|
6340
|
-
{ type:
|
|
6295
|
+
{ type: BaseModuleScreenConfigService },
|
|
6341
6296
|
{ type: TransactionImageService },
|
|
6342
6297
|
{ type: DictionaryService },
|
|
6343
6298
|
{ type: TransactionService },
|
|
@@ -6919,6 +6874,51 @@ RelationService.ctorParameters = () => [
|
|
|
6919
6874
|
{ type: SelectMultipleParameterizedCacheService }
|
|
6920
6875
|
];
|
|
6921
6876
|
|
|
6877
|
+
class TransactionScreenConfigurationService extends BaseModuleScreenConfigService {
|
|
6878
|
+
constructor(_transactionAdapterService) {
|
|
6879
|
+
super();
|
|
6880
|
+
this._transactionAdapterService = _transactionAdapterService;
|
|
6881
|
+
this.screenModuleName = "Transactions";
|
|
6882
|
+
this._screenConfigurationObjectCache = new Map();
|
|
6883
|
+
}
|
|
6884
|
+
clear() {
|
|
6885
|
+
this._screenConfigurationObjectCache.clear();
|
|
6886
|
+
}
|
|
6887
|
+
loadConfigForModule(params, insertRights) {
|
|
6888
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6889
|
+
if (params) {
|
|
6890
|
+
const transactionKind = params[0];
|
|
6891
|
+
if (!this._screenConfigurationLoaded(transactionKind)) {
|
|
6892
|
+
const config = yield this._transactionAdapterService.getObjectConfiguration(this.screenModuleName, transactionKind);
|
|
6893
|
+
if (config) {
|
|
6894
|
+
this._setScreenConfigurationObjectCache(transactionKind, config);
|
|
6895
|
+
return config;
|
|
6896
|
+
}
|
|
6897
|
+
}
|
|
6898
|
+
else {
|
|
6899
|
+
return Promise.resolve(this._screenConfigurationObjectCache.get(transactionKind));
|
|
6900
|
+
}
|
|
6901
|
+
}
|
|
6902
|
+
return Promise.resolve([]);
|
|
6903
|
+
});
|
|
6904
|
+
}
|
|
6905
|
+
_setScreenConfigurationObjectCache(transactionKind, objects) {
|
|
6906
|
+
this._screenConfigurationObjectCache.set(transactionKind, objects);
|
|
6907
|
+
}
|
|
6908
|
+
_screenConfigurationLoaded(transactionKind) {
|
|
6909
|
+
return this._screenConfigurationObjectCache.has(transactionKind);
|
|
6910
|
+
}
|
|
6911
|
+
}
|
|
6912
|
+
TransactionScreenConfigurationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionScreenConfigurationService_Factory() { return new TransactionScreenConfigurationService(i0.ɵɵinject(TransactionConnectorAdapterService)); }, token: TransactionScreenConfigurationService, providedIn: "root" });
|
|
6913
|
+
TransactionScreenConfigurationService.decorators = [
|
|
6914
|
+
{ type: Injectable, args: [{
|
|
6915
|
+
providedIn: "root"
|
|
6916
|
+
},] }
|
|
6917
|
+
];
|
|
6918
|
+
TransactionScreenConfigurationService.ctorParameters = () => [
|
|
6919
|
+
{ type: TransactionConnectorAdapterService }
|
|
6920
|
+
];
|
|
6921
|
+
|
|
6922
6922
|
class TransactionBaseService extends BaseModuleService {
|
|
6923
6923
|
constructor(optionsService, dialogService, connector, sharedService, articleConnector, dictionaryService, transactionEventService, relationService, screenConfigService) {
|
|
6924
6924
|
super(screenConfigService);
|
|
@@ -7176,6 +7176,10 @@ class TransactionBaseService extends BaseModuleService {
|
|
|
7176
7176
|
const transactionInfoResponse = yield this.connector.getWebSessionSalesOrder(transactionUuid);
|
|
7177
7177
|
if (transactionInfoResponse && transactionInfoResponse.isSuccess) {
|
|
7178
7178
|
this.rememberCurrentTransaction(transactionInfoResponse);
|
|
7179
|
+
return true;
|
|
7180
|
+
}
|
|
7181
|
+
else {
|
|
7182
|
+
return false;
|
|
7179
7183
|
}
|
|
7180
7184
|
});
|
|
7181
7185
|
}
|