@colijnit/sharedcomponents 1.0.52 → 1.0.54

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 (41) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +45 -16
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.metadata.json +1 -1
  4. package/esm2015/lib/components/key-pad/key-pad.component.js +8 -1
  5. package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.js +25 -3
  6. package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.js +4 -2
  7. package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.js +13 -2
  8. package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +12 -10
  9. package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +18 -7
  10. package/esm2015/lib/components/simple-tags/simple-tags.component.js +11 -13
  11. package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +9 -9
  12. package/esm2015/lib/components/stock/stock.component.js +12 -7
  13. package/esm2015/lib/enum/icon.enum.js +2 -1
  14. package/esm2015/lib/model/icon-svg.js +2 -1
  15. package/fesm2015/colijnit-sharedcomponents.js +102 -45
  16. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  17. package/lib/components/key-pad/key-pad.component.d.ts +2 -0
  18. package/lib/components/key-pad/style/_layout.scss +1 -0
  19. package/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.d.ts +6 -0
  20. package/lib/components/send-method-dialog/components/layout-selection/style/_layout.scss +10 -0
  21. package/lib/components/send-method-dialog/components/layout-selection/style/_material-definition.scss +6 -6
  22. package/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.d.ts +1 -0
  23. package/lib/components/send-method-dialog/components/printer-selection/style/_layout.scss +10 -0
  24. package/lib/components/send-method-dialog/components/printer-selection/style/_material-definition.scss +6 -8
  25. package/lib/components/send-method-dialog/components/send-method-printer/style/_layout.scss +5 -0
  26. package/lib/components/send-method-dialog/components/send-method-printer/style/_material-definition.scss +1 -1
  27. package/lib/components/send-method-dialog/components/signature-button/style/_material-definition.scss +5 -5
  28. package/lib/components/send-method-dialog/style/_layout.scss +104 -1
  29. package/lib/components/send-method-dialog/style/_material-definition.scss +25 -7
  30. package/lib/components/simple-tags/style/_layout.scss +79 -39
  31. package/lib/components/simple-tags/style/_material-definition.scss +24 -4
  32. package/lib/enum/icon.enum.d.ts +1 -0
  33. package/lib/style/_variables.scss +1 -1
  34. package/package.json +1 -1
  35. package/3rdpartylicenses.txt +0 -1160
  36. package/favicon.ico +0 -0
  37. package/index.html +0 -12
  38. package/main.170a4a55a0e938c9ae69.js +0 -1
  39. package/polyfills.907fe9d1887c5de17993.js +0 -1
  40. package/runtime.8aac21847ed3d3829cca.js +0 -1
  41. package/styles.2a9423c42b08c088cadb.css +0 -1
