@colijnit/sharedcomponents 1.0.44 → 1.0.46

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 (93) hide show
  1. package/3rdpartylicenses.txt +1112 -0
  2. package/bundles/colijnit-sharedcomponents.umd.js +382 -353
  3. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  4. package/colijnit-sharedcomponents.d.ts +57 -54
  5. package/colijnit-sharedcomponents.metadata.json +1 -1
  6. package/esm2015/colijnit-sharedcomponents.js +58 -55
  7. package/esm2015/lib/components/date-planning/date-planning.component.js +1 -1
  8. package/esm2015/lib/components/docsign/docsign.component.js +19 -2
  9. package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.js +8 -8
  10. package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.js +10 -5
  11. package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.js +6 -3
  12. package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +16 -11
  13. package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.js +4 -2
  14. package/esm2015/lib/components/send-method-dialog/components/signature-button/signature-button.component.js +38 -0
  15. package/esm2015/lib/components/send-method-dialog/components/signature-button/signature-button.module.js +21 -0
  16. package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +4 -4
  17. package/esm2015/lib/components/send-method-dialog/service/send-method.service.js +21 -21
  18. package/esm2015/lib/components/statusbar/statusbar-popup.component.js +72 -4
  19. package/esm2015/lib/components/statusbar/statusbar.component.js +3 -2
  20. package/esm2015/lib/components/statusbar/statusbar.module.js +1 -3
  21. package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +4 -2
  22. package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +3 -2
  23. package/esm2015/lib/components/stock/localization/translation.js +9 -1
  24. package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +7 -2
  25. package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +2 -2
  26. package/esm2015/lib/components/stock/stock-transfer/stock-change-amount.component.js +3 -1
  27. package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +15 -14
  28. package/esm2015/lib/components/stock/stock.component.js +3 -3
  29. package/esm2015/lib/components/stock/stock.module.js +30 -33
  30. package/esm2015/lib/components/tab-bar/tab-bar.module.js +2 -3
  31. package/esm2015/lib/enum/icon.enum.js +5 -1
  32. package/esm2015/lib/localization/localization.module.js +19 -0
  33. package/esm2015/lib/localization/localize.pipe.js +26 -0
  34. package/esm2015/lib/localization/localize.service.js +30 -0
  35. package/esm2015/lib/localization/translation.js +3 -0
  36. package/esm2015/lib/model/icon-svg.js +5 -1
  37. package/esm2015/lib/service/shared-connector.service.js +2 -2
  38. package/esm2015/public-api.js +1 -3
  39. package/favicon.ico +0 -0
  40. package/fesm2015/colijnit-sharedcomponents.js +333 -285
  41. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  42. package/index.html +12 -0
  43. package/lib/components/date-planning/date-planning.component.d.ts +1 -1
  44. package/lib/components/docsign/docsign.component.d.ts +2 -0
  45. package/lib/components/login/style/_layout.scss +57 -0
  46. package/lib/components/login/style/_material-definition.scss +23 -0
  47. package/lib/components/login/style/_theme.scss +7 -0
  48. package/lib/components/login/style/material.scss +4 -0
  49. package/lib/components/screen-config-generator/style/_layout.scss +0 -1
  50. package/lib/components/send-method-dialog/components/send-method-email/style/_layout.scss +8 -0
  51. package/lib/components/send-method-dialog/components/send-method-printer/style/_layout.scss +8 -0
  52. package/lib/components/send-method-dialog/components/signature-button/signature-button.component.d.ts +12 -0
  53. package/lib/components/send-method-dialog/components/signature-button/signature-button.module.d.ts +2 -0
  54. package/lib/components/send-method-dialog/components/signature-button/style/_layout.scss +28 -0
  55. package/lib/components/send-method-dialog/components/signature-button/style/_material-definition.scss +8 -0
  56. package/lib/components/send-method-dialog/components/signature-button/style/_theme.scss +4 -0
  57. package/lib/components/send-method-dialog/components/signature-button/style/material.scss +4 -0
  58. package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +6 -6
  59. package/lib/components/send-method-dialog/service/send-method.service.d.ts +10 -10
  60. package/lib/components/send-method-dialog/style/material.scss +1 -0
  61. package/lib/components/statusbar/statusbar-popup.component.d.ts +16 -2
  62. package/lib/components/statusbar/statusbar.component.d.ts +1 -0
  63. package/lib/components/statusbar/style/_layout.scss +17 -1
  64. package/lib/components/statusbar/style/material.scss +0 -2
  65. package/lib/components/stock/components/stock-tab/stock-tab.component.d.ts +3 -1
  66. package/lib/components/stock/localization/translation.d.ts +8 -0
  67. package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +2 -0
  68. package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +3 -3
  69. package/lib/components/stock/stock.component.d.ts +1 -1
  70. package/lib/components/stock/style/_layout.scss +6 -2
  71. package/lib/enum/icon.enum.d.ts +4 -0
  72. package/lib/localization/localization.module.d.ts +2 -0
  73. package/lib/localization/translation.d.ts +2 -0
  74. package/lib/style/_variables.scss +4 -2
  75. package/lib/style/sharedcomponents-globals.scss +0 -2
  76. package/main.9d48e64dce1f453fb5e6.js +1 -0
  77. package/package.json +10 -9
  78. package/polyfills.4a44032b137d291298c3.js +1 -0
  79. package/public-api.d.ts +0 -2
  80. package/runtime.8aac21847ed3d3829cca.js +1 -0
  81. package/styles.ba023a0306f438960465.css +1 -0
  82. package/esm2015/lib/components/circular-gauge/co-circular-gauge.component.js +0 -128
  83. package/esm2015/lib/components/circular-gauge/co-circular-gauge.module.js +0 -21
  84. package/esm2015/lib/components/stock/localization/localize.pipe.js +0 -26
  85. package/esm2015/lib/components/stock/localization/localize.service.js +0 -30
  86. package/lib/components/circular-gauge/co-circular-gauge.component.d.ts +0 -20
  87. package/lib/components/circular-gauge/co-circular-gauge.module.d.ts +0 -2
  88. package/lib/components/circular-gauge/style/_layout.scss +0 -25
  89. package/lib/components/circular-gauge/style/_material-definition.scss +0 -8
  90. package/lib/components/circular-gauge/style/_theme.scss +0 -7
  91. package/lib/components/circular-gauge/style/material.scss +0 -6
  92. /package/lib/{components/stock/localization → localization}/localize.pipe.d.ts +0 -0
  93. /package/lib/{components/stock/localization → localization}/localize.service.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  import { __awaiter } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { EventEmitter, Component, ViewEncapsulation, ViewChild, ElementRef, Input, Output, HostBinding, NgModule, Injectable, ChangeDetectorRef, HostListener, Pipe, Renderer2, Inject, LOCALE_ID, NgZone, Directive } from '@angular/core';
3
+ import { EventEmitter, Component, ViewEncapsulation, ViewChild, ElementRef, Input, Output, HostBinding, NgModule, Injectable, ChangeDetectorRef, ViewChildren, HostListener, Pipe, Renderer2, Inject, LOCALE_ID, NgZone, Directive } from '@angular/core';
4
4
  import { trigger, state, style, transition, animate } from '@angular/animations';
5
5
  import { PDFDocument } from 'pdf-lib';
6
6
  import * as PDFJS from 'pdfjs-dist/legacy/build/pdf';
@@ -19,22 +19,22 @@ import { ArticleTransaction } from '@colijnit/articleapi/build/model/article-tra
19
19
  import { BehaviorSubject, Subject } from 'rxjs';
20
20
  import { MainApi } from '@colijnit/mainapi';
21
21
  import { Printer } from '@colijnit/mainapi/build/model/printer.bo';
22
- import { BusinessObjectFactory } from '@colijnit/ioneconnector/build/factory/business-object-factory';
23
22
  import { SendMethod as SendMethod$1 } from '@colijnit/mainapi/build/model/send-method.bo';
23
+ import { BusinessObjectFactory } from '@colijnit/ioneconnector/build/service/business-object-factory';
24
24
  import { PrintStockStickers } from '@colijnit/sharedapi/build/model/print-stock-stickers';
25
25
  import { ArticleStock as ArticleStock$1 } from '@colijnit/articleapi/build/model/article-stock';
26
- import { InputCheckboxModule, IconModule, CoDialogModule, ButtonModule, DropDownModule, ListOfValuesModule, OverlayService, ClickoutsideModule, OverlayModule, InputComboBoxModule, CoGridModule, InputRadioButtonModule, SimpleGridModule, ImageModule, InputTextModule, InputNumberPickerModule, CoDialogWizardModule, InputTextareaModule, InputDatePickerModule } from '@colijnit/corecomponents_v12';
26
+ import { IconModule, InputCheckboxModule, CoDialogModule, ButtonModule, ListOfValuesModule, OverlayService, ClickoutsideModule, OverlayModule, InputRadioButtonModule, SimpleGridModule, ImageModule, InputTextModule, InputNumberPickerModule, CoDialogWizardModule, InputTextareaModule, InputDatePickerModule } from '@colijnit/corecomponents_v12';
27
27
  import * as i1 from '@angular/platform-browser';
28
28
  import { DomSanitizer } from '@angular/platform-browser';
29
29
  import { ArticleStockManagement } from '@colijnit/articleapi/build/model/article-stock-management';
30
30
  import { ArticleTransaction as ArticleTransaction$1 } from '@colijnit/articleapi/build/model/article-transaction';
31
31
  import { PrintPriceStickers } from '@colijnit/sharedapi/build/model/print-price-stickers.bo';
