@colijnit/transaction 12.1.132 → 12.1.133

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.
@@ -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.132";
36
- this.publishDate = "18-7-2023 17:09:39";
35
+ this.symVer = "12.1.133";
36
+ this.publishDate = "20-7-2023 17:40:35";
37
37
  }
38
38
  return Version;
39
39
  }());
@@ -28347,13 +28347,16 @@
28347
28347
  ];
28348
28348
 
28349
28349
  var DialogCatalogComponent = /** @class */ (function () {
28350
- function DialogCatalogComponent(_transactionService, _catalogService, _catalogEventService) {
28350
+ function DialogCatalogComponent(_transactionService, _catalogService, _catalogEventService, iconCacheService) {
28351
28351
  this._transactionService = _transactionService;
28352
28352
  this._catalogService = _catalogService;
28353
28353
  this._catalogEventService = _catalogEventService;
28354
+ this.iconCacheService = iconCacheService;
28355
+ this.icons = Icon;
28354
28356
  this.showNavigation = true;
28355
28357
  this.closeClick = new i0.EventEmitter();
28356
28358
  this.articleClicked = new i0.EventEmitter();
28359
+ this.showExternalCatalog = false;
28357
28360
  this.showStock = false;
28358
28361
  this._subs = [];
28359
28362
  }
@@ -28394,12 +28397,24 @@
28394
28397
  this.showStock = !this.showStock;
28395
28398
  this.articleForStock = undefined;
28396
28399
  };
28400
+ DialogCatalogComponent.prototype.handleExternalSourceClick = function (source) {
28401
+ if (source) {
28402
+ this.externalSource = source.externalSource;
28403
+ this.showExternalCatalog = true;
28404
+ }
28405
+ else {
28406
+ this.showExternalCatalog = false;
28407
+ }
28408
+ };
28409
+ DialogCatalogComponent.prototype.handleBackClick = function (event) {
28410
+ this.showExternalCatalog = false;
28411
+ };
28397
28412
  return DialogCatalogComponent;
28398
28413
  }());
28399
28414
  DialogCatalogComponent.decorators = [
28400
28415
  { type: i0.Component, args: [{
28401
28416
  selector: "co-dialog-catalog",
28402
- template: "\n <co-dialog (closeClick)=\"closeClick.emit($event)\">\n <co-catalog-search (onArticleClick)=\"articleClicked.emit($event)\">\n </co-catalog-search>\n </co-dialog>\n\n <co-dialog *ngIf=\"articleForStock && showStock\" (closeClick)=\"cancelStockButtonClick()\">\n <co-stock [article]=\"articleForStock\" (cancelButtonClicked)=\"cancelStockButtonClick()\">\n </co-stock>\n </co-dialog>\n ",
28417
+ template: "\n <co-dialog (closeClick)=\"closeClick.emit($event)\">\n <co-icon *ngIf=\"showExternalCatalog\" [iconData]=\"iconCacheService.getIcon(icons.ArrowPointLeft)\" (click)=\"handleBackClick($event)\"></co-icon>\n <ng-container *ngIf=\"!showExternalCatalog\">\n <co-catalog-search\n [title]=\"'CATALOG' | localize\"\n [subTitle]=\"'SEARCH_BY_ARTICLENUMBER_NAME_OR_DESCRIPTION' | localize\"\n [searchPlaceholder]=\"'SEARCH_BY_ARTICLENUMBER_OR_DESCRIPTION' | localize\"\n [showNavigation]=\"true\"\n [settings]=\"catalogSettings\"\n (onExternalSourceClick)=\"handleExternalSourceClick($event)\"\n (onArticleClick)=\"articleClicked.emit($event)\">\n </co-catalog-search>\n </ng-container>\n <ng-container *ngIf=\"showExternalCatalog\">\n <co-catalog-external-source\n [externalSource]=\"externalSource\"\n [title]=\"'CATALOG' | localize | append: ' ' | append: externalCatalogName\"\n [subTitle]=\"'SEARCH_BY_ARTICLENUMBER_NAME_OR_DESCRIPTION' | localize\"\n [searchPlaceholder]=\"'SEARCH_BY_ARTICLENUMBER_OR_DESCRIPTION' | localize\"\n [name]=\"externalCatalogName\"\n [showNavigation]=\"false\"\n (articleClick)=\"articleClicked.emit($event)\"\n ></co-catalog-external-source>\n </ng-container>\n </co-dialog>\n <co-dialog *ngIf=\"articleForStock && showStock\" (closeClick)=\"cancelStockButtonClick()\">\n <co-stock [article]=\"articleForStock\" (cancelButtonClicked)=\"cancelStockButtonClick()\">\n </co-stock>\n </co-dialog>\n ",
28403
28418
  providers: [
28404
28419
  catalog.CatalogService
28405
28420
  ],
@@ -28409,7 +28424,8 @@
28409
28424
  DialogCatalogComponent.ctorParameters = function () { return [
28410
28425
  { type: TransactionService },
28411
28426
  { type: catalog.CatalogService },
28412
- { type: catalog.CatalogEventService }
28427
+ { type: catalog.CatalogEventService },
28428
+ { type: IconCacheService }
28413
28429
  ]; };
28414
28430
  DialogCatalogComponent.propDecorators = {
28415
28431
  options: [{ type: i0.Input }],
@@ -28430,8 +28446,11 @@
28430
28446
  imports: [
28431
28447
  common.CommonModule,
28432
28448
  corecomponents_v12.CoDialogModule,
28433
- catalog.CatalogSearchModule,
28434
- i4.StockModule
28449
+ catalog.CatalogSearchModule.ForRoot(),
28450
+ i4.StockModule,
28451
+ PipeModule,
28452
+ catalog.CatalogExternalSourceModule,
28453
+ corecomponents_v12.IconModule
28435
28454
  ],
28436
28455
  declarations: [
28437
28456
  DialogCatalogComponent