@colijnit/sharedcomponents 1.0.5 → 1.0.8
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 +275 -36
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +5 -4
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +6 -5
- package/esm2015/lib/components/docsign/docsign.component.js +2 -2
- package/esm2015/lib/components/send-method-dialog/enums/send-option.js +8 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +203 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +26 -0
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +1 -4
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +1 -2
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +5 -5
- package/esm2015/lib/components/stock/stock.component.js +1 -8
- package/esm2015/lib/components/stock/stock.module.js +4 -2
- package/esm2015/lib/enum/icon.enum.js +23 -0
- package/esm2015/lib/model/icon-svg.js +22 -0
- package/esm2015/lib/service/icon-cache.service.js +51 -0
- package/esm2015/lib/service/ione-connector-adapter.service.js +22 -3
- package/esm2015/lib/service/stock.service.js +6 -1
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-sharedcomponents.js +355 -20
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/send-method-dialog/enums/send-option.d.ts +6 -0
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +37 -0
- package/lib/components/send-method-dialog/send-method-dialog.module.d.ts +2 -0
- package/lib/components/send-method-dialog/style/_layout.scss +186 -0
- package/lib/components/send-method-dialog/style/_material-definition.scss +1 -0
- package/lib/components/send-method-dialog/style/_theme.scss +7 -0
- package/lib/components/send-method-dialog/style/material.scss +4 -0
- package/lib/components/stock/stock-information/stock-information.component.d.ts +1 -3
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +1 -0
- package/lib/components/stock/stock.component.d.ts +0 -1
- package/lib/enum/icon.enum.d.ts +21 -0
- package/lib/model/icon-svg.d.ts +4 -0
- package/lib/service/icon-cache.service.d.ts +18 -0
- package/lib/service/ione-connector-adapter.service.d.ts +4 -0
- package/lib/service/stock.service.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/colijnit-sharedcomponents-1.0.5.tgz +0 -0
|
@@ -8,6 +8,8 @@ import pdfjsWorker from 'pdfjs-dist/build/pdf.worker.entry';
|
|
|
8
8
|
import { CommonModule } from '@angular/common';
|
|
9
9
|
import SignaturePad from 'signature_pad';
|
|
10
10
|
import { Articles } from '@colijnit/articleapi/build/articles';
|
|
11
|
+
import { Sharedapi } from '@colijnit/sharedapi/build/sharedapi';
|
|
12
|
+
import { Printer } from '@colijnit/sharedapi/build/model/printer.bo';
|
|
11
13
|
import { notNill } from '@colijnit/articleapi/build/utils/function/not-nill.function';
|
|
12
14
|
import { ObjectUtils } from '@colijnit/articleapi/build/utils/object-utils';
|
|
13
15
|
import { GetYesNoDbBooleanValue } from '@colijnit/articleapi/build/enum/yes-no-db-type.enum';
|
|
@@ -24,7 +26,9 @@ import { ComplexArrayDecorator as ComplexArrayDecorator$1 } from '@colijnit/arti
|
|
|
24
26
|
import { PrintStockStickers } from '@colijnit/articleapi/build/model/print-stock-stickers';
|
|
25
27
|
import { ArticleFlat } from '@colijnit/articleapi/build/model/article-flat.bo';
|
|
26
28
|
import { ArticlesPublic } from '@colijnit/articleapi/build/articles-public';
|
|
27
|
-
import { InputComboBoxModule, CoGridModule, ButtonModule, InputRadioButtonModule, DropDownModule, SimpleGridModule, ImageModule, InputTextModule } from '@colijnit/corecomponents_v12';
|
|
29
|
+
import { CoDialogPromptModule, InputCheckboxModule, InputComboBoxModule, IconModule, InputNumberPickerModule, CoDialogWizardModule, CoGridModule, ButtonModule, InputRadioButtonModule, DropDownModule, SimpleGridModule, ImageModule, InputTextModule } from '@colijnit/corecomponents_v12';
|
|
30
|
+
import * as i1 from '@angular/platform-browser';
|
|
31
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
28
32
|
|
|
29
33
|
class DocsignComponent {
|
|
30
34
|
constructor() {
|
|
@@ -148,7 +152,7 @@ class DocsignComponent {
|
|
|
148
152
|
const pdfReader = yield PDFJS.getDocument(this._pdf).promise;
|
|
149
153
|
const numPages = pdfReader.numPages;
|
|
150
154
|
for (let i = 0; i < numPages; i++) {
|
|
151
|
-
const page = yield pdfReader.getPage(1);
|
|
155
|
+
const page = yield pdfReader.getPage(i + 1);
|
|
152
156
|
const text = yield page.getTextContent();
|
|
153
157
|
page.cleanup();
|
|
154
158
|
if (this.firstSignatureField) {
|
|
@@ -1044,7 +1048,8 @@ class IoneConnectorAdapterService {
|
|
|
1044
1048
|
if (this.options === undefined) {
|
|
1045
1049
|
this.options = options;
|
|
1046
1050
|
this.connector = new Articles(options);
|
|
1047
|
-
this.
|
|
1051
|
+
this.sharedConnector = new Sharedapi(options);
|
|
1052
|
+
this.options.session = this.connector.session && this.sharedConnector.session;
|
|
1048
1053
|
}
|
|
1049
1054
|
});
|
|
1050
1055
|
}
|
|
@@ -1053,10 +1058,26 @@ class IoneConnectorAdapterService {
|
|
|
1053
1058
|
this.options = undefined;
|
|
1054
1059
|
});
|
|
1055
1060
|
}
|
|
1061
|
+
getAllPrinters(showAll = true) {
|
|
1062
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1063
|
+
return new Promise((resolve, reject) => {
|
|
1064
|
+
return this.sharedConnector.getAllPrinters(showAll).then((result) => {
|
|
1065
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1066
|
+
if (result.resultObject) {
|
|
1067
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(Printer, result.resultObject));
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
else {
|
|
1071
|
+
reject(result.validationMessagesAsString);
|
|
1072
|
+
}
|
|
1073
|
+
});
|
|
1074
|
+
});
|
|
1075
|
+
});
|
|
1076
|
+
}
|
|
1056
1077
|
getPrintStockStickers(request) {
|
|
1057
1078
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1058
1079
|
return new Promise((resolve, reject) => {
|
|
1059
|
-
return this.
|
|
1080
|
+
return this.sharedConnector.getPrintStockStickers(request).then((result) => {
|
|
1060
1081
|
if (result.validationResult && result.validationResult.success) {
|
|
1061
1082
|
if (result.resultObject) {
|
|
1062
1083
|
resolve(this._boFactory.makeWithRawBackendData(PrintStockStickers, result.resultObject));
|
|
@@ -1137,6 +1158,11 @@ class StockService {
|
|
|
1137
1158
|
yield this._connector.getPrintStockStickers(data);
|
|
1138
1159
|
});
|
|
1139
1160
|
}
|
|
1161
|
+
getAllPrinters(showAll = true) {
|
|
1162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1163
|
+
return yield this._connector.getAllPrinters(showAll);
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
1140
1166
|
loadStockLocations(goodId) {
|
|
1141
1167
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1142
1168
|
return yield this._connector.getArticleFlatObject(goodId);
|
|
@@ -1173,11 +1199,6 @@ class StockComponent {
|
|
|
1173
1199
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
1174
1200
|
this.stockService.stockStickers = new PrintStockStickers();
|
|
1175
1201
|
}
|
|
1176
|
-
handleStockLocationClick() {
|
|
1177
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1178
|
-
console.log(this.articleExtended);
|
|
1179
|
-
});
|
|
1180
|
-
}
|
|
1181
1202
|
backToStock() {
|
|
1182
1203
|
this.showStockTransfer = !this.showStockTransfer;
|
|
1183
1204
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
@@ -1201,7 +1222,6 @@ StockComponent.decorators = [
|
|
|
1201
1222
|
[allWarehouses]="allWarehouses"
|
|
1202
1223
|
>
|
|
1203
1224
|
</co-stock-transfer>
|
|
1204
|
-
<co-button (click)="handleStockLocationClick()"></co-button>
|
|
1205
1225
|
</div>
|
|
1206
1226
|
`,
|
|
1207
1227
|
encapsulation: ViewEncapsulation.None
|
|
@@ -1226,9 +1246,6 @@ class StockInformationComponent {
|
|
|
1226
1246
|
this.show = false;
|
|
1227
1247
|
this.hideOrShowLocationTab = false;
|
|
1228
1248
|
}
|
|
1229
|
-
ngOnInit() {
|
|
1230
|
-
console.log(this.article);
|
|
1231
|
-
}
|
|
1232
1249
|
}
|
|
1233
1250
|
StockInformationComponent.decorators = [
|
|
1234
1251
|
{ type: Component, args: [{
|
|
@@ -1454,7 +1471,6 @@ StockInformationGridComponent.decorators = [
|
|
|
1454
1471
|
</div>
|
|
1455
1472
|
<div class="stock-location-right-group">
|
|
1456
1473
|
<co-input-combo-box [(model)]="dataWareHouseCode"
|
|
1457
|
-
[source]=""
|
|
1458
1474
|
[fields]="dataWareHouseFields"
|
|
1459
1475
|
[placeholder]="'WAREHOUSE'"
|
|
1460
1476
|
[required]="true"
|
|
@@ -1598,6 +1614,7 @@ class StockTransferComponent {
|
|
|
1598
1614
|
this.handleCancelClicked = new EventEmitter();
|
|
1599
1615
|
this.handleStickerClicked = new EventEmitter();
|
|
1600
1616
|
this.allWarehousesDropdownFields = { value: "warehouseNo", text: "description" };
|
|
1617
|
+
this.showSendMethodDialog = false;
|
|
1601
1618
|
}
|
|
1602
1619
|
handleOkClick() {
|
|
1603
1620
|
}
|
|
@@ -1610,7 +1627,7 @@ class StockTransferComponent {
|
|
|
1610
1627
|
handleStickerClick() {
|
|
1611
1628
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1612
1629
|
this.handleStickerClicked.emit();
|
|
1613
|
-
|
|
1630
|
+
this.showSendMethodDialog = true;
|
|
1614
1631
|
});
|
|
1615
1632
|
}
|
|
1616
1633
|
}
|
|
@@ -1647,13 +1664,12 @@ StockTransferComponent.decorators = [
|
|
|
1647
1664
|
</div>
|
|
1648
1665
|
|
|
1649
1666
|
<div class="stock-transfer-right-column">
|
|
1650
|
-
<co-drop-down-list [
|
|
1651
|
-
[collection]="allWarehouses"
|
|
1667
|
+
<co-drop-down-list [collection]="allWarehouses"
|
|
1652
1668
|
[fields]="allWarehousesDropdownFields"
|
|
1653
1669
|
(modelChange)="handleSelectedWarehouse($event)"
|
|
1654
1670
|
>
|
|
1655
1671
|
</co-drop-down-list>
|
|
1656
|
-
<co-drop-down-list
|
|
1672
|
+
<co-drop-down-list>
|
|
1657
1673
|
|
|
1658
1674
|
</co-drop-down-list>
|
|
1659
1675
|
<co-input-text [placeholder]="'Voorraadstatus'">
|
|
@@ -1687,6 +1703,324 @@ StockTransferComponent.propDecorators = {
|
|
|
1687
1703
|
handleStickerClicked: [{ type: Output }]
|
|
1688
1704
|
};
|
|
1689
1705
|
|
|
1706
|
+
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
1707
|
+
var Icon;
|
|
1708
|
+
(function (Icon) {
|
|
1709
|
+
Icon["ArrowFatRight"] = "arrow_fat_right";
|
|
1710
|
+
Icon["ArrowPointDown"] = "arrow_point_down";
|
|
1711
|
+
Icon["ArrowPointLeft"] = "arrow_point_left";
|
|
1712
|
+
Icon["ArrowPointRight"] = "arrow_point_right";
|
|
1713
|
+
Icon["CalendarDay"] = "calendar_day";
|
|
1714
|
+
Icon["Cancel"] = "cancel";
|
|
1715
|
+
Icon["DeliveryTruck"] = "delivery_truck";
|
|
1716
|
+
Icon["EditPencil"] = "edit_pencil";
|
|
1717
|
+
Icon["Email"] = "email";
|
|
1718
|
+
Icon["Pdf"] = "pdf";
|
|
1719
|
+
Icon["PlusRound"] = "plus_round";
|
|
1720
|
+
Icon["Print"] = "print";
|
|
1721
|
+
Icon["SignatureField"] = "signature_field";
|
|
1722
|
+
Icon["Tag"] = "tag";
|
|
1723
|
+
Icon["ThickLines"] = "thick_lines";
|
|
1724
|
+
Icon["ThinLines"] = "thin_lines";
|
|
1725
|
+
Icon["Txt"] = "txt";
|
|
1726
|
+
Icon["Xml"] = "xml";
|
|
1727
|
+
})(Icon || (Icon = {}));
|
|
1728
|
+
|
|
1729
|
+
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
1730
|
+
const IconSvg = {
|
|
1731
|
+
"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>",
|
|
1732
|
+
"arrow_point_down": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-280 371 51 51\" enable-background=\"new -280 371 51 51\" ><path fill=\"#29363E\" d=\"M-248.3,392.2c0.3,0,0.6,0.1,0.8,0.3c0.5,0.5,0.5,1.2,0,1.6l-6.2,6.2c-0.2,0.2-0.5,0.3-0.8,0.3c-0.3,0-0.6-0.1-0.8-0.3l-6.2-6.2c-0.2-0.2-0.3-0.5-0.3-0.8c0-0.3,0.1-0.6,0.3-0.8c0.2-0.2,0.5-0.3,0.8-0.3c0.3,0,0.6,0.1,0.8,0.3l5.4,5.4l5.4-5.4C-248.9,392.4-248.6,392.2-248.3,392.2z\"/></svg>",
|
|
1733
|
+
"arrow_point_left": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M31.9,36.7l-14.7-9.6C17.1,27,17,26.9,17,26.7v-2.4c0-0.2,0.1-0.3,0.2-0.4l14.7-9.6c0.2-0.2,0.5-0.1,0.7,0.1l1.4,2.1c0.2,0.2,0.1,0.5-0.1,0.7l-12,7.8c-0.3,0.2-0.3,0.6,0,0.8l12,7.8c0.2,0.2,0.3,0.5,0.1,0.7l-1.4,2.1C32.4,36.8,32.1,36.8,31.9,36.7z\"/></svg>",
|
|
1734
|
+
"arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
|
|
1735
|
+
"calendar_day": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g><path fill=\"#022D42\" d=\"M35.4,13.7H14.6c-0.6,0-1,0.5-1,1V20h22.9v-5.2C36.4,14.2,36,13.7,35.4,13.7z M19,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8c1,0,1.8,0.8,1.8,1.8C20.8,18,20,18.8,19,18.8z M31,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8s1.8,0.8,1.8,1.8C32.7,18,32,18.8,31,18.8z\"/><path fill=\"#022D42\" d=\"M35.4,22.3v12.6L31.3,39H14.6c0,0,0,0,0,0V22.3H35.4 M36.4,21.3H13.6V39c0,0.6,0.5,1,1,1h17.2l4.7-4.7V21.3L36.4,21.3z\"/><rect x=\"18.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"30.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"18.6\" y=\"30.5\" fill=\"#022D42\" width=\"3.4\" height=\"3.4\"/><rect x=\"19.1\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/></g></svg>",
|
|
1736
|
+
"cancel": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"36 35.16 30.45 35.16 14 14.84 19.55 14.84 36 35.16\" fill=\"#484f60\"/><polygon points=\"14 35.16 19.55 35.16 36 14.84 30.45 14.84 14 35.16\" fill=\"#484f60\"/></svg>",
|
|
1737
|
+
"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>",
|
|
1738
|
+
"edit_pencil": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"12.54 38.16 12 37.62 14.85 29.64 20.52 35.31 12.54 38.16\" fill=\"#484f60\"/><rect x=\"16.33\" y=\"20.52\" width=\"17.99\" height=\"8.64\" transform=\"translate(-10.15 25.18) rotate(-45)\" fill=\"#484f60\"/><path d=\"M37.54,18.73,36,20.32l-6.11-6.1,1.59-1.59a1.55,1.55,0,0,1,2.2,0l3.91,3.9A1.55,1.55,0,0,1,37.54,18.73Z\" fill=\"#484f60\"/></svg>",
|
|
1739
|
+
"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>",
|
|
1740
|
+
"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>",
|
|
1741
|
+
"plus_round": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-288 379 35 35\" enable-background=\"new -288 379 35 35\" ><path fill=\"#29363E\" d=\"M-270.5,381.5c-8.3,0-15,6.7-15,15c0,8.3,6.7,15,15,15s15-6.7,15-15C-255.5,388.2-262.2,381.5-270.5,381.5z M-261.1,397.3c0,0.9-0.7,1.6-1.6,1.6h-5.5v5.5c0,0.9-0.7,1.6-1.6,1.6h-1.6c-0.9,0-1.6-0.7-1.6-1.6v-5.5h-5.5c-0.9,0-1.6-0.7-1.6-1.6v-1.6c0-0.9,0.7-1.6,1.6-1.6h5.5v-5.5c0-0.9,0.7-1.6,1.6-1.6h1.6c0.9,0,1.6,0.7,1.6,1.6v5.5h5.5c0.9,0,1.6,0.7,1.6,1.6V397.3z\"/></svg>",
|
|
1742
|
+
"print": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M38,16.5H12a2,2,0,0,0-2,2v9a2,2,0,0,0,2,2h2v-5H36v5h2a2,2,0,0,0,2-2v-9A2,2,0,0,0,38,16.5ZM37,21a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,37,21Z\" fill=\"#484f60\"/><path d=\"M35,11.5v5H15v-5H35m1-1H14v7H36v-7Z\" fill=\"#484f60\"/><path d=\"M35,25.5v13H15v-13H35m1-1H14v15H36v-15Z\" fill=\"#484f60\"/><rect x=\"17\" y=\"28.3\" width=\"16\" height=\"0.8\" fill=\"#484f60\"/><rect x=\"17\" y=\"31.5\" width=\"16\" height=\"0.8\" fill=\"#484f60\"/><rect x=\"17\" y=\"34.7\" width=\"16\" height=\"0.8\" fill=\"#484f60\"/></svg>",
|
|
1743
|
+
"signature_field": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M20.1,25.42a1.1,1.1,0,1,1,1.27,1.45l-3.3,9.07A63.13,63.13,0,0,1,28,28.3l1.26-12-8.26-3-6.77,10A62.4,62.4,0,0,1,17,35.54l3.3-9.07A1.12,1.12,0,0,1,20.1,25.42Z\" fill=\"#484f60\"/><rect x=\"21.62\" y=\"11.43\" width=\"8.79\" height=\"2.34\" transform=\"translate(5.88 -8.14) rotate(20)\" fill=\"#484f60\"/><path d=\"M18.11,37.48c1.44,2.65,4.58,2.94,7.23,2.1,1.41-.44,2.2-1.49,3.44-2.06,2.42-1.1,3.13,1.2,5.36,1.37.42,0,2-.65,1.54-.68-2.55-.19-2.93-3.13-5.51-2.65a4.9,4.9,0,0,0-1.64.71c-.77.49-1.31,1.62-2.07,2l-4.61.56A3.38,3.38,0,0,1,20,37c-.22-.41-2,.28-1.85.5Z\" fill=\"#484f60\"/></svg>",
|
|
1744
|
+
"tag": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M40,29.15v-.68a5.28,5.28,0,0,0-1.34-3.25L24.78,11.34A5.34,5.34,0,0,0,21.53,10H11.9A1.91,1.91,0,0,0,10,11.9v9.63a5.28,5.28,0,0,0,1.34,3.25L25.22,38.66A5.28,5.28,0,0,0,28.47,40h.68a5.28,5.28,0,0,0,3.24-1.34l6.27-6.27A5.28,5.28,0,0,0,40,29.15ZM13.13,16.72a2.54,2.54,0,1,1,3.59,0A2.55,2.55,0,0,1,13.13,16.72Zm15.9,19L17.84,24.55l1.34-1.34L30.37,34.4Zm2.69-2.69L20.52,21.87l1.35-1.35,11.19,11.2Zm2.68-2.69L23.21,19.18l1.34-1.34L35.75,29Z\" fill=\"#484f60\"/></svg>",
|
|
1745
|
+
"thick_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"12.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"21.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"30.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/></svg>",
|
|
1746
|
+
"thin_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"14.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"20.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"26.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"32.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/></svg>",
|
|
1747
|
+
"txt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,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=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.68,2.36h-1.9V32h-1.3V26.63h-1.9V25.54h5.1ZM30.4,32,29,29.74,27.55,32H26l2.19-3.34-2-3.07h1.52L29,27.6l1.26-2.06h1.5l-2,3.12L32,32Zm6.86-5.32h-1.9V32H34.07V26.63H32.16V25.54h5.1Z\" fill=\"#484f60\"/></svg>",
|
|
1748
|
+
"xml": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,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=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm5.36,7.41-1.3-2-1.3,2H20.48l2-3.06-1.81-2.8h1.38l1.18,1.88,1.15-1.88h1.37l-1.83,2.85,2,3Zm7.67,0h-1.1V27.07l-1.16,4.61H28.77l-1.16-4.61v4.61H26.52V25.82h1.76l1.07,4,1-4h1.77Zm5.33,0H33.38V25.87h1.18v4.82H37.5Z\" fill=\"#484f60\"/></svg>"
|
|
1749
|
+
};
|
|
1750
|
+
|
|
1751
|
+
class IconCacheService {
|
|
1752
|
+
constructor(_sanitizer) {
|
|
1753
|
+
this._sanitizer = _sanitizer;
|
|
1754
|
+
this._iconCache = {};
|
|
1755
|
+
this.setIconCache();
|
|
1756
|
+
}
|
|
1757
|
+
/**
|
|
1758
|
+
* All the icons as a large JSON object, from the all-icons.json file.
|
|
1759
|
+
* The object has property keys that are the icon names, and property values with the data string of the actual svg icon.
|
|
1760
|
+
*/
|
|
1761
|
+
get iconCache() {
|
|
1762
|
+
return this._iconCache;
|
|
1763
|
+
}
|
|
1764
|
+
getIcon(iconName) {
|
|
1765
|
+
if (iconName) {
|
|
1766
|
+
return this._iconCache[iconName.toLowerCase()];
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
getIconAsBase64(iconName) {
|
|
1770
|
+
const icon = IconSvg[iconName];
|
|
1771
|
+
const base64Data = window.btoa(icon);
|
|
1772
|
+
return this._sanitizer.bypassSecurityTrustUrl(`data:image/svg+xml;base64,${base64Data}`);
|
|
1773
|
+
}
|
|
1774
|
+
getRawIcon(iconName) {
|
|
1775
|
+
if (iconName) {
|
|
1776
|
+
return IconSvg[iconName.toLowerCase()];
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
setIconCache() {
|
|
1780
|
+
for (const key in IconSvg) {
|
|
1781
|
+
if (IconSvg.hasOwnProperty(key) && typeof IconSvg[key] !== "function") {
|
|
1782
|
+
this._iconCache[key.toLowerCase()] = this._sanitizer.bypassSecurityTrustHtml(IconSvg[key]);
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
IconCacheService.ɵprov = i0.ɵɵdefineInjectable({ factory: function IconCacheService_Factory() { return new IconCacheService(i0.ɵɵinject(i1.DomSanitizer)); }, token: IconCacheService, providedIn: "root" });
|
|
1788
|
+
IconCacheService.decorators = [
|
|
1789
|
+
{ type: Injectable, args: [{
|
|
1790
|
+
providedIn: "root"
|
|
1791
|
+
},] }
|
|
1792
|
+
];
|
|
1793
|
+
IconCacheService.ctorParameters = () => [
|
|
1794
|
+
{ type: DomSanitizer }
|
|
1795
|
+
];
|
|
1796
|
+
|
|
1797
|
+
var SendOption;
|
|
1798
|
+
(function (SendOption) {
|
|
1799
|
+
SendOption[SendOption["Email"] = 0] = "Email";
|
|
1800
|
+
SendOption[SendOption["Print"] = 1] = "Print";
|
|
1801
|
+
SendOption[SendOption["Pdf"] = 2] = "Pdf";
|
|
1802
|
+
SendOption[SendOption["Xml"] = 3] = "Xml";
|
|
1803
|
+
})(SendOption || (SendOption = {}));
|
|
1804
|
+
|
|
1805
|
+
class SendMethodDialogComponent {
|
|
1806
|
+
constructor(iconCacheService, _stockService) {
|
|
1807
|
+
this.iconCacheService = iconCacheService;
|
|
1808
|
+
this._stockService = _stockService;
|
|
1809
|
+
this.icons = Icon;
|
|
1810
|
+
this.sendOption = SendOption;
|
|
1811
|
+
this.sendOptions = [
|
|
1812
|
+
{ option: SendOption.Email,
|
|
1813
|
+
iconName: this.icons.Email },
|
|
1814
|
+
{ option: SendOption.Print,
|
|
1815
|
+
iconName: this.icons.Print },
|
|
1816
|
+
{ option: SendOption.Pdf,
|
|
1817
|
+
iconName: this.icons.Pdf },
|
|
1818
|
+
{ option: SendOption.Xml,
|
|
1819
|
+
iconName: this.icons.Xml }
|
|
1820
|
+
];
|
|
1821
|
+
this.activeSendOption = SendOption.Email;
|
|
1822
|
+
this.amountToPrint = 1;
|
|
1823
|
+
this.showStandardPrinterOptions = false;
|
|
1824
|
+
this.showPrinterSelections = false;
|
|
1825
|
+
this.showExitButton = true;
|
|
1826
|
+
this.emails = ['lars.vdv@colijn-it.nl', 'david@colijn-it.nl', 'ruben@colijn-it.nl'];
|
|
1827
|
+
this.models = [false, false, true];
|
|
1828
|
+
this.layouts = ['Layout 1', 'Layout 2', 'Layout 3'];
|
|
1829
|
+
this.showDialog = false;
|
|
1830
|
+
this.startSignatureClicked = new EventEmitter();
|
|
1831
|
+
this.printButtonClicked = new EventEmitter();
|
|
1832
|
+
}
|
|
1833
|
+
showClass() {
|
|
1834
|
+
return true;
|
|
1835
|
+
}
|
|
1836
|
+
closeDialogClick() {
|
|
1837
|
+
this.showDialog = false;
|
|
1838
|
+
}
|
|
1839
|
+
handleSignatureStart() {
|
|
1840
|
+
this.startSignatureClicked.emit();
|
|
1841
|
+
}
|
|
1842
|
+
handlePrintClicked() {
|
|
1843
|
+
this.printButtonClicked.emit();
|
|
1844
|
+
}
|
|
1845
|
+
togglePrinterSelection() {
|
|
1846
|
+
if (!this.showPrinterSelections) {
|
|
1847
|
+
this.showPrinterSelections = true;
|
|
1848
|
+
this.headerTitle = 'Printer selectie';
|
|
1849
|
+
}
|
|
1850
|
+
else {
|
|
1851
|
+
this.showPrinterSelections = false;
|
|
1852
|
+
this.headerTitle = 'Verzendopties';
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
SendMethodDialogComponent.decorators = [
|
|
1857
|
+
{ type: Component, args: [{
|
|
1858
|
+
selector: "ione-send-method-dialog",
|
|
1859
|
+
template: `
|
|
1860
|
+
<div class="send-method-dialog-wrapper">
|
|
1861
|
+
<co-dialog-wizard id="sendOptionsDialog" *ngIf="showDialog" [showCloseIcon]="showExitButton" (closeClick)="closeDialogClick()">
|
|
1862
|
+
<ng-container header>
|
|
1863
|
+
<span [textContent]="headerTitle"></span>
|
|
1864
|
+
</ng-container>
|
|
1865
|
+
<div class="dialog-content-wrapper">
|
|
1866
|
+
<div class="main-content-container" *ngIf="!showPrinterSelections">
|
|
1867
|
+
<div class="send-options-wrapper">
|
|
1868
|
+
<div class="custom-button-wrapper" *ngFor="let sendOption of sendOptions"
|
|
1869
|
+
[class.selected-option]="sendOption.option === activeSendOption"
|
|
1870
|
+
(click)="activeSendOption = sendOption.option">
|
|
1871
|
+
<co-icon [iconData]="iconCacheService.getIcon(sendOption.iconName)"></co-icon>
|
|
1872
|
+
</div>
|
|
1873
|
+
</div>
|
|
1874
|
+
|
|
1875
|
+
<div class="email-option-content" *ngIf="activeSendOption === sendOption.Email || activeSendOption === sendOption.Pdf">
|
|
1876
|
+
<div class="emails-container" *ngIf="activeSendOption === sendOption.Email">
|
|
1877
|
+
<co-input-checkbox
|
|
1878
|
+
*ngFor="let email, let index of emails"
|
|
1879
|
+
[name]="email"
|
|
1880
|
+
[(model)]="models[index]"
|
|
1881
|
+
[label]="email"
|
|
1882
|
+
[cssClass]="'input-checkbox-wrapper'"
|
|
1883
|
+
></co-input-checkbox>
|
|
1884
|
+
</div>
|
|
1885
|
+
|
|
1886
|
+
<div class="lov-wrapper">
|
|
1887
|
+
<co-input-combo-box
|
|
1888
|
+
[(model)]="selectedLayout"
|
|
1889
|
+
[collection]="layouts"
|
|
1890
|
+
[forceReadonly]="true"
|
|
1891
|
+
placeholder="Layout"
|
|
1892
|
+
></co-input-combo-box>
|
|
1893
|
+
</div>
|
|
1894
|
+
|
|
1895
|
+
<div class="signature-button-wrapper">
|
|
1896
|
+
<div class="custom-button-wrapper signature-button" (click)="handleSignatureStart()">
|
|
1897
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.SignatureField)"></co-icon>
|
|
1898
|
+
</div>
|
|
1899
|
+
</div>
|
|
1900
|
+
</div>
|
|
1901
|
+
|
|
1902
|
+
<div class="email-option-content" *ngIf="activeSendOption === sendOption.Print">
|
|
1903
|
+
<div class="lov-wrapper">
|
|
1904
|
+
<co-input-combo-box
|
|
1905
|
+
[(model)]="selectedLayout"
|
|
1906
|
+
[collection]="layouts"
|
|
1907
|
+
[forceReadonly]="true"
|
|
1908
|
+
placeholder="Layout"
|
|
1909
|
+
></co-input-combo-box>
|
|
1910
|
+
</div>
|
|
1911
|
+
|
|
1912
|
+
<div class="lov-wrapper clickable" (click)="togglePrinterSelection()">
|
|
1913
|
+
<div class="selected-printer-wrapper">
|
|
1914
|
+
<div class="printer-option-list-item">
|
|
1915
|
+
<co-icon class="printer-icon" [iconData]="iconCacheService.getIcon(icons.Print)"></co-icon>
|
|
1916
|
+
<div class="printer-details">
|
|
1917
|
+
<span class="printer-name" [textContent]="defaultPrinter"></span>
|
|
1918
|
+
<span class="printer-status" [textContent]="'Online'"></span>
|
|
1919
|
+
</div>
|
|
1920
|
+
</div>
|
|
1921
|
+
<co-icon class="select-printer-arrow" [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)"></co-icon>
|
|
1922
|
+
</div>
|
|
1923
|
+
</div>
|
|
1924
|
+
|
|
1925
|
+
<div class="standard-printer-wrapper">
|
|
1926
|
+
<div class="standard-printer-link" (click)="showStandardPrinterOptions = !showStandardPrinterOptions">
|
|
1927
|
+
<co-icon class="arrow-icon" [iconData]="iconCacheService.getIcon(icons.ArrowFatRight)"></co-icon>
|
|
1928
|
+
<span class="standard-printer-message" [textContent]="'Standaard printer voor lay-out instellen'"></span>
|
|
1929
|
+
</div>
|
|
1930
|
+
|
|
1931
|
+
<div class="standard-printer-selections" *ngIf="showStandardPrinterOptions">
|
|
1932
|
+
<co-input-checkbox
|
|
1933
|
+
[(model)]="models[0]"
|
|
1934
|
+
[label]="'Per gebruiker instellen'"
|
|
1935
|
+
[cssClass]="'input-checkbox-wrapper'"
|
|
1936
|
+
></co-input-checkbox>
|
|
1937
|
+
<co-input-checkbox
|
|
1938
|
+
[(model)]="models[1]"
|
|
1939
|
+
[label]="'Voor alle gebruikers instellen'"
|
|
1940
|
+
[cssClass]="'input-checkbox-wrapper'"
|
|
1941
|
+
></co-input-checkbox>
|
|
1942
|
+
</div>
|
|
1943
|
+
</div>
|
|
1944
|
+
|
|
1945
|
+
<div class="print-footer-wrapper">
|
|
1946
|
+
<div class="input-number-wrapper">
|
|
1947
|
+
<co-input-number-picker class="number-picker"
|
|
1948
|
+
[step]="1" [(model)]="amountToPrint" [min]="1"
|
|
1949
|
+
[ngModelOptions]="{debounce: 1}">
|
|
1950
|
+
</co-input-number-picker>
|
|
1951
|
+
</div>
|
|
1952
|
+
<div class="custom-button-wrapper print-button" (click)="handlePrintClicked()">
|
|
1953
|
+
<span [textContent]="'Print'"></span>
|
|
1954
|
+
</div>
|
|
1955
|
+
<div class="custom-button-wrapper signature-button" (click)="handleSignatureStart()">
|
|
1956
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.SignatureField)"></co-icon>
|
|
1957
|
+
</div>
|
|
1958
|
+
</div>
|
|
1959
|
+
</div>
|
|
1960
|
+
</div>
|
|
1961
|
+
|
|
1962
|
+
<div class="printer-content-container" @slideInOut *ngIf="showPrinterSelections">
|
|
1963
|
+
<div class="selected-printer-wrapper selection clickable" *ngFor="let printers of printerList" (click)="togglePrinterSelection()">
|
|
1964
|
+
<div class="printer-option-list-item">
|
|
1965
|
+
<co-icon class="printer-icon" [iconData]="iconCacheService.getIcon(icons.Print)"></co-icon>
|
|
1966
|
+
<div class="printer-details">
|
|
1967
|
+
<span class="printer-name" [textContent]="printers.name"></span>
|
|
1968
|
+
<span class="printer-status" [textContent]="'Online'"></span>
|
|
1969
|
+
</div>
|
|
1970
|
+
</div>
|
|
1971
|
+
<co-icon class="select-printer-arrow" *ngIf="!showPrinterSelections"
|
|
1972
|
+
[iconData]="iconCacheService.getIcon(icons.ArrowPointRight)"></co-icon>
|
|
1973
|
+
</div>
|
|
1974
|
+
</div>
|
|
1975
|
+
</div>
|
|
1976
|
+
</co-dialog-wizard>
|
|
1977
|
+
</div>
|
|
1978
|
+
`,
|
|
1979
|
+
encapsulation: ViewEncapsulation.None,
|
|
1980
|
+
animations: [
|
|
1981
|
+
trigger('slideInOut', [
|
|
1982
|
+
state('*', style({ transform: 'translateX(0%)', width: '100%', opacity: '1' })),
|
|
1983
|
+
state('void', style({ transform: 'translateX(150%)', opacity: '0' })),
|
|
1984
|
+
transition('void => *', animate(250))
|
|
1985
|
+
])
|
|
1986
|
+
]
|
|
1987
|
+
},] }
|
|
1988
|
+
];
|
|
1989
|
+
SendMethodDialogComponent.ctorParameters = () => [
|
|
1990
|
+
{ type: IconCacheService },
|
|
1991
|
+
{ type: StockService }
|
|
1992
|
+
];
|
|
1993
|
+
SendMethodDialogComponent.propDecorators = {
|
|
1994
|
+
showDialog: [{ type: Input }],
|
|
1995
|
+
headerTitle: [{ type: Input }],
|
|
1996
|
+
printerList: [{ type: Input }],
|
|
1997
|
+
startSignatureClicked: [{ type: Output }],
|
|
1998
|
+
printButtonClicked: [{ type: Output }],
|
|
1999
|
+
showClass: [{ type: HostBinding, args: ["class.ione-send-method-dialog",] }]
|
|
2000
|
+
};
|
|
2001
|
+
|
|
2002
|
+
class SendMethodDialogModule {
|
|
2003
|
+
}
|
|
2004
|
+
SendMethodDialogModule.decorators = [
|
|
2005
|
+
{ type: NgModule, args: [{
|
|
2006
|
+
declarations: [
|
|
2007
|
+
SendMethodDialogComponent
|
|
2008
|
+
],
|
|
2009
|
+
imports: [
|
|
2010
|
+
CommonModule,
|
|
2011
|
+
CoDialogPromptModule,
|
|
2012
|
+
InputCheckboxModule,
|
|
2013
|
+
InputComboBoxModule,
|
|
2014
|
+
IconModule,
|
|
2015
|
+
InputNumberPickerModule,
|
|
2016
|
+
CoDialogWizardModule
|
|
2017
|
+
],
|
|
2018
|
+
exports: [
|
|
2019
|
+
SendMethodDialogComponent
|
|
2020
|
+
]
|
|
2021
|
+
},] }
|
|
2022
|
+
];
|
|
2023
|
+
|
|
1690
2024
|
class StockModule {
|
|
1691
2025
|
}
|
|
1692
2026
|
StockModule.decorators = [
|
|
@@ -1700,7 +2034,8 @@ StockModule.decorators = [
|
|
|
1700
2034
|
DropDownModule,
|
|
1701
2035
|
SimpleGridModule,
|
|
1702
2036
|
ImageModule,
|
|
1703
|
-
InputTextModule
|
|
2037
|
+
InputTextModule,
|
|
2038
|
+
SendMethodDialogModule
|
|
1704
2039
|
],
|
|
1705
2040
|
declarations: [
|
|
1706
2041
|
StockComponent,
|
|
@@ -1727,5 +2062,5 @@ StockModule.decorators = [
|
|
|
1727
2062
|
* Generated bundle index. Do not edit.
|
|
1728
2063
|
*/
|
|
1729
2064
|
|
|
1730
|
-
export { DocsignComponent, DocsignModule, StockComponent, StockModule, SignatureComponent as ɵa, SignaturesComponent as ɵb, StockService as ɵc, IoneConnectorAdapterService as ɵd,
|
|
2065
|
+
export { DocsignComponent, DocsignModule, SendMethodDialogComponent, SendMethodDialogModule, StockComponent, StockModule, SignatureComponent as ɵa, SignaturesComponent as ɵb, StockService as ɵc, IoneConnectorAdapterService as ɵd, IconCacheService as ɵe, StockInformationComponent as ɵf, StockInformationGridComponent as ɵg, StockLocationComponent as ɵh, StockTransferComponent as ɵi };
|
|
1731
2066
|
//# sourceMappingURL=colijnit-sharedcomponents.js.map
|