32
- import { ReportingDocumentPrintBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-print-base-request';
33
- import { ReportingDocumentEmailBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-email-base-request';
32
+ import { ReportingDocumentEmailSignDocBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-email-sign-doc-base-request';
34
33
  import { ReportingDocumentPdfBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-pdf-base-request';
34
+ import { ReportingDocumentPrintSignDocBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-print-sign-doc-base-request';
35
35
  import { SendMethodType } from '@colijnit/mainapi/build/enum/send-method-type.enum';
36
36
  import { GetStockHistoryRequest } from '@colijnit/articleapi/build/model/get-stock-history-request';
37
- import { CircularGaugeModule } from '@syncfusion/ej2-angular-circulargauge';
37
+ import { Chart, DoughnutController, ArcElement } from 'chart.js';
38
38
  import * as moment from 'moment';
39
39
 
40
40
  class DocsignComponent {
@@ -104,7 +104,7 @@ class DocsignComponent {
104
104
  */
105
105
  set pdf(value) {
106
106
  if (value) {
107
- this._pdf = value;
107
+ this._handlePdfData(value);
108
108
  this._openPDF();
109
109
  }
110
110
  }
@@ -205,6 +205,23 @@ class DocsignComponent {
205
205
  });
206
206
  });
207
207
  }
208
+ _handlePdfData(pdfData) {
209
+ if (typeof pdfData === 'string') {
210
+ this._preparePDF(pdfData);
211
+ }
212
+ else {
213
+ this._pdf = pdfData;
214
+ }
215
+ }
216
+ _preparePDF(base64) {
217
+ var binary_string = window.atob(base64);
218
+ var len = binary_string.length;
219
+ var bytes = new Uint8Array(len);
220
+ for (var i = 0; i < len; i++) {
221
+ bytes[i] = binary_string.charCodeAt(i);
222
+ }
223
+ this._pdf = bytes;
224
+ }
208
225
  }
209
226
  DocsignComponent.decorators = [
210
227
  { type: Component, args: [{
@@ -1012,67 +1029,15 @@ StockService.ctorParameters = () => [
1012
1029
  { type: SharedConnectorService }
1013
1030
  ];
1014
1031
 
1015
- class Translation {
1016
- constructor() {
1017
- this.ALLOCATED = 'ALLOCATED';
1018
- this.ALLOCATION = 'ALLOCATION';
1019
- this.ALREADY_IN_ORDER = 'ALREADY_IN_ORDER';
1020
- this.AMOUNT = 'AMOUNT';
1021
- this.AMOUNT_AVAILABLE = 'AMOUNT_AVAILABLE';
1022
- this.AMOUNT_IN_STOCK = 'AMOUNT_IN_STOCK';
1023
- this.AMOUNT_LATER_AVAILABLE = 'AMOUNT_LATER_AVAILABLE';
1024
- this.AVAILABLE_STOCK = 'AVAILABLE_STOCK';
1025
- this.BACK_TO_STOCK_LINES = 'BACK_TO_STOCK_LINES';
1026
- this.BATCH = 'BATCH';
1027
- this.CANCEL = 'CANCEL';
1028
- this.CHOICES = 'CHOICES';
1029
- this.CUSTOMER = 'CUSTOMER';
1030
- this.DATE = 'DATE';
1031
- this.DELIVERY_DATE = 'DELIVERY_DATE';
1032
- this.DESCRIPTION = 'DESCRIPTION';
1033
- this.DOCUMENT_NUMBER = 'DOCUMENT_NUMBER';
1034
- this.ECONOMICAL_STOCK = 'ECONOMICAL_STOCK';
1035
- this.FREE_STOCK = 'FREE_STOCK';
1036
- this.HISTORY = 'HISTORY';
1037
- this.IN_ORDER = 'IN_ORDER';
1038
- this.LINE = 'LINE';
1039
- this.LOCATION = 'LOCATION';
1040
- this.LOOK_AT = 'LOOK_AT';
1041
- this.MUTATION_DATE = 'MUTATION_DATE';
1042
- this.MUTATION_TIME = 'MUTATION_TIME';
1043
- this.MUTATION_TYPE = 'MUTATION_TYPE';
1044
- this.OK = 'OK';
1045
- this.ORDER = 'ORDER';
1046
- this.ORDER_COMMISSION = 'ORDER_COMMISSION';
1047
- this.ORDER_STOCK = 'ORDER_STOCK';
1048
- this.OVERVIEW = 'OVERVIEW';
1049
- this.PURCHASE_ORDER_NR = 'PURCHASE_ORDER_NR';
1050
- this.PURCHASE_PRICE = 'PURCHASE_PRICE';
1051
- this.RELATION_ID = 'RELATION_ID';
1052
- this.RELATION_NR = 'RELATION_NR';
1053
- this.RESERVED = 'RESERVED';
1054
- this.SEARCH = 'SEARCH';
1055
- this.SERIAL_NO = 'SERIAL_NO';
1056
- this.STICKER = 'STICKER';
1057
- this.STOCK = 'STOCK';
1058
- this.STOCK_DETAILS = 'STOCK_DETAILS';
1059
- this.STOCK_REMARK = 'STOCK_REMARK';
1060
- this.STOCK_STATE = 'STOCK_STATE';
1061
- this.STOCK_STATUS = 'STOCK_STATUS';
1062
- this.SUPPLIER_NUMBER = 'SUPPLIER_NUMBER';
1063
- this.TRANSFER = 'TRANSFER';
1064
- this.USER = 'USER';
1065
- this.VALUTA = 'VALUTA';
1066
- this.WAREHOUSE = 'WAREHOUSE';
1067
- }
1032
+ class Translation$1 {
1068
1033
  }
1069
1034
 
1070
1035
  class LocalizeService {
1071
1036
  constructor() {
1072
- this._translation = new Translation();
1037
+ this._translation = new Translation$1();
1073
1038
  }
1074
1039
  set translation(value) {
1075
- this._translation = Object.assign(new Translation(), value);
1040
+ this._translation = Object.assign(new Translation$1(), value);
1076
1041
  }
1077
1042
  get translation() {
1078
1043
  return this._translation;
@@ -1204,7 +1169,7 @@ StockComponent.decorators = [
1204
1169
  [warehouses]="warehouses"
1205
1170
  ></co-stock-tabs>
1206
1171
 
1207
- <co-dialog *ngIf="showStockTransfer">
1172
+ <co-dialog *ngIf="showStockTransfer" (closeClick)="showStockTransfer = false">
1208
1173
  <co-stock-transfer (handleClick)="backToStock()"
1209
1174
  class="stock-transfer-dialog"
1210
1175
  [article]="stockTransferArticle"
@@ -1296,6 +1261,7 @@ StockInformationComponent.propDecorators = {
1296
1261
 
1297
1262
  /** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
1298
1263
  const IconSvg = {
1264
+ "account": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><path d=\"M15,15c3.59,0,6.5-2.91,6.5-6.5s-2.91-6.5-6.5-6.5-6.5,2.91-6.5,6.5,2.91,6.5,6.5,6.5Zm-2.32,2.44c-5,0-9.05,4.05-9.05,9.05,0,.83,.68,1.51,1.51,1.51H24.87c.83,0,1.51-.68,1.51-1.51,0-5-4.05-9.05-9.05-9.05h-4.64Z\" fill=\"#484f60\"/></g></svg>",
1299
1265
  "angle_left_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><path fill=\"#183153\" d=\"M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z\"/></svg>",
1300
1266
  "angle_right_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><path fill=\"#183153\" d=\"M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z\"/></svg>",
1301
1267
  "arrow_fat_right": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"37.5 25 25.2 12.7 25.2 20.35 12.5 20.35 12.5 29.66 25.2 29.66 25.2 37.3 37.5 25\" fill=\"#484f60\"/></svg>",
@@ -1308,10 +1274,13 @@ const IconSvg = {
1308
1274
  "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>",
1309
1275
  "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>",
1310
1276
  "envelope_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M64 112c-8.8 0-16 7.2-16 16v22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1V128c0-8.8-7.2-16-16-16H64zM48 212.2V384c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V212.2L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64H448c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z\"/></svg>",
1277
+ "eye_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M288 80c-65.2 0-118.8 29.6-159.9 67.7C89.6 183.5 63 226 49.4 256c13.6 30 40.2 72.5 78.6 108.3C169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256c-13.6-30-40.2-72.5-78.6-108.3C406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 336c44.2 0 80-35.8 80-80s-35.8-80-80-80c-.7 0-1.3 0-2 0c1.3 5.1 2 10.5 2 16c0 35.3-28.7 64-64 64c-5.5 0-10.9-.7-16-2c0 .7 0 1.3 0 2c0 44.2 35.8 80 80 80zm0-208a128 128 0 1 1 0 256 128 128 0 1 1 0-256z\"/></svg>",
1311
1278
  "file_export_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M568.1 303l-80-80c-9.375-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94L494.1 296H216C202.8 296 192 306.8 192 320s10.75 24 24 24h278.1l-39.03 39.03C450.3 387.7 448 393.8 448 400s2.344 12.28 7.031 16.97c9.375 9.375 24.56 9.375 33.94 0l80-80C578.3 327.6 578.3 312.4 568.1 303zM360 384c-13.25 0-24 10.74-24 24V448c0 8.836-7.164 16-16 16H64.02c-8.836 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1v72c0 13.25 10.74 24 23.1 24S384 245.3 384 232V138.6c0-16.98-6.742-33.26-18.75-45.26l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H63.1C28.65 0-.002 28.66 0 64l.0065 384c.002 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64v-40C384 394.7 373.3 384 360 384z\"/></svg>",
1312
1279
  "file_export_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M32 64C32 28.7 60.7 0 96 0H256V128c0 17.7 14.3 32 32 32H416V288H248c-13.3 0-24 10.7-24 24s10.7 24 24 24H416V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V64zM416 336V288H526.1l-39-39c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l80 80c9.4 9.4 9.4 24.6 0 33.9l-80 80c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l39-39H416zm0-208H288V0L416 128z\"/></svg>",
1313
1280
  "file_pdf_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M320 464C328.8 464 336 456.8 336 448V416H384V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V416H48V448C48 456.8 55.16 464 64 464H320zM256 160C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V192H0V64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V192H336V160H256zM88 224C118.9 224 144 249.1 144 280C144 310.9 118.9 336 88 336H80V368C80 376.8 72.84 384 64 384C55.16 384 48 376.8 48 368V240C48 231.2 55.16 224 64 224H88zM112 280C112 266.7 101.3 256 88 256H80V304H88C101.3 304 112 293.3 112 280zM160 240C160 231.2 167.2 224 176 224H200C226.5 224 248 245.5 248 272V336C248 362.5 226.5 384 200 384H176C167.2 384 160 376.8 160 368V240zM192 352H200C208.8 352 216 344.8 216 336V272C216 263.2 208.8 256 200 256H192V352zM336 224C344.8 224 352 231.2 352 240C352 248.8 344.8 256 336 256H304V288H336C344.8 288 352 295.2 352 304C352 312.8 344.8 320 336 320H304V368C304 376.8 296.8 384 288 384C279.2 384 272 376.8 272 368V240C272 231.2 279.2 224 288 224H336z\"/></svg>",
1314
1281
  "file_pdf_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM64 224H88c30.9 0 56 25.1 56 56s-25.1 56-56 56H80v32c0 8.8-7.2 16-16 16s-16-7.2-16-16V320 240c0-8.8 7.2-16 16-16zm24 80c13.3 0 24-10.7 24-24s-10.7-24-24-24H80v48h8zm72-64c0-8.8 7.2-16 16-16h24c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H176c-8.8 0-16-7.2-16-16V240zm32 112h8c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16h-8v96zm96-128h48c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v32h32c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v48c0 8.8-7.2 16-16 16s-16-7.2-16-16V304 240c0-8.8 7.2-16 16-16z\"/></svg>",
1282
+ "file_signature_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M64 464H320c8.8 0 16-7.2 16-16v-6.7l39.8-9.9c2.8-.7 5.6-1.6 8.2-2.7V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3v49.1l-48 48V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zm96-115l-9.8 32.8c-6.1 20.3-24.8 34.2-46 34.2H96c-8.8 0-16-7.2-16-16s7.2-16 16-16h8.2c7.1 0 13.3-4.6 15.3-11.4l14.9-49.5c3.4-11.3 13.8-19.1 25.6-19.1s22.2 7.7 25.6 19.1l11.6 38.6c7.4-6.2 16.8-9.7 26.8-9.7c15.9 0 30.4 9 37.5 23.2l4.4 8.8h25.6l12-48.2c1.4-5.6 4.3-10.8 8.4-14.9L441.1 191.8l71 71L382.9 391.9c-4.1 4.1-9.2 7-14.9 8.4l-60.1 15c-1.1 .3-2.1 .4-3.2 .5c-.8 .1-1.5 .2-2.3 .2H256c-6.1 0-11.6-3.4-14.3-8.8l-8.8-17.7c-1.7-3.4-5.1-5.5-8.8-5.5s-7.2 2.1-8.8 5.5l-8.8 17.7c-2.9 5.9-9.2 9.4-15.7 8.8s-12.1-5.1-13.9-11.3L160 349zM549.8 139.7l14.4 14.4c15.6 15.6 15.6 40.9 0 56.6l-29.4 29.4-71-71 29.4-29.4c15.6-15.6 40.9-15.6 56.6 0z\"/></svg>",
1283
+ "lock": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><path d=\"M22.65,11.67H7.35c-2.82,0-3.07,2.29-3.07,5.12v8.09c0,2.83,.25,5.12,3.07,5.12h15.29c2.81,0,3.07-2.29,3.07-5.12v-8.09c0-2.83-.25-5.12-3.07-5.12Zm-12.42,15.82l2.6-6.32c-1-.7-1.65-1.85-1.65-3.15,0-2.12,1.71-3.84,3.82-3.84s3.82,1.73,3.82,3.84c0,1.31-.65,2.46-1.65,3.15l2.6,6.32H10.22Z\" fill=\"#484f60\"/><path d=\"M19.51,6.64c0-3.6-2.02-4.07-4.51-4.07h0c-2.49,0-4.51,.47-4.51,4.07v3h-2.7v-3C7.79,1.62,11.02,0,15,0h0c3.98,0,7.21,1.62,7.21,6.64v3h-2.7v-3Z\" fill=\"#484f60\"/></g></g></svg>",
1315
1284
  "message_sms_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M448-.0004H64c-35.25 0-64 28.75-64 63.1v287.1c0 35.25 28.75 63.1 64 63.1h96v83.98c0 9.836 11.02 15.55 19.12 9.7L304 415.1H448c35.25 0 64-28.75 64-63.1V63.1C512 28.75 483.3-.0004 448-.0004zM464 352c0 8.75-7.25 16-16 16h-160l-80 60v-60H64c-8.75 0-16-7.25-16-16V64c0-8.75 7.25-16 16-16h384c8.75 0 16 7.25 16 16V352zM124.4 192.6C113.6 189.5 103.2 187.2 104.2 181.5c.7813-4.5 10.28-6.562 21.5-4.906c4.156 .6562 8.75 2.094 13.09 3.594c8.375 2.906 17.47-1.562 20.34-9.906c2.875-8.344-1.562-17.47-9.906-20.34C143.1 147.8 136.5 145.9 130.6 145c-30.69-4.812-53.94 7.719-58 31.09c-5.656 33.03 26.5 42.47 38.63 46c13.72 3.947 25.62 6.432 24.56 12.34C135 239 125.7 241.1 114.3 239.4C107.9 238.4 100.4 235.4 93.38 232.9c-8.375-2.969-16 1.875-18.97 10.19S77.19 261.1 85.5 264.1C92.81 266.8 101.1 269.8 109.4 271C113.7 271.7 117.9 272 121.1 272c24.28 0 41.94-12.03 45.38-32.13C173.1 206.5 141.4 197.5 124.4 192.6zM396.4 192.6C385.6 189.5 375.2 187.2 376.2 181.5c.7813-4.5 10.31-6.562 21.5-4.906c4.156 .6562 8.75 2.094 13.09 3.594c8.406 2.906 17.47-1.562 20.34-9.906c2.875-8.344-1.562-17.47-9.906-20.34c-6.156-2.125-12.69-4.062-18.59-4.969c-30.75-4.812-53.97 7.719-58 31.09c-5.656 33.03 26.5 42.47 38.63 46c13.72 3.947 25.62 6.432 24.56 12.34c-.7813 4.562-10.12 6.656-21.56 4.938c-6.342-.9883-13.9-3.939-20.88-6.438c-8.375-2.969-16 1.875-18.97 10.19s2.781 17.97 11.09 20.97c7.312 2.656 15.62 5.656 23.88 6.906C385.7 271.7 389.9 272 393.1 272c24.28 0 41.94-12.03 45.38-32.13C445.1 206.5 413.4 197.5 396.4 192.6zM309.1 144.8c-6.469-2.062-13.72 .0625-17.88 5.594L256 197.3L220.8 150.4C216.7 144.9 209.4 142.7 202.9 144.8C196.4 147 192 153.1 192 160v96c0 8.844 7.156 16 16 16S224 264.8 224 256V208l19.19 25.59c6.062 8.062 19.56 8.062 25.62 0L288 208V256c0 8.844 7.156 16 16 16S320 264.8 320 256V160C320 153.1 315.6 147 309.1 144.8z\"/></svg>",
1316
1285
  "message_sms_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M0 64C0 28.7 28.7 0 64 0H448c35.3 0 64 28.7 64 64V352c0 35.3-28.7 64-64 64H309.3L185.6 508.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3V416H64c-35.3 0-64-28.7-64-64V64zm202.9 80.8C196.4 147 192 153.1 192 160v96c0 8.8 7.2 16 16 16s16-7.2 16-16V208l19.2 25.6c3 4 7.8 6.4 12.8 6.4s9.8-2.4 12.8-6.4L288 208v48c0 8.8 7.2 16 16 16s16-7.2 16-16V160c0-6.9-4.4-13-10.9-15.2s-13.7 .1-17.9 5.6L256 197.3l-35.2-46.9c-4.1-5.5-11.3-7.8-17.9-5.6zm173.1 38c0-1.1 .2-1.6 .4-1.9c.3-.4 .9-1.2 2.4-2c3.1-1.8 8-3 12.9-2.9c6.1 .1 12.9 1.4 20.1 3.4c8.5 2.3 17.3-2.8 19.6-11.3s-2.8-17.3-11.3-19.6c-8.2-2.2-17.9-4.3-27.9-4.4c-9.3-.1-20.4 1.9-29.7 7.4c-9.9 5.9-18.6 16.4-18.5 31.6c.1 14.7 8.8 24 17.7 29.4c7.6 4.6 17.1 7.4 24.3 9.6l1.2 .4c8.5 2.6 14.2 4.5 18 6.9c2.7 1.7 2.7 2.4 2.7 3.1l0 .2c0 1.6-.3 2.3-.6 2.7c-.3 .5-.9 1.2-2.1 2c-2.8 1.7-7.5 2.9-12.8 2.8c-7-.2-13.5-2.4-22.6-5.5l0 0 0 0c-1.5-.5-3.2-1.1-4.9-1.6c-8.4-2.8-17.4 1.7-20.2 10.1s1.7 17.4 10.1 20.2c1.2 .4 2.6 .9 4 1.4l0 0 0 0c8.8 3 20.4 7 32.6 7.4c9.8 .3 21.2-1.6 30.7-7.6c10.2-6.4 18-17.3 17.8-32.3c-.2-14.7-8.5-24.2-17.6-29.9c-8-5-17.9-8-25.2-10.2l-.6-.2c-8.6-2.6-14.4-4.4-18.2-6.8c-1.6-1-2.1-1.6-2.2-1.7c0-.1 0-.2 0-.4zm-272 0c0-1.1 .2-1.6 .4-1.9c.3-.4 .9-1.2 2.4-2c3.1-1.8 8-3 12.9-2.9c6.6 .1 16.7 1.6 23.3 3.4c8.5 2.3 17.3-2.8 19.6-11.3s-2.8-17.3-11.3-19.6c-8.8-2.4-21.6-4.3-31.1-4.4c-9.3-.1-20.4 1.9-29.7 7.4C80.6 157.3 72 167.8 72 183c.1 14.7 8.8 24 17.7 29.4c7.6 4.6 17.1 7.4 24.3 9.6l0 0 1.2 .4c8.5 2.6 14.2 4.5 18 6.9c2.7 1.7 2.7 2.4 2.7 3.1l0 .2c0 1.6-.3 2.3-.6 2.7c-.3 .5-.9 1.2-2.1 2c-2.8 1.7-7.5 2.9-12.8 2.8c-7.2-.2-14.2-2.6-23.7-5.8l0 0 0 0c-1.3-.4-2.7-.9-4.1-1.4c-8.4-2.8-17.4 1.7-20.2 10.1s1.7 17.4 10.1 20.2c1.1 .4 2.4 .8 3.6 1.2l0 0 0 0c9 3.1 20.9 7.2 33.2 7.6c9.8 .3 21.2-1.6 30.7-7.6c10.2-6.4 18-17.3 17.8-32.3c-.2-14.7-8.5-24.2-17.6-29.9c-8-5-17.9-8-25.2-10.2l-.6-.2c-8.6-2.6-14.4-4.4-18.3-6.8c-1.6-1-2.1-1.6-2.2-1.7c0-.1 0-.2 0-.4z\"/></svg>",
1317
1286
  "pdf": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.88c-2.16,0-2.72-.56-2.72-2.72V12.88c0-2.15.56-2.71,2.72-2.71h11.6l8.66,8.88v3.43H32.8V19.6l-7.88-8.09h-11c-1.38,0-1.38,0-1.38,1.37V37.45c0,1.37,0,1.37,1.38,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M27.83,26.63v4.24h1a3.57,3.57,0,0,0,.78-.06,1.22,1.22,0,0,0,.52-.26,1.44,1.44,0,0,0,.34-.62,4.13,4.13,0,0,0,.13-1.18,3.79,3.79,0,0,0-.13-1.14,1.51,1.51,0,0,0-.37-.62,1.14,1.14,0,0,0-.6-.3,5.93,5.93,0,0,0-1.06-.06Z\" fill=\"#484f60\"/><path d=\"M21.86,26.63v1.82h.71a3.57,3.57,0,0,0,1-.1A.88.88,0,0,0,24,28a.84.84,0,0,0,.14-.5.8.8,0,0,0-.2-.57.88.88,0,0,0-.52-.29,6.36,6.36,0,0,0-.93,0Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.12,4.24a1.68,1.68,0,0,1-.54.63,1.9,1.9,0,0,1-.67.3,6.57,6.57,0,0,1-1.34.1h-.85V32H20.57V25.54h2.07a7.75,7.75,0,0,1,1.54.1,1.73,1.73,0,0,1,.93.63,2,2,0,0,1,.37,1.25A2,2,0,0,1,25.26,28.51Zm6.45,1.66A2.91,2.91,0,0,1,31,31.31a2.28,2.28,0,0,1-.91.51A4,4,0,0,1,29,32H26.54V25.54H28.9a4.21,4.21,0,0,1,1.22.13,2.08,2.08,0,0,1,1,.59,2.79,2.79,0,0,1,.61,1,4.76,4.76,0,0,1,.21,1.52A4.19,4.19,0,0,1,31.71,30.17Zm5.7-3.54h-3.1v1.52H37v1.08H34.31V32H33V25.54h4.39Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/></svg>",
@@ -1371,6 +1340,7 @@ IconCacheService.ctorParameters = () => [
1371
1340
  /** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
1372
1341
  var Icon;
1373
1342
  (function (Icon) {
1343
+ Icon["Account"] = "account";
1374
1344
  Icon["AngleLeftSolid"] = "angle_left_solid";
1375
1345
  Icon["AngleRightSolid"] = "angle_right_solid";
1376
1346
  Icon["ArrowFatRight"] = "arrow_fat_right";
@@ -1383,10 +1353,13 @@ var Icon;
1383
1353
  Icon["DeliveryTruck"] = "delivery_truck";
1384
1354
  Icon["Email"] = "email";
1385
1355
  Icon["EnvelopeRegular"] = "envelope_regular";
1356
+ Icon["EyeRegular"] = "eye_regular";
1386
1357
  Icon["FileExportRegular"] = "file_export_regular";
1387
1358
  Icon["FileExportSolid"] = "file_export_solid";
1388
1359
  Icon["FilePdfRegular"] = "file_pdf_regular";
1389
1360
  Icon["FilePdfSolid"] = "file_pdf_solid";
1361
+ Icon["FileSignatureRegular"] = "file_signature_regular";
1362
+ Icon["Lock"] = "lock";
1390
1363
  Icon["MessageSmsRegular"] = "message_sms_regular";
1391
1364
  Icon["MessageSmsSolid"] = "message_sms_solid";
1392
1365
  Icon["Pdf"] = "pdf";
@@ -1658,6 +1631,7 @@ StockInformationGridComponent.decorators = [
1658
1631
  <span class="stock-button-back" [textContent]="'BACK_TO_STOCK_LINES' | localize" (click)="handleBackToStockClick()"></span>
1659
1632
  </div>
1660
1633
  <div class="stock-location-right-group">
1634
+ <!--
1661
1635
  <co-drop-down-list [(model)]="selectedWarehouse"
1662
1636
  [collection]="dataWareHouseCode"
1663
1637
  [fields]="dataWareHouseFields"
@@ -1665,6 +1639,7 @@ StockInformationGridComponent.decorators = [
1665
1639
  (modelChange)="onSelectWarehouse($event)"
1666
1640
  [required]="true"
1667
1641
  ></co-drop-down-list>
1642
+ -->
1668
1643
  </div>
1669
1644
  </div>
1670
1645
 
@@ -1685,6 +1660,7 @@ StockInformationGridComponent.decorators = [
1685
1660
  </div>
1686
1661
  <co-simple-grid-column [headerText]="'LOCATION' | localize" [field]="'locationNo'">
1687
1662
  <ng-template #editTemplate let-row="row">
1663
+ <!--
1688
1664
  <co-drop-down-list [(model)]="row.locationNo"
1689
1665
  [collection]="stockLocations"
1690
1666
  [fields]="dataLocationFields"
@@ -1692,6 +1668,7 @@ StockInformationGridComponent.decorators = [
1692
1668
  (click)="onLocationDropdownClick()"
1693
1669
  [required]="true"
1694
1670
  ></co-drop-down-list>
1671
+ -->
1695
1672
  </ng-template>
1696
1673
  </co-simple-grid-column>
1697
1674
  <co-simple-grid-column *ngIf="articleDetails" [headerText]="'BATCH' | localize" [field]="'batchNo'">
@@ -1818,6 +1795,7 @@ StockInformationGridComponent.decorators = [
1818
1795
  </div>
1819
1796
  <co-send-method-dialog *ngIf="showSendMethodDialog"
1820
1797
  (closeClick)="showSendMethodDialog = false"
1798
+ [visibleMethods]="sendMethod[1]"
1821
1799
  ></co-send-method-dialog>
1822
1800
  `,
1823
1801
  encapsulation: ViewEncapsulation.None
@@ -1925,24 +1903,26 @@ StockTransferComponent.decorators = [
1925
1903
  </div>
1926
1904
 
1927
1905
  <div class="stock-transfer-right-column">
1928
- <co-drop-down-list [collection]="warehouses"
1929
- [fields]="allWarehousesDropdownFields"
1906
+
1907
+ <co-list-of-values [collection]="warehouses"
1908
+ [displayField]="'warehouseDescription'"
1930
1909
  (modelChange)="handleSelectedWarehouse($event)"
1931
- [placeholder]="'Magazijn' | localize"
1910
+ [label]="'Magazijn' | localize"
1932
1911
  [(model)]="articleToTransfer.targetWarehouse">
1933
- </co-drop-down-list>
1934
- <co-drop-down-list [collection]="locations"
1935
- [fields]="allLocationDropdownFields"
1912
+ </co-list-of-values>
1913
+ <co-list-of-values [collection]="locations"
1914
+ [displayField]="'description'"
1936
1915
  [(model)]="articleToTransfer.targetLocation"
1937
- [placeholder]="'Locatie' | localize"
1916
+ [label]="'Locatie' | localize"
1938
1917
  >
1939
- </co-drop-down-list>
1940
- <co-drop-down-list [collection]="stockState"
1941
- [fields]="stockStateDropdownField"
1942
- [placeholder]="'Voorraadstatus' | localize"
1918
+ </co-list-of-values>
1919
+ <co-list-of-values [collection]="stockState"
1920
+ [displayField]="'text'"
1921
+ [label]="'Voorraadstatus' | localize"
1943
1922
  [(model)]="articleToTransfer.stockStateId"
1944
1923
  >
1945
- </co-drop-down-list>
1924
+ </co-list-of-values>
1925
+
1946
1926
  <co-input-text [placeholder]="'Omschrijving' | localize"
1947
1927
  [(model)]="articleToTransfer.stockStateRemark">
1948
1928
  </co-input-text>
@@ -1951,7 +1931,6 @@ StockTransferComponent.decorators = [
1951
1931
 
1952
1932
  <div class="ok-cancel-buttons">
1953
1933
  <co-button [textContent]="'OK' | localize" (click)="handleOkClick(articleToTransfer)"></co-button>
1954
- <co-button [textContent]="'CANCEL' | localize" (click)="handleCancelClick()"></co-button>
1955
1934
  <co-button [textContent]="'STICKER' | localize" (click)="handleStickerClick()"></co-button>
1956
1935
  </div>
1957
1936
  </div>
@@ -2007,29 +1986,29 @@ SharedService.ctorParameters = () => [
2007
1986
 
2008
1987
  class SendMethodService {
2009
1988
  constructor() {
2010
- this.reportingDocumentPrintBaseRequestChanged = new Subject();
2011
- this.reportingDocumentEmailBaseRequestChanged = new Subject();
1989
+ this.reportingDocumentPrintSignDocBaseRequestChanged = new Subject();
1990
+ this.reportingDocumentEmailSignDocBaseRequestChanged = new Subject();
2012
1991
  this.reportingDocumentPdfBaseRequestChanged = new Subject();
2013
1992
  this.selectedEmailAddresses = [];
2014
- this._reportingDocumentPrintBaseRequest = new ReportingDocumentPrintBaseRequest();
2015
- this._reportingDocumentEmailBaseRequest = new ReportingDocumentEmailBaseRequest();
1993
+ this._reportingDocumentPrintSignDocBaseRequest = new ReportingDocumentPrintSignDocBaseRequest();
1994
+ this._reportingDocumentEmailSignDocBaseRequest = new ReportingDocumentEmailSignDocBaseRequest();
2016
1995
  this._reportingDocumentPdfBaseRequest = new ReportingDocumentPdfBaseRequest();
2017
1996
  }
2018
- set reportingDocumentPrintBaseRequest(value) {
2019
- this._reportingDocumentPrintBaseRequest = value;
2020
- this.activePrinter = this._reportingDocumentPrintBaseRequest.printerName;
2021
- this.reportingDocumentPrintBaseRequestChanged.next(this._reportingDocumentPrintBaseRequest);
1997
+ set reportingDocumentPrintSignDocBaseRequest(value) {
1998
+ this._reportingDocumentPrintSignDocBaseRequest = value;
1999
+ this.activePrinter = this._reportingDocumentPrintSignDocBaseRequest.printerName;
2000
+ this.reportingDocumentPrintSignDocBaseRequestChanged.next(this._reportingDocumentPrintSignDocBaseRequest);
2022
2001
  }
2023
- get reportingDocumentPrintBaseRequest() {
2024
- return this._reportingDocumentPrintBaseRequest;
2002
+ get reportingDocumentPrintSignDocBaseRequest() {
2003
+ return this._reportingDocumentPrintSignDocBaseRequest;
2025
2004
  }
2026
- set reportingDocumentEmailBaseRequest(value) {
2027
- this._reportingDocumentEmailBaseRequest = value;
2028
- this.selectedEmailAddresses = this._reportingDocumentEmailBaseRequest.toAddresses.split(';');
2029
- this.reportingDocumentEmailBaseRequestChanged.next(this._reportingDocumentEmailBaseRequest);
2005
+ set reportingDocumentEmailSignDocBaseRequest(value) {
2006
+ this._reportingDocumentEmailSignDocBaseRequest = value;
2007
+ this.selectedEmailAddresses = this._reportingDocumentEmailSignDocBaseRequest.toAddresses.split(';');
2008
+ this.reportingDocumentEmailSignDocBaseRequestChanged.next(this._reportingDocumentEmailSignDocBaseRequest);
2030
2009
  }
2031
- get reportingDocumentEmailBaseRequest() {
2032
- return this._reportingDocumentEmailBaseRequest;
2010
+ get reportingDocumentEmailSignDocBaseRequest() {
2011
+ return this._reportingDocumentEmailSignDocBaseRequest;
2033
2012
  }
2034
2013
  set reportingDocumentPdfBaseRequest(value) {
2035
2014
  this._reportingDocumentPdfBaseRequest = value;
@@ -2051,8 +2030,8 @@ class SendMethodService {
2051
2030
  }
2052
2031
  }
2053
2032
  _updateEmailAddresses() {
2054
- this._reportingDocumentEmailBaseRequest.toAddresses = this.selectedEmailAddresses.join(';');
2055
- this.reportingDocumentEmailBaseRequestChanged.next(this._reportingDocumentEmailBaseRequest);
2033
+ this._reportingDocumentEmailSignDocBaseRequest.toAddresses = this.selectedEmailAddresses.join(';');
2034
+ this.reportingDocumentEmailSignDocBaseRequestChanged.next(this._reportingDocumentEmailSignDocBaseRequest);
2056
2035
  }
2057
2036
  }
2058
2037
  SendMethodService.decorators = [
@@ -2107,17 +2086,17 @@ class SendMethodDialogComponent {
2107
2086
  this.showEmailTemplate = true;
2108
2087
  this.showWebservice = true;
2109
2088
  this._subscriptions = [];
2110
- this._subscriptions.push(this._sendMethodService.reportingDocumentPrintBaseRequestChanged.subscribe((value) => this.reportingDocumentPrintRequestChange.next(value)), this._sendMethodService.reportingDocumentEmailBaseRequestChanged.subscribe((value) => this.reportingDocumentEmailRequestChange.next(value)), this._sendMethodService.reportingDocumentPdfBaseRequestChanged.subscribe((value) => this.reportingDocumentPdfRequestChange.next(value)));
2089
+ this._subscriptions.push(this._sendMethodService.reportingDocumentPrintSignDocBaseRequestChanged.subscribe((value) => this.reportingDocumentPrintRequestChange.next(value)), this._sendMethodService.reportingDocumentEmailSignDocBaseRequestChanged.subscribe((value) => this.reportingDocumentEmailRequestChange.next(value)), this._sendMethodService.reportingDocumentPdfBaseRequestChanged.subscribe((value) => this.reportingDocumentPdfRequestChange.next(value)));
2111
2090
  }
2112
2091
  showClass() {
2113
2092
  return true;
2114
2093
  }
2115
2094
  ngOnInit() {
2116
2095
  if (this.reportingDocumentEmailRequest) {
2117
- this._sendMethodService.reportingDocumentEmailBaseRequest = this.reportingDocumentEmailRequest;
2096
+ this._sendMethodService.reportingDocumentEmailSignDocBaseRequest = this.reportingDocumentEmailRequest;
2118
2097
  }
2119
2098
  if (this.reportingDocumentPrintRequest) {
2120
- this._sendMethodService.reportingDocumentPrintBaseRequest = this.reportingDocumentPrintRequest;
2099
+ this._sendMethodService.reportingDocumentPrintSignDocBaseRequest = this.reportingDocumentPrintRequest;
2121
2100
  }
2122
2101
  if (this.reportingDocumentPdfRequest) {
2123
2102
  this._sendMethodService.reportingDocumentPdfBaseRequest = this.reportingDocumentPdfRequest;
@@ -2337,10 +2316,15 @@ SendMethodEmailComponent.decorators = [
2337
2316
  <div class="email-address" [textContent]="emailAddressViewmodel.emailAddress"></div>
2338
2317
  </div>
2339
2318
  </div>
2340
- <co-layout-selection
2341
- [(request)]="sendMethodService.reportingDocumentEmailBaseRequest"
2342
- [layouts]="layouts"
2343
- ></co-layout-selection>
2319
+ <div class="layout-signature-wrapper">
2320
+ <co-layout-selection
2321
+ [(request)]="sendMethodService.reportingDocumentEmailSignDocBaseRequest"
2322
+ [layouts]="layouts"
2323
+ ></co-layout-selection>
2324
+ <co-signature-button
2325
+ [request]="sendMethodService.reportingDocumentEmailSignDocBaseRequest"
2326
+ ></co-signature-button>
2327
+ </div>
2344
2328
  `,
2345
2329
  encapsulation: ViewEncapsulation.None
2346
2330
  },] }
@@ -2425,6 +2409,58 @@ LayoutSelectionModule.decorators = [
2425
2409
  },] }
2426
2410
  ];
2427
2411
 
2412
+ class SignatureButtonComponent {
2413
+ constructor(iconCacheService) {
2414
+ this.iconCacheService = iconCacheService;
2415
+ this.icons = Icon;
2416
+ }
2417
+ showClass() {
2418
+ return true;
2419
+ }
2420
+ handleToggleSignature() {
2421
+ this.request.parkForDigitalSignature = !this.request.parkForDigitalSignature;
2422
+ }
2423
+ }
2424
+ SignatureButtonComponent.decorators = [
2425
+ { type: Component, args: [{
2426
+ selector: "co-signature-button",
2427
+ template: `
2428
+ <div class="signature-button-wrapper"
2429
+ [class.selected]="request.parkForDigitalSignature"
2430
+ (click)="handleToggleSignature()">
2431
+ <co-icon
2432
+ [iconData]="iconCacheService.getIcon(icons.FileSignatureRegular)"
2433
+ ></co-icon>
2434
+ </div>
2435
+ `,
2436
+ encapsulation: ViewEncapsulation.None
2437
+ },] }
2438
+ ];
2439
+ SignatureButtonComponent.ctorParameters = () => [
2440
+ { type: IconCacheService }
2441
+ ];
2442
+ SignatureButtonComponent.propDecorators = {
2443
+ request: [{ type: Input }],
2444
+ showClass: [{ type: HostBinding, args: ["class.co-signature-button",] }]
2445
+ };
2446
+
2447
+ class SignatureButtonModule {
2448
+ }
2449
+ SignatureButtonModule.decorators = [
2450
+ { type: NgModule, args: [{
2451
+ imports: [
2452
+ CommonModule,
2453
+ IconModule
2454
+ ],
2455
+ declarations: [
2456
+ SignatureButtonComponent
2457
+ ],
2458
+ exports: [
2459
+ SignatureButtonComponent
2460
+ ]
2461
+ },] }
2462
+ ];
2463
+
2428
2464
  class SendMethodEmailModule {
2429
2465
  }
2430
2466
  SendMethodEmailModule.decorators = [
@@ -2432,7 +2468,9 @@ SendMethodEmailModule.decorators = [
2432
2468
  imports: [
2433
2469
  CommonModule,
2434
2470
  InputCheckboxModule,
2435
- LayoutSelectionModule
2471
+ LayoutSelectionModule,
2472
+ IconModule,
2473
+ SignatureButtonModule
2436
2474
  ],
2437
2475
  declarations: [
2438
2476
  SendMethodEmailComponent
@@ -2453,12 +2491,12 @@ class SendMethodPrinterComponent {
2453
2491
  return true;
2454
2492
  }
2455
2493
  handleDefaultPrinterUserChange(checked) {
2456
- this.sendMethodService.reportingDocumentPrintBaseRequest.saveDefaultPrinterForUser = checked;
2457
- this.sendMethodService.reportingDocumentPrintBaseRequestChanged.next(this.sendMethodService.reportingDocumentPrintBaseRequest);
2494
+ this.sendMethodService.reportingDocumentPrintSignDocBaseRequest.saveDefaultPrinterForUser = checked;
2495
+ this.sendMethodService.reportingDocumentPrintSignDocBaseRequestChanged.next(this.sendMethodService.reportingDocumentPrintSignDocBaseRequest);
2458
2496
  }
2459
2497
  handleDefaultPrinterAllUsersChange(checked) {
2460
- this.sendMethodService.reportingDocumentPrintBaseRequest.saveDefaultPrinterForAllUsers = checked;
2461
- this.sendMethodService.reportingDocumentPrintBaseRequestChanged.next(this.sendMethodService.reportingDocumentPrintBaseRequest);
2498
+ this.sendMethodService.reportingDocumentPrintSignDocBaseRequest.saveDefaultPrinterForAllUsers = checked;
2499
+ this.sendMethodService.reportingDocumentPrintSignDocBaseRequestChanged.next(this.sendMethodService.reportingDocumentPrintSignDocBaseRequest);
2462
2500
  }
2463
2501
  }
2464
2502
  SendMethodPrinterComponent.decorators = [
@@ -2466,17 +2504,22 @@ SendMethodPrinterComponent.decorators = [
2466
2504
  selector: 'co-send-method-printer',
2467
2505
  template: `
2468
2506
  <co-printer-selection [printers]="printerList"></co-printer-selection>
2469
- <co-layout-selection
2470
- [(request)]="sendMethodService.reportingDocumentPrintBaseRequest"
2471
- [layouts]="layouts"
2472
- ></co-layout-selection>
2507
+ <div class="layout-signature-wrapper">
2508
+ <co-layout-selection
2509
+ [(request)]="sendMethodService.reportingDocumentPrintSignDocBaseRequest"
2510
+ [layouts]="layouts"
2511
+ ></co-layout-selection>
2512
+ <co-signature-button
2513
+ [request]="sendMethodService.reportingDocumentPrintSignDocBaseRequest"
2514
+ ></co-signature-button>
2515
+ </div>
2473
2516
  <co-input-checkbox
2474
- [model]="sendMethodService.reportingDocumentPrintBaseRequest.saveDefaultPrinterForUser"
2517
+ [model]="sendMethodService.reportingDocumentPrintSignDocBaseRequest.saveDefaultPrinterForUser"
2475
2518
  [label]="'Koppeling onthouden'"
2476
2519
  (modelChange)="handleDefaultPrinterUserChange($event)"
2477
2520
  ></co-input-checkbox>
2478
2521
  <co-input-checkbox
2479
- [model]="sendMethodService.reportingDocumentPrintBaseRequest.saveDefaultPrinterForAllUsers"
2522
+ [model]="sendMethodService.reportingDocumentPrintSignDocBaseRequest.saveDefaultPrinterForAllUsers"
2480
2523
  [label]="'Alle gebruikers'"
2481
2524
  (modelChange)="handleDefaultPrinterAllUsersChange($event)"
2482
2525
  ></co-input-checkbox>
@@ -2506,17 +2549,17 @@ class PrinterSelectionComponent {
2506
2549
  return true;
2507
2550
  }
2508
2551
  ngOnInit() {
2509
- if (!this.sendMethodService.reportingDocumentPrintBaseRequest.printerName && this.printers && this.printers.length > 0) {
2552
+ if (!this.sendMethodService.reportingDocumentPrintSignDocBaseRequest.printerName && this.printers && this.printers.length > 0) {
2510
2553
  const defaultPrinter = this.printers.find(p => p.isDefault);
2511
2554
  if (defaultPrinter) {
2512
- this.sendMethodService.reportingDocumentPrintBaseRequest.printerName = defaultPrinter.name;
2513
- this.sendMethodService.reportingDocumentPrintBaseRequestChanged.next(this.sendMethodService.reportingDocumentPrintBaseRequest);
2555
+ this.sendMethodService.reportingDocumentPrintSignDocBaseRequest.printerName = defaultPrinter.name;
2556
+ this.sendMethodService.reportingDocumentPrintSignDocBaseRequestChanged.next(this.sendMethodService.reportingDocumentPrintSignDocBaseRequest);
2514
2557
  }
2515
2558
  }
2516
2559
  }
2517
2560
  handlePrinterClicked(printer) {
2518
- this.sendMethodService.reportingDocumentPrintBaseRequest.printerName = printer.name;
2519
- this.sendMethodService.reportingDocumentPrintBaseRequestChanged.next(this.sendMethodService.reportingDocumentPrintBaseRequest);
2561
+ this.sendMethodService.reportingDocumentPrintSignDocBaseRequest.printerName = printer.name;
2562
+ this.sendMethodService.reportingDocumentPrintSignDocBaseRequestChanged.next(this.sendMethodService.reportingDocumentPrintSignDocBaseRequest);
2520
2563
  this.showPrinterList = false;
2521
2564
  }
2522
2565
  }
@@ -2526,11 +2569,11 @@ PrinterSelectionComponent.decorators = [
2526
2569
  template: `
2527
2570
  <div class="printer-selection-wrapper" (click)="showPrinterList = !showPrinterList">
2528
2571
  <div class="title" [textContent]="'Printer'"></div>
2529
- <div class="printer-name" [textContent]="sendMethodService.reportingDocumentPrintBaseRequest.printerName || 'Printer kiezen'"></div>
2572
+ <div class="printer-name" [textContent]="sendMethodService.reportingDocumentPrintSignDocBaseRequest.printerName || 'Printer kiezen'"></div>
2530
2573
  </div>
2531
2574
  <div class="layouts-wrapper co-small-scrollbar" *ngIf="showPrinterList" @showHideLayouts>
2532
2575
  <div class="printer-list-item" *ngFor="let printer of printers"
2533
- [class.selected]="sendMethodService.reportingDocumentPrintBaseRequest.printerName === printer.name"
2576
+ [class.selected]="sendMethodService.reportingDocumentPrintSignDocBaseRequest.printerName === printer.name"
2534
2577
  (click)="handlePrinterClicked(printer)">
2535
2578
  <co-icon class="printer-icon" [iconData]="iconService.getIcon(icons.PrintRegular)"></co-icon>
2536
2579
  <div class="printer-details">
@@ -2587,7 +2630,8 @@ SendMethodPrinterModule.decorators = [
2587
2630
  IconModule,
2588
2631
  LayoutSelectionModule,
2589
2632
  PrinterSelectionModule,
2590
- InputCheckboxModule
2633
+ InputCheckboxModule,
2634
+ SignatureButtonModule
2591
2635
  ],
2592
2636
  declarations: [
2593
2637
  SendMethodPrinterComponent
@@ -2662,11 +2706,13 @@ StockChangeAmountComponent.decorators = [
2662
2706
  <span [textContent]="'STOCK_CHANGE_REASON' | localize"></span>
2663
2707
  </ng-container>
2664
2708
  <div class="popup-wrapper">
2709
+ <!--
2665
2710
  <co-drop-down-list [collection]="stockState"
2666
2711
  [fields]="stockStateDropdownField"
2667
2712
  [placeholder]="'STOCK_STATE' | localize"
2668
2713
  [(model)]="selectedArticleDetailsData.stockStateId"
2669
2714
  ></co-drop-down-list>
2715
+ -->
2670
2716
 
2671
2717
  <co-input-textarea [(model)]="selectedArticleDetailsData.stockStateRemark"
2672
2718
 
@@ -2695,7 +2741,8 @@ class StockTabComponent {
2695
2741
  this.locationClicked = new EventEmitter();
2696
2742
  }
2697
2743
  onLocationClick(data) {
2698
- this.locationClicked.emit(data);
2744
+ this.warehouseToShow.warehouseNo = parseInt(data.warehouseNo);
2745
+ this.locationClicked.emit(this.warehouseToShow);
2699
2746
  }
2700
2747
  }
2701
2748
  StockTabComponent.decorators = [
@@ -3132,7 +3179,7 @@ StockLocationComponent.decorators = [
3132
3179
  selector: "co-stock-location",
3133
3180
  template: `
3134
3181
  <div class="stock-grid">
3135
- <co-simple-grid [data]="articleDetails"
3182
+ <co-simple-grid [data]="articleStockInfo"
3136
3183
  class="simple-grid"
3137
3184
  [rowsPerPage]="20"
3138
3185
  [showAdd]="true"
@@ -3143,6 +3190,7 @@ StockLocationComponent.decorators = [
3143
3190
  >
3144
3191
  <co-simple-grid-column [headerText]="'LOCATION' | localize" [field]="'locationNo'">
3145
3192
  <ng-template #editTemplate let-row="row">
3193
+ <!--
3146
3194
  <co-drop-down-list [(model)]="row.locationNo"
3147
3195
  [collection]="stockLocations"
3148
3196
  [fields]="dataLocationFields"
@@ -3151,6 +3199,7 @@ StockLocationComponent.decorators = [
3151
3199
  [required]="true"
3152
3200
  (modelChange)="locationChanged($event)"
3153
3201
  ></co-drop-down-list>
3202
+ -->
3154
3203
  </ng-template>
3155
3204
  </co-simple-grid-column>
3156
3205
  <co-simple-grid-column *ngIf="articleDetails" [headerText]="'BATCH' | localize" [field]="'batchNo'">
@@ -3367,7 +3416,6 @@ TabBarModule.decorators = [
3367
3416
  { type: NgModule, args: [{
3368
3417
  imports: [
3369
3418
  CommonModule,
3370
- DropDownModule,
3371
3419
  ListOfValuesModule,
3372
3420
  ],
3373
3421
  declarations: [
@@ -3551,7 +3599,7 @@ AllocationStockHistoryComponent.propDecorators = {
3551
3599
  allocationStockHistory: [{ type: Input }]
3552
3600
  };
3553
3601
 
3554
- var GaugeColor;
3602
+ var GaugeColor$1;
3555
3603
  (function (GaugeColor) {
3556
3604
  GaugeColor["Lowest"] = "#E0E0E0";
3557
3605
  GaugeColor["Low"] = "#fff7b8";
@@ -3559,154 +3607,11 @@ var GaugeColor;
3559
3607
  GaugeColor["MediumHigh"] = "#ffc15b";
3560
3608
  GaugeColor["High"] = "#F88952";
3561
3609
  GaugeColor["Highest"] = "#5FDCB3";
3562
- })(GaugeColor || (GaugeColor = {}));
3563
-
3564
- class CoCircularGaugeComponent {
3565
- constructor() {
3566
- this._color = GaugeColor.Low;
3567
- this.majorTicks = {
3568
- height: 0,
3569
- };
3570
- this.minorTicks = {
3571
- height: 0
3572
- };
3573
- this.labelStyle = {
3574
- position: 'Inside', useRangeColor: true,
3575
- font: { size: '0px', fontFamily: 'inherit' }
3576
- };
3577
- this.lineStyle = {
3578
- width: 0
3579
- };
3580
- this.ranges = [
3581
- {
3582
- start: 1, end: 100,
3583
- radius: '13px',
3584
- startWidth: 3, endWidth: 3,
3585
- color: '#E0E0E0',
3586
- roundedCornerRadius: 0
3587
- },
3588
- ];
3589
- }
3590
- set value(value) {
3591
- this._value = value;
3592
- this._setColor();
3593
- }
3594
- get value() {
3595
- return this._value;
3596
- }
3597
- get color() {
3598
- return this._color;
3599
- }
3600
- showClass() {
3601
- return true;
3602
- }
3603
- getAxes() {
3604
- return [{
3605
- minimum: 0,
3606
- maximum: 100,
3607
- radius: '15px',
3608
- startAngle: 1,
3609
- endAngle: 360,
3610
- majorTicks: this.majorTicks,
3611
- minorTicks: this.minorTicks,
3612
- labelStyle: this.labelStyle,
3613
- lineStyle: this.lineStyle,
3614
- ranges: this.ranges,
3615
- pointers: this.getPointers(),
3616
- annotations: this.getAnnotations(),
3617
- }];
3618
- }
3619
- getPointers() {
3620
- if (this.value) {
3621
- return [{
3622
- roundedCornerRadius: 0,
3623
- value: this.value,
3624
- type: 'RangeBar',
3625
- radius: '13px',
3626
- color: this.color,
3627
- border: {
3628
- width: 0
3629
- },
3630
- animation: {
3631
- enable: false
3632
- },
3633
- pointerWidth: 3
3634
- }];
3635
- }
3636
- }
3637
- ;
3638
- getAnnotations() {
3639
- if (this.value !== undefined) {
3640
- const label = this.value ? this.value + "%" : "0%";
3641
- return [{
3642
- content: '<div class="annotation" style="width:20px;height:20px;">' +
3643
- '<div class="annotation-label">' + label + '</div></div>',
3644
- zIndex: '10',
3645
- }];
3646
- }
3647
- }
3648
- _setColor() {
3649
- if (this.value <= 0) {
3650
- this._color = GaugeColor.Lowest;
3651
- }
3652
- else if (this.value >= 1 && this.value < 25) {
3653
- this._color = GaugeColor.Low;
3654
- }
3655
- else if (this.value >= 25 && this.value < 50) {
3656
- this._color = GaugeColor.MediumLow;
3657
- }
3658
- else if (this.value >= 50 && this.value < 75) {
3659
- this._color = GaugeColor.MediumHigh;
3660
- }
3661
- else if (this.value >= 75 && this.value < 100) {
3662
- this._color = GaugeColor.High;
3663
- }
3664
- else if (this.value >= 100) {
3665
- this._color = GaugeColor.Highest;
3666
- }
3667
- }
3668
- }
3669
- CoCircularGaugeComponent.decorators = [
3670
- { type: Component, args: [{
3671
- selector: "co-circular-gauge",
3672
- template: `
3673
- <div class="circular-gauge-wrapper">
3674
- <ejs-circulargauge
3675
- class="circular-gauge"
3676
- [width]="'100%'"
3677
- [axes]="getAxes()">
3678
- </ejs-circulargauge>
3679
- </div>
3680
- `,
3681
- encapsulation: ViewEncapsulation.None
3682
- },] }
3683
- ];
3684
- CoCircularGaugeComponent.propDecorators = {
3685
- circulargauge: [{ type: ViewChild, args: ['circulargauge',] }],
3686
- value: [{ type: Input }],
3687
- showClass: [{ type: HostBinding, args: ["class.co-circular-gauge",] }]
3688
- };
3689
-
3690
- class CoCircularGaugeModule {
3691
- }
3692
- CoCircularGaugeModule.decorators = [
3693
- { type: NgModule, args: [{
3694
- imports: [
3695
- CommonModule,
3696
- CircularGaugeModule
3697
- ],
3698
- declarations: [
3699
- CoCircularGaugeComponent
3700
- ],
3701
- exports: [
3702
- CoCircularGaugeComponent
3703
- ]
3704
- },] }
3705
- ];
3610
+ })(GaugeColor$1 || (GaugeColor$1 = {}));
3706
3611
 
3707
3612
  class CoLinearGaugeComponent {
3708
3613
  constructor() {
3709
- this.color = GaugeColor.Low;
3614
+ this.color = GaugeColor$1.Low;
3710
3615
  }
3711
3616
  set value(value) {
3712
3617
  this._value = value;
@@ -3723,22 +3628,22 @@ class CoLinearGaugeComponent {
3723
3628
  }
3724
3629
  _setColor() {
3725
3630
  if (this.value <= 0) {
3726
- this.color = GaugeColor.Lowest;
3631
+ this.color = GaugeColor$1.Lowest;
3727
3632
  }
3728
3633
  else if (this.value >= 1 && this.value < 25) {
3729
- this.color = GaugeColor.Low;
3634
+ this.color = GaugeColor$1.Low;
3730
3635
  }
3731
3636
  else if (this.value >= 25 && this.value < 50) {
3732
- this.color = GaugeColor.MediumLow;
3637
+ this.color = GaugeColor$1.MediumLow;
3733
3638
  }
3734
3639
  else if (this.value >= 50 && this.value < 75) {
3735
- this.color = GaugeColor.MediumHigh;
3640
+ this.color = GaugeColor$1.MediumHigh;
3736
3641
  }
3737
3642
  else if (this.value >= 75 && this.value < 100) {
3738
- this.color = GaugeColor.High;
3643
+ this.color = GaugeColor$1.High;
3739
3644
  }
3740
3645
  else if (this.value >= 100) {
3741
- this.color = GaugeColor.Highest;
3646
+ this.color = GaugeColor$1.Highest;
3742
3647
  }
3743
3648
  }
3744
3649
  }
@@ -3777,10 +3682,72 @@ CoLinearGaugeModule.decorators = [
3777
3682
  },] }
3778
3683
  ];
3779
3684
 
3685
+ Chart.register(DoughnutController, ArcElement);
3686
+ var GaugeColor;
3687
+ (function (GaugeColor) {
3688
+ GaugeColor["Lowest"] = "#E0E0E0";
3689
+ GaugeColor["Low"] = "#fff7b8";
3690
+ GaugeColor["MediumLow"] = "#ffe367";
3691
+ GaugeColor["MediumHigh"] = "#ffc15b";
3692
+ GaugeColor["High"] = "#F88952";
3693
+ GaugeColor["Highest"] = "#5FDCB3";
3694
+ })(GaugeColor || (GaugeColor = {}));
3780
3695
  class StatusbarPopupComponent {
3781
3696
  constructor() {
3782
3697
  this.statusbarData = [];
3783
3698
  this.showClass = true;
3699
+ this.doughnutCharts = [];
3700
+ }
3701
+ set content(content) {
3702
+ this.doughnutCharts = content.toArray();
3703
+ this._prepareChartData();
3704
+ }
3705
+ ngOnInit() {
3706
+ this._prepareChartData();
3707
+ }
3708
+ _prepareChartData() {
3709
+ if (!this.doughnutCharts || this.doughnutCharts.length === 0) {
3710
+ return;
3711
+ }
3712
+ this.doughnutCharts.forEach((chart, index) => {
3713
+ new Chart(chart.nativeElement, {
3714
+ type: 'doughnut',
3715
+ data: {
3716
+ datasets: [{
3717
+ label: this.statusbarData[index].label,
3718
+ data: [Math.max(0.0001, this.statusbarData[index].percentage), 100 - Math.max(0.0001, this.statusbarData[index].percentage)],
3719
+ backgroundColor: [
3720
+ this._getColor(this.statusbarData[index].percentage),
3721
+ this._getColor(-1),
3722
+ ],
3723
+ borderWidth: 1
3724
+ }]
3725
+ },
3726
+ options: {
3727
+ cutout: '70%'
3728
+ }
3729
+ });
3730
+ });
3731
+ }
3732
+ _getColor(value) {
3733
+ if (value <= 0) {
3734
+ return GaugeColor.Lowest;
3735
+ }
3736
+ else if (value >= 1 && value < 25) {
3737
+ return GaugeColor.Low;
3738
+ }
3739
+ else if (value >= 25 && value < 50) {
3740
+ return GaugeColor.MediumLow;
3741
+ }
3742
+ else if (value >= 50 && value < 75) {
3743
+ return GaugeColor.MediumHigh;
3744
+ }
3745
+ else if (value >= 75 && value < 100) {
3746
+ return GaugeColor.High;
3747
+ }
3748
+ else if (value >= 100) {
3749
+ return GaugeColor.Highest;
3750
+ }
3784
3751
  }
3785
3752
  }
3786
3753
  StatusbarPopupComponent.decorators = [
@@ -3790,8 +3757,11 @@ StatusbarPopupComponent.decorators = [
3790
3757
  <div class="co-statusbar-popup-wrapper" [overlay]="parentForOverlay">
3791
3758
  <div class="status-descriptions">
3792
3759
  <div *ngFor="let data of statusbarData; let index = index" class="status-description">
3793
- <co-circular-gauge [value]="data.percentage"></co-circular-gauge>
3794
- <span [textContent]="data.label"></span>
3760
+ <div class="statusbar-canvas-wrapper">
3761
+ <canvas #doughnutCanvas class="chart-canvas"></canvas>
3762
+ <span class="statusbar-inner-canvas-label" [textContent]="data.percentage"></span>
3763
+ </div>
3764
+ <span class="statusbar-description" [textContent]="data.label"></span>
3795
3765
  </div>
3796
3766
  </div>
3797
3767
  </div>
@@ -3800,6 +3770,8 @@ StatusbarPopupComponent.decorators = [
3800
3770
  },] }
3801
3771
  ];
3802
3772
  StatusbarPopupComponent.propDecorators = {
3773
+ content: [{ type: ViewChildren, args: ['doughnutCanvas', { read: ElementRef },] }],
3774
+ defaultColor: [{ type: Input }],
3803
3775
  statusbarData: [{ type: Input }],
3804
3776
  parentForOverlay: [{ type: Input }],
3805
3777
  showClass: [{ type: HostBinding, args: ["class.co-statusbar-popup",] }]
@@ -3831,7 +3803,7 @@ class StatusbarComponent {
3831
3803
  }
3832
3804
  event.preventDefault();
3833
3805
  event.stopPropagation();
3834
- this._statusbarPopupComponentRef = this._overlayService.createComponent(StatusbarPopupComponent, { parentForOverlay: this._elementRef, statusbarData: this.statusbarData });
3806
+ this._statusbarPopupComponentRef = this._overlayService.createComponent(StatusbarPopupComponent, { parentForOverlay: this._elementRef, statusbarData: this.statusbarData, defaultColor: this.defaultColor });
3835
3807
  this.popupShowing = true;
3836
3808
  }
3837
3809
  handleHidePopup() {
@@ -3875,6 +3847,7 @@ StatusbarComponent.ctorParameters = () => [
3875
3847
  ];
3876
3848
  StatusbarComponent.propDecorators = {
3877
3849
  statusbarData: [{ type: Input }],
3850
+ defaultColor: [{ type: Input }],
3878
3851
  focusedStatusIndex: [{ type: Input }],
3879
3852
  statusbarClick: [{ type: Output }],
3880
3853
  showClass: [{ type: HostBinding, args: ["class.co-statusbar",] }],
@@ -3887,7 +3860,6 @@ StatusbarModule.decorators = [
3887
3860
  { type: NgModule, args: [{
3888
3861
  imports: [
3889
3862
  CommonModule,
3890
- CoCircularGaugeModule,
3891
3863
  CoLinearGaugeModule,
3892
3864
  ClickoutsideModule,
3893
3865
  OverlayModule
@@ -4003,17 +3975,30 @@ LocalizePipe.ctorParameters = () => [
4003
3975
  { type: LocalizeService }
4004
3976
  ];
4005
3977
 
3978
+ class LocalizationModule {
3979
+ }
3980
+ LocalizationModule.decorators = [
3981
+ { type: NgModule, args: [{
3982
+ imports: [
3983
+ CommonModule
3984
+ ],
3985
+ declarations: [
3986
+ LocalizePipe
3987
+ ],
3988
+ exports: [
3989
+ LocalizePipe
3990
+ ]
3991
+ },] }
3992
+ ];
3993
+
4006
3994
  class StockModule {
4007
3995
  }
4008
3996
  StockModule.decorators = [
4009
3997
  { type: NgModule, args: [{
4010
3998
  imports: [
4011
- InputComboBoxModule,
4012
- CoGridModule,
4013
3999
  ButtonModule,
4014
4000
  CommonModule,
4015
4001
  InputRadioButtonModule,
4016
- DropDownModule,
4017
4002
  SimpleGridModule,
4018
4003
  ImageModule,
4019
4004
  InputTextModule,
@@ -4026,7 +4011,8 @@ StockModule.decorators = [
4026
4011
  CoDialogModule,
4027
4012
  StatusbarModule,
4028
4013
  StockStatusbarModule,
4029
- ListOfValuesModule
4014
+ ListOfValuesModule,
4015
+ LocalizationModule
4030
4016
  ],
4031
4017
  declarations: [
4032
4018
  StockComponent,
@@ -4045,7 +4031,6 @@ StockModule.decorators = [
4045
4031
  OrderCommissionStockHistoryComponent,
4046
4032
  OrderStockHistoryComponent,
4047
4033
  AllocationStockHistoryComponent,
4048
- LocalizePipe,
4049
4034
  StockPrognoseComponent
4050
4035
  ],
4051
4036
  exports: [
@@ -4058,6 +4043,69 @@ StockModule.decorators = [
4058
4043
  },] }
4059
4044
  ];
4060
4045
 
4046
+ class Translation {
4047
+ constructor() {
4048
+ this.ALLOCATED = 'ALLOCATED';
4049
+ this.ALLOCATION = 'ALLOCATION';
4050
+ this.ALREADY_IN_ORDER = 'ALREADY_IN_ORDER';
4051
+ this.AMOUNT = 'AMOUNT';
4052
+ this.AMOUNT_AVAILABLE = 'AMOUNT_AVAILABLE';
4053
+ this.AMOUNT_IN_STOCK = 'AMOUNT_IN_STOCK';
4054
+ this.AMOUNT_LATER_AVAILABLE = 'AMOUNT_LATER_AVAILABLE';
4055
+ this.AVAILABILITY = 'AVAILABILITY';
4056
+ this.AVAILABLE_STOCK = 'AVAILABLE_STOCK';
4057
+ this.BACK_TO_STOCK_LINES = 'BACK_TO_STOCK_LINES';
4058
+ this.BATCH = 'BATCH';
4059
+ this.CANCEL = 'CANCEL';
4060
+ this.CHOICES = 'CHOICES';
4061
+ this.CUSTOMER = 'CUSTOMER';
4062
+ this.DATE = 'DATE';
4063
+ this.DATE_DELIVERED = 'DATE_DELIVERED';
4064
+ this.DELIVERY_DATE = 'DELIVERY_DATE';
4065
+ this.DELIVERY_DATE_CONFIRMED = 'DELIVERY_DATE_CONFIRMED';
4066
+ this.DESCRIPTION = 'DESCRIPTION';
4067
+ this.DOCUMENT_NUMBER = 'DOCUMENT_NUMBER';
4068
+ this.ECONOMICAL_STOCK = 'ECONOMICAL_STOCK';
4069
+ this.FREE_STOCK = 'FREE_STOCK';
4070
+ this.FUTURE_FREE_STOCK = 'FUTURE_FREE_STOCK';
4071
+ this.HISTORY = 'HISTORY';
4072
+ this.IN_ORDER = 'IN_ORDER';
4073
+ this.LINE = 'LINE';
4074
+ this.LOCATION = 'LOCATION';
4075
+ this.LOOK_AT = 'LOOK_AT';
4076
+ this.MUTATION_DATE = 'MUTATION_DATE';
4077
+ this.MUTATION_TIME = 'MUTATION_TIME';
4078
+ this.MUTATION_TYPE = 'MUTATION_TYPE';
4079
+ this.OK = 'OK';
4080
+ this.ORDER = 'ORDER';
4081
+ this.ORDER_COMMISSION = 'ORDER_COMMISSION';
4082
+ this.ORDER_STOCK = 'ORDER_STOCK';
4083
+ this.OVERVIEW = 'OVERVIEW';
4084
+ this.PURCHASE_ORDER = 'PURCHASE_ORDER';
4085
+ this.PURCHASE_ORDER_DATE = 'PURCHASE_ORDER_DATE';
4086
+ this.PURCHASE_ORDER_NR = 'PURCHASE_ORDER_NR';
4087
+ this.PURCHASE_PRICE = 'PURCHASE_PRICE';
4088
+ this.REFERENCE = 'REFERENCE';
4089
+ this.RELATION_ID = 'RELATION_ID';
4090
+ this.RELATION_NR = 'RELATION_NR';
4091
+ this.RESERVED = 'RESERVED';
4092
+ this.SEARCH = 'SEARCH';
4093
+ this.SERIAL_NO = 'SERIAL_NO';
4094
+ this.STICKER = 'STICKER';
4095
+ this.STOCK = 'STOCK';
4096
+ this.STOCK_DETAILS = 'STOCK_DETAILS';
4097
+ this.STOCK_FORECAST = 'STOCK_FORECAST';
4098
+ this.STOCK_REMARK = 'STOCK_REMARK';
4099
+ this.STOCK_STATE = 'STOCK_STATE';
4100
+ this.STOCK_STATUS = 'STOCK_STATUS';
4101
+ this.SUPPLIER_NUMBER = 'SUPPLIER_NUMBER';
4102
+ this.TRANSFER = 'TRANSFER';
4103
+ this.USER = 'USER';
4104
+ this.VALUTA = 'VALUTA';
4105
+ this.WAREHOUSE = 'WAREHOUSE';
4106
+ }
4107
+ }
4108
+
4061
4109
  var KeyboardCode;
4062
4110
  (function (KeyboardCode) {
4063
4111
  KeyboardCode["Backspace"] = "Backspace";
@@ -6298,5 +6346,5 @@ DatePlanningModule.decorators = [
6298
6346
  * Generated bundle index. Do not edit.
6299
6347
  */
6300
6348
 
6301
- export { CoCircularGaugeComponent, CoCircularGaugeModule, CoLinearGaugeComponent, CoLinearGaugeModule, DatePlanningComponent, DatePlanningModule, DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, SharedService, StatusbarComponent, StatusbarModule, StockComponent, StockModule, Translation, sendMethodsWithIcon, SignatureComponent as ɵa, SignaturesComponent as ɵb, StockTabComponent as ɵba, OrderTabComponent as ɵbb, StockTabsComponent as ɵbc, StockHistoryTabsComponent as ɵbd, OrderStockTabComponent as ɵbe, StockLocationComponent as ɵbf, StockHistoryComponent as ɵbg, OrderSupplyStockHistoryComponent as ɵbh, OrderCommissionStockHistoryComponent as ɵbi, OrderStockHistoryComponent as ɵbj, AllocationStockHistoryComponent as ɵbk, LocalizePipe as ɵbl, StockPrognoseComponent as ɵbm, SendMethod as ɵbn, Icon as ɵbo, CalendarAllYearsComponent as ɵbp, CalendarAllMonthsComponent as ɵbq, CalendarHeaderComponent as ɵbr, CalendarComponent as ɵbs, CalendarViewComponent as ɵbt, LanguageCode as ɵbu, AgendaHeaderComponent as ɵbv, AgendaViewComponent as ɵbw, AgendaMonthViewComponent as ɵbx, AgendaBaseViewComponent as ɵby, AgendaDayViewComponent as ɵbz, StockService as ɵc, AgendaWeekViewComponent as ɵca, AgendaWeekSelectViewComponent as ɵcb, AgendaHourViewComponent as ɵcc, AgendaHourCellComponent as ɵcd, AgendaHourViewLabelsComponent as ɵce, AgendaHalfHourCellComponent as ɵcf, AgendaEventsComponent as ɵcg, AgendaEventComponent as ɵch, ViewSelectComponent as ɵci, AgendaSelectEventComponent as ɵcj, MASTER_PIPES as ɵck, ArrayNumberPipe as ɵcl, UCfirstPipe as ɵcm, SharedConnectorService as ɵd, OptionsService as ɵe, DictionaryService as ɵf, LocalizeService as ɵg, IconCacheService as ɵh, SendMethodService as ɵi, SendMethodEmailModule as ɵj, LayoutSelectionModule as ɵk, LayoutSelectionComponent as ɵl, SendMethodEmailComponent as ɵm, SendMethodPrinterModule as ɵn, PrinterSelectionModule as ɵo, PrinterSelectionComponent as ɵp, SendMethodPrinterComponent as ɵq, TabBarModule as ɵr, TabBarComponent as ɵs, StatusbarPopupComponent as ɵt, StockStatusbarModule as ɵu, StockStatusbarComponent as ɵv, StockInformationComponent as ɵw, StockInformationGridComponent as ɵx, StockTransferComponent as ɵy, StockChangeAmountComponent as ɵz };
6349
+ export { CoLinearGaugeComponent, CoLinearGaugeModule, DatePlanningComponent, DatePlanningModule, DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, SharedService, StatusbarComponent, StatusbarModule, StockComponent, StockModule, Translation, sendMethodsWithIcon, SignatureComponent as ɵa, SignaturesComponent as ɵb, StockInformationComponent as ɵba, StockInformationGridComponent as ɵbb, StockTransferComponent as ɵbc, StockChangeAmountComponent as ɵbd, StockTabComponent as ɵbe, OrderTabComponent as ɵbf, StockTabsComponent as ɵbg, StockHistoryTabsComponent as ɵbh, OrderStockTabComponent as ɵbi, StockLocationComponent as ɵbj, StockHistoryComponent as ɵbk, OrderSupplyStockHistoryComponent as ɵbl, OrderCommissionStockHistoryComponent as ɵbm, OrderStockHistoryComponent as ɵbn, AllocationStockHistoryComponent as ɵbo, StockPrognoseComponent as ɵbp, SendMethod as ɵbq, Icon as ɵbr, CalendarAllYearsComponent as ɵbs, CalendarAllMonthsComponent as ɵbt, CalendarHeaderComponent as ɵbu, CalendarComponent as ɵbv, CalendarViewComponent as ɵbw, LanguageCode as ɵbx, AgendaHeaderComponent as ɵby, AgendaViewComponent as ɵbz, StockService as ɵc, AgendaMonthViewComponent as ɵca, AgendaBaseViewComponent as ɵcb, AgendaDayViewComponent as ɵcc, AgendaWeekViewComponent as ɵcd, AgendaWeekSelectViewComponent as ɵce, AgendaHourViewComponent as ɵcf, AgendaHourCellComponent as ɵcg, AgendaHourViewLabelsComponent as ɵch, AgendaHalfHourCellComponent as ɵci, AgendaEventsComponent as ɵcj, AgendaEventComponent as ɵck, ViewSelectComponent as ɵcl, AgendaSelectEventComponent as ɵcm, MASTER_PIPES as ɵcn, ArrayNumberPipe as ɵco, UCfirstPipe as ɵcp, SharedConnectorService as ɵd, OptionsService as ɵe, DictionaryService as ɵf, LocalizeService as ɵg, IconCacheService as ɵh, SendMethodService as ɵi, SendMethodEmailModule as ɵj, LayoutSelectionModule as ɵk, LayoutSelectionComponent as ɵl, SignatureButtonModule as ɵm, SignatureButtonComponent as ɵn, SendMethodEmailComponent as ɵo, SendMethodPrinterModule as ɵp, PrinterSelectionModule as ɵq, PrinterSelectionComponent as ɵr, SendMethodPrinterComponent as ɵs, TabBarModule as ɵt, TabBarComponent as ɵu, StatusbarPopupComponent as ɵv, StockStatusbarModule as ɵw, StockStatusbarComponent as ɵx, LocalizationModule as ɵy, LocalizePipe as ɵz };
6302
6350
  //# sourceMappingURL=colijnit-sharedcomponents.js.map