@colijnit/sharedcomponents 1.0.45 → 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 (30) hide show
  1. package/3rdpartylicenses.txt +1112 -0
  2. package/bundles/colijnit-sharedcomponents.umd.js +32 -6
  3. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  4. package/colijnit-sharedcomponents.metadata.json +1 -1
  5. package/esm2015/lib/components/docsign/docsign.component.js +19 -2
  6. package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +2 -2
  7. package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +3 -2
  8. package/esm2015/lib/components/stock/localization/translation.js +9 -1
  9. package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +3 -2
  10. package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +1 -1
  11. package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +15 -16
  12. package/esm2015/lib/components/stock/stock.component.js +2 -2
  13. package/esm2015/lib/enum/icon.enum.js +1 -1
  14. package/esm2015/lib/model/icon-svg.js +1 -1
  15. package/favicon.ico +0 -0
  16. package/fesm2015/colijnit-sharedcomponents.js +45 -19
  17. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  18. package/index.html +12 -0
  19. package/lib/components/docsign/docsign.component.d.ts +2 -0
  20. package/lib/components/screen-config-generator/style/_layout.scss +0 -1
  21. package/lib/components/stock/components/stock-tab/stock-tab.component.d.ts +3 -1
  22. package/lib/components/stock/localization/translation.d.ts +8 -0
  23. package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +2 -0
  24. package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +2 -2
  25. package/lib/components/stock/style/_layout.scss +6 -2
  26. package/main.9d48e64dce1f453fb5e6.js +1 -0
  27. package/package.json +2 -2
  28. package/polyfills.4a44032b137d291298c3.js +1 -0
  29. package/runtime.8aac21847ed3d3829cca.js +1 -0
  30. package/styles.ba023a0306f438960465.css +1 -0
@@ -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: [{
@@ -1152,7 +1169,7 @@ StockComponent.decorators = [
1152
1169
  [warehouses]="warehouses"
1153
1170
  ></co-stock-tabs>
1154
1171
 
1155
- <co-dialog *ngIf="showStockTransfer">
1172
+ <co-dialog *ngIf="showStockTransfer" (closeClick)="showStockTransfer = false">
1156
1173
  <co-stock-transfer (handleClick)="backToStock()"
1157
1174
  class="stock-transfer-dialog"
1158
1175
  [article]="stockTransferArticle"
@@ -1778,6 +1795,7 @@ StockInformationGridComponent.decorators = [
1778
1795
  </div>
1779
1796
  <co-send-method-dialog *ngIf="showSendMethodDialog"
1780
1797
  (closeClick)="showSendMethodDialog = false"
1798
+ [visibleMethods]="sendMethod[1]"
1781
1799
  ></co-send-method-dialog>
1782
1800
  `,
1783
1801
  encapsulation: ViewEncapsulation.None
@@ -1885,26 +1903,26 @@ StockTransferComponent.decorators = [
1885
1903
  </div>
1886
1904
 
1887
1905
  <div class="stock-transfer-right-column">
1888
- <!--
1889
- <co-drop-down-list [collection]="warehouses"
1890
- [fields]="allWarehousesDropdownFields"
1906
+
1907
+ <co-list-of-values [collection]="warehouses"
1908
+ [displayField]="'warehouseDescription'"
1891
1909
  (modelChange)="handleSelectedWarehouse($event)"
1892
- [placeholder]="'Magazijn' | localize"
1910
+ [label]="'Magazijn' | localize"
1893
1911
  [(model)]="articleToTransfer.targetWarehouse">
1894
- </co-drop-down-list>
1895
- <co-drop-down-list [collection]="locations"
1896
- [fields]="allLocationDropdownFields"
1912
+ </co-list-of-values>
1913
+ <co-list-of-values [collection]="locations"
1914
+ [displayField]="'description'"
1897
1915
  [(model)]="articleToTransfer.targetLocation"
1898
- [placeholder]="'Locatie' | localize"
1916
+ [label]="'Locatie' | localize"
1899
1917
  >
1900
- </co-drop-down-list>
1901
- <co-drop-down-list [collection]="stockState"
1902
- [fields]="stockStateDropdownField"
1903
- [placeholder]="'Voorraadstatus' | localize"
1918
+ </co-list-of-values>
1919
+ <co-list-of-values [collection]="stockState"
1920
+ [displayField]="'text'"
1921
+ [label]="'Voorraadstatus' | localize"
1904
1922
  [(model)]="articleToTransfer.stockStateId"
1905
1923
  >
1906
- </co-drop-down-list>
1907
- -->
1924
+ </co-list-of-values>
1925
+
1908
1926
  <co-input-text [placeholder]="'Omschrijving' | localize"
1909
1927
  [(model)]="articleToTransfer.stockStateRemark">
1910
1928
  </co-input-text>
@@ -1913,7 +1931,6 @@ StockTransferComponent.decorators = [
1913
1931
 
1914
1932
  <div class="ok-cancel-buttons">
1915
1933
  <co-button [textContent]="'OK' | localize" (click)="handleOkClick(articleToTransfer)"></co-button>
1916
- <co-button [textContent]="'CANCEL' | localize" (click)="handleCancelClick()"></co-button>
1917
1934
  <co-button [textContent]="'STICKER' | localize" (click)="handleStickerClick()"></co-button>
1918
1935
  </div>
1919
1936
  </div>
@@ -2724,7 +2741,8 @@ class StockTabComponent {
2724
2741
  this.locationClicked = new EventEmitter();
2725
2742
  }
2726
2743
  onLocationClick(data) {
2727
- this.locationClicked.emit(data);
2744
+ this.warehouseToShow.warehouseNo = parseInt(data.warehouseNo);
2745
+ this.locationClicked.emit(this.warehouseToShow);
2728
2746
  }
2729
2747
  }
2730
2748
  StockTabComponent.decorators = [
@@ -3161,7 +3179,7 @@ StockLocationComponent.decorators = [
3161
3179
  selector: "co-stock-location",
3162
3180
  template: `
3163
3181
  <div class="stock-grid">
3164
- <co-simple-grid [data]="articleDetails"
3182
+ <co-simple-grid [data]="articleStockInfo"
3165
3183
  class="simple-grid"
3166
3184
  [rowsPerPage]="20"
3167
3185
  [showAdd]="true"
@@ -4034,6 +4052,7 @@ class Translation {
4034
4052
  this.AMOUNT_AVAILABLE = 'AMOUNT_AVAILABLE';
4035
4053
  this.AMOUNT_IN_STOCK = 'AMOUNT_IN_STOCK';
4036
4054
  this.AMOUNT_LATER_AVAILABLE = 'AMOUNT_LATER_AVAILABLE';
4055
+ this.AVAILABILITY = 'AVAILABILITY';
4037
4056
  this.AVAILABLE_STOCK = 'AVAILABLE_STOCK';
4038
4057
  this.BACK_TO_STOCK_LINES = 'BACK_TO_STOCK_LINES';
4039
4058
  this.BATCH = 'BATCH';
@@ -4041,11 +4060,14 @@ class Translation {
4041
4060
  this.CHOICES = 'CHOICES';
4042
4061
  this.CUSTOMER = 'CUSTOMER';
4043
4062
  this.DATE = 'DATE';
4063
+ this.DATE_DELIVERED = 'DATE_DELIVERED';
4044
4064
  this.DELIVERY_DATE = 'DELIVERY_DATE';
4065
+ this.DELIVERY_DATE_CONFIRMED = 'DELIVERY_DATE_CONFIRMED';
4045
4066
  this.DESCRIPTION = 'DESCRIPTION';
4046
4067
  this.DOCUMENT_NUMBER = 'DOCUMENT_NUMBER';
4047
4068
  this.ECONOMICAL_STOCK = 'ECONOMICAL_STOCK';
4048
4069
  this.FREE_STOCK = 'FREE_STOCK';
4070
+ this.FUTURE_FREE_STOCK = 'FUTURE_FREE_STOCK';
4049
4071
  this.HISTORY = 'HISTORY';
4050
4072
  this.IN_ORDER = 'IN_ORDER';
4051
4073
  this.LINE = 'LINE';
@@ -4059,8 +4081,11 @@ class Translation {
4059
4081
  this.ORDER_COMMISSION = 'ORDER_COMMISSION';
4060
4082
  this.ORDER_STOCK = 'ORDER_STOCK';
4061
4083
  this.OVERVIEW = 'OVERVIEW';
4084
+ this.PURCHASE_ORDER = 'PURCHASE_ORDER';
4085
+ this.PURCHASE_ORDER_DATE = 'PURCHASE_ORDER_DATE';
4062
4086
  this.PURCHASE_ORDER_NR = 'PURCHASE_ORDER_NR';
4063
4087
  this.PURCHASE_PRICE = 'PURCHASE_PRICE';
4088
+ this.REFERENCE = 'REFERENCE';
4064
4089
  this.RELATION_ID = 'RELATION_ID';
4065
4090
  this.RELATION_NR = 'RELATION_NR';
4066
4091
  this.RESERVED = 'RESERVED';
@@ -4069,6 +4094,7 @@ class Translation {
4069
4094
  this.STICKER = 'STICKER';
4070
4095
  this.STOCK = 'STOCK';
4071
4096
  this.STOCK_DETAILS = 'STOCK_DETAILS';
4097
+ this.STOCK_FORECAST = 'STOCK_FORECAST';
4072
4098
  this.STOCK_REMARK = 'STOCK_REMARK';
4073
4099
  this.STOCK_STATE = 'STOCK_STATE';
4074
4100
  this.STOCK_STATUS = 'STOCK_STATUS';