@colijnit/transaction 12.1.192 → 12.1.193

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.
Files changed (16) hide show
  1. package/bundles/colijnit-transaction.umd.js +19 -10
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.metadata.json +1 -1
  4. package/esm2015/lib/component/transaction-line/transaction-planning-line/transaction-planning-line.component.js +6 -1
  5. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.js +2 -2
  6. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-planning/component/transaction-quick-access-planning-popup/transaction-quick-access-planning-popup.component.js +17 -4
  7. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-planning/transaction-quick-access-planning.component.js +2 -2
  8. package/esm2015/lib/service/purchase-confirmation.service.js +3 -3
  9. package/esm2015/lib/transaction-version.js +3 -3
  10. package/fesm2015/colijnit-transaction.js +25 -8
  11. package/fesm2015/colijnit-transaction.js.map +1 -1
  12. package/lib/component/dialog/catalog/dialog-catalog/style/_layout.scss +1 -1
  13. package/lib/component/dialog/catalog/dialog-catalog/style/_material-definition.scss +1 -1
  14. package/lib/component/transaction-line/transaction-planning-line/transaction-planning-line.component.d.ts +1 -0
  15. package/lib/component/transaction-quick-access/transaction-quick-access-planning/component/transaction-quick-access-planning-popup/transaction-quick-access-planning-popup.component.d.ts +7 -3
  16. 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.192";
36
- this.publishDate = "26-2-2024 14:02:57";
35
+ this.symVer = "12.1.193";
36
+ this.publishDate = "28-2-2024 11:04:29";
37
37
  }
38
38
  return Version;
39
39
  }());
@@ -18845,8 +18845,8 @@
18845
18845
  if (analysis.productQuantity !== null && analysis.productQuantity !== undefined) {
18846
18846
  transactionLine.quantityPurchaseToConfirm = analysis.productQuantity;
18847
18847
  }
18848
- if (analysis.orderConfirmationDate) {
18849
- transactionLine.purchasePortalLine.deliveryDateConfirmed = new Date(analysis.orderConfirmationDate).toDateString();
18848
+ if (analysis.deliveryDate) {
18849
+ transactionLine.purchasePortalLine.deliveryDateConfirmed = new Date(analysis.deliveryDate).toDateString();
18850
18850
  }
18851
18851
  if (analysis.supplierProductCode) {
18852
18852
  transactionLine.purchasePortalLine.articleNoSupplier = analysis.supplierProductCode;
@@ -18962,7 +18962,7 @@
18962
18962
  }
18963
18963
  }));
18964
18964
  this.showReconfirmationButton = this.transactionService.purchaseOrderConfirmationCompleted;
18965
- this.purchaseOrderConfirmation.confirmationDate = new Date();
18965
+ // this.purchaseOrderConfirmation.confirmationDate = new Date();
18966
18966
  };
18967
18967
  TransactionQuickAccessOrderConfirmationComponent.prototype.ngOnDestroy = function () {
18968
18968
  this._subs.forEach(function (s) { return s.unsubscribe(); });
@@ -23141,12 +23141,15 @@
23141
23141
  TransactionPlanningLineComponent.prototype.onDescriptionDblClick = function () {
23142
23142
  this.descriptionDblClick.emit();
23143
23143
  };
23144
+ TransactionPlanningLineComponent.prototype.dragStarted = function (ev, line) {
23145
+ ev.dataTransfer.setData("text", "line");
23146
+ };
23144
23147
  return TransactionPlanningLineComponent;
23145
23148
  }(TransactionBaseComponent));