@@ -1177,6 +1177,7 @@ class StockComponent {
1177
1177
  set article(articleOrGoodId) {
1178
1178
  if (articleOrGoodId instanceof ArticleExtended) {
1179
1179
  this.articleExtended = articleOrGoodId;
1180
+ this._goodId = articleOrGoodId.goodId;
1180
1181
  }
1181
1182
  else if (typeof articleOrGoodId === "number") {
1182
1183
  this._goodId = articleOrGoodId;
@@ -1187,6 +1188,8 @@ class StockComponent {
1187
1188
  return true;
1188
1189
  }
1189
1190
  ngOnDestroy() {
1191
+ this.articleExtended = undefined;
1192
+ this.articleFlat = undefined;
1190
1193
  this._subscriptions.forEach(subscription => subscription.unsubscribe());
1191
1194
  }
1192
1195
  ngOnInit() {
@@ -1247,13 +1250,15 @@ class StockComponent {
1247
1250
  }
1248
1251
  loadData() {
1249
1252
  if (this.loaded) {
1250
- let request = new ArticleExtendedRequest();
1251
- request.goodId = this._goodId;
1252
- this._stockService.searchArticles(request).then((articleExtended) => {
1253
- this.articleExtended = articleExtended[0];
1254
- this._stockService.getArticleFlat(articleExtended[0].articleNumber).then(result => {
1255
- this.articleFlat = result;
1253
+ if (this._goodId && !this.articleExtended) {
1254
+ let request = new ArticleExtendedRequest();
1255
+ request.goodId = this._goodId;
1256
+ this._stockService.searchArticles(request).then((articleExtended) => {
1257
+ this.articleExtended = articleExtended[0];
1256
1258
  });
1259
+ }
1260
+ this._stockService.getArticleFlat(this.articleExtended.articleNumber).then(result => {
1261
+ this.articleFlat = result;
1257
1262
  });
1258
1263
  this.getArtStockStatus();
1259
1264
  this.getStockManagementWarehouses();
@@ -1379,6 +1384,7 @@ const IconSvg = {
1379
1384
  "bring_forward_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"#183153\" d=\"M224 464H448C456.8 464 464 456.8 464 448V224C464 215.2 456.8 208 448 208H384V160H448C483.3 160 512 188.7 512 224V448C512 483.3 483.3 512 448 512H224C188.7 512 160 483.3 160 448V384H208V448C208 456.8 215.2 464 224 464zM64 352C28.65 352 0 323.3 0 288V64C0 28.65 28.65 0 64 0H288C323.3 0 352 28.65 352 64V288C352 323.3 323.3 352 288 352H64z\"/></svg>",
1380
1385
  "check_duotone": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><defs><style>.fa-secondary{opacity:.4}</style></defs><path class=\"fa-primary\" d=\"M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z\"/></svg>",
1381
1386
  "check_round": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M25,10A15,15,0,1,0,40,25,15,15,0,0,0,25,10ZM23,34l-6.24-9.09,2.81-3.59L23,26.45,27.66,16h5.58Z\" fill=\"#484f60\"/></svg>",
1387
+ "cross_skinny": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><polygon points=\"25.35 5.52 24.65 4.81 15 14.46 5.35 4.81 4.65 5.52 14.29 15.17 4.65 24.81 5.35 25.52 15 15.87 24.65 25.52 25.35 24.81 15.71 15.17 25.35 5.52\" fill=\"#484f60\"/></g></svg>",
1382
1388
  "delete_left_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z\"/></svg>",
1383
1389
  "delivery_truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"15.35\" y=\"16.56\" width=\"15.14\" height=\"10.94\" transform=\"translate(-1.83 2.08) rotate(-5)\" fill=\"#484f60\"/><path d=\"M38.5,18.1l-6.9.61L32.41,28l-7.63.67a3.76,3.76,0,0,1,1.43,2.25l7.25-.63A3.83,3.83,0,0,1,41,29.6l1-.1-.52-6Zm.29,5.84-3.91.34a.51.51,0,0,1-.55-.46L34,20.1a.49.49,0,0,1,.45-.54l2.27-.2a.5.5,0,0,1,.48.25l2,3.59A.5.5,0,0,1,38.79,23.94Z\" fill=\"#484f60\"/><path d=\"M19.66,29.09a3.8,3.8,0,0,0-1,2.46l-.74.07-1.82-.94L16,29.41Z\" fill=\"#484f60\"/><path d=\"M34.56,30.62a2.74,2.74,0,1,0,2.49-3A2.73,2.73,0,0,0,34.56,30.62Z\" fill=\"#484f60\"/><path d=\"M19.74,31.91a2.74,2.74,0,1,0,2.49-3A2.74,2.74,0,0,0,19.74,31.91Z\" fill=\"#484f60\"/><rect x=\"7.96\" y=\"17.63\" width=\"5\" height=\"1\" transform=\"translate(-1.54 0.98) rotate(-5)\" fill=\"#484f60\"/><rect x=\"11.02\" y=\"29.71\" width=\"3\" height=\"1\" transform=\"translate(-2.59 1.21) rotate(-5)\" fill=\"#484f60\"/><rect x=\"9.48\" y=\"23.53\" width=\"4\" height=\"1\" transform=\"matrix(1, -0.09, 0.09, 1, -2.05, 1.09)\" fill=\"#484f60\"/></svg>",
1384
1390
  "email": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.79,38.45A17.82,17.82,0,0,1,23.86,40,13.09,13.09,0,0,1,10.41,26.42C10.41,17.63,16.83,10,26.53,10c7.63,0,13.06,5.21,13.06,12.46,0,6.33-3.53,10.3-8.19,10.3a3.42,3.42,0,0,1-3.71-3.32h-.08A6.5,6.5,0,0,1,22,32.76c-2.75,0-4.82-2.11-4.82-5.65a9.85,9.85,0,0,1,10.13-10,12.89,12.89,0,0,1,5.13,1l-1.3,8c-.43,2.54-.13,3.71,1.08,3.75,1.85.09,4.18-2.28,4.18-7.28,0-5.65-3.62-10-10.3-10S13.73,17.76,13.73,26c0,7.25,4.57,11.3,11,11.3A14.81,14.81,0,0,0,31,36ZM28,20.65a5.34,5.34,0,0,0-1.33-.18c-2.85,0-5.09,2.81-5.09,6.12,0,1.64.73,2.68,2.16,2.68,1.59,0,3.27-2,3.66-4.53Z\" fill=\"#484f60\"/></svg>",
@@ -1462,6 +1468,7 @@ var Icon;
1462
1468
  Icon["BringForwardRegular"] = "bring_forward_regular";
1463
1469
  Icon["CheckDuotone"] = "check_duotone";
1464
1470
  Icon["CheckRound"] = "check_round";
1471
+ Icon["CrossSkinny"] = "cross_skinny";
1465
1472
  Icon["DeleteLeftRegular"] = "delete_left_regular";
1466
1473
  Icon["DeliveryTruck"] = "delivery_truck";
1467
1474
  Icon["Email"] = "email";
@@ -2321,17 +2328,23 @@ SendMethodDialogComponent.decorators = [
2321
2328
  <co-dialog id="sendOptionsDialog" [headerTemplate]="headerTemplate" [footerTemplate]="footerTemplate"
2322
2329
  (closeClick)="closeClick.emit($event)">
2323
2330
  <ng-template #headerTemplate>
2324
- <div class="co-dialog-header-title" [textContent]="headerTitle"></div>
2325
- </ng-template>
2326
- <div class="dialog-content-wrapper">
2327
- <div class="send-methods-wrapper">
2331
+ <div class="co-dialog-header-title-wrapper">
2332
+ <co-icon [iconData]="iconCacheService.getIcon(icons.EnvelopeRegular)"></co-icon>
2333
+ <div class="co-dialog-header-title" [textContent]="headerTitle"></div>
2334
+ </div>
2335
+ <div class="dialog-navigation-wrapper">
2328
2336
  <div class="send-button-wrapper" *ngFor="let sendMethod of sendMethods; let index = index"
2329
2337
  [class.selected]="activeSendMethod ? sendMethod.code === activeSendMethod.code : index === 0"
2330
2338
  (click)="handleSendMethodClick(sendMethod)">
2331
- <co-icon class="custom-button-icon" [iconData]="iconCacheService.getIcon(sendMethod.icon)"></co-icon>
2332
2339
  <div class="custom-button-title" [textContent]="sendMethod.description"></div>
2333
2340
  </div>
2334
2341
  </div>
2342
+ </ng-template>
2343
+
2344
+ <div class="dialog-content-wrapper">
2345
+ <div class="send-methods-wrapper">
2346
+
2347
+ </div>
2335
2348
  <div #navigationItems class="send-method-navigation-wrapper" [class.smooth-scrolling]="!startUp">
2336
2349
  <div #faxItems class="send-method-navigation-content co-small-scrollbar">
2337
2350
 
@@ -2364,7 +2377,12 @@ SendMethodDialogComponent.decorators = [
2364
2377
  </div>
2365
2378
  <ng-template #footerTemplate>
2366
2379
  <div class="co-dialog-footer-button-wrapper">
2367
- <co-button [label]="'Ok'" (click)="okClick.emit(activeSendMethod ? activeSendMethod.code : '0')"></co-button>
2380
+ <co-button class="save-button"
2381
+ [iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
2382
+ (click)="okClick.emit(activeSendMethod ? activeSendMethod.code : '0')"></co-button>
2383
+ <co-button class="close-button"
2384
+ [iconData]="iconCacheService.getIcon(icons.CrossSkinny)"
2385
+ (click)="closeClick.emit($event)"></co-button>
2368
2386
  </div>
2369
2387
  </ng-template>
2370
2388
  </co-dialog>
@@ -2484,7 +2502,9 @@ SendMethodEmailComponent.propDecorators = {
2484
2502
  };
2485
2503
 
2486
2504
  class LayoutSelectionComponent {
2487
- constructor() {
2505
+ constructor(iconCacheService) {
2506
+ this.iconCacheService = iconCacheService;
2507
+ this.icons = Icon;
2488
2508
  this.layouts = [];
2489
2509
  this.requestChange = new EventEmitter();
2490
2510
  this.showLayoutList = false;
@@ -2495,6 +2515,9 @@ class LayoutSelectionComponent {
2495
2515
  ngOnInit() {
2496
2516
  if (this.layouts && this.layouts.length > 0) {
2497
2517
  this.currentLayout = this.layouts.find(l => l.reportId === this.request.reportId);
2518
+ if (!this.currentLayout) {
2519
+ this.currentLayout = this.layouts[0];
2520
+ }
2498
2521
  }
2499
2522
  }
2500
2523
  handleSelectLayout(reportLayout) {
@@ -2503,6 +2526,9 @@ class LayoutSelectionComponent {
2503
2526
  this.requestChange.emit(this.request);
2504
2527
  this.showLayoutList = false;
2505
2528
  }
2529
+ closeSelectLayout() {
2530
+ this.showLayoutList = false;
2531
+ }
2506
2532
  }
2507
2533
  LayoutSelectionComponent.decorators = [
2508
2534
  { type: Component, args: [{
@@ -2513,6 +2539,15 @@ LayoutSelectionComponent.decorators = [
2513
2539
  <div class="layout-description" [textContent]="currentLayout?.description || 'Layout kiezen'"></div>
2514
2540
  </div>
2515
2541
  <div class="layouts-wrapper co-small-scrollbar" *ngIf="showLayoutList" @showHideLayouts>
2542
+ <div class="layouts-wrapper-header">
2543
+ <div class="title" [textContent]="'Lay-out'"></div>
2544
+ <div class="close-layouts">
2545
+ <div class="dialog-close-button" (click)="closeSelectLayout()">
2546
+ <co-icon [iconData]="iconCacheService.getIcon(icons.XSolid)"></co-icon>
2547
+ </div>
2548
+ </div>
2549
+ </div>
2550
+
2516
2551
  <div class="layout-selection-wrapper" *ngFor="let reportLayout of layouts"
2517
2552
  [class.selected]="reportLayout.reportId === currentLayout?.reportId"
2518
2553
  (click)="handleSelectLayout(reportLayout)">
@@ -2523,7 +2558,7 @@ LayoutSelectionComponent.decorators = [
2523
2558
  animations: [
2524
2559
  trigger("showHideLayouts", [
2525
2560
  state("void", style({ height: 0 })),
2526
- state("*", style({ height: "50%" })),
2561
+ state("*", style({ height: "100%" })),
2527
2562
  transition("void => *", animate("200ms ease-in-out")),
2528
2563
  transition("* => void", animate("200ms ease-out"))
2529
2564
  ])
@@ -2531,6 +2566,9 @@ LayoutSelectionComponent.decorators = [
2531
2566
  encapsulation: ViewEncapsulation.None
2532
2567
  },] }
2533
2568
  ];
2569
+ LayoutSelectionComponent.ctorParameters = () => [
2570
+ { type: IconCacheService }
2571
+ ];
2534
2572
  LayoutSelectionComponent.propDecorators = {
2535
2573
  request: [{ type: Input }],
2536
2574
  layouts: [{ type: Input }],
@@ -2543,7 +2581,8 @@ class LayoutSelectionModule {
2543
2581
  LayoutSelectionModule.decorators = [
2544
2582
  { type: NgModule, args: [{
2545
2583
  imports: [
2546
- CommonModule
2584
+ CommonModule,
2585
+ IconModule
2547
2586
  ],
2548
2587
  declarations: [
2549
2588
  LayoutSelectionComponent
@@ -2648,15 +2687,17 @@ SendMethodPrinterComponent.decorators = [
2648
2687
  { type: Component, args: [{
2649
2688
  selector: 'co-send-method-printer',
2650
2689
  template: `
2651
- <co-printer-selection [printers]="printerList"></co-printer-selection>
2652
- <div class="layout-signature-wrapper">
2653
- <co-layout-selection
2654
- [(request)]="sendMethodService.reportingDocumentPrintSignDocBaseRequest"
2655
- [layouts]="layouts"
2656
- ></co-layout-selection>
2657
- <co-signature-button
2658
- [request]="sendMethodService.reportingDocumentPrintSignDocBaseRequest"
2659
- ></co-signature-button>
2690
+ <div class="printer-layout-selections-wrapper">
2691
+ <co-printer-selection [printers]="printerList"></co-printer-selection>
2692
+ <div class="layout-signature-wrapper">
2693
+ <co-layout-selection
2694
+ [(request)]="sendMethodService.reportingDocumentPrintSignDocBaseRequest"
2695
+ [layouts]="layouts"
2696
+ ></co-layout-selection>
2697
+ <co-signature-button
2698
+ [request]="sendMethodService.reportingDocumentPrintSignDocBaseRequest"
2699
+ ></co-signature-button>
2700
+ </div>
2660
2701
  </div>
2661
2702
  <co-input-checkbox
2662
2703
  [model]="sendMethodService.reportingDocumentPrintSignDocBaseRequest.saveDefaultPrinterForUser"
@@ -2707,6 +2748,9 @@ class PrinterSelectionComponent {
2707
2748
  this.sendMethodService.reportingDocumentPrintSignDocBaseRequestChanged.next(this.sendMethodService.reportingDocumentPrintSignDocBaseRequest);
2708
2749
  this.showPrinterList = false;
2709
2750
  }
2751
+ closePrinterClicked() {
2752
+ this.showPrinterList = false;
2753
+ }
2710
2754
  }
2711
2755
  PrinterSelectionComponent.decorators = [
2712
2756
  { type: Component, args: [{
@@ -2717,6 +2761,14 @@ PrinterSelectionComponent.decorators = [
2717
2761
  <div class="printer-name" [textContent]="sendMethodService.reportingDocumentPrintSignDocBaseRequest.printerName || 'Printer kiezen'"></div>
2718
2762
  </div>
2719
2763
  <div class="layouts-wrapper co-small-scrollbar" *ngIf="showPrinterList" @showHideLayouts>
2764
+ <div class="layouts-wrapper-header">
2765
+ <div class="title" [textContent]="'Printer'"></div>
2766
+ <div class="close-layouts">
2767
+ <div class="dialog-close-button" (click)="closePrinterClicked()">
2768
+ <co-icon [iconData]="iconService.getIcon(icons.XSolid)"></co-icon>
2769
+ </div>
2770
+ </div>
2771
+ </div>
2720
2772
  <div class="printer-list-item" *ngFor="let printer of printers"
2721
2773
  [class.selected]="sendMethodService.reportingDocumentPrintSignDocBaseRequest.printerName === printer.name"
2722
2774
  (click)="handlePrinterClicked(printer)">
@@ -2731,7 +2783,7 @@ PrinterSelectionComponent.decorators = [
2731
2783
  animations: [
2732
2784
  trigger('showHideLayouts', [
2733
2785
  state('void', style({ height: 0 })),
2734
- state('*', style({ height: '50%' })),
2786
+ state('*', style({ height: '100%' })),
2735
2787
  transition('void => *', animate('200ms ease-in-out')),
2736
2788
  transition('* => void', animate('200ms ease-out'))
2737
2789
  ])
@@ -3398,6 +3450,14 @@ StockLocationComponent.decorators = [
3398
3450
  (keydown.enter)="onOkClickSendLocations()"
3399
3451
 
3400
3452
  >
3453
+ <co-simple-grid-column [headerText]="'STOCK' | localize" [field]="'amountInStock'">
3454
+ <ng-template #editTemplate let-row="row">
3455
+ <co-input-text [(model)]="row['amountInStock']"
3456
+ [label]="'STOCK' | localize"
3457
+ (modelChange)="amountInStockChanged($event)"
3458
+ ></co-input-text>
3459
+ </ng-template>
3460
+ </co-simple-grid-column>
3401
3461
  <co-simple-grid-column *ngIf="articleFlat?.locationRegistered" [headerText]="'LOCATION' | localize" [field]="'locationNo'">
3402
3462
  <ng-template #editTemplate let-row="row">
3403
3463
  <co-list-of-values
@@ -3427,14 +3487,6 @@ StockLocationComponent.decorators = [
3427
3487
  ></co-input-text>
3428
3488
  </ng-template>
3429
3489
  </co-simple-grid-column>
3430
- <co-simple-grid-column [headerText]="'STOCK' | localize" [field]="'amountInStock'">
3431
- <ng-template #editTemplate let-row="row">
3432
- <co-input-text [(model)]="row['amountInStock']"
3433
- [label]="'STOCK' | localize"
3434
- (modelChange)="amountInStockChanged($event)"
3435
- ></co-input-text>
3436
- </ng-template>
3437
- </co-simple-grid-column>
3438
3490
  <co-simple-grid-column [headerText]="'ALLOCATED' | localize" [field]="'stockAssigned'">
3439
3491
  <ng-template #editTemplate let-row="row">
3440
3492
  <span [textContent]="row['stockAssigned']"></span>
@@ -4369,6 +4421,7 @@ class KeyPadComponent {
4369
4421
  this.iconCacheService = iconCacheService;
4370
4422
  this.icons = Icon;
4371
4423
  this.showValue = true;
4424
+ this.resetModelOnInit = true;
4372
4425
  this.emitModelChangeOnEnter = true;
4373
4426
  this.modelChange = new EventEmitter();
4374
4427
  this.internalModelChange = new EventEmitter();
@@ -4397,6 +4450,7 @@ class KeyPadComponent {
4397
4450
  [KeyboardCode.NumpadDecimal, "."],
4398
4451
  [KeyboardCode.Period, "."]
4399
4452
  ]);
4453
+ this._init = true;
4400
4454
  this.isNegative = false;
4401
4455
  this._model = 0;
4402
4456
  this._internalModel = "0";
@@ -4457,6 +4511,10 @@ class KeyPadComponent {
4457
4511
  this.enterClick.emit();
4458
4512
  }
4459
4513
  _updateModel(value) {
4514
+ if (this.resetModelOnInit && this._init) {
4515
+ this._internalModel = "0";
4516
+ this._init = false;
4517
+ }
4460
4518
  if (value === undefined || value === null ||
4461
4519
  (value === '.' && this.internalModel.indexOf('.') > -1) ||
4462
4520
  this.internalModel.length >= this._maxCharacters) {
@@ -4545,6 +4603,7 @@ KeyPadComponent.ctorParameters = () => [
4545
4603
  KeyPadComponent.propDecorators = {
4546
4604
  model: [{ type: Input }],
4547
4605
  showValue: [{ type: Input }],
4606
+ resetModelOnInit: [{ type: Input }],
4548
4607
  emitModelChangeOnEnter: [{ type: Input }],
4549
4608
  modelChange: [{ type: Output }],
4550
4609
  internalModelChange: [{ type: Output }],
@@ -6684,7 +6743,7 @@ SimpleTagsComponent.decorators = [
6684
6743
  </ng-template>
6685
6744
 
6686
6745
  <div class="dialog-content-wrapper">
6687
- <div class="collection-navigation">
6746
+ <div class="collection-navigation co-small-scrollbar">
6688
6747
  <span class="title" [textContent]="'Beschikbare tags'"></span>
6689
6748
  <co-input-search
6690
6749
  [(model)]="searchString"
@@ -6764,17 +6823,15 @@ SimpleTagsComponent.decorators = [
6764
6823
 
6765
6824
  <ng-template #footerTemplate>
6766
6825
  <div class="co-dialog-footer-button-wrapper">
6767
- <div class="commit-button-wrapper">
6768
- <co-button
6769
- [iconData]="iconCacheService.getIcon(icon.CheckDuotone)"
6770
- (click)="handleSaveTags()"
6771
- ></co-button>
6772
- <co-button
6773
- class="cancel-button"
6774
- [iconData]="iconCacheService.getIcon(icon.XSolid)"
6775
- (click)="closeClick.next()"
6776
- ></co-button>
6777
- </div>
6826
+ <co-button class="save-button"
6827
+ [iconData]="iconCacheService.getIcon(icon.CheckDuotone)"
6828
+ (click)="handleSaveTags()"
6829
+ ></co-button>
6830
+ <co-button
6831
+ class="close-button"
6832
+ [iconData]="iconCacheService.getIcon(icon.CrossSkinny)"
6833
+ (click)="closeClick.next()"
6834
+ ></co-button>
6778
6835
  </div>
6779
6836
  </ng-template>
6780
6837
  </co-dialog>