@colijnit/transaction 256.1.27 → 256.1.28
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 +278 -111
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +11 -9
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +12 -10
- package/esm2015/lib/component/delivery-planning-main/component/delivery-planning-overview/component/delivery-planning-overview-tile/component/delivery-planning-overview-tile-line/delivery-planning-overview-tile-line.component.js +4 -15
- package/esm2015/lib/component/dialog/dialog-branch/dialog-branch.component.js +131 -0
- package/esm2015/lib/component/dialog/dialog-branch/dialog-branch.module.js +26 -0
- package/esm2015/lib/component/transaction-internal/transaction-internal.module.js +4 -4
- package/esm2015/lib/component/transaction-line/transaction-planning-line/transaction-planning-line.component.js +38 -3
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-sales-quotation/transaction-quick-access-sales-quotation.component.js +2 -3
- package/esm2015/lib/service/dialog.service.js +6 -9
- package/esm2015/lib/service/transaction-base.service.js +1 -2
- package/esm2015/lib/service/transaction.service.js +2 -2
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +288 -125
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/delivery-planning/style/_layout.scss +5 -0
- package/lib/component/delivery-planning-main/component/delivery-planning-overview/component/delivery-planning-overview-tile/component/delivery-planning-overview-tile-line/style/_layout.scss +11 -10
- package/lib/component/dialog/dialog-branch/dialog-branch.component.d.ts +48 -0
- package/lib/component/dialog/dialog-branch/dialog-branch.module.d.ts +2 -0
- package/lib/component/dialog/dialog-branch/style/_layout.scss +11 -0
- package/lib/component/dialog/dialog-branch/style/_material-definition.scss +2 -0
- package/lib/component/dialog/dialog-branch/style/_theme.scss +4 -0
- package/lib/component/dialog/dialog-branch/style/material.scss +4 -0
- package/lib/component/transaction-internal/style/_layout.scss +3 -0
- package/lib/component/transaction-line/transaction-line/style/_layout.scss +8 -0
- package/lib/component/transaction-line/transaction-planning-line/transaction-planning-line.component.d.ts +2 -1
- package/lib/service/dialog.service.d.ts +1 -1
- package/package.json +2 -2
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
function Version() {
|
|
34
34
|
this.name = "@colijnit/transaction";
|
|
35
35
|
this.description = "Colijn IT transaction package";
|
|
36
|
-
this.symVer = "256.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "256.1.28";
|
|
37
|
+
this.publishDate = "17-12-2024 17:47:46";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -13659,84 +13659,6 @@
|
|
|
13659
13659
|
transaction: [{ type: i0.Input }]
|
|
13660
13660
|
};
|
|
13661
13661
|
|
|
13662
|
-
var DialogTransactionHeaderBaseComponent = /** @class */ (function (_super) {
|
|
13663
|
-
__extends(DialogTransactionHeaderBaseComponent, _super);
|
|
13664
|
-
function DialogTransactionHeaderBaseComponent() {
|
|
13665
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
13666
|
-
_this.buttonType = AppPopupButtonType;
|
|
13667
|
-
_this.autoClose = false;
|
|
13668
|
-
_this.useModel = true;
|
|
13669
|
-
_this.close = new i0.EventEmitter();
|
|
13670
|
-
_this.shouldRollbackOnClose = true;
|
|
13671
|
-
return _this;
|
|
13672
|
-
}
|
|
13673
|
-
DialogTransactionHeaderBaseComponent.prototype.onClose = function (eventType, output) {
|
|
13674
|
-
return;
|
|
13675
|
-
};
|
|
13676
|
-
DialogTransactionHeaderBaseComponent.prototype.handleValueChange = function (value) {
|
|
13677
|
-
this.value = value;
|
|
13678
|
-
};
|
|
13679
|
-
DialogTransactionHeaderBaseComponent.prototype.handleOkClick = function () {
|
|
13680
|
-
this.onClose(AppPopupButtonType.Ok, this.value);
|
|
13681
|
-
};
|
|
13682
|
-
DialogTransactionHeaderBaseComponent.prototype.handleSearch = function (text) {
|
|
13683
|
-
this.searchText = text;
|
|
13684
|
-
};
|
|
13685
|
-
DialogTransactionHeaderBaseComponent.prototype.handleCloseDialog = function (event, type) {
|
|
13686
|
-
if (event) {
|
|
13687
|
-
event.preventDefault();
|
|
13688
|
-
event.stopPropagation();
|
|
13689
|
-
}
|
|
13690
|
-
this.handleClose(type);
|
|
13691
|
-
};
|
|
13692
|
-
DialogTransactionHeaderBaseComponent.prototype.handleClose = function (type) {
|
|
13693
|
-
if (type === AppPopupButtonType.Cancel && this.shouldRollbackOnClose) {
|
|
13694
|
-
this.rollback();
|
|
13695
|
-
}
|
|
13696
|
-
this.close.emit();
|
|
13697
|
-
this.onClose(type);
|
|
13698
|
-
this.detectChanges();
|
|
13699
|
-
};
|
|
13700
|
-
return DialogTransactionHeaderBaseComponent;
|
|
13701
|
-
}(TransactionHeaderBaseComponent));
|
|
13702
|
-
DialogTransactionHeaderBaseComponent.decorators = [
|
|
13703
|
-
{ type: i0.Directive }
|
|
13704
|
-
];
|
|
13705
|
-
DialogTransactionHeaderBaseComponent.propDecorators = {
|
|
13706
|
-
autoClose: [{ type: i0.Input }],
|
|
13707
|
-
useModel: [{ type: i0.Input }],
|
|
13708
|
-
close: [{ type: i0.Output }]
|
|
13709
|
-
};
|
|
13710
|
-
|
|
13711
|
-
var DialogTransactionHeaderBranchComponent = /** @class */ (function (_super) {
|
|
13712
|
-
__extends(DialogTransactionHeaderBranchComponent, _super);
|
|
13713
|
-
function DialogTransactionHeaderBranchComponent() {
|
|
13714
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
13715
|
-
_this.buttonType = AppPopupButtonType;
|
|
13716
|
-
return _this;
|
|
13717
|
-
}
|
|
13718
|
-
DialogTransactionHeaderBranchComponent.prototype.showClass = function () {
|
|
13719
|
-
return true;
|
|
13720
|
-
};
|
|
13721
|
-
DialogTransactionHeaderBranchComponent.prototype.handleValueChange = function (value) {
|
|
13722
|
-
this.value = value;
|
|
13723
|
-
};
|
|
13724
|
-
DialogTransactionHeaderBranchComponent.prototype.handleOkClick = function () {
|
|
13725
|
-
this.onClose(AppPopupButtonType.Ok, this.value);
|
|
13726
|
-
};
|
|
13727
|
-
return DialogTransactionHeaderBranchComponent;
|
|
13728
|
-
}(DialogTransactionHeaderBaseComponent));
|
|
13729
|
-
DialogTransactionHeaderBranchComponent.decorators = [
|
|
13730
|
-
{ type: i0.Component, args: [{
|
|
13731
|
-
selector: "co-dialog-transaction-header-branch",
|
|
13732
|
-
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" (closeClick)=\"handleCloseDialog($event, buttonType.Cancel)\">\n <co-transaction-header-branch\n [useModel]=\"useModel\"\n [searchText]=\"searchText\"\n (valueChange)=\"handleValueChange($event)\"\n ></co-transaction-header-branch>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'BRANCH'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button class=\"save-button\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"handleOkClick()\"></co-button>\n <co-button class=\"close-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"handleCloseDialog($event, buttonType.Cancel)\"></co-button>\n </div>\n </ng-template>\n ",
|
|
13733
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
13734
|
-
},] }
|
|
13735
|
-
];
|
|
13736
|
-
DialogTransactionHeaderBranchComponent.propDecorators = {
|
|
13737
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-dialog-transaction-header-branch",] }]
|
|
13738
|
-
};
|
|
13739
|
-
|
|
13740
13662
|
var TransactionCashRegisterOrderReceiptDialogComponent = /** @class */ (function (_super) {
|
|
13741
13663
|
__extends(TransactionCashRegisterOrderReceiptDialogComponent, _super);
|
|
13742
13664
|
function TransactionCashRegisterOrderReceiptDialogComponent() {
|
|
@@ -14016,6 +13938,123 @@
|
|
|
14016
13938
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-cash-register-order-receipt-dialog",] }]
|
|
14017
13939
|
};
|
|
14018
13940
|
|
|
13941
|
+
var DialogBranchComponent = /** @class */ (function () {
|
|
13942
|
+
function DialogBranchComponent(iconCacheService, _relationService) {
|
|
13943
|
+
this.iconCacheService = iconCacheService;
|
|
13944
|
+
this._relationService = _relationService;
|
|
13945
|
+
this.icons = Icon;
|
|
13946
|
+
this.buttonType = AppPopupButtonType;
|
|
13947
|
+
this.fields = { text: "description", value: "relationId" };
|
|
13948
|
+
this.viewModels = [];
|
|
13949
|
+
this.viewModelsFiltered = [];
|
|
13950
|
+
this.codeField = 'branchNo';
|
|
13951
|
+
this.checkField = 'relationNr';
|
|
13952
|
+
this.propsForLabel = [{ label: 'branchNo' }, { label: 'description' }];
|
|
13953
|
+
}
|
|
13954
|
+
DialogBranchComponent.prototype.showClass = function () {
|
|
13955
|
+
return true;
|
|
13956
|
+
};
|
|
13957
|
+
Object.defineProperty(DialogBranchComponent.prototype, "searchText", {
|
|
13958
|
+
get: function () {
|
|
13959
|
+
return this._searchText;
|
|
13960
|
+
},
|
|
13961
|
+
set: function (value) {
|
|
13962
|
+
if (value !== undefined && value !== null) {
|
|
13963
|
+
this._searchText = value;
|
|
13964
|
+
this._doSearch();
|
|
13965
|
+
}
|
|
13966
|
+
},
|
|
13967
|
+
enumerable: false,
|
|
13968
|
+
configurable: true
|
|
13969
|
+
});
|
|
13970
|
+
DialogBranchComponent.prototype.ngOnInit = function () {
|
|
13971
|
+
this._getCollection();
|
|
13972
|
+
};
|
|
13973
|
+
DialogBranchComponent.prototype.onClose = function (eventType, output) {
|
|
13974
|
+
return;
|
|
13975
|
+
};
|
|
13976
|
+
DialogBranchComponent.prototype.handleSearch = function (text) {
|
|
13977
|
+
this.searchText = text;
|
|
13978
|
+
};
|
|
13979
|
+
DialogBranchComponent.prototype.handleOkClick = function () {
|
|
13980
|
+
this.onClose(AppPopupButtonType.Save, this.value);
|
|
13981
|
+
};
|
|
13982
|
+
DialogBranchComponent.prototype.handleCloseDialog = function (event, type) {
|
|
13983
|
+
if (event) {
|
|
13984
|
+
event.preventDefault();
|
|
13985
|
+
event.stopPropagation();
|
|
13986
|
+
}
|
|
13987
|
+
this.onClose(type);
|
|
13988
|
+
};
|
|
13989
|
+
DialogBranchComponent.prototype.handleChecked = function (row) {
|
|
13990
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13991
|
+
var currentModel, i;
|
|
13992
|
+
return __generator(this, function (_a) {
|
|
13993
|
+
row.checked = true;
|
|
13994
|
+
currentModel = this.viewModels.find(function (v) { return v.value === row.value; });
|
|
13995
|
+
if (currentModel) {
|
|
13996
|
+
currentModel.checked = true;
|
|
13997
|
+
}
|
|
13998
|
+
for (i = 0; i < this.viewModels.length; i++) {
|
|
13999
|
+
if (this.viewModels[i].value !== row.value) {
|
|
14000
|
+
this.viewModels[i].checked = false;
|
|
14001
|
+
}
|
|
14002
|
+
}
|
|
14003
|
+
this.value = row.value;
|
|
14004
|
+
return [2 /*return*/];
|
|
14005
|
+
});
|
|
14006
|
+
});
|
|
14007
|
+
};
|
|
14008
|
+
DialogBranchComponent.prototype._getCollection = function () {
|
|
14009
|
+
var _this = this;
|
|
14010
|
+
this._relationService.getBranches().then(function (branches) {
|
|
14011
|
+
_this._collection = branches;
|
|
14012
|
+
_this._prepareViewModels();
|
|
14013
|
+
});
|
|
14014
|
+
};
|
|
14015
|
+
DialogBranchComponent.prototype._prepareViewModels = function () {
|
|
14016
|
+
var _this = this;
|
|
14017
|
+
this.viewModels.length = 0;
|
|
14018
|
+
this._collection.forEach(function (d, index) {
|
|
14019
|
+
var labels = JSON.parse(JSON.stringify(_this.propsForLabel));
|
|
14020
|
+
labels.forEach(function (l) { return l.label = d[l.label]; });
|
|
14021
|
+
_this.viewModels.push({
|
|
14022
|
+
value: d[_this.codeField],
|
|
14023
|
+
propsForLabel: labels,
|
|
14024
|
+
checked: (_this.value ? _this.value === d[_this.codeField] : index === 0)
|
|
14025
|
+
});
|
|
14026
|
+
});
|
|
14027
|
+
this.viewModelsFiltered = this.viewModels.slice();
|
|
14028
|
+
if (this.viewModels.length > 0) {
|
|
14029
|
+
// this.valueChange.next(this.value ? this.value : this.viewModels[0].value);
|
|
14030
|
+
}
|
|
14031
|
+
};
|
|
14032
|
+
DialogBranchComponent.prototype._doSearch = function () {
|
|
14033
|
+
var _this = this;
|
|
14034
|
+
this.viewModelsFiltered = JSON.parse(JSON.stringify(this.viewModels));
|
|
14035
|
+
if (this.searchText) {
|
|
14036
|
+
this.viewModelsFiltered = this.viewModelsFiltered.filter(function (vmf) {
|
|
14037
|
+
return vmf.propsForLabel.find(function (p) { return p.label && p.label.toString().match(new RegExp(_this.searchText, 'gi')); });
|
|
14038
|
+
});
|
|
14039
|
+
}
|
|
14040
|
+
};
|
|
14041
|
+
return DialogBranchComponent;
|
|
14042
|
+
}());
|
|
14043
|
+
DialogBranchComponent.decorators = [
|
|
14044
|
+
{ type: i0.Component, args: [{
|
|
14045
|
+
selector: 'co-dialog-branch',
|
|
14046
|
+
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" (closeClick)=\"handleCloseDialog($event, buttonType.Cancel)\">\n <co-transaction-line-checkbox-list\n [collection]=\"viewModelsFiltered\"\n (checked)=\"handleChecked($event)\"\n ></co-transaction-line-checkbox-list>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'BRANCH'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button class=\"save-button\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"handleOkClick()\"></co-button>\n <co-button class=\"close-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"handleCloseDialog($event, buttonType.Cancel)\"></co-button>\n </div>\n </ng-template>\n ",
|
|
14047
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
14048
|
+
},] }
|
|
14049
|
+
];
|
|
14050
|
+
DialogBranchComponent.ctorParameters = function () { return [
|
|
14051
|
+
{ type: IconCacheService },
|
|
14052
|
+
{ type: TransactionRelationService }
|
|
14053
|
+
]; };
|
|
14054
|
+
DialogBranchComponent.propDecorators = {
|
|
14055
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-dialog-branch',] }]
|
|
14056
|
+
};
|
|
14057
|
+
|
|
14019
14058
|
var DialogService = /** @class */ (function () {
|
|
14020
14059
|
function DialogService(_compFactoryResolver, appRef, injector, dynamicComponentService, _dictionaryService) {
|
|
14021
14060
|
this._compFactoryResolver = _compFactoryResolver;
|
|
@@ -14086,12 +14125,9 @@
|
|
|
14086
14125
|
};
|
|
14087
14126
|
return this.dynamicComponentService.createComponent(DialogTransactionLineWarehouseCcComponent, data, undefined, [provider]);
|
|
14088
14127
|
};
|
|
14089
|
-
DialogService.prototype.showBranch = function (
|
|
14090
|
-
var data = {
|
|
14091
|
-
|
|
14092
|
-
useModel: false
|
|
14093
|
-
};
|
|
14094
|
-
return this.dynamicComponentService.createComponent(DialogTransactionHeaderBranchComponent, data);
|
|
14128
|
+
DialogService.prototype.showBranch = function () {
|
|
14129
|
+
var data = {};
|
|
14130
|
+
return this.dynamicComponentService.createComponent(DialogBranchComponent, data);
|
|
14095
14131
|
};
|
|
14096
14132
|
DialogService.prototype.showWarehouseLocation = function (warehouseNr, useModel, autoClose, showClose, transactionLine) {
|
|
14097
14133
|
var data = {
|
|
@@ -14204,7 +14240,6 @@
|
|
|
14204
14240
|
_this.relationUpdated = new rxjs.BehaviorSubject(undefined);
|
|
14205
14241
|
_this.transactionKindSet = new rxjs.BehaviorSubject(false);
|
|
14206
14242
|
_this.transactionMargeViewClicked = new rxjs.Subject();
|
|
14207
|
-
_this.currentBranch = "1"; // current user branch, needs to be set before we can do anything with transactions
|
|
14208
14243
|
_this.autoSave = false;
|
|
14209
14244
|
_this.manualSaveParam = false;
|
|
14210
14245
|
_this.applicationUser = false;
|
|
@@ -19070,7 +19105,7 @@
|
|
|
19070
19105
|
switch (_a.label) {
|
|
19071
19106
|
case 0:
|
|
19072
19107
|
if (!!this.currentBranch) return [3 /*break*/, 2];
|
|
19073
|
-
return [4 /*yield*/, this.dialogService.showBranch(
|
|
19108
|
+
return [4 /*yield*/, this.dialogService.showBranch()];
|
|
19074
19109
|
case 1:
|
|
19075
19110
|
response = _a.sent();
|
|
19076
19111
|
if (response.button !== AppPopupButtonType.Cancel) {
|
|
@@ -22216,6 +22251,55 @@
|
|
|
22216
22251
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-totals",] }]
|
|
22217
22252
|
};
|
|
22218
22253
|
|
|
22254
|
+
var DialogTransactionHeaderBaseComponent = /** @class */ (function (_super) {
|
|
22255
|
+
__extends(DialogTransactionHeaderBaseComponent, _super);
|
|
22256
|
+
function DialogTransactionHeaderBaseComponent() {
|
|
22257
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
22258
|
+
_this.buttonType = AppPopupButtonType;
|
|
22259
|
+
_this.autoClose = false;
|
|
22260
|
+
_this.useModel = true;
|
|
22261
|
+
_this.close = new i0.EventEmitter();
|
|
22262
|
+
_this.shouldRollbackOnClose = true;
|
|
22263
|
+
return _this;
|
|
22264
|
+
}
|
|
22265
|
+
DialogTransactionHeaderBaseComponent.prototype.onClose = function (eventType, output) {
|
|
22266
|
+
return;
|
|
22267
|
+
};
|
|
22268
|
+
DialogTransactionHeaderBaseComponent.prototype.handleValueChange = function (value) {
|
|
22269
|
+
this.value = value;
|
|
22270
|
+
};
|
|
22271
|
+
DialogTransactionHeaderBaseComponent.prototype.handleOkClick = function () {
|
|
22272
|
+
this.onClose(AppPopupButtonType.Ok, this.value);
|
|
22273
|
+
};
|
|
22274
|
+
DialogTransactionHeaderBaseComponent.prototype.handleSearch = function (text) {
|
|
22275
|
+
this.searchText = text;
|
|
22276
|
+
};
|
|
22277
|
+
DialogTransactionHeaderBaseComponent.prototype.handleCloseDialog = function (event, type) {
|
|
22278
|
+
if (event) {
|
|
22279
|
+
event.preventDefault();
|
|
22280
|
+
event.stopPropagation();
|
|
22281
|
+
}
|
|
22282
|
+
this.handleClose(type);
|
|
22283
|
+
};
|
|
22284
|
+
DialogTransactionHeaderBaseComponent.prototype.handleClose = function (type) {
|
|
22285
|
+
if (type === AppPopupButtonType.Cancel && this.shouldRollbackOnClose) {
|
|
22286
|
+
this.rollback();
|
|
22287
|
+
}
|
|
22288
|
+
this.close.emit();
|
|
22289
|
+
this.onClose(type);
|
|
22290
|
+
this.detectChanges();
|
|
22291
|
+
};
|
|
22292
|
+
return DialogTransactionHeaderBaseComponent;
|
|
22293
|
+
}(TransactionHeaderBaseComponent));
|
|
22294
|
+
DialogTransactionHeaderBaseComponent.decorators = [
|
|
22295
|
+
{ type: i0.Directive }
|
|
22296
|
+
];
|
|
22297
|
+
DialogTransactionHeaderBaseComponent.propDecorators = {
|
|
22298
|
+
autoClose: [{ type: i0.Input }],
|
|
22299
|
+
useModel: [{ type: i0.Input }],
|
|
22300
|
+
close: [{ type: i0.Output }]
|
|
22301
|
+
};
|
|
22302
|
+
|
|
22219
22303
|
var DialogTransactionHeaderDiscountComponent = /** @class */ (function (_super) {
|
|
22220
22304
|
__extends(DialogTransactionHeaderDiscountComponent, _super);
|
|
22221
22305
|
function DialogTransactionHeaderDiscountComponent() {
|
|
@@ -28180,7 +28264,7 @@
|
|
|
28180
28264
|
TransactionQuickAccessSalesQuotationComponent.decorators = [
|
|
28181
28265
|
{ type: i0.Component, args: [{
|
|
28182
28266
|
selector: "co-transaction-quick-access-sales-quotation",
|
|
28183
|
-
template: "\n <div class=\"quick-access-content-wrapper\">\n <co-quick-send-button\n [defaultMethodIcon]=\"defaultSendMethodIcon\"\n [showLoader]=\"showLoader\"\n (sendIconClicked)=\"handleSend(defaultSendMethod)\"\n (openSendMethodDialog)=\"showSendMethodDialog = true\"\n ></co-quick-send-button>\n <co-transaction-send-documents\n [historicReports]=\"historicReports\"\n [transactionTypeCategory]=\"transactionTypeCategory.SalesOrderQuotation\"\n ></co-transaction-send-documents>\n <co-transaction-button\n [label]=\"'SALES_ORDER' | localize\"\n [iconData]=\"iconCacheService.getIcon(icons.CartShoppingRegular)\"\n (click)=\"createSalesOrder()\"\n
|
|
28267
|
+
template: "\n <div class=\"quick-access-content-wrapper\">\n <co-quick-send-button\n [defaultMethodIcon]=\"defaultSendMethodIcon\"\n [showLoader]=\"showLoader\"\n (sendIconClicked)=\"handleSend(defaultSendMethod)\"\n (openSendMethodDialog)=\"showSendMethodDialog = true\"\n ></co-quick-send-button>\n <co-transaction-send-documents\n [historicReports]=\"historicReports\"\n [transactionTypeCategory]=\"transactionTypeCategory.SalesOrderQuotation\"\n ></co-transaction-send-documents>\n <co-transaction-button class=\"sales-quote-btn custom-width\"\n [label]=\"'SALES_ORDER' | localize\"\n [iconData]=\"iconCacheService.getIcon(icons.CartShoppingRegular)\"\n (click)=\"createSalesOrder()\"\n ></co-transaction-button>\n <co-transaction-navigation-button-list\n [refTransactions]=\"getCurrentRefTransactions()\"\n [showRelationButton]=\"false\"\n [emptyLabel]=\"'NO_SALES_QUOTE_ORDER' | localize\"\n (transactionClick)=\"handleSalesOrderNavigation($event)\"\n ></co-transaction-navigation-button-list>\n <co-send-method-dialog *ngIf=\"showSendMethodDialog\"\n [headerTitle]=\"'Verzendmethode'\"\n [printerList]=\"printerList\"\n [defaultSendMethod]=\"defaultSendMethod\"\n [visibleMethods]=\"[sendMethodType.Print, sendMethodType.Email, sendMethodType.Pdf]\"\n [emailAddresses]=\"emailAddresses\"\n [emailLayouts]=\"emailLayouts\"\n [printLayouts]=\"printLayouts\"\n [isDocSignEnabled]=\"true\"\n [(reportingDocumentEmailRequest)]=\"reportDocumentEmailRequest\"\n [(reportingDocumentPrintRequest)]=\"reportDocumentPrintRequest\"\n [(reportingDocumentPdfRequest)]=\"reportDocumentPdfRequest\"\n (closeClick)=\"showSendMethodDialog = false\"\n (okClick)=\"handleSendMethodOkClick($event)\"\n ></co-send-method-dialog>\n </div>\n <co-digital-signature\n [documentId]=\"signatureDocumentId\"\n (documentStored)=\"commitAndRefreshTransaction()\"\n ></co-digital-signature>\n ",
|
|
28184
28268
|
encapsulation: i0.ViewEncapsulation.None
|
|
28185
28269
|
},] }
|
|
28186
28270
|
];
|
|
@@ -29258,8 +29342,42 @@
|
|
|
29258
29342
|
}
|
|
29259
29343
|
};
|
|
29260
29344
|
TransactionPlanningLineComponent.prototype.dragStarted = function (ev) {
|
|
29345
|
+
var _a, _b, _c;
|
|
29261
29346
|
this._deliveryPlanningService.currentTransId = this.transactionInfo.id;
|
|
29262
|
-
ev.
|
|
29347
|
+
ev.target.classList.add('dragging');
|
|
29348
|
+
var lineElement = ev.target.closest('co-transaction-base-line');
|
|
29349
|
+
if (!lineElement)
|
|
29350
|
+
return;
|
|
29351
|
+
var dragBox = (_a = lineElement.querySelector('.co-transaction-line-image-and-description')) === null || _a === void 0 ? void 0 : _a.cloneNode(true);
|
|
29352
|
+
var dragImage = document.createElement('div');
|
|
29353
|
+
dragImage.style.display = 'flex';
|
|
29354
|
+
dragImage.style.flexDirection = 'row';
|
|
29355
|
+
dragImage.style.alignItems = 'center';
|
|
29356
|
+
dragImage.style.justifyContent = 'space-around';
|
|
29357
|
+
dragImage.style.width = '250px';
|
|
29358
|
+
dragImage.style.minHeight = '50px';
|
|
29359
|
+
dragImage.style.padding = '10px';
|
|
29360
|
+
dragImage.style.backgroundColor = '#ffffff';
|
|
29361
|
+
dragImage.style.border = '1px solid #ccc';
|
|
29362
|
+
dragImage.style.boxShadow = '0 4px 6px rgba(0, 0, 0, 0.1)';
|
|
29363
|
+
dragImage.style.borderRadius = '5px';
|
|
29364
|
+
dragImage.style.fontSize = '12px';
|
|
29365
|
+
if (dragBox) {
|
|
29366
|
+
dragBox.style.flex = '1';
|
|
29367
|
+
dragImage.appendChild(dragBox);
|
|
29368
|
+
}
|
|
29369
|
+
document.body.appendChild(dragImage);
|
|
29370
|
+
dragImage.style.position = 'absolute';
|
|
29371
|
+
dragImage.style.top = '-1000px';
|
|
29372
|
+
dragImage.style.left = '-1000px';
|
|
29373
|
+
// Set the custom drag image
|
|
29374
|
+
(_b = ev.dataTransfer) === null || _b === void 0 ? void 0 : _b.setDragImage(dragImage, 50, 25);
|
|
29375
|
+
// Cleanup: Remove the drag image after it's set
|
|
29376
|
+
setTimeout(function () { return document.body.removeChild(dragImage); }, 0);
|
|
29377
|
+
(_c = ev.dataTransfer) === null || _c === void 0 ? void 0 : _c.setData('text', 'lines');
|
|
29378
|
+
};
|
|
29379
|
+
TransactionPlanningLineComponent.prototype.dragEnded = function (ev) {
|
|
29380
|
+
ev.target.classList.remove('dragging');
|
|
29263
29381
|
};
|
|
29264
29382
|
Object.defineProperty(TransactionPlanningLineComponent.prototype, "linePlanned", {
|
|
29265
29383
|
get: function () {
|
|
@@ -29299,7 +29417,8 @@
|
|
|
29299
29417
|
descriptionDblClick: [{ type: i0.Output }],
|
|
29300
29418
|
showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-planning-line',] }],
|
|
29301
29419
|
handleMouseOver: [{ type: i0.HostListener, args: ['mouseover', ['$event'],] }],
|
|
29302
|
-
handleMouseLeave: [{ type: i0.HostListener, args: ['mouseleave', ['$event'],] }]
|
|
29420
|
+
handleMouseLeave: [{ type: i0.HostListener, args: ['mouseleave', ['$event'],] }],
|
|
29421
|
+
dragEnded: [{ type: i0.HostListener, args: ['dragend', ['$event'],] }]
|
|
29303
29422
|
};
|
|
29304
29423
|
|
|
29305
29424
|
var TransactionQuickAccessPlanningComponent = /** @class */ (function (_super) {
|
|
@@ -39613,13 +39732,8 @@
|
|
|
39613
39732
|
this.orderLines = !this.orderLines;
|
|
39614
39733
|
};
|
|
39615
39734
|
DeliveryPlanningOverviewTileLineComponent.prototype.showNormalOrderLines = function (event) {
|
|
39616
|
-
|
|
39617
|
-
|
|
39618
|
-
}
|
|
39619
|
-
else {
|
|
39620
|
-
event.stopPropagation();
|
|
39621
|
-
this.orderLines = !this.orderLines;
|
|
39622
|
-
}
|
|
39735
|
+
event.stopPropagation();
|
|
39736
|
+
this.linesActive = !this.linesActive;
|
|
39623
39737
|
};
|
|
39624
39738
|
DeliveryPlanningOverviewTileLineComponent.prototype.getPlannedLines = function (lines) {
|
|
39625
39739
|
return lines.filter(function (line) { return line.planned === true; });
|
|
@@ -39632,7 +39746,7 @@
|
|
|
39632
39746
|
DeliveryPlanningOverviewTileLineComponent.decorators = [
|
|
39633
39747
|
{ type: i0.Component, args: [{
|
|
39634
39748
|
selector: "co-delivery-planning-overview-tile-line",
|
|
39635
|
-
template: "\n <div class=\"planning-line-wrapper\" (click)=\"setLinesActive()\" [class.normal-mode]=\"isActive\" [class.active-lines]=\"linesActive || isActive\">\n <div class=\"planning-line-content\" (click)=\"showNormalOrderLines($event)\">\n <div class=\"planning-line-left\">\n <div class=\"
|
|
39749
|
+
template: "\n <div class=\"planning-line-wrapper\" (click)=\"setLinesActive()\" [class.normal-mode]=\"isActive\" [class.active-lines]=\"linesActive || isActive\">\n <div class=\"planning-line-content\" (click)=\"showNormalOrderLines($event)\">\n <div class=\"planning-line-left\">\n <div class=\"line-content-left\">\n <div class=\"planning-relation\">\n <span [textContent]=\"order?.relationName\"></span>\n </div>\n <div class=\"planning-address\" *ngIf=\"linesActive || isActive\">\n <span [textContent]=\"order?.shortAddress\"></span>\n </div>\n </div>\n </div>\n <div class=\"planning-line-right\">\n <div class=\"line-content-right\">\n <div class=\"planning-order\">\n <co-icon (click)=\"setLinesActive()\"\n [iconData]=\"iconCacheService.getIcon(icons.CartShoppingRegular)\"></co-icon>\n <a href=\"javascript:void(0)\" [textContent]=\"order?.transactionNr\" (click)=\"handleEditOrderEvent(order)\"></a>\n\n </div>\n <div class=\"planning-time\" *ngIf=\"linesActive || isActive\">\n <span\n [textContent]=\"(order?.startTime | date: 'HH:mm') + ' - ' + (order?.endTime | date: 'HH:mm')\"></span>\n </div>\n </div>\n <div class=\"planning-line-actions\">\n <co-icon *ngIf=\"linesActive || isActive\" (click)=\"handleDeleteOrderClick(order)\"\n [iconData]=\"iconCacheService.getIcon(icons.TrashCanRegular)\"></co-icon>\n <co-icon *ngIf=\"!linesActive\" [class.hidden]=\"isActive\" [iconData]=\"iconCacheService.getIcon(icons.ChevronRightRegular)\"></co-icon>\n </div>\n </div>\n </div>\n <div class=\"order-line-list-wrapper\" *ngIf=\"linesActive\">\n <div class=\"order-lines\" *ngFor=\"let line of getPlannedLines(order?.lines)\">\n <span [textContent]=\"line.articleNumber\"></span>\n <span [textContent]=\"line.description\"></span>\n <co-icon *ngIf=\"linesActive || isActive\" (click)=\"handleDeleteOrderLineClick(order, line)\"\n [iconData]=\"iconCacheService.getIcon(icons.TrashCanRegular)\"></co-icon>\n </div>\n </div>\n </div>\n ",
|
|
39636
39750
|
encapsulation: i0.ViewEncapsulation.None
|
|
39637
39751
|
},] }
|
|
39638
39752
|
];
|
|
@@ -57934,6 +58048,35 @@
|
|
|
57934
58048
|
},] }
|
|
57935
58049
|
];
|
|
57936
58050
|
|
|
58051
|
+
var DialogTransactionHeaderBranchComponent = /** @class */ (function (_super) {
|
|
58052
|
+
__extends(DialogTransactionHeaderBranchComponent, _super);
|
|
58053
|
+
function DialogTransactionHeaderBranchComponent() {
|
|
58054
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
58055
|
+
_this.buttonType = AppPopupButtonType;
|
|
58056
|
+
return _this;
|
|
58057
|
+
}
|
|
58058
|
+
DialogTransactionHeaderBranchComponent.prototype.showClass = function () {
|
|
58059
|
+
return true;
|
|
58060
|
+
};
|
|
58061
|
+
DialogTransactionHeaderBranchComponent.prototype.handleValueChange = function (value) {
|
|
58062
|
+
this.value = value;
|
|
58063
|
+
};
|
|
58064
|
+
DialogTransactionHeaderBranchComponent.prototype.handleOkClick = function () {
|
|
58065
|
+
this.onClose(AppPopupButtonType.Ok, this.value);
|
|
58066
|
+
};
|
|
58067
|
+
return DialogTransactionHeaderBranchComponent;
|
|
58068
|
+
}(DialogTransactionHeaderBaseComponent));
|
|
58069
|
+
DialogTransactionHeaderBranchComponent.decorators = [
|
|
58070
|
+
{ type: i0.Component, args: [{
|
|
58071
|
+
selector: "co-dialog-transaction-header-branch",
|
|
58072
|
+
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" (closeClick)=\"handleCloseDialog($event, buttonType.Cancel)\">\n <co-transaction-header-branch\n [useModel]=\"useModel\"\n [searchText]=\"searchText\"\n (valueChange)=\"handleValueChange($event)\"\n ></co-transaction-header-branch>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'BRANCH'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button class=\"save-button\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"handleOkClick()\"></co-button>\n <co-button class=\"close-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"handleCloseDialog($event, buttonType.Cancel)\"></co-button>\n </div>\n </ng-template>\n ",
|
|
58073
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
58074
|
+
},] }
|
|
58075
|
+
];
|
|
58076
|
+
DialogTransactionHeaderBranchComponent.propDecorators = {
|
|
58077
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-dialog-transaction-header-branch",] }]
|
|
58078
|
+
};
|
|
58079
|
+
|
|
57937
58080
|
var DialogTransactionHeaderBranchModule = /** @class */ (function () {
|
|
57938
58081
|
function DialogTransactionHeaderBranchModule() {
|
|
57939
58082
|
}
|
|
@@ -57958,6 +58101,29 @@
|
|
|
57958
58101
|
},] }
|
|
57959
58102
|
];
|
|
57960
58103
|
|
|
58104
|
+
var DialogBranchModule = /** @class */ (function () {
|
|
58105
|
+
function DialogBranchModule() {
|
|
58106
|
+
}
|
|
58107
|
+
return DialogBranchModule;
|
|
58108
|
+
}());
|
|
58109
|
+
DialogBranchModule.decorators = [
|
|
58110
|
+
{ type: i0.NgModule, args: [{
|
|
58111
|
+
imports: [
|
|
58112
|
+
common.CommonModule,
|
|
58113
|
+
corecomponents_v12.CoDialogModule,
|
|
58114
|
+
DialogHeaderSearchModule,
|
|
58115
|
+
corecomponents_v12.ButtonModule,
|
|
58116
|
+
TransactionLineCheckboxModule
|
|
58117
|
+
],
|
|
58118
|
+
declarations: [
|
|
58119
|
+
DialogBranchComponent
|
|
58120
|
+
],
|
|
58121
|
+
exports: [
|
|
58122
|
+
DialogBranchComponent
|
|
58123
|
+
]
|
|
58124
|
+
},] }
|
|
58125
|
+
];
|
|
58126
|
+
|
|
57961
58127
|
var TransactionSalesReservationPopupComponent = /** @class */ (function () {
|
|
57962
58128
|
function TransactionSalesReservationPopupComponent(iconCacheService, salesReservationService, _transactionService, _transactionHeaderService) {
|
|
57963
58129
|
this.iconCacheService = iconCacheService;
|
|
@@ -58044,15 +58210,14 @@
|
|
|
58044
58210
|
TransactionButtonModule,
|
|
58045
58211
|
corecomponents_v12.ScreenConfigurationModule,
|
|
58046
58212
|
TransactionServiceOverviewModule,
|
|
58047
|
-
TransactionLinesSidePanelModule,
|
|
58048
58213
|
TransactionCardsModule,
|
|
58049
58214
|
TransactionMarginModule,
|
|
58050
58215
|
ClickBlockModule,
|
|
58051
58216
|
DialogTransactionLineWarehouseCcModule,
|
|
58052
58217
|
DialogTransactionHeaderBranchModule,
|
|
58218
|
+
DialogBranchModule,
|
|
58053
58219
|
TransactionPurchaseReservationOrderTileModule,
|
|
58054
|
-
corecomponents_v12.CoDialogModule
|
|
58055
|
-
corecomponents_v12.ButtonModule,
|
|
58220
|
+
corecomponents_v12.CoDialogModule
|
|
58056
58221
|
],
|
|
58057
58222
|
declarations: [
|
|
58058
58223
|
TransactionInternalComponent,
|
|
@@ -60413,16 +60578,18 @@
|
|
|
60413
60578
|
exports["ɵys"] = TransactionLineWarehouseCcInterbranchComponent;
|
|
60414
60579
|
exports["ɵyt"] = DialogTransactionHeaderBranchModule;
|
|
60415
60580
|
exports["ɵyu"] = DialogTransactionHeaderBranchComponent;
|
|
60416
|
-
exports["ɵyv"] =
|
|
60417
|
-
exports["ɵyw"] =
|
|
60418
|
-
exports["ɵyx"] =
|
|
60419
|
-
exports["ɵyy"] =
|
|
60420
|
-
exports["ɵyz"] =
|
|
60581
|
+
exports["ɵyv"] = DialogBranchModule;
|
|
60582
|
+
exports["ɵyw"] = DialogBranchComponent;
|
|
60583
|
+
exports["ɵyx"] = TransactionInternalComponent;
|
|
60584
|
+
exports["ɵyy"] = TransactionSalesReservationPopupComponent;
|
|
60585
|
+
exports["ɵyz"] = TransactionCashRegisterOrderReceiptDialogModule;
|
|
60421
60586
|
exports["ɵz"] = CharacteristicAnswerModule;
|
|
60422
|
-
exports["ɵza"] =
|
|
60423
|
-
exports["ɵzb"] =
|
|
60424
|
-
exports["ɵzc"] =
|
|
60425
|
-
exports["ɵzd"] =
|
|
60587
|
+
exports["ɵza"] = TransactionCashRegisterOrderReceiptDialogComponent;
|
|
60588
|
+
exports["ɵzb"] = SaveCancelButtonsModule;
|
|
60589
|
+
exports["ɵzc"] = SaveCancelButtonsComponent;
|
|
60590
|
+
exports["ɵzd"] = TransactionTagComponent;
|
|
60591
|
+
exports["ɵze"] = SimpleVerticalStepperModule;
|
|
60592
|
+
exports["ɵzf"] = SimpleVerticalStepperComponent;
|
|
60426
60593
|
|
|
60427
60594
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
60428
60595
|
|