23146
23149
  TransactionPlanningLineComponent.decorators = [
23147
23150
  { type: i0.Component, args: [{
23148
23151
  selector: "co-planning-overview-line",
23149
- template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [checkbox]=\"true\"\n [checkboxValue]=\"transactionLine.selected\"\n (checkboxValueChanged)=\"handleCheckBoxValueChanged($event, transactionLine)\"\n (click)=\"handleLineClicked($event)\"\n observeVisibility #observer=visibilityObserve (visibilityChange)=\"handleVisibilityChange(transactionLine, $event)\">\n <ng-container *ngIf=\"transactionLine.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <co-transaction-line-commission-button\n [screenConfigurationObject]=\"cfgNames.LineCommission\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-commission-button>\n <co-transaction-line-warehouse-button\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-warehouse-button>\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"category.SalesOrderOverview\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column2\">\n <co-transaction-line-delivery-button\n [screenConfigurationObject]=\"cfgNames.LineDeliveryMethod\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-delivery-button>\n <co-transaction-line-delivery-date-button class=\"transaction-line-delivery-date two-column\"\n [screenConfigurationObject]=\"cfgNames.LineDeliveryDate\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n ></co-transaction-line-delivery-date-button>\n </div>\n </div>\n <div class=\"transaction-line-section\">\n <co-transaction-line-vat-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineVat\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-vat-button>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.LinePrice\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <co-transaction-line-discount-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineDiscount\"\n [configNames]=\"discountConfigNames\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-discount-button>\n <div class=\"transaction-line-totals-amount\">\n <co-transaction-line-amount class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineAmount\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-amount>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [screenConfigurationObject]=\"cfgNames.LineNetLineTotal\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [commit]=\"!readonly\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </ng-container>\n </co-transaction-base-line>\n ",
23152
+ template: "\n <co-transaction-base-line\n [draggable]=\"true\"\n (dragstart)=\"dragStarted($event, transactionLine)\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [checkbox]=\"true\"\n [checkboxValue]=\"transactionLine.selected\"\n (checkboxValueChanged)=\"handleCheckBoxValueChanged($event, transactionLine)\"\n (click)=\"handleLineClicked($event)\"\n observeVisibility #observer=visibilityObserve (visibilityChange)=\"handleVisibilityChange(transactionLine, $event)\">\n <ng-container *ngIf=\"transactionLine.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <co-transaction-line-commission-button\n [screenConfigurationObject]=\"cfgNames.LineCommission\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-commission-button>\n <co-transaction-line-warehouse-button\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-warehouse-button>\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"category.SalesOrderOverview\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column2\">\n <co-transaction-line-delivery-button\n [screenConfigurationObject]=\"cfgNames.LineDeliveryMethod\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-delivery-button>\n <co-transaction-line-delivery-date-button class=\"transaction-line-delivery-date two-column\"\n [screenConfigurationObject]=\"cfgNames.LineDeliveryDate\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n ></co-transaction-line-delivery-date-button>\n </div>\n </div>\n <div class=\"transaction-line-section\">\n <co-transaction-line-vat-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineVat\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-vat-button>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.LinePrice\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <co-transaction-line-discount-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineDiscount\"\n [configNames]=\"discountConfigNames\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-discount-button>\n <div class=\"transaction-line-totals-amount\">\n <co-transaction-line-amount class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineAmount\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-amount>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [screenConfigurationObject]=\"cfgNames.LineNetLineTotal\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [commit]=\"!readonly\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </ng-container>\n </co-transaction-base-line>\n ",
23150
23153
  encapsulation: i0.ViewEncapsulation.None
23151
23154
  },] }
23152
23155
  ];
@@ -23226,7 +23229,7 @@
23226
23229
  TransactionQuickAccessPlanningComponent.decorators = [
23227
23230
  { type: i0.Component, args: [{
23228
23231
  selector: "co-transaction-quick-access-planning",
23229
- template: "\n <div class=\"planning-buttons\">\n <span class=\"button\" [class.selected]=\"lspMode\" (click)=\"toggleLspMode()\"><co-icon [iconData]=\"iconCacheService.getIcon(icons.BoxOpenFullRegular)\"></co-icon></span>\n <span class=\"button\" *ngIf=\"lspMode\" (click)=\"togglePopup()\"><co-icon [iconData]=\"iconCacheService.getIcon(icons.RegularBoxOpenCircleCheck)\"></co-icon></span>\n </div>\n\n <co-dialog *ngIf=\"showLspPopup\" [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\"\n [showCloseIcon]=\"true\" (closeClick)=\"togglePopup()\">\n <co-transaction-quick-access-planning-popup [packageLSP]=\"packageLSP\" [deliveryMethods]=\"deliveryMethods\"></co-transaction-quick-access-planning-popup>\n </co-dialog>\n <ng-template #dialogHeader>\n <div class=\"row header\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\"></co-icon>\n <span [textContent]=\"'SEND_TO_LOGISTICS_SERVICE_PROVIDER' | localize\"></span>\n </div>\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)=\"togglePopup()\"></co-button>\n </div>\n </ng-template>\n\n ",
23232
+ template: "\n <div class=\"planning-buttons\">\n <span class=\"button\" [class.selected]=\"lspMode\" (click)=\"toggleLspMode()\"><co-icon [iconData]=\"iconCacheService.getIcon(icons.BoxOpenFullRegular)\"></co-icon></span>\n <span class=\"button\" *ngIf=\"lspMode\" (click)=\"togglePopup()\"><co-icon [iconData]=\"iconCacheService.getIcon(icons.RegularBoxOpenCircleCheck)\"></co-icon></span>\n </div>\n\n <co-dialog *ngIf=\"showLspPopup\" [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\"\n [showCloseIcon]=\"true\" (closeClick)=\"togglePopup()\">\n <co-transaction-quick-access-planning-popup [packageLSP]=\"packageLSP\" [deliveryMethods]=\"deliveryMethods\" (close)=\"showLspPopup = false\"></co-transaction-quick-access-planning-popup>\n </co-dialog>\n <ng-template #dialogHeader>\n <div class=\"row header\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\"></co-icon>\n <span [textContent]=\"'SEND_TO_LOGISTICS_SERVICE_PROVIDER' | localize\"></span>\n </div>\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)=\"togglePopup()\"></co-button>\n </div>\n </ng-template>\n\n ",
23230
23233
  encapsulation: i0.ViewEncapsulation.None
23231
23234
  },] }
23232
23235
  ];
@@ -37795,13 +37798,15 @@
37795
37798
  ];
37796
37799
 
37797
37800
  var TransactionQuickAccessPlanningPopupComponent = /** @class */ (function () {
37798
- function TransactionQuickAccessPlanningPopupComponent(_service, _transactionEventService, _transaction, _transactionService, _iconCacheService) {
37801
+ function TransactionQuickAccessPlanningPopupComponent(_service, _transactionEventService, _transaction, _transactionService, iconCacheService) {
37799
37802
  this._service = _service;
37800
37803
  this._transactionEventService = _transactionEventService;
37801
37804
  this._transaction = _transaction;
37802
37805
  this._transactionService = _transactionService;
37803
- this._iconCacheService = _iconCacheService;
37806
+ this.iconCacheService = iconCacheService;
37807
+ this.icons = Icon;
37804
37808
  this.packageLSP = [];
37809
+ this.close = new i0.EventEmitter();
37805
37810
  }
37806
37811
  TransactionQuickAccessPlanningPopupComponent.prototype.showClass = function () {
37807
37812
  return true;
@@ -37854,12 +37859,15 @@
37854
37859
  TransactionQuickAccessPlanningPopupComponent.prototype.openTrackAndTraceURL = function (packageLsp) {
37855
37860
  window.open(packageLsp.trackAndTraceUrl, "_blank");
37856
37861
  };
37862
+ TransactionQuickAccessPlanningPopupComponent.prototype.closeEvent = function () {
37863
+ this.close.emit();
37864
+ };
37857
37865
  return TransactionQuickAccessPlanningPopupComponent;
37858
37866
  }());
37859
37867
  TransactionQuickAccessPlanningPopupComponent.decorators = [
37860
37868
  { type: i0.Component, args: [{
37861
37869
  selector: "co-transaction-quick-access-planning-popup",
37862
- template: "\n <div class=\"wrapper\">\n <div class=\"delivery-method-wrapper\" *ngIf=\"!packageLSP\">\n <span [textContent]=\"'LOGISTICS_SERVICE_PROVIDER_CHOICE' | localize\"></span>\n <div class=\"methods-wrapper\">\n <div class=\"method\" [class.selected]=\"selectedDeliveryMethod === method\"\n (click)=\"deliveryMethodChange(method)\"\n *ngFor=\"let method of deliveryMethods\">\n <div class=\"radio-wrapper\">\n <co-input-radio-button (click)=\"deliveryMethodChange(method)\" [model]=\"selectedDeliveryMethod === method\"\n ></co-input-radio-button>\n </div>\n <div class=\"body-wrapper\">\n <co-image\n [source]=\"method.image?.documentBody\"></co-image>\n <span class=\"body-text\" [textContent]=\"method.description\"></span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"header-info-wrapper\">\n <div class=\"block\">\n <span class=\"header\" [textContent]=\"'LINES_AMOUNT' | localize\"></span>\n <span class=\"text\" [textContent]=\"selectedLines?.length\"></span>\n </div>\n\n <div class=\"block\">\n <span class=\"header\" [textContent]=\"'ARTICLE_AMOUNT' | localize\"></span>\n <span class=\"text\" [textContent]=\"'?'\"></span>\n </div>\n\n <div class=\"block\">\n <span class=\"header\" [textContent]=\"'TOTAL_WEIGHT' | localize\"></span>\n <span class=\"text\" [textContent]=\"'?'\"></span>\n </div>\n\n <div class=\"block\">\n <span class=\"header\" [textContent]=\"'PACKAGE_CODE2' | localize\"></span>\n <span class=\"text\" [textContent]=\"'?'\"></span>\n </div>\n </div>\n\n <div class=\"send-button-wrapper\" *ngIf=\"!packageLSP\">\n <co-button (click)=\"createTrackAndTrace()\" [label]=\"'SEND' | localize\"></co-button>\n </div>\n\n <div class=\"track-and-trace-wrapper\" *ngIf=\"packageLSP\">\n <span class=\"track-and-trace-header\" [textContent]=\"'INFORMATION_LOGISTIC_SERVICE_PROVIDER' | localize\"></span>\n <div class=\"track-and-trace-body-wrapper\" *ngFor=\"let packageLsp of packageLSP\">\n <div class=\"code-wrapper\">\n <span [textContent]=\"'TRACK_AND_TRACE' | localize\"></span>\n <span [textContent]=\"packageLsp ? packageLsp.trackAndTraceCode : '--'\"></span>\n </div>\n <a (click)=\"openTrackAndTraceURL(packageLsp)\"\n [textContent]=\"packageLsp ? packageLsp.trackAndTraceUrl : '--'\"></a>\n </div>\n </div>\n </div>\n\n ",
37870
+ template: "\n <div class=\"wrapper\">\n <div class=\"delivery-method-wrapper\" *ngIf=\"!packageLSP\">\n <span [textContent]=\"'LOGISTICS_SERVICE_PROVIDER_CHOICE' | localize\"></span>\n <div class=\"methods-wrapper\">\n <div class=\"method\" [class.selected]=\"selectedDeliveryMethod === method\"\n (click)=\"deliveryMethodChange(method)\"\n *ngFor=\"let method of deliveryMethods\">\n <div class=\"radio-wrapper\">\n <co-input-radio-button (click)=\"deliveryMethodChange(method)\" [model]=\"selectedDeliveryMethod === method\"\n ></co-input-radio-button>\n </div>\n <div class=\"body-wrapper\">\n <co-image\n [source]=\"method.image?.documentBody\"></co-image>\n <span class=\"body-text\" [textContent]=\"method.description\"></span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"header-info-wrapper\">\n <div class=\"block\">\n <span class=\"header\" [textContent]=\"'LINES_AMOUNT' | localize\"></span>\n <span class=\"text\" [textContent]=\"selectedLines?.length\"></span>\n </div>\n\n <div class=\"block\">\n <span class=\"header\" [textContent]=\"'ARTICLE_AMOUNT' | localize\"></span>\n <span class=\"text\" [textContent]=\"'?'\"></span>\n </div>\n\n <div class=\"block\">\n <span class=\"header\" [textContent]=\"'TOTAL_WEIGHT' | localize\"></span>\n <span class=\"text\" [textContent]=\"'?'\"></span>\n </div>\n\n <div class=\"block\">\n <span class=\"header\" [textContent]=\"'PACKAGE_CODE2' | localize\"></span>\n <span class=\"text\" [textContent]=\"'?'\"></span>\n </div>\n </div>\n\n <div class=\"send-button-wrapper\" *ngIf=\"!packageLSP\">\n <co-button (click)=\"createTrackAndTrace()\" [label]=\"'SEND' | localize\"></co-button>\n <co-button class=\"save-button\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"createTrackAndTrace()\"></co-button>\n <co-button class=\"close-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"closeEvent()\"></co-button>\n </div>\n\n <div class=\"track-and-trace-wrapper\" *ngIf=\"packageLSP\">\n <span class=\"track-and-trace-header\" [textContent]=\"'INFORMATION_LOGISTIC_SERVICE_PROVIDER' | localize\"></span>\n <div class=\"track-and-trace-body-wrapper\" *ngFor=\"let packageLsp of packageLSP\">\n <div class=\"code-wrapper\">\n <span [textContent]=\"'TRACK_AND_TRACE' | localize\"></span>\n <span [textContent]=\"packageLsp ? packageLsp.trackAndTraceCode : '--'\"></span>\n </div>\n <a (click)=\"openTrackAndTraceURL(packageLsp)\"\n [textContent]=\"packageLsp ? packageLsp.trackAndTraceUrl : '--'\"></a>\n </div>\n </div>\n </div>\n\n ",
37863
37871
  encapsulation: i0.ViewEncapsulation.None
37864
37872
  },] }
37865
37873
  ];
@@ -37873,6 +37881,7 @@
37873
37881
  TransactionQuickAccessPlanningPopupComponent.propDecorators = {
37874
37882
  packageLSP: [{ type: i0.Input }],
37875
37883
  deliveryMethods: [{ type: i0.Input }],
37884
+ close: [{ type: i0.Output }],
37876
37885
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-quick-access-planning-popup",] }]
37877
37886
  };
37878
37887