@colijnit/sharedcomponents 1.0.45 → 1.0.47
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.
- package/bundles/colijnit-sharedcomponents.umd.js +96 -9
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/docsign/docsign.component.js +19 -2
- package/esm2015/lib/components/key-pad/key-pad.component.js +18 -16
- package/esm2015/lib/components/key-pad/key-pad.module.js +4 -3
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +2 -2
- package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +3 -2
- package/esm2015/lib/components/stock/localization/translation.js +9 -1
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +3 -2
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +1 -1
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +15 -16
- package/esm2015/lib/components/stock/stock.component.js +2 -2
- package/esm2015/lib/enum/icon.enum.js +1 -1
- package/esm2015/lib/model/icon-svg.js +1 -1
- package/esm2015/lib/service/shared-connector.service.js +33 -1
- package/esm2015/lib/service/shared.service.js +11 -1
- package/fesm2015/colijnit-sharedcomponents.js +107 -36
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/docsign/docsign.component.d.ts +2 -0
- package/lib/components/key-pad/style/_layout.scss +56 -1
- package/lib/components/key-pad/style/_material-definition.scss +4 -2
- package/lib/components/screen-config-generator/style/_layout.scss +25 -1
- package/lib/components/stock/components/stock-tab/stock-tab.component.d.ts +3 -1
- package/lib/components/stock/localization/translation.d.ts +8 -0
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +2 -0
- package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +2 -2
- package/lib/components/stock/style/_layout.scss +6 -2
- package/lib/service/shared-connector.service.d.ts +2 -0
- package/lib/service/shared.service.d.ts +2 -0
- package/package.json +3 -3
|
@@ -23,7 +23,7 @@ import { SendMethod as SendMethod$1 } from '@colijnit/mainapi/build/model/send-m
|
|
|
23
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 { IconModule, InputCheckboxModule, CoDialogModule, ButtonModule, ListOfValuesModule, OverlayService, ClickoutsideModule, OverlayModule, 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, ResponsiveTextModule, 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';
|
|
@@ -104,7 +104,7 @@ class DocsignComponent {
|
|
|
104
104
|
*/
|
|
105
105
|
set pdf(value) {
|
|
106
106
|
if (value) {
|
|
107
|
-
this.
|
|
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: [{
|
|
@@ -652,6 +669,38 @@ class SharedConnectorService {
|
|
|
652
669
|
});
|
|
653
670
|
});
|
|
654
671
|
}
|
|
672
|
+
getScreenConfigTree() {
|
|
673
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
674
|
+
return new Promise((resolve, reject) => {
|
|
675
|
+
return this.sharedConnector.getConfigTreeObject('T', 'JS').then((result) => {
|
|
676
|
+
if (result.validationResult && result.validationResult.success) {
|
|
677
|
+
if (result.resultObjects) {
|
|
678
|
+
resolve(result.resultObjects);
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
else {
|
|
682
|
+
reject(result.validationMessagesAsString);
|
|
683
|
+
}
|
|
684
|
+
});
|
|
685
|
+
});
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
getScreenConfigSubRubric(parentRubricId, configId, fixedKey) {
|
|
689
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
690
|
+
return new Promise((resolve, reject) => {
|
|
691
|
+
return this.sharedConnector.getConfigSubRubric(parentRubricId, configId, fixedKey).then((result) => {
|
|
692
|
+
if (result.validationResult && result.validationResult.success) {
|
|
693
|
+
if (result.resultObjects) {
|
|
694
|
+
resolve(result.resultObjects);
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
else {
|
|
698
|
+
reject(result.validationMessagesAsString);
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
});
|
|
702
|
+
});
|
|
703
|
+
}
|
|
655
704
|
// public async getPrintStockStickers(request: PrintStockStickers): Promise<PrintStockStickers> {
|
|
656
705
|
// return new Promise((resolve: Function, reject: Function) => {
|
|
657
706
|
// return this.sharedConnector.getPrintStockStickers(request).then((result: DataServiceResponseData) => {
|
|
@@ -1152,7 +1201,7 @@ StockComponent.decorators = [
|
|
|
1152
1201
|
[warehouses]="warehouses"
|
|
1153
1202
|
></co-stock-tabs>
|
|
1154
1203
|
|
|
1155
|
-
<co-dialog *ngIf="showStockTransfer">
|
|
1204
|
+
<co-dialog *ngIf="showStockTransfer" (closeClick)="showStockTransfer = false">
|
|
1156
1205
|
<co-stock-transfer (handleClick)="backToStock()"
|
|
1157
1206
|
class="stock-transfer-dialog"
|
|
1158
1207
|
[article]="stockTransferArticle"
|
|
@@ -1778,6 +1827,7 @@ StockInformationGridComponent.decorators = [
|
|
|
1778
1827
|
</div>
|
|
1779
1828
|
<co-send-method-dialog *ngIf="showSendMethodDialog"
|
|
1780
1829
|
(closeClick)="showSendMethodDialog = false"
|
|
1830
|
+
[visibleMethods]="sendMethod[1]"
|
|
1781
1831
|
></co-send-method-dialog>
|
|
1782
1832
|
`,
|
|
1783
1833
|
encapsulation: ViewEncapsulation.None
|
|
@@ -1885,26 +1935,26 @@ StockTransferComponent.decorators = [
|
|
|
1885
1935
|
</div>
|
|
1886
1936
|
|
|
1887
1937
|
<div class="stock-transfer-right-column">
|
|
1888
|
-
|
|
1889
|
-
<co-
|
|
1890
|
-
[
|
|
1938
|
+
|
|
1939
|
+
<co-list-of-values [collection]="warehouses"
|
|
1940
|
+
[displayField]="'warehouseDescription'"
|
|
1891
1941
|
(modelChange)="handleSelectedWarehouse($event)"
|
|
1892
|
-
[
|
|
1942
|
+
[label]="'Magazijn' | localize"
|
|
1893
1943
|
[(model)]="articleToTransfer.targetWarehouse">
|
|
1894
|
-
</co-
|
|
1895
|
-
<co-
|
|
1896
|
-
[
|
|
1944
|
+
</co-list-of-values>
|
|
1945
|
+
<co-list-of-values [collection]="locations"
|
|
1946
|
+
[displayField]="'description'"
|
|
1897
1947
|
[(model)]="articleToTransfer.targetLocation"
|
|
1898
|
-
[
|
|
1948
|
+
[label]="'Locatie' | localize"
|
|
1899
1949
|
>
|
|
1900
|
-
</co-
|
|
1901
|
-
<co-
|
|
1902
|
-
[
|
|
1903
|
-
[
|
|
1950
|
+
</co-list-of-values>
|
|
1951
|
+
<co-list-of-values [collection]="stockState"
|
|
1952
|
+
[displayField]="'text'"
|
|
1953
|
+
[label]="'Voorraadstatus' | localize"
|
|
1904
1954
|
[(model)]="articleToTransfer.stockStateId"
|
|
1905
1955
|
>
|
|
1906
|
-
</co-
|
|
1907
|
-
|
|
1956
|
+
</co-list-of-values>
|
|
1957
|
+
|
|
1908
1958
|
<co-input-text [placeholder]="'Omschrijving' | localize"
|
|
1909
1959
|
[(model)]="articleToTransfer.stockStateRemark">
|
|
1910
1960
|
</co-input-text>
|
|
@@ -1913,7 +1963,6 @@ StockTransferComponent.decorators = [
|
|
|
1913
1963
|
|
|
1914
1964
|
<div class="ok-cancel-buttons">
|
|
1915
1965
|
<co-button [textContent]="'OK' | localize" (click)="handleOkClick(articleToTransfer)"></co-button>
|
|
1916
|
-
<co-button [textContent]="'CANCEL' | localize" (click)="handleCancelClick()"></co-button>
|
|
1917
1966
|
<co-button [textContent]="'STICKER' | localize" (click)="handleStickerClick()"></co-button>
|
|
1918
1967
|
</div>
|
|
1919
1968
|
</div>
|
|
@@ -1955,6 +2004,16 @@ class SharedService {
|
|
|
1955
2004
|
return yield this.connector.getSendMethods();
|
|
1956
2005
|
});
|
|
1957
2006
|
}
|
|
2007
|
+
getScreenConfigTree() {
|
|
2008
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2009
|
+
return yield this.connector.getScreenConfigTree();
|
|
2010
|
+
});
|
|
2011
|
+
}
|
|
2012
|
+
getScreenConfigSubRubric(parentRubricId, configId, fixedKey) {
|
|
2013
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2014
|
+
return yield this.connector.getScreenConfigSubRubric(parentRubricId, configId, fixedKey);
|
|
2015
|
+
});
|
|
2016
|
+
}
|
|
1958
2017
|
}
|
|
1959
2018
|
SharedService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SharedService_Factory() { return new SharedService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(SharedConnectorService)); }, token: SharedService, providedIn: "root" });
|
|
1960
2019
|
SharedService.decorators = [
|
|
@@ -2724,7 +2783,8 @@ class StockTabComponent {
|
|
|
2724
2783
|
this.locationClicked = new EventEmitter();
|
|
2725
2784
|
}
|
|
2726
2785
|
onLocationClick(data) {
|
|
2727
|
-
this.
|
|
2786
|
+
this.warehouseToShow.warehouseNo = parseInt(data.warehouseNo);
|
|
2787
|
+
this.locationClicked.emit(this.warehouseToShow);
|
|
2728
2788
|
}
|
|
2729
2789
|
}
|
|
2730
2790
|
StockTabComponent.decorators = [
|
|
@@ -3161,7 +3221,7 @@ StockLocationComponent.decorators = [
|
|
|
3161
3221
|
selector: "co-stock-location",
|
|
3162
3222
|
template: `
|
|
3163
3223
|
<div class="stock-grid">
|
|
3164
|
-
<co-simple-grid [data]="
|
|
3224
|
+
<co-simple-grid [data]="articleStockInfo"
|
|
3165
3225
|
class="simple-grid"
|
|
3166
3226
|
[rowsPerPage]="20"
|
|
3167
3227
|
[showAdd]="true"
|
|
@@ -4034,6 +4094,7 @@ class Translation {
|
|
|
4034
4094
|
this.AMOUNT_AVAILABLE = 'AMOUNT_AVAILABLE';
|
|
4035
4095
|
this.AMOUNT_IN_STOCK = 'AMOUNT_IN_STOCK';
|
|
4036
4096
|
this.AMOUNT_LATER_AVAILABLE = 'AMOUNT_LATER_AVAILABLE';
|
|
4097
|
+
this.AVAILABILITY = 'AVAILABILITY';
|
|
4037
4098
|
this.AVAILABLE_STOCK = 'AVAILABLE_STOCK';
|
|
4038
4099
|
this.BACK_TO_STOCK_LINES = 'BACK_TO_STOCK_LINES';
|
|
4039
4100
|
this.BATCH = 'BATCH';
|
|
@@ -4041,11 +4102,14 @@ class Translation {
|
|
|
4041
4102
|
this.CHOICES = 'CHOICES';
|
|
4042
4103
|
this.CUSTOMER = 'CUSTOMER';
|
|
4043
4104
|
this.DATE = 'DATE';
|
|
4105
|
+
this.DATE_DELIVERED = 'DATE_DELIVERED';
|
|
4044
4106
|
this.DELIVERY_DATE = 'DELIVERY_DATE';
|
|
4107
|
+
this.DELIVERY_DATE_CONFIRMED = 'DELIVERY_DATE_CONFIRMED';
|
|
4045
4108
|
this.DESCRIPTION = 'DESCRIPTION';
|
|
4046
4109
|
this.DOCUMENT_NUMBER = 'DOCUMENT_NUMBER';
|
|
4047
4110
|
this.ECONOMICAL_STOCK = 'ECONOMICAL_STOCK';
|
|
4048
4111
|
this.FREE_STOCK = 'FREE_STOCK';
|
|
4112
|
+
this.FUTURE_FREE_STOCK = 'FUTURE_FREE_STOCK';
|
|
4049
4113
|
this.HISTORY = 'HISTORY';
|
|
4050
4114
|
this.IN_ORDER = 'IN_ORDER';
|
|
4051
4115
|
this.LINE = 'LINE';
|
|
@@ -4059,8 +4123,11 @@ class Translation {
|
|
|
4059
4123
|
this.ORDER_COMMISSION = 'ORDER_COMMISSION';
|
|
4060
4124
|
this.ORDER_STOCK = 'ORDER_STOCK';
|
|
4061
4125
|
this.OVERVIEW = 'OVERVIEW';
|
|
4126
|
+
this.PURCHASE_ORDER = 'PURCHASE_ORDER';
|
|
4127
|
+
this.PURCHASE_ORDER_DATE = 'PURCHASE_ORDER_DATE';
|
|
4062
4128
|
this.PURCHASE_ORDER_NR = 'PURCHASE_ORDER_NR';
|
|
4063
4129
|
this.PURCHASE_PRICE = 'PURCHASE_PRICE';
|
|
4130
|
+
this.REFERENCE = 'REFERENCE';
|
|
4064
4131
|
this.RELATION_ID = 'RELATION_ID';
|
|
4065
4132
|
this.RELATION_NR = 'RELATION_NR';
|
|
4066
4133
|
this.RESERVED = 'RESERVED';
|
|
@@ -4069,6 +4136,7 @@ class Translation {
|
|
|
4069
4136
|
this.STICKER = 'STICKER';
|
|
4070
4137
|
this.STOCK = 'STOCK';
|
|
4071
4138
|
this.STOCK_DETAILS = 'STOCK_DETAILS';
|
|
4139
|
+
this.STOCK_FORECAST = 'STOCK_FORECAST';
|
|
4072
4140
|
this.STOCK_REMARK = 'STOCK_REMARK';
|
|
4073
4141
|
this.STOCK_STATE = 'STOCK_STATE';
|
|
4074
4142
|
this.STOCK_STATUS = 'STOCK_STATUS';
|
|
@@ -4161,7 +4229,9 @@ class KeyPadComponent {
|
|
|
4161
4229
|
return true;
|
|
4162
4230
|
}
|
|
4163
4231
|
handleKeyDown(event) {
|
|
4164
|
-
|
|
4232
|
+
if (document.activeElement instanceof HTMLBodyElement) {
|
|
4233
|
+
this._keyDown(event);
|
|
4234
|
+
}
|
|
4165
4235
|
}
|
|
4166
4236
|
set internalModel(value) {
|
|
4167
4237
|
this._internalModel = value;
|
|
@@ -4258,27 +4328,27 @@ KeyPadComponent.decorators = [
|
|
|
4258
4328
|
template: `
|
|
4259
4329
|
<div class="key-pad-wrapper">
|
|
4260
4330
|
<div class="key-pad-model-wrapper" *ngIf="showValue">
|
|
4261
|
-
<
|
|
4331
|
+
<co-responsive-text class="key-pad-model" [text]="internalModel" [class.negative]="isNegative"></co-responsive-text>
|
|
4262
4332
|
</div>
|
|
4263
4333
|
<div class="key-pad-button-wrapper">
|
|
4264
|
-
<div class="key-pad-button button-7"
|
|
4265
|
-
<div class="key-pad-button button-8"
|
|
4266
|
-
<div class="key-pad-button button-9"
|
|
4334
|
+
<div class="key-pad-button button-7" (click)="handleButtonClick('7')"><co-responsive-text class="key-pad-button-text" [text]="'7'"></co-responsive-text></div>
|
|
4335
|
+
<div class="key-pad-button button-8" (click)="handleButtonClick('8')"><co-responsive-text class="key-pad-button-text" [text]="'8'"></co-responsive-text></div>
|
|
4336
|
+
<div class="key-pad-button button-9" (click)="handleButtonClick('9')"><co-responsive-text class="key-pad-button-text" [text]="'9'"></co-responsive-text></div>
|
|
4267
4337
|
<div class="key-pad-button button-bs" (click)="handleBsClick($event)">
|
|
4268
4338
|
<co-icon [iconData]="iconCacheService.getIcon(icons.DeleteLeftRegular)"></co-icon>
|
|
4269
4339
|
</div>
|
|
4270
|
-
<div class="key-pad-button button-4"
|
|
4271
|
-
<div class="key-pad-button button-5"
|
|
4272
|
-
<div class="key-pad-button button-6"
|
|
4273
|
-
<div class="key-pad-button button-minus"
|
|
4274
|
-
<div class="key-pad-button button-1"
|
|
4275
|
-
<div class="key-pad-button button-2"
|
|
4276
|
-
<div class="key-pad-button button-3"
|
|
4340
|
+
<div class="key-pad-button button-4" (click)="handleButtonClick('4')"><co-responsive-text class="key-pad-button-text" [text]="'4'"></co-responsive-text></div>
|
|
4341
|
+
<div class="key-pad-button button-5" (click)="handleButtonClick('5')"><co-responsive-text class="key-pad-button-text" [text]="'5'"></co-responsive-text></div>
|
|
4342
|
+
<div class="key-pad-button button-6" (click)="handleButtonClick('6')"><co-responsive-text class="key-pad-button-text" [text]="'6'"></co-responsive-text></div>
|
|
4343
|
+
<div class="key-pad-button button-minus" (click)="handleMinusClick($event)"><co-responsive-text class="key-pad-button-text" [text]="'-'"></co-responsive-text></div>
|
|
4344
|
+
<div class="key-pad-button button-1" (click)="handleButtonClick('1')"><co-responsive-text class="key-pad-button-text" [text]="'1'"></co-responsive-text></div>
|
|
4345
|
+
<div class="key-pad-button button-2" (click)="handleButtonClick('2')"><co-responsive-text class="key-pad-button-text" [text]="'2'"></co-responsive-text></div>
|
|
4346
|
+
<div class="key-pad-button button-3" (click)="handleButtonClick('3')"><co-responsive-text class="key-pad-button-text" [text]="'3'"></co-responsive-text></div>
|
|
4277
4347
|
<div class="key-pad-button button-enter" (click)="handleEnterClick($event)">
|
|
4278
|
-
<
|
|
4348
|
+
<co-responsive-text class="key-pad-button-text" [text]="'enter'"></co-responsive-text>
|
|
4279
4349
|
</div>
|
|
4280
|
-
<div class="key-pad-button button-0"
|
|
4281
|
-
<div class="key-pad-button button-dot"
|
|
4350
|
+
<div class="key-pad-button button-0" (click)="handleButtonClick('0')"><co-responsive-text class="key-pad-button-text" [text]="'0'"></co-responsive-text></div>
|
|
4351
|
+
<div class="key-pad-button button-dot" (click)="handleButtonClick('.')"><co-responsive-text class="key-pad-button-text" [text]="'.'"></co-responsive-text></div>
|
|
4282
4352
|
</div>
|
|
4283
4353
|
</div>
|
|
4284
4354
|
`,
|
|
@@ -4305,7 +4375,8 @@ KeyPadModule.decorators = [
|
|
|
4305
4375
|
{ type: NgModule, args: [{
|
|
4306
4376
|
imports: [
|
|
4307
4377
|
CommonModule,
|
|
4308
|
-
IconModule
|
|
4378
|
+
IconModule,
|
|
4379
|
+
ResponsiveTextModule
|
|
4309
4380
|
],
|
|
4310
4381
|
declarations: [
|
|
4311
4382
|
KeyPadComponent